Previously, `xLine`, `xLineTo`, `yLine` and `yLineTo` used positional arguments. Now: - `xLineTo` and `yLineTo` have been removed - `xLine` and `yLine` both use keyword arguments: - `length`, optional (i.e. a relative distance along the X or Y axis) - `endAbsolute` optional (i.e. an absolute point along the X or Y axis) - `tag` optional - Exactly one of `length` or `endAbsolute` must be given. Not both, not neither. For example: ``` // Old way |> xLine(6.04, %) |> yLineTo(20, %, $base) // New way |> xLine(length = 6.04) |> yLine(endAbsolute = 20, tag = $base) ``` This also improves some of the general-purpose keyword arguments code in modeling app's TS codebase.
6235 lines
229 KiB
Plaintext
6235 lines
229 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": 1834,
|
|
"id": {
|
|
"end": 1743,
|
|
"name": "singleCorner",
|
|
"start": 1731,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"end": 1785,
|
|
"properties": [
|
|
{
|
|
"end": 1767,
|
|
"key": {
|
|
"end": 1761,
|
|
"name": "angle",
|
|
"start": 1756,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1756,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"argument": {
|
|
"end": 1767,
|
|
"raw": "90",
|
|
"start": 1765,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 90.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 1767,
|
|
"operator": "-",
|
|
"start": 1764,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1783,
|
|
"key": {
|
|
"end": 1773,
|
|
"name": "axis",
|
|
"start": 1769,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1769,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1783,
|
|
"name": "axis000",
|
|
"start": 1776,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 1754,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1816,
|
|
"name": "offset",
|
|
"start": 1810,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1831,
|
|
"name": "cornerRadius",
|
|
"start": 1819,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1803,
|
|
"name": "offsetPlane",
|
|
"start": 1792,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1832,
|
|
"start": 1792,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1808,
|
|
"raw": "\"YZ\"",
|
|
"start": 1804,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "YZ"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1791,
|
|
"name": "face",
|
|
"start": 1787,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1833,
|
|
"start": 1787,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1753,
|
|
"name": "revolve",
|
|
"start": 1746,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1834,
|
|
"start": 1746,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"start": 1731,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1834,
|
|
"kind": "const",
|
|
"start": 1731,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2044,
|
|
"id": {
|
|
"end": 1876,
|
|
"name": "corners",
|
|
"start": 1869,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1926,
|
|
"name": "arcDegrees",
|
|
"start": 1916,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1932,
|
|
"raw": "360",
|
|
"start": 1929,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1940,
|
|
"name": "axis",
|
|
"start": 1936,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1945,
|
|
"raw": "0",
|
|
"start": 1944,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1948,
|
|
"raw": "0",
|
|
"start": 1947,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1951,
|
|
"raw": "1",
|
|
"start": 1950,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1952,
|
|
"start": 1943,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1962,
|
|
"name": "center",
|
|
"start": 1956,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1979,
|
|
"left": {
|
|
"end": 1975,
|
|
"name": "binLength",
|
|
"start": 1966,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1979,
|
|
"raw": "2",
|
|
"start": 1978,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1966,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 1994,
|
|
"left": {
|
|
"end": 1990,
|
|
"name": "binLength",
|
|
"start": 1981,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1994,
|
|
"raw": "2",
|
|
"start": 1993,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1981,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 1997,
|
|
"raw": "0",
|
|
"start": 1996,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1998,
|
|
"start": 1965,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2011,
|
|
"name": "instances",
|
|
"start": 2002,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2015,
|
|
"raw": "4",
|
|
"start": 2014,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2035,
|
|
"name": "rotateDuplicates",
|
|
"start": 2019,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2042,
|
|
"raw": "true",
|
|
"start": 2038,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1896,
|
|
"name": "patternCircular3d",
|
|
"start": 1879,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2044,
|
|
"start": 1879,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1912,
|
|
"name": "singleCorner",
|
|
"start": 1900,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 1869,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2044,
|
|
"kind": "const",
|
|
"start": 1869,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2426,
|
|
"id": {
|
|
"end": 2104,
|
|
"name": "basePlateSides",
|
|
"start": 2090,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2149,
|
|
"name": "axis",
|
|
"start": 2145,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2156,
|
|
"raw": "1.0",
|
|
"start": 2153,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2161,
|
|
"raw": "0.0",
|
|
"start": 2158,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2166,
|
|
"raw": "0.0",
|
|
"start": 2163,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2167,
|
|
"start": 2152,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2185,
|
|
"name": "instances",
|
|
"start": 2176,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2201,
|
|
"name": "countBinWidth",
|
|
"start": 2188,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2218,
|
|
"name": "distance",
|
|
"start": 2210,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2230,
|
|
"name": "binLength",
|
|
"start": 2221,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2122,
|
|
"name": "patternLinear3d",
|
|
"start": 2107,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2237,
|
|
"start": 2107,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 2136,
|
|
"name": "sides",
|
|
"start": 2131,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2271,
|
|
"name": "axis",
|
|
"start": 2267,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2278,
|
|
"raw": "0.0",
|
|
"start": 2275,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2283,
|
|
"raw": "1.0",
|
|
"start": 2280,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2288,
|
|
"raw": "0.0",
|
|
"start": 2285,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2289,
|
|
"start": 2274,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2307,
|
|
"name": "instances",
|
|
"start": 2298,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2324,
|
|
"name": "countBinLength",
|
|
"start": 2310,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2341,
|
|
"name": "distance",
|
|
"start": 2333,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2353,
|
|
"name": "binLength",
|
|
"start": 2344,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2258,
|
|
"name": "patternLinear3d",
|
|
"start": 2243,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2360,
|
|
"start": 2243,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 2426,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 2426,
|
|
"start": 2360,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the corners of the baseplate by patterning the corners",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 2107,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 2090,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2426,
|
|
"kind": "const",
|
|
"start": 2090,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2753,
|
|
"id": {
|
|
"end": 2443,
|
|
"name": "basePlateCorners",
|
|
"start": 2427,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2490,
|
|
"name": "axis",
|
|
"start": 2486,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2497,
|
|
"raw": "1.0",
|
|
"start": 2494,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2502,
|
|
"raw": "0.0",
|
|
"start": 2499,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2507,
|
|
"raw": "0.0",
|
|
"start": 2504,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2508,
|
|
"start": 2493,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2526,
|
|
"name": "instances",
|
|
"start": 2517,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2542,
|
|
"name": "countBinWidth",
|
|
"start": 2529,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2559,
|
|
"name": "distance",
|
|
"start": 2551,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2571,
|
|
"name": "binLength",
|
|
"start": 2562,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2461,
|
|
"name": "patternLinear3d",
|
|
"start": 2446,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2578,
|
|
"start": 2446,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 2477,
|
|
"name": "corners",
|
|
"start": 2470,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2612,
|
|
"name": "axis",
|
|
"start": 2608,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2619,
|
|
"raw": "0.0",
|
|
"start": 2616,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2624,
|
|
"raw": "1.0",
|
|
"start": 2621,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2629,
|
|
"raw": "0.0",
|
|
"start": 2626,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2630,
|
|
"start": 2615,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2648,
|
|
"name": "instances",
|
|
"start": 2639,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2665,
|
|
"name": "countBinLength",
|
|
"start": 2651,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2682,
|
|
"name": "distance",
|
|
"start": 2674,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2694,
|
|
"name": "binLength",
|
|
"start": 2685,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2599,
|
|
"name": "patternLinear3d",
|
|
"start": 2584,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2701,
|
|
"start": 2584,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 2753,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 2753,
|
|
"start": 2701,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the center cutout for the magnet profile",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 2446,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 2427,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2753,
|
|
"kind": "const",
|
|
"start": 2427,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 4366,
|
|
"id": {
|
|
"end": 2775,
|
|
"name": "magnetCenterCutout",
|
|
"start": 2757,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 4342,
|
|
"id": {
|
|
"end": 2799,
|
|
"name": "magnetSketch",
|
|
"start": 2787,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2821,
|
|
"name": "plane",
|
|
"start": 2816,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2815,
|
|
"name": "startSketchOn",
|
|
"start": 2802,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2822,
|
|
"start": 2802,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 2877,
|
|
"left": {
|
|
"end": 2865,
|
|
"name": "firstStep",
|
|
"start": 2856,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2877,
|
|
"name": "thirdStep",
|
|
"start": 2868,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2856,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 2904,
|
|
"left": {
|
|
"end": 2889,
|
|
"raw": "2",
|
|
"start": 2888,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2904,
|
|
"name": "magOuterDiam",
|
|
"start": 2892,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2888,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 2913,
|
|
"start": 2845,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 2916,
|
|
"start": 2915,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2844,
|
|
"name": "startProfileAt",
|
|
"start": 2830,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2917,
|
|
"start": 2830,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2937,
|
|
"name": "length",
|
|
"start": 2931,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3002,
|
|
"left": {
|
|
"end": 2981,
|
|
"left": {
|
|
"end": 2956,
|
|
"left": {
|
|
"end": 2941,
|
|
"raw": "2",
|
|
"start": 2940,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2956,
|
|
"name": "magOuterDiam",
|
|
"start": 2944,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2940,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2981,
|
|
"left": {
|
|
"end": 2969,
|
|
"name": "firstStep",
|
|
"start": 2960,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2981,
|
|
"name": "thirdStep",
|
|
"start": 2972,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2960,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2940,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3002,
|
|
"left": {
|
|
"end": 2998,
|
|
"name": "magOuterDiam",
|
|
"start": 2986,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3002,
|
|
"raw": "2",
|
|
"start": 3001,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2986,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2940,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2930,
|
|
"name": "xLine",
|
|
"start": 2925,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3004,
|
|
"start": 2925,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3114,
|
|
"properties": [
|
|
{
|
|
"end": 3044,
|
|
"key": {
|
|
"end": 3037,
|
|
"name": "angleStart",
|
|
"start": 3027,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3027,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3044,
|
|
"raw": "90.0",
|
|
"start": 3040,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 90.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3069,
|
|
"key": {
|
|
"end": 3063,
|
|
"name": "angleEnd",
|
|
"start": 3055,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3055,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3069,
|
|
"raw": "0.0",
|
|
"start": 3066,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3105,
|
|
"key": {
|
|
"end": 3086,
|
|
"name": "radius",
|
|
"start": 3080,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3080,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3105,
|
|
"left": {
|
|
"end": 3101,
|
|
"name": "magOuterDiam",
|
|
"start": 3089,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3105,
|
|
"raw": "2",
|
|
"start": 3104,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3089,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3016,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 3117,
|
|
"start": 3116,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3015,
|
|
"name": "arc",
|
|
"start": 3012,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3118,
|
|
"start": 3012,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3138,
|
|
"name": "length",
|
|
"start": 3132,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 3205,
|
|
"left": {
|
|
"end": 3184,
|
|
"left": {
|
|
"end": 3159,
|
|
"left": {
|
|
"end": 3144,
|
|
"raw": "2",
|
|
"start": 3143,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3159,
|
|
"name": "magOuterDiam",
|
|
"start": 3147,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3143,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3184,
|
|
"left": {
|
|
"end": 3172,
|
|
"name": "firstStep",
|
|
"start": 3163,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3184,
|
|
"name": "thirdStep",
|
|
"start": 3175,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3163,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3143,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3205,
|
|
"left": {
|
|
"end": 3201,
|
|
"name": "magOuterDiam",
|
|
"start": 3189,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3205,
|
|
"raw": "2",
|
|
"start": 3204,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3189,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3143,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 3205,
|
|
"operator": "-",
|
|
"start": 3141,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3131,
|
|
"name": "yLine",
|
|
"start": 3126,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3208,
|
|
"start": 3126,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3228,
|
|
"name": "length",
|
|
"start": 3222,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3260,
|
|
"left": {
|
|
"end": 3240,
|
|
"name": "binLength",
|
|
"start": 3231,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3260,
|
|
"left": {
|
|
"end": 3245,
|
|
"raw": "4",
|
|
"start": 3244,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3260,
|
|
"name": "magOuterDiam",
|
|
"start": 3248,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3244,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3231,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3221,
|
|
"name": "xLine",
|
|
"start": 3216,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3262,
|
|
"start": 3216,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3282,
|
|
"name": "length",
|
|
"start": 3276,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3347,
|
|
"left": {
|
|
"end": 3326,
|
|
"left": {
|
|
"end": 3301,
|
|
"left": {
|
|
"end": 3286,
|
|
"raw": "2",
|
|
"start": 3285,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3301,
|
|
"name": "magOuterDiam",
|
|
"start": 3289,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3285,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3326,
|
|
"left": {
|
|
"end": 3314,
|
|
"name": "firstStep",
|
|
"start": 3305,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3326,
|
|
"name": "thirdStep",
|
|
"start": 3317,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3305,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3285,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3347,
|
|
"left": {
|
|
"end": 3343,
|
|
"name": "magOuterDiam",
|
|
"start": 3331,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3347,
|
|
"raw": "2",
|
|
"start": 3346,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3331,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3285,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3275,
|
|
"name": "yLine",
|
|
"start": 3270,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3349,
|
|
"start": 3270,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3461,
|
|
"properties": [
|
|
{
|
|
"end": 3390,
|
|
"key": {
|
|
"end": 3382,
|
|
"name": "angleStart",
|
|
"start": 3372,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3372,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3390,
|
|
"raw": "180.0",
|
|
"start": 3385,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 180.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3416,
|
|
"key": {
|
|
"end": 3409,
|
|
"name": "angleEnd",
|
|
"start": 3401,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3401,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3416,
|
|
"raw": "90.0",
|
|
"start": 3412,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 90.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3452,
|
|
"key": {
|
|
"end": 3433,
|
|
"name": "radius",
|
|
"start": 3427,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3427,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3452,
|
|
"left": {
|
|
"end": 3448,
|
|
"name": "magOuterDiam",
|
|
"start": 3436,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3452,
|
|
"raw": "2",
|
|
"start": 3451,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3436,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3361,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 3464,
|
|
"start": 3463,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3360,
|
|
"name": "arc",
|
|
"start": 3357,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3465,
|
|
"start": 3357,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3485,
|
|
"name": "length",
|
|
"start": 3479,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3550,
|
|
"left": {
|
|
"end": 3529,
|
|
"left": {
|
|
"end": 3504,
|
|
"left": {
|
|
"end": 3489,
|
|
"raw": "2",
|
|
"start": 3488,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3504,
|
|
"name": "magOuterDiam",
|
|
"start": 3492,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3488,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3529,
|
|
"left": {
|
|
"end": 3517,
|
|
"name": "firstStep",
|
|
"start": 3508,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3529,
|
|
"name": "thirdStep",
|
|
"start": 3520,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3508,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3488,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3550,
|
|
"left": {
|
|
"end": 3546,
|
|
"name": "magOuterDiam",
|
|
"start": 3534,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3550,
|
|
"raw": "2",
|
|
"start": 3549,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3534,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3488,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3478,
|
|
"name": "xLine",
|
|
"start": 3473,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3552,
|
|
"start": 3473,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3572,
|
|
"name": "length",
|
|
"start": 3566,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3604,
|
|
"left": {
|
|
"end": 3584,
|
|
"name": "binLength",
|
|
"start": 3575,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3604,
|
|
"left": {
|
|
"end": 3589,
|
|
"raw": "4",
|
|
"start": 3588,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3604,
|
|
"name": "magOuterDiam",
|
|
"start": 3592,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3588,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3575,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3565,
|
|
"name": "yLine",
|
|
"start": 3560,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3606,
|
|
"start": 3560,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3626,
|
|
"name": "length",
|
|
"start": 3620,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 3693,
|
|
"left": {
|
|
"end": 3672,
|
|
"left": {
|
|
"end": 3647,
|
|
"left": {
|
|
"end": 3632,
|
|
"raw": "2",
|
|
"start": 3631,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3647,
|
|
"name": "magOuterDiam",
|
|
"start": 3635,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3631,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3672,
|
|
"left": {
|
|
"end": 3660,
|
|
"name": "firstStep",
|
|
"start": 3651,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3672,
|
|
"name": "thirdStep",
|
|
"start": 3663,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3651,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3631,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3693,
|
|
"left": {
|
|
"end": 3689,
|
|
"name": "magOuterDiam",
|
|
"start": 3677,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3693,
|
|
"raw": "2",
|
|
"start": 3692,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3677,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3631,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 3693,
|
|
"operator": "-",
|
|
"start": 3629,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3619,
|
|
"name": "xLine",
|
|
"start": 3614,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3696,
|
|
"start": 3614,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3809,
|
|
"properties": [
|
|
{
|
|
"end": 3737,
|
|
"key": {
|
|
"end": 3729,
|
|
"name": "angleStart",
|
|
"start": 3719,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3719,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3737,
|
|
"raw": "270.0",
|
|
"start": 3732,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 270.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3764,
|
|
"key": {
|
|
"end": 3756,
|
|
"name": "angleEnd",
|
|
"start": 3748,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3748,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3764,
|
|
"raw": "180.0",
|
|
"start": 3759,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 180.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3800,
|
|
"key": {
|
|
"end": 3781,
|
|
"name": "radius",
|
|
"start": 3775,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3775,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3800,
|
|
"left": {
|
|
"end": 3796,
|
|
"name": "magOuterDiam",
|
|
"start": 3784,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3800,
|
|
"raw": "2",
|
|
"start": 3799,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3784,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3708,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 3812,
|
|
"start": 3811,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3707,
|
|
"name": "arc",
|
|
"start": 3704,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3813,
|
|
"start": 3704,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3833,
|
|
"name": "length",
|
|
"start": 3827,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3898,
|
|
"left": {
|
|
"end": 3877,
|
|
"left": {
|
|
"end": 3852,
|
|
"left": {
|
|
"end": 3837,
|
|
"raw": "2",
|
|
"start": 3836,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3852,
|
|
"name": "magOuterDiam",
|
|
"start": 3840,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3836,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3877,
|
|
"left": {
|
|
"end": 3865,
|
|
"name": "firstStep",
|
|
"start": 3856,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3877,
|
|
"name": "thirdStep",
|
|
"start": 3868,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3856,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3836,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3898,
|
|
"left": {
|
|
"end": 3894,
|
|
"name": "magOuterDiam",
|
|
"start": 3882,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3898,
|
|
"raw": "2",
|
|
"start": 3897,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3882,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3836,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3826,
|
|
"name": "yLine",
|
|
"start": 3821,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3900,
|
|
"start": 3821,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3920,
|
|
"name": "length",
|
|
"start": 3914,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 3954,
|
|
"left": {
|
|
"end": 3934,
|
|
"name": "binLength",
|
|
"start": 3925,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3954,
|
|
"left": {
|
|
"end": 3939,
|
|
"raw": "4",
|
|
"start": 3938,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3954,
|
|
"name": "magOuterDiam",
|
|
"start": 3942,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3938,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3925,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 3954,
|
|
"operator": "-",
|
|
"start": 3923,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3961,
|
|
"name": "tag",
|
|
"start": 3958,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3972,
|
|
"start": 3964,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line012"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3913,
|
|
"name": "xLine",
|
|
"start": 3908,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3973,
|
|
"start": 3908,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3993,
|
|
"name": "length",
|
|
"start": 3987,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 4060,
|
|
"left": {
|
|
"end": 4039,
|
|
"left": {
|
|
"end": 4014,
|
|
"left": {
|
|
"end": 3999,
|
|
"raw": "2",
|
|
"start": 3998,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4014,
|
|
"name": "magOuterDiam",
|
|
"start": 4002,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3998,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4039,
|
|
"left": {
|
|
"end": 4027,
|
|
"name": "firstStep",
|
|
"start": 4018,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4039,
|
|
"name": "thirdStep",
|
|
"start": 4030,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4018,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3998,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4060,
|
|
"left": {
|
|
"end": 4056,
|
|
"name": "magOuterDiam",
|
|
"start": 4044,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 4060,
|
|
"raw": "2",
|
|
"start": 4059,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4044,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3998,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 4060,
|
|
"operator": "-",
|
|
"start": 3996,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3986,
|
|
"name": "yLine",
|
|
"start": 3981,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4063,
|
|
"start": 3981,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4176,
|
|
"properties": [
|
|
{
|
|
"end": 4104,
|
|
"key": {
|
|
"end": 4096,
|
|
"name": "angleStart",
|
|
"start": 4086,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4086,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4104,
|
|
"raw": "360.0",
|
|
"start": 4099,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 4131,
|
|
"key": {
|
|
"end": 4123,
|
|
"name": "angleEnd",
|
|
"start": 4115,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4115,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4131,
|
|
"raw": "270.0",
|
|
"start": 4126,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 270.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 4167,
|
|
"key": {
|
|
"end": 4148,
|
|
"name": "radius",
|
|
"start": 4142,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4142,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4167,
|
|
"left": {
|
|
"end": 4163,
|
|
"name": "magOuterDiam",
|
|
"start": 4151,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 4167,
|
|
"raw": "2",
|
|
"start": 4166,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4151,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 4075,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 4179,
|
|
"start": 4178,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4074,
|
|
"name": "arc",
|
|
"start": 4071,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4180,
|
|
"start": 4071,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4200,
|
|
"name": "length",
|
|
"start": 4194,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 4267,
|
|
"left": {
|
|
"end": 4246,
|
|
"left": {
|
|
"end": 4221,
|
|
"left": {
|
|
"end": 4206,
|
|
"raw": "2",
|
|
"start": 4205,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4221,
|
|
"name": "magOuterDiam",
|
|
"start": 4209,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4205,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4246,
|
|
"left": {
|
|
"end": 4234,
|
|
"name": "firstStep",
|
|
"start": 4225,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4246,
|
|
"name": "thirdStep",
|
|
"start": 4237,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4225,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4205,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4267,
|
|
"left": {
|
|
"end": 4263,
|
|
"name": "magOuterDiam",
|
|
"start": 4251,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 4267,
|
|
"raw": "2",
|
|
"start": 4266,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4251,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4205,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 4267,
|
|
"operator": "-",
|
|
"start": 4203,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4193,
|
|
"name": "xLine",
|
|
"start": 4188,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4270,
|
|
"start": 4188,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4290,
|
|
"name": "length",
|
|
"start": 4284,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 4324,
|
|
"left": {
|
|
"end": 4304,
|
|
"name": "binLength",
|
|
"start": 4295,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4324,
|
|
"left": {
|
|
"end": 4309,
|
|
"raw": "4",
|
|
"start": 4308,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4324,
|
|
"name": "magOuterDiam",
|
|
"start": 4312,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4308,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4295,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"end": 4324,
|
|
"operator": "-",
|
|
"start": 4293,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4283,
|
|
"name": "yLine",
|
|
"start": 4278,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4327,
|
|
"start": 4278,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 4340,
|
|
"name": "close",
|
|
"start": 4335,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4342,
|
|
"start": 4335,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 4342,
|
|
"start": 2802,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 2787,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4342,
|
|
"kind": "const",
|
|
"start": 2787,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 4364,
|
|
"name": "magnetSketch",
|
|
"start": 4352,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4364,
|
|
"start": 4345,
|
|
"type": "ReturnStatement",
|
|
"type": "ReturnStatement"
|
|
}
|
|
],
|
|
"end": 4366,
|
|
"start": 2783
|
|
},
|
|
"end": 4366,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 2781,
|
|
"name": "plane",
|
|
"start": 2776,
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 2775,
|
|
"type": "FunctionExpression",
|
|
"type": "FunctionExpression"
|
|
},
|
|
"start": 2757,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4366,
|
|
"kind": "fn",
|
|
"start": 2754,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 4768,
|
|
"id": {
|
|
"end": 4426,
|
|
"name": "magnetBase",
|
|
"start": 4416,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 4740,
|
|
"id": {
|
|
"end": 4454,
|
|
"name": "magnetBaseSketch",
|
|
"start": 4438,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4476,
|
|
"name": "plane",
|
|
"start": 4471,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4470,
|
|
"name": "startSketchOn",
|
|
"start": 4457,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4477,
|
|
"start": 4457,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 4502,
|
|
"raw": "0",
|
|
"start": 4501,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 4505,
|
|
"raw": "0",
|
|
"start": 4504,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 4506,
|
|
"start": 4500,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 4509,
|
|
"start": 4508,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4499,
|
|
"name": "startProfileAt",
|
|
"start": 4485,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4510,
|
|
"start": 4485,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4530,
|
|
"name": "length",
|
|
"start": 4524,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4542,
|
|
"name": "binLength",
|
|
"start": 4533,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4547,
|
|
"name": "tag",
|
|
"start": 4544,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4558,
|
|
"start": 4550,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line001"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4523,
|
|
"name": "xLine",
|
|
"start": 4518,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4559,
|
|
"start": 4518,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4579,
|
|
"name": "length",
|
|
"start": 4573,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4591,
|
|
"name": "binLength",
|
|
"start": 4582,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4596,
|
|
"name": "tag",
|
|
"start": 4593,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4607,
|
|
"start": 4599,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line002"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4572,
|
|
"name": "yLine",
|
|
"start": 4567,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4608,
|
|
"start": 4567,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4633,
|
|
"name": "endAbsolute",
|
|
"start": 4622,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"arguments": [
|
|
{
|
|
"end": 4651,
|
|
"start": 4650,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4649,
|
|
"name": "profileStartX",
|
|
"start": 4636,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4652,
|
|
"start": 4636,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4657,
|
|
"name": "tag",
|
|
"start": 4654,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4668,
|
|
"start": 4660,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line003"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4621,
|
|
"name": "xLine",
|
|
"start": 4616,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4669,
|
|
"start": 4616,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4686,
|
|
"name": "tag",
|
|
"start": 4683,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4697,
|
|
"start": 4689,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line004"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4682,
|
|
"name": "close",
|
|
"start": 4677,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4698,
|
|
"start": 4677,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4735,
|
|
"name": "plane",
|
|
"start": 4730,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4729,
|
|
"name": "magnetCenterCutout",
|
|
"start": 4711,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4736,
|
|
"start": 4711,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"end": 4739,
|
|
"start": 4738,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4710,
|
|
"name": "hole",
|
|
"start": 4706,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4740,
|
|
"start": 4706,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 4740,
|
|
"start": 4457,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 4438,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4740,
|
|
"kind": "const",
|
|
"start": 4438,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 4766,
|
|
"name": "magnetBaseSketch",
|
|
"start": 4750,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4766,
|
|
"start": 4743,
|
|
"type": "ReturnStatement",
|
|
"type": "ReturnStatement"
|
|
}
|
|
],
|
|
"end": 4768,
|
|
"start": 4434
|
|
},
|
|
"end": 4768,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 4432,
|
|
"name": "plane",
|
|
"start": 4427,
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 4426,
|
|
"type": "FunctionExpression",
|
|
"type": "FunctionExpression"
|
|
},
|
|
"start": 4416,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4768,
|
|
"kind": "fn",
|
|
"start": 4413,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5162,
|
|
"id": {
|
|
"end": 4828,
|
|
"name": "magnetsSketch",
|
|
"start": 4815,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4849,
|
|
"raw": "'XY'",
|
|
"start": 4845,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XY"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4844,
|
|
"name": "startSketchOn",
|
|
"start": 4831,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4850,
|
|
"start": 4831,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4877,
|
|
"name": "center",
|
|
"start": 4871,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4897,
|
|
"left": {
|
|
"end": 4893,
|
|
"name": "cornerRadius",
|
|
"start": 4881,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4897,
|
|
"raw": "2",
|
|
"start": 4896,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4881,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 4915,
|
|
"left": {
|
|
"end": 4911,
|
|
"name": "cornerRadius",
|
|
"start": 4899,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4915,
|
|
"raw": "2",
|
|
"start": 4914,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4899,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 4916,
|
|
"start": 4880,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4931,
|
|
"name": "radius",
|
|
"start": 4925,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4950,
|
|
"left": {
|
|
"end": 4946,
|
|
"name": "magOuterDiam",
|
|
"start": 4934,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 4950,
|
|
"raw": "2",
|
|
"start": 4949,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4934,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4862,
|
|
"name": "circle",
|
|
"start": 4856,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4957,
|
|
"start": 4856,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4995,
|
|
"name": "center",
|
|
"start": 4989,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5012,
|
|
"left": {
|
|
"end": 5008,
|
|
"name": "binLength",
|
|
"start": 4999,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 5012,
|
|
"raw": "2",
|
|
"start": 5011,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4999,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 5027,
|
|
"left": {
|
|
"end": 5023,
|
|
"name": "binLength",
|
|
"start": 5014,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 5027,
|
|
"raw": "2",
|
|
"start": 5026,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5014,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 5028,
|
|
"start": 4998,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5046,
|
|
"name": "instances",
|
|
"start": 5037,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5050,
|
|
"raw": "4",
|
|
"start": 5049,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5069,
|
|
"name": "arcDegrees",
|
|
"start": 5059,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5075,
|
|
"raw": "360",
|
|
"start": 5072,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5100,
|
|
"name": "rotateDuplicates",
|
|
"start": 5084,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5107,
|
|
"raw": "true",
|
|
"start": 5103,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4980,
|
|
"name": "patternCircular2d",
|
|
"start": 4963,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5114,
|
|
"start": 4963,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 5162,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"2": [
|
|
{
|
|
"end": 5162,
|
|
"start": 5114,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create a profile with holes for the magnets",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 4831,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 4815,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5162,
|
|
"kind": "const",
|
|
"start": 4815,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5279,
|
|
"id": {
|
|
"end": 5176,
|
|
"name": "magnetProfile",
|
|
"start": 5163,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5194,
|
|
"raw": "\"XY\"",
|
|
"start": 5190,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XY"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5189,
|
|
"name": "magnetBase",
|
|
"start": 5179,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5195,
|
|
"start": 5179,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5219,
|
|
"name": "magnetsSketch",
|
|
"start": 5206,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 5222,
|
|
"start": 5221,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5205,
|
|
"name": "hole",
|
|
"start": 5201,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5223,
|
|
"start": 5201,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 5279,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 5279,
|
|
"start": 5223,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create an extrusion of the magnet cutout with holes",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 5179,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 5163,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5279,
|
|
"kind": "const",
|
|
"start": 5163,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5343,
|
|
"id": {
|
|
"end": 5298,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5280,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5330,
|
|
"name": "length",
|
|
"start": 5324,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 5342,
|
|
"name": "magDepth",
|
|
"start": 5334,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5342,
|
|
"operator": "-",
|
|
"start": 5333,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5308,
|
|
"name": "extrude",
|
|
"start": 5301,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5343,
|
|
"start": 5301,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 5322,
|
|
"name": "magnetProfile",
|
|
"start": 5309,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 5280,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5343,
|
|
"kind": "const",
|
|
"start": 5280,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5744,
|
|
"id": {
|
|
"end": 5403,
|
|
"name": "magnetHolesExtrudeFillets",
|
|
"start": 5378,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5444,
|
|
"name": "radius",
|
|
"start": 5438,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5459,
|
|
"name": "cornerRadius",
|
|
"start": 5447,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5467,
|
|
"name": "tags",
|
|
"start": 5463,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 5534,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5526,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5521,
|
|
"object": {
|
|
"end": 5514,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5496,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 5521,
|
|
"name": "sketch",
|
|
"start": 5515,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5496,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5526,
|
|
"name": "tags",
|
|
"start": 5522,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5496,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5534,
|
|
"name": "line001",
|
|
"start": 5527,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5496,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5495,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 5476,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5535,
|
|
"start": 5476,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 5603,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5595,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5590,
|
|
"object": {
|
|
"end": 5583,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5565,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 5590,
|
|
"name": "sketch",
|
|
"start": 5584,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5565,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5595,
|
|
"name": "tags",
|
|
"start": 5591,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5565,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5603,
|
|
"name": "line001",
|
|
"start": 5596,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5565,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5564,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 5541,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5604,
|
|
"start": 5541,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 5668,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5660,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5655,
|
|
"object": {
|
|
"end": 5648,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5630,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 5655,
|
|
"name": "sketch",
|
|
"start": 5649,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5630,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5660,
|
|
"name": "tags",
|
|
"start": 5656,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5630,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5668,
|
|
"name": "line003",
|
|
"start": 5661,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5630,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5629,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 5610,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5669,
|
|
"start": 5610,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 5737,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5729,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 5724,
|
|
"object": {
|
|
"end": 5717,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5699,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 5724,
|
|
"name": "sketch",
|
|
"start": 5718,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5699,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5729,
|
|
"name": "tags",
|
|
"start": 5725,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5699,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 5737,
|
|
"name": "line003",
|
|
"start": 5730,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5699,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5698,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 5675,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5738,
|
|
"start": 5675,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 5742,
|
|
"start": 5470,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5412,
|
|
"name": "fillet",
|
|
"start": 5406,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5744,
|
|
"start": 5406,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 5434,
|
|
"name": "magnetHolesExtrude",
|
|
"start": 5416,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 5378,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5744,
|
|
"kind": "const",
|
|
"start": 5378,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5874,
|
|
"id": {
|
|
"end": 5822,
|
|
"name": "magnetProfileNoMagnets",
|
|
"start": 5800,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5860,
|
|
"name": "offset",
|
|
"start": 5854,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 5872,
|
|
"name": "magDepth",
|
|
"start": 5864,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5872,
|
|
"operator": "-",
|
|
"start": 5863,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5847,
|
|
"name": "offsetPlane",
|
|
"start": 5836,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5873,
|
|
"start": 5836,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 5852,
|
|
"raw": "\"XY\"",
|
|
"start": 5848,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XY"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5835,
|
|
"name": "magnetBase",
|
|
"start": 5825,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5874,
|
|
"start": 5825,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"start": 5800,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5874,
|
|
"kind": "const",
|
|
"start": 5800,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 6007,
|
|
"id": {
|
|
"end": 5953,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 5934,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5994,
|
|
"name": "length",
|
|
"start": 5988,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 6006,
|
|
"name": "magDepth",
|
|
"start": 5998,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6006,
|
|
"operator": "-",
|
|
"start": 5997,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5963,
|
|
"name": "extrude",
|
|
"start": 5956,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6007,
|
|
"start": 5956,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 5986,
|
|
"name": "magnetProfileNoMagnets",
|
|
"start": 5964,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 5934,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 6007,
|
|
"kind": "const",
|
|
"start": 5934,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 6414,
|
|
"id": {
|
|
"end": 6068,
|
|
"name": "magnetCutoutExtrudeFillets",
|
|
"start": 6042,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6110,
|
|
"name": "radius",
|
|
"start": 6104,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6125,
|
|
"name": "cornerRadius",
|
|
"start": 6113,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6133,
|
|
"name": "tags",
|
|
"start": 6129,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 6201,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6193,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6188,
|
|
"object": {
|
|
"end": 6181,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 6162,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 6188,
|
|
"name": "sketch",
|
|
"start": 6182,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6162,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6193,
|
|
"name": "tags",
|
|
"start": 6189,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6162,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6201,
|
|
"name": "line001",
|
|
"start": 6194,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6162,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6161,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 6142,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6202,
|
|
"start": 6142,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 6271,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6263,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6258,
|
|
"object": {
|
|
"end": 6251,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 6232,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 6258,
|
|
"name": "sketch",
|
|
"start": 6252,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6232,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6263,
|
|
"name": "tags",
|
|
"start": 6259,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6232,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6271,
|
|
"name": "line001",
|
|
"start": 6264,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6232,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6231,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 6208,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6272,
|
|
"start": 6208,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 6337,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6329,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6324,
|
|
"object": {
|
|
"end": 6317,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 6298,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 6324,
|
|
"name": "sketch",
|
|
"start": 6318,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6298,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6329,
|
|
"name": "tags",
|
|
"start": 6325,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6298,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6337,
|
|
"name": "line003",
|
|
"start": 6330,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6298,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6297,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 6278,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6338,
|
|
"start": 6278,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"computed": false,
|
|
"end": 6407,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6399,
|
|
"object": {
|
|
"computed": false,
|
|
"end": 6394,
|
|
"object": {
|
|
"end": 6387,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 6368,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 6394,
|
|
"name": "sketch",
|
|
"start": 6388,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6368,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6399,
|
|
"name": "tags",
|
|
"start": 6395,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6368,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"property": {
|
|
"end": 6407,
|
|
"name": "line003",
|
|
"start": 6400,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6368,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6367,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 6344,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6408,
|
|
"start": 6344,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 6412,
|
|
"start": 6136,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6077,
|
|
"name": "fillet",
|
|
"start": 6071,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6414,
|
|
"start": 6071,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 6100,
|
|
"name": "magnetCutoutExtrude",
|
|
"start": 6081,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 6042,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 6414,
|
|
"kind": "const",
|
|
"start": 6042,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"end": 6775,
|
|
"expression": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6519,
|
|
"name": "axis",
|
|
"start": 6515,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6526,
|
|
"raw": "1.0",
|
|
"start": 6523,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6531,
|
|
"raw": "0.0",
|
|
"start": 6528,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6536,
|
|
"raw": "0.0",
|
|
"start": 6533,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6537,
|
|
"start": 6522,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6555,
|
|
"name": "instances",
|
|
"start": 6546,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6571,
|
|
"name": "countBinWidth",
|
|
"start": 6558,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6588,
|
|
"name": "distance",
|
|
"start": 6580,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6600,
|
|
"name": "binLength",
|
|
"start": 6591,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6472,
|
|
"name": "patternLinear3d",
|
|
"start": 6457,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6607,
|
|
"start": 6457,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 6506,
|
|
"name": "magnetHolesExtrudeFillets",
|
|
"start": 6481,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6641,
|
|
"name": "axis",
|
|
"start": 6637,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6648,
|
|
"raw": "0.0",
|
|
"start": 6645,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6653,
|
|
"raw": "1.0",
|
|
"start": 6650,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6658,
|
|
"raw": "0.0",
|
|
"start": 6655,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6659,
|
|
"start": 6644,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6677,
|
|
"name": "instances",
|
|
"start": 6668,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6694,
|
|
"name": "countBinLength",
|
|
"start": 6680,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6711,
|
|
"name": "distance",
|
|
"start": 6703,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6723,
|
|
"name": "binLength",
|
|
"start": 6714,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6628,
|
|
"name": "patternLinear3d",
|
|
"start": 6613,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6730,
|
|
"start": 6613,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 6775,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 6775,
|
|
"start": 6730,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "pattern the magnet cutouts without holes",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 6457,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 6457,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"end": 7050,
|
|
"expression": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6839,
|
|
"name": "axis",
|
|
"start": 6835,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6846,
|
|
"raw": "1.0",
|
|
"start": 6843,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6851,
|
|
"raw": "0.0",
|
|
"start": 6848,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6856,
|
|
"raw": "0.0",
|
|
"start": 6853,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6857,
|
|
"start": 6842,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6875,
|
|
"name": "instances",
|
|
"start": 6866,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6891,
|
|
"name": "countBinWidth",
|
|
"start": 6878,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6908,
|
|
"name": "distance",
|
|
"start": 6900,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6920,
|
|
"name": "binLength",
|
|
"start": 6911,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6791,
|
|
"name": "patternLinear3d",
|
|
"start": 6776,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6927,
|
|
"start": 6776,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 6826,
|
|
"name": "magnetCutoutExtrudeFillets",
|
|
"start": 6800,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6961,
|
|
"name": "axis",
|
|
"start": 6957,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6968,
|
|
"raw": "0.0",
|
|
"start": 6965,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6973,
|
|
"raw": "1.0",
|
|
"start": 6970,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6978,
|
|
"raw": "0.0",
|
|
"start": 6975,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6979,
|
|
"start": 6964,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6997,
|
|
"name": "instances",
|
|
"start": 6988,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7014,
|
|
"name": "countBinLength",
|
|
"start": 7000,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7031,
|
|
"name": "distance",
|
|
"start": 7023,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7043,
|
|
"name": "binLength",
|
|
"start": 7034,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6948,
|
|
"name": "patternLinear3d",
|
|
"start": 6933,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 7050,
|
|
"start": 6933,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 7050,
|
|
"start": 6776,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 6776,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"end": 7051,
|
|
"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": 1868,
|
|
"start": 1834,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the corners of the bin",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"16": [
|
|
{
|
|
"end": 2089,
|
|
"start": 2044,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the baseplate by patterning sides",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"19": [
|
|
{
|
|
"end": 4412,
|
|
"start": 4366,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the outside profile of the magnets",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"20": [
|
|
{
|
|
"end": 4814,
|
|
"start": 4768,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create sketch profile sketch000Profile002",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"23": [
|
|
{
|
|
"end": 5377,
|
|
"start": 5343,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "add a fillet to the extrusion",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"24": [
|
|
{
|
|
"end": 5799,
|
|
"start": 5744,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create a profile without the holes for the magnets",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"25": [
|
|
{
|
|
"end": 5933,
|
|
"start": 5874,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create an extrusion of the magnet cutout without holes",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"26": [
|
|
{
|
|
"end": 6041,
|
|
"start": 6007,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "add a fillet to the extrusion",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"27": [
|
|
{
|
|
"end": 6456,
|
|
"start": 6414,
|
|
"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
|
|
}
|
|
}
|