4fe8741ea7
Remove CallExpression support ( #6639 )
...
Users MUST use keyword call syntax now.
Closes https://github.com/KittyCAD/modeling-app/issues/4600
2025-05-02 16:08:12 -05:00
ace9a59a45
fix cache and imports ( #6647 )
...
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix clippy
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-05-02 17:41:14 +00:00
89bae66257
KCL: User-defined KCL functions in examples etc now use keywords ( #6603 )
...
Preparing for the removal of positional functions from the language. The first big step is to change all our KCL code examples, test code, public samples etc to all use keyword functions.
Apologies for how large this PR is. Most of it is:
- Changing example KCL that defined its own functions, so the functions now use keyword arguments rather than positional arguments. E.g. change `cube([20, 20])` to be `cube(center = [20, 20])`.
- Some parts of the code assumed positional code and didn't handle keyword calls, e.g. the linter would only check for positional calls to startSketchOn. Now they should work with either positional or keyword.
- Update all the artifacts
This does _not_ remove support for positional calls. That will be in a follow-up PR.
2025-05-01 12:36:51 -04:00
24465cf463
Parallelize the artifact graph only time suck ( #6482 )
...
* parallelize the artifact only time suck
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
make wasm safe
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* artifact graph things
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-04-27 04:21:26 +00:00
f8e53d941d
Change so that var definitions can be a module's return value ( #6504 )
...
* Change so that var definitions can be a module's return value
* Change car wheel assembly to use the new return mechanism
* Add sim test
* Update output
* Update module docs
* Add safety check to only work with modules
* Fix to use updated keyword args
2025-04-25 21:55:54 +00:00
ffbe20b586
Kwargs: startProfileAt ( #6424 )
...
Previous:
```
startProfileAt([x, y], %)
startProfileAt([x, y], sketch001)
```
New:
```
startProfile(%, at = [x, y])
startProfile(sketch001, at = [x, y])
```
2025-04-25 21:01:35 +00:00
5c0ca52291
Foreign imports go thru parallelization too ( #6488 )
...
* start of parallelizing forign imports
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* clippy
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* remove_printlns
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* remove shit that doesnt work
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* remove shit that doesnt work
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* put back
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* put back
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* put back
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* multiple
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* remove println
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* clone docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add whole module import docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add whole module import docs
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-04-25 03:25:02 +00:00
bd4bad0020
allow sending async commands to engine ( #6342 )
...
* start of async
Signed-off-by: Jess Frazelle <github@jessfraz.com >
check at end if the async commands completed
Signed-off-by: Jess Frazelle <github@jessfraz.com >
run at the end of inner_run
Signed-off-by: Jess Frazelle <github@jessfraz.com >
set import as async
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 >
add to the wasm side
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fire
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* flake
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixup for awaiting on import
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 >
* fix mock
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix mock
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add a test where we import then do a bunch of other stuff
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixup to see
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cross platform time
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 >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* another appearance tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* new docs and tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* dont loop so tight
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-17 17:22:19 -07:00
1a59fc4f99
Rename the app to Zoo Design Studio ( #5974 )
...
* WIP: Change the name of the app
Fixes #5971
* Force release build
* More renames
* Fix release builds on PR
* Remove alpha on home page, replace with nightly if nightly
* Change appId back to dev.zoo.modeling-app after updater test failure
* Cleanup towards review
* Lint
* Lint plus @jacebrowning's suggestion
* Lint
2025-04-03 22:24:51 -04:00
58a9c60d0b
Test code examples in docs and add docs for per-file settings ( #5474 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-02-27 09:34:55 +13:00
950f5cebfd
Options and docs for foreign imports ( #5351 )
...
* Annotations for imports of foreign files
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Document foreign imports
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-02-13 06:24:27 +13:00
efb067af58
Update fn syntax in module docs ( #4641 )
2024-12-03 19:47:21 +00:00
16c7a2457a
Add docs for modules and import statements ( #4435 )
2024-11-15 11:36:38 -05:00