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
+10
View File
@@ -98,6 +98,16 @@ export function fallbackSolidColor(shape: WorkplaneShape) {
return "#d41721";
}
export function withHoleMode(shape: WorkplaneShape, hole: boolean, parentColor?: string): WorkplaneShape {
const color = hole ? "#b8c2cc" : (parentColor ?? fallbackSolidColor(shape));
return {
...shape,
hole,
color,
groupedShapes: shape.groupedShapes?.map((child) => withHoleMode(child, hole, parentColor)),
};
}
export function mirrorSign(value?: boolean) {
return value ? -1 : 1;
}