94b606d2d9
Cache the width/height with the engine manager
2023-09-20 17:33:37 -04:00
2a2cc44baa
appease the format gods
2023-09-20 15:58:49 -04:00
2d31f5b0e0
Fix typing
2023-09-20 15:54:42 -04:00
bb12eec7f9
Use useRef to store the Engine
...
useRef is a React Hook that lets you reference a value that’s not needed
for rendering. The value is set to the initial value on startup, and
will hang on to 'current' for us. We can store the Engine in the ref,
and React will take care of persisting it for us.
Signed-off-by: Paul Tagliamonte <paul@kittycad.io >
2023-09-20 15:44:06 -04:00
e4f2e66029
inital rework of execution ( #528 )
...
* inital rework
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* update the program memory as well
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* code
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates for typing code
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixing
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* some fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Only unselect line or move tool on escape, don't exit sketch
* Make scrollbar on toolbar smaller
* Add escape to exit sketch mode
* tidy up usestore
* clear scene on empty file
* disable sketch mode and re-execute on sketch loop close
* disable all but xy plane
* fix entering back into edit mode
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Frank Noirot <frank@kittycad.io >
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch >
2023-09-15 21:35:48 +10:00
6ac79ae645
Move app.tsx effects ( #513 )
...
* move useSetupEngineManager
* move code eval
* add comment
2023-09-14 10:47:55 +10:00