v0.0.36
Release Notes — v0.0.36
Covers changes from v0.0.34 to v0.0.36.
Features
Interactive sketcher
The headline of this release: an interactive sketching toolbar in the viewer. It's a helper for writing sketches faster, not a replacement for the code‑first workflow — it covers the common drawing tools and writes clean, editable code back into your .fluid.js file, but it doesn't expose the full sketch API. Reach for it to rough things out or place geometry by eye, then keep refining in code.
Everything the toolbar produces is plain FluidCAD code, so anything it doesn't cover you can still add or adjust by hand. Geometry that isn't part of the active toolbar set is rendered in a distinct, non‑interactive color so it's always clear what the tools will touch. The toolbar is vertical and grouped, with icons switched to Iconoir.
Parameters
A new param() API turns model inputs into live controls in a dedicated Params panel — change a value and the model re‑renders in place.
import { param } from "fluidcad/core";
const width = param("Width", 40, "number", { min: 10, max: 100, group: "Box" });
const round = param("Rounded corners", true, "checkbox");In local development this is of limited use — you're editing the code anyway, so changing a value in the panel is rarely faster than changing it in the source. Where it pays off is publishing models online (coming soon): parameters become the knobs viewers can turn to customize a published model without touching any code.
Other improvements
copynow transfers ownership of the original shapes to the copy feature.back()skips non‑geometry children when resolving the previous tangent.
Bug Fixes
- Windows: ESM/fork paths now resolve correctly on non‑
C:drives (#52). repeat: a structuralcompareToavoids a crash on unbuilt axis/plane sources during cache comparison.
Docs
- Documented local‑only installation alongside the Windows drive fix.