Add reversible edge tools and view cube fixes

This commit is contained in:
Formsmith
2026-06-28 16:06:01 +03:00
parent 7c93f627a0
commit c3ed07a32e
16 changed files with 4508 additions and 106 deletions
@@ -202,6 +202,7 @@ export function ShapeInspector({
onClose,
onSnapChange,
onSnapOpenChange,
onEditSketch,
}: {
shape: WorkplaneShape;
snap: GridSize;
@@ -211,6 +212,7 @@ export function ShapeInspector({
onClose: () => void;
onSnapChange: Dispatch<SetStateAction<GridSize>>;
onSnapOpenChange: Dispatch<SetStateAction<boolean>>;
onEditSketch?: () => void;
}) {
const solidColor = shape.hole ? fallbackSolidColor(shape) : shape.color;
const locked = Boolean(shape.locked);
@@ -302,6 +304,12 @@ export function ShapeInspector({
</div>
) : null}
{shape.sketchProfile && onEditSketch ? (
<button className="edit-sketch-button" type="button" disabled={locked} onClick={onEditSketch}>
Edit sketch
</button>
) : null}
<div className="property-card">
<button
className="property-card-header"