Another data driven architecture is to make extensive use of the Dataset property. Every element has a unique key associated with it. And all keys map to state objects in a data store. It then becomes easier to iterate and extract the relevant queries and stats.
https://webglfundamentals.org/webgl/lessons/webgl-scene-grap...
Another data driven architecture is to make extensive use of the Dataset property. Every element has a unique key associated with it. And all keys map to state objects in a data store. It then becomes easier to iterate and extract the relevant queries and stats.
https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Us...
There's no perfect one size fits all solution. But data oriented design is a great tool for starting to break down your app. Best of luck!