Files
modeling-app/rust/kcl-lib/tests/kcl_samples/gridfinity-bins/ast.snap

4691 lines
155 KiB
Plaintext
Raw Normal View History

test: Vendor kcl-samples and add simulation tests for them (#5460) * Change to unzip * Download kcl-samples as zip to public dir * Fix fetch:samples, e2e electron still not working * Change error message to be clearer * Refactor so that input and output directories of sim tests can be different * Add kcl samples test implementation * Update output since adding kcl_samples tests * Update kcl-samples branch * Fix git-ignore pattern to only apply to the root * Fix yarn install and yarn fetch:samples to work the first time * Remove unneeded exists check * Change to use kcl-samples in public directory * Add kcl-samples * Update output since updating kcl-samples * Update output files * Change to not fetch samples during yarn install * Update output after merge * Ignore kcl-samples in codespell * WIP: Don't run e2e if only kcl-samples changed * Conditionally run cargo tests * Fix to round floating point values in program memory arrays * Update output since merge and rounding numbers in memory * Fix memory redaction for floating point to find more values * Fix float redaction pattern * Update output since rounding floating point numbers * Add center to floating point pattern * Fix trigger to use picomatch syntax * Update output since rounding center * Remove kcl-samples github workflows * Enable Rust backtrace * Update output after re-running * Update output after changing order of post-extrude commands * Fix to have deterministic order of commands * Update output after reverting ordering changes * Update kcl-samples * Update output after updating samples * Fix error messages to show the names of all samples that failed * Change cargo test command to match current one * Update kcl-samples * Update output since updating kcl-samples * Add generate manifest workflow and yarn script * Fix error check to actually work * Change util function to be what we actually need * Move new files after merge * Fix paths since directory move * Add dependabot updates for kcl-samples * Add GitHub workflow to make PR to kcl-samples repo * Add GitHub workflow to check kcl-samples header comments * Fix worfklow to change to the right directory * Add auto-commit simulation test output changes * Add permissions to workflows * Fix to run git commit step * Install just if needed * Fix directory of justfile * Add installation of cargo-insta * Fix to use underscore * Fix to allow just command failure * Change to always install CLI tools and cache them * Trying to fix overwrite failing * Combine commands * Change reviewer * Change to PR targeting the next branch * Change git commands to not do unnecessary fetch * Comment out trigger for creating a PR * Update kcl-samples from next branch * Update outputs after kcl-samples change * Fix to use bash pipefail * Add rust backtrace * Print full env from sim tests * Change command to use long option name * Fix to use ci profile even when calling through just * Add INSTA_UPDATE=always * Fix git push by using an app token on checkout * Add comments * Fix to use bash options * Change to echo when no changes are found * Fix so that kcl-samples updates don't trigger full run * Fix paths to reflect new crate location * Fix path detection * Fix e2e job to ignore kcl_samples simulation test output * Fix the fetch logic for the KCL samples after vendoring (#5661) Fixes the last 2 E2E tests for #5460. --------- Co-authored-by: Pierre Jacquier <pierre@zoo.dev> Co-authored-by: Pierre Jacquier <pierrejacquier39@gmail.com> Co-authored-by: Frank Noirot <frank@zoo.dev>
2025-03-06 18:01:24 -05:00
---
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": 1229,
"id": {
"end": 874,
"name": "face",
"start": 870,
"type": "Identifier"
},
"init": {
"body": {
"body": [
{
"declaration": {
"end": 1207,
"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": [
{
"end": 993,
"name": "height",
"start": 987,
"type": "Identifier",
"type": "Identifier"
},
{
"end": 996,
"start": 995,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 986,
"name": "yLine",
"start": 981,
"type": "Identifier"
},
"end": 997,
"start": 981,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"argument": {
"end": 1025,
"name": "binBaseLength",
"start": 1012,
"type": "Identifier",
"type": "Identifier"
},
"end": 1025,
"operator": "-",
"start": 1011,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"end": 1028,
"start": 1027,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1010,
"name": "xLine",
"start": 1005,
"type": "Identifier"
},
"end": 1029,
"start": 1005,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 1092,
"properties": [
{
"end": 1070,
"key": {
"end": 1064,
"name": "angle",
"start": 1059,
"type": "Identifier"
},
"start": 1059,
"type": "ObjectProperty",
"value": {
"argument": {
"end": 1070,
"raw": "45",
"start": 1068,
"type": "Literal",
"type": "Literal",
"value": {
"value": 45.0,
"suffix": "None"
}
},
"end": 1070,
"operator": "-",
"start": 1067,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
},
{
"end": 1090,
"key": {
"end": 1078,
"name": "length",
"start": 1072,
"type": "Identifier"
},
"start": 1072,
"type": "ObjectProperty",
"value": {
"end": 1090,
"name": "thirdStep",
"start": 1081,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 1057,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 1095,
"start": 1094,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1056,
"name": "angledLineOfYLength",
"start": 1037,
"type": "Identifier"
},
"end": 1096,
"start": 1037,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"argument": {
"end": 1121,
"name": "secondStep",
"start": 1111,
"type": "Identifier",
"type": "Identifier"
},
"end": 1121,
"operator": "-",
"start": 1110,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"end": 1124,
"start": 1123,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1109,
"name": "yLine",
"start": 1104,
"type": "Identifier"
},
"end": 1125,
"start": 1104,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 1188,
"properties": [
{
"end": 1166,
"key": {
"end": 1160,
"name": "angle",
"start": 1155,
"type": "Identifier"
},
"start": 1155,
"type": "ObjectProperty",
"value": {
"argument": {
"end": 1166,
"raw": "45",
"start": 1164,
"type": "Literal",
"type": "Literal",
"value": {
"value": 45.0,
"suffix": "None"
}
},
"end": 1166,
"operator": "-",
"start": 1163,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
},
{
"end": 1186,
"key": {
"end": 1174,
"name": "length",
"start": 1168,
"type": "Identifier"
},
"start": 1168,
"type": "ObjectProperty",
"value": {
"end": 1186,
"name": "firstStep",
"start": 1177,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 1153,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 1191,
"start": 1190,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1152,
"name": "angledLineOfYLength",
"start": 1133,
"type": "Identifier"
},
"end": 1192,
"start": 1133,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [],
"callee": {
"end": 1205,
"name": "close",
"start": 1200,
"type": "Identifier"
},
"end": 1207,
"start": 1200,
"type": "CallExpression",
"type": "CallExpression"
}
],
"end": 1207,
"start": 899,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 886,
"type": "VariableDeclarator"
},
"end": 1207,
"kind": "const",
"start": 886,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"argument": {
"end": 1227,
"name": "faceSketch",
"start": 1217,
"type": "Identifier",
"type": "Identifier"
},
"end": 1227,
"start": 1210,
"type": "ReturnStatement",
"type": "ReturnStatement"
}
],
"end": 1229,
"start": 882
},
"end": 1229,
"params": [
{
"type": "Parameter",
"identifier": {
"end": 880,
"name": "plane",
"start": 875,
"type": "Identifier"
}
}
],
"start": 874,
"type": "FunctionExpression",
"type": "FunctionExpression"
},
"start": 870,
"type": "VariableDeclarator"
},
"end": 1229,
"kind": "fn",
"start": 867,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1387,
"id": {
"end": 1277,
"name": "singleSide",
"start": 1267,
"type": "Identifier"
},
"init": {
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1351,
"name": "length",
"start": 1345,
"type": "Identifier"
},
"arg": {
"end": 1383,
"left": {
"end": 1363,
"name": "binLength",
"start": 1354,
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
"end": 1383,
"left": {
"end": 1379,
"name": "cornerRadius",
"start": 1367,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 1383,
"raw": "2",
"start": 1382,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1367,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1354,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 1287,
"name": "extrude",
"start": 1280,
"type": "Identifier"
},
"end": 1387,
"start": 1280,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1317,
"name": "offset",
"start": 1311,
"type": "Identifier"
},
"arg": {
"end": 1341,
"left": {
"end": 1332,
"name": "cornerRadius",
"start": 1320,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 1341,
"name": "binTol",
"start": 1335,
"type": "Identifier",
"type": "Identifier"
},
"start": 1320,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 1304,
"name": "offsetPlane",
"start": 1293,
"type": "Identifier"
},
"end": 1342,
"start": 1293,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 1309,
"raw": "\"YZ\"",
"start": 1305,
"type": "Literal",
"type": "Literal",
"value": "YZ"
}
}
],
"callee": {
"end": 1292,
"name": "face",
"start": 1288,
"type": "Identifier"
},
"end": 1343,
"start": 1288,
"type": "CallExpression",
"type": "CallExpression"
}
},
"start": 1267,
"type": "VariableDeclarator"
},
"end": 1387,
"kind": "const",
"start": 1267,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1671,
"id": {
"end": 1459,
"name": "sides",
"start": 1454,
"type": "Identifier"
},
"init": {
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1507,
"name": "arcDegrees",
"start": 1497,
"type": "Identifier"
},
"arg": {
"end": 1513,
"raw": "360",
"start": 1510,
"type": "Literal",
"type": "Literal",
"value": {
"value": 360.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 1521,
"name": "axis",
"start": 1517,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 1526,
"raw": "0",
"start": 1525,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 1529,
"raw": "0",
"start": 1528,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 1532,
"raw": "1",
"start": 1531,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
],
"end": 1533,
"start": 1524,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 1543,
"name": "center",
"start": 1537,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 1580,
"left": {
"end": 1575,
"left": {
"end": 1562,
"name": "binLength",
"start": 1553,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 1575,
"left": {
"end": 1566,
"raw": "2",
"start": 1565,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
"end": 1575,
"name": "binTol",
"start": 1569,
"type": "Identifier",
"type": "Identifier"
},
"start": 1565,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1553,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
"end": 1580,
"raw": "2",
"start": 1579,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1553,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 1614,
"left": {
"end": 1609,
"left": {
"end": 1596,
"name": "binLength",
"start": 1587,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 1609,
"left": {
"end": 1600,
"raw": "2",
"start": 1599,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
"end": 1609,
"name": "binTol",
"start": 1603,
"type": "Identifier",
"type": "Identifier"
},
"start": 1599,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 1587,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
"end": 1614,
"raw": "2",
"start": 1613,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1587,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 1621,
"raw": "0",
"start": 1620,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 1625,
"start": 1546,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 1638,
"name": "instances",
"start": 1629,
"type": "Identifier"
},
"arg": {
"end": 1642,
"raw": "4",
"start": 1641,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 1662,
"name": "rotateDuplicates",
"start": 1646,
"type": "Identifier"
},
"arg": {
"end": 1669,
"raw": "true",
"start": 1665,
"type": "Literal",
"type": "Literal",
"value": true
}
}
],
"callee": {
"end": 1479,
"name": "patternCircular3d",
"start": 1462,
"type": "Identifier"
},
"end": 1671,
"start": 1462,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 1493,
"name": "singleSide",
"start": 1483,
"type": "Identifier",
"type": "Identifier"
}
},
"start": 1454,
"type": "VariableDeclarator"
},
"end": 1671,
"kind": "const",
"start": 1454,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1830,
"id": {
"end": 1706,
"name": "axis000",
"start": 1699,
"type": "Identifier"
},
"init": {
"end": 1830,
"properties": [
{
"end": 1828,
"key": {
"end": 1719,
"name": "custom",
"start": 1713,
"type": "Identifier"
},
"start": 1713,
"type": "ObjectProperty",
"value": {
"end": 1828,
"properties": [
{
"end": 1745,
"key": {
"end": 1732,
"name": "axis",
"start": 1728,
"type": "Identifier"
},
"start": 1728,
"type": "ObjectProperty",
"value": {
"elements": [
{
"end": 1739,
"raw": "0.0",
"start": 1736,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 1744,
"raw": "1.0",
"start": 1741,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
],
"end": 1745,
"start": 1735,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"end": 1824,
"key": {
"end": 1757,
"name": "origin",
"start": 1751,
"type": "Identifier"
},
"start": 1751,
"type": "ObjectProperty",
"value": {
"elements": [
{
"end": 1789,
"left": {
"end": 1780,
"name": "cornerRadius",
"start": 1768,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 1789,
"name": "binTol",
"start": 1783,
"type": "Identifier",
"type": "Identifier"
},
"start": 1768,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 1818,
"left": {
"end": 1809,
"name": "cornerRadius",
"start": 1797,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 1818,
"name": "binTol",
"start": 1812,
"type": "Identifier",
"type": "Identifier"
},
"start": 1797,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 1824,
"start": 1760,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"start": 1722,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
}
],
"start": 1709,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
"start": 1699,
"type": "VariableDeclarator"
},
"end": 1830,
"kind": "const",
"start": 1699,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1981,
"id": {
"end": 1881,
"name": "singleCorner",
"start": 1869,
"type": "Identifier"
},
"init": {
"arguments": [
{
"end": 1923,
"properties": [
{
"end": 1905,
"key": {
"end": 1899,
"name": "angle",
"start": 1894,
"type": "Identifier"
},
"start": 1894,
"type": "ObjectProperty",
"value": {
"argument": {
"end": 1905,
"raw": "90",
"start": 1903,
"type": "Literal",
"type": "Literal",
"value": {
"value": 90.0,
"suffix": "None"
}
},
"end": 1905,
"operator": "-",
"start": 1902,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
},
{
"end": 1921,
"key": {
"end": 1911,
"name": "axis",
"start": 1907,
"type": "Identifier"
},
"start": 1907,
"type": "ObjectProperty",
"value": {
"end": 1921,
"name": "axis000",
"start": 1914,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 1892,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1954,
"name": "offset",
"start": 1948,
"type": "Identifier"
},
"arg": {
"end": 1978,
"left": {
"end": 1969,
"name": "cornerRadius",
"start": 1957,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 1978,
"name": "binTol",
"start": 1972,
"type": "Identifier",
"type": "Identifier"
},
"start": 1957,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 1941,
"name": "offsetPlane",
"start": 1930,
"type": "Identifier"
},
"end": 1979,
"start": 1930,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 1946,
"raw": "\"YZ\"",
"start": 1942,
"type": "Literal",
"type": "Literal",
"value": "YZ"
}
}
],
"callee": {
"end": 1929,
"name": "face",
"start": 1925,
"type": "Identifier"
},
"end": 1980,
"start": 1925,
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"end": 1891,
"name": "revolve",
"start": 1884,
"type": "Identifier"
},
"end": 1981,
"start": 1884,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 1869,
"type": "VariableDeclarator"
},
"end": 1981,
"kind": "const",
"start": 1869,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 2237,
"id": {
"end": 2023,
"name": "corners",
"start": 2016,
"type": "Identifier"
},
"init": {
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2073,
"name": "arcDegrees",
"start": 2063,
"type": "Identifier"
},
"arg": {
"end": 2079,
"raw": "360",
"start": 2076,
"type": "Literal",
"type": "Literal",
"value": {
"value": 360.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 2087,
"name": "axis",
"start": 2083,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 2092,
"raw": "0",
"start": 2091,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 2095,
"raw": "0",
"start": 2094,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 2098,
"raw": "1",
"start": 2097,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
],
"end": 2099,
"start": 2090,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 2109,
"name": "center",
"start": 2103,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 2146,
"left": {
"end": 2141,
"left": {
"end": 2128,
"name": "binLength",
"start": 2119,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 2141,
"left": {
"end": 2132,
"raw": "2",
"start": 2131,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
"end": 2141,
"name": "binTol",
"start": 2135,
"type": "Identifier",
"type": "Identifier"
},
"start": 2131,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 2119,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
"end": 2146,
"raw": "2",
"start": 2145,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2119,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 2180,
"left": {
"end": 2175,
"left": {
"end": 2162,
"name": "binLength",
"start": 2153,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 2175,
"left": {
"end": 2166,
"raw": "2",
"start": 2165,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
"end": 2175,
"name": "binTol",
"start": 2169,
"type": "Identifier",
"type": "Identifier"
},
"start": 2165,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 2153,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
"end": 2180,
"raw": "2",
"start": 2179,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2153,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 2187,
"raw": "0",
"start": 2186,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 2191,
"start": 2112,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 2204,
"name": "instances",
"start": 2195,
"type": "Identifier"
},
"arg": {
"end": 2208,
"raw": "4",
"start": 2207,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 2228,
"name": "rotateDuplicates",
"start": 2212,
"type": "Identifier"
},
"arg": {
"end": 2235,
"raw": "true",
"start": 2231,
"type": "Literal",
"type": "Literal",
"value": true
}
}
],
"callee": {
"end": 2043,
"name": "patternCircular3d",
"start": 2026,
"type": "Identifier"
},
"end": 2237,
"start": 2026,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 2059,
"name": "singleCorner",
"start": 2047,
"type": "Identifier",
"type": "Identifier"
}
},
"start": 2016,
"type": "VariableDeclarator"
},
"end": 2237,
"kind": "const",
"start": 2016,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 2844,
"id": {
"end": 2252,
"name": "singleBinFill",
"start": 2239,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 2273,
"raw": "\"XY\"",
"start": 2269,
"type": "Literal",
"type": "Literal",
"value": "XY"
}
],
"callee": {
"end": 2268,
"name": "startSketchOn",
"start": 2255,
"type": "Identifier"
},
"end": 2274,
"start": 2255,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 2326,
"left": {
"end": 2317,
"name": "binBaseLength",
"start": 2304,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 2326,
"name": "binTol",
"start": 2320,
"type": "Identifier",
"type": "Identifier"
},
"start": 2304,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 2357,
"left": {
"end": 2348,
"name": "binBaseLength",
"start": 2335,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 2357,
"name": "binTol",
"start": 2351,
"type": "Identifier",
"type": "Identifier"
},
"start": 2335,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 2364,
"start": 2295,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 2367,
"start": 2366,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 2294,
"name": "startProfileAt",
"start": 2280,
"type": "Identifier"
},
"end": 2368,
"start": 2280,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2382,
"name": "end",
"start": 2379,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 2416,
"left": {
"end": 2395,
"name": "binLength",
"start": 2386,
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
"end": 2416,
"left": {
"end": 2412,
"name": "binBaseLength",
"start": 2399,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 2416,
"raw": "2",
"start": 2415,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2399,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 2386,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 2420,
"raw": "0",
"start": 2419,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 2421,
"start": 2385,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 2426,
"name": "tag",
"start": 2423,
"type": "Identifier"
},
"arg": {
"end": 2437,
"start": 2429,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "line000"
}
}
],
"callee": {
"end": 2378,
"name": "line",
"start": 2374,
"type": "Identifier"
},
"end": 2438,
"start": 2374,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2452,
"name": "end",
"start": 2449,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 2457,
"raw": "0",
"start": 2456,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 2489,
"left": {
"end": 2468,
"name": "binLength",
"start": 2459,
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
"end": 2489,
"left": {
"end": 2485,
"name": "binBaseLength",
"start": 2472,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 2489,
"raw": "2",
"start": 2488,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2472,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 2459,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 2491,
"start": 2455,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 2496,
"name": "tag",
"start": 2493,
"type": "Identifier"
},
"arg": {
"end": 2507,
"start": 2499,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "line001"
}
}
],
"callee": {
"end": 2448,
"name": "line",
"start": 2444,
"type": "Identifier"
},
"end": 2508,
"start": 2444,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"arguments": [
{
"end": 2537,
"start": 2536,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 2535,
"name": "profileStartX",
"start": 2522,
"type": "Identifier"
},
"end": 2538,
"start": 2522,
"type": "CallExpression",
"type": "CallExpression"
},
{
"end": 2541,
"start": 2540,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
},
{
"end": 2551,
"start": 2543,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "line002"
}
],
"callee": {
"end": 2521,
"name": "xLineTo",
"start": 2514,
"type": "Identifier"
},
"end": 2552,
"start": 2514,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2567,
"name": "tag",
"start": 2564,
"type": "Identifier"
},
"arg": {
"end": 2578,
"start": 2570,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "line003"
}
}
],
"callee": {
"end": 2563,
"name": "close",
"start": 2558,
"type": "Identifier"
},
"end": 2579,
"start": 2558,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2599,
"name": "length",
"start": 2593,
"type": "Identifier"
},
"arg": {
"end": 2608,
"name": "height",
"start": 2602,
"type": "Identifier",
"type": "Identifier"
}
}
],
"callee": {
"end": 2592,
"name": "extrude",
"start": 2585,
"type": "Identifier"
},
"end": 2609,
"start": 2585,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2636,
"name": "radius",
"start": 2630,
"type": "Identifier"
},
"arg": {
"end": 2648,
"name": "firstStep",
"start": 2639,
"type": "Identifier",
"type": "Identifier"
}
},
{
"type": "LabeledArg",
"label": {
"end": 2661,
"name": "tags",
"start": 2657,
"type": "Identifier"
},
"arg": {
"elements": [
{
"arguments": [
{
"end": 2702,
"name": "line000",
"start": 2695,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 2694,
"name": "getNextAdjacentEdge",
"start": 2675,
"type": "Identifier"
},
"end": 2703,
"start": 2675,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 2745,
"name": "line000",
"start": 2738,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 2737,
"name": "getPreviousAdjacentEdge",
"start": 2714,
"type": "Identifier"
},
"end": 2746,
"start": 2714,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 2784,
"name": "line002",
"start": 2777,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 2776,
"name": "getNextAdjacentEdge",
"start": 2757,
"type": "Identifier"
},
"end": 2785,
"start": 2757,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 2827,
"name": "line002",
"start": 2820,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 2819,
"name": "getPreviousAdjacentEdge",
"start": 2796,
"type": "Identifier"
},
"end": 2828,
"start": 2796,
"type": "CallExpression",
"type": "CallExpression"
}
],
"end": 2837,
"start": 2664,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 2621,
"name": "fillet",
"start": 2615,
"type": "Identifier"
},
"end": 2844,
"start": 2615,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 2844,
"start": 2255,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 2239,
"type": "VariableDeclarator"
},
"end": 2844,
"kind": "const",
"start": 2239,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 3362,
"id": {
"end": 2858,
"name": "magCutout000",
"start": 2846,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 2888,
"name": "singleBinFill",
"start": 2875,
"type": "Identifier",
"type": "Identifier"
},
{
"end": 2897,
"raw": "\"start\"",
"start": 2890,
"type": "Literal",
"type": "Literal",
"value": "start"
}
],
"callee": {
"end": 2874,
"name": "startSketchOn",
"start": 2861,
"type": "Identifier"
},
"end": 2898,
"start": 2861,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2925,
"name": "center",
"start": 2919,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 2974,
"left": {
"end": 2965,
"left": {
"argument": {
"end": 2949,
"name": "magOffset",
"start": 2940,
"type": "Identifier",
"type": "Identifier"
},
"end": 2949,
"operator": "-",
"start": 2939,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "-",
"right": {
"end": 2965,
"name": "binBaseLength",
"start": 2952,
"type": "Identifier",
"type": "Identifier"
},
"start": 2939,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"end": 2974,
"name": "binTol",
"start": 2968,
"type": "Identifier",
"type": "Identifier"
},
"start": 2939,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 3019,
"left": {
"end": 3010,
"left": {
"end": 2994,
"name": "magOffset",
"start": 2985,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 3010,
"name": "binBaseLength",
"start": 2997,
"type": "Identifier",
"type": "Identifier"
},
"start": 2985,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"end": 3019,
"name": "binTol",
"start": 3013,
"type": "Identifier",
"type": "Identifier"
},
"start": 2985,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 3028,
"start": 2928,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3043,
"name": "radius",
"start": 3037,
"type": "Identifier"
},
"arg": {
"end": 3062,
"left": {
"end": 3058,
"name": "magOuterDiam",
"start": 3046,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 3062,
"raw": "2",
"start": 3061,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3046,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 2910,
"name": "circle",
"start": 2904,
"type": "Identifier"
},
"end": 3069,
"start": 2904,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3111,
"name": "arcDegrees",
"start": 3101,
"type": "Identifier"
},
"arg": {
"end": 3117,
"raw": "360",
"start": 3114,
"type": "Literal",
"type": "Literal",
"value": {
"value": 360.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 3132,
"name": "center",
"start": 3126,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 3175,
"left": {
"end": 3170,
"left": {
"argument": {
"end": 3157,
"name": "binLength",
"start": 3148,
"type": "Identifier",
"type": "Identifier"
},
"end": 3157,
"operator": "-",
"start": 3147,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "+",
"right": {
"end": 3170,
"left": {
"end": 3161,
"raw": "2",
"start": 3160,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
"end": 3170,
"name": "binTol",
"start": 3164,
"type": "Identifier",
"type": "Identifier"
},
"start": 3160,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 3147,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
"end": 3175,
"raw": "2",
"start": 3174,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3147,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 3214,
"left": {
"end": 3209,
"left": {
"end": 3196,
"name": "binLength",
"start": 3187,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 3209,
"left": {
"end": 3200,
"raw": "2",
"start": 3199,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
"end": 3209,
"name": "binTol",
"start": 3203,
"type": "Identifier",
"type": "Identifier"
},
"start": 3199,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 3187,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
"end": 3214,
"raw": "2",
"start": 3213,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3187,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 3223,
"start": 3135,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3241,
"name": "instances",
"start": 3232,
"type": "Identifier"
},
"arg": {
"end": 3245,
"raw": "4",
"start": 3244,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 3270,
"name": "rotateDuplicates",
"start": 3254,
"type": "Identifier"
},
"arg": {
"end": 3277,
"raw": "true",
"start": 3273,
"type": "Literal",
"type": "Literal",
"value": true
}
}
],
"callee": {
"end": 3092,
"name": "patternCircular2d",
"start": 3075,
"type": "Identifier"
},
"end": 3284,
"start": 3075,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3304,
"name": "length",
"start": 3298,
"type": "Identifier"
},
"arg": {
"argument": {
"end": 3316,
"name": "magDepth",
"start": 3308,
"type": "Identifier",
"type": "Identifier"
},
"end": 3316,
"operator": "-",
"start": 3307,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
}
],
"callee": {
"end": 3297,
"name": "extrude",
"start": 3290,
"type": "Identifier"
},
"end": 3317,
"start": 3290,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 3362,
"nonCodeMeta": {
"nonCodeNodes": {
"3": [
{
"end": 3362,
"start": 3317,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "create the baseplate by patterning sides",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 2861,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 2846,
"type": "VariableDeclarator"
},
"end": 3362,
"kind": "const",
"start": 2846,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 3719,
"id": {
"end": 3371,
"name": "binSides",
"start": 3363,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3416,
"name": "axis",
"start": 3412,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 3423,
"raw": "1.0",
"start": 3420,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"end": 3428,
"raw": "0.0",
"start": 3425,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 3433,
"raw": "0.0",
"start": 3430,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 3434,
"start": 3419,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3452,
"name": "instances",
"start": 3443,
"type": "Identifier"
},
"arg": {
"end": 3468,
"name": "countBinWidth",
"start": 3455,
"type": "Identifier",
"type": "Identifier"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3485,
"name": "distance",
"start": 3477,
"type": "Identifier"
},
"arg": {
"end": 3510,
"left": {
"end": 3497,
"name": "binLength",
"start": 3488,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 3510,
"left": {
"end": 3506,
"name": "binTol",
"start": 3500,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 3510,
"raw": "2",
"start": 3509,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3500,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 3488,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 3389,
"name": "patternLinear3d",
"start": 3374,
"type": "Identifier"
},
"end": 3517,
"start": 3374,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 3403,
"name": "sides",
"start": 3398,
"type": "Identifier",
"type": "Identifier"
}
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3551,
"name": "axis",
"start": 3547,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 3558,
"raw": "0.0",
"start": 3555,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 3563,
"raw": "1.0",
"start": 3560,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"end": 3568,
"raw": "0.0",
"start": 3565,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 3569,
"start": 3554,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3587,
"name": "instances",
"start": 3578,
"type": "Identifier"
},
"arg": {
"end": 3604,
"name": "countBinLength",
"start": 3590,
"type": "Identifier",
"type": "Identifier"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3621,
"name": "distance",
"start": 3613,
"type": "Identifier"
},
"arg": {
"end": 3646,
"left": {
"end": 3633,
"name": "binLength",
"start": 3624,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 3646,
"left": {
"end": 3642,
"name": "binTol",
"start": 3636,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 3646,
"raw": "2",
"start": 3645,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3636,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 3624,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 3538,
"name": "patternLinear3d",
"start": 3523,
"type": "Identifier"
},
"end": 3653,
"start": 3523,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 3719,
"nonCodeMeta": {
"nonCodeNodes": {
"1": [
{
"end": 3719,
"start": 3653,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "create the corners of the baseplate by patterning the corners",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 3374,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 3363,
"type": "VariableDeclarator"
},
"end": 3719,
"kind": "const",
"start": 3363,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 4071,
"id": {
"end": 3730,
"name": "binCorners",
"start": 3720,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3777,
"name": "axis",
"start": 3773,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 3784,
"raw": "1.0",
"start": 3781,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"end": 3789,
"raw": "0.0",
"start": 3786,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 3794,
"raw": "0.0",
"start": 3791,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 3795,
"start": 3780,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3813,
"name": "instances",
"start": 3804,
"type": "Identifier"
},
"arg": {
"end": 3829,
"name": "countBinWidth",
"start": 3816,
"type": "Identifier",
"type": "Identifier"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3846,
"name": "distance",
"start": 3838,
"type": "Identifier"
},
"arg": {
"end": 3871,
"left": {
"end": 3858,
"name": "binLength",
"start": 3849,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 3871,
"left": {
"end": 3867,
"name": "binTol",
"start": 3861,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 3871,
"raw": "2",
"start": 3870,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3861,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 3849,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 3748,
"name": "patternLinear3d",
"start": 3733,
"type": "Identifier"
},
"end": 3878,
"start": 3733,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 3764,
"name": "corners",
"start": 3757,
"type": "Identifier",
"type": "Identifier"
}
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 3912,
"name": "axis",
"start": 3908,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 3919,
"raw": "0.0",
"start": 3916,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 3924,
"raw": "1.0",
"start": 3921,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"end": 3929,
"raw": "0.0",
"start": 3926,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 3930,
"start": 3915,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3948,
"name": "instances",
"start": 3939,
"type": "Identifier"
},
"arg": {
"end": 3965,
"name": "countBinLength",
"start": 3951,
"type": "Identifier",
"type": "Identifier"
}
},
{
"type": "LabeledArg",
"label": {
"end": 3982,
"name": "distance",
"start": 3974,
"type": "Identifier"
},
"arg": {
"end": 4007,
"left": {
"end": 3994,
"name": "binLength",
"start": 3985,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 4007,
"left": {
"end": 4003,
"name": "binTol",
"start": 3997,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 4007,
"raw": "2",
"start": 4006,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 3997,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 3985,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 3899,
"name": "patternLinear3d",
"start": 3884,
"type": "Identifier"
},
"end": 4014,
"start": 3884,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 4071,
"nonCodeMeta": {
"nonCodeNodes": {
"1": [
{
"end": 4071,
"start": 4014,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "create the fill of the bin by patterning the corners",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 3733,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 3720,
"type": "VariableDeclarator"
},
"end": 4071,
"kind": "const",
"start": 3720,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 4399,
"id": {
"end": 4079,
"name": "binFill",
"start": 4072,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4132,
"name": "axis",
"start": 4128,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 4139,
"raw": "1.0",
"start": 4136,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"end": 4144,
"raw": "0.0",
"start": 4141,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 4149,
"raw": "0.0",
"start": 4146,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 4150,
"start": 4135,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 4168,
"name": "instances",
"start": 4159,
"type": "Identifier"
},
"arg": {
"end": 4184,
"name": "countBinWidth",
"start": 4171,
"type": "Identifier",
"type": "Identifier"
}
},
{
"type": "LabeledArg",
"label": {
"end": 4201,
"name": "distance",
"start": 4193,
"type": "Identifier"
},
"arg": {
"end": 4226,
"left": {
"end": 4213,
"name": "binLength",
"start": 4204,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 4226,
"left": {
"end": 4222,
"name": "binTol",
"start": 4216,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 4226,
"raw": "2",
"start": 4225,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 4216,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 4204,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 4097,
"name": "patternLinear3d",
"start": 4082,
"type": "Identifier"
},
"end": 4233,
"start": 4082,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 4119,
"name": "singleBinFill",
"start": 4106,
"type": "Identifier",
"type": "Identifier"
}
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4267,
"name": "axis",
"start": 4263,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 4274,
"raw": "0.0",
"start": 4271,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 4279,
"raw": "1.0",
"start": 4276,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"end": 4284,
"raw": "0.0",
"start": 4281,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 4285,
"start": 4270,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 4303,
"name": "instances",
"start": 4294,
"type": "Identifier"
},
"arg": {
"end": 4320,
"name": "countBinLength",
"start": 4306,
"type": "Identifier",
"type": "Identifier"
}
},
{
"type": "LabeledArg",
"label": {
"end": 4337,
"name": "distance",
"start": 4329,
"type": "Identifier"
},
"arg": {
"end": 4362,
"left": {
"end": 4349,
"name": "binLength",
"start": 4340,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 4362,
"left": {
"end": 4358,
"name": "binTol",
"start": 4352,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 4362,
"raw": "2",
"start": 4361,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 4352,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 4340,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 4254,
"name": "patternLinear3d",
"start": 4239,
"type": "Identifier"
},
"end": 4369,
"start": 4239,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 4399,
"nonCodeMeta": {
"nonCodeNodes": {
"1": [
{
"end": 4399,
"start": 4369,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "create the top of the bin",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 4082,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 4072,
"type": "VariableDeclarator"
},
"end": 4399,
"kind": "const",
"start": 4072,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 5029,
"id": {
"end": 4406,
"name": "binTop",
"start": 4400,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4447,
"name": "offset",
"start": 4441,
"type": "Identifier"
},
"arg": {
"end": 4456,
"name": "height",
"start": 4450,
"type": "Identifier",
"type": "Identifier"
}
}
],
"callee": {
"end": 4434,
"name": "offsetPlane",
"start": 4423,
"type": "Identifier"
},
"end": 4457,
"start": 4423,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 4439,
"raw": "\"XY\"",
"start": 4435,
"type": "Literal",
"type": "Literal",
"value": "XY"
}
}
],
"callee": {
"end": 4422,
"name": "startSketchOn",
"start": 4409,
"type": "Identifier"
},
"end": 4458,
"start": 4409,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 4481,
"raw": "0",
"start": 4480,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 4484,
"raw": "0",
"start": 4483,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 4485,
"start": 4479,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 4488,
"start": 4487,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 4478,
"name": "startProfileAt",
"start": 4464,
"type": "Identifier"
},
"end": 4489,
"start": 4464,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 4541,
"left": {
"end": 4524,
"left": {
"end": 4511,
"name": "binLength",
"start": 4502,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 4524,
"left": {
"end": 4515,
"raw": "2",
"start": 4514,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
"end": 4524,
"name": "binTol",
"start": 4518,
"type": "Identifier",
"type": "Identifier"
},
"start": 4514,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 4502,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "*",
"right": {
"end": 4541,
"name": "countBinWidth",
"start": 4528,
"type": "Identifier",
"type": "Identifier"
},
"start": 4502,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 4544,
"start": 4543,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
},
{
"end": 4554,
"start": 4546,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "line010"
}
],
"callee": {
"end": 4500,
"name": "xLine",
"start": 4495,
"type": "Identifier"
},
"end": 4555,
"start": 4495,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 4608,
"left": {
"end": 4590,
"left": {
"end": 4577,
"name": "binLength",
"start": 4568,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 4590,
"left": {
"end": 4581,
"raw": "2",
"start": 4580,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
"end": 4590,
"name": "binTol",
"start": 4584,
"type": "Identifier",
"type": "Identifier"
},
"start": 4580,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 4568,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "*",
"right": {
"end": 4608,
"name": "countBinLength",
"start": 4594,
"type": "Identifier",
"type": "Identifier"
},
"start": 4568,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 4611,
"start": 4610,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
},
{
"end": 4621,
"start": 4613,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "line011"
}
],
"callee": {
"end": 4566,
"name": "yLine",
"start": 4561,
"type": "Identifier"
},
"end": 4622,
"start": 4561,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"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"
},
{
"end": 4655,
"start": 4654,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
},
{
"end": 4665,
"start": 4657,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "line012"
}
],
"callee": {
"end": 4635,
"name": "xLineTo",
"start": 4628,
"type": "Identifier"
},
"end": 4666,
"start": 4628,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4681,
"name": "tag",
"start": 4678,
"type": "Identifier"
},
"arg": {
"end": 4692,
"start": 4684,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "line013"
}
}
],
"callee": {
"end": 4677,
"name": "close",
"start": 4672,
"type": "Identifier"
},
"end": 4693,
"start": 4672,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4713,
"name": "length",
"start": 4707,
"type": "Identifier"
},
"arg": {
"end": 4742,
"left": {
"end": 4725,
"name": "binHeight",
"start": 4716,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 4742,
"name": "countBinHeight",
"start": 4728,
"type": "Identifier",
"type": "Identifier"
},
"start": 4716,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 4706,
"name": "extrude",
"start": 4699,
"type": "Identifier"
},
"end": 4743,
"start": 4699,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4770,
"name": "radius",
"start": 4764,
"type": "Identifier"
},
"arg": {
"end": 4785,
"name": "cornerRadius",
"start": 4773,
"type": "Identifier",
"type": "Identifier"
}
},
{
"type": "LabeledArg",
"label": {
"end": 4798,
"name": "tags",
"start": 4794,
"type": "Identifier"
},
"arg": {
"elements": [
{
"arguments": [
{
"end": 4839,
"name": "line010",
"start": 4832,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 4831,
"name": "getNextAdjacentEdge",
"start": 4812,
"type": "Identifier"
},
"end": 4840,
"start": 4812,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 4882,
"name": "line010",
"start": 4875,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 4874,
"name": "getPreviousAdjacentEdge",
"start": 4851,
"type": "Identifier"
},
"end": 4883,
"start": 4851,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 4921,
"name": "line012",
"start": 4914,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 4913,
"name": "getNextAdjacentEdge",
"start": 4894,
"type": "Identifier"
},
"end": 4922,
"start": 4894,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 4964,
"name": "line012",
"start": 4957,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 4956,
"name": "getPreviousAdjacentEdge",
"start": 4933,
"type": "Identifier"
},
"end": 4965,
"start": 4933,
"type": "CallExpression",
"type": "CallExpression"
}
],
"end": 4974,
"start": 4801,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 4755,
"name": "fillet",
"start": 4749,
"type": "Identifier"
},
"end": 4981,
"start": 4749,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 4998,
"name": "faces",
"start": 4993,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 5007,
"raw": "\"end\"",
"start": 5002,
"type": "Literal",
"type": "Literal",
"value": "end"
}
],
"end": 5008,
"start": 5001,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 5019,
"name": "thickness",
"start": 5010,
"type": "Identifier"
},
"arg": {
"end": 5028,
"name": "binThk",
"start": 5022,
"type": "Identifier",
"type": "Identifier"
}
}
],
"callee": {
"end": 4992,
"name": "shell",
"start": 4987,
"type": "Identifier"
},
"end": 5029,
"start": 4987,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 5029,
"start": 4409,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 4400,
"type": "VariableDeclarator"
},
"end": 5029,
"kind": "const",
"start": 4400,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 5030,
"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": 1266,
"start": 1229,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "extrude a single side of the bin",
"style": "line"
}
}
],
"17": [
{
"end": 1453,
"start": 1387,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "create the other sides of the bin by using a circular pattern",
"style": "line"
}
}
],
"18": [
{
"end": 1698,
"start": 1671,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "define an axis axis000",
"style": "line"
}
}
],
"19": [
{
"end": 1868,
"start": 1830,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "create a single corner of the bin",
"style": "line"
}
}
],
"20": [
{
"end": 2015,
"start": 1981,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "create the corners of the bin",
"style": "line"
}
}
],
"21": [
{
"end": 2239,
"start": 2237,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
],
"22": [
{
"end": 2846,
"start": 2844,
"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
}
}