8f7ef4967f
Update docs
2025-05-07 13:36:42 -05:00
2eeffe92ba
Update fillet+chamfer with new API options
2025-05-07 13:35:33 -05:00
f938364d54
Better, faster typo checker ( #6716 )
...
* Fix typo 'horizonal'
* Fix typos
* Fix more typos
* Fix more typos
* Update CI action
* Fix typos
* Update src/lang/queryAst.test.ts
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
* Update src/lang/queryAst.test.ts
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
* Update typos
* Update snap
---------
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
2025-05-07 12:48:23 -05:00
134ec63610
Add subtitle to docs and fix primitive type links ( #6724 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-05-06 15:33:23 -07:00
1841e63021
Misc docs polishing ( #6712 )
...
* Fake modules for Rust std lib functions
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Include the missing @ in Rust std lib fns
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Move revolve and mirror2d to better modules
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Use docs from KCL mods for type summaries
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Use type docs to describe types from KCL std lib
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-05-06 16:09:59 +12:00
1e056cfd8a
Display numeric units in the variables pane ( #6683 )
2025-05-06 03:40:18 +00:00
9c246d6621
Fix units bug with involuteCircular ( #6711 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-05-06 14:58:53 +12:00
9c52f5b19a
Add tags to Rust std lib functions ( #6701 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-05-06 14:14:11 +12:00
574d6dae7f
Add modules to docs ( #6699 )
...
* Support modules in docs
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* shuffle around directories
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-05-06 11:02:55 +12:00
bc818f10c3
Remove last remnants of legacy positional call ( #6678 )
...
* Remove last remnants of legacy positional call
* Update docs
* Fix segAng()
* Fix more docs
* Update docs again
2025-05-02 20:07:31 -05:00
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
09ebb517d9
Fix link to types.md in docs ( #6653 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-05-02 09:06:43 -07:00
1c697d30ee
Fix to not add extra spaces when formatting call ( #6652 )
2025-05-02 08:16:07 -05:00
6866c9d418
Fix bad links in docs code blocks ( #6649 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-05-02 16:00:27 +12: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
16f5d9c284
Docs improvements ( #6615 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-05-01 08:56:27 -07:00
dee77e814a
remove rust bw compatible settings ( #6085 )
...
regenerate the settings docs
cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-30 19:00:37 +00:00
c050739f41
Some improvements to the boxed signatures in the docs ( #6593 )
...
* Show a more reasonable name in function docs
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Fix buggy docs for union types
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Make types in the docs signatures into links
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-30 16:03:22 +00:00
ccd5b0272d
Add math functions back to the prelude ( #6595 )
...
* Add math functions back to the prelude
* Update output
* Update docs
2025-04-30 11:07:05 -04:00
bae875382c
Replace plane strings with literals ( #6592 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-30 05:13:11 +00:00
644c561815
Declare std::math in KCL (BREAKING) ( #6588 )
...
Declare std::math in KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-30 03:59:19 +00:00
9c29756a38
lint default planes and add a suggestion ( #6587 )
...
lint default planes and other plane cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-30 02:11:02 +00:00
0ea0d1703e
Remove deprecated syntax ( #6561 )
...
* Remove deprecated syntax
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* fix one test
* fix sketch on revolved face test
* fix test: empty-scene default-planes act as expected
* fix up more tests
* another fix
* remove another const
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch >
2025-04-30 13:12:40 +12:00
844f229b5a
Remove trig functions from prelude and change their unit handling (BREAKING) ( #6565 )
...
Remove trig functions from prelude and change their unit handling
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-30 12:40:11 +12:00
aca5fdb521
Remove some deprecated functions from std ( #6531 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-28 20:24:18 -04:00
1bd570ceb9
Remove unnecessary docs ( #6559 )
...
These aren't used anymore
2025-04-28 22:42:01 +00:00
3a23ec1bee
Create std::units module ( #6528 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-29 08:41:31 +12:00
1835e49191
Remove docs for deleted KCL functions ( #6540 )
...
These functions were removed as part of our big 1.0 kwargs work,
so their docs page should have been deleted, but we forgot to.
2025-04-28 14:43:24 +00:00
efba773635
Move operations on solids to be declared in KCL ( #6462 )
...
* Declare chamfer in KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Ignore more in the simulation tests
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Declare fillet in KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Move shell and hollow to KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-28 14:20:38 +12:00
4439229ad2
turn back on the test i tturned off ( #6522 )
...
* random other cahnges
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* turn back on test
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* lots of enhancements
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* mesh test
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* mesh test
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* check panics
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* check panics
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* check panics
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* if running in vitest make single threadedd
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* check if running in vitest
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* console logs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-27 23:54:32 +00: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
0f88598dc0
BREAKING: Migrate math functions to keyword args ( #6491 )
2025-04-26 23:33:41 +00:00
6e115c19d5
KCL: Migrate hole to kwargs ( #6382 )
...
Previously:
`|> hole(circle(radius = 2, center = p), %)`
Now:
`|> subtract2d(tool = circle(radius = 2, center = p))`
2025-04-26 15:31:51 -05:00
50f8131d83
Kwargs: map and reduce ( #6480 )
...
Migrate array's `map`, `reduce` and `push` functions to use keyword arguments.
2025-04-25 19:09:03 -05: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
8f61ee1d2f
Change getOppositeEdge, getNextAdjacentEdge, and getPreviousAdjacentEdge to keyword args ( #6469 )
...
* Change getOppositeEdge, getNextAdjacentEdge, and getPreviousAdjacentEdge to keyword args
* Update generated docs
2025-04-24 12:39:37 -04:00
b02dbd4fe6
Kwargs: leg helpers ( #6459 )
...
legLen, legAngX, legAngY moved to keyword arguments
2025-04-24 09:53:19 -05:00
668f6671a9
BREAKING: Remove angleToMatchLengthX and angleToMatchLengthY ( #6451 )
...
* Remove angleToMatchLengthX and angleToMatchLengthY from constraint code generation
* Change KCL stdlib functions to be deprecated
* Remove references from TS tests
* Remove angleToMatchLengthX and angleToMatchLengthY
* Update docs
* Fix file paths
2025-04-24 14:33:27 +00:00
83a87b046f
Declare std::offsetPlane in KCL ( #6344 )
...
* Declare std::offsetPlane in KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Use two axes to define planes in KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-24 22:01:27 +12:00
510d74f2c7
Add clone ( #5462 )
...
* 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 >
update the extrude idds
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix sample
Signed-off-by: Jess Frazelle <github@jessfraz.com >
better docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix the start and end tag
Signed-off-by: Jess Frazelle <github@jessfraz.com >
better docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
new tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
codespell
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 >
* fix examples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix some stuff
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 >
* add another test for fillet
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Update rust/kcl-lib/src/std/clone.rs
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add sweep test
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* revolve test;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Update rust/kcl-lib/src/std/clone.rs
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
* add another test for fillet
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* allow cloning an imported geometry;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* allow for imported geometry
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 >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
2025-04-24 04:26:09 +00:00
457ab28f74
Appearance import fixes ( #6466 )
...
* fix appearance imports
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix appearance
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-24 00:43:16 +00:00
6bf74379a7
Kwargs: hollow ( #6438 )
2025-04-23 18:35:33 +00:00
a46186573c
Kwargs: profileStart/x/y ( #6439 )
2025-04-23 15:21:58 +00:00
b7385d5f25
Turn on units of measure (BREAKING CHANGE) ( #6343 )
...
* Turn on uom checks
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Convert all lengths to mm for engine calls
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-22 22:58:35 +00:00
f99e44e371
Kwargs: assert functions ( #6406 )
...
Closes https://github.com/KittyCAD/modeling-app/issues/6408
2025-04-22 17:44:52 +00:00
8be36d3d16
Update known-issues.md ( #6428 )
...
* Update known-issues.md
* Update known-issues.md
Little more description.
---------
Co-authored-by: Josh Gomez <114548659+jgomez720@users.noreply.github.com >
2025-04-22 17:18:35 +00:00
e4e18dfd4b
Coerce the result of a function call to the function's return type ( #6309 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-22 11:00:53 +12:00