Changelog
Version 1.1.0
Shapes now update immediately
When you change parameters, shapes will now start to update immediately without needing to click on "refresh". This was now possible to do because the code is executed in a web worker.
Show dimensions of generated geometry
There is now a collapsible panel that shows the dimensions and volume of the generated solid. The panel is located below the parameter inputs.
Improved parameter inputs
You can now update parameter values by dragging the up and down arrow on the left side of number fields. Fields that contain an expression now show a small indicator icon.
Shapes can now mark parameters as "advanced" to make them hidden by default. This is useful for parameters that are not needed in most cases, but can be useful for advanced users. You can show them by opening the "Show advanced parameters" panel.
One shape that already uses advanced parameters is Hex bit handle.
And shapes can now define "read-only" parameters that are not editable in the editor. One shape that uses this already is the Cuboid with holes.
Better expression evaluation
The expressions that use mathjs
are now evaluated in a more efficient and robust way. And you will now see
an error message if the expression is invalid.
Other improvements and bug fixes
- Fixed some JavaScript related rounding issues when using
mathjs
to evaluate expressions. - Fixed offset controls for drilling machine processing step.
- Added this changelog page to document the changes in the project.
Version 1.0.0
While this project has been in development (and online) for some time, this release got labeled as "1.0.0" to signify a first stable version.
ES6 Syntax
JSCAD designs now use ES6 syntax and published designs are transpiled to ES5 for compatibility.
You can use designs in ES5 like this:
const coboidModule = require("https://stl.parts/cjs/@stl.parts/cuboid.js");
function main(options) {
return coboidModule.default(options);
}
Other New Features and Improvements
- In the editor, you can now export (and import) your work as a JSON file.
- Parameters in the editor can now easily be reordered with drag and drop.
- The code is now executed in a web worker, for better performance and responsiveness.
- Added a button that allows you to open any design in jscad.app.
- The way processing steps are applied has been improved.
- Processing steps can be reordered and deleted.
- Added processing step "Cutting Machine" and "Translate" to the list of available processing steps.
- The "Center on ground" option (that is enabled by default) can now be disabled to see the shape in its true position. This is helpful when working with Processing steps.