* initial port Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * more fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix e2e Signed-off-by: Jess Frazelle <github@jessfraz.com> * more fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * update js side Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix; Signed-off-by: Jess Frazelle <github@jessfraz.com> * cleanup Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
4743 lines
157 KiB
Plaintext
4743 lines
157 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of parsing gridfinity-bins.kcl
|
|
---
|
|
{
|
|
"Ok": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 377,
|
|
"id": {
|
|
"end": 370,
|
|
"name": "binLength",
|
|
"start": 361,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 377,
|
|
"raw": "41.5",
|
|
"start": 373,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 41.5,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 361,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 377,
|
|
"kind": "const",
|
|
"start": 361,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 393,
|
|
"id": {
|
|
"end": 387,
|
|
"name": "binHeight",
|
|
"start": 378,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 393,
|
|
"raw": "7.0",
|
|
"start": 390,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 7.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 378,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 393,
|
|
"kind": "const",
|
|
"start": 378,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 414,
|
|
"id": {
|
|
"end": 407,
|
|
"name": "binBaseLength",
|
|
"start": 394,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 414,
|
|
"raw": "2.95",
|
|
"start": 410,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.95,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 394,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 414,
|
|
"kind": "const",
|
|
"start": 394,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 428,
|
|
"id": {
|
|
"end": 421,
|
|
"name": "binTol",
|
|
"start": 415,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 428,
|
|
"raw": "0.25",
|
|
"start": 424,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.25,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 415,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 428,
|
|
"kind": "const",
|
|
"start": 415,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 441,
|
|
"id": {
|
|
"end": 435,
|
|
"name": "binThk",
|
|
"start": 429,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 441,
|
|
"raw": "1.2",
|
|
"start": 438,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 429,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 441,
|
|
"kind": "const",
|
|
"start": 429,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 461,
|
|
"id": {
|
|
"end": 454,
|
|
"name": "cornerRadius",
|
|
"start": 442,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 461,
|
|
"raw": "3.75",
|
|
"start": 457,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.75,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 442,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 461,
|
|
"kind": "const",
|
|
"start": 442,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 477,
|
|
"id": {
|
|
"end": 471,
|
|
"name": "firstStep",
|
|
"start": 462,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 477,
|
|
"raw": "0.8",
|
|
"start": 474,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.8,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 462,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 477,
|
|
"kind": "const",
|
|
"start": 462,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 494,
|
|
"id": {
|
|
"end": 488,
|
|
"name": "secondStep",
|
|
"start": 478,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 494,
|
|
"raw": "1.8",
|
|
"start": 491,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.8,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 478,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 494,
|
|
"kind": "const",
|
|
"start": 478,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 511,
|
|
"id": {
|
|
"end": 504,
|
|
"name": "thirdStep",
|
|
"start": 495,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 511,
|
|
"raw": "2.15",
|
|
"start": 507,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.15,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 495,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 511,
|
|
"kind": "const",
|
|
"start": 495,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 530,
|
|
"id": {
|
|
"end": 524,
|
|
"name": "magOuterDiam",
|
|
"start": 512,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 530,
|
|
"raw": "6.5",
|
|
"start": 527,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 6.5,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 512,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 530,
|
|
"kind": "const",
|
|
"start": 512,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 546,
|
|
"id": {
|
|
"end": 540,
|
|
"name": "magOffset",
|
|
"start": 531,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 546,
|
|
"raw": "4.8",
|
|
"start": 543,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.8,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 531,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 546,
|
|
"kind": "const",
|
|
"start": 531,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 561,
|
|
"id": {
|
|
"end": 555,
|
|
"name": "magDepth",
|
|
"start": 547,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 561,
|
|
"raw": "2.4",
|
|
"start": 558,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.4,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 547,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 561,
|
|
"kind": "const",
|
|
"start": 547,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 616,
|
|
"id": {
|
|
"end": 612,
|
|
"name": "countBinWidth",
|
|
"start": 599,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 616,
|
|
"raw": "2",
|
|
"start": 615,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 599,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 616,
|
|
"kind": "const",
|
|
"start": 599,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 635,
|
|
"id": {
|
|
"end": 631,
|
|
"name": "countBinLength",
|
|
"start": 617,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 635,
|
|
"raw": "3",
|
|
"start": 634,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 617,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 635,
|
|
"kind": "const",
|
|
"start": 617,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 654,
|
|
"id": {
|
|
"end": 650,
|
|
"name": "countBinHeight",
|
|
"start": 636,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 654,
|
|
"raw": "2",
|
|
"start": 653,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 636,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 654,
|
|
"kind": "const",
|
|
"start": 636,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 798,
|
|
"id": {
|
|
"end": 761,
|
|
"name": "height",
|
|
"start": 755,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 798,
|
|
"left": {
|
|
"end": 786,
|
|
"left": {
|
|
"end": 773,
|
|
"name": "firstStep",
|
|
"start": 764,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 786,
|
|
"name": "secondStep",
|
|
"start": 776,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 764,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 798,
|
|
"name": "thirdStep",
|
|
"start": 789,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 764,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 755,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 798,
|
|
"kind": "const",
|
|
"start": 755,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1247,
|
|
"id": {
|
|
"end": 874,
|
|
"name": "face",
|
|
"start": 870,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 1225,
|
|
"id": {
|
|
"end": 896,
|
|
"name": "faceSketch",
|
|
"start": 886,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 918,
|
|
"name": "plane",
|
|
"start": 913,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 912,
|
|
"name": "startSketchOn",
|
|
"start": 899,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 919,
|
|
"start": 899,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 965,
|
|
"left": {
|
|
"end": 956,
|
|
"name": "binBaseLength",
|
|
"start": 943,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 965,
|
|
"name": "binTol",
|
|
"start": 959,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 943,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 968,
|
|
"raw": "0",
|
|
"start": 967,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 969,
|
|
"start": 942,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 972,
|
|
"start": 971,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 941,
|
|
"name": "startProfileAt",
|
|
"start": 927,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 973,
|
|
"start": 927,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 993,
|
|
"name": "length",
|
|
"start": 987,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1002,
|
|
"name": "height",
|
|
"start": 996,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 986,
|
|
"name": "yLine",
|
|
"start": 981,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1003,
|
|
"start": 981,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1023,
|
|
"name": "length",
|
|
"start": 1017,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 1040,
|
|
"name": "binBaseLength",
|
|
"start": 1027,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1040,
|
|
"operator": "-",
|
|
"start": 1026,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1016,
|
|
"name": "xLine",
|
|
"start": 1011,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1041,
|
|
"start": 1011,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1104,
|
|
"properties": [
|
|
{
|
|
"end": 1082,
|
|
"key": {
|
|
"end": 1076,
|
|
"name": "angle",
|
|
"start": 1071,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1071,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"argument": {
|
|
"end": 1082,
|
|
"raw": "45",
|
|
"start": 1080,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 1082,
|
|
"operator": "-",
|
|
"start": 1079,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1102,
|
|
"key": {
|
|
"end": 1090,
|
|
"name": "length",
|
|
"start": 1084,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1084,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1102,
|
|
"name": "thirdStep",
|
|
"start": 1093,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 1069,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 1107,
|
|
"start": 1106,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1068,
|
|
"name": "angledLineOfYLength",
|
|
"start": 1049,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1108,
|
|
"start": 1049,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1128,
|
|
"name": "length",
|
|
"start": 1122,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 1142,
|
|
"name": "secondStep",
|
|
"start": 1132,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1142,
|
|
"operator": "-",
|
|
"start": 1131,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1121,
|
|
"name": "yLine",
|
|
"start": 1116,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1143,
|
|
"start": 1116,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1206,
|
|
"properties": [
|
|
{
|
|
"end": 1184,
|
|
"key": {
|
|
"end": 1178,
|
|
"name": "angle",
|
|
"start": 1173,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1173,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"argument": {
|
|
"end": 1184,
|
|
"raw": "45",
|
|
"start": 1182,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 1184,
|
|
"operator": "-",
|
|
"start": 1181,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1204,
|
|
"key": {
|
|
"end": 1192,
|
|
"name": "length",
|
|
"start": 1186,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1186,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1204,
|
|
"name": "firstStep",
|
|
"start": 1195,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 1171,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 1209,
|
|
"start": 1208,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1170,
|
|
"name": "angledLineOfYLength",
|
|
"start": 1151,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1210,
|
|
"start": 1151,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 1223,
|
|
"name": "close",
|
|
"start": 1218,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1225,
|
|
"start": 1218,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 1225,
|
|
"start": 899,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 886,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1225,
|
|
"kind": "const",
|
|
"start": 886,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 1245,
|
|
"name": "faceSketch",
|
|
"start": 1235,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1245,
|
|
"start": 1228,
|
|
"type": "ReturnStatement",
|
|
"type": "ReturnStatement"
|
|
}
|
|
],
|
|
"end": 1247,
|
|
"start": 882
|
|
},
|
|
"end": 1247,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 880,
|
|
"name": "plane",
|
|
"start": 875,
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 874,
|
|
"type": "FunctionExpression",
|
|
"type": "FunctionExpression"
|
|
},
|
|
"start": 870,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1247,
|
|
"kind": "fn",
|
|
"start": 867,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1405,
|
|
"id": {
|
|
"end": 1295,
|
|
"name": "singleSide",
|
|
"start": 1285,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1369,
|
|
"name": "length",
|
|
"start": 1363,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1401,
|
|
"left": {
|
|
"end": 1381,
|
|
"name": "binLength",
|
|
"start": 1372,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 1401,
|
|
"left": {
|
|
"end": 1397,
|
|
"name": "cornerRadius",
|
|
"start": 1385,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 1401,
|
|
"raw": "2",
|
|
"start": 1400,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1385,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 1372,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1305,
|
|
"name": "extrude",
|
|
"start": 1298,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1405,
|
|
"start": 1298,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1335,
|
|
"name": "offset",
|
|
"start": 1329,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1359,
|
|
"left": {
|
|
"end": 1350,
|
|
"name": "cornerRadius",
|
|
"start": 1338,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 1359,
|
|
"name": "binTol",
|
|
"start": 1353,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1338,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1322,
|
|
"name": "offsetPlane",
|
|
"start": 1311,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1360,
|
|
"start": 1311,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1327,
|
|
"raw": "\"YZ\"",
|
|
"start": 1323,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "YZ"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1310,
|
|
"name": "face",
|
|
"start": 1306,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1361,
|
|
"start": 1306,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
},
|
|
"start": 1285,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1405,
|
|
"kind": "const",
|
|
"start": 1285,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1689,
|
|
"id": {
|
|
"end": 1477,
|
|
"name": "sides",
|
|
"start": 1472,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1525,
|
|
"name": "arcDegrees",
|
|
"start": 1515,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1531,
|
|
"raw": "360",
|
|
"start": 1528,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1539,
|
|
"name": "axis",
|
|
"start": 1535,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1544,
|
|
"raw": "0",
|
|
"start": 1543,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1547,
|
|
"raw": "0",
|
|
"start": 1546,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1550,
|
|
"raw": "1",
|
|
"start": 1549,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1551,
|
|
"start": 1542,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1561,
|
|
"name": "center",
|
|
"start": 1555,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1598,
|
|
"left": {
|
|
"end": 1593,
|
|
"left": {
|
|
"end": 1580,
|
|
"name": "binLength",
|
|
"start": 1571,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 1593,
|
|
"left": {
|
|
"end": 1584,
|
|
"raw": "2",
|
|
"start": 1583,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 1593,
|
|
"name": "binTol",
|
|
"start": 1587,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1583,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 1571,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1598,
|
|
"raw": "2",
|
|
"start": 1597,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1571,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 1632,
|
|
"left": {
|
|
"end": 1627,
|
|
"left": {
|
|
"end": 1614,
|
|
"name": "binLength",
|
|
"start": 1605,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 1627,
|
|
"left": {
|
|
"end": 1618,
|
|
"raw": "2",
|
|
"start": 1617,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 1627,
|
|
"name": "binTol",
|
|
"start": 1621,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1617,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 1605,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1632,
|
|
"raw": "2",
|
|
"start": 1631,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1605,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 1639,
|
|
"raw": "0",
|
|
"start": 1638,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1643,
|
|
"start": 1564,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1656,
|
|
"name": "instances",
|
|
"start": 1647,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1660,
|
|
"raw": "4",
|
|
"start": 1659,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1680,
|
|
"name": "rotateDuplicates",
|
|
"start": 1664,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1687,
|
|
"raw": "true",
|
|
"start": 1683,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1497,
|
|
"name": "patternCircular3d",
|
|
"start": 1480,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1689,
|
|
"start": 1480,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1511,
|
|
"name": "singleSide",
|
|
"start": 1501,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 1472,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1689,
|
|
"kind": "const",
|
|
"start": 1472,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1848,
|
|
"id": {
|
|
"end": 1724,
|
|
"name": "axis000",
|
|
"start": 1717,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 1848,
|
|
"properties": [
|
|
{
|
|
"end": 1846,
|
|
"key": {
|
|
"end": 1737,
|
|
"name": "custom",
|
|
"start": 1731,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1731,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1846,
|
|
"properties": [
|
|
{
|
|
"end": 1763,
|
|
"key": {
|
|
"end": 1750,
|
|
"name": "axis",
|
|
"start": 1746,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1746,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"elements": [
|
|
{
|
|
"end": 1757,
|
|
"raw": "0.0",
|
|
"start": 1754,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1762,
|
|
"raw": "1.0",
|
|
"start": 1759,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1763,
|
|
"start": 1753,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1842,
|
|
"key": {
|
|
"end": 1775,
|
|
"name": "origin",
|
|
"start": 1769,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1769,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"elements": [
|
|
{
|
|
"end": 1807,
|
|
"left": {
|
|
"end": 1798,
|
|
"name": "cornerRadius",
|
|
"start": 1786,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 1807,
|
|
"name": "binTol",
|
|
"start": 1801,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1786,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 1836,
|
|
"left": {
|
|
"end": 1827,
|
|
"name": "cornerRadius",
|
|
"start": 1815,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 1836,
|
|
"name": "binTol",
|
|
"start": 1830,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1815,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 1842,
|
|
"start": 1778,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 1740,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 1727,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
"start": 1717,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1848,
|
|
"kind": "const",
|
|
"start": 1717,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1995,
|
|
"id": {
|
|
"end": 1899,
|
|
"name": "singleCorner",
|
|
"start": 1887,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1972,
|
|
"name": "angle",
|
|
"start": 1967,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 1978,
|
|
"raw": "90",
|
|
"start": 1976,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 90.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 1978,
|
|
"operator": "-",
|
|
"start": 1975,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1984,
|
|
"name": "axis",
|
|
"start": 1980,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1994,
|
|
"name": "axis000",
|
|
"start": 1987,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1909,
|
|
"name": "revolve",
|
|
"start": 1902,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1995,
|
|
"start": 1902,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1939,
|
|
"name": "offset",
|
|
"start": 1933,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1963,
|
|
"left": {
|
|
"end": 1954,
|
|
"name": "cornerRadius",
|
|
"start": 1942,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 1963,
|
|
"name": "binTol",
|
|
"start": 1957,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1942,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1926,
|
|
"name": "offsetPlane",
|
|
"start": 1915,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1964,
|
|
"start": 1915,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1931,
|
|
"raw": "\"YZ\"",
|
|
"start": 1927,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "YZ"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1914,
|
|
"name": "face",
|
|
"start": 1910,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1965,
|
|
"start": 1910,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
},
|
|
"start": 1887,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1995,
|
|
"kind": "const",
|
|
"start": 1887,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2251,
|
|
"id": {
|
|
"end": 2037,
|
|
"name": "corners",
|
|
"start": 2030,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2087,
|
|
"name": "arcDegrees",
|
|
"start": 2077,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2093,
|
|
"raw": "360",
|
|
"start": 2090,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2101,
|
|
"name": "axis",
|
|
"start": 2097,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2106,
|
|
"raw": "0",
|
|
"start": 2105,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2109,
|
|
"raw": "0",
|
|
"start": 2108,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2112,
|
|
"raw": "1",
|
|
"start": 2111,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2113,
|
|
"start": 2104,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2123,
|
|
"name": "center",
|
|
"start": 2117,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2160,
|
|
"left": {
|
|
"end": 2155,
|
|
"left": {
|
|
"end": 2142,
|
|
"name": "binLength",
|
|
"start": 2133,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2155,
|
|
"left": {
|
|
"end": 2146,
|
|
"raw": "2",
|
|
"start": 2145,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2155,
|
|
"name": "binTol",
|
|
"start": 2149,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2145,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2133,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 2160,
|
|
"raw": "2",
|
|
"start": 2159,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2133,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 2194,
|
|
"left": {
|
|
"end": 2189,
|
|
"left": {
|
|
"end": 2176,
|
|
"name": "binLength",
|
|
"start": 2167,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2189,
|
|
"left": {
|
|
"end": 2180,
|
|
"raw": "2",
|
|
"start": 2179,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2189,
|
|
"name": "binTol",
|
|
"start": 2183,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2179,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2167,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 2194,
|
|
"raw": "2",
|
|
"start": 2193,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2167,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 2201,
|
|
"raw": "0",
|
|
"start": 2200,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2205,
|
|
"start": 2126,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2218,
|
|
"name": "instances",
|
|
"start": 2209,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2222,
|
|
"raw": "4",
|
|
"start": 2221,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2242,
|
|
"name": "rotateDuplicates",
|
|
"start": 2226,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2249,
|
|
"raw": "true",
|
|
"start": 2245,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2057,
|
|
"name": "patternCircular3d",
|
|
"start": 2040,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2251,
|
|
"start": 2040,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 2073,
|
|
"name": "singleCorner",
|
|
"start": 2061,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 2030,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2251,
|
|
"kind": "const",
|
|
"start": 2030,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2873,
|
|
"id": {
|
|
"end": 2266,
|
|
"name": "singleBinFill",
|
|
"start": 2253,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2287,
|
|
"raw": "\"XY\"",
|
|
"start": 2283,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XY"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2282,
|
|
"name": "startSketchOn",
|
|
"start": 2269,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2288,
|
|
"start": 2269,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 2340,
|
|
"left": {
|
|
"end": 2331,
|
|
"name": "binBaseLength",
|
|
"start": 2318,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2340,
|
|
"name": "binTol",
|
|
"start": 2334,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2318,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 2371,
|
|
"left": {
|
|
"end": 2362,
|
|
"name": "binBaseLength",
|
|
"start": 2349,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2371,
|
|
"name": "binTol",
|
|
"start": 2365,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2349,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 2378,
|
|
"start": 2309,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 2381,
|
|
"start": 2380,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2308,
|
|
"name": "startProfileAt",
|
|
"start": 2294,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2382,
|
|
"start": 2294,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2396,
|
|
"name": "end",
|
|
"start": 2393,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2430,
|
|
"left": {
|
|
"end": 2409,
|
|
"name": "binLength",
|
|
"start": 2400,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2430,
|
|
"left": {
|
|
"end": 2426,
|
|
"name": "binBaseLength",
|
|
"start": 2413,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2430,
|
|
"raw": "2",
|
|
"start": 2429,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2413,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2400,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 2434,
|
|
"raw": "0",
|
|
"start": 2433,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2435,
|
|
"start": 2399,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2440,
|
|
"name": "tag",
|
|
"start": 2437,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2451,
|
|
"start": 2443,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line000"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2392,
|
|
"name": "line",
|
|
"start": 2388,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2452,
|
|
"start": 2388,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2466,
|
|
"name": "end",
|
|
"start": 2463,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2471,
|
|
"raw": "0",
|
|
"start": 2470,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2503,
|
|
"left": {
|
|
"end": 2482,
|
|
"name": "binLength",
|
|
"start": 2473,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2503,
|
|
"left": {
|
|
"end": 2499,
|
|
"name": "binBaseLength",
|
|
"start": 2486,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2503,
|
|
"raw": "2",
|
|
"start": 2502,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2486,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2473,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 2505,
|
|
"start": 2469,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2510,
|
|
"name": "tag",
|
|
"start": 2507,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2521,
|
|
"start": 2513,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line001"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2462,
|
|
"name": "line",
|
|
"start": 2458,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2522,
|
|
"start": 2458,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2545,
|
|
"name": "endAbsolute",
|
|
"start": 2534,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"arguments": [
|
|
{
|
|
"end": 2563,
|
|
"start": 2562,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2561,
|
|
"name": "profileStartX",
|
|
"start": 2548,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2564,
|
|
"start": 2548,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2569,
|
|
"name": "tag",
|
|
"start": 2566,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2580,
|
|
"start": 2572,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line002"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2533,
|
|
"name": "xLine",
|
|
"start": 2528,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2581,
|
|
"start": 2528,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2596,
|
|
"name": "tag",
|
|
"start": 2593,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2607,
|
|
"start": 2599,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line003"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2592,
|
|
"name": "close",
|
|
"start": 2587,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2608,
|
|
"start": 2587,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2628,
|
|
"name": "length",
|
|
"start": 2622,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2637,
|
|
"name": "height",
|
|
"start": 2631,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2621,
|
|
"name": "extrude",
|
|
"start": 2614,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2638,
|
|
"start": 2614,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2665,
|
|
"name": "radius",
|
|
"start": 2659,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2677,
|
|
"name": "firstStep",
|
|
"start": 2668,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2690,
|
|
"name": "tags",
|
|
"start": 2686,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2731,
|
|
"name": "line000",
|
|
"start": 2724,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2723,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 2704,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2732,
|
|
"start": 2704,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2774,
|
|
"name": "line000",
|
|
"start": 2767,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2766,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 2743,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2775,
|
|
"start": 2743,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2813,
|
|
"name": "line002",
|
|
"start": 2806,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2805,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 2786,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2814,
|
|
"start": 2786,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2856,
|
|
"name": "line002",
|
|
"start": 2849,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2848,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 2825,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2857,
|
|
"start": 2825,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 2866,
|
|
"start": 2693,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2650,
|
|
"name": "fillet",
|
|
"start": 2644,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2873,
|
|
"start": 2644,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 2873,
|
|
"start": 2269,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 2253,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2873,
|
|
"kind": "const",
|
|
"start": 2253,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 3391,
|
|
"id": {
|
|
"end": 2887,
|
|
"name": "magCutout000",
|
|
"start": 2875,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2917,
|
|
"name": "singleBinFill",
|
|
"start": 2904,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 2926,
|
|
"raw": "\"start\"",
|
|
"start": 2919,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "start"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2903,
|
|
"name": "startSketchOn",
|
|
"start": 2890,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2927,
|
|
"start": 2890,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2954,
|
|
"name": "center",
|
|
"start": 2948,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 3003,
|
|
"left": {
|
|
"end": 2994,
|
|
"left": {
|
|
"argument": {
|
|
"end": 2978,
|
|
"name": "magOffset",
|
|
"start": 2969,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2978,
|
|
"operator": "-",
|
|
"start": 2968,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2994,
|
|
"name": "binBaseLength",
|
|
"start": 2981,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2968,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3003,
|
|
"name": "binTol",
|
|
"start": 2997,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2968,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 3048,
|
|
"left": {
|
|
"end": 3039,
|
|
"left": {
|
|
"end": 3023,
|
|
"name": "magOffset",
|
|
"start": 3014,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3039,
|
|
"name": "binBaseLength",
|
|
"start": 3026,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3014,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3048,
|
|
"name": "binTol",
|
|
"start": 3042,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3014,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 3057,
|
|
"start": 2957,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3072,
|
|
"name": "radius",
|
|
"start": 3066,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3091,
|
|
"left": {
|
|
"end": 3087,
|
|
"name": "magOuterDiam",
|
|
"start": 3075,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3091,
|
|
"raw": "2",
|
|
"start": 3090,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3075,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2939,
|
|
"name": "circle",
|
|
"start": 2933,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3098,
|
|
"start": 2933,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3140,
|
|
"name": "arcDegrees",
|
|
"start": 3130,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3146,
|
|
"raw": "360",
|
|
"start": 3143,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3161,
|
|
"name": "center",
|
|
"start": 3155,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 3204,
|
|
"left": {
|
|
"end": 3199,
|
|
"left": {
|
|
"argument": {
|
|
"end": 3186,
|
|
"name": "binLength",
|
|
"start": 3177,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3186,
|
|
"operator": "-",
|
|
"start": 3176,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3199,
|
|
"left": {
|
|
"end": 3190,
|
|
"raw": "2",
|
|
"start": 3189,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3199,
|
|
"name": "binTol",
|
|
"start": 3193,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3189,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3176,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3204,
|
|
"raw": "2",
|
|
"start": 3203,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3176,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 3243,
|
|
"left": {
|
|
"end": 3238,
|
|
"left": {
|
|
"end": 3225,
|
|
"name": "binLength",
|
|
"start": 3216,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3238,
|
|
"left": {
|
|
"end": 3229,
|
|
"raw": "2",
|
|
"start": 3228,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3238,
|
|
"name": "binTol",
|
|
"start": 3232,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3228,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3216,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3243,
|
|
"raw": "2",
|
|
"start": 3242,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3216,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 3252,
|
|
"start": 3164,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3270,
|
|
"name": "instances",
|
|
"start": 3261,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3274,
|
|
"raw": "4",
|
|
"start": 3273,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3299,
|
|
"name": "rotateDuplicates",
|
|
"start": 3283,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3306,
|
|
"raw": "true",
|
|
"start": 3302,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3121,
|
|
"name": "patternCircular2d",
|
|
"start": 3104,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3313,
|
|
"start": 3104,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3333,
|
|
"name": "length",
|
|
"start": 3327,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 3345,
|
|
"name": "magDepth",
|
|
"start": 3337,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3345,
|
|
"operator": "-",
|
|
"start": 3336,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3326,
|
|
"name": "extrude",
|
|
"start": 3319,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3346,
|
|
"start": 3319,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 3391,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"3": [
|
|
{
|
|
"end": 3391,
|
|
"start": 3346,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the baseplate by patterning sides",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 2890,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 2875,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 3391,
|
|
"kind": "const",
|
|
"start": 2875,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 3748,
|
|
"id": {
|
|
"end": 3400,
|
|
"name": "binSides",
|
|
"start": 3392,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3445,
|
|
"name": "axis",
|
|
"start": 3441,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 3452,
|
|
"raw": "1.0",
|
|
"start": 3449,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 3457,
|
|
"raw": "0.0",
|
|
"start": 3454,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 3462,
|
|
"raw": "0.0",
|
|
"start": 3459,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 3463,
|
|
"start": 3448,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3481,
|
|
"name": "instances",
|
|
"start": 3472,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3497,
|
|
"name": "countBinWidth",
|
|
"start": 3484,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3514,
|
|
"name": "distance",
|
|
"start": 3506,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3539,
|
|
"left": {
|
|
"end": 3526,
|
|
"name": "binLength",
|
|
"start": 3517,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3539,
|
|
"left": {
|
|
"end": 3535,
|
|
"name": "binTol",
|
|
"start": 3529,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3539,
|
|
"raw": "2",
|
|
"start": 3538,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3529,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3517,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3418,
|
|
"name": "patternLinear3d",
|
|
"start": 3403,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3546,
|
|
"start": 3403,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 3432,
|
|
"name": "sides",
|
|
"start": 3427,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3580,
|
|
"name": "axis",
|
|
"start": 3576,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 3587,
|
|
"raw": "0.0",
|
|
"start": 3584,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 3592,
|
|
"raw": "1.0",
|
|
"start": 3589,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 3597,
|
|
"raw": "0.0",
|
|
"start": 3594,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 3598,
|
|
"start": 3583,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3616,
|
|
"name": "instances",
|
|
"start": 3607,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3633,
|
|
"name": "countBinLength",
|
|
"start": 3619,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3650,
|
|
"name": "distance",
|
|
"start": 3642,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3675,
|
|
"left": {
|
|
"end": 3662,
|
|
"name": "binLength",
|
|
"start": 3653,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3675,
|
|
"left": {
|
|
"end": 3671,
|
|
"name": "binTol",
|
|
"start": 3665,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3675,
|
|
"raw": "2",
|
|
"start": 3674,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3665,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3653,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3567,
|
|
"name": "patternLinear3d",
|
|
"start": 3552,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3682,
|
|
"start": 3552,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 3748,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 3748,
|
|
"start": 3682,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the corners of the baseplate by patterning the corners",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 3403,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 3392,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 3748,
|
|
"kind": "const",
|
|
"start": 3392,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 4100,
|
|
"id": {
|
|
"end": 3759,
|
|
"name": "binCorners",
|
|
"start": 3749,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3806,
|
|
"name": "axis",
|
|
"start": 3802,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 3813,
|
|
"raw": "1.0",
|
|
"start": 3810,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 3818,
|
|
"raw": "0.0",
|
|
"start": 3815,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 3823,
|
|
"raw": "0.0",
|
|
"start": 3820,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 3824,
|
|
"start": 3809,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3842,
|
|
"name": "instances",
|
|
"start": 3833,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3858,
|
|
"name": "countBinWidth",
|
|
"start": 3845,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3875,
|
|
"name": "distance",
|
|
"start": 3867,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3900,
|
|
"left": {
|
|
"end": 3887,
|
|
"name": "binLength",
|
|
"start": 3878,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3900,
|
|
"left": {
|
|
"end": 3896,
|
|
"name": "binTol",
|
|
"start": 3890,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3900,
|
|
"raw": "2",
|
|
"start": 3899,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3890,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3878,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3777,
|
|
"name": "patternLinear3d",
|
|
"start": 3762,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3907,
|
|
"start": 3762,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 3793,
|
|
"name": "corners",
|
|
"start": 3786,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3941,
|
|
"name": "axis",
|
|
"start": 3937,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 3948,
|
|
"raw": "0.0",
|
|
"start": 3945,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 3953,
|
|
"raw": "1.0",
|
|
"start": 3950,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 3958,
|
|
"raw": "0.0",
|
|
"start": 3955,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 3959,
|
|
"start": 3944,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3977,
|
|
"name": "instances",
|
|
"start": 3968,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3994,
|
|
"name": "countBinLength",
|
|
"start": 3980,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4011,
|
|
"name": "distance",
|
|
"start": 4003,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4036,
|
|
"left": {
|
|
"end": 4023,
|
|
"name": "binLength",
|
|
"start": 4014,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4036,
|
|
"left": {
|
|
"end": 4032,
|
|
"name": "binTol",
|
|
"start": 4026,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4036,
|
|
"raw": "2",
|
|
"start": 4035,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4026,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4014,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3928,
|
|
"name": "patternLinear3d",
|
|
"start": 3913,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4043,
|
|
"start": 3913,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 4100,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 4100,
|
|
"start": 4043,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the fill of the bin by patterning the corners",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 3762,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 3749,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4100,
|
|
"kind": "const",
|
|
"start": 3749,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 4428,
|
|
"id": {
|
|
"end": 4108,
|
|
"name": "binFill",
|
|
"start": 4101,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4161,
|
|
"name": "axis",
|
|
"start": 4157,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4168,
|
|
"raw": "1.0",
|
|
"start": 4165,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 4173,
|
|
"raw": "0.0",
|
|
"start": 4170,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 4178,
|
|
"raw": "0.0",
|
|
"start": 4175,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 4179,
|
|
"start": 4164,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4197,
|
|
"name": "instances",
|
|
"start": 4188,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4213,
|
|
"name": "countBinWidth",
|
|
"start": 4200,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4230,
|
|
"name": "distance",
|
|
"start": 4222,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4255,
|
|
"left": {
|
|
"end": 4242,
|
|
"name": "binLength",
|
|
"start": 4233,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4255,
|
|
"left": {
|
|
"end": 4251,
|
|
"name": "binTol",
|
|
"start": 4245,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4255,
|
|
"raw": "2",
|
|
"start": 4254,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4245,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4233,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4126,
|
|
"name": "patternLinear3d",
|
|
"start": 4111,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4262,
|
|
"start": 4111,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 4148,
|
|
"name": "singleBinFill",
|
|
"start": 4135,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4296,
|
|
"name": "axis",
|
|
"start": 4292,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4303,
|
|
"raw": "0.0",
|
|
"start": 4300,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 4308,
|
|
"raw": "1.0",
|
|
"start": 4305,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 4313,
|
|
"raw": "0.0",
|
|
"start": 4310,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 4314,
|
|
"start": 4299,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4332,
|
|
"name": "instances",
|
|
"start": 4323,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4349,
|
|
"name": "countBinLength",
|
|
"start": 4335,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4366,
|
|
"name": "distance",
|
|
"start": 4358,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4391,
|
|
"left": {
|
|
"end": 4378,
|
|
"name": "binLength",
|
|
"start": 4369,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4391,
|
|
"left": {
|
|
"end": 4387,
|
|
"name": "binTol",
|
|
"start": 4381,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4391,
|
|
"raw": "2",
|
|
"start": 4390,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4381,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4369,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4283,
|
|
"name": "patternLinear3d",
|
|
"start": 4268,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4398,
|
|
"start": 4268,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 4428,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 4428,
|
|
"start": 4398,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the top of the bin",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 4111,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 4101,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4428,
|
|
"kind": "const",
|
|
"start": 4101,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5097,
|
|
"id": {
|
|
"end": 4435,
|
|
"name": "binTop",
|
|
"start": 4429,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4476,
|
|
"name": "offset",
|
|
"start": 4470,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4485,
|
|
"name": "height",
|
|
"start": 4479,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4463,
|
|
"name": "offsetPlane",
|
|
"start": 4452,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4486,
|
|
"start": 4452,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 4468,
|
|
"raw": "\"XY\"",
|
|
"start": 4464,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XY"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4451,
|
|
"name": "startSketchOn",
|
|
"start": 4438,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4487,
|
|
"start": 4438,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 4510,
|
|
"raw": "0",
|
|
"start": 4509,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 4513,
|
|
"raw": "0",
|
|
"start": 4512,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 4514,
|
|
"start": 4508,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 4517,
|
|
"start": 4516,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4507,
|
|
"name": "startProfileAt",
|
|
"start": 4493,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4518,
|
|
"start": 4493,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4536,
|
|
"name": "length",
|
|
"start": 4530,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4579,
|
|
"left": {
|
|
"end": 4562,
|
|
"left": {
|
|
"end": 4549,
|
|
"name": "binLength",
|
|
"start": 4540,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4562,
|
|
"left": {
|
|
"end": 4553,
|
|
"raw": "2",
|
|
"start": 4552,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4562,
|
|
"name": "binTol",
|
|
"start": 4556,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4552,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4540,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4579,
|
|
"name": "countBinWidth",
|
|
"start": 4566,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4540,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4584,
|
|
"name": "tag",
|
|
"start": 4581,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4595,
|
|
"start": 4587,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line010"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4529,
|
|
"name": "xLine",
|
|
"start": 4524,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4596,
|
|
"start": 4524,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4614,
|
|
"name": "length",
|
|
"start": 4608,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4658,
|
|
"left": {
|
|
"end": 4640,
|
|
"left": {
|
|
"end": 4627,
|
|
"name": "binLength",
|
|
"start": 4618,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4640,
|
|
"left": {
|
|
"end": 4631,
|
|
"raw": "2",
|
|
"start": 4630,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4640,
|
|
"name": "binTol",
|
|
"start": 4634,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4630,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4618,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4658,
|
|
"name": "countBinLength",
|
|
"start": 4644,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4618,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4663,
|
|
"name": "tag",
|
|
"start": 4660,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4674,
|
|
"start": 4666,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line011"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4607,
|
|
"name": "yLine",
|
|
"start": 4602,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4675,
|
|
"start": 4602,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4698,
|
|
"name": "endAbsolute",
|
|
"start": 4687,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"arguments": [
|
|
{
|
|
"end": 4716,
|
|
"start": 4715,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4714,
|
|
"name": "profileStartX",
|
|
"start": 4701,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4717,
|
|
"start": 4701,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4722,
|
|
"name": "tag",
|
|
"start": 4719,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4733,
|
|
"start": 4725,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line012"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4686,
|
|
"name": "xLine",
|
|
"start": 4681,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4734,
|
|
"start": 4681,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4749,
|
|
"name": "tag",
|
|
"start": 4746,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4760,
|
|
"start": 4752,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "line013"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4745,
|
|
"name": "close",
|
|
"start": 4740,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4761,
|
|
"start": 4740,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4781,
|
|
"name": "length",
|
|
"start": 4775,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4810,
|
|
"left": {
|
|
"end": 4793,
|
|
"name": "binHeight",
|
|
"start": 4784,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4810,
|
|
"name": "countBinHeight",
|
|
"start": 4796,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4784,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4774,
|
|
"name": "extrude",
|
|
"start": 4767,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4811,
|
|
"start": 4767,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4838,
|
|
"name": "radius",
|
|
"start": 4832,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4853,
|
|
"name": "cornerRadius",
|
|
"start": 4841,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4866,
|
|
"name": "tags",
|
|
"start": 4862,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4907,
|
|
"name": "line010",
|
|
"start": 4900,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4899,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 4880,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4908,
|
|
"start": 4880,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4950,
|
|
"name": "line010",
|
|
"start": 4943,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4942,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 4919,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4951,
|
|
"start": 4919,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4989,
|
|
"name": "line012",
|
|
"start": 4982,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4981,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 4962,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4990,
|
|
"start": 4962,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5032,
|
|
"name": "line012",
|
|
"start": 5025,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5024,
|
|
"name": "getPreviousAdjacentEdge",
|
|
"start": 5001,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5033,
|
|
"start": 5001,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 5042,
|
|
"start": 4869,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4823,
|
|
"name": "fillet",
|
|
"start": 4817,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5049,
|
|
"start": 4817,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5066,
|
|
"name": "faces",
|
|
"start": 5061,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5075,
|
|
"raw": "\"end\"",
|
|
"start": 5070,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "end"
|
|
}
|
|
],
|
|
"end": 5076,
|
|
"start": 5069,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5087,
|
|
"name": "thickness",
|
|
"start": 5078,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5096,
|
|
"name": "binThk",
|
|
"start": 5090,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5060,
|
|
"name": "shell",
|
|
"start": 5055,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5097,
|
|
"start": 5055,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 5097,
|
|
"start": 4438,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 4429,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5097,
|
|
"kind": "const",
|
|
"start": 4429,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
}
|
|
],
|
|
"end": 5098,
|
|
"innerAttrs": [
|
|
{
|
|
"end": 339,
|
|
"name": {
|
|
"end": 315,
|
|
"name": "settings",
|
|
"start": 307,
|
|
"type": "Identifier"
|
|
},
|
|
"properties": [
|
|
{
|
|
"end": 338,
|
|
"key": {
|
|
"end": 333,
|
|
"name": "defaultLengthUnit",
|
|
"start": 316,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 316,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 338,
|
|
"name": "mm",
|
|
"start": 336,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 306,
|
|
"type": "Annotation"
|
|
}
|
|
],
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"11": [
|
|
{
|
|
"end": 598,
|
|
"start": 561,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Number of bins in each direction",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"14": [
|
|
{
|
|
"end": 754,
|
|
"start": 654,
|
|
"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"
|
|
}
|
|
}
|
|
],
|
|
"15": [
|
|
{
|
|
"end": 866,
|
|
"start": 798,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "define a function which builds the profile of the baseplate bin",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"16": [
|
|
{
|
|
"end": 1284,
|
|
"start": 1247,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "extrude a single side of the bin",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"17": [
|
|
{
|
|
"end": 1471,
|
|
"start": 1405,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the other sides of the bin by using a circular pattern",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"18": [
|
|
{
|
|
"end": 1716,
|
|
"start": 1689,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "define an axis axis000",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"19": [
|
|
{
|
|
"end": 1886,
|
|
"start": 1848,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create a single corner of the bin",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"20": [
|
|
{
|
|
"end": 2029,
|
|
"start": 1995,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "create the corners of the bin",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"21": [
|
|
{
|
|
"end": 2253,
|
|
"start": 2251,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
],
|
|
"22": [
|
|
{
|
|
"end": 2875,
|
|
"start": 2873,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": [
|
|
{
|
|
"end": 18,
|
|
"start": 0,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Gridfinity Bins",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 271,
|
|
"start": 19,
|
|
"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",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 273,
|
|
"start": 271,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
},
|
|
{
|
|
"end": 305,
|
|
"start": 273,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Set units in millimeters (mm)",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 341,
|
|
"start": 339,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
},
|
|
{
|
|
"end": 360,
|
|
"start": 341,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Define constants",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"start": 0
|
|
}
|
|
}
|