* initial port Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * more fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix e2e Signed-off-by: Jess Frazelle <github@jessfraz.com> * more fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * update js side Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix; Signed-off-by: Jess Frazelle <github@jessfraz.com> * cleanup Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
6223 lines
228 KiB
Plaintext
6223 lines
228 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of parsing gridfinity-baseplate-magnets.kcl
|
|
---
|
|
{
|
|
"Ok": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 455,
|
|
"id": {
|
|
"end": 448,
|
|
"name": "binLength",
|
|
"start": 439,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 455,
|
|
"raw": "42.0",
|
|
"start": 451,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 42.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 439,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 455,
|
|
"kind": "const",
|
|
"start": 439,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 474,
|
|
"id": {
|
|
"end": 468,
|
|
"name": "cornerRadius",
|
|
"start": 456,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 474,
|
|
"raw": "4.0",
|
|
"start": 471,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 456,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 474,
|
|
"kind": "const",
|
|
"start": 456,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 490,
|
|
"id": {
|
|
"end": 484,
|
|
"name": "firstStep",
|
|
"start": 475,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 490,
|
|
"raw": "0.7",
|
|
"start": 487,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.7,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 475,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 490,
|
|
"kind": "const",
|
|
"start": 475,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 507,
|
|
"id": {
|
|
"end": 501,
|
|
"name": "secondStep",
|
|
"start": 491,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 507,
|
|
"raw": "1.8",
|
|
"start": 504,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.8,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 491,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 507,
|
|
"kind": "const",
|
|
"start": 491,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 524,
|
|
"id": {
|
|
"end": 517,
|
|
"name": "thirdStep",
|
|
"start": 508,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 524,
|
|
"raw": "2.15",
|
|
"start": 520,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.15,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 508,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 524,
|
|
"kind": "const",
|
|
"start": 508,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 543,
|
|
"id": {
|
|
"end": 537,
|
|
"name": "magOuterDiam",
|
|
"start": 525,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 543,
|
|
"raw": "6.5",
|
|
"start": 540,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 6.5,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 525,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 543,
|
|
"kind": "const",
|
|
"start": 525,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 559,
|
|
"id": {
|
|
"end": 553,
|
|
"name": "magOffset",
|
|
"start": 544,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 559,
|
|
"raw": "4.8",
|
|
"start": 556,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.8,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 544,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 559,
|
|
"kind": "const",
|
|
"start": 544,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 574,
|
|
"id": {
|
|
"end": 568,
|
|
"name": "magDepth",
|
|
"start": 560,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 574,
|
|
"raw": "2.4",
|
|
"start": 571,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.4,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 560,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 574,
|
|
"kind": "const",
|
|
"start": 560,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 629,
|
|
"id": {
|
|
"end": 625,
|
|
"name": "countBinWidth",
|
|
"start": 612,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 629,
|
|
"raw": "2",
|
|
"start": 628,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 612,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 629,
|
|
"kind": "const",
|
|
"start": 612,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 648,
|
|
"id": {
|
|
"end": 644,
|
|
"name": "countBinLength",
|
|
"start": 630,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 648,
|
|
"raw": "3",
|
|
"start": 647,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 630,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 648,
|
|
"kind": "const",
|
|
"start": 630,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 792,
|
|
"id": {
|
|
"end": 755,
|
|
"name": "height",
|
|
"start": 749,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 792,
|
|
"left": {
|
|
"end": 780,
|
|
"left": {
|
|
"end": 767,
|
|
"name": "firstStep",
|
|
"start": 758,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 780,
|
|
"name": "secondStep",
|
|
"start": 770,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 758,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 792,
|
|
"name": "thirdStep",
|
|
"start": 783,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 758,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 749,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 792,
|
|
"kind": "const",
|
|
"start": 749,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1182,
|
|
"id": {
|
|
"end": 868,
|
|
"name": "face",
|
|
"start": 864,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 1160,
|
|
"id": {
|
|
"end": 890,
|
|
"name": "faceSketch",
|
|
"start": 880,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 912,
|
|
"name": "plane",
|
|
"start": 907,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 906,
|
|
"name": "startSketchOn",
|
|
"start": 893,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 913,
|
|
"start": 893,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 938,
|
|
"raw": "0",
|
|
"start": 937,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 941,
|
|
"raw": "0",
|
|
"start": 940,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 942,
|
|
"start": 936,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 945,
|
|
"start": 944,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 935,
|
|
"name": "startProfileAt",
|
|
"start": 921,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 946,
|
|
"start": 921,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 966,
|
|
"name": "length",
|
|
"start": 960,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 975,
|
|
"name": "height",
|
|
"start": 969,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 959,
|
|
"name": "yLine",
|
|
"start": 954,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 976,
|
|
"start": 954,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1039,
|
|
"properties": [
|
|
{
|
|
"end": 1017,
|
|
"key": {
|
|
"end": 1011,
|
|
"name": "angle",
|
|
"start": 1006,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1006,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"argument": {
|
|
"end": 1017,
|
|
"raw": "45",
|
|
"start": 1015,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 1017,
|
|
"operator": "-",
|
|
"start": 1014,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1037,
|
|
"key": {
|
|
"end": 1025,
|
|
"name": "length",
|
|
"start": 1019,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1019,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1037,
|
|
"name": "thirdStep",
|
|
"start": 1028,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 1004,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 1042,
|
|
"start": 1041,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1003,
|
|
"name": "angledLineOfYLength",
|
|
"start": 984,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1043,
|
|
"start": 984,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1063,
|
|
"name": "length",
|
|
"start": 1057,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 1077,
|
|
"name": "secondStep",
|
|
"start": 1067,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1077,
|
|
"operator": "-",
|
|
"start": 1066,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1056,
|
|
"name": "yLine",
|
|
"start": 1051,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1078,
|
|
"start": 1051,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1141,
|
|
"properties": [
|
|
{
|
|
"end": 1119,
|
|
"key": {
|
|
"end": 1113,
|
|
"name": "angle",
|
|
"start": 1108,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1108,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"argument": {
|
|
"end": 1119,
|
|
"raw": "45",
|
|
"start": 1117,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 1119,
|
|
"operator": "-",
|
|
"start": 1116,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1139,
|
|
"key": {
|
|
"end": 1127,
|
|
"name": "length",
|
|
"start": 1121,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1121,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1139,
|
|
"name": "firstStep",
|
|
"start": 1130,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 1106,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 1144,
|
|
"start": 1143,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1105,
|
|
"name": "angledLineOfYLength",
|
|
"start": 1086,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1145,
|
|
"start": 1086,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 1158,
|
|
"name": "close",
|
|
"start": 1153,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1160,
|
|
"start": 1153,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 1160,
|
|
"start": 893,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 880,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1160,
|
|
"kind": "const",
|
|
"start": 880,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 1180,
|
|
"name": "faceSketch",
|
|
"start": 1170,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1180,
|
|
"start": 1163,
|
|
"type": "ReturnStatement",
|
|
"type": "ReturnStatement"
|
|
}
|
|
],
|
|
"end": 1182,
|
|
"start": 876
|
|
},
|
|
"end": 1182,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 874,
|
|
"name": "plane",
|
|
"start": 869,
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 868,
|
|
"type": "FunctionExpression",
|
|
"type": "FunctionExpression"
|
|
},
|
|
"start": 864,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1182,
|
|
"kind": "fn",
|
|
"start": 861,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1331,
|
|
"id": {
|
|
"end": 1230,
|
|
"name": "singleSide",
|
|
"start": 1220,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1295,
|
|
"name": "length",
|
|
"start": 1289,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1327,
|
|
"left": {
|
|
"end": 1307,
|
|
"name": "binLength",
|
|
"start": 1298,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 1327,
|
|
"left": {
|
|
"end": 1323,
|
|
"name": "cornerRadius",
|
|
"start": 1311,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 1327,
|
|
"raw": "2",
|
|
"start": 1326,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1311,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 1298,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1240,
|
|
"name": "extrude",
|
|
"start": 1233,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1331,
|
|
"start": 1233,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1270,
|
|
"name": "offset",
|
|
"start": 1264,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1285,
|
|
"name": "cornerRadius",
|
|
"start": 1273,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1257,
|
|
"name": "offsetPlane",
|
|
"start": 1246,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1286,
|
|
"start": 1246,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1262,
|
|
"raw": "\"YZ\"",
|
|
"start": 1258,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "YZ"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1245,
|
|
"name": "face",
|
|
"start": 1241,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1287,
|
|
"start": 1241,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
},
|
|
"start": 1220,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1331,
|
|
"kind": "const",
|
|
"start": 1220,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1569,
|
|
"id": {
|
|
"end": 1403,
|
|
"name": "sides",
|
|
"start": 1398,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1451,
|
|
"name": "arcDegrees",
|
|
"start": 1441,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1457,
|
|
"raw": "360",
|
|
"start": 1454,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1465,
|
|
"name": "axis",
|
|
"start": 1461,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1470,
|
|
"raw": "0",
|
|
"start": 1469,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1473,
|
|
"raw": "0",
|
|
"start": 1472,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1476,
|
|
"raw": "1",
|
|
"start": 1475,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1477,
|
|
"start": 1468,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1487,
|
|
"name": "center",
|
|
"start": 1481,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1504,
|
|
"left": {
|
|
"end": 1500,
|
|
"name": "binLength",
|
|
"start": 1491,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1504,
|
|
"raw": "2",
|
|
"start": 1503,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1491,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 1519,
|
|
"left": {
|
|
"end": 1515,
|
|
"name": "binLength",
|
|
"start": 1506,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1519,
|
|
"raw": "2",
|
|
"start": 1518,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1506,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 1522,
|
|
"raw": "0",
|
|
"start": 1521,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1523,
|
|
"start": 1490,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1536,
|
|
"name": "instances",
|
|
"start": 1527,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1540,
|
|
"raw": "4",
|
|
"start": 1539,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1560,
|
|
"name": "rotateDuplicates",
|
|
"start": 1544,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1567,
|
|
"raw": "true",
|
|
"start": 1563,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1423,
|
|
"name": "patternCircular3d",
|
|
"start": 1406,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1569,
|
|
"start": 1406,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1437,
|
|
"name": "singleSide",
|
|
"start": 1427,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 1398,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1569,
|
|
"kind": "const",
|
|
"start": 1398,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1692,
|
|
"id": {
|
|
"end": 1604,
|
|
"name": "axis000",
|
|
"start": 1597,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 1692,
|
|
"properties": [
|
|
{
|
|
"end": 1690,
|
|
"key": {
|
|
"end": 1617,
|
|
"name": "custom",
|
|
"start": 1611,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1611,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1690,
|
|
"properties": [
|
|
{
|
|
"end": 1643,
|
|
"key": {
|
|
"end": 1630,
|
|
"name": "axis",
|
|
"start": 1626,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1626,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"elements": [
|
|
{
|
|
"end": 1637,
|
|
"raw": "0.0",
|
|
"start": 1634,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1642,
|
|
"raw": "1.0",
|
|
"start": 1639,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1643,
|
|
"start": 1633,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1686,
|
|
"key": {
|
|
"end": 1655,
|
|
"name": "origin",
|
|
"start": 1649,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1649,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"elements": [
|
|
{
|
|
"end": 1671,
|
|
"name": "cornerRadius",
|
|
"start": 1659,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 1685,
|
|
"name": "cornerRadius",
|
|
"start": 1673,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"end": 1686,
|
|
"start": 1658,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 1620,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 1607,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
"start": 1597,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1692,
|
|
"kind": "const",
|
|
"start": 1597,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1830,
|
|
"id": {
|
|
"end": 1743,
|
|
"name": "singleCorner",
|
|
"start": 1731,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1807,
|
|
"name": "angle",
|
|
"start": 1802,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 1813,
|
|
"raw": "90",
|
|
"start": 1811,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 90.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 1813,
|
|
"operator": "-",
|
|
"start": 1810,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1819,
|
|
"name": "axis",
|
|
"start": 1815,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1829,
|
|
"name": "axis000",
|
|
"start": 1822,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1753,
|
|
"name": "revolve",
|
|
"start": 1746,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1830,
|
|
"start": 1746,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1783,
|
|
"name": "offset",
|
|
"start": 1777,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1798,
|
|
"name": "cornerRadius",
|
|
"start": 1786,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1770,
|
|
"name": "offsetPlane",
|
|
"start": 1759,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1799,
|
|
"start": 1759,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1775,
|
|
"raw": "\"YZ\"",
|
|
"start": 1771,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "YZ"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1758,
|
|
"name": "face",
|
|
"start": 1754,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1800,
|
|
"start": 1754,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
},
|
|
"start": 1731,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1830,
|
|
"kind": "const",
|
|
"start": 1731,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2040,
|
|
"id": {
|
|
"end": 1872,
|
|
"name": "corners",
|
|
"start": 1865,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1922,
|
|
"name": "arcDegrees",
|
|
"start": 1912,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1928,
|
|
"raw": "360",
|
|
"start": 1925,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1936,
|
|
"name": "axis",
|
|
"start": 1932,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1941,
|
|
"raw": "0",
|
|
"start": 1940,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1944,
|
|
"raw": "0",
|
|
"start": 1943,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1947,
|
|
"raw": "1",
|
|
"start": 1946,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1948,
|
|
"start": 1939,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1958,
|
|
"name": "center",
|
|
"start": 1952,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1975,
|
|
"left": {
|
|
"end": 1971,
|
|
"name": "binLength",
|
|
"start": 1962,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1975,
|
|
"raw": "2",
|
|
"start": 1974,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1962,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 1990,
|
|
"left": {
|
|
"end": 1986,
|
|
"name": "binLength",
|
|
"start": 1977,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1990,
|
|
"raw": "2",
|
|
"start": 1989,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1977,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 1993,
|
|
"raw": "0",
|
|
"start": 1992,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1994,
|
|
"start": 1961,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2007,
|
|
"name": "instances",
|
|
"start": 1998,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2011,
|
|
"raw": "4",
|
|
"start": 2010,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2031,
|
|
"name": "rotateDuplicates",
|
|
"start": 2015,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2038,
|
|
"raw": "true",
|
|
"start": 2034,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1892,
|
|
"name": "patternCircular3d",
|
|
"start": 1875,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2040,
|
|
"start": 1875,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1908,
|
|
"name": "singleCorner",
|
|
"start": 1896,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 1865,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2040,
|
|
"kind": "const",
|
|
"start": 1865,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2422,
|
|
"id": {
|
|
"end": 2100,
|
|
"name": "basePlateSides",
|
|
"start": 2086,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2145,
|
|
"name": "axis",
|
|
"start": 2141,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2152,
|
|
"raw": "1.0",
|
|
"start": 2149,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2157,
|
|
"raw": "0.0",
|
|
"start": 2154,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2162,
|
|
"raw": "0.0",
|
|
"start": 2159,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2163,
|
|
"start": 2148,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2181,
|
|
"name": "instances",
|
|
"start": 2172,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2197,
|
|
"name": "countBinWidth",
|
|
"start": 2184,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2214,
|
|
"name": "distance",
|
|
"start": 2206,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2226,
|
|
"name": "binLength",
|
|
"start": 2217,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2118,
|
|
"name": "patternLinear3d",
|
|
"start": 2103,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2233,
|
|
"start": 2103,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 2132,
|
|
"name": "sides",
|
|
"start": 2127,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2267,
|
|
"name": "axis",
|
|
"start": 2263,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2274,
|
|
"raw": "0.0",
|
|
"start": 2271,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2279,
|
|
"raw": "1.0",
|
|
"start": 2276,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2284,
|
|
"raw": "0.0",
|
|
"start": 2281,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2285,
|
|
"start": 2270,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2303,
|
|
"name": "instances",
|
|
"start": 2294,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2320,
|
|
"name": "countBinLength",
|
|
"start": 2306,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2337,
|
|
"name": "distance",
|
|
"start": 2329,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2349,
|
|
"name": "binLength",
|
|
"start": 2340,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2254,
|
|
"name": "patternLinear3d",
|
|
"start": 2239,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2356,
|
|
"start": 2239,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 2422,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 2422,
|
|
"start": 2356,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the corners of the baseplate by patterning the corners",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 2103,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 2086,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2422,
|
|
"kind": "const",
|
|
"start": 2086,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2749,
|
|
"id": {
|
|
"end": 2439,
|
|
"name": "basePlateCorners",
|
|
"start": 2423,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2486,
|
|
"name": "axis",
|
|
"start": 2482,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2493,
|
|
"raw": "1.0",
|
|
"start": 2490,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2498,
|
|
"raw": "0.0",
|
|
"start": 2495,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2503,
|
|
"raw": "0.0",
|
|
"start": 2500,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2504,
|
|
"start": 2489,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2522,
|
|
"name": "instances",
|
|
"start": 2513,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2538,
|
|
"name": "countBinWidth",
|
|
"start": 2525,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2555,
|
|
"name": "distance",
|
|
"start": 2547,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2567,
|
|
"name": "binLength",
|
|
"start": 2558,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2457,
|
|
"name": "patternLinear3d",
|
|
"start": 2442,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2574,
|
|
"start": 2442,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 2473,
|
|
"name": "corners",
|
|
"start": 2466,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2608,
|
|
"name": "axis",
|
|
"start": 2604,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2615,
|
|
"raw": "0.0",
|
|
"start": 2612,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2620,
|
|
"raw": "1.0",
|
|
"start": 2617,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2625,
|
|
"raw": "0.0",
|
|
"start": 2622,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2626,
|
|
"start": 2611,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2644,
|
|
"name": "instances",
|
|
"start": 2635,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2661,
|
|
"name": "countBinLength",
|
|
"start": 2647,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2678,
|
|
"name": "distance",
|
|
"start": 2670,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2690,
|
|
"name": "binLength",
|
|
"start": 2681,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2595,
|
|
"name": "patternLinear3d",
|
|
"start": 2580,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2697,
|
|
"start": 2580,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 2749,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 2749,
|
|
"start": 2697,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the center cutout for the magnet profile",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 2442,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 2423,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2749,
|
|
"kind": "const",
|
|
"start": 2423,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 4362,
|
|
"id": {
|
|
"end": 2771,
|
|
"name": "magnetCenterCutout",
|
|
"start": 2753,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 4338,
|
|
"id": {
|
|
"end": 2795,
|
|
"name": "magnetSketch",
|
|
"start": 2783,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2817,
|
|
"name": "plane",
|
|
"start": 2812,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2811,
|
|
"name": "startSketchOn",
|
|
"start": 2798,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2818,
|
|
"start": 2798,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 2873,
|
|
"left": {
|
|
"end": 2861,
|
|
"name": "firstStep",
|
|
"start": 2852,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2873,
|
|
"name": "thirdStep",
|
|
"start": 2864,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2852,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 2900,
|
|
"left": {
|
|
"end": 2885,
|
|
"raw": "2",
|
|
"start": 2884,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2900,
|
|
"name": "magOuterDiam",
|
|
"start": 2888,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2884,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 2909,
|
|
"start": 2841,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 2912,
|
|
"start": 2911,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2840,
|
|
"name": "startProfileAt",
|
|
"start": 2826,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2913,
|
|
"start": 2826,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2933,
|
|
"name": "length",
|
|
"start": 2927,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2998,
|
|
"left": {
|
|
"end": 2977,
|
|
"left": {
|
|
"end": 2952,
|
|
"left": {
|
|
"end": 2937,
|
|
"raw": "2",
|
|
"start": 2936,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2952,
|
|
"name": "magOuterDiam",
|
|
"start": 2940,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2936,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2977,
|
|
"left": {
|
|
"end": 2965,
|
|
"name": "firstStep",
|
|
"start": 2956,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2977,
|
|
"name": "thirdStep",
|
|
"start": 2968,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2956,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2936,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2998,
|
|
"left": {
|
|
"end": 2994,
|
|
"name": "magOuterDiam",
|
|
"start": 2982,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 2998,
|
|
"raw": "2",
|
|
"start": 2997,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2982,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2936,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2926,
|
|
"name": "xLine",
|
|
"start": 2921,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3000,
|
|
"start": 2921,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3110,
|
|
"properties": [
|
|
{
|
|
"end": 3040,
|
|
"key": {
|
|
"end": 3033,
|
|
"name": "angleStart",
|
|
"start": 3023,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3023,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3040,
|
|
"raw": "90.0",
|
|
"start": 3036,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 90.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3065,
|
|
"key": {
|
|
"end": 3059,
|
|
"name": "angleEnd",
|
|
"start": 3051,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3051,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3065,
|
|
"raw": "0.0",
|
|
"start": 3062,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3101,
|
|
"key": {
|
|
"end": 3082,
|
|
"name": "radius",
|
|
"start": 3076,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3076,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3101,
|
|
"left": {
|
|
"end": 3097,
|
|
"name": "magOuterDiam",
|
|
"start": 3085,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3101,
|
|
"raw": "2",
|
|
"start": 3100,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3085,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3012,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 3113,
|
|
"start": 3112,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3011,
|
|
"name": "arc",
|
|
"start": 3008,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3114,
|
|
"start": 3008,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3134,
|
|
"name": "length",
|
|
"start": 3128,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 3201,
|
|
"left": {
|
|
"end": 3180,
|
|
"left": {
|
|
"end": 3155,
|
|
"left": {
|
|
"end": 3140,
|
|
"raw": "2",
|
|
"start": 3139,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3155,
|
|
"name": "magOuterDiam",
|
|
"start": 3143,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3139,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3180,
|
|
"left": {
|
|
"end": 3168,
|
|
"name": "firstStep",
|
|
"start": 3159,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3180,
|
|
"name": "thirdStep",
|
|
"start": 3171,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3159,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3139,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3201,
|
|
"left": {
|
|
"end": 3197,
|
|
"name": "magOuterDiam",
|
|
"start": 3185,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3201,
|
|
"raw": "2",
|
|
"start": 3200,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3185,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3139,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 3201,
|
|
"operator": "-",
|
|
"start": 3137,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3127,
|
|
"name": "yLine",
|
|
"start": 3122,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3204,
|
|
"start": 3122,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3224,
|
|
"name": "length",
|
|
"start": 3218,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3256,
|
|
"left": {
|
|
"end": 3236,
|
|
"name": "binLength",
|
|
"start": 3227,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3256,
|
|
"left": {
|
|
"end": 3241,
|
|
"raw": "4",
|
|
"start": 3240,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3256,
|
|
"name": "magOuterDiam",
|
|
"start": 3244,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3240,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3227,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3217,
|
|
"name": "xLine",
|
|
"start": 3212,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3258,
|
|
"start": 3212,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3278,
|
|
"name": "length",
|
|
"start": 3272,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3343,
|
|
"left": {
|
|
"end": 3322,
|
|
"left": {
|
|
"end": 3297,
|
|
"left": {
|
|
"end": 3282,
|
|
"raw": "2",
|
|
"start": 3281,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3297,
|
|
"name": "magOuterDiam",
|
|
"start": 3285,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3281,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3322,
|
|
"left": {
|
|
"end": 3310,
|
|
"name": "firstStep",
|
|
"start": 3301,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3322,
|
|
"name": "thirdStep",
|
|
"start": 3313,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3301,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3281,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3343,
|
|
"left": {
|
|
"end": 3339,
|
|
"name": "magOuterDiam",
|
|
"start": 3327,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3343,
|
|
"raw": "2",
|
|
"start": 3342,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3327,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3281,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3271,
|
|
"name": "yLine",
|
|
"start": 3266,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3345,
|
|
"start": 3266,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3457,
|
|
"properties": [
|
|
{
|
|
"end": 3386,
|
|
"key": {
|
|
"end": 3378,
|
|
"name": "angleStart",
|
|
"start": 3368,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3368,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3386,
|
|
"raw": "180.0",
|
|
"start": 3381,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 180.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3412,
|
|
"key": {
|
|
"end": 3405,
|
|
"name": "angleEnd",
|
|
"start": 3397,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3397,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3412,
|
|
"raw": "90.0",
|
|
"start": 3408,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 90.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3448,
|
|
"key": {
|
|
"end": 3429,
|
|
"name": "radius",
|
|
"start": 3423,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3423,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3448,
|
|
"left": {
|
|
"end": 3444,
|
|
"name": "magOuterDiam",
|
|
"start": 3432,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3448,
|
|
"raw": "2",
|
|
"start": 3447,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3432,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3357,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 3460,
|
|
"start": 3459,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3356,
|
|
"name": "arc",
|
|
"start": 3353,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3461,
|
|
"start": 3353,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3481,
|
|
"name": "length",
|
|
"start": 3475,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3546,
|
|
"left": {
|
|
"end": 3525,
|
|
"left": {
|
|
"end": 3500,
|
|
"left": {
|
|
"end": 3485,
|
|
"raw": "2",
|
|
"start": 3484,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3500,
|
|
"name": "magOuterDiam",
|
|
"start": 3488,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3484,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3525,
|
|
"left": {
|
|
"end": 3513,
|
|
"name": "firstStep",
|
|
"start": 3504,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3525,
|
|
"name": "thirdStep",
|
|
"start": 3516,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3504,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3484,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3546,
|
|
"left": {
|
|
"end": 3542,
|
|
"name": "magOuterDiam",
|
|
"start": 3530,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3546,
|
|
"raw": "2",
|
|
"start": 3545,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3530,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3484,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3474,
|
|
"name": "xLine",
|
|
"start": 3469,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3548,
|
|
"start": 3469,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3568,
|
|
"name": "length",
|
|
"start": 3562,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3600,
|
|
"left": {
|
|
"end": 3580,
|
|
"name": "binLength",
|
|
"start": 3571,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3600,
|
|
"left": {
|
|
"end": 3585,
|
|
"raw": "4",
|
|
"start": 3584,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3600,
|
|
"name": "magOuterDiam",
|
|
"start": 3588,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3584,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3571,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3561,
|
|
"name": "yLine",
|
|
"start": 3556,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3602,
|
|
"start": 3556,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3622,
|
|
"name": "length",
|
|
"start": 3616,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 3689,
|
|
"left": {
|
|
"end": 3668,
|
|
"left": {
|
|
"end": 3643,
|
|
"left": {
|
|
"end": 3628,
|
|
"raw": "2",
|
|
"start": 3627,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3643,
|
|
"name": "magOuterDiam",
|
|
"start": 3631,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3627,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3668,
|
|
"left": {
|
|
"end": 3656,
|
|
"name": "firstStep",
|
|
"start": 3647,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3668,
|
|
"name": "thirdStep",
|
|
"start": 3659,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3647,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3627,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3689,
|
|
"left": {
|
|
"end": 3685,
|
|
"name": "magOuterDiam",
|
|
"start": 3673,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3689,
|
|
"raw": "2",
|
|
"start": 3688,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3673,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3627,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 3689,
|
|
"operator": "-",
|
|
"start": 3625,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3615,
|
|
"name": "xLine",
|
|
"start": 3610,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3692,
|
|
"start": 3610,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3805,
|
|
"properties": [
|
|
{
|
|
"end": 3733,
|
|
"key": {
|
|
"end": 3725,
|
|
"name": "angleStart",
|
|
"start": 3715,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3715,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3733,
|
|
"raw": "270.0",
|
|
"start": 3728,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 270.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3760,
|
|
"key": {
|
|
"end": 3752,
|
|
"name": "angleEnd",
|
|
"start": 3744,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3744,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3760,
|
|
"raw": "180.0",
|
|
"start": 3755,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 180.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3796,
|
|
"key": {
|
|
"end": 3777,
|
|
"name": "radius",
|
|
"start": 3771,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3771,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3796,
|
|
"left": {
|
|
"end": 3792,
|
|
"name": "magOuterDiam",
|
|
"start": 3780,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3796,
|
|
"raw": "2",
|
|
"start": 3795,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3780,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3704,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 3808,
|
|
"start": 3807,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3703,
|
|
"name": "arc",
|
|
"start": 3700,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3809,
|
|
"start": 3700,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3829,
|
|
"name": "length",
|
|
"start": 3823,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3894,
|
|
"left": {
|
|
"end": 3873,
|
|
"left": {
|
|
"end": 3848,
|
|
"left": {
|
|
"end": 3833,
|
|
"raw": "2",
|
|
"start": 3832,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3848,
|
|
"name": "magOuterDiam",
|
|
"start": 3836,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3832,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3873,
|
|
"left": {
|
|
"end": 3861,
|
|
"name": "firstStep",
|
|
"start": 3852,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3873,
|
|
"name": "thirdStep",
|
|
"start": 3864,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3852,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3832,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3894,
|
|
"left": {
|
|
"end": 3890,
|
|
"name": "magOuterDiam",
|
|
"start": 3878,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3894,
|
|
"raw": "2",
|
|
"start": 3893,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3878,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3832,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3822,
|
|
"name": "yLine",
|
|
"start": 3817,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3896,
|
|
"start": 3817,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3916,
|
|
"name": "length",
|
|
"start": 3910,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 3950,
|
|
"left": {
|
|
"end": 3930,
|
|
"name": "binLength",
|
|
"start": 3921,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3950,
|
|
"left": {
|
|
"end": 3935,
|
|
"raw": "4",
|
|
"start": 3934,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3950,
|
|
"name": "magOuterDiam",
|
|
"start": 3938,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3934,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3921,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 3950,
|
|
"operator": "-",
|
|
"start": 3919,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3957,
|
|
"name": "tag",
|
|
"start": 3954,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3968,
|
|
"start": 3960,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line012"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3909,
|
|
"name": "xLine",
|
|
"start": 3904,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3969,
|
|
"start": 3904,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3989,
|
|
"name": "length",
|
|
"start": 3983,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 4056,
|
|
"left": {
|
|
"end": 4035,
|
|
"left": {
|
|
"end": 4010,
|
|
"left": {
|
|
"end": 3995,
|
|
"raw": "2",
|
|
"start": 3994,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4010,
|
|
"name": "magOuterDiam",
|
|
"start": 3998,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3994,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4035,
|
|
"left": {
|
|
"end": 4023,
|
|
"name": "firstStep",
|
|
"start": 4014,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4035,
|
|
"name": "thirdStep",
|
|
"start": 4026,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4014,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3994,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4056,
|
|
"left": {
|
|
"end": 4052,
|
|
"name": "magOuterDiam",
|
|
"start": 4040,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 4056,
|
|
"raw": "2",
|
|
"start": 4055,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4040,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3994,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 4056,
|
|
"operator": "-",
|
|
"start": 3992,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3982,
|
|
"name": "yLine",
|
|
"start": 3977,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4059,
|
|
"start": 3977,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4172,
|
|
"properties": [
|
|
{
|
|
"end": 4100,
|
|
"key": {
|
|
"end": 4092,
|
|
"name": "angleStart",
|
|
"start": 4082,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4082,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4100,
|
|
"raw": "360.0",
|
|
"start": 4095,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 4127,
|
|
"key": {
|
|
"end": 4119,
|
|
"name": "angleEnd",
|
|
"start": 4111,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4111,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4127,
|
|
"raw": "270.0",
|
|
"start": 4122,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 270.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 4163,
|
|
"key": {
|
|
"end": 4144,
|
|
"name": "radius",
|
|
"start": 4138,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4138,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4163,
|
|
"left": {
|
|
"end": 4159,
|
|
"name": "magOuterDiam",
|
|
"start": 4147,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 4163,
|
|
"raw": "2",
|
|
"start": 4162,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4147,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 4071,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 4175,
|
|
"start": 4174,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4070,
|
|
"name": "arc",
|
|
"start": 4067,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4176,
|
|
"start": 4067,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4196,
|
|
"name": "length",
|
|
"start": 4190,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 4263,
|
|
"left": {
|
|
"end": 4242,
|
|
"left": {
|
|
"end": 4217,
|
|
"left": {
|
|
"end": 4202,
|
|
"raw": "2",
|
|
"start": 4201,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4217,
|
|
"name": "magOuterDiam",
|
|
"start": 4205,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4201,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4242,
|
|
"left": {
|
|
"end": 4230,
|
|
"name": "firstStep",
|
|
"start": 4221,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4242,
|
|
"name": "thirdStep",
|
|
"start": 4233,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4221,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4201,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4263,
|
|
"left": {
|
|
"end": 4259,
|
|
"name": "magOuterDiam",
|
|
"start": 4247,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 4263,
|
|
"raw": "2",
|
|
"start": 4262,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4247,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4201,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 4263,
|
|
"operator": "-",
|
|
"start": 4199,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4189,
|
|
"name": "xLine",
|
|
"start": 4184,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4266,
|
|
"start": 4184,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4286,
|
|
"name": "length",
|
|
"start": 4280,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 4320,
|
|
"left": {
|
|
"end": 4300,
|
|
"name": "binLength",
|
|
"start": 4291,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4320,
|
|
"left": {
|
|
"end": 4305,
|
|
"raw": "4",
|
|
"start": 4304,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4320,
|
|
"name": "magOuterDiam",
|
|
"start": 4308,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4304,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4291,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 4320,
|
|
"operator": "-",
|
|
"start": 4289,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4279,
|
|
"name": "yLine",
|
|
"start": 4274,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4323,
|
|
"start": 4274,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 4336,
|
|
"name": "close",
|
|
"start": 4331,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4338,
|
|
"start": 4331,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 4338,
|
|
"start": 2798,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 2783,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4338,
|
|
"kind": "const",
|
|
"start": 2783,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 4360,
|
|
"name": "magnetSketch",
|
|
"start": 4348,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4360,
|
|
"start": 4341,
|
|
"type": "ReturnStatement",
|
|
"type": "ReturnStatement"
|
|
}
|
|
],
|
|
"end": 4362,
|
|
"start": 2779
|
|
},
|
|
"end": 4362,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 2777,
|
|
"name": "plane",
|
|
"start": 2772,
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 2771,
|
|
"type": "FunctionExpression",
|
|
"type": "FunctionExpression"
|
|
},
|
|
"start": 2753,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4362,
|
|
"kind": "fn",
|
|
"start": 2750,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 4764,
|
|
"id": {
|
|
"end": 4422,
|
|
"name": "magnetBase",
|
|
"start": 4412,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 4736,
|
|
"id": {
|
|
"end": 4450,
|
|
"name": "magnetBaseSketch",
|
|
"start": 4434,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4472,
|
|
"name": "plane",
|
|
"start": 4467,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4466,
|
|
"name": "startSketchOn",
|
|
"start": 4453,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4473,
|
|
"start": 4453,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 4498,
|
|
"raw": "0",
|
|
"start": 4497,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 4501,
|
|
"raw": "0",
|
|
"start": 4500,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 4502,
|
|
"start": 4496,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 4505,
|
|
"start": 4504,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4495,
|
|
"name": "startProfileAt",
|
|
"start": 4481,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4506,
|
|
"start": 4481,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4526,
|
|
"name": "length",
|
|
"start": 4520,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4538,
|
|
"name": "binLength",
|
|
"start": 4529,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4543,
|
|
"name": "tag",
|
|
"start": 4540,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4554,
|
|
"start": 4546,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line001"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4519,
|
|
"name": "xLine",
|
|
"start": 4514,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4555,
|
|
"start": 4514,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4575,
|
|
"name": "length",
|
|
"start": 4569,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4587,
|
|
"name": "binLength",
|
|
"start": 4578,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4592,
|
|
"name": "tag",
|
|
"start": 4589,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4603,
|
|
"start": 4595,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line002"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4568,
|
|
"name": "yLine",
|
|
"start": 4563,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4604,
|
|
"start": 4563,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4629,
|
|
"name": "endAbsolute",
|
|
"start": 4618,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"arguments": [
|
|
{
|
|
"end": 4647,
|
|
"start": 4646,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4645,
|
|
"name": "profileStartX",
|
|
"start": 4632,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4648,
|
|
"start": 4632,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4653,
|
|
"name": "tag",
|
|
"start": 4650,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4664,
|
|
"start": 4656,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line003"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4617,
|
|
"name": "xLine",
|
|
"start": 4612,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4665,
|
|
"start": 4612,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4682,
|
|
"name": "tag",
|
|
"start": 4679,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4693,
|
|
"start": 4685,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line004"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4678,
|
|
"name": "close",
|
|
"start": 4673,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4694,
|
|
"start": 4673,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4731,
|
|
"name": "plane",
|
|
"start": 4726,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4725,
|
|
"name": "magnetCenterCutout",
|
|
"start": 4707,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4732,
|
|
"start": 4707,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"end": 4735,
|
|
"start": 4734,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4706,
|
|
"name": "hole",
|
|
"start": 4702,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4736,
|
|
"start": 4702,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 4736,
|
|
"start": 4453,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 4434,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4736,
|
|
"kind": "const",
|
|
"start": 4434,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 4762,
|
|
"name": "magnetBaseSketch",
|
|
"start": 4746,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4762,
|
|
"start": 4739,
|
|
"type": "ReturnStatement",
|
|
"type": "ReturnStatement"
|
|
}
|
|
],
|
|
"end": 4764,
|
|
"start": 4430
|
|
},
|
|
"end": 4764,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 4428,
|
|
"name": "plane",
|
|
"start": 4423,
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 4422,
|
|
"type": "FunctionExpression",
|
|
"type": "FunctionExpression"
|
|
},
|
|
"start": 4412,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4764,
|
|
"kind": "fn",
|
|
"start": 4409,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5158,
|
|
"id": {
|
|
"end": 4824,
|
|
"name": "magnetsSketch",
|
|
"start": 4811,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4845,
|
|
"raw": "'XY'",
|
|
"start": 4841,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XY"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4840,
|
|
"name": "startSketchOn",
|
|
"start": 4827,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4846,
|
|
"start": 4827,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4873,
|
|
"name": "center",
|
|
"start": 4867,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4893,
|
|
"left": {
|
|
"end": 4889,
|
|
"name": "cornerRadius",
|
|
"start": 4877,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4893,
|
|
"raw": "2",
|
|
"start": 4892,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4877,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 4911,
|
|
"left": {
|
|
"end": 4907,
|
|
"name": "cornerRadius",
|
|
"start": 4895,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4911,
|
|
"raw": "2",
|
|
"start": 4910,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4895,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 4912,
|
|
"start": 4876,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4927,
|
|
"name": "radius",
|
|
"start": 4921,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4946,
|
|
"left": {
|
|
"end": 4942,
|
|
"name": "magOuterDiam",
|
|
"start": 4930,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 4946,
|
|
"raw": "2",
|
|
"start": 4945,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4930,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4858,
|
|
"name": "circle",
|
|
"start": 4852,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4953,
|
|
"start": 4852,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4991,
|
|
"name": "center",
|
|
"start": 4985,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5008,
|
|
"left": {
|
|
"end": 5004,
|
|
"name": "binLength",
|
|
"start": 4995,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 5008,
|
|
"raw": "2",
|
|
"start": 5007,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4995,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 5023,
|
|
"left": {
|
|
"end": 5019,
|
|
"name": "binLength",
|
|
"start": 5010,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 5023,
|
|
"raw": "2",
|
|
"start": 5022,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5010,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 5024,
|
|
"start": 4994,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5042,
|
|
"name": "instances",
|
|
"start": 5033,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5046,
|
|
"raw": "4",
|
|
"start": 5045,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5065,
|
|
"name": "arcDegrees",
|
|
"start": 5055,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5071,
|
|
"raw": "360",
|
|
"start": 5068,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5096,
|
|
"name": "rotateDuplicates",
|
|
"start": 5080,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5103,
|
|
"raw": "true",
|
|
"start": 5099,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4976,
|
|
"name": "patternCircular2d",
|
|
"start": 4959,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5110,
|
|
"start": 4959,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 5158,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"2": [
|
|
{
|
|
"end": 5158,
|
|
"start": 5110,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create a profile with holes for the magnets",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 4827,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 4811,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5158,
|
|
"kind": "const",
|
|
"start": 4811,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5275,
|
|
"id": {
|
|
"end": 5172,
|
|
"name": "magnetProfile",
|
|
"start": 5159,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5190,
|
|
"raw": "\"XY\"",
|
|
"start": 5186,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XY"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5185,
|
|
"name": "magnetBase",
|
|
"start": 5175,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5191,
|
|
"start": 5175,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5215,
|
|
"name": "magnetsSketch",
|
|
"start": 5202,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 5218,
|
|
"start": 5217,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5201,
|
|
"name": "hole",
|
|
"start": 5197,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5219,
|
|
"start": 5197,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 5275,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 5275,
|
|
"start": 5219,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create an extrusion of the magnet cutout with holes",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 5175,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 5159,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5275,
|
|
"kind": "const",
|
|
"start": 5159,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5339,
|
|
"id": {
|
|
"end": 5294,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5276,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5326,
|
|
"name": "length",
|
|
"start": 5320,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 5338,
|
|
"name": "magDepth",
|
|
"start": 5330,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5338,
|
|
"operator": "-",
|
|
"start": 5329,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5304,
|
|
"name": "extrude",
|
|
"start": 5297,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5339,
|
|
"start": 5297,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 5318,
|
|
"name": "magnetProfile",
|
|
"start": 5305,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 5276,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5339,
|
|
"kind": "const",
|
|
"start": 5276,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5740,
|
|
"id": {
|
|
"end": 5399,
|
|
"name": "magnetHolesExtrudeFillets",
|
|
"start": 5374,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5440,
|
|
"name": "radius",
|
|
"start": 5434,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5455,
|
|
"name": "cornerRadius",
|
|
"start": 5443,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5463,
|
|
"name": "tags",
|
|
"start": 5459,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 5530,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5522,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5517,
|
|
"object": {
|
|
"end": 5510,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5492,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 5517,
|
|
"name": "sketch",
|
|
"start": 5511,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5492,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5522,
|
|
"name": "tags",
|
|
"start": 5518,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5492,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5530,
|
|
"name": "line001",
|
|
"start": 5523,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5492,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5491,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 5472,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5531,
|
|
"start": 5472,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 5599,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5591,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5586,
|
|
"object": {
|
|
"end": 5579,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5561,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 5586,
|
|
"name": "sketch",
|
|
"start": 5580,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5561,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5591,
|
|
"name": "tags",
|
|
"start": 5587,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5561,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5599,
|
|
"name": "line001",
|
|
"start": 5592,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5561,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5560,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 5537,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5600,
|
|
"start": 5537,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 5664,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5656,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5651,
|
|
"object": {
|
|
"end": 5644,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5626,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 5651,
|
|
"name": "sketch",
|
|
"start": 5645,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5626,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5656,
|
|
"name": "tags",
|
|
"start": 5652,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5626,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5664,
|
|
"name": "line003",
|
|
"start": 5657,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5626,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5625,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 5606,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5665,
|
|
"start": 5606,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 5733,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5725,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5720,
|
|
"object": {
|
|
"end": 5713,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5695,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 5720,
|
|
"name": "sketch",
|
|
"start": 5714,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5695,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5725,
|
|
"name": "tags",
|
|
"start": 5721,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5695,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5733,
|
|
"name": "line003",
|
|
"start": 5726,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5695,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5694,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 5671,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5734,
|
|
"start": 5671,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 5738,
|
|
"start": 5466,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5408,
|
|
"name": "fillet",
|
|
"start": 5402,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5740,
|
|
"start": 5402,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 5430,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5412,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 5374,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5740,
|
|
"kind": "const",
|
|
"start": 5374,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5870,
|
|
"id": {
|
|
"end": 5818,
|
|
"name": "magnetProfileNoMagnets",
|
|
"start": 5796,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5856,
|
|
"name": "offset",
|
|
"start": 5850,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 5868,
|
|
"name": "magDepth",
|
|
"start": 5860,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5868,
|
|
"operator": "-",
|
|
"start": 5859,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5843,
|
|
"name": "offsetPlane",
|
|
"start": 5832,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5869,
|
|
"start": 5832,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 5848,
|
|
"raw": "\"XY\"",
|
|
"start": 5844,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XY"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5831,
|
|
"name": "magnetBase",
|
|
"start": 5821,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5870,
|
|
"start": 5821,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"start": 5796,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5870,
|
|
"kind": "const",
|
|
"start": 5796,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 6003,
|
|
"id": {
|
|
"end": 5949,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 5930,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5990,
|
|
"name": "length",
|
|
"start": 5984,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 6002,
|
|
"name": "magDepth",
|
|
"start": 5994,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6002,
|
|
"operator": "-",
|
|
"start": 5993,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5959,
|
|
"name": "extrude",
|
|
"start": 5952,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6003,
|
|
"start": 5952,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 5982,
|
|
"name": "magnetProfileNoMagnets",
|
|
"start": 5960,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 5930,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 6003,
|
|
"kind": "const",
|
|
"start": 5930,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 6410,
|
|
"id": {
|
|
"end": 6064,
|
|
"name": "magnetCutoutExtrudeFillets",
|
|
"start": 6038,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6106,
|
|
"name": "radius",
|
|
"start": 6100,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6121,
|
|
"name": "cornerRadius",
|
|
"start": 6109,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6129,
|
|
"name": "tags",
|
|
"start": 6125,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 6197,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6189,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6184,
|
|
"object": {
|
|
"end": 6177,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 6158,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 6184,
|
|
"name": "sketch",
|
|
"start": 6178,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6158,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6189,
|
|
"name": "tags",
|
|
"start": 6185,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6158,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6197,
|
|
"name": "line001",
|
|
"start": 6190,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6158,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6157,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 6138,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6198,
|
|
"start": 6138,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 6267,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6259,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6254,
|
|
"object": {
|
|
"end": 6247,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 6228,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 6254,
|
|
"name": "sketch",
|
|
"start": 6248,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6228,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6259,
|
|
"name": "tags",
|
|
"start": 6255,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6228,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6267,
|
|
"name": "line001",
|
|
"start": 6260,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6228,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6227,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 6204,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6268,
|
|
"start": 6204,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 6333,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6325,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6320,
|
|
"object": {
|
|
"end": 6313,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 6294,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 6320,
|
|
"name": "sketch",
|
|
"start": 6314,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6294,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6325,
|
|
"name": "tags",
|
|
"start": 6321,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6294,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6333,
|
|
"name": "line003",
|
|
"start": 6326,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6294,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6293,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 6274,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6334,
|
|
"start": 6274,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 6403,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6395,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6390,
|
|
"object": {
|
|
"end": 6383,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 6364,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 6390,
|
|
"name": "sketch",
|
|
"start": 6384,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6364,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6395,
|
|
"name": "tags",
|
|
"start": 6391,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6364,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6403,
|
|
"name": "line003",
|
|
"start": 6396,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6364,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6363,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 6340,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6404,
|
|
"start": 6340,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 6408,
|
|
"start": 6132,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6073,
|
|
"name": "fillet",
|
|
"start": 6067,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6410,
|
|
"start": 6067,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 6096,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 6077,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 6038,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 6410,
|
|
"kind": "const",
|
|
"start": 6038,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"end": 6771,
|
|
"expression": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6515,
|
|
"name": "axis",
|
|
"start": 6511,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6522,
|
|
"raw": "1.0",
|
|
"start": 6519,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6527,
|
|
"raw": "0.0",
|
|
"start": 6524,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6532,
|
|
"raw": "0.0",
|
|
"start": 6529,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6533,
|
|
"start": 6518,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6551,
|
|
"name": "instances",
|
|
"start": 6542,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6567,
|
|
"name": "countBinWidth",
|
|
"start": 6554,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6584,
|
|
"name": "distance",
|
|
"start": 6576,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6596,
|
|
"name": "binLength",
|
|
"start": 6587,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6468,
|
|
"name": "patternLinear3d",
|
|
"start": 6453,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6603,
|
|
"start": 6453,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 6502,
|
|
"name": "magnetHolesExtrudeFillets",
|
|
"start": 6477,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6637,
|
|
"name": "axis",
|
|
"start": 6633,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6644,
|
|
"raw": "0.0",
|
|
"start": 6641,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6649,
|
|
"raw": "1.0",
|
|
"start": 6646,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6654,
|
|
"raw": "0.0",
|
|
"start": 6651,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6655,
|
|
"start": 6640,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6673,
|
|
"name": "instances",
|
|
"start": 6664,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6690,
|
|
"name": "countBinLength",
|
|
"start": 6676,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6707,
|
|
"name": "distance",
|
|
"start": 6699,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6719,
|
|
"name": "binLength",
|
|
"start": 6710,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6624,
|
|
"name": "patternLinear3d",
|
|
"start": 6609,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6726,
|
|
"start": 6609,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 6771,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 6771,
|
|
"start": 6726,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "pattern the magnet cutouts without holes",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 6453,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 6453,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"end": 7046,
|
|
"expression": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6835,
|
|
"name": "axis",
|
|
"start": 6831,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6842,
|
|
"raw": "1.0",
|
|
"start": 6839,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6847,
|
|
"raw": "0.0",
|
|
"start": 6844,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6852,
|
|
"raw": "0.0",
|
|
"start": 6849,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6853,
|
|
"start": 6838,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6871,
|
|
"name": "instances",
|
|
"start": 6862,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6887,
|
|
"name": "countBinWidth",
|
|
"start": 6874,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6904,
|
|
"name": "distance",
|
|
"start": 6896,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6916,
|
|
"name": "binLength",
|
|
"start": 6907,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6787,
|
|
"name": "patternLinear3d",
|
|
"start": 6772,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6923,
|
|
"start": 6772,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 6822,
|
|
"name": "magnetCutoutExtrudeFillets",
|
|
"start": 6796,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6957,
|
|
"name": "axis",
|
|
"start": 6953,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6964,
|
|
"raw": "0.0",
|
|
"start": 6961,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6969,
|
|
"raw": "1.0",
|
|
"start": 6966,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6974,
|
|
"raw": "0.0",
|
|
"start": 6971,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6975,
|
|
"start": 6960,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6993,
|
|
"name": "instances",
|
|
"start": 6984,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7010,
|
|
"name": "countBinLength",
|
|
"start": 6996,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7027,
|
|
"name": "distance",
|
|
"start": 7019,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7039,
|
|
"name": "binLength",
|
|
"start": 7030,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6944,
|
|
"name": "patternLinear3d",
|
|
"start": 6929,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 7046,
|
|
"start": 6929,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 7046,
|
|
"start": 6772,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 6772,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"end": 7047,
|
|
"innerAttrs": [
|
|
{
|
|
"end": 417,
|
|
"name": {
|
|
"end": 393,
|
|
"name": "settings",
|
|
"start": 385,
|
|
"type": "Identifier"
|
|
},
|
|
"properties": [
|
|
{
|
|
"end": 416,
|
|
"key": {
|
|
"end": 411,
|
|
"name": "defaultLengthUnit",
|
|
"start": 394,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 394,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 416,
|
|
"name": "mm",
|
|
"start": 414,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 384,
|
|
"type": "Annotation"
|
|
}
|
|
],
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"7": [
|
|
{
|
|
"end": 611,
|
|
"start": 574,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Number of bins in each direction",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"9": [
|
|
{
|
|
"end": 748,
|
|
"start": 648,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "The total height of the baseplate is a summation of the vertical heights of the baseplate steps",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"10": [
|
|
{
|
|
"end": 860,
|
|
"start": 792,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "define a function which builds the profile of the baseplate bin",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"11": [
|
|
{
|
|
"end": 1219,
|
|
"start": 1182,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "extrude a single side of the bin",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"12": [
|
|
{
|
|
"end": 1397,
|
|
"start": 1331,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the other sides of the bin by using a circular pattern",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"13": [
|
|
{
|
|
"end": 1596,
|
|
"start": 1569,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "define an axis axis000",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"14": [
|
|
{
|
|
"end": 1730,
|
|
"start": 1692,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create a single corner of the bin",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"15": [
|
|
{
|
|
"end": 1864,
|
|
"start": 1830,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the corners of the bin",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"16": [
|
|
{
|
|
"end": 2085,
|
|
"start": 2040,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the baseplate by patterning sides",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"19": [
|
|
{
|
|
"end": 4408,
|
|
"start": 4362,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the outside profile of the magnets",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"20": [
|
|
{
|
|
"end": 4810,
|
|
"start": 4764,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create sketch profile sketch000Profile002",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"23": [
|
|
{
|
|
"end": 5373,
|
|
"start": 5339,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "add a fillet to the extrusion",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"24": [
|
|
{
|
|
"end": 5795,
|
|
"start": 5740,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create a profile without the holes for the magnets",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"25": [
|
|
{
|
|
"end": 5929,
|
|
"start": 5870,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create an extrusion of the magnet cutout without holes",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"26": [
|
|
{
|
|
"end": 6037,
|
|
"start": 6003,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "add a fillet to the extrusion",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"27": [
|
|
{
|
|
"end": 6452,
|
|
"start": 6410,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "pattern the magnet cutouts with holes",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": [
|
|
{
|
|
"end": 36,
|
|
"start": 0,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Gridfinity Baseplate With Magnets",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 349,
|
|
"start": 37,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Gridfinity is a system to help you work more efficiently. This is a system invented by Zack Freedman. There are two main components the baseplate and the bins. The components are comprised of a matrix of squares. Allowing easy stacking and expansion. This baseplate version includes holes for magnet placement",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 351,
|
|
"start": 349,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
},
|
|
{
|
|
"end": 383,
|
|
"start": 351,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Set units in millimeters (mm)",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 419,
|
|
"start": 417,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
},
|
|
{
|
|
"end": 438,
|
|
"start": 419,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Define constants",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"start": 0
|
|
}
|
|
}
|