Thank you for the quick answer.
It seems strange that all PIXI classes follow the same approach, as they can be extended with custom entities allowing full use of OOP, but the Spine class cannot be extended and only its instance can be modified.
That feels more like a functional approach, while PIXI itself is built around OOP.
From the from
method, it looks like the only optimization there is caching of the skeletonData.
Is there a place where I can submit a request to bring back support for extending Spine
in future versions?
Maybe the object generation logic for creating a Spine instance could be moved to a separate method, for example, getInitData
. Then the from
would keep working as before, but it would also allow extending Spine
and creating it via the constructor after obtaining the proper initialization data from getInitData
.
Or could I contribute these changes myself?