319c60d4fa
BREAKING: Change tangential arc to keyword args ( #6266 )
...
* Change tangentialArc, tangentialArcTo, and tangentialArcToRelative to keyword args
* Change tangentialArc offset to angle and convert to kw arg calls
* Fix lints
* Fix sketch errors and all unit tests passing
* Fix tangentialArcTo calls in KCL samples
* Update tangentialArc in samples
* Update sim test output
* Fix formatting
* Fix mistake in merge
* Fix gear rack sample
* Update output after more samples fixes
* Update gear rack output
* Add end label to docs snippet
* Fix to not add endAbsolute for an arc with radius or angle arguments
* Update docs outputs
* Fix formatting
* Fix executor tests
* Fix formatting
* Fix bench input files
* Fix spelling
* Improve error messages
---------
Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev >
2025-04-11 14:17:20 -04:00
be05dd7ba1
More propagation of numeric types ( #6177 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-07 19:02:41 +12:00
efc8c82d8b
BREAKING: KCL @settings are the source of truth for units ( #5808 )
2025-03-31 10:56:03 -04:00
db5ce7ba85
Move turns to a submodule of std ( #6039 )
...
* Move turns to a submodule of std
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Cache module infos as well as memory; fix a bug with deprecated constants
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-03-30 11:10:44 +13:00
c53fa421ad
Give a warning when using per-project default units ( #5956 )
...
* Give a warning when using per-project default units
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Factor non-settings out of MetaSettings
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Fix formatting
* Fix code pane e2e test
* Fix callstack blowup in edit flow
* Avoid dumb timeout issue with command registration in test
* Use a safer way to wait for modeling command registration in test
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
Co-authored-by: Nick Cameron <nrc@ncameron.org >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pierre Jacquier <pierre@zoo.dev >
Co-authored-by: Frank Noirot <frankjohnson1993@gmail.com >
2025-03-26 18:59:43 +13:00
1d550da40b
More types stuff ( #5901 )
...
* parse union and fancy array types
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* type aliases
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Treat Helix and Face as primitive types
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* code motion: factor our execution::types module
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Tests for type coercion and subtyping
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Add Point2D/3D to std
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Rebasing and fixes
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-03-21 10:56:55 +13:00
75a975b1e1
Replace snapshot mechanism with epochs ( #5764 )
...
* Make tag identifiers monotonic
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Use epochs rather than snapshots in memory
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-03-17 12:28:51 +13:00
3f02bb2065
deterministic id generator per module ( #5811 )
...
* deterministic id generator per module
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* non
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* do not remake the planes if they are alreaady made;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* do not remake the planes if they are alreaady made;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* clippy
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-03-15 17:08:39 +00:00
b5028f7aa8
Change to not expose exec artifacts ( #5700 )
...
Now that the artifact graph is built completely in Rust, these are an
implementation detail that shouldn't be exposed to TS.
2025-03-11 19:09:11 +00:00
bc3a0e3896
more updates for kcl-samples ( #5696 )
...
* screenshots and step
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* automations
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add manifest generation
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* small refactor
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* update readme
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* write the readme
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes for comments
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* derive-docs tests updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* update all the generated artifact commands, since we dont need to clear scene at the start of run so we dont need to recreate all the planes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-03-07 18:45:33 -08:00
de85c31e71
Make memory accessible from multiple threads/tasks ( #5530 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-03-05 12:03:32 +13:00
c3bdc6f106
Move the wasm lib, and cleanup rust directory and all references ( #5585 )
...
* git mv src/wasm-lib rust
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* mv wasm-lib to workspace
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* mv kcl-lib
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* mv derive docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* resolve file paths
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* clippy
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* move more shit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix more paths
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* make yarn build:wasm work
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix scripts
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* better references
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix cargo ci
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix reference
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix more ci
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cargo sort
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix script
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix a dep
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* sort
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* remove unused deps
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Revert "remove unused deps"
This reverts commit fbabdb062e275fd5cbc1476f8480a1afee15d972.
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* deps;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-03-01 21:59:01 +00:00