Previously, `xLine`, `xLineTo`, `yLine` and `yLineTo` used positional arguments. Now: - `xLineTo` and `yLineTo` have been removed - `xLine` and `yLine` both use keyword arguments: - `length`, optional (i.e. a relative distance along the X or Y axis) - `endAbsolute` optional (i.e. an absolute point along the X or Y axis) - `tag` optional - Exactly one of `length` or `endAbsolute` must be given. Not both, not neither. For example: ``` // Old way |> xLine(6.04, %) |> yLineTo(20, %, $base) // New way |> xLine(length = 6.04) |> yLine(endAbsolute = 20, tag = $base) ``` This also improves some of the general-purpose keyword arguments code in modeling app's TS codebase.
8934 lines
324 KiB
Plaintext
8934 lines
324 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of parsing pipe-flange-assembly.kcl
|
|
---
|
|
{
|
|
"Ok": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 424,
|
|
"id": {
|
|
"end": 417,
|
|
"name": "flangeThickness",
|
|
"start": 402,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 424,
|
|
"raw": ".125",
|
|
"start": 420,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.125,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 402,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 424,
|
|
"kind": "const",
|
|
"start": 402,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 442,
|
|
"id": {
|
|
"end": 438,
|
|
"name": "flangeBaseDia",
|
|
"start": 425,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 442,
|
|
"raw": "2",
|
|
"start": 441,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 425,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 442,
|
|
"kind": "const",
|
|
"start": 425,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 457,
|
|
"id": {
|
|
"end": 453,
|
|
"name": "boreHeight",
|
|
"start": 443,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 457,
|
|
"raw": "1",
|
|
"start": 456,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 443,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 457,
|
|
"kind": "const",
|
|
"start": 443,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 475,
|
|
"id": {
|
|
"end": 471,
|
|
"name": "flangePipeDia",
|
|
"start": 458,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 475,
|
|
"raw": "1",
|
|
"start": 474,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 458,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 475,
|
|
"kind": "const",
|
|
"start": 458,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 499,
|
|
"id": {
|
|
"end": 491,
|
|
"name": "mountingHoleDia",
|
|
"start": 476,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 499,
|
|
"raw": "0.425",
|
|
"start": 494,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.425,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 476,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 499,
|
|
"kind": "const",
|
|
"start": 476,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 516,
|
|
"id": {
|
|
"end": 508,
|
|
"name": "screwDia",
|
|
"start": 500,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 516,
|
|
"raw": "0.375",
|
|
"start": 511,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.375,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 500,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 516,
|
|
"kind": "const",
|
|
"start": 500,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 528,
|
|
"id": {
|
|
"end": 520,
|
|
"name": "tol",
|
|
"start": 517,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 528,
|
|
"raw": "0.010",
|
|
"start": 523,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.01,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 517,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 528,
|
|
"kind": "const",
|
|
"start": 517,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 547,
|
|
"id": {
|
|
"end": 540,
|
|
"name": "hexNutScale",
|
|
"start": 529,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 547,
|
|
"raw": "0.90",
|
|
"start": 543,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.9,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 529,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 547,
|
|
"kind": "const",
|
|
"start": 529,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 567,
|
|
"id": {
|
|
"end": 561,
|
|
"name": "wallThickness",
|
|
"start": 548,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 567,
|
|
"raw": "0.5",
|
|
"start": 564,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.5,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 548,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 567,
|
|
"kind": "const",
|
|
"start": 548,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 587,
|
|
"id": {
|
|
"end": 579,
|
|
"name": "screwLength",
|
|
"start": 568,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 587,
|
|
"raw": "1.125",
|
|
"start": 582,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.125,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 568,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 587,
|
|
"kind": "const",
|
|
"start": 568,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 612,
|
|
"id": {
|
|
"end": 603,
|
|
"name": "washerThickness",
|
|
"start": 588,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 612,
|
|
"raw": "0.0625",
|
|
"start": 606,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0625,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 588,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 612,
|
|
"kind": "const",
|
|
"start": 588,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 679,
|
|
"id": {
|
|
"end": 623,
|
|
"name": "screwStart",
|
|
"start": 613,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"elements": [
|
|
{
|
|
"end": 631,
|
|
"raw": "0",
|
|
"start": 630,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 668,
|
|
"left": {
|
|
"end": 650,
|
|
"name": "flangeThickness",
|
|
"start": 635,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 668,
|
|
"name": "washerThickness",
|
|
"start": 653,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 635,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 677,
|
|
"raw": "1.375",
|
|
"start": 672,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.375,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 679,
|
|
"start": 626,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
"start": 613,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 679,
|
|
"kind": "const",
|
|
"start": 613,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 702,
|
|
"id": {
|
|
"end": 688,
|
|
"name": "capRatio",
|
|
"start": 680,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 702,
|
|
"left": {
|
|
"end": 695,
|
|
"raw": ".190",
|
|
"start": 691,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.19,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 702,
|
|
"raw": ".313",
|
|
"start": 698,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.313,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 691,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 680,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 702,
|
|
"kind": "const",
|
|
"start": 680,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 763,
|
|
"id": {
|
|
"end": 747,
|
|
"name": "hexRatio",
|
|
"start": 739,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 763,
|
|
"left": {
|
|
"end": 756,
|
|
"left": {
|
|
"end": 751,
|
|
"raw": "5",
|
|
"start": 750,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 5.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 756,
|
|
"raw": "32",
|
|
"start": 754,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 32.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 750,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 763,
|
|
"raw": ".190",
|
|
"start": 759,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.19,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 750,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 739,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 763,
|
|
"kind": "const",
|
|
"start": 739,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 822,
|
|
"id": {
|
|
"end": 816,
|
|
"name": "hexStartingAngle",
|
|
"start": 800,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 822,
|
|
"raw": "210",
|
|
"start": 819,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 210.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 800,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 822,
|
|
"kind": "const",
|
|
"start": 800,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 885,
|
|
"id": {
|
|
"end": 879,
|
|
"name": "hexInteriorAngle",
|
|
"start": 863,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 885,
|
|
"raw": "120",
|
|
"start": 882,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 120.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 863,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 885,
|
|
"kind": "const",
|
|
"start": 863,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 936,
|
|
"id": {
|
|
"end": 911,
|
|
"name": "hexChangeAngle",
|
|
"start": 897,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 936,
|
|
"left": {
|
|
"end": 917,
|
|
"raw": "180",
|
|
"start": 914,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 180.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 936,
|
|
"name": "hexInteriorAngle",
|
|
"start": 920,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 914,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 897,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 936,
|
|
"kind": "const",
|
|
"start": 897,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1188,
|
|
"id": {
|
|
"end": 960,
|
|
"name": "screwPlane",
|
|
"start": 950,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 1188,
|
|
"properties": [
|
|
{
|
|
"end": 1186,
|
|
"key": {
|
|
"end": 972,
|
|
"name": "plane",
|
|
"start": 967,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 967,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1186,
|
|
"properties": [
|
|
{
|
|
"end": 1071,
|
|
"key": {
|
|
"end": 987,
|
|
"name": "origin",
|
|
"start": 981,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 981,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1071,
|
|
"properties": [
|
|
{
|
|
"end": 1015,
|
|
"key": {
|
|
"end": 999,
|
|
"name": "x",
|
|
"start": 998,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 998,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"computed": false,
|
|
"end": 1015,
|
|
"object": {
|
|
"end": 1012,
|
|
"name": "screwStart",
|
|
"start": 1002,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 1014,
|
|
"raw": "0",
|
|
"start": 1013,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1002,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1040,
|
|
"key": {
|
|
"end": 1024,
|
|
"name": "y",
|
|
"start": 1023,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1023,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"computed": false,
|
|
"end": 1040,
|
|
"object": {
|
|
"end": 1037,
|
|
"name": "screwStart",
|
|
"start": 1027,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 1039,
|
|
"raw": "1",
|
|
"start": 1038,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1027,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1065,
|
|
"key": {
|
|
"end": 1049,
|
|
"name": "z",
|
|
"start": 1048,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1048,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"computed": false,
|
|
"end": 1065,
|
|
"object": {
|
|
"end": 1062,
|
|
"name": "screwStart",
|
|
"start": 1052,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 1064,
|
|
"raw": "2",
|
|
"start": 1063,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1052,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 990,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1108,
|
|
"key": {
|
|
"end": 1082,
|
|
"name": "xAxis",
|
|
"start": 1077,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1077,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1108,
|
|
"properties": [
|
|
{
|
|
"end": 1092,
|
|
"key": {
|
|
"end": 1088,
|
|
"name": "x",
|
|
"start": 1087,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1087,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1092,
|
|
"raw": "1",
|
|
"start": 1091,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 1099,
|
|
"key": {
|
|
"end": 1095,
|
|
"name": "y",
|
|
"start": 1094,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1094,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1099,
|
|
"raw": "0",
|
|
"start": 1098,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 1106,
|
|
"key": {
|
|
"end": 1102,
|
|
"name": "z",
|
|
"start": 1101,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1101,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1106,
|
|
"raw": "0",
|
|
"start": 1105,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 1085,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1145,
|
|
"key": {
|
|
"end": 1119,
|
|
"name": "yAxis",
|
|
"start": 1114,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1114,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1145,
|
|
"properties": [
|
|
{
|
|
"end": 1129,
|
|
"key": {
|
|
"end": 1125,
|
|
"name": "x",
|
|
"start": 1124,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1124,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1129,
|
|
"raw": "0",
|
|
"start": 1128,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 1136,
|
|
"key": {
|
|
"end": 1132,
|
|
"name": "y",
|
|
"start": 1131,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1131,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1136,
|
|
"raw": "0",
|
|
"start": 1135,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 1143,
|
|
"key": {
|
|
"end": 1139,
|
|
"name": "z",
|
|
"start": 1138,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1138,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1143,
|
|
"raw": "1",
|
|
"start": 1142,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 1122,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1182,
|
|
"key": {
|
|
"end": 1156,
|
|
"name": "zAxis",
|
|
"start": 1151,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1151,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1182,
|
|
"properties": [
|
|
{
|
|
"end": 1166,
|
|
"key": {
|
|
"end": 1162,
|
|
"name": "x",
|
|
"start": 1161,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1161,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1166,
|
|
"raw": "0",
|
|
"start": 1165,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 1173,
|
|
"key": {
|
|
"end": 1169,
|
|
"name": "y",
|
|
"start": 1168,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1168,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1173,
|
|
"raw": "1",
|
|
"start": 1172,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 1180,
|
|
"key": {
|
|
"end": 1176,
|
|
"name": "z",
|
|
"start": 1175,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1175,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1180,
|
|
"raw": "0",
|
|
"start": 1179,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 1159,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 975,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 963,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
"start": 950,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1188,
|
|
"kind": "const",
|
|
"start": 950,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2663,
|
|
"id": {
|
|
"end": 1201,
|
|
"name": "capScrew",
|
|
"start": 1193,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 1242,
|
|
"id": {
|
|
"end": 1236,
|
|
"name": "headLength",
|
|
"start": 1226,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 1242,
|
|
"name": "dia",
|
|
"start": 1239,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1226,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1242,
|
|
"kind": "const",
|
|
"start": 1226,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1286,
|
|
"id": {
|
|
"end": 1269,
|
|
"name": "wallToWallLength",
|
|
"start": 1253,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 1286,
|
|
"left": {
|
|
"end": 1280,
|
|
"name": "hexRatio",
|
|
"start": 1272,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 1286,
|
|
"name": "dia",
|
|
"start": 1283,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1272,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 1253,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1286,
|
|
"kind": "const",
|
|
"start": 1253,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1313,
|
|
"id": {
|
|
"end": 1296,
|
|
"name": "headDia",
|
|
"start": 1289,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 1313,
|
|
"left": {
|
|
"end": 1302,
|
|
"name": "dia",
|
|
"start": 1299,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1313,
|
|
"name": "capRatio",
|
|
"start": 1305,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1299,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 1289,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1313,
|
|
"kind": "const",
|
|
"start": 1289,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1377,
|
|
"id": {
|
|
"end": 1329,
|
|
"name": "hexWallLength",
|
|
"start": 1316,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 1377,
|
|
"left": {
|
|
"end": 1356,
|
|
"left": {
|
|
"end": 1352,
|
|
"left": {
|
|
"end": 1348,
|
|
"name": "wallToWallLength",
|
|
"start": 1332,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1352,
|
|
"raw": "2",
|
|
"start": 1351,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1332,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 1356,
|
|
"raw": "1",
|
|
"start": 1355,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1332,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1375,
|
|
"raw": "30",
|
|
"start": 1373,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 30.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1372,
|
|
"name": "toRadians",
|
|
"start": 1363,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1376,
|
|
"start": 1363,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1362,
|
|
"name": "cos",
|
|
"start": 1359,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1377,
|
|
"start": 1359,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"start": 1332,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 1316,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1377,
|
|
"kind": "const",
|
|
"start": 1316,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1461,
|
|
"id": {
|
|
"end": 1455,
|
|
"name": "capHeadLength",
|
|
"start": 1442,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 1461,
|
|
"name": "dia",
|
|
"start": 1458,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1442,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1461,
|
|
"kind": "const",
|
|
"start": 1442,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1662,
|
|
"id": {
|
|
"end": 1518,
|
|
"name": "screwHeadSketch",
|
|
"start": 1503,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1545,
|
|
"name": "screwPlane",
|
|
"start": 1535,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1534,
|
|
"name": "startSketchOn",
|
|
"start": 1521,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1546,
|
|
"start": 1521,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1577,
|
|
"name": "center",
|
|
"start": 1571,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1582,
|
|
"raw": "0",
|
|
"start": 1581,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1585,
|
|
"raw": "0",
|
|
"start": 1584,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1586,
|
|
"start": 1580,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1603,
|
|
"name": "radius",
|
|
"start": 1597,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1617,
|
|
"left": {
|
|
"end": 1613,
|
|
"name": "headDia",
|
|
"start": 1606,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1617,
|
|
"raw": "2",
|
|
"start": 1616,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1606,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1560,
|
|
"name": "circle",
|
|
"start": 1554,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1626,
|
|
"start": 1554,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 1662,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 1662,
|
|
"start": 1628,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Extrude the screw head sketch",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 1521,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 1503,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1662,
|
|
"kind": "const",
|
|
"start": 1503,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1715,
|
|
"id": {
|
|
"end": 1674,
|
|
"name": "screwHead",
|
|
"start": 1665,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1708,
|
|
"name": "length",
|
|
"start": 1702,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1714,
|
|
"name": "dia",
|
|
"start": 1711,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1684,
|
|
"name": "extrude",
|
|
"start": 1677,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1715,
|
|
"start": 1677,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1700,
|
|
"name": "screwHeadSketch",
|
|
"start": 1685,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 1665,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1715,
|
|
"kind": "const",
|
|
"start": 1665,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2570,
|
|
"id": {
|
|
"end": 1795,
|
|
"name": "hexPatternSketch",
|
|
"start": 1779,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1821,
|
|
"name": "screwHead",
|
|
"start": 1812,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 1828,
|
|
"raw": "'end'",
|
|
"start": 1823,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "end"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1811,
|
|
"name": "startSketchOn",
|
|
"start": 1798,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1829,
|
|
"start": 1798,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 1895,
|
|
"left": {
|
|
"argument": {
|
|
"computed": false,
|
|
"end": 1872,
|
|
"object": {
|
|
"end": 1869,
|
|
"name": "start",
|
|
"start": 1864,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 1871,
|
|
"raw": "0",
|
|
"start": 1870,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1864,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
"end": 1872,
|
|
"operator": "-",
|
|
"start": 1863,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 1895,
|
|
"left": {
|
|
"end": 1891,
|
|
"name": "wallToWallLength",
|
|
"start": 1875,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1895,
|
|
"raw": "2",
|
|
"start": 1894,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1875,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 1863,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"computed": false,
|
|
"end": 1914,
|
|
"object": {
|
|
"end": 1911,
|
|
"name": "start",
|
|
"start": 1906,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 1913,
|
|
"raw": "2",
|
|
"start": 1912,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1906,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"end": 1923,
|
|
"start": 1852,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 1926,
|
|
"start": 1925,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1851,
|
|
"name": "startProfileAt",
|
|
"start": 1837,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1927,
|
|
"start": 1837,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1947,
|
|
"name": "length",
|
|
"start": 1941,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1968,
|
|
"left": {
|
|
"argument": {
|
|
"end": 1964,
|
|
"name": "hexWallLength",
|
|
"start": 1951,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1964,
|
|
"operator": "-",
|
|
"start": 1950,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1968,
|
|
"raw": "2",
|
|
"start": 1967,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1950,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1940,
|
|
"name": "yLine",
|
|
"start": 1935,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1969,
|
|
"start": 1935,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2065,
|
|
"properties": [
|
|
{
|
|
"end": 2023,
|
|
"key": {
|
|
"end": 2004,
|
|
"name": "angle",
|
|
"start": 1999,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1999,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2023,
|
|
"name": "hexStartingAngle",
|
|
"start": 2007,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"end": 2056,
|
|
"key": {
|
|
"end": 2040,
|
|
"name": "length",
|
|
"start": 2034,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2034,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2056,
|
|
"name": "hexWallLength",
|
|
"start": 2043,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 1988,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 2068,
|
|
"start": 2067,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1987,
|
|
"name": "angledLine",
|
|
"start": 1977,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2069,
|
|
"start": 1977,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2182,
|
|
"properties": [
|
|
{
|
|
"end": 2140,
|
|
"key": {
|
|
"end": 2104,
|
|
"name": "angle",
|
|
"start": 2099,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2099,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2140,
|
|
"left": {
|
|
"end": 2123,
|
|
"name": "hexStartingAngle",
|
|
"start": 2107,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2140,
|
|
"name": "hexChangeAngle",
|
|
"start": 2126,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2107,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 2173,
|
|
"key": {
|
|
"end": 2157,
|
|
"name": "length",
|
|
"start": 2151,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2151,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2173,
|
|
"name": "hexWallLength",
|
|
"start": 2160,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 2088,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 2185,
|
|
"start": 2184,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2087,
|
|
"name": "angledLine",
|
|
"start": 2077,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2186,
|
|
"start": 2077,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2305,
|
|
"properties": [
|
|
{
|
|
"end": 2262,
|
|
"key": {
|
|
"end": 2221,
|
|
"name": "angle",
|
|
"start": 2216,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2216,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2262,
|
|
"left": {
|
|
"end": 2240,
|
|
"name": "hexStartingAngle",
|
|
"start": 2224,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2262,
|
|
"left": {
|
|
"end": 2245,
|
|
"raw": "2",
|
|
"start": 2244,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2262,
|
|
"name": "hexChangeAngle",
|
|
"start": 2248,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2244,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2224,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 2296,
|
|
"key": {
|
|
"end": 2280,
|
|
"name": "length",
|
|
"start": 2274,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2274,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2296,
|
|
"name": "hexWallLength",
|
|
"start": 2283,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 2205,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 2308,
|
|
"start": 2307,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2204,
|
|
"name": "angledLine",
|
|
"start": 2194,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2309,
|
|
"start": 2194,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2428,
|
|
"properties": [
|
|
{
|
|
"end": 2385,
|
|
"key": {
|
|
"end": 2344,
|
|
"name": "angle",
|
|
"start": 2339,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2339,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2385,
|
|
"left": {
|
|
"end": 2363,
|
|
"name": "hexStartingAngle",
|
|
"start": 2347,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2385,
|
|
"left": {
|
|
"end": 2368,
|
|
"raw": "3",
|
|
"start": 2367,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2385,
|
|
"name": "hexChangeAngle",
|
|
"start": 2371,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2367,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2347,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 2419,
|
|
"key": {
|
|
"end": 2403,
|
|
"name": "length",
|
|
"start": 2397,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2397,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2419,
|
|
"name": "hexWallLength",
|
|
"start": 2406,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 2328,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 2431,
|
|
"start": 2430,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2327,
|
|
"name": "angledLine",
|
|
"start": 2317,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2432,
|
|
"start": 2317,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2551,
|
|
"properties": [
|
|
{
|
|
"end": 2508,
|
|
"key": {
|
|
"end": 2467,
|
|
"name": "angle",
|
|
"start": 2462,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2462,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2508,
|
|
"left": {
|
|
"end": 2486,
|
|
"name": "hexStartingAngle",
|
|
"start": 2470,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2508,
|
|
"left": {
|
|
"end": 2491,
|
|
"raw": "4",
|
|
"start": 2490,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2508,
|
|
"name": "hexChangeAngle",
|
|
"start": 2494,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2490,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2470,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 2542,
|
|
"key": {
|
|
"end": 2526,
|
|
"name": "length",
|
|
"start": 2520,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2520,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2542,
|
|
"name": "hexWallLength",
|
|
"start": 2529,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 2451,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 2554,
|
|
"start": 2553,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2450,
|
|
"name": "angledLine",
|
|
"start": 2440,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2555,
|
|
"start": 2440,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 2568,
|
|
"name": "close",
|
|
"start": 2563,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2570,
|
|
"start": 2563,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 2570,
|
|
"start": 1798,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 1779,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2570,
|
|
"kind": "const",
|
|
"start": 1779,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2640,
|
|
"id": {
|
|
"end": 2583,
|
|
"name": "hexPattern",
|
|
"start": 2573,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2618,
|
|
"name": "length",
|
|
"start": 2612,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2639,
|
|
"left": {
|
|
"argument": {
|
|
"end": 2632,
|
|
"name": "headLength",
|
|
"start": 2622,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2632,
|
|
"operator": "-",
|
|
"start": 2621,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2639,
|
|
"raw": "0.75",
|
|
"start": 2635,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.75,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2621,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2593,
|
|
"name": "extrude",
|
|
"start": 2586,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2640,
|
|
"start": 2586,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 2610,
|
|
"name": "hexPatternSketch",
|
|
"start": 2594,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 2573,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2640,
|
|
"kind": "const",
|
|
"start": 2573,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 2661,
|
|
"name": "hexPattern",
|
|
"start": 2651,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2661,
|
|
"start": 2644,
|
|
"type": "ReturnStatement",
|
|
"type": "ReturnStatement"
|
|
}
|
|
],
|
|
"end": 2663,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"0": [
|
|
{
|
|
"end": 1250,
|
|
"start": 1242,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "inch",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"3": [
|
|
{
|
|
"end": 1385,
|
|
"start": 1377,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "inch",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 1390,
|
|
"start": 1385,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
},
|
|
{
|
|
"end": 1439,
|
|
"start": 1390,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Length of Cap Head is always equal to diameter",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"4": [
|
|
{
|
|
"end": 1500,
|
|
"start": 1463,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Create the head of the cap screw",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"6": [
|
|
{
|
|
"end": 1776,
|
|
"start": 1717,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Define the sketch of the hex pattern on the screw head",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"8": [
|
|
{
|
|
"end": 2644,
|
|
"start": 2640,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 1222
|
|
},
|
|
"end": 2663,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 1207,
|
|
"name": "start",
|
|
"start": 1202,
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 1215,
|
|
"name": "length",
|
|
"start": 1209,
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 1220,
|
|
"name": "dia",
|
|
"start": 1217,
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 1201,
|
|
"type": "FunctionExpression",
|
|
"type": "FunctionExpression"
|
|
},
|
|
"start": 1193,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2663,
|
|
"kind": "fn",
|
|
"start": 1190,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2861,
|
|
"id": {
|
|
"end": 2677,
|
|
"name": "workingPlane",
|
|
"start": 2665,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 2861,
|
|
"properties": [
|
|
{
|
|
"end": 2859,
|
|
"key": {
|
|
"end": 2689,
|
|
"name": "plane",
|
|
"start": 2684,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2684,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2859,
|
|
"properties": [
|
|
{
|
|
"end": 2744,
|
|
"key": {
|
|
"end": 2704,
|
|
"name": "origin",
|
|
"start": 2698,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2698,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2744,
|
|
"properties": [
|
|
{
|
|
"end": 2714,
|
|
"key": {
|
|
"end": 2710,
|
|
"name": "x",
|
|
"start": 2709,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2709,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2714,
|
|
"raw": "0",
|
|
"start": 2713,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 2735,
|
|
"key": {
|
|
"end": 2717,
|
|
"name": "y",
|
|
"start": 2716,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2716,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2735,
|
|
"name": "flangeThickness",
|
|
"start": 2720,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"end": 2742,
|
|
"key": {
|
|
"end": 2738,
|
|
"name": "z",
|
|
"start": 2737,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2737,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2742,
|
|
"raw": "0",
|
|
"start": 2741,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 2707,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 2781,
|
|
"key": {
|
|
"end": 2755,
|
|
"name": "xAxis",
|
|
"start": 2750,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2750,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2781,
|
|
"properties": [
|
|
{
|
|
"end": 2765,
|
|
"key": {
|
|
"end": 2761,
|
|
"name": "x",
|
|
"start": 2760,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2760,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2765,
|
|
"raw": "0",
|
|
"start": 2764,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 2772,
|
|
"key": {
|
|
"end": 2768,
|
|
"name": "y",
|
|
"start": 2767,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2767,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2772,
|
|
"raw": "0",
|
|
"start": 2771,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 2779,
|
|
"key": {
|
|
"end": 2775,
|
|
"name": "z",
|
|
"start": 2774,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2774,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2779,
|
|
"raw": "1",
|
|
"start": 2778,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 2758,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 2818,
|
|
"key": {
|
|
"end": 2792,
|
|
"name": "yAxis",
|
|
"start": 2787,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2787,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2818,
|
|
"properties": [
|
|
{
|
|
"end": 2802,
|
|
"key": {
|
|
"end": 2798,
|
|
"name": "x",
|
|
"start": 2797,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2797,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2802,
|
|
"raw": "1",
|
|
"start": 2801,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 2809,
|
|
"key": {
|
|
"end": 2805,
|
|
"name": "y",
|
|
"start": 2804,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2804,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2809,
|
|
"raw": "0",
|
|
"start": 2808,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 2816,
|
|
"key": {
|
|
"end": 2812,
|
|
"name": "z",
|
|
"start": 2811,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2811,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2816,
|
|
"raw": "0",
|
|
"start": 2815,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 2795,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 2855,
|
|
"key": {
|
|
"end": 2829,
|
|
"name": "zAxis",
|
|
"start": 2824,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2824,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2855,
|
|
"properties": [
|
|
{
|
|
"end": 2839,
|
|
"key": {
|
|
"end": 2835,
|
|
"name": "x",
|
|
"start": 2834,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2834,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2839,
|
|
"raw": "0",
|
|
"start": 2838,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 2846,
|
|
"key": {
|
|
"end": 2842,
|
|
"name": "y",
|
|
"start": 2841,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2841,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2846,
|
|
"raw": "1",
|
|
"start": 2845,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 2853,
|
|
"key": {
|
|
"end": 2849,
|
|
"name": "z",
|
|
"start": 2848,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2848,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 2853,
|
|
"raw": "0",
|
|
"start": 2852,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 2832,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 2692,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 2680,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
"start": 2665,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2861,
|
|
"kind": "const",
|
|
"start": 2665,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 3222,
|
|
"id": {
|
|
"end": 2891,
|
|
"name": "washer",
|
|
"start": 2885,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 3198,
|
|
"id": {
|
|
"end": 2947,
|
|
"name": "washerSketch",
|
|
"start": 2935,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2969,
|
|
"name": "plane",
|
|
"start": 2964,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2963,
|
|
"name": "startSketchOn",
|
|
"start": 2950,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2970,
|
|
"start": 2950,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3001,
|
|
"name": "center",
|
|
"start": 2995,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"computed": false,
|
|
"end": 3013,
|
|
"object": {
|
|
"end": 3010,
|
|
"name": "start",
|
|
"start": 3005,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 3012,
|
|
"raw": "0",
|
|
"start": 3011,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3005,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
{
|
|
"computed": false,
|
|
"end": 3023,
|
|
"object": {
|
|
"end": 3020,
|
|
"name": "start",
|
|
"start": 3015,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 3022,
|
|
"raw": "1",
|
|
"start": 3021,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3015,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"end": 3024,
|
|
"start": 3004,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3041,
|
|
"name": "radius",
|
|
"start": 3035,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3056,
|
|
"left": {
|
|
"end": 3052,
|
|
"name": "outerDia",
|
|
"start": 3044,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3056,
|
|
"raw": "2",
|
|
"start": 3055,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3044,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2984,
|
|
"name": "circle",
|
|
"start": 2978,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3065,
|
|
"start": 2978,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3101,
|
|
"name": "center",
|
|
"start": 3095,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"computed": false,
|
|
"end": 3113,
|
|
"object": {
|
|
"end": 3110,
|
|
"name": "start",
|
|
"start": 3105,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 3112,
|
|
"raw": "0",
|
|
"start": 3111,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3105,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
{
|
|
"computed": false,
|
|
"end": 3123,
|
|
"object": {
|
|
"end": 3120,
|
|
"name": "start",
|
|
"start": 3115,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 3122,
|
|
"raw": "1",
|
|
"start": 3121,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3115,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"end": 3124,
|
|
"start": 3104,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3141,
|
|
"name": "radius",
|
|
"start": 3135,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3156,
|
|
"left": {
|
|
"end": 3152,
|
|
"name": "innerDia",
|
|
"start": 3144,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 3156,
|
|
"raw": "2",
|
|
"start": 3155,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3144,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3084,
|
|
"name": "circle",
|
|
"start": 3078,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3165,
|
|
"start": 3078,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 3168,
|
|
"start": 3167,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3077,
|
|
"name": "hole",
|
|
"start": 3073,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3169,
|
|
"start": 3073,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3191,
|
|
"name": "length",
|
|
"start": 3185,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3197,
|
|
"name": "thk",
|
|
"start": 3194,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3184,
|
|
"name": "extrude",
|
|
"start": 3177,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3198,
|
|
"start": 3177,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 3198,
|
|
"start": 2950,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 2935,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 3198,
|
|
"kind": "const",
|
|
"start": 2935,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 3220,
|
|
"name": "washerSketch",
|
|
"start": 3208,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3220,
|
|
"start": 3201,
|
|
"type": "ReturnStatement",
|
|
"type": "ReturnStatement"
|
|
}
|
|
],
|
|
"end": 3222,
|
|
"start": 2931
|
|
},
|
|
"end": 3222,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 2897,
|
|
"name": "plane",
|
|
"start": 2892,
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 2904,
|
|
"name": "start",
|
|
"start": 2899,
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 2909,
|
|
"name": "thk",
|
|
"start": 2906,
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 2919,
|
|
"name": "innerDia",
|
|
"start": 2911,
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 2929,
|
|
"name": "outerDia",
|
|
"start": 2921,
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 2891,
|
|
"type": "FunctionExpression",
|
|
"type": "FunctionExpression"
|
|
},
|
|
"start": 2885,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 3222,
|
|
"kind": "fn",
|
|
"start": 2882,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 4282,
|
|
"id": {
|
|
"end": 3253,
|
|
"name": "hexNut",
|
|
"start": 3247,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 4258,
|
|
"id": {
|
|
"end": 3292,
|
|
"name": "hexNutSketch",
|
|
"start": 3280,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3620,
|
|
"properties": [
|
|
{
|
|
"end": 3611,
|
|
"key": {
|
|
"end": 3325,
|
|
"name": "plane",
|
|
"start": 3320,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3320,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3611,
|
|
"properties": [
|
|
{
|
|
"end": 3468,
|
|
"key": {
|
|
"end": 3347,
|
|
"name": "origin",
|
|
"start": 3341,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3341,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3468,
|
|
"properties": [
|
|
{
|
|
"end": 3377,
|
|
"key": {
|
|
"end": 3366,
|
|
"name": "x",
|
|
"start": 3365,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3365,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"computed": false,
|
|
"end": 3377,
|
|
"object": {
|
|
"end": 3374,
|
|
"name": "start",
|
|
"start": 3369,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 3376,
|
|
"raw": "0",
|
|
"start": 3375,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3369,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 3428,
|
|
"key": {
|
|
"end": 3393,
|
|
"name": "y",
|
|
"start": 3392,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3392,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3428,
|
|
"left": {
|
|
"argument": {
|
|
"end": 3410,
|
|
"name": "wallThickness",
|
|
"start": 3397,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3410,
|
|
"operator": "-",
|
|
"start": 3396,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3428,
|
|
"name": "washerThickness",
|
|
"start": 3413,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3396,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 3455,
|
|
"key": {
|
|
"end": 3444,
|
|
"name": "z",
|
|
"start": 3443,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3443,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"computed": false,
|
|
"end": 3455,
|
|
"object": {
|
|
"end": 3452,
|
|
"name": "start",
|
|
"start": 3447,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 3454,
|
|
"raw": "2",
|
|
"start": 3453,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3447,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3350,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 3512,
|
|
"key": {
|
|
"end": 3486,
|
|
"name": "xAxis",
|
|
"start": 3481,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3481,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3512,
|
|
"properties": [
|
|
{
|
|
"end": 3496,
|
|
"key": {
|
|
"end": 3492,
|
|
"name": "x",
|
|
"start": 3491,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3491,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3496,
|
|
"raw": "1",
|
|
"start": 3495,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3503,
|
|
"key": {
|
|
"end": 3499,
|
|
"name": "y",
|
|
"start": 3498,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3498,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3503,
|
|
"raw": "0",
|
|
"start": 3502,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3510,
|
|
"key": {
|
|
"end": 3506,
|
|
"name": "z",
|
|
"start": 3505,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3505,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3510,
|
|
"raw": "0",
|
|
"start": 3509,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 3489,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 3556,
|
|
"key": {
|
|
"end": 3530,
|
|
"name": "yAxis",
|
|
"start": 3525,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3525,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3556,
|
|
"properties": [
|
|
{
|
|
"end": 3540,
|
|
"key": {
|
|
"end": 3536,
|
|
"name": "x",
|
|
"start": 3535,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3535,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3540,
|
|
"raw": "0",
|
|
"start": 3539,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3547,
|
|
"key": {
|
|
"end": 3543,
|
|
"name": "y",
|
|
"start": 3542,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3542,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3547,
|
|
"raw": "0",
|
|
"start": 3546,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3554,
|
|
"key": {
|
|
"end": 3550,
|
|
"name": "z",
|
|
"start": 3549,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3549,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3554,
|
|
"raw": "1",
|
|
"start": 3553,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 3533,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 3600,
|
|
"key": {
|
|
"end": 3574,
|
|
"name": "zAxis",
|
|
"start": 3569,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3569,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3600,
|
|
"properties": [
|
|
{
|
|
"end": 3584,
|
|
"key": {
|
|
"end": 3580,
|
|
"name": "x",
|
|
"start": 3579,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3579,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3584,
|
|
"raw": "0",
|
|
"start": 3583,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3591,
|
|
"key": {
|
|
"end": 3587,
|
|
"name": "y",
|
|
"start": 3586,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3586,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3591,
|
|
"raw": "1",
|
|
"start": 3590,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3598,
|
|
"key": {
|
|
"end": 3594,
|
|
"name": "z",
|
|
"start": 3593,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3593,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3598,
|
|
"raw": "0",
|
|
"start": 3597,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 3577,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3328,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3309,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3308,
|
|
"name": "startSketchOn",
|
|
"start": 3295,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3621,
|
|
"start": 3295,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 3671,
|
|
"left": {
|
|
"end": 3646,
|
|
"raw": "0",
|
|
"start": 3645,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3671,
|
|
"left": {
|
|
"end": 3657,
|
|
"name": "innerDia",
|
|
"start": 3649,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3671,
|
|
"name": "hexNutScale",
|
|
"start": 3660,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3649,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3645,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 3674,
|
|
"raw": "0",
|
|
"start": 3673,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 3675,
|
|
"start": 3644,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 3678,
|
|
"start": 3677,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3643,
|
|
"name": "startProfileAt",
|
|
"start": 3629,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3679,
|
|
"start": 3629,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3771,
|
|
"properties": [
|
|
{
|
|
"end": 3720,
|
|
"key": {
|
|
"end": 3714,
|
|
"name": "angle",
|
|
"start": 3709,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3709,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3720,
|
|
"raw": "240",
|
|
"start": 3717,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 240.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3762,
|
|
"key": {
|
|
"end": 3737,
|
|
"name": "length",
|
|
"start": 3731,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3731,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3762,
|
|
"left": {
|
|
"end": 3748,
|
|
"name": "innerDia",
|
|
"start": 3740,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3762,
|
|
"name": "hexNutScale",
|
|
"start": 3751,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3740,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3698,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 3774,
|
|
"start": 3773,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3697,
|
|
"name": "angledLine",
|
|
"start": 3687,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3775,
|
|
"start": 3687,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3867,
|
|
"properties": [
|
|
{
|
|
"end": 3816,
|
|
"key": {
|
|
"end": 3810,
|
|
"name": "angle",
|
|
"start": 3805,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3805,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3816,
|
|
"raw": "180",
|
|
"start": 3813,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 180.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3858,
|
|
"key": {
|
|
"end": 3833,
|
|
"name": "length",
|
|
"start": 3827,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3827,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3858,
|
|
"left": {
|
|
"end": 3844,
|
|
"name": "innerDia",
|
|
"start": 3836,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3858,
|
|
"name": "hexNutScale",
|
|
"start": 3847,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3836,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3794,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 3870,
|
|
"start": 3869,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3793,
|
|
"name": "angledLine",
|
|
"start": 3783,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3871,
|
|
"start": 3783,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3963,
|
|
"properties": [
|
|
{
|
|
"end": 3912,
|
|
"key": {
|
|
"end": 3906,
|
|
"name": "angle",
|
|
"start": 3901,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3901,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3912,
|
|
"raw": "120",
|
|
"start": 3909,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 120.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 3954,
|
|
"key": {
|
|
"end": 3929,
|
|
"name": "length",
|
|
"start": 3923,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3923,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 3954,
|
|
"left": {
|
|
"end": 3940,
|
|
"name": "innerDia",
|
|
"start": 3932,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3954,
|
|
"name": "hexNutScale",
|
|
"start": 3943,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3932,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3890,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 3966,
|
|
"start": 3965,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3889,
|
|
"name": "angledLine",
|
|
"start": 3879,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3967,
|
|
"start": 3879,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4058,
|
|
"properties": [
|
|
{
|
|
"end": 4007,
|
|
"key": {
|
|
"end": 4002,
|
|
"name": "angle",
|
|
"start": 3997,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3997,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4007,
|
|
"raw": "60",
|
|
"start": 4005,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 60.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 4049,
|
|
"key": {
|
|
"end": 4024,
|
|
"name": "length",
|
|
"start": 4018,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4018,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4049,
|
|
"left": {
|
|
"end": 4035,
|
|
"name": "innerDia",
|
|
"start": 4027,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4049,
|
|
"name": "hexNutScale",
|
|
"start": 4038,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4027,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 3986,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 4061,
|
|
"start": 4060,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3985,
|
|
"name": "angledLine",
|
|
"start": 3975,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4062,
|
|
"start": 3975,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4119,
|
|
"properties": [
|
|
{
|
|
"end": 4092,
|
|
"key": {
|
|
"end": 4088,
|
|
"name": "angle",
|
|
"start": 4083,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4083,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4092,
|
|
"raw": "0",
|
|
"start": 4091,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 4117,
|
|
"key": {
|
|
"end": 4100,
|
|
"name": "length",
|
|
"start": 4094,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4094,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4117,
|
|
"left": {
|
|
"end": 4111,
|
|
"name": "innerDia",
|
|
"start": 4103,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4117,
|
|
"raw": ".90",
|
|
"start": 4114,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.9,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4103,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 4081,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 4122,
|
|
"start": 4121,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4080,
|
|
"name": "angledLine",
|
|
"start": 4070,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4123,
|
|
"start": 4070,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 4136,
|
|
"name": "close",
|
|
"start": 4131,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4138,
|
|
"start": 4131,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4174,
|
|
"name": "center",
|
|
"start": 4168,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4179,
|
|
"raw": "0",
|
|
"start": 4178,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 4182,
|
|
"raw": "0",
|
|
"start": 4181,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 4183,
|
|
"start": 4177,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4200,
|
|
"name": "radius",
|
|
"start": 4194,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4215,
|
|
"left": {
|
|
"end": 4211,
|
|
"name": "innerDia",
|
|
"start": 4203,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 4215,
|
|
"raw": "2",
|
|
"start": 4214,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4203,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4157,
|
|
"name": "circle",
|
|
"start": 4151,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4224,
|
|
"start": 4151,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 4227,
|
|
"start": 4226,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4150,
|
|
"name": "hole",
|
|
"start": 4146,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4228,
|
|
"start": 4146,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4250,
|
|
"name": "length",
|
|
"start": 4244,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 4257,
|
|
"name": "thk",
|
|
"start": 4254,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4257,
|
|
"operator": "-",
|
|
"start": 4253,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4243,
|
|
"name": "extrude",
|
|
"start": 4236,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4258,
|
|
"start": 4236,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 4258,
|
|
"start": 3295,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 3280,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4258,
|
|
"kind": "const",
|
|
"start": 3280,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 4280,
|
|
"name": "hexNutSketch",
|
|
"start": 4268,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4280,
|
|
"start": 4261,
|
|
"type": "ReturnStatement",
|
|
"type": "ReturnStatement"
|
|
}
|
|
],
|
|
"end": 4282,
|
|
"start": 3276
|
|
},
|
|
"end": 4282,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 3259,
|
|
"name": "start",
|
|
"start": 3254,
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 3264,
|
|
"name": "thk",
|
|
"start": 3261,
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 3274,
|
|
"name": "innerDia",
|
|
"start": 3266,
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 3253,
|
|
"type": "FunctionExpression",
|
|
"type": "FunctionExpression"
|
|
},
|
|
"start": 3247,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4282,
|
|
"kind": "fn",
|
|
"start": 3244,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 4619,
|
|
"id": {
|
|
"end": 4329,
|
|
"name": "mountingHolePattern",
|
|
"start": 4310,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4350,
|
|
"raw": "'XZ'",
|
|
"start": 4346,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XZ"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4345,
|
|
"name": "startSketchOn",
|
|
"start": 4332,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4351,
|
|
"start": 4332,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4378,
|
|
"name": "center",
|
|
"start": 4372,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"computed": false,
|
|
"end": 4395,
|
|
"object": {
|
|
"end": 4392,
|
|
"name": "screwStart",
|
|
"start": 4382,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 4394,
|
|
"raw": "0",
|
|
"start": 4393,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4382,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
{
|
|
"computed": false,
|
|
"end": 4410,
|
|
"object": {
|
|
"end": 4407,
|
|
"name": "screwStart",
|
|
"start": 4397,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 4409,
|
|
"raw": "2",
|
|
"start": 4408,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4397,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"end": 4411,
|
|
"start": 4381,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4426,
|
|
"name": "radius",
|
|
"start": 4420,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4447,
|
|
"left": {
|
|
"end": 4441,
|
|
"left": {
|
|
"end": 4437,
|
|
"name": "screwDia",
|
|
"start": 4429,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 4441,
|
|
"raw": "2",
|
|
"start": 4440,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4429,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4447,
|
|
"name": "tol",
|
|
"start": 4444,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4429,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4363,
|
|
"name": "circle",
|
|
"start": 4357,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4454,
|
|
"start": 4357,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4496,
|
|
"name": "arcDegrees",
|
|
"start": 4486,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4502,
|
|
"raw": "360",
|
|
"start": 4499,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4517,
|
|
"name": "center",
|
|
"start": 4511,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4522,
|
|
"raw": "0",
|
|
"start": 4521,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 4525,
|
|
"raw": "0",
|
|
"start": 4524,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 4526,
|
|
"start": 4520,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4544,
|
|
"name": "instances",
|
|
"start": 4535,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4548,
|
|
"raw": "7",
|
|
"start": 4547,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 7.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4573,
|
|
"name": "rotateDuplicates",
|
|
"start": 4557,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4580,
|
|
"raw": "true",
|
|
"start": 4576,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4477,
|
|
"name": "patternCircular2d",
|
|
"start": 4460,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4587,
|
|
"start": 4460,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 4619,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"2": [
|
|
{
|
|
"end": 4619,
|
|
"start": 4587,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Sketch and revolve the pipe",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 4332,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 4310,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4619,
|
|
"kind": "const",
|
|
"start": 4310,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5231,
|
|
"id": {
|
|
"end": 4624,
|
|
"name": "pipe",
|
|
"start": 4620,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4645,
|
|
"raw": "'XY'",
|
|
"start": 4641,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XY"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4640,
|
|
"name": "startSketchOn",
|
|
"start": 4627,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4646,
|
|
"start": 4627,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 4691,
|
|
"left": {
|
|
"end": 4685,
|
|
"left": {
|
|
"end": 4681,
|
|
"name": "flangePipeDia",
|
|
"start": 4668,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 4685,
|
|
"raw": "2",
|
|
"start": 4684,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4668,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4691,
|
|
"name": "tol",
|
|
"start": 4688,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4668,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 4694,
|
|
"raw": "0",
|
|
"start": 4693,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 4695,
|
|
"start": 4667,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 4698,
|
|
"start": 4697,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4666,
|
|
"name": "startProfileAt",
|
|
"start": 4652,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4699,
|
|
"start": 4652,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4713,
|
|
"name": "end",
|
|
"start": 4710,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4718,
|
|
"raw": "0",
|
|
"start": 4717,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 4722,
|
|
"raw": "2",
|
|
"start": 4721,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 4722,
|
|
"operator": "-",
|
|
"start": 4720,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
],
|
|
"end": 4723,
|
|
"start": 4716,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4709,
|
|
"name": "line",
|
|
"start": 4705,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4724,
|
|
"start": 4705,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4769,
|
|
"properties": [
|
|
{
|
|
"end": 4754,
|
|
"key": {
|
|
"end": 4748,
|
|
"name": "angle",
|
|
"start": 4743,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4743,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"argument": {
|
|
"end": 4754,
|
|
"raw": "60",
|
|
"start": 4752,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 60.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 4754,
|
|
"operator": "-",
|
|
"start": 4751,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 4767,
|
|
"key": {
|
|
"end": 4762,
|
|
"name": "length",
|
|
"start": 4756,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4756,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4767,
|
|
"raw": ".5",
|
|
"start": 4765,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.5,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 4741,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 4772,
|
|
"start": 4771,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4740,
|
|
"name": "angledLine",
|
|
"start": 4730,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4773,
|
|
"start": 4730,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4787,
|
|
"name": "end",
|
|
"start": 4784,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4792,
|
|
"raw": "0",
|
|
"start": 4791,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 4796,
|
|
"raw": "1",
|
|
"start": 4795,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 4796,
|
|
"operator": "-",
|
|
"start": 4794,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
],
|
|
"end": 4797,
|
|
"start": 4790,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4783,
|
|
"name": "line",
|
|
"start": 4779,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4798,
|
|
"start": 4779,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4812,
|
|
"name": "end",
|
|
"start": 4809,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"argument": {
|
|
"end": 4832,
|
|
"name": "flangeThickness",
|
|
"start": 4817,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4832,
|
|
"operator": "-",
|
|
"start": 4816,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
{
|
|
"end": 4835,
|
|
"raw": "0",
|
|
"start": 4834,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 4836,
|
|
"start": 4815,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4808,
|
|
"name": "line",
|
|
"start": 4804,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4837,
|
|
"start": 4804,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4851,
|
|
"name": "end",
|
|
"start": 4848,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4856,
|
|
"raw": "0",
|
|
"start": 4855,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 4859,
|
|
"raw": "1",
|
|
"start": 4858,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 4860,
|
|
"start": 4854,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4847,
|
|
"name": "line",
|
|
"start": 4843,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4861,
|
|
"start": 4843,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4907,
|
|
"properties": [
|
|
{
|
|
"end": 4892,
|
|
"key": {
|
|
"end": 4885,
|
|
"name": "angle",
|
|
"start": 4880,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4880,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"argument": {
|
|
"end": 4892,
|
|
"raw": "240",
|
|
"start": 4889,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 240.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 4892,
|
|
"operator": "-",
|
|
"start": 4888,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 4905,
|
|
"key": {
|
|
"end": 4900,
|
|
"name": "length",
|
|
"start": 4894,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4894,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4905,
|
|
"raw": ".5",
|
|
"start": 4903,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.5,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 4878,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 4910,
|
|
"start": 4909,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4877,
|
|
"name": "angledLine",
|
|
"start": 4867,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4911,
|
|
"start": 4867,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4925,
|
|
"name": "end",
|
|
"start": 4922,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4930,
|
|
"raw": "0",
|
|
"start": 4929,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 4933,
|
|
"raw": "5",
|
|
"start": 4932,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 5.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 4934,
|
|
"start": 4928,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4921,
|
|
"name": "line",
|
|
"start": 4917,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4935,
|
|
"start": 4917,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4979,
|
|
"properties": [
|
|
{
|
|
"end": 4964,
|
|
"key": {
|
|
"end": 4959,
|
|
"name": "angle",
|
|
"start": 4954,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4954,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4964,
|
|
"raw": "60",
|
|
"start": 4962,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 60.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 4977,
|
|
"key": {
|
|
"end": 4972,
|
|
"name": "length",
|
|
"start": 4966,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4966,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 4977,
|
|
"raw": ".5",
|
|
"start": 4975,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.5,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 4952,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 4982,
|
|
"start": 4981,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4951,
|
|
"name": "angledLine",
|
|
"start": 4941,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4983,
|
|
"start": 4941,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4997,
|
|
"name": "end",
|
|
"start": 4994,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5002,
|
|
"raw": "0",
|
|
"start": 5001,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 5005,
|
|
"raw": "1",
|
|
"start": 5004,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 5006,
|
|
"start": 5000,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4993,
|
|
"name": "line",
|
|
"start": 4989,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5007,
|
|
"start": 4989,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5021,
|
|
"name": "end",
|
|
"start": 5018,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5040,
|
|
"name": "flangeThickness",
|
|
"start": 5025,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 5043,
|
|
"raw": "0",
|
|
"start": 5042,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 5044,
|
|
"start": 5024,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5017,
|
|
"name": "line",
|
|
"start": 5013,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5045,
|
|
"start": 5013,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5059,
|
|
"name": "end",
|
|
"start": 5056,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5064,
|
|
"raw": "0",
|
|
"start": 5063,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 5068,
|
|
"raw": "1",
|
|
"start": 5067,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 5068,
|
|
"operator": "-",
|
|
"start": 5066,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
],
|
|
"end": 5069,
|
|
"start": 5062,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5055,
|
|
"name": "line",
|
|
"start": 5051,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5070,
|
|
"start": 5051,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5115,
|
|
"properties": [
|
|
{
|
|
"end": 5100,
|
|
"key": {
|
|
"end": 5094,
|
|
"name": "angle",
|
|
"start": 5089,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5089,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 5100,
|
|
"raw": "240",
|
|
"start": 5097,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 240.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 5113,
|
|
"key": {
|
|
"end": 5108,
|
|
"name": "length",
|
|
"start": 5102,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5102,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 5113,
|
|
"raw": ".5",
|
|
"start": 5111,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.5,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 5087,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 5118,
|
|
"start": 5117,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5086,
|
|
"name": "angledLine",
|
|
"start": 5076,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5119,
|
|
"start": 5076,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 5130,
|
|
"name": "close",
|
|
"start": 5125,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5132,
|
|
"start": 5125,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5160,
|
|
"properties": [
|
|
{
|
|
"end": 5158,
|
|
"key": {
|
|
"end": 5152,
|
|
"name": "axis",
|
|
"start": 5148,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5148,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 5158,
|
|
"raw": "'y'",
|
|
"start": 5155,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "y"
|
|
}
|
|
}
|
|
],
|
|
"start": 5146,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 5163,
|
|
"start": 5162,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5145,
|
|
"name": "revolve",
|
|
"start": 5138,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5164,
|
|
"start": 5138,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5186,
|
|
"name": "color",
|
|
"start": 5181,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5198,
|
|
"raw": "\"#7b79d7\"",
|
|
"start": 5189,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "#7b79d7"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5180,
|
|
"name": "appearance",
|
|
"start": 5170,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5199,
|
|
"start": 5170,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 5231,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"16": [
|
|
{
|
|
"end": 5231,
|
|
"start": 5199,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Sketch and extrude the wall",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 4627,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 4620,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5231,
|
|
"kind": "const",
|
|
"start": 4620,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5604,
|
|
"id": {
|
|
"end": 5236,
|
|
"name": "wall",
|
|
"start": 5232,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5257,
|
|
"raw": "'XZ'",
|
|
"start": 5253,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XZ"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5252,
|
|
"name": "startSketchOn",
|
|
"start": 5239,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5258,
|
|
"start": 5239,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"argument": {
|
|
"end": 5282,
|
|
"raw": "4",
|
|
"start": 5281,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 5282,
|
|
"operator": "-",
|
|
"start": 5280,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 5286,
|
|
"raw": "4",
|
|
"start": 5285,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 5286,
|
|
"operator": "-",
|
|
"start": 5284,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
],
|
|
"end": 5287,
|
|
"start": 5279,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 5290,
|
|
"start": 5289,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5278,
|
|
"name": "startProfileAt",
|
|
"start": 5264,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5291,
|
|
"start": 5264,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5305,
|
|
"name": "end",
|
|
"start": 5302,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5310,
|
|
"raw": "0",
|
|
"start": 5309,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 5313,
|
|
"raw": "8",
|
|
"start": 5312,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 8.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 5314,
|
|
"start": 5308,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5301,
|
|
"name": "line",
|
|
"start": 5297,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5315,
|
|
"start": 5297,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5329,
|
|
"name": "end",
|
|
"start": 5326,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5334,
|
|
"raw": "8",
|
|
"start": 5333,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 8.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 5337,
|
|
"raw": "0",
|
|
"start": 5336,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 5338,
|
|
"start": 5332,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5325,
|
|
"name": "line",
|
|
"start": 5321,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5339,
|
|
"start": 5321,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5353,
|
|
"name": "end",
|
|
"start": 5350,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5358,
|
|
"raw": "0",
|
|
"start": 5357,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 5362,
|
|
"raw": "8",
|
|
"start": 5361,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 8.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 5362,
|
|
"operator": "-",
|
|
"start": 5360,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
],
|
|
"end": 5363,
|
|
"start": 5356,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5349,
|
|
"name": "line",
|
|
"start": 5345,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5364,
|
|
"start": 5345,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 5375,
|
|
"name": "close",
|
|
"start": 5370,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5377,
|
|
"start": 5370,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5407,
|
|
"name": "mountingHolePattern",
|
|
"start": 5388,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 5410,
|
|
"start": 5409,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5387,
|
|
"name": "hole",
|
|
"start": 5383,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5411,
|
|
"start": 5383,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5443,
|
|
"name": "center",
|
|
"start": 5437,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5448,
|
|
"raw": "0",
|
|
"start": 5447,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 5451,
|
|
"raw": "0",
|
|
"start": 5450,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 5452,
|
|
"start": 5446,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5467,
|
|
"name": "radius",
|
|
"start": 5461,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5487,
|
|
"left": {
|
|
"end": 5483,
|
|
"name": "flangePipeDia",
|
|
"start": 5470,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 5487,
|
|
"raw": "2",
|
|
"start": 5486,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5470,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5428,
|
|
"name": "circle",
|
|
"start": 5422,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5494,
|
|
"start": 5422,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 5497,
|
|
"start": 5496,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5421,
|
|
"name": "hole",
|
|
"start": 5417,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5498,
|
|
"start": 5417,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5518,
|
|
"name": "length",
|
|
"start": 5512,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5534,
|
|
"name": "wallThickness",
|
|
"start": 5521,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5511,
|
|
"name": "extrude",
|
|
"start": 5504,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5535,
|
|
"start": 5504,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5557,
|
|
"name": "color",
|
|
"start": 5552,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5569,
|
|
"raw": "\"#c7aa8f\"",
|
|
"start": 5560,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "#c7aa8f"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5551,
|
|
"name": "appearance",
|
|
"start": 5541,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5570,
|
|
"start": 5541,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 5604,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"9": [
|
|
{
|
|
"end": 5604,
|
|
"start": 5570,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Sketch and revolve the flange",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 5239,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 5232,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5604,
|
|
"kind": "const",
|
|
"start": 5232,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5959,
|
|
"id": {
|
|
"end": 5615,
|
|
"name": "flangeBase",
|
|
"start": 5605,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5636,
|
|
"raw": "'XZ'",
|
|
"start": 5632,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XZ"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5631,
|
|
"name": "startSketchOn",
|
|
"start": 5618,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5637,
|
|
"start": 5618,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5664,
|
|
"name": "center",
|
|
"start": 5658,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5669,
|
|
"raw": "0",
|
|
"start": 5668,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 5672,
|
|
"raw": "0",
|
|
"start": 5671,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 5673,
|
|
"start": 5667,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5688,
|
|
"name": "radius",
|
|
"start": 5682,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5704,
|
|
"name": "flangeBaseDia",
|
|
"start": 5691,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5649,
|
|
"name": "circle",
|
|
"start": 5643,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5711,
|
|
"start": 5643,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5741,
|
|
"name": "mountingHolePattern",
|
|
"start": 5722,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 5744,
|
|
"start": 5743,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5721,
|
|
"name": "hole",
|
|
"start": 5717,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5745,
|
|
"start": 5717,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5777,
|
|
"name": "center",
|
|
"start": 5771,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5782,
|
|
"raw": "0",
|
|
"start": 5781,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 5785,
|
|
"raw": "0",
|
|
"start": 5784,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 5786,
|
|
"start": 5780,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5801,
|
|
"name": "radius",
|
|
"start": 5795,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5821,
|
|
"left": {
|
|
"end": 5817,
|
|
"name": "flangePipeDia",
|
|
"start": 5804,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 5821,
|
|
"raw": "2",
|
|
"start": 5820,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5804,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5762,
|
|
"name": "circle",
|
|
"start": 5756,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5828,
|
|
"start": 5756,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 5831,
|
|
"start": 5830,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5755,
|
|
"name": "hole",
|
|
"start": 5751,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5832,
|
|
"start": 5751,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5852,
|
|
"name": "length",
|
|
"start": 5846,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 5871,
|
|
"name": "flangeThickness",
|
|
"start": 5856,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5871,
|
|
"operator": "-",
|
|
"start": 5855,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5845,
|
|
"name": "extrude",
|
|
"start": 5838,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5872,
|
|
"start": 5838,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5894,
|
|
"name": "color",
|
|
"start": 5889,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5906,
|
|
"raw": "\"#9b9797\"",
|
|
"start": 5897,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "#9b9797"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5888,
|
|
"name": "appearance",
|
|
"start": 5878,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5907,
|
|
"start": 5878,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 5959,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"5": [
|
|
{
|
|
"end": 5959,
|
|
"start": 5907,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Create the washer and pattern around the flange",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 5618,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 5605,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5959,
|
|
"kind": "const",
|
|
"start": 5605,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"end": 6294,
|
|
"expression": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5979,
|
|
"name": "workingPlane",
|
|
"start": 5967,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"computed": false,
|
|
"end": 5995,
|
|
"object": {
|
|
"end": 5992,
|
|
"name": "screwStart",
|
|
"start": 5982,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 5994,
|
|
"raw": "2",
|
|
"start": 5993,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5982,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
{
|
|
"computed": false,
|
|
"end": 6010,
|
|
"object": {
|
|
"end": 6007,
|
|
"name": "screwStart",
|
|
"start": 5997,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 6009,
|
|
"raw": "0",
|
|
"start": 6008,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5997,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"end": 6011,
|
|
"start": 5981,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 6019,
|
|
"raw": "0.0625",
|
|
"start": 6013,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0625,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6035,
|
|
"left": {
|
|
"end": 6029,
|
|
"name": "screwDia",
|
|
"start": 6021,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 6035,
|
|
"name": "tol",
|
|
"start": 6032,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6021,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 6042,
|
|
"raw": "0.625",
|
|
"start": 6037,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.625,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5966,
|
|
"name": "washer",
|
|
"start": 5960,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6043,
|
|
"start": 5960,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6079,
|
|
"name": "axis",
|
|
"start": 6075,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6084,
|
|
"raw": "0",
|
|
"start": 6083,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6087,
|
|
"raw": "1",
|
|
"start": 6086,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6090,
|
|
"raw": "0",
|
|
"start": 6089,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6091,
|
|
"start": 6082,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6106,
|
|
"name": "center",
|
|
"start": 6100,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6111,
|
|
"raw": "0",
|
|
"start": 6110,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6114,
|
|
"raw": "0",
|
|
"start": 6113,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6117,
|
|
"raw": "0",
|
|
"start": 6116,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6118,
|
|
"start": 6109,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6136,
|
|
"name": "instances",
|
|
"start": 6127,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6140,
|
|
"raw": "7",
|
|
"start": 6139,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 7.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6159,
|
|
"name": "arcDegrees",
|
|
"start": 6149,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6165,
|
|
"raw": "360",
|
|
"start": 6162,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6190,
|
|
"name": "rotateDuplicates",
|
|
"start": 6174,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6197,
|
|
"raw": "true",
|
|
"start": 6193,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6066,
|
|
"name": "patternCircular3d",
|
|
"start": 6049,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6204,
|
|
"start": 6049,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6226,
|
|
"name": "color",
|
|
"start": 6221,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6238,
|
|
"raw": "\"#d8da5d\"",
|
|
"start": 6229,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "#d8da5d"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6220,
|
|
"name": "appearance",
|
|
"start": 6210,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6239,
|
|
"start": 6210,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 6294,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"2": [
|
|
{
|
|
"end": 6294,
|
|
"start": 6239,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Create the cap screw and pattern around the flange",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 5960,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 5960,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"end": 6597,
|
|
"expression": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 6314,
|
|
"raw": "0",
|
|
"start": 6313,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6356,
|
|
"left": {
|
|
"end": 6338,
|
|
"name": "flangeThickness",
|
|
"start": 6323,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 6356,
|
|
"name": "washerThickness",
|
|
"start": 6341,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 6323,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 6370,
|
|
"raw": "1.375",
|
|
"start": 6365,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.375,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6377,
|
|
"start": 6304,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 6390,
|
|
"name": "screwLength",
|
|
"start": 6379,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 6400,
|
|
"name": "screwDia",
|
|
"start": 6392,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6303,
|
|
"name": "capScrew",
|
|
"start": 6295,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6401,
|
|
"start": 6295,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6437,
|
|
"name": "axis",
|
|
"start": 6433,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6442,
|
|
"raw": "0",
|
|
"start": 6441,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6445,
|
|
"raw": "1",
|
|
"start": 6444,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6448,
|
|
"raw": "0",
|
|
"start": 6447,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6449,
|
|
"start": 6440,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6464,
|
|
"name": "center",
|
|
"start": 6458,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6469,
|
|
"raw": "0",
|
|
"start": 6468,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6472,
|
|
"raw": "0",
|
|
"start": 6471,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6475,
|
|
"raw": "0",
|
|
"start": 6474,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6476,
|
|
"start": 6467,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6494,
|
|
"name": "instances",
|
|
"start": 6485,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6498,
|
|
"raw": "7",
|
|
"start": 6497,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 7.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6517,
|
|
"name": "arcDegrees",
|
|
"start": 6507,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6523,
|
|
"raw": "360",
|
|
"start": 6520,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6548,
|
|
"name": "rotateDuplicates",
|
|
"start": 6532,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6555,
|
|
"raw": "true",
|
|
"start": 6551,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6424,
|
|
"name": "patternCircular3d",
|
|
"start": 6407,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6562,
|
|
"start": 6407,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6584,
|
|
"name": "color",
|
|
"start": 6579,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6596,
|
|
"raw": "\"#4cd411\"",
|
|
"start": 6587,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "#4cd411"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6578,
|
|
"name": "appearance",
|
|
"start": 6568,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6597,
|
|
"start": 6568,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 6597,
|
|
"start": 6295,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 6295,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 6715,
|
|
"id": {
|
|
"end": 6614,
|
|
"name": "screwBodySketch",
|
|
"start": 6599,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 6641,
|
|
"name": "screwPlane",
|
|
"start": 6631,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6630,
|
|
"name": "startSketchOn",
|
|
"start": 6617,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6642,
|
|
"start": 6617,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6669,
|
|
"name": "center",
|
|
"start": 6663,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6674,
|
|
"raw": "0",
|
|
"start": 6673,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6677,
|
|
"raw": "0",
|
|
"start": 6676,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6678,
|
|
"start": 6672,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6693,
|
|
"name": "radius",
|
|
"start": 6687,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6708,
|
|
"left": {
|
|
"end": 6704,
|
|
"name": "screwDia",
|
|
"start": 6696,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 6708,
|
|
"raw": "2",
|
|
"start": 6707,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 6696,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6654,
|
|
"name": "circle",
|
|
"start": 6648,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6715,
|
|
"start": 6648,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 6715,
|
|
"start": 6617,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 6599,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 6715,
|
|
"kind": "const",
|
|
"start": 6599,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 7035,
|
|
"id": {
|
|
"end": 6725,
|
|
"name": "screwBody",
|
|
"start": 6716,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6759,
|
|
"name": "length",
|
|
"start": 6753,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 6774,
|
|
"name": "screwLength",
|
|
"start": 6763,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6774,
|
|
"operator": "-",
|
|
"start": 6762,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6735,
|
|
"name": "extrude",
|
|
"start": 6728,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6775,
|
|
"start": 6728,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 6751,
|
|
"name": "screwBodySketch",
|
|
"start": 6736,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6811,
|
|
"name": "axis",
|
|
"start": 6807,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6816,
|
|
"raw": "0",
|
|
"start": 6815,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6819,
|
|
"raw": "1",
|
|
"start": 6818,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6822,
|
|
"raw": "0",
|
|
"start": 6821,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6823,
|
|
"start": 6814,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6838,
|
|
"name": "center",
|
|
"start": 6832,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 6843,
|
|
"raw": "0",
|
|
"start": 6842,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6846,
|
|
"raw": "0",
|
|
"start": 6845,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 6849,
|
|
"raw": "0",
|
|
"start": 6848,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 6850,
|
|
"start": 6841,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6868,
|
|
"name": "instances",
|
|
"start": 6859,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6872,
|
|
"raw": "7",
|
|
"start": 6871,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 7.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6891,
|
|
"name": "arcDegrees",
|
|
"start": 6881,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6897,
|
|
"raw": "360",
|
|
"start": 6894,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6922,
|
|
"name": "rotateDuplicates",
|
|
"start": 6906,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6929,
|
|
"raw": "true",
|
|
"start": 6925,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6798,
|
|
"name": "patternCircular3d",
|
|
"start": 6781,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6936,
|
|
"start": 6781,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 6958,
|
|
"name": "color",
|
|
"start": 6953,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 6970,
|
|
"raw": "\"#4cd411\"",
|
|
"start": 6961,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "#4cd411"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 6952,
|
|
"name": "appearance",
|
|
"start": 6942,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 6971,
|
|
"start": 6942,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 7035,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"2": [
|
|
{
|
|
"end": 7035,
|
|
"start": 6971,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Create a plane for the washers on the back side of the wall",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 6728,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 6716,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 7035,
|
|
"kind": "const",
|
|
"start": 6716,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 7278,
|
|
"id": {
|
|
"end": 7055,
|
|
"name": "backSideWasherPlane",
|
|
"start": 7036,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 7278,
|
|
"properties": [
|
|
{
|
|
"end": 7276,
|
|
"key": {
|
|
"end": 7067,
|
|
"name": "plane",
|
|
"start": 7062,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7062,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7276,
|
|
"properties": [
|
|
{
|
|
"end": 7161,
|
|
"key": {
|
|
"end": 7082,
|
|
"name": "origin",
|
|
"start": 7076,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7076,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7161,
|
|
"properties": [
|
|
{
|
|
"end": 7098,
|
|
"key": {
|
|
"end": 7094,
|
|
"name": "x",
|
|
"start": 7093,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7093,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7098,
|
|
"raw": "0",
|
|
"start": 7097,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 7142,
|
|
"key": {
|
|
"end": 7107,
|
|
"name": "y",
|
|
"start": 7106,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7106,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7142,
|
|
"left": {
|
|
"argument": {
|
|
"end": 7124,
|
|
"name": "wallThickness",
|
|
"start": 7111,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 7124,
|
|
"operator": "-",
|
|
"start": 7110,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 7142,
|
|
"name": "washerThickness",
|
|
"start": 7127,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7110,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 7155,
|
|
"key": {
|
|
"end": 7151,
|
|
"name": "z",
|
|
"start": 7150,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7150,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7155,
|
|
"raw": "0",
|
|
"start": 7154,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 7085,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 7198,
|
|
"key": {
|
|
"end": 7172,
|
|
"name": "xAxis",
|
|
"start": 7167,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7167,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7198,
|
|
"properties": [
|
|
{
|
|
"end": 7182,
|
|
"key": {
|
|
"end": 7178,
|
|
"name": "x",
|
|
"start": 7177,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7177,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7182,
|
|
"raw": "0",
|
|
"start": 7181,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 7189,
|
|
"key": {
|
|
"end": 7185,
|
|
"name": "y",
|
|
"start": 7184,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7184,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7189,
|
|
"raw": "0",
|
|
"start": 7188,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 7196,
|
|
"key": {
|
|
"end": 7192,
|
|
"name": "z",
|
|
"start": 7191,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7191,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7196,
|
|
"raw": "1",
|
|
"start": 7195,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 7175,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 7235,
|
|
"key": {
|
|
"end": 7209,
|
|
"name": "yAxis",
|
|
"start": 7204,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7204,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7235,
|
|
"properties": [
|
|
{
|
|
"end": 7219,
|
|
"key": {
|
|
"end": 7215,
|
|
"name": "x",
|
|
"start": 7214,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7214,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7219,
|
|
"raw": "1",
|
|
"start": 7218,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 7226,
|
|
"key": {
|
|
"end": 7222,
|
|
"name": "y",
|
|
"start": 7221,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7221,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7226,
|
|
"raw": "0",
|
|
"start": 7225,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 7233,
|
|
"key": {
|
|
"end": 7229,
|
|
"name": "z",
|
|
"start": 7228,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7228,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7233,
|
|
"raw": "0",
|
|
"start": 7232,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 7212,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 7272,
|
|
"key": {
|
|
"end": 7246,
|
|
"name": "zAxis",
|
|
"start": 7241,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7241,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7272,
|
|
"properties": [
|
|
{
|
|
"end": 7256,
|
|
"key": {
|
|
"end": 7252,
|
|
"name": "x",
|
|
"start": 7251,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7251,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7256,
|
|
"raw": "0",
|
|
"start": 7255,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 7263,
|
|
"key": {
|
|
"end": 7259,
|
|
"name": "y",
|
|
"start": 7258,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7258,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7263,
|
|
"raw": "1",
|
|
"start": 7262,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 7270,
|
|
"key": {
|
|
"end": 7266,
|
|
"name": "z",
|
|
"start": 7265,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7265,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 7270,
|
|
"raw": "0",
|
|
"start": 7269,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 7249,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 7070,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 7058,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
"start": 7036,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 7278,
|
|
"kind": "const",
|
|
"start": 7036,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"end": 7669,
|
|
"expression": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 7356,
|
|
"name": "backSideWasherPlane",
|
|
"start": 7337,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"computed": false,
|
|
"end": 7372,
|
|
"object": {
|
|
"end": 7369,
|
|
"name": "screwStart",
|
|
"start": 7359,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 7371,
|
|
"raw": "2",
|
|
"start": 7370,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 7359,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
{
|
|
"computed": false,
|
|
"end": 7387,
|
|
"object": {
|
|
"end": 7384,
|
|
"name": "screwStart",
|
|
"start": 7374,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 7386,
|
|
"raw": "0",
|
|
"start": 7385,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 7374,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"end": 7388,
|
|
"start": 7358,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 7396,
|
|
"raw": "0.0625",
|
|
"start": 7390,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0625,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 7412,
|
|
"left": {
|
|
"end": 7406,
|
|
"name": "screwDia",
|
|
"start": 7398,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 7412,
|
|
"name": "tol",
|
|
"start": 7409,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7398,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 7419,
|
|
"raw": "0.625",
|
|
"start": 7414,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.625,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 7336,
|
|
"name": "washer",
|
|
"start": 7330,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 7420,
|
|
"start": 7330,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7456,
|
|
"name": "axis",
|
|
"start": 7452,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 7461,
|
|
"raw": "0",
|
|
"start": 7460,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 7464,
|
|
"raw": "1",
|
|
"start": 7463,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 7467,
|
|
"raw": "0",
|
|
"start": 7466,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 7468,
|
|
"start": 7459,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7483,
|
|
"name": "center",
|
|
"start": 7477,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 7488,
|
|
"raw": "0",
|
|
"start": 7487,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 7491,
|
|
"raw": "0",
|
|
"start": 7490,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 7494,
|
|
"raw": "0",
|
|
"start": 7493,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 7495,
|
|
"start": 7486,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7513,
|
|
"name": "instances",
|
|
"start": 7504,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7517,
|
|
"raw": "7",
|
|
"start": 7516,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 7.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7536,
|
|
"name": "arcDegrees",
|
|
"start": 7526,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7542,
|
|
"raw": "360",
|
|
"start": 7539,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7567,
|
|
"name": "rotateDuplicates",
|
|
"start": 7551,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7574,
|
|
"raw": "true",
|
|
"start": 7570,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 7443,
|
|
"name": "patternCircular3d",
|
|
"start": 7426,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 7581,
|
|
"start": 7426,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7603,
|
|
"name": "color",
|
|
"start": 7598,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7615,
|
|
"raw": "\"#e8ec09\"",
|
|
"start": 7606,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "#e8ec09"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 7597,
|
|
"name": "appearance",
|
|
"start": 7587,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 7616,
|
|
"start": 7587,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 7669,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"2": [
|
|
{
|
|
"end": 7669,
|
|
"start": 7616,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Create the hex nut and pattern around the flange",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 7330,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 7330,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"end": 7968,
|
|
"expression": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"computed": false,
|
|
"end": 7699,
|
|
"object": {
|
|
"end": 7696,
|
|
"name": "screwStart",
|
|
"start": 7686,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 7698,
|
|
"raw": "0",
|
|
"start": 7697,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 7686,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
{
|
|
"computed": false,
|
|
"end": 7721,
|
|
"object": {
|
|
"end": 7718,
|
|
"name": "screwStart",
|
|
"start": 7708,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 7720,
|
|
"raw": "1",
|
|
"start": 7719,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 7708,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
{
|
|
"computed": false,
|
|
"end": 7743,
|
|
"object": {
|
|
"end": 7740,
|
|
"name": "screwStart",
|
|
"start": 7730,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 7742,
|
|
"raw": "2",
|
|
"start": 7741,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 7730,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"end": 7750,
|
|
"start": 7677,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 7755,
|
|
"raw": ".25",
|
|
"start": 7752,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.25,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 7771,
|
|
"left": {
|
|
"end": 7765,
|
|
"name": "screwDia",
|
|
"start": 7757,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 7771,
|
|
"name": "tol",
|
|
"start": 7768,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 7757,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 7676,
|
|
"name": "hexNut",
|
|
"start": 7670,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 7772,
|
|
"start": 7670,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7808,
|
|
"name": "axis",
|
|
"start": 7804,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 7813,
|
|
"raw": "0",
|
|
"start": 7812,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 7816,
|
|
"raw": "1",
|
|
"start": 7815,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 7819,
|
|
"raw": "0",
|
|
"start": 7818,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 7820,
|
|
"start": 7811,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7835,
|
|
"name": "center",
|
|
"start": 7829,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 7840,
|
|
"raw": "0",
|
|
"start": 7839,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 7843,
|
|
"raw": "0",
|
|
"start": 7842,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 7846,
|
|
"raw": "0",
|
|
"start": 7845,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 7847,
|
|
"start": 7838,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7865,
|
|
"name": "instances",
|
|
"start": 7856,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7869,
|
|
"raw": "7",
|
|
"start": 7868,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 7.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7888,
|
|
"name": "arcDegrees",
|
|
"start": 7878,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7894,
|
|
"raw": "360",
|
|
"start": 7891,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 360.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7919,
|
|
"name": "rotateDuplicates",
|
|
"start": 7903,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7926,
|
|
"raw": "true",
|
|
"start": 7922,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 7795,
|
|
"name": "patternCircular3d",
|
|
"start": 7778,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 7933,
|
|
"start": 7778,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 7955,
|
|
"name": "color",
|
|
"start": 7950,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 7967,
|
|
"raw": "\"#bc3434\"",
|
|
"start": 7958,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "#bc3434"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 7949,
|
|
"name": "appearance",
|
|
"start": 7939,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 7968,
|
|
"start": 7939,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 7968,
|
|
"start": 7670,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 7670,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"end": 7969,
|
|
"innerAttrs": [
|
|
{
|
|
"end": 379,
|
|
"name": {
|
|
"end": 355,
|
|
"name": "settings",
|
|
"start": 347,
|
|
"type": "Identifier"
|
|
},
|
|
"properties": [
|
|
{
|
|
"end": 378,
|
|
"key": {
|
|
"end": 373,
|
|
"name": "defaultLengthUnit",
|
|
"start": 356,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 356,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 378,
|
|
"name": "in",
|
|
"start": 376,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 346,
|
|
"type": "Annotation"
|
|
}
|
|
],
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"12": [
|
|
{
|
|
"end": 738,
|
|
"start": 702,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "Ratio grabbed from another screw",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"13": [
|
|
{
|
|
"end": 799,
|
|
"start": 763,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "Ratio grabbed from another screw",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"14": [
|
|
{
|
|
"end": 862,
|
|
"start": 822,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "first angle of hex pattern (degrees)",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"15": [
|
|
{
|
|
"end": 896,
|
|
"start": 885,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "degrees",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"16": [
|
|
{
|
|
"end": 947,
|
|
"start": 936,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "degrees",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 950,
|
|
"start": 947,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
],
|
|
"17": [
|
|
{
|
|
"end": 1190,
|
|
"start": 1188,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
],
|
|
"18": [
|
|
{
|
|
"end": 2665,
|
|
"start": 2663,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
],
|
|
"19": [
|
|
{
|
|
"end": 2881,
|
|
"start": 2861,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Washer function",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"20": [
|
|
{
|
|
"end": 3243,
|
|
"start": 3222,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Hex nut function",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"21": [
|
|
{
|
|
"end": 4309,
|
|
"start": 4282,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Mounting holes pattern",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"27": [
|
|
{
|
|
"end": 6599,
|
|
"start": 6597,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
],
|
|
"30": [
|
|
{
|
|
"end": 7329,
|
|
"start": 7278,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Create the washers on the backside of the wall",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": [
|
|
{
|
|
"end": 27,
|
|
"start": 0,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Pipe and Flange Assembly",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 330,
|
|
"start": 28,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "A crucial component in various piping systems, designed to facilitate the connection, disconnection, and access to piping for inspection, cleaning, and modifications. This assembly combines pipes (long cylindrical conduits) with flanges (plate-like fittings) to create a secure yet detachable joint.",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 333,
|
|
"start": 330,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
},
|
|
{
|
|
"end": 345,
|
|
"start": 333,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Set units",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 382,
|
|
"start": 379,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
},
|
|
{
|
|
"end": 401,
|
|
"start": 382,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Define constants",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"start": 0
|
|
}
|
|
}
|