- Remove all @extends commands from
/src
and/extras
- Run
npm run types
In output code types.d.ts
do:
- Remove all
Two.*
references — e.g:Two.Vector
->Vector
- Remove all
typeof
references except for static properties of Two — e.g:Two.Group
- Remove all
'.js'
import references - Change
"src/two"
totwo.js
- Change all
"src/
references to"two.js/src/
- Change all
"extras/"
references to"two.js/extras/
- Fix all
constructor
methods to have proper argument ingestion
- Includes:
Two.Rectangle
,Two.Circle
,Two.Ellipse
,Two.Line
, andTwo.Polygon
- Fix private property assignment on
Two.Group
. e.g:_stroke
->stroke
- Includes
Two.Text
- Add optional overloaded functions to
Two.makeCurve
andTwo.makePath
forclosed
attribute
- And other functions with
...
argument syntax
Things to do to improve TypeScript Types:
- Add default values to all methods (including constructors) to clarify what is mandatory and what is optional.
- Figure out how to handle both ingestion of single argument Array's and full arguments as arrays.