Closes https://github.com/KittyCAD/engine/issues/3494. Thanks to @nadr0 for helping on the JS side. If users set their units, the grid will stop auto scaling, and instead will be set to 10 of whatever unit they used. If users set their units, and those units are metric, then it'll include a scale bar (see screenshot). Imperial units won't have that bar. This behaviour is configurable via settings. ## Limitations - The scale bar below the grid cannot be disabled in metric units, and cannot be enabled in imperial units <img width="1690" alt="Screenshot 2025-06-05 at 7 51 41 PM" src="https://github.com/user-attachments/assets/c597087c-f96d-4c30-95f4-b3d8ba2b5567" />
Rust Crates
Releasing
- Make sure your working directory is this directory.
- Bump the versions of the crates:
just bump-kcl-crate-versions
- Commit the changes:
git add . git commit -m "Bump versions"
- Push the changes and get your PR approved.
- Publish the crates:
just publish-kcl {version}
- This will publish the relevant crates and push a new tag with the prefix
kcl-
. DO NOT SET THE PREFIX TOkcl-
when you run the command. Thejust
command will do that for you. - The tag will then trigger the release of
kcl-python-bindings
andkcl-language-server
.
- This will publish the relevant crates and push a new tag with the prefix