Remove start sketch at (#5586)
* remove start sketch at Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
		| @ -1,7 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Artifact commands parametric_with_tan_arc.kcl | ||||
| snapshot_kind: text | ||||
| --- | ||||
| [ | ||||
|   { | ||||
| @ -286,7 +285,7 @@ snapshot_kind: text | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       239, | ||||
|       260, | ||||
|       256, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -314,8 +313,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       239, | ||||
|       260, | ||||
|       262, | ||||
|       287, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -334,8 +333,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       239, | ||||
|       260, | ||||
|       262, | ||||
|       287, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -345,8 +344,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       239, | ||||
|       260, | ||||
|       262, | ||||
|       287, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -362,8 +361,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       293, | ||||
|       320, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -383,8 +382,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       299, | ||||
|       350, | ||||
|       326, | ||||
|       377, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -403,8 +402,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       356, | ||||
|       385, | ||||
|       383, | ||||
|       412, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -424,8 +423,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       391, | ||||
|       418, | ||||
|       445, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -445,8 +444,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       424, | ||||
|       452, | ||||
|       451, | ||||
|       479, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -466,8 +465,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       458, | ||||
|       541, | ||||
|       485, | ||||
|       568, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -486,8 +485,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       547, | ||||
|       575, | ||||
|       574, | ||||
|       602, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -507,8 +506,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       581, | ||||
|       589, | ||||
|       608, | ||||
|       616, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -519,8 +518,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       581, | ||||
|       589, | ||||
|       608, | ||||
|       616, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -530,8 +529,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -550,8 +549,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -564,8 +563,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -575,8 +574,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -587,8 +586,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -600,8 +599,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -614,8 +613,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -628,8 +627,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -642,8 +641,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -656,8 +655,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -670,8 +669,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -684,8 +683,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -698,8 +697,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -712,8 +711,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -726,8 +725,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -740,8 +739,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -754,8 +753,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -768,8 +767,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -782,8 +781,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -796,8 +795,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
| @ -810,8 +809,8 @@ snapshot_kind: text | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "command": { | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart parametric_with_tan_arc.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
|  | ||||
| @ -1,19 +1,19 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[239, 260, 0]"] | ||||
|     3["Segment<br>[266, 293, 0]"] | ||||
|     4["Segment<br>[299, 350, 0]"] | ||||
|     5["Segment<br>[356, 385, 0]"] | ||||
|     6["Segment<br>[391, 418, 0]"] | ||||
|     7["Segment<br>[424, 452, 0]"] | ||||
|     8["Segment<br>[458, 541, 0]"] | ||||
|     9["Segment<br>[547, 575, 0]"] | ||||
|     10["Segment<br>[581, 589, 0]"] | ||||
|     2["Path<br>[262, 287, 0]"] | ||||
|     3["Segment<br>[293, 320, 0]"] | ||||
|     4["Segment<br>[326, 377, 0]"] | ||||
|     5["Segment<br>[383, 412, 0]"] | ||||
|     6["Segment<br>[418, 445, 0]"] | ||||
|     7["Segment<br>[451, 479, 0]"] | ||||
|     8["Segment<br>[485, 568, 0]"] | ||||
|     9["Segment<br>[574, 602, 0]"] | ||||
|     10["Segment<br>[608, 616, 0]"] | ||||
|     11[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[239, 260, 0]"] | ||||
|   12["Sweep Extrusion<br>[595, 618, 0]"] | ||||
|   1["Plane<br>[239, 256, 0]"] | ||||
|   12["Sweep Extrusion<br>[622, 645, 0]"] | ||||
|   13[Wall] | ||||
|   14[Wall] | ||||
|   15[Wall] | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of parsing parametric_with_tan_arc.kcl | ||||
| --- | ||||
| { | ||||
| @ -366,7 +366,7 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 618, | ||||
|           "end": 645, | ||||
|           "id": { | ||||
|             "end": 236, | ||||
|             "name": "bracket", | ||||
| @ -375,14 +375,35 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|           }, | ||||
|           "init": { | ||||
|             "body": [ | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 255, | ||||
|                     "name": "XY", | ||||
|                     "start": 253, | ||||
|                     "type": "Identifier", | ||||
|                     "type": "Identifier" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 252, | ||||
|                   "name": "startSketchOn", | ||||
|                   "start": 239, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 256, | ||||
|                 "start": 239, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 255, | ||||
|                         "end": 279, | ||||
|                         "raw": "0", | ||||
|                         "start": 254, | ||||
|                         "start": 278, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -391,9 +412,9 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 258, | ||||
|                         "end": 282, | ||||
|                         "raw": "0", | ||||
|                         "start": 257, | ||||
|                         "start": 281, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -402,20 +423,26 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 259, | ||||
|                     "start": 253, | ||||
|                     "end": 283, | ||||
|                     "start": 277, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 286, | ||||
|                     "start": 285, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 252, | ||||
|                   "name": "startSketchAt", | ||||
|                   "start": 239, | ||||
|                   "end": 276, | ||||
|                   "name": "startProfileAt", | ||||
|                   "start": 262, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 260, | ||||
|                 "start": 239, | ||||
|                 "end": 287, | ||||
|                 "start": 262, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -430,9 +457,9 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 279, | ||||
|                           "end": 306, | ||||
|                           "raw": "0", | ||||
|                           "start": 278, | ||||
|                           "start": 305, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -441,28 +468,28 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 291, | ||||
|                           "end": 318, | ||||
|                           "name": "wallMountL", | ||||
|                           "start": 281, | ||||
|                           "start": 308, | ||||
|                           "type": "Identifier", | ||||
|                           "type": "Identifier" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 292, | ||||
|                       "start": 277, | ||||
|                       "end": 319, | ||||
|                       "start": 304, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 270, | ||||
|                   "end": 297, | ||||
|                   "name": "line", | ||||
|                   "start": 266, | ||||
|                   "start": 293, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 293, | ||||
|                 "start": 266, | ||||
|                 "end": 320, | ||||
|                 "start": 293, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -470,40 +497,40 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 346, | ||||
|                     "end": 373, | ||||
|                     "properties": [ | ||||
|                       { | ||||
|                         "end": 331, | ||||
|                         "end": 358, | ||||
|                         "key": { | ||||
|                           "end": 321, | ||||
|                           "end": 348, | ||||
|                           "name": "radius", | ||||
|                           "start": 315, | ||||
|                           "start": 342, | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         "start": 315, | ||||
|                         "start": 342, | ||||
|                         "type": "ObjectProperty", | ||||
|                         "value": { | ||||
|                           "end": 331, | ||||
|                           "end": 358, | ||||
|                           "name": "filletR", | ||||
|                           "start": 324, | ||||
|                           "start": 351, | ||||
|                           "type": "Identifier", | ||||
|                           "type": "Identifier" | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 344, | ||||
|                         "end": 371, | ||||
|                         "key": { | ||||
|                           "end": 339, | ||||
|                           "end": 366, | ||||
|                           "name": "offset", | ||||
|                           "start": 333, | ||||
|                           "start": 360, | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         "start": 333, | ||||
|                         "start": 360, | ||||
|                         "type": "ObjectProperty", | ||||
|                         "value": { | ||||
|                           "end": 344, | ||||
|                           "end": 371, | ||||
|                           "raw": "90", | ||||
|                           "start": 342, | ||||
|                           "start": 369, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -513,25 +540,25 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "start": 313, | ||||
|                     "start": 340, | ||||
|                     "type": "ObjectExpression", | ||||
|                     "type": "ObjectExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 349, | ||||
|                     "start": 348, | ||||
|                     "end": 376, | ||||
|                     "start": 375, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 312, | ||||
|                   "end": 339, | ||||
|                   "name": "tangentialArc", | ||||
|                   "start": 299, | ||||
|                   "start": 326, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 350, | ||||
|                 "start": 299, | ||||
|                 "end": 377, | ||||
|                 "start": 326, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -547,22 +574,22 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 380, | ||||
|                             "end": 407, | ||||
|                             "name": "shelfMountL", | ||||
|                             "start": 369, | ||||
|                             "start": 396, | ||||
|                             "type": "Identifier", | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 380, | ||||
|                           "end": 407, | ||||
|                           "operator": "-", | ||||
|                           "start": 368, | ||||
|                           "start": 395, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 383, | ||||
|                           "end": 410, | ||||
|                           "raw": "0", | ||||
|                           "start": 382, | ||||
|                           "start": 409, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -571,21 +598,21 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 384, | ||||
|                       "start": 367, | ||||
|                       "end": 411, | ||||
|                       "start": 394, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 360, | ||||
|                   "end": 387, | ||||
|                   "name": "line", | ||||
|                   "start": 356, | ||||
|                   "start": 383, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 385, | ||||
|                 "start": 356, | ||||
|                 "end": 412, | ||||
|                 "start": 383, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -601,9 +628,9 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 404, | ||||
|                           "end": 431, | ||||
|                           "raw": "0", | ||||
|                           "start": 403, | ||||
|                           "start": 430, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -613,34 +640,34 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                         }, | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 416, | ||||
|                             "end": 443, | ||||
|                             "name": "thickness", | ||||
|                             "start": 407, | ||||
|                             "start": 434, | ||||
|                             "type": "Identifier", | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 416, | ||||
|                           "end": 443, | ||||
|                           "operator": "-", | ||||
|                           "start": 406, | ||||
|                           "start": 433, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 417, | ||||
|                       "start": 402, | ||||
|                       "end": 444, | ||||
|                       "start": 429, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 395, | ||||
|                   "end": 422, | ||||
|                   "name": "line", | ||||
|                   "start": 391, | ||||
|                   "start": 418, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 418, | ||||
|                 "start": 391, | ||||
|                 "end": 445, | ||||
|                 "start": 418, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -656,16 +683,16 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 447, | ||||
|                           "end": 474, | ||||
|                           "name": "shelfMountL", | ||||
|                           "start": 436, | ||||
|                           "start": 463, | ||||
|                           "type": "Identifier", | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 450, | ||||
|                           "end": 477, | ||||
|                           "raw": "0", | ||||
|                           "start": 449, | ||||
|                           "start": 476, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -674,21 +701,21 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 451, | ||||
|                       "start": 435, | ||||
|                       "end": 478, | ||||
|                       "start": 462, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 428, | ||||
|                   "end": 455, | ||||
|                   "name": "line", | ||||
|                   "start": 424, | ||||
|                   "start": 451, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 452, | ||||
|                 "start": 424, | ||||
|                 "end": 479, | ||||
|                 "start": 451, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -696,55 +723,55 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 537, | ||||
|                     "end": 564, | ||||
|                     "properties": [ | ||||
|                       { | ||||
|                         "end": 509, | ||||
|                         "end": 536, | ||||
|                         "key": { | ||||
|                           "end": 487, | ||||
|                           "end": 514, | ||||
|                           "name": "radius", | ||||
|                           "start": 481, | ||||
|                           "start": 508, | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         "start": 481, | ||||
|                         "start": 508, | ||||
|                         "type": "ObjectProperty", | ||||
|                         "value": { | ||||
|                           "end": 509, | ||||
|                           "end": 536, | ||||
|                           "left": { | ||||
|                             "end": 497, | ||||
|                             "end": 524, | ||||
|                             "name": "filletR", | ||||
|                             "start": 490, | ||||
|                             "start": 517, | ||||
|                             "type": "Identifier", | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "operator": "-", | ||||
|                           "right": { | ||||
|                             "end": 509, | ||||
|                             "end": 536, | ||||
|                             "name": "thickness", | ||||
|                             "start": 500, | ||||
|                             "start": 527, | ||||
|                             "type": "Identifier", | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "start": 490, | ||||
|                           "start": 517, | ||||
|                           "type": "BinaryExpression", | ||||
|                           "type": "BinaryExpression" | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 530, | ||||
|                         "end": 557, | ||||
|                         "key": { | ||||
|                           "end": 524, | ||||
|                           "end": 551, | ||||
|                           "name": "offset", | ||||
|                           "start": 518, | ||||
|                           "start": 545, | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         "start": 518, | ||||
|                         "start": 545, | ||||
|                         "type": "ObjectProperty", | ||||
|                         "value": { | ||||
|                           "argument": { | ||||
|                             "end": 530, | ||||
|                             "end": 557, | ||||
|                             "raw": "90", | ||||
|                             "start": 528, | ||||
|                             "start": 555, | ||||
|                             "type": "Literal", | ||||
|                             "type": "Literal", | ||||
|                             "value": { | ||||
| @ -752,33 +779,33 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                               "suffix": "None" | ||||
|                             } | ||||
|                           }, | ||||
|                           "end": 530, | ||||
|                           "end": 557, | ||||
|                           "operator": "-", | ||||
|                           "start": 527, | ||||
|                           "start": 554, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "start": 472, | ||||
|                     "start": 499, | ||||
|                     "type": "ObjectExpression", | ||||
|                     "type": "ObjectExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 540, | ||||
|                     "start": 539, | ||||
|                     "end": 567, | ||||
|                     "start": 566, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 471, | ||||
|                   "end": 498, | ||||
|                   "name": "tangentialArc", | ||||
|                   "start": 458, | ||||
|                   "start": 485, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 541, | ||||
|                 "start": 458, | ||||
|                 "end": 568, | ||||
|                 "start": 485, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -793,9 +820,9 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 560, | ||||
|                           "end": 587, | ||||
|                           "raw": "0", | ||||
|                           "start": 559, | ||||
|                           "start": 586, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -805,34 +832,34 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                         }, | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 573, | ||||
|                             "end": 600, | ||||
|                             "name": "wallMountL", | ||||
|                             "start": 563, | ||||
|                             "start": 590, | ||||
|                             "type": "Identifier", | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 573, | ||||
|                           "end": 600, | ||||
|                           "operator": "-", | ||||
|                           "start": 562, | ||||
|                           "start": 589, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 574, | ||||
|                       "start": 558, | ||||
|                       "end": 601, | ||||
|                       "start": 585, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 551, | ||||
|                   "end": 578, | ||||
|                   "name": "line", | ||||
|                   "start": 547, | ||||
|                   "start": 574, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 575, | ||||
|                 "start": 547, | ||||
|                 "end": 602, | ||||
|                 "start": 574, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -840,20 +867,20 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 588, | ||||
|                     "start": 587, | ||||
|                     "end": 615, | ||||
|                     "start": 614, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 586, | ||||
|                   "end": 613, | ||||
|                   "name": "close", | ||||
|                   "start": 581, | ||||
|                   "start": 608, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 589, | ||||
|                 "start": 581, | ||||
|                 "end": 616, | ||||
|                 "start": 608, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -866,28 +893,28 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|                       "name": "length" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 617, | ||||
|                       "end": 644, | ||||
|                       "name": "width", | ||||
|                       "start": 612, | ||||
|                       "start": 639, | ||||
|                       "type": "Identifier", | ||||
|                       "type": "Identifier" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 602, | ||||
|                   "end": 629, | ||||
|                   "name": "extrude", | ||||
|                   "start": 595, | ||||
|                   "start": 622, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 618, | ||||
|                 "start": 595, | ||||
|                 "end": 645, | ||||
|                 "start": 622, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
|               } | ||||
|             ], | ||||
|             "end": 618, | ||||
|             "end": 645, | ||||
|             "start": 239, | ||||
|             "type": "PipeExpression", | ||||
|             "type": "PipeExpression" | ||||
| @ -895,14 +922,14 @@ description: Result of parsing parametric_with_tan_arc.kcl | ||||
|           "start": 229, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 618, | ||||
|         "end": 645, | ||||
|         "kind": "const", | ||||
|         "start": 229, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 619, | ||||
|     "end": 646, | ||||
|     "nonCodeMeta": { | ||||
|       "nonCodeNodes": { | ||||
|         "0": [ | ||||
|  | ||||
| @ -8,7 +8,8 @@ filletR = thickness * 2 | ||||
| shelfMountL = 9 | ||||
| wallMountL = 8 | ||||
|  | ||||
| bracket = startSketchAt([0, 0]) | ||||
| bracket = startSketchOn(XY) | ||||
|   |> startProfileAt([0, 0], %) | ||||
|   |> line(end = [0, wallMountL]) | ||||
|   |> tangentialArc({ radius = filletR, offset = 90 }, %) | ||||
|   |> line(end = [-shelfMountL, 0]) | ||||
|  | ||||
| @ -1,8 +1,31 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Operations executed parametric_with_tan_arc.kcl | ||||
| --- | ||||
| [ | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "Plane", | ||||
|           "artifact_id": "[uuid]" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           253, | ||||
|           255, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       239, | ||||
|       256, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
| @ -20,16 +43,16 @@ description: Operations executed parametric_with_tan_arc.kcl | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           612, | ||||
|           617, | ||||
|           639, | ||||
|           644, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       595, | ||||
|       618, | ||||
|       622, | ||||
|       645, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
| --- | ||||
| { | ||||
| @ -36,8 +36,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             266, | ||||
|             293, | ||||
|             320, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
| @ -47,8 +47,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             299, | ||||
|             350, | ||||
|             326, | ||||
|             377, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
| @ -58,8 +58,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             356, | ||||
|             385, | ||||
|             383, | ||||
|             412, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
| @ -69,8 +69,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             391, | ||||
|             418, | ||||
|             445, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
| @ -80,8 +80,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             424, | ||||
|             452, | ||||
|             451, | ||||
|             479, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
| @ -91,8 +91,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             458, | ||||
|             541, | ||||
|             485, | ||||
|             568, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
| @ -102,8 +102,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             547, | ||||
|             575, | ||||
|             574, | ||||
|             602, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
| @ -113,8 +113,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             581, | ||||
|             589, | ||||
|             608, | ||||
|             616, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
| @ -129,8 +129,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 266, | ||||
|                 293, | ||||
|                 320, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
| @ -152,8 +152,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 299, | ||||
|                 350, | ||||
|                 326, | ||||
|                 377, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
| @ -180,8 +180,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 356, | ||||
|                 385, | ||||
|                 383, | ||||
|                 412, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
| @ -203,8 +203,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 391, | ||||
|                 418, | ||||
|                 445, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
| @ -226,8 +226,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 424, | ||||
|                 452, | ||||
|                 451, | ||||
|                 479, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
| @ -249,8 +249,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 458, | ||||
|                 541, | ||||
|                 485, | ||||
|                 568, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
| @ -277,8 +277,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 547, | ||||
|                 575, | ||||
|                 574, | ||||
|                 602, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
| @ -300,8 +300,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 581, | ||||
|                 589, | ||||
|                 608, | ||||
|                 616, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
| @ -366,8 +366,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               239, | ||||
|               260, | ||||
|               262, | ||||
|               287, | ||||
|               0 | ||||
|             ] | ||||
|           } | ||||
| @ -380,8 +380,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|         "__meta": [ | ||||
|           { | ||||
|             "sourceRange": [ | ||||
|               239, | ||||
|               260, | ||||
|               262, | ||||
|               287, | ||||
|               0 | ||||
|             ] | ||||
|           } | ||||
| @ -396,8 +396,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl | ||||
|       "__meta": [ | ||||
|         { | ||||
|           "sourceRange": [ | ||||
|             239, | ||||
|             260, | ||||
|             262, | ||||
|             287, | ||||
|             0 | ||||
|           ] | ||||
|         } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user