c668d40efc
make pipe have a hole ( #4766 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-12-12 01:07:14 +00:00
b7de8e60cf
Sweep in kcl ( #4754 )
...
* 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 >
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest-8-cores)
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest-8-cores)
* empty
* Update src/wasm-lib/kcl/src/docs/mod.rs
Co-authored-by: Jonathan Tran <jonnytran@gmail.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 >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
2024-12-11 20:59:02 +00:00
53d40301dc
start of Appearance function ( #4743 )
...
* initial commit
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 docs
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 more samples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updatres
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* regenerate docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* patterns and appearance samples
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 >
* fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-12-11 01:51:51 +00:00
6366bc4766
KCL: Keyword function calls for stdlib ( #4647 )
...
Part of https://github.com/KittyCAD/modeling-app/issues/4600
Adds support for keyword arguments to the stdlib, and calling stdlib functions with keyword arguments.
So far, I've changed one function: `rem`. Previously you would have used `rem(7, 2)` but now it's `rem(7, divisor: 2)`.
This is a proof-of-concept. If it's approved, we will:
1. Support closures with keyword arguments, and calling them
2. Move the rest of the stdlib to use kw arguments
2024-12-05 14:27:51 -06:00
60a0c811ab
Move parsing files around ( #4626 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2024-12-05 17:56:49 +13:00
43bec115c0
Refactor source ranges into a generic node type ( #4350 )
...
* WIP
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Fix formatting
* Fix yarn build:wasm
* Fix ts_rs bindings
* Fix tsc errors
* Fix wasm TS types
* Add minimal failing test
* Rename field to avoid name collisions
* Remove node wrapper around NonCodeMeta
Trying to fix TS unit test errors deserializing JSON AST in Rust.
* Rename Node to BoxNode
* Fix lints
* Fix lint by boxing literals
* Rename UnboxedNode to Node
* Look at this (photo)Graph *in the voice of Nickelback*
* Update docs
* Update snapshots
* initial trait
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* update docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* gross hack for TagNode
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* extend gross hack
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix EnvRef bullshit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Fix to fail parsing when a tag declarator matches a stdlib function name
* Fix test errors after merging main
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* Confirm
* Change to use simpler map_err
* Add comment
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Nick Cameron <nrc@ncameron.org >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jess Frazelle <github@jessfraz.com >
2024-10-30 20:52:17 +00:00
1efc2b9762
KCL: Pattern repetitions now pattern instances ( #4162 )
...
Josh Gomez requests pattern calculations take the total number of instances,
not the number of extra repetitions to do. This is how we designed the
patternTransform API, but we didn't do that for patternLinear/Circular.
2024-10-15 13:25:03 -07:00
ec8cacb788
KCL: Reduce can take and return any KCL values ( #4094 )
...
Previously it only took Array of Number and could only return Sketch.
Now it has been unshackled from the chains of poor type signatures.
2024-10-04 13:26:16 -05:00
cd91774881
add unit tests for stdlib autocompletes etc ( #4066 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-10-01 13:11:09 -07:00
2a3693651a
KCL stdlib 'map' function ( #4054 )
...
I had to revert https://github.com/KittyCAD/modeling-app/pull/4031 because it broke syntax highlighting. This is the same PR, but updated to fix syntax highlighting.
Highlighting broke because the KCL LSP could not determine how to autocomplete the `map` function. The first argument of `map` is `[KclValue]` and the LSP doesn't know any good suggestions for "any KCL value", so it error'd out. I am using the value `[0..9]` for this case now. Tested that syntax highlighting works again.
2024-10-01 08:50:23 -05:00
f74b436e3d
use the jsonschema::RootSchema instead of accidentally inventing our own ( #4047 )
...
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* empty
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix clippy
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: windows-latest)
* Revert "A snapshot a day keeps the bugs away! 📷 🐛 (OS: windows-latest)"
This reverts commit 64cee26626
.
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-30 12:30:22 -07:00
7ed29e2ce4
more recursive docs types ( #4028 )
...
* more recursive
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: windows-latest)
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: windows-latest)
* 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 >
* add the format
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* get the descriptions again
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-28 11:51:08 -07:00
37bb696a30
preserve order of struct in autocomplete ( #4018 )
...
fix #3110 preserve order of struct in autocomplete
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2024-09-28 01:23:46 +00:00
e50de134b1
renames sketch group/extrude group ( #4016 )
...
* renames
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 >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
udpates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix parse
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix typos
Signed-off-by: Jess Frazelle <github@jessfraz.com >
docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
update tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
empty
* fix;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* new
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add the types pages
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 >
* Look at this (photo)Graph *in the voice of Nickelback*
* empty
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-27 15:44:44 -07:00
6303130e08
kcl std lib docs use handlebars now so making changes should be better (1st pass) ( #4007 )
...
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* start of types docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* add types files
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add links
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* better
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 >
* uodates
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 >
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: ubuntu-latest)
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-27 10:37:46 -04:00