Files
artcraft/app/pages/PageEnigma/contexts/EngineContext
wilandwil 7b5bdc915b Pass Dom References to Editor instead of Editor querying for DOM-IDs (#412)
- 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>
2024-05-22 11:39:39 -04:00
..
2024-05-17 00:22:34 -07:00