functional sketch working (#26)
* functional sketch working With old sketch block still there * get all version of lines working with add line and update line * remove old ui state types * some clean up * rename some things * add todo for multi cursor * shorten useStore repitition * small type improvement * big overhaul to group sketch function and they ast modifying helpers together * unneeded tweak * ruthlessly rip out sketch logic * clean up path keyword * getting sketch on face working again with all the new sketch line types * add a bunch of tests and re-arrage file structure
This commit is contained in:
@ -11,17 +11,15 @@ const myFn = (a) => {
|
||||
}
|
||||
const otherVar = myFn(5)
|
||||
|
||||
sketch theExtrude {
|
||||
lineTo(-2.4, myVar)
|
||||
lineTo(-0.76, otherVar)
|
||||
}
|
||||
const theExtrude = startSketchAt([0, 0])
|
||||
|> lineTo([-2.4, myVar], %)
|
||||
|> lineTo([-0.76, otherVar], %)
|
||||
|> extrude(4, %)
|
||||
|
||||
sketch theSketch {
|
||||
lineTo(-3.35, 0.17)
|
||||
lineTo(0.98, 5.16)
|
||||
lineTo(2.15, 4.32)
|
||||
}
|
||||
const theSketch = startSketchAt([0, 0])
|
||||
|> lineTo([-3.35, 0.17], %)
|
||||
|> lineTo([0.98, 5.16], %)
|
||||
|> lineTo([2.15, 4.32], %)
|
||||
|> rx(90, %)
|
||||
show(theExtrude, theSketch)`
|
||||
const tokens = lexer(code)
|
||||
|
Reference in New Issue
Block a user