Jordan Eldredge
bc69eec546
Add ID to error message when missing classes
2019-11-30 13:42:53 -08:00
Jordan Eldredge
d7face4261
Name assertion
2019-11-30 13:42:53 -08:00
Jordan Eldredge
99e963c231
Warn if a method is missing
2019-11-30 13:42:53 -08:00
Jordan Eldredge
aae83dffb2
Use 5.66 version of Config.mi
...
Adds a single method
2019-11-30 13:42:53 -08:00
Jordan Eldredge
7e60765bde
Upgrade pldir to 5.66. Adds more methods
2019-11-30 13:42:53 -08:00
Jordan Eldredge
9330bb7570
Ensure method names never have spaces
2019-11-30 13:42:53 -08:00
Jordan Eldredge
dbec825823
Use common JS for stuff imported by eslint
2019-11-30 13:42:53 -08:00
Jordan Eldredge
db512847c7
Pull object definitions out into json files
2019-11-30 13:42:53 -08:00
Jordan Eldredge
460ea396ec
Parse mi files ( #935 )
...
* Add more maki files found online
* Add parser for .mi files and confirm it can derive the objects we have today
2019-11-30 13:42:53 -08:00
Jordan Eldredge
1215beec76
Test that all classes are implemented ( #933 )
...
* Test that all classes are implemented
* Add PlDir to runtime
* Log raw ID when we can't find a class
* Add Maki class ids
2019-11-30 13:42:53 -08:00
Jordan Eldredge
e5d25b7289
Fix comment to reflect current knowledge
2019-11-30 13:42:53 -08:00
Jordan Eldredge
6eebad5e9c
Confirm that getFormattedId is reversable
2019-11-30 13:42:53 -08:00
Jordan Eldredge
4e52a67d39
Add a few missing classes.
...
These still need to be added to runtime/index.ts I'm working on how to derive the IDs.
https://github.com/captbaritone/webamp/pull/855
2019-11-30 13:42:53 -08:00
Jordan Eldredge
75ce830ee5
Try to upgrade browserslist
2019-11-30 13:42:53 -08:00
Jordan Eldredge
dc4170fd38
Remove duplicate method
2019-11-30 13:42:53 -08:00
Jordan Eldredge
c7d3f0f947
Add pldir to objects
2019-11-30 13:42:53 -08:00
Jordan Eldredge
7f25ab2fb9
Fix OOM when parsing skins
2019-11-30 13:42:53 -08:00
Jordan Eldredge
d4a16239ed
Clean up PopupMenu a tiny bit
2019-11-30 13:42:53 -08:00
Jordan Eldredge
39a6663960
Clean up System a tiny bit
2019-11-30 13:42:53 -08:00
Jordan Eldredge
b555cc720a
Get script group via public method, not direct property access
2019-11-30 13:42:53 -08:00
Jordan Eldredge
6cabec22a9
Try to avoid OOM when parsing large numbers of skins (Untested)
2019-11-30 13:42:53 -08:00
Jordan Eldredge
1dff08f2d3
Clean up docs
2019-11-30 13:42:53 -08:00
Jordan Eldredge
1560df52ae
Don't shadow global Map
2019-11-30 13:42:53 -08:00
Jordan Eldredge
86c3883af6
logger.warn only takes two arguments, unlike console.warn
2019-11-30 13:42:53 -08:00
jberg
55451ae5ac
Fix for popupmenu commands ( #931 )
...
* Fix for popupmenu commands
* add return type
2019-11-30 13:42:53 -08:00
Jordan Eldredge
09bf9a73dc
Fix some type errors in System
2019-11-30 13:42:53 -08:00
Jordan Eldredge
4d55557f7f
Continue improving Maki types
2019-11-30 13:42:53 -08:00
Jordan Eldredge
09c4d7aaea
Fix types for more Maki objects
2019-11-30 13:42:53 -08:00
Jordan Eldredge
a033d98f91
Remove accidental debug log
2019-11-30 13:42:53 -08:00
Jordan Eldredge
571b65ad8c
Fix more types for maki standard library
2019-11-30 13:42:53 -08:00
Jordan Eldredge
5775dadae8
Improve a few more types in Maki objects
2019-11-30 13:42:53 -08:00
Jordan Eldredge
ef856bb617
Fix types for Config
2019-11-30 13:42:53 -08:00
Jordan Eldredge
9860da6570
Remove unused arguments
2019-11-30 13:42:53 -08:00
Jordan Eldredge
ab30417a24
Improve, but don't fix fully, types in Popmenu
2019-11-30 13:42:53 -08:00
Jordan Eldredge
bff2f94fc5
Implement list ( #924 )
...
* Add eslint support for Maki any
* Implement all of List
2019-11-30 13:42:53 -08:00
Jordan Eldredge
a3e2f76832
Fix types for Timer
2019-11-30 13:42:53 -08:00
Jordan Eldredge
d400d39841
Remove the Redux store from Maki objects
2019-11-30 13:42:53 -08:00
Jordan Eldredge
2d7db715c2
Start typechecking more runtime objects
2019-11-30 13:42:53 -08:00
Jordan Eldredge
7652381d46
Improive typing in modern
2019-11-30 13:42:53 -08:00
Jordan Eldredge
5f870c870b
Expose children via js_getChildren
2019-11-30 13:42:53 -08:00
Jordan Eldredge
1546a9b057
Don't spread attributes into components
...
Eventually we want `.attributes` to be private and require going through methodso on the maki object to access.
2019-11-30 13:42:53 -08:00
Jordan Eldredge
eb619e3a5b
Rename components to clarify that nodes are actually maki objects
2019-11-30 13:42:53 -08:00
Jordan Eldredge
cf2c88b1c0
Add parent references to XML tree
2019-11-30 13:42:53 -08:00
Jordan Eldredge
2e230ac3e0
Remove console.log
2019-11-30 13:42:53 -08:00
Jordan Eldredge
c90c2a573a
Trigger js_update on self
2019-11-30 13:42:53 -08:00
Jordan Eldredge
29e4d5040f
Avoid rerender cascade
...
Previously a `js_trigger` event in MMD3's resting state would take about
40ms to render. Now it takes about 4ms.
2019-11-30 13:42:53 -08:00
Jordan Eldredge
7666047927
Return a string so other methods don't crash
2019-11-30 13:42:53 -08:00
Jordan Eldredge
60d4f686c9
Add font support ( #902 )
2019-11-30 13:42:53 -08:00
jberg
baa83eed61
Fix image lookups for animated layers ( #928 )
2019-11-30 13:42:53 -08:00
jberg
59281e056f
Move all image lookups to XML tree and support directly specifying image file ( #886 )
...
* handle image lookup in initialize for zip files
* remove unused params
* get image paths from node separately
* do image lookups in initialize
* fix lint errors
* handle case insensitivity and small tweaks
* handle nodes without name before we call toLowerCase
* fix isString
* move image lookups to xml tree
* update function comment
* spell out lowercase
* add additional comment about why we return node itself
* remove extra variable
* rename imagePaths to imageAttributes
* early returns
* move all resolved images to js_assets attribute instead of overwriting attr
* missed on previous renaming path->attribute
* fix lint errors
* need node back after rebase
* dont need children param anymore
2019-11-30 13:42:53 -08:00