Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the new API in the frontend #101

Merged
merged 111 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
41058d0
Start integrating ISOtope - Rings and Faces are missing
dzervas May 26, 2024
96e2bef
Move to single message for primitives, according to ISOtope
dzervas May 26, 2024
ae8b52e
Start working on the RealSketch - no sketch data are duplicated, just…
dzervas May 27, 2024
9206bef
Port RealSketch to use ISOtope
dzervas May 27, 2024
f827d9b
Use more isotope functions and fix some errors
dzervas May 27, 2024
84acb09
Fix calling functions from isotope
dzervas May 27, 2024
b09a323
Macro-defined steps with expected step operations. The workbench oper…
dzervas May 27, 2024
16007d8
Add isketch steps but remove workbench
dzervas May 28, 2024
6b724bd
Add the rest of the sketch primitives
dzervas May 28, 2024
6b449ac
Touch a bit the workspaces
dzervas May 28, 2024
2ce2baa
Move to proc_macro instead of macro_rules
dzervas May 28, 2024
743910f
It works!
dzervas May 28, 2024
427464a
Fix a bunch of problems and disable extrusions - will tackle them later
dzervas May 28, 2024
1df5b17
Fix the stepdata messages
dzervas May 28, 2024
b4a1cca
Most not strictly add commands done
dzervas May 28, 2024
61800ec
Start fixing some tests
dzervas May 28, 2024
fa6532d
iron out a ton of errors - the hard remain
dzervas May 29, 2024
9249107
Lifetime tinkerings
dzervas May 29, 2024
060ebca
Fix most stuff
dzervas May 29, 2024
151ce22
Some typescript work
dzervas May 29, 2024
7be5cdd
Add skip_history in macro
dzervas May 29, 2024
7eda097
Fix the skip_history
dzervas May 29, 2024
e2c1770
Add update & delete support in macro
dzervas May 30, 2024
8c9bb42
Use my branch for now
dzervas May 30, 2024
0ba1cb5
Ignore .vscode
dzervas May 30, 2024
04772e8
skip failing e2e test
av8ta May 30, 2024
2de9e85
woops. rename all the scripts to suit
av8ta May 30, 2024
987f75a
skip failing rust tests as well
av8ta May 30, 2024
85215ba
Fix wire generation to re-use first vertex
MattFerraro Jun 1, 2024
45a69c5
Implement the rest of the basic steps
dzervas May 30, 2024
a296cbd
macro change didn't work
dzervas May 30, 2024
524af2b
More stupid stuff
dzervas May 30, 2024
5b2560d
Land on a message implementation - all messages are structs
dzervas May 31, 2024
63ce0c7
Add ProjectRename command
dzervas Jun 1, 2024
889b87b
Finally fix the messaging re-design
dzervas Jun 3, 2024
d0c1b8f
Add all the sketch messages
dzervas Jun 3, 2024
095f042
Move the message code to a mod and implement the IDWrap serializer
dzervas Jun 3, 2024
157860a
Start ironing out the steps + history
dzervas Jun 3, 2024
3a608d4
Add stubbed realization for all steps. Also steps are now just wrappe…
dzervas Jun 3, 2024
fbe0b9b
Some QoL around realizations
dzervas Jun 3, 2024
fdd1fed
Add realization for Workbench messages
dzervas Jun 3, 2024
d8f4a44
Make the realization for points, planes and sketches a direct clone o…
dzervas Jun 3, 2024
03cd07e
Record messages in history
dzervas Jun 3, 2024
0c62838
Move to tsify-next
dzervas Jun 3, 2024
211ed8a
Update rust deps
dzervas Jun 3, 2024
ea2fce4
Remove realization as an idea completely
dzervas Jun 3, 2024
c5d525d
Move extrusion helpers to solid helpers
dzervas Jun 3, 2024
74d1bd5
Add new extrusion message
dzervas Jun 3, 2024
3e5c1d2
Add typescript functions for all messages
dzervas Jun 4, 2024
1c0f299
collect the map in the MessageEnum derive
dzervas Jun 4, 2024
b7cbb1e
Fix one_extrusion
dzervas Jun 4, 2024
7afa3cb
re-enable step_export
dzervas Jun 4, 2024
a9bfee8
Add proper test ignore messages
dzervas Jun 4, 2024
a6134f4
Implement a bunch of clippy fixes
dzervas Jun 4, 2024
8e84431
Even more clippy fixes
dzervas Jun 4, 2024
82e5ff6
Fix the example
dzervas Jun 5, 2024
1d60759
Make all cadmium-api functions available under `window.cad`
dzervas Jun 5, 2024
9d47e25
Redefine the message types till we get TSify to play nice
dzervas Jun 5, 2024
2d7c567
Add cadmium core readme
dzervas Jun 5, 2024
62638e2
Merge remote-tracking branch 'origin/main' into dev
dzervas Jun 11, 2024
7b2975c
Merge remote-tracking branch 'origin/main' into dev
dzervas Jun 14, 2024
ea19b35
Rewrite the move_sketch test and enable it
dzervas Jun 5, 2024
ff66955
Add step messages
dzervas Jun 5, 2024
215f568
Break idwrap into its own mod as it's getting lengthy
dzervas Jun 5, 2024
e99d059
Move the featurecell to its own file
dzervas Jun 6, 2024
89f63d7
Move from Solid to Feature in workbench
dzervas Jun 6, 2024
69126d2
Rename "solid" to "feature" and add extrusion update form (length, of…
dzervas Jun 6, 2024
5e51dfd
Actually save the steps to history
dzervas Jun 6, 2024
42b7b77
Fix test project so that it records the steps
dzervas Jun 6, 2024
dbdce92
Rename solid to feature mod
dzervas Jun 6, 2024
875a796
Move isketch to its own mod
dzervas Jun 6, 2024
9443bbc
Fix some broken code
dzervas Jun 6, 2024
a069b92
Add sketch compounds
dzervas Jun 6, 2024
66f848d
Run pnpm format
dzervas Jun 8, 2024
632058d
Fix the cargo.lock
dzervas Jun 11, 2024
5e652b3
Introduce rust logging that shows in dev console
dzervas Jun 6, 2024
b99cdd6
Add a FaceSelector trait with a simple ID selector and a benchmark to…
dzervas Jun 7, 2024
d3df235
Make extrusion use the face selector
dzervas Jun 7, 2024
2b68268
Add centroid face selector
dzervas Jun 8, 2024
df9e87b
Play around with message functions that auto-generate structs
dzervas Jun 9, 2024
074cde9
Use the new function message for sketch add point
dzervas Jun 9, 2024
14c393b
Generate the typescript definitions
dzervas Jun 9, 2024
3796b6b
Add the gen-types binary that auto-generates the ts message types
dzervas Jun 10, 2024
b166e9b
Use the new cad function wrappers
dzervas Jun 10, 2024
3edd4cb
Start ripping out the realization from svelte
dzervas Jun 10, 2024
6e922f7
Further try to use the new api in svelte
dzervas Jun 10, 2024
04522fb
More fixes and introduction of the isotope types - not sure if needed…
dzervas Jun 10, 2024
b9c91a8
Tests to interface the new api with the frontend
dzervas Jun 11, 2024
087c481
Start implementing the interop graph - broken code
dzervas Jun 12, 2024
c4a041d
pnpm format
dzervas Jun 12, 2024
239c06f
Update the primitive operations and the projectmessagehandler
dzervas Jun 12, 2024
b50498c
Finish the addition of node
dzervas Jun 12, 2024
c8eb633
include the node in each step
dzervas Jun 12, 2024
ccc4f08
Start integrating
dzervas Jun 12, 2024
7ef29a1
Add step typeguards
dzervas Jun 12, 2024
86a2492
Make the sketch features work
dzervas Jun 12, 2024
fa25c1c
Create the planes and origin as steps
dzervas Jun 12, 2024
c52ba34
Start making the rest of the stuff work
dzervas Jun 12, 2024
9ad97df
Remove update steps and use hash as ID for anything
dzervas Jun 12, 2024
1f31c59
Rename the interop node to step result and use the hashes instead of IDs
dzervas Jun 12, 2024
9c1eba9
Show the message errors in console
dzervas Jun 12, 2024
7b8971f
Make the step hashes a different struct to avoid mix-ups
dzervas Jun 12, 2024
20e649e
Fix the new hash-ID lookup
dzervas Jun 13, 2024
cdbfcce
Format everything and start fixing the sketch tools
dzervas Jun 13, 2024
d8ffbe2
Fix the newLine tool
dzervas Jun 13, 2024
54fc65a
Fix the damn line
dzervas Jun 14, 2024
f645298
Face fixes in the frontend - rust still returns no faces
dzervas Jun 14, 2024
2befbff
Do more face work
dzervas Jun 14, 2024
3eed197
Fix solids & extrusion
dzervas Jun 14, 2024
5684fcc
Fix the circle
dzervas Jun 14, 2024
447011d
Re-fix the simple extrusion example
dzervas Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/dist
/target
/packages/cadmium/target
/packages/cadmium/bench-*-report
**/.svelte-kit
/package
*.env*
Expand All @@ -13,3 +14,4 @@ vite.config.ts.timestamp-*
/.pnpm-store/
**/*.obj
**/*.step
.vscode
1 change: 0 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"pattern": "Local: +http://127.0.0.1:([0-9]+)/",
"uriFormat": "http://127.0.0.1:%s",
"webRoot": "${workspaceFolder}/applications/web/src",
"killOnServerStop": true
}
},
],
Expand Down
10 changes: 9 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@
"vite.autoStart": false,
"vite.buildCommand": "pnpm run build",
"vite.devCommand": "pnpm run dev",
"vite.showTerminal": true
"vite.showTerminal": true,
"cSpell.words": [
"bindgen",
"isketch",
"Threlte",
"tsify",
"wireframe"
],
"editor.formatOnSave": true
}
Loading