Compare commits
1 Commits
v0.51.0
...
achalmers/
| Author | SHA1 | Date | |
|---|---|---|---|
| aa79f5b45c |
128
ret0.json
Normal file
128
ret0.json
Normal file
@ -0,0 +1,128 @@
|
||||
{
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "8586aa5a-2963-4725-9f61-e509fd821ec0",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
80.0,
|
||||
100.0
|
||||
],
|
||||
"to": [
|
||||
80.0,
|
||||
99.99999999999999
|
||||
],
|
||||
"name": "arc-b",
|
||||
"__geoMeta": {
|
||||
"id": "6e85dd35-e614-4848-8adb-9541efa02e82",
|
||||
"sourceRange": [
|
||||
667,
|
||||
693
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
80.0,
|
||||
99.99999999999999
|
||||
],
|
||||
"to": [
|
||||
80.0,
|
||||
100.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "a6df3a20-8643-4d54-ab26-4e5908f66e08",
|
||||
"sourceRange": [
|
||||
699,
|
||||
707
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "face",
|
||||
"id": "f4dd7ea7-d6c5-42a8-9d76-579dbcef0d83",
|
||||
"value": "b",
|
||||
"sketchGroupId": "6b5ff2df-9fd9-41b0-a155-04051be2ab84",
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"faceId": "3ade06b0-f81f-4e2d-9b94-5b0c648533a9",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
578,
|
||||
599
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
80.0,
|
||||
100.0
|
||||
],
|
||||
"to": [
|
||||
80.0,
|
||||
100.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "dd2f4ffb-dfc0-49c8-806b-74959306f440",
|
||||
"sourceRange": [
|
||||
605,
|
||||
661
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "f4dd7ea7-d6c5-42a8-9d76-579dbcef0d83",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
605,
|
||||
661
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
128
ret1.json
Normal file
128
ret1.json
Normal file
@ -0,0 +1,128 @@
|
||||
{
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "40e761e2-cd8b-4353-8305-dddf1c015403",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
80.0,
|
||||
100.0
|
||||
],
|
||||
"to": [
|
||||
80.0,
|
||||
99.99999999999999
|
||||
],
|
||||
"name": "arc-a",
|
||||
"__geoMeta": {
|
||||
"id": "e80922aa-779f-41c9-ae5d-e5b9352d8b27",
|
||||
"sourceRange": [
|
||||
667,
|
||||
693
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
80.0,
|
||||
99.99999999999999
|
||||
],
|
||||
"to": [
|
||||
80.0,
|
||||
100.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "ea01affc-f9e8-4ae0-be4c-adba8812ba75",
|
||||
"sourceRange": [
|
||||
699,
|
||||
707
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "face",
|
||||
"id": "e0128ab9-1f92-4ab5-8eed-d2d56baa541d",
|
||||
"value": "a",
|
||||
"sketchGroupId": "6b5ff2df-9fd9-41b0-a155-04051be2ab84",
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"faceId": "dc7dfae8-def1-494f-998a-baa83e361cf3",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
578,
|
||||
599
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
80.0,
|
||||
100.0
|
||||
],
|
||||
"to": [
|
||||
80.0,
|
||||
100.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "df18897b-d332-4286-a6f9-1ab50f66d69c",
|
||||
"sourceRange": [
|
||||
605,
|
||||
661
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "e0128ab9-1f92-4ab5-8eed-d2d56baa541d",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
605,
|
||||
661
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
716
src/wasm-lib/09ytV0I.json
Normal file
716
src/wasm-lib/09ytV0I.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "1dd5cde1-3429-4f9b-a268-825b5193c192",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "bcd1fe9f-63d3-469d-8460-9344dacb67f3",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "eee9e475-dfc3-44dd-9bf6-cf40b2ea18b8",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "67da5ec0-9774-43e8-bd8b-00b7e2814dd7",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "7abd8be4-ddbf-4198-b3e4-068902092c95",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "b96c38b8-b3e4-4fc5-a1fc-220085433c5e",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "7abd8be4-ddbf-4198-b3e4-068902092c95",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1215
src/wasm-lib/27WzMO2.json
Normal file
1215
src/wasm-lib/27WzMO2.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/2UzAFAS.json
Normal file
716
src/wasm-lib/2UzAFAS.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "fcc9bc62-03fa-4d51-aa8b-2be5e83440f7",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "79f2be94-5c00-4a25-9fa2-b0bd148072f0",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "a19865aa-8cf1-487b-a2d2-8861c4054ce4",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "ff20a1f3-3535-482b-9fdc-42a01e7e009a",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "fcaf2842-2e4d-4db7-8554-078cd5a61284",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "949aab3c-33c2-47d7-a19c-bde1c93c9755",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "fcaf2842-2e4d-4db7-8554-078cd5a61284",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
716
src/wasm-lib/310c8mq.json
Normal file
716
src/wasm-lib/310c8mq.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "9d764874-d30d-4ec4-864b-db911663e148",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "ea64086f-d1ad-40c8-a4f3-64c0a78039ca",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "f56b21b2-2695-4868-985d-2c90d70bff1f",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "4f8a93ff-3bfc-4d44-b4a0-26e33654b1a6",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "0e3a111f-c69a-4f7a-8ac8-9494268b8535",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "3a401cba-3ae0-4536-9426-98462edba88b",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "0e3a111f-c69a-4f7a-8ac8-9494268b8535",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
716
src/wasm-lib/3zpA9Wb.json
Normal file
716
src/wasm-lib/3zpA9Wb.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "2bd1c522-7573-498d-848e-ffc8875bb2f8",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "8e4750a3-06c2-4021-b925-1f79a3b4ed58",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "4f8d035d-f07e-408d-baee-eac9560e0ff7",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "bf45d9cc-d829-4693-8e57-02d3d2c9c251",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "c7c076fc-df46-4260-8da6-8e81b57aba3b",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "adeb0ae4-9de8-445e-8842-933ac4e360a8",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "c7c076fc-df46-4260-8da6-8e81b57aba3b",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1215
src/wasm-lib/5dFkr2H.json
Normal file
1215
src/wasm-lib/5dFkr2H.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/68SAQNl.json
Normal file
1110
src/wasm-lib/68SAQNl.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/6r2dLT3.json
Normal file
1215
src/wasm-lib/6r2dLT3.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/76tBa9P.json
Normal file
716
src/wasm-lib/76tBa9P.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "af95c32f-3719-42b5-8af0-06baf432ed5e",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "b00d1ce0-389f-4121-a4c3-1b77270cd592",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "dccd0974-9a7e-43ac-b70a-8696fdab9849",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "54cf2327-855a-4407-b878-3f41c3beb55b",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "0a80b628-c523-45e2-ab1b-775da060c8d2",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "11ffea84-a89b-432e-b693-447ffbba0d2f",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "0a80b628-c523-45e2-ab1b-775da060c8d2",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1180
src/wasm-lib/7XrN3bX.json
Normal file
1180
src/wasm-lib/7XrN3bX.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/7oBhzWT.json
Normal file
1110
src/wasm-lib/7oBhzWT.json
Normal file
File diff suppressed because it is too large
Load Diff
1136
src/wasm-lib/7wbRkeY.json
Normal file
1136
src/wasm-lib/7wbRkeY.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/841Tj6G.json
Normal file
1215
src/wasm-lib/841Tj6G.json
Normal file
File diff suppressed because it is too large
Load Diff
1180
src/wasm-lib/8RUCpaz.json
Normal file
1180
src/wasm-lib/8RUCpaz.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/8WFFqL0.json
Normal file
716
src/wasm-lib/8WFFqL0.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "55acf4ff-4bb9-4e23-997c-267ee0a98530",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "8740c8db-3c48-4f8a-a99d-5cccd615c1bd",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "ac4fc064-fe7c-4c4d-ba99-0ded33174cec",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "7513ee3e-0c02-494a-ad73-47c12e6cf9c1",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "8a455f41-7a4c-4817-bb1f-c676bd000cb2",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "60dc47f3-a40f-4dde-84a3-869081b78fde",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "8a455f41-7a4c-4817-bb1f-c676bd000cb2",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1110
src/wasm-lib/9m40ngb.json
Normal file
1110
src/wasm-lib/9m40ngb.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/A1VWYv0.json
Normal file
1215
src/wasm-lib/A1VWYv0.json
Normal file
File diff suppressed because it is too large
Load Diff
1265
src/wasm-lib/A4xaoBU.json
Normal file
1265
src/wasm-lib/A4xaoBU.json
Normal file
File diff suppressed because it is too large
Load Diff
1158
src/wasm-lib/AJiKnrW.json
Normal file
1158
src/wasm-lib/AJiKnrW.json
Normal file
File diff suppressed because it is too large
Load Diff
1158
src/wasm-lib/ALUK7Za.json
Normal file
1158
src/wasm-lib/ALUK7Za.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/ARvrLfh.json
Normal file
1110
src/wasm-lib/ARvrLfh.json
Normal file
File diff suppressed because it is too large
Load Diff
1180
src/wasm-lib/BLTMOSY.json
Normal file
1180
src/wasm-lib/BLTMOSY.json
Normal file
File diff suppressed because it is too large
Load Diff
30
src/wasm-lib/Cargo.lock
generated
30
src/wasm-lib/Cargo.lock
generated
@ -1947,6 +1947,7 @@ dependencies = [
|
||||
"mime_guess",
|
||||
"parse-display 0.9.0",
|
||||
"pretty_assertions",
|
||||
"rand 0.8.5",
|
||||
"reqwest",
|
||||
"ropey",
|
||||
"schemars",
|
||||
@ -1958,7 +1959,7 @@ dependencies = [
|
||||
"tokio-tungstenite",
|
||||
"toml",
|
||||
"tower-lsp",
|
||||
"ts-rs",
|
||||
"ts-rs 8.1.0",
|
||||
"twenty-twenty",
|
||||
"url",
|
||||
"uuid",
|
||||
@ -4388,6 +4389,16 @@ version = "0.2.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
||||
|
||||
[[package]]
|
||||
name = "ts-rs"
|
||||
version = "7.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fc2cae1fc5d05d47aa24b64f9a4f7cba24cdc9187a2084dd97ac57bef5eccae6"
|
||||
dependencies = [
|
||||
"thiserror",
|
||||
"ts-rs-macros 7.1.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ts-rs"
|
||||
version = "8.1.0"
|
||||
@ -4395,11 +4406,24 @@ source = "git+https://github.com/Aleph-Alpha/ts-rs#badbac08e61e65b312880aa64e9ec
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"thiserror",
|
||||
"ts-rs-macros",
|
||||
"ts-rs-macros 8.1.0",
|
||||
"url",
|
||||
"uuid",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ts-rs-macros"
|
||||
version = "7.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "73f7f9b821696963053a89a7bd8b292dc34420aea8294d7b225274d488f3ec92"
|
||||
dependencies = [
|
||||
"Inflector",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.65",
|
||||
"termcolor",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ts-rs-macros"
|
||||
version = "8.1.0"
|
||||
@ -4740,11 +4764,13 @@ dependencies = [
|
||||
"kcl-lib",
|
||||
"kittycad",
|
||||
"pretty_assertions",
|
||||
"rand 0.8.5",
|
||||
"reqwest",
|
||||
"serde_json",
|
||||
"tokio",
|
||||
"toml",
|
||||
"tower-lsp",
|
||||
"ts-rs 7.1.1",
|
||||
"twenty-twenty",
|
||||
"uuid",
|
||||
"wasm-bindgen",
|
||||
|
||||
@ -15,6 +15,7 @@ clap = "4.5.4"
|
||||
gloo-utils = "0.2.0"
|
||||
kcl-lib = { path = "kcl" }
|
||||
kittycad = { workspace = true }
|
||||
rand = "0.8.5"
|
||||
serde_json = "1.0.116"
|
||||
tokio = { version = "1.37.0", features = ["sync"] }
|
||||
toml = "0.8.13"
|
||||
@ -31,6 +32,7 @@ reqwest = { version = "0.11.26", default-features = false }
|
||||
tokio = { version = "1.37.0", features = ["rt-multi-thread", "macros", "time"] }
|
||||
twenty-twenty = "0.7"
|
||||
uuid = { version = "1.8.0", features = ["v4", "js", "serde"] }
|
||||
ts-rs = { version = "7.1.1", features = ["no-serde-warnings"] }
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
console_error_panic_hook = "0.1.7"
|
||||
@ -84,3 +86,4 @@ path = "tests/modify/main.rs"
|
||||
#kittycad-execution-plan-traits = { path = "../../../modeling-api/execution-plan-traits" }
|
||||
#kittycad-modeling-cmds = { path = "../../../modeling-api/modeling-cmds" }
|
||||
#kittycad-modeling-session = { path = "../../../modeling-api/modeling-session" }
|
||||
|
||||
|
||||
1215
src/wasm-lib/CpdsOGc.json
Normal file
1215
src/wasm-lib/CpdsOGc.json
Normal file
File diff suppressed because it is too large
Load Diff
1158
src/wasm-lib/D28j9u7.json
Normal file
1158
src/wasm-lib/D28j9u7.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/D766Q1w.json
Normal file
1110
src/wasm-lib/D766Q1w.json
Normal file
File diff suppressed because it is too large
Load Diff
1158
src/wasm-lib/DeP9fPn.json
Normal file
1158
src/wasm-lib/DeP9fPn.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/Di97t4N.json
Normal file
1110
src/wasm-lib/Di97t4N.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/Dkzy6Xu.json
Normal file
716
src/wasm-lib/Dkzy6Xu.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "7e00960d-13f8-4ad4-aa49-32173451c94b",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "78ce61b1-a34d-4439-bfd8-3b664fb64c2f",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "2be52eca-a42a-4475-8ff4-48cdcfe820e3",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "e439372c-e556-4ae3-8c0e-effbaf158cf1",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "02d75303-75cc-4296-a606-a0a8e482f67d",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "a5144c56-d219-454d-adbf-b7ee890f9f43",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "02d75303-75cc-4296-a606-a0a8e482f67d",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
716
src/wasm-lib/E1QLq4z.json
Normal file
716
src/wasm-lib/E1QLq4z.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "260a7a71-6dff-44e1-ae71-ef9acc0964a1",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "f11f043c-04e5-4f0a-ba76-9607b4549b6d",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "b3a80be7-ba9b-4685-9527-e02285c760c4",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "69251271-7979-4e60-8f8d-6c16b6699de6",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "67a68bb5-dd19-410b-9159-01bfeeee4093",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "85454d31-15a7-4302-bcf3-51298c8d6e20",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "67a68bb5-dd19-410b-9159-01bfeeee4093",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1180
src/wasm-lib/E2ZZ2Ju.json
Normal file
1180
src/wasm-lib/E2ZZ2Ju.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/EfLwLrB.json
Normal file
1215
src/wasm-lib/EfLwLrB.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/F2CDcnI.json
Normal file
1110
src/wasm-lib/F2CDcnI.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/Fk9EkFW.json
Normal file
1215
src/wasm-lib/Fk9EkFW.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/G7oUqGR.json
Normal file
716
src/wasm-lib/G7oUqGR.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "03cbdcb2-2f14-427a-9211-72924db46b36",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "cee869c0-874b-41dd-a719-b2e331350e07",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "73037861-531f-4830-b900-18aa30f9edca",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "de005784-bb8a-4fe6-8360-fd8fc22b47dc",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "4e736fe2-3aa2-48e1-b8fa-94eefe0270a6",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "a0983600-a628-47fb-975c-baf8b70264a2",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "4e736fe2-3aa2-48e1-b8fa-94eefe0270a6",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
716
src/wasm-lib/GMn2aTv.json
Normal file
716
src/wasm-lib/GMn2aTv.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "a39ccaad-b6fb-41d4-a691-d509843d1d92",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "384569b4-6cb8-4b97-92d0-93b539e49800",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "f6bb7e9b-10ec-4ca2-99dd-41f291f69325",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "eec6d14a-a2c5-4940-ad0d-ae080cb9fe4e",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "8d647e31-1eaf-42e0-82ef-f294c9d227b1",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "88e73cbf-a5fc-49a3-84c2-c9a81b360646",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "8d647e31-1eaf-42e0-82ef-f294c9d227b1",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1215
src/wasm-lib/GfRSwuv.json
Normal file
1215
src/wasm-lib/GfRSwuv.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/HBzXWCW.json
Normal file
716
src/wasm-lib/HBzXWCW.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "bdeaa8a6-9d04-43e6-b95f-5f946a0fc91c",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "a051d0eb-70e7-4299-b69c-fe9f070a4383",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "b51d4d76-451d-4e88-bc53-b9e95c50bef3",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "2ba3b7c5-c481-495b-ab59-b14d671cf705",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "1ae39b21-f145-4b27-a7cd-8d60eeb56029",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "9fec1525-7feb-464a-9875-e75523d5d130",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "1ae39b21-f145-4b27-a7cd-8d60eeb56029",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1110
src/wasm-lib/HMpdS0z.json
Normal file
1110
src/wasm-lib/HMpdS0z.json
Normal file
File diff suppressed because it is too large
Load Diff
1158
src/wasm-lib/HNfJEjU.json
Normal file
1158
src/wasm-lib/HNfJEjU.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/HPX1J4g.json
Normal file
1110
src/wasm-lib/HPX1J4g.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/Hh6A7Zl.json
Normal file
716
src/wasm-lib/Hh6A7Zl.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "c02eb643-e8b2-4302-bf50-103b76cafa31",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "e3535ead-67ee-4756-8efe-301c8bfab24b",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "c80f25d2-c27a-4249-ae46-8a2ab39dc238",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "d02e7289-4ac0-477d-a5fa-c3e989282dea",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "e124e55b-d107-4f57-bc38-fdea99ee8651",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "a2dad633-56b0-4887-a069-a778e2dbb266",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "e124e55b-d107-4f57-bc38-fdea99ee8651",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1110
src/wasm-lib/HrlKDmw.json
Normal file
1110
src/wasm-lib/HrlKDmw.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/I0OcY52.json
Normal file
716
src/wasm-lib/I0OcY52.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "5b273d26-8087-47d6-8e5d-fef52388bce5",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "2b827fa6-d85c-4afd-bb06-28eba24ebbd9",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "0b1e413e-2649-474b-84d2-583c034a4553",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "21957bb5-e2a2-48fb-a6ac-7d3e424d2d0f",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "96899d9f-1605-4937-8154-af281d3e72c0",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "b6d0f142-ec59-4b7c-9fc9-aeed539f1300",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "96899d9f-1605-4937-8154-af281d3e72c0",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1110
src/wasm-lib/IFgZALs.json
Normal file
1110
src/wasm-lib/IFgZALs.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/IMhEvrj.json
Normal file
1215
src/wasm-lib/IMhEvrj.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/ISlRN9P.json
Normal file
716
src/wasm-lib/ISlRN9P.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "0bf834e5-f329-426e-9e50-a82759595953",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "0d6c7eb6-b9ab-48c8-9379-0ce14788c89f",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "bd0da758-3371-42cb-b8cb-9274a83ff053",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "6a1d8db2-21fd-4ffd-92a6-fe502eee68df",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "6e30ca99-6353-4c90-aab7-e7d415b88cf9",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "3731a237-f1d7-48cc-9d03-6fc9545918f9",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "6e30ca99-6353-4c90-aab7-e7d415b88cf9",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
716
src/wasm-lib/JHN21D5.json
Normal file
716
src/wasm-lib/JHN21D5.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "24b0d9d3-12b0-4196-9029-4c1722802d9f",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "1d914bd9-4eea-408b-a4c8-288f52e73335",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "381b19da-b723-4062-a121-84be52b16bfd",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "689a0d76-ce62-447c-b5f3-dc6608ab9ff7",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "9a01101d-6713-479f-ad68-7bcff86ebd96",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "74cd61b0-bb07-4349-a0d8-3360d4bc8d8b",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "9a01101d-6713-479f-ad68-7bcff86ebd96",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1215
src/wasm-lib/KE38znc.json
Normal file
1215
src/wasm-lib/KE38znc.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/MGir5GO.json
Normal file
716
src/wasm-lib/MGir5GO.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "0a6e9872-8d74-4587-92b0-75f76494dc42",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "3160120b-5758-4688-88eb-32a6630653f0",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "2933e624-1c3d-4519-b7ab-3be23628045b",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "8efe3f7e-9193-4128-86a1-9a0ca1a6d5a5",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "62739beb-ce3e-4c8c-9f69-ef644aba96dc",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "b31c6d6a-6c55-42b8-8a1b-b8d6a46ee37c",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "62739beb-ce3e-4c8c-9f69-ef644aba96dc",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1158
src/wasm-lib/N20FFgy.json
Normal file
1158
src/wasm-lib/N20FFgy.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/NOoYEhM.json
Normal file
1215
src/wasm-lib/NOoYEhM.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/NTxZoEs.json
Normal file
1110
src/wasm-lib/NTxZoEs.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/Ocq0Kln.json
Normal file
1215
src/wasm-lib/Ocq0Kln.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/Okyw94D.json
Normal file
716
src/wasm-lib/Okyw94D.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "8e646237-3736-439f-8aec-cb0ab2713e8d",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "cc7a6dff-9daf-4368-9408-4f5410da8dff",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "8b5dfc47-150b-4d2b-8d62-ae1a49bfd4c6",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "27c5b21e-9cba-425c-9ed2-dba4a42afdfe",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "4047b284-2931-4e0d-bfc7-253d7fbb5ec3",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "593a79b3-2e78-45f4-95c4-dda7fa46e323",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "4047b284-2931-4e0d-bfc7-253d7fbb5ec3",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
716
src/wasm-lib/PKfQoVq.json
Normal file
716
src/wasm-lib/PKfQoVq.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "de8ee0fc-d3b6-4ffc-8423-64c59e05b261",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "3a4c83ea-91a0-4229-8d14-92ebedbabf4a",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "a0197f7f-626e-4e9a-a115-aca7f286745d",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "55897ece-9ada-4f7b-bf45-62c2a5062248",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "afd245b6-6a68-4382-93cd-3aed0a43b844",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "3bc0db86-3cb2-4b2b-9b88-520e16b3b3cd",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "afd245b6-6a68-4382-93cd-3aed0a43b844",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
716
src/wasm-lib/R0GXkns.json
Normal file
716
src/wasm-lib/R0GXkns.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "e3760185-e471-4d33-82f4-ceac5e0b82cf",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "25bca208-b73f-464a-b043-3c203574d9ca",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "d0f67312-acb9-42be-ac03-5f56ebf58674",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "3a6cd06b-96e9-4158-a798-a1a0678f0566",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "383831b7-ce1d-4abf-897b-19155b0e7872",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "b607cafb-1b58-4208-83f5-2f4366a9cef7",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "383831b7-ce1d-4abf-897b-19155b0e7872",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1110
src/wasm-lib/SJh4GGO.json
Normal file
1110
src/wasm-lib/SJh4GGO.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/SZlCKyL.json
Normal file
716
src/wasm-lib/SZlCKyL.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "4bc9d173-494a-4f99-b5ef-1005fcc16ce1",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "c8a554d0-6456-4034-b2ab-ce06fe950904",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "50bcdad2-2069-4e84-802d-86e08500eaf4",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "2d03fb4c-7995-4953-ad28-7bf9a01fa416",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "c78b5a75-9ccb-4525-9cca-16226ed6057d",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "d4af590d-7ae0-4889-84be-7177b4c34f4d",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "c78b5a75-9ccb-4525-9cca-16226ed6057d",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
716
src/wasm-lib/TMxL79i.json
Normal file
716
src/wasm-lib/TMxL79i.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "2b9b68d7-7279-4734-8275-931f5ec54805",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "2519e4e2-9cb1-427d-922f-d2255cb3349b",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "0dbe5e26-033f-4ba7-89d1-7c5b3e914cb1",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "22e3f137-784b-49ac-b636-8c9b3c795af3",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "4c775d69-138e-4b72-9fd0-93a50565c7c2",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "904eaff4-5a6c-497d-bc3a-0c6d570d97f4",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "4c775d69-138e-4b72-9fd0-93a50565c7c2",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1110
src/wasm-lib/Ub5e9Nv.json
Normal file
1110
src/wasm-lib/Ub5e9Nv.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/V5rFn6W.json
Normal file
1215
src/wasm-lib/V5rFn6W.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/VxIjVXf.json
Normal file
1215
src/wasm-lib/VxIjVXf.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/VxjWkzO.json
Normal file
716
src/wasm-lib/VxjWkzO.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "703b0dcb-beb6-4aeb-8df5-7e04caf6316b",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "bffbac30-fb61-43e6-8e09-70e8a4d4a96d",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "feaa4b80-1d20-4a7a-8357-ec622a16eede",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "d4a6103b-ca34-437c-9d5f-44f680b10ed0",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "2c4a874f-1356-46f4-bb4d-443ed1fc4b6f",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "a0870d76-45b3-48ed-ad05-e234d44ae42e",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "2c4a874f-1356-46f4-bb4d-443ed1fc4b6f",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1370
src/wasm-lib/W2Niumr.json
Normal file
1370
src/wasm-lib/W2Niumr.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/WDfVgzH.json
Normal file
1110
src/wasm-lib/WDfVgzH.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/YnaksUE.json
Normal file
1215
src/wasm-lib/YnaksUE.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/Z8ezqCb.json
Normal file
716
src/wasm-lib/Z8ezqCb.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "4228d5d7-c334-4885-838d-5069309b0c45",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "3f9c9f0f-4479-4f87-bfda-111f170282b1",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "2c6d6360-3556-4eed-b249-ebbd32f35782",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "cc5ee219-87cc-441b-bf79-f3251d439464",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "8765a575-ac10-4d6d-9650-e4ee03204831",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "f19342f8-c7a2-46a2-b83e-5378dc79f9c2",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "8765a575-ac10-4d6d-9650-e4ee03204831",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1158
src/wasm-lib/a5I7qcr.json
Normal file
1158
src/wasm-lib/a5I7qcr.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/aF4A3bM.json
Normal file
716
src/wasm-lib/aF4A3bM.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "db80ebd0-8d2a-49cf-a7fe-bfb2f082553e",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "0a0e395b-0cf7-4300-a8e7-298c4d96e14b",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "50f2d13d-333a-4f17-a5c3-7907fdb80bd9",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "079e5460-3e5c-4572-88d1-2e21f6446a5d",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "c3b0fe1f-71d5-4835-9b18-35dcf8c8a991",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "6e6cb04e-32cf-4949-94f8-888cd835ff6a",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "c3b0fe1f-71d5-4835-9b18-35dcf8c8a991",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1110
src/wasm-lib/aQRNivK.json
Normal file
1110
src/wasm-lib/aQRNivK.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/aZKZYPs.json
Normal file
716
src/wasm-lib/aZKZYPs.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "7c0be725-a31b-40b8-8b66-b023d3cb27ab",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "ca363eb0-aab1-4b74-b916-b437cd1fea0f",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "845afbc9-5d7a-4558-80c7-8fbb10b49773",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "3722e3b1-cf4c-43ff-a111-eea55d55d27f",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "54a1c762-b9c6-413f-b5be-322734aa0a21",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "065051a9-790f-4f28-b254-a42002bf4f4b",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "54a1c762-b9c6-413f-b5be-322734aa0a21",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1110
src/wasm-lib/at4s5x7.json
Normal file
1110
src/wasm-lib/at4s5x7.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/b02BT8W.json
Normal file
1110
src/wasm-lib/b02BT8W.json
Normal file
File diff suppressed because it is too large
Load Diff
1158
src/wasm-lib/b5S90RE.json
Normal file
1158
src/wasm-lib/b5S90RE.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/bmeYxtL.json
Normal file
1110
src/wasm-lib/bmeYxtL.json
Normal file
File diff suppressed because it is too large
Load Diff
1180
src/wasm-lib/c4HaiO0.json
Normal file
1180
src/wasm-lib/c4HaiO0.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/dPxOePe.json
Normal file
1110
src/wasm-lib/dPxOePe.json
Normal file
File diff suppressed because it is too large
Load Diff
1158
src/wasm-lib/dSNumQw.json
Normal file
1158
src/wasm-lib/dSNumQw.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/e4oTYG7.json
Normal file
1110
src/wasm-lib/e4oTYG7.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/eNqwK7O.json
Normal file
1110
src/wasm-lib/eNqwK7O.json
Normal file
File diff suppressed because it is too large
Load Diff
1158
src/wasm-lib/end_of_program_p0_circl.json
Normal file
1158
src/wasm-lib/end_of_program_p0_circl.json
Normal file
File diff suppressed because it is too large
Load Diff
1180
src/wasm-lib/end_of_program_p0_inlined.json
Normal file
1180
src/wasm-lib/end_of_program_p0_inlined.json
Normal file
File diff suppressed because it is too large
Load Diff
1180
src/wasm-lib/f2qt8On.json
Normal file
1180
src/wasm-lib/f2qt8On.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/g9emtuC.json
Normal file
716
src/wasm-lib/g9emtuC.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "40a483b5-4371-40f4-a251-7cbf4ed6da11",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "fe8fe422-efc8-44cf-b7d1-ac7001c8f0ee",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "54c40e3b-72cd-4ce1-ae66-d8a9ac7af37d",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "ef967909-83a8-476b-a00e-90b3453ac949",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "42c368f2-709e-4254-9e99-0e208e3c03eb",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "1b9ba73d-4588-431b-a76d-f8ac7d656b17",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "42c368f2-709e-4254-9e99-0e208e3c03eb",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1110
src/wasm-lib/gE5NVu3.json
Normal file
1110
src/wasm-lib/gE5NVu3.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/gU3lRnz.json
Normal file
1110
src/wasm-lib/gU3lRnz.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/gqdDoDn.json
Normal file
1215
src/wasm-lib/gqdDoDn.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/h276Jz4.json
Normal file
716
src/wasm-lib/h276Jz4.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "daf4845e-3f6d-436a-84a5-873e200858e9",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "508155c6-2c82-4f8f-8586-6a2aaa5e668c",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "565695a6-b471-4f92-8918-8ee7c90a6978",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "52652e26-1a84-4d7b-a886-78ee804396bd",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "752ea6ce-ae25-4c71-8e4b-e4cc84b3221e",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "c32b6eb8-4385-4829-8813-d015b0dc772a",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "752ea6ce-ae25-4c71-8e4b-e4cc84b3221e",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1180
src/wasm-lib/hAWsHfe.json
Normal file
1180
src/wasm-lib/hAWsHfe.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
src/wasm-lib/hyBuZ3U.json
Normal file
1110
src/wasm-lib/hyBuZ3U.json
Normal file
File diff suppressed because it is too large
Load Diff
716
src/wasm-lib/iKfKUKJ.json
Normal file
716
src/wasm-lib/iKfKUKJ.json
Normal file
@ -0,0 +1,716 @@
|
||||
{
|
||||
"root": {
|
||||
"HALF_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 180,
|
||||
"__meta": []
|
||||
},
|
||||
"QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 90,
|
||||
"__meta": []
|
||||
},
|
||||
"THREE_QUARTER_TURN": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 270,
|
||||
"__meta": []
|
||||
},
|
||||
"ZERO": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 0,
|
||||
"__meta": []
|
||||
},
|
||||
"circ": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": {
|
||||
"angle_start": 0,
|
||||
"angle_end": 360,
|
||||
"radius": 80
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
442,
|
||||
490
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"circlePos": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": [
|
||||
0,
|
||||
100.0
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
393,
|
||||
414
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"len": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 500,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
511,
|
||||
514
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"lenPlumbus": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 100,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
376
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"radius": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 80,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
428,
|
||||
430
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangle": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"type": "FunctionExpression",
|
||||
"start": 14,
|
||||
"end": 329,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 18,
|
||||
"name": "len"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"start": 23,
|
||||
"end": 329,
|
||||
"body": [
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement",
|
||||
"start": 27,
|
||||
"end": 327,
|
||||
"argument": {
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression",
|
||||
"start": 34,
|
||||
"end": 327,
|
||||
"body": [
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 34,
|
||||
"end": 53,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 47,
|
||||
"name": "startSketchOn"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 48,
|
||||
"end": 52,
|
||||
"value": "XY",
|
||||
"raw": "'XY'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 59,
|
||||
"end": 98,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 73,
|
||||
"name": "startProfileAt"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression",
|
||||
"start": 74,
|
||||
"end": 94,
|
||||
"elements": [
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 75,
|
||||
"end": 83,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 75,
|
||||
"end": 79,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 76,
|
||||
"end": 79,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 82,
|
||||
"end": 83,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 85,
|
||||
"end": 93,
|
||||
"operator": "/",
|
||||
"left": {
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression",
|
||||
"start": 85,
|
||||
"end": 89,
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 86,
|
||||
"end": 89,
|
||||
"name": "len"
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 92,
|
||||
"end": 93,
|
||||
"value": 2,
|
||||
"raw": "2"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 96,
|
||||
"end": 97
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 104,
|
||||
"end": 149,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 104,
|
||||
"end": 114,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 115,
|
||||
"end": 140,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 117,
|
||||
"end": 125,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 117,
|
||||
"end": 122,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 124,
|
||||
"end": 125,
|
||||
"value": 0,
|
||||
"raw": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 127,
|
||||
"end": 138,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 127,
|
||||
"end": 133,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 135,
|
||||
"end": 138,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 142,
|
||||
"end": 143
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 145,
|
||||
"end": 148,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 155,
|
||||
"end": 238,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 155,
|
||||
"end": 165,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 166,
|
||||
"end": 229,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 175,
|
||||
"end": 202,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 175,
|
||||
"end": 180,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 182,
|
||||
"end": 202,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 182,
|
||||
"end": 196,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 182,
|
||||
"end": 188,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 189,
|
||||
"end": 192,
|
||||
"value": "a",
|
||||
"raw": "'a'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 194,
|
||||
"end": 195
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 199,
|
||||
"end": 202,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 211,
|
||||
"end": 222,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 211,
|
||||
"end": 217,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 219,
|
||||
"end": 222,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 231,
|
||||
"end": 232
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 234,
|
||||
"end": 237,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 244,
|
||||
"end": 327,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 244,
|
||||
"end": 254,
|
||||
"name": "angledLine"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression",
|
||||
"start": 255,
|
||||
"end": 318,
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 264,
|
||||
"end": 291,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 264,
|
||||
"end": 269,
|
||||
"name": "angle"
|
||||
},
|
||||
"value": {
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression",
|
||||
"start": 271,
|
||||
"end": 291,
|
||||
"operator": "+",
|
||||
"left": {
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression",
|
||||
"start": 271,
|
||||
"end": 285,
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"start": 271,
|
||||
"end": 277,
|
||||
"name": "segAng"
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 278,
|
||||
"end": 281,
|
||||
"value": "b",
|
||||
"raw": "'b'"
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 283,
|
||||
"end": 284
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
},
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 288,
|
||||
"end": 291,
|
||||
"value": 120,
|
||||
"raw": "120"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectProperty",
|
||||
"start": 300,
|
||||
"end": 311,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 300,
|
||||
"end": 306,
|
||||
"name": "length"
|
||||
},
|
||||
"value": {
|
||||
"type": "Identifier",
|
||||
"type": "Identifier",
|
||||
"start": 308,
|
||||
"end": 311,
|
||||
"name": "len"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution",
|
||||
"start": 320,
|
||||
"end": 321
|
||||
},
|
||||
{
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"start": 323,
|
||||
"end": 326,
|
||||
"value": "c",
|
||||
"raw": "'c'"
|
||||
}
|
||||
],
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {},
|
||||
"start": []
|
||||
}
|
||||
}
|
||||
},
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
14,
|
||||
329
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"triangleHeight": {
|
||||
"type": "UserVal",
|
||||
"type": "UserVal",
|
||||
"value": 200,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
352,
|
||||
355
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"return": {
|
||||
"type": "SketchGroup",
|
||||
"type": "SketchGroup",
|
||||
"id": "afcd2cdf-8d34-40df-b8c6-c9ca436a9903",
|
||||
"value": [
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "a",
|
||||
"__geoMeta": {
|
||||
"id": "1764fda8-3d3a-4379-a2d7-8534d60120b8",
|
||||
"sourceRange": [
|
||||
104,
|
||||
149
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"name": "b",
|
||||
"__geoMeta": {
|
||||
"id": "baa67185-fa57-4305-8693-1280f7b092b2",
|
||||
"sourceRange": [
|
||||
155,
|
||||
238
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ToPoint",
|
||||
"from": [
|
||||
8.526512829121202e-14,
|
||||
183.01270189221935
|
||||
],
|
||||
"to": [
|
||||
-250.00000000000014,
|
||||
-249.99999999999983
|
||||
],
|
||||
"name": "c",
|
||||
"__geoMeta": {
|
||||
"id": "482af3f7-c296-4f40-b7ae-3b56e0f2d631",
|
||||
"sourceRange": [
|
||||
244,
|
||||
327
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"on": {
|
||||
"type": "plane",
|
||||
"id": "c0b49f94-dd4a-4b5b-92cb-7e4a08c27b75",
|
||||
"value": "XY",
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"__meta": []
|
||||
},
|
||||
"start": {
|
||||
"from": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"to": [
|
||||
-250.0,
|
||||
-250.0
|
||||
],
|
||||
"name": "",
|
||||
"__geoMeta": {
|
||||
"id": "f73e7ec3-6df1-4565-954a-187a1487451a",
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"entityId": "c0b49f94-dd4a-4b5b-92cb-7e4a08c27b75",
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
59,
|
||||
98
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
1215
src/wasm-lib/jmjp6Em.json
Normal file
1215
src/wasm-lib/jmjp6Em.json
Normal file
File diff suppressed because it is too large
Load Diff
1215
src/wasm-lib/kIbSIpl.json
Normal file
1215
src/wasm-lib/kIbSIpl.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -29,6 +29,7 @@ kittycad-execution-plan-macros = { workspace = true }
|
||||
kittycad-execution-plan-traits = { workspace = true }
|
||||
lazy_static = "1.4.0"
|
||||
mime_guess = "2.0.4"
|
||||
rand = "0.8.5"
|
||||
parse-display = "0.9.0"
|
||||
reqwest = { version = "0.11.26", default-features = false, features = ["stream", "rustls-tls"] }
|
||||
ropey = "1.6.1"
|
||||
|
||||
@ -2793,7 +2793,10 @@ async fn execute_pipe_body(
|
||||
// of its own.
|
||||
let output = match first {
|
||||
Value::BinaryExpression(binary_expression) => binary_expression.get_result(memory, pipe_info, ctx).await?,
|
||||
Value::CallExpression(call_expression) => call_expression.execute(memory, pipe_info, ctx).await?,
|
||||
Value::CallExpression(call_expression) => {
|
||||
let out = call_expression.execute(memory, pipe_info, ctx).await?;
|
||||
out
|
||||
}
|
||||
Value::Identifier(identifier) => memory.get(&identifier.name, identifier.into())?.clone(),
|
||||
_ => {
|
||||
// Return an error this should not happen.
|
||||
@ -2806,15 +2809,20 @@ async fn execute_pipe_body(
|
||||
// Now that we've evaluated the first child expression in the pipeline, following child expressions
|
||||
// should use the previous child expression for %.
|
||||
// This means there's no more need for the previous `pipe_info` from the parent AST node above this one.
|
||||
let mut new_pipe_info = PipeInfo::new();
|
||||
new_pipe_info.previous_results = Some(output);
|
||||
let mut new_pipe_info = PipeInfo {
|
||||
previous_results: Some(output),
|
||||
log: false,
|
||||
};
|
||||
// Evaluate remaining elements.
|
||||
for expression in body {
|
||||
let output = match expression {
|
||||
Value::BinaryExpression(binary_expression) => {
|
||||
binary_expression.get_result(memory, &new_pipe_info, ctx).await?
|
||||
}
|
||||
Value::CallExpression(call_expression) => call_expression.execute(memory, &new_pipe_info, ctx).await?,
|
||||
Value::CallExpression(call_expression) => {
|
||||
let out = call_expression.execute(memory, &new_pipe_info, ctx).await?;
|
||||
out
|
||||
}
|
||||
Value::Identifier(identifier) => memory.get(&identifier.name, identifier.into())?.clone(),
|
||||
_ => {
|
||||
// Return an error this should not happen.
|
||||
|
||||
@ -94,6 +94,8 @@ pub trait EngineManager: std::fmt::Debug + Send + Sync + 'static {
|
||||
|
||||
// Flush the batch queue.
|
||||
self.flush_batch(source_range).await
|
||||
// self.inner_send_modeling_cmd(id, source_range, req, Default::default())
|
||||
// .await
|
||||
}
|
||||
|
||||
/// Force flush the batch queue.
|
||||
@ -126,6 +128,8 @@ pub trait EngineManager: std::fmt::Debug + Send + Sync + 'static {
|
||||
batch_id: uuid::Uuid::new_v4(),
|
||||
responses: false,
|
||||
};
|
||||
println!("ADAM: Batched requests:");
|
||||
println!("{:#?}", batched_requests);
|
||||
|
||||
let final_req = if self.batch().lock().unwrap().len() == 1 {
|
||||
// We can unwrap here because we know the batch has only one element.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user