Commit Graph

17 Commits

Author SHA1 Message Date
Kurt Hutten
0f4a9b07b4 Pretty up the IDE a little 2021-04-26 17:59:22 +10:00
Kurt Hutten
76a570b0c3 Init multiple types of cadPackages 2021-04-26 07:48:52 +10:00
Kurt Hutten
35d5c02f96 OpenSCAD and CadQuery working together in dev
Still clean up of the backend/lamdas, and there's a conda permission
issue when deploying the Cadquery image
2021-04-18 17:46:03 +10:00
Kurt Hutten
2153e5b1bf Front end changes for cadquery
Basic changes to get the proof of concept working. Lots of attention
was given to the store/reducer to solve existing problems with async
code and stale closures, it seems even today how to handle this with
use reducer is not quiet settle, I guess because once an app reaches
a certain level of maturity everyone grabs an off the shelf solution
to state management. I ended up implementing thunks because they are
really rather simple. Interesting thread about it all here:
https://gist.github.com/astoilkov/013c513e33fe95fa8846348038d8fe42#gistcomment-3377800

I also move some of settings that were persisted in the openScad
controller into the data store as I ulimately thing what I was doing
in that file was very confusing, with the fact that it had to be
called multiple times with different information before it would be able
to render something properly.
2021-04-18 12:28:23 +10:00
Kurt Hutten
f9f35183af Send console message with healthy render 2021-03-21 14:48:54 +11:00
Kurt Hutten
8efae75699 Remove console log 2021-03-17 19:44:08 +11:00
Frank Noirot
02dcb60d5e added multiplication by device pixel ratio to render 2021-03-17 00:20:31 -04:00
Kurt Hutten
b6867fc8a8 Move viewport state into openscad controller 2021-03-14 17:41:29 +11:00
Frank Noirot
785025fca8 initial commit with full-size image, but broken OpenSCAD image source size. 2021-03-13 20:37:02 -05:00
Kurt Hutten
df3f492aee Add default camera settings 2021-03-14 10:23:24 +11:00
Kurt Hutten
a2454a3f80 Remove openscad specific state from ideState 2021-03-14 09:49:58 +11:00
Kurt Hutten
1de49b66dc Fix OpenSCAD move sync
Hard to capture in a title. when you move the object with right-click drag, that axis move away from the shape.

resolves #241
2021-03-13 17:29:26 +11:00
Kurt Hutten
39f408bd49 Move local development openSCAD url to env vars
I think this make it easier to swap between using the aws endpoint and
local endpoint but without having to worry about accidentally committing
the local endpoint if you absent mindedly staging everything, and it
still defaults to aws so it's easy setup for anyone doing a fresh clone.

add OPENSCAD_BASE_URL="http://localhost:8080" to you .env file.

You will have to restart yarn rw dev for the url to swap over though.

Resolves #242
2021-03-13 17:26:09 +11:00
Kurt Hutten
10062513fd set up local development for openscad lamdas
and make a start on combining with Three.js IdeViewer
Resolves #227

related #231
2021-03-10 08:14:32 +11:00
Kurt Hutten
63c2a79a5d Create and deploy simple openscad api
A minimal frontend integration has been added to as a POC

resolves #219 and #222
2021-03-07 17:32:18 +11:00
Frank Noirot
fe8cc63c3b added comments to get a proper commit in 2021-03-04 23:34:19 -05:00
Frank Noirot
661797b9a3 Showing state being passed into useIdeState dispatch middleware to change ideType. 2021-03-04 23:06:07 -05:00