release: publish v0.6.0

This commit is contained in:
Formsmith
2026-07-11 20:34:13 +03:00
parent 458538d3d4
commit 20731043e4
32 changed files with 1707 additions and 320 deletions
+24
View File
@@ -16,6 +16,7 @@ import {
serializeShapesForSync,
shapeDepth,
shapeWidth,
withHoleMode,
workplaneShapesEqual,
} from "@/lib/workplaneShapes";
@@ -114,6 +115,29 @@ describe("workplane shape helpers", () => {
expect(fallbackSolidColor(shape({ kind: "box" }))).toBe("#d41721");
});
it("applies an explicitly selected group color to every nested child", () => {
const grouped = shape({
kind: "mesh",
color: "#111111",
groupedShapes: [
shape({ id: "child-box", color: "#222222" }),
shape({
id: "child-group",
kind: "mesh",
color: "#333333",
groupedShapes: [shape({ id: "grandchild", kind: "sphere", color: "#444444" })],
}),
],
});
const recolored = withHoleMode(grouped, false, "#12abef");
expect(recolored.color).toBe("#12abef");
expect(recolored.groupedShapes?.map((child) => child.color)).toEqual(["#12abef", "#12abef"]);
expect(recolored.groupedShapes?.[1].groupedShapes?.[0].color).toBe("#12abef");
expect(grouped.groupedShapes?.[0].color).toBe("#222222");
});
it("can resize the body while preserving fillet and chamfer boundary distances", () => {
const modified = shape({
kind: "mesh",