mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
- engine canvas is passed to editor as a DOM reference - camera view canvas is passed to editor as a DOM reference - scene container is passed to editor as a DOM reference - amended all the editor code that wants to do a DOM query using DOM ID to use the variable that stores the reference - added guard functions to query the DOM-ID just incase the reference is lost due to a re-render - the above change guarantees the reference to the DOM, fixes the bug where the editor cannot read the size of DOM elements, and increases stability of the app in general. Co-authored-by: wil <wil@storyteller.ai>