Horz/Vert distance constraint with modal workflow (#43)
* button style tweak * Remove duplication constraint ast transforms * giveSketchFnCallTag to return if line already had a tag * remove duplication * update tag name to referenceSegName * Update transform shape to return key details about the transform * add modal to hor vert distance workflow * fix browser env stuff from breaking tests * fmt
This commit is contained in:
@ -32,7 +32,7 @@ export const Toolbar = () => {
|
||||
sketchMode: 'selectFace',
|
||||
})
|
||||
}}
|
||||
className="border m-1 px-1 rounded"
|
||||
className="border m-1 px-1 rounded text-xs"
|
||||
>
|
||||
Start Sketch
|
||||
</button>
|
||||
@ -52,7 +52,7 @@ export const Toolbar = () => {
|
||||
)
|
||||
updateAst(modifiedAst)
|
||||
}}
|
||||
className="border m-1 px-1 rounded"
|
||||
className="border m-1 px-1 rounded text-xs"
|
||||
>
|
||||
SketchOnFace
|
||||
</button>
|
||||
@ -68,7 +68,7 @@ export const Toolbar = () => {
|
||||
position: guiMode.position,
|
||||
})
|
||||
}}
|
||||
className="border m-1 px-1 rounded"
|
||||
className="border m-1 px-1 rounded text-xs"
|
||||
>
|
||||
Edit Sketch
|
||||
</button>
|
||||
@ -88,7 +88,7 @@ export const Toolbar = () => {
|
||||
)
|
||||
updateAst(modifiedAst, pathToExtrudeArg)
|
||||
}}
|
||||
className="border m-1 px-1 rounded"
|
||||
className="border m-1 px-1 rounded text-xs"
|
||||
>
|
||||
ExtrudeSketch
|
||||
</button>
|
||||
@ -106,7 +106,7 @@ export const Toolbar = () => {
|
||||
)
|
||||
updateAst(modifiedAst, pathToExtrudeArg)
|
||||
}}
|
||||
className="border m-1 px-1 rounded"
|
||||
className="border m-1 px-1 rounded text-xs"
|
||||
>
|
||||
ExtrudeSketch (w/o pipe)
|
||||
</button>
|
||||
@ -116,7 +116,7 @@ export const Toolbar = () => {
|
||||
{guiMode.mode === 'sketch' && (
|
||||
<button
|
||||
onClick={() => setGuiMode({ mode: 'default' })}
|
||||
className="border m-1 px-1 rounded"
|
||||
className="border m-1 px-1 rounded text-xs"
|
||||
>
|
||||
Exit sketch
|
||||
</button>
|
||||
@ -130,7 +130,7 @@ export const Toolbar = () => {
|
||||
return (
|
||||
<button
|
||||
key={sketchFnName}
|
||||
className={`border m-1 px-1 rounded ${
|
||||
className={`border m-0.5 px-0.5 rounded text-xs ${
|
||||
guiMode.sketchMode === sketchFnName && 'bg-gray-400'
|
||||
}`}
|
||||
onClick={() =>
|
||||
|
Reference in New Issue
Block a user