Releases: 4eb0da/war3-model
Releases · 4eb0da/war3-model
Fix package contents
v2.2.1 Fix publishing and version up
Better destroy and simple hd models' animation support
destroy
method now cleans particles and ribbon emitters- Preview sample now supports skeleton and wireframe
- Model renderer now supports hd models' animation
Fixed package contents & added destroy method
For a some reason, non-browser build have missed ModelRenderer class.
Also, added method destroy
in that class and added first steps for "Reforged" format support
Maintenance update
Exports
Main change is about module exports and file structure
Separate internal files in package are gone (e.g. war3-model/mdx/parse
)
Instead package now provides multiple ways to use it:
- Common-js way
- ES Module way
- Direct browser usage with globals and es-modules
Also instead of providing full-size js & ts in package there are now full js and small typings for ts
Fixes
Infinite loop in mdl parse
Deps & infra
- gl-matrix 2 -> 3
- Typescript 1? -> 4.4
- tslint -> eslint
- browserify -> rollup & webpack
- codemirror -> monaco
war3-model
requires the same node.js@4, nothing changed here
Other
- Better package.json with more infos
- Better docs
Added missing files in npm package
renderer
folder was missing
Increased max nodes count
Previewer now have increased MAX_NODES from 128 to 256
(all objects count as nodes, not only bones)
Thx @435352980 for the model example
Animation fix
Node
's interface had updated, nowParent
prop is number or null- Fixed
Parent = 0
cases in model renderer
Thx @w4454962 for the example model