60d2be9ff2
Fix angledLine error messages to recommend the right keyword args ( #6290 )
...
* Fix angledLine error messages to recommend the right keyword args
* Update generated docs
2025-04-11 20:03:57 +00:00
0f59894d66
Hide sweep artifacts after automatically ( #6287 )
...
* automatically hide the trajectory sketch agter a sweep
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more samples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more samples
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-11 15:53:53 -04:00
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
1f6b90d383
#6182 Improve calculate_circle_center ( #6192 )
...
* add tests for calculate_circle_center - the first one succeeds with the current impl
* fix calculate_circle_center
* comment cleanup
* clippy
* comment format
* update circle_three_point sim test snapshot for slight floating point changes introduced by calculate_circle_center refactor
* use TAU instead of 2 * PI
* clippy
2025-04-11 12:43:18 +02:00
c45c2e27ba
make sure the nix flake never breaks ( #6273 )
...
make sure teh nix flake never breaks
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-11 06:27:42 +00:00
5832890dbb
Add CSG operations to the artifact graph ( #6104 )
...
* Add CSG operations to the artifact graph
* Add tool IDs for subtract
* Fix names to match modeling-cmds now that it's done
* Update output since adding CSG ops
* Update formatting
* Add extra solid ids to the graph
* Fix to not add duplicates to the graph
2025-04-11 05:16:29 +00:00
0d899694b2
Remove experimental warning on whole-module imports ( #6240 )
2025-04-11 04:22:51 +00:00
7bd5e7365d
Insert a newline between block comments and attributes ( #6250 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com >
2025-04-11 03:19:52 +00:00
a63e51e2ad
Remove import function from std ( #6241 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-11 03:11:59 +00:00
1b8eee86a1
Fix vscode lsp bugs ( #6271 )
...
* start of shit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* untitled test
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-11 12:53:05 +10:00
35844842de
Bump modeling api & pull thru csg endpoints ( #6245 )
...
* csg-upts
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* base
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* do the id shit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* tried to run
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* csg-upts
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* use bens samples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* use bens samples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* gen std
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* gen std
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;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-10 18:30:57 -07:00
d33d399c31
Repetitive structs removed for import file extensions ( #6211 )
...
* get rid of repetitive structs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
get rid of more
Signed-off-by: Jess Frazelle <github@jessfraz.com >
add more
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
await the shit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
put it at the root
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix;es
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* kcl-language-server flake
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-10 13:57:12 -07:00
d125efcd60
Bidirectional extrude/revolve ( #6154 )
...
* extend extrude endpoint
* revolve and mocks
* add bounds check to revolve
* kcl examples of new args
* update to 110
* fix mock
* move example to prelude
* change to camelCase
* new prelude tests
* extend just file
* missed change
* change to XY
* redo sim tests
* review changes
* redo markdown
2025-04-10 10:46:10 -04:00
d275995dfe
KCL: Angled line should use keyword args ( #5803 )
...
We continue migrating KCL stdlib functions to use keyword arguments. Next up is the `angledLine` family of functions (except `angledLineThatIntersects, which will be a quick follow-up).
Before vs. after:
`angledLine({angle = 90, length = 3}, %, $edge)`
=> `angledLine(angle = 90, length = 3, tag = $edge)`
`angledLineOfXLength({angle = 90, length = 3}, %, $edge)`
=> `angledLine(angle = 90, lengthX = 3, tag = $edge)`
`angledLineOfYLength({angle = 90, length = 3}, %, $edge)`
=> `angledLine(angle = 90, lengthY = 3, tag = $edge)`
`angledLineToX({angle = 90, length = 3}, %, $edge)`
=> `angledLine(angle = 90, endAbsoluteX = 3, tag = $edge)`
`angledLineToY({angle = 90, length = 3}, %, $edge)`
=> `angledLine(angle = 90, endAbsoluteY = 3, tag = $edge)`
2025-04-09 14:55:15 -05:00
ae9d8be4e4
Don't apply numeric adjustments in arithmetic yet ( #6222 )
...
Don't apply numeric adjustments yet
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-09 14:16:58 +12:00
a31fd608cf
Improve hovers for KCL std lib fns ( #6208 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-09 12:15:12 +12:00
997f539a8c
More numeric type propagations ( #6221 )
...
Last few numeric type propagations
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-09 11:46:54 +12:00
5b653fb558
Change unit conversion functions to operate on input rather than return a conversion factor ( #6181 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-08 02:21:23 +00:00
ababe24b97
Implement polar std function in KCL ( #6180 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-07 15:16:43 -05:00
df6f571294
Stream handling / Stream idle mode v2; a ton of network related changes (ping; scene indicator -> stream indicator, stream resizing (even on pause)) ( #5312 )
...
* Add back stream idle mode
* Shut up codespell
* Correct serialization; only expose at user level
* cargo fmt
* tsc lint fmt
* Move engineStreamMachine as a global actor; tons of more work
* Fix up everything after bumping kittycad/lib
* Remove camera sync
* Use pause/play iconology
* Add back better ping indicator
* wip
* Fix streamIdleMode checkbox being wonky
* yarn fmt
* Massive extinction event for waitForExecutionDone; try to stop projects view switching from crashing
* Clear diagnostics when unmounting code editor!
* wip
* Rework initial root projects dir + deflake many projects tests
* More e2e fixes
* Deflake revolve some revolve tests
* Fix the rest of the mfing tests
* yarn fmt
* yarn lint
* yarn tsc
* Fix tsc after rebase
* wip
* less flaky point and click
* wip
* Fixup after rebase
* Fix more tests
* Fix 2 more
* Fix up named-views tests
* yarn fmt lint tsc
* Fix up new changes
* Get rid of 1 cyclic dependency
* Fix another cyclic mfer!
* fmt
* fmt tsc
* Fix zoom to fit being frigged
* a new list of circular deps
* Remove NetworkHealthIndicator test that was shit
* Fix the bad reload repeat issue kevin started on
* Fix zoom to fit at the right moments...
* Fix cache count numbers in editor test
* Remove a test race - poll window info.
* Qualify fail function
* Try something
* Use scene.connectionEstablished
* Hopefully fix snapshots at least
* Add app console.log
* Fix native menu tests more
* tsc lint
* Fix camera failure
* Try again
* Test attempt number 15345203, action!
* Add back old window detection heuristic
* Remove firstWindow to complete the work of 2342d04fe2
* Tweak some tests for MacOS
* Tweak "set appearance" test for MacOS
Revert this if it messes up any other platform's color checks!
* Are you serious? This was all that needed formatting?
* More color tweaks
Local MacOS and CI MacOS don't agree
* Fixes on apperance e2e test for stream idle branch (#6168 )
pierremtb/stream-idle-revamp-appearance-fixes
* Another apperance fix
* Skip one native menu test to make stream idle green (#6169 )
* pierremtb/stream-idle-revamp-more-fixes
* Fix lint
* Update snapshot for test_generate_settings_docs
---------
Co-authored-by: lee-at-zoo-corp <lee@zoo.dev >
Co-authored-by: Frank Noirot <frankjohnson1993@gmail.com >
Co-authored-by: Pierre Jacquier <pierrejacquier39@gmail.com >
Co-authored-by: Pierre Jacquier <pierre@zoo.dev >
2025-04-07 07:08:31 -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
bc22d888ee
Apply type-directed coercions to arguments in calls of user functions ( #6179 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-07 18:02:46 +12:00
e6ae89ebf9
Erase comment start positions from snapshot tests ( #6178 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-07 17:42:15 +12:00
e7b23e1638
Implement coercion of numeric types for ascription and arithmetic (off by default) ( #6175 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-07 16:13:15 +12:00
38446b5b2a
take things off the batch in a more safe way ( #6171 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-06 03:54:32 +00:00
bfdf8babed
sketching on a mirror2d thats been extruded fixed! ( #6149 )
...
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* snap
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add sample
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 >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* snap
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-04 12:55:21 -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
d38dcb9ba2
Add grouping of module instances in Feature Tree ( #6125 )
...
* Rename operations to be more generic grouping
* Add group enum
* Add module instance groups
* Change to export all operation ts-rs types to the same file
* Fix Feature Tree display of modules to use name
* Ignore clippy warning
* Update output after operation changes
* Change module instances in Feature Tree use to import icon
* Fix error message when attempting to delete module instance
2025-04-04 02:10:39 +00:00
bf6c91932c
Upgrade to rust toolchain 1.86 ( #6134 )
2025-04-03 19:59:26 +00:00
716ed3acb3
Change default project name to 'untitled' ( #5998 )
...
* Change default project name to 'untitled'
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* Clean up
* More renaming
* Fix test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-03 11:38:52 -07:00
aad583be2e
Move axes to std constants; move helix, revolve, and mirror2d to be declared in KCL ( #6105 )
...
Move axes to std constants; move helix, revolve, and mirror2d to be declated in KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-03 09:44:52 +00:00
1fe1cfb397
Syntax sugar booleans (+
and -
) which is intuitive for MEs ( #6124 )
...
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-03 02:13:03 +00:00
96e12b5aba
update transform samples with mesh moving ( #6080 )
...
* update transform samples with mesh moving
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* chjanges
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* update docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-02 15:11:06 -07:00
f1cccc22cd
roll pitch yaw optional, can provide only 1 ( #6115 )
...
* roll pitch yaw optional, can provide only 1
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-02 18:52:28 +00:00
29f8b05f56
Fix to not track operations when loading modules ( #6083 )
2025-04-02 00:34:25 -04:00
af482c30bd
save as bw compatible ( #6088 )
...
* save as bw compatible
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* js side only for bw compatibility changes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* failure for doing wrong thing
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* remove from ts side
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-02 03:39:55 +00:00
964d81dc0e
transform w optional args ( #6095 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-01 14:23:36 -07:00
7d46e7e271
fix api for edge cuts ( #6086 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-01 12:42:11 -04:00
73694563cf
change TyF64 to f64 according to JsonSchema and cleanup docs code ( #6081 )
...
* cleanup gen_std
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanup docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix table
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-01 01:02:48 +00:00
bb4ed59191
Fix patterning in module to not fail when importing function from the module ( #6082 )
...
* Add failing test
* Update output to show execution error
* Fix circular pattern to not error in isolated or mock mode
* Update output after fix
* Add failing test for pattern linear 2D
* Add failing output
* Fix isolated execution in linear patterns
* Update output after linear fix
2025-03-31 23:46:29 +00:00
d8e84cb5e3
Change default tolerance value to not depend on units ( #6055 )
2025-03-31 19:28:15 +00:00
e2b7b22ca9
ctx.close in tests when error on execution ( #6075 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-03-31 10:24:42 -07:00
efc8c82d8b
BREAKING: KCL @settings are the source of truth for units ( #5808 )
2025-03-31 10:56:03 -04:00
1956c14b8a
auto format kcl samples ( #6065 )
...
* recast kcl samples;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* auto format the kcl-samples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-03-30 17:06:36 +00:00
017fac7041
use deterministic ids in more places ( #6064 )
...
* dont redact the ids now that they are deterministic
Signed-off-by: Jess Frazelle <github@jessfraz.com >
pass arouund id generator more
Signed-off-by: Jess Frazelle <github@jessfraz.com >
change the anme space
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates and re-run
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanup old files
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanup old files
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-03-30 04:23:11 +00:00
0bdc50c78f
bump kcl-lib and friends ( #6063 )
...
* bump kcl-lib and friends
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* expose
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* relevant files
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* udpates
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-29 19:26:20 -07: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
51c16d0048
only rust changes reset scene ( #6060 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-03-29 11:43:42 -07:00
49304b9ecd
fix context closes ( #6058 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-03-28 20:31:44 -07:00
358b34de4c
Fix translate scale & better docs ( #6053 )
...
* change translate & scale to be better & docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* autocomplete
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* gen std
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* kcl-samples
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-28 21:14:29 +00:00