CADmium-Co / CADmium

A CAD program that runs in the browser
https://cadmium-co.github.io/CADmium/
Other
1.42k stars 57 forks source link

Evolution Tree #116

Open dzervas opened 3 months ago

dzervas commented 3 months ago

first of all due to some technicalities we can no longer get_workbench - we shouldn't anyway (LoroDoc doesn't implement Clone so I can't just return a clone of the workbench itself) it forced a long awaited fix: JS no longer duplicates the whole WASM memory it should just hold the oplog (history) and evtree (LoroDoc) as well as a project and workbench index. that's it

so JS instead of calling Project::get_workbench now calls get_workbench_oplog and get_workbench_evtree where both require a project_index and workbench_index. both regular incremented numbers, nothing fancy I also introduced set_workbench_evtree since we want a way for JS to update the evtree

so what changed?

but there are quite a bit to get done in the UI: