Files
modeling-app/docs/kcl/types
Adam Chalmers 8e624935c2 Divorce JSON and KCL (#4436)
Removes JSON from the KCL object model. Closes https://github.com/KittyCAD/modeling-app/issues/1130 -- it was filed on Nov 27 last year. Hopefully I close it before its one year anniversary.

Changes:

- Removed the UserVal variant from `enum KclValue`. That variant held JSON data.
- Replaced it with several new variants like Number, String, Array (of KCL values), Object (where keys are String and values are KCL values)
- Added a dedicated Sketch variant to KclValue. We used to have a variant like this, but I removed it as an experimental approach to fix this issue. Eventually I decided to undo it and use the approach of this PR instead.
- Removed the `impl_from_arg_via_json` macro, which implemented conversion from KclValue to Rust types by matching the KclValue to its UserVal variant, grabbing the JSON, then deserializing that into the desired Rust type. 
- Instead, replaced it with manual conversion from KclValue to Rust types, using some convenience macros like `field!`
2025-02-05 11:42:53 -05:00
..
2024-09-28 13:19:05 -07:00
2024-09-30 12:39:24 -07:00
2024-09-28 11:51:08 -07:00
2024-09-28 11:51:08 -07:00
2024-09-28 11:51:08 -07:00
2024-09-28 11:51:08 -07:00
2025-02-05 11:42:53 -05:00
2025-02-05 11:42:53 -05:00
2024-09-28 11:51:08 -07:00
2024-10-01 08:50:23 -05:00
2024-09-28 11:51:08 -07:00
2024-09-28 11:51:08 -07:00
2024-09-28 11:51:08 -07:00
2024-10-28 20:52:51 -04:00
2024-09-28 13:19:05 -07:00
2024-09-28 11:51:08 -07:00
2024-09-28 11:51:08 -07:00
2024-09-28 11:51:08 -07:00
2024-09-28 11:51:08 -07:00