awv3
Version:
⚡ AWV3 embedded CAD
1,689 lines • 112 kB
JSON
{
"type": "File",
"start": 0,
"end": 960,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 29,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 960,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 29,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 31
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 14
},
"identifierName": "Angular"
},
"name": "Angular"
}
}
],
"source": {
"type": "StringLiteral",
"start": 20,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 31
}
},
"extra": {
"rawValue": "./angular",
"raw": "'./angular'"
},
"value": "./angular"
}
},
{
"type": "ImportDeclaration",
"start": 32,
"end": 61,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 29
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 39,
"end": 45,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 39,
"end": 45,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 13
},
"identifierName": "Linear"
},
"name": "Linear"
}
}
],
"source": {
"type": "StringLiteral",
"start": 51,
"end": 61,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 29
}
},
"extra": {
"rawValue": "./linear",
"raw": "'./linear'"
},
"value": "./linear"
}
},
{
"type": "ImportDeclaration",
"start": 62,
"end": 91,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 29
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 69,
"end": 75,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 69,
"end": 75,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
},
"identifierName": "Radial"
},
"name": "Radial"
}
}
],
"source": {
"type": "StringLiteral",
"start": 81,
"end": 91,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 29
}
},
"extra": {
"rawValue": "./radial",
"raw": "'./radial'"
},
"value": "./radial"
}
},
{
"type": "ImportDeclaration",
"start": 92,
"end": 127,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 35
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 99,
"end": 108,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 16
}
},
"local": {
"type": "Identifier",
"start": 99,
"end": 108,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 16
},
"identifierName": "Diametral"
},
"name": "Diametral"
}
}
],
"source": {
"type": "StringLiteral",
"start": 114,
"end": 127,
"loc": {
"start": {
"line": 4,
"column": 22
},
"end": {
"line": 4,
"column": 35
}
},
"extra": {
"rawValue": "./diametral",
"raw": "'./diametral'"
},
"value": "./diametral"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 129,
"end": 845,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 25,
"column": 1
}
},
"declaration": {
"type": "FunctionDeclaration",
"start": 144,
"end": 845,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 25,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 153,
"end": 161,
"loc": {
"start": {
"line": 6,
"column": 24
},
"end": {
"line": 6,
"column": 32
},
"identifierName": "Graphics"
},
"name": "Graphics"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 162,
"end": 171,
"loc": {
"start": {
"line": 6,
"column": 33
},
"end": {
"line": 6,
"column": 42
},
"identifierName": "className"
},
"name": "className"
},
{
"type": "RestElement",
"start": 173,
"end": 180,
"loc": {
"start": {
"line": 6,
"column": 44
},
"end": {
"line": 6,
"column": 51
}
},
"argument": {
"type": "Identifier",
"start": 176,
"end": 180,
"loc": {
"start": {
"line": 6,
"column": 47
},
"end": {
"line": 6,
"column": 51
},
"identifierName": "args"
},
"name": "args"
}
}
],
"body": {
"type": "BlockStatement",
"start": 182,
"end": 845,
"loc": {
"start": {
"line": 6,
"column": 53
},
"end": {
"line": 25,
"column": 1
}
},
"body": [
{
"type": "SwitchStatement",
"start": 188,
"end": 843,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 24,
"column": 5
}
},
"discriminant": {
"type": "Identifier",
"start": 196,
"end": 205,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 21
},
"identifierName": "className"
},
"name": "className"
},
"cases": [
{
"type": "SwitchCase",
"start": 217,
"end": 244,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 35
}
},
"consequent": [],
"test": {
"type": "StringLiteral",
"start": 222,
"end": 243,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 34
}
},
"extra": {
"rawValue": "CC_AngularDimension",
"raw": "'CC_AngularDimension'"
},
"value": "CC_AngularDimension"
}
},
{
"type": "SwitchCase",
"start": 253,
"end": 287,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 42
}
},
"consequent": [],
"test": {
"type": "StringLiteral",
"start": 258,
"end": 286,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 41
}
},
"extra": {
"rawValue": "CC_AngularFeatureDimension",
"raw": "'CC_AngularFeatureDimension'"
},
"value": "CC_AngularFeatureDimension"
}
},
{
"type": "SwitchCase",
"start": 296,
"end": 366,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 11,
"column": 39
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 339,
"end": 366,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 39
}
},
"argument": {
"type": "NewExpression",
"start": 346,
"end": 366,
"loc": {
"start": {
"line": 11,
"column": 19
},
"end": {
"line": 11,
"column": 39
}
},
"callee": {
"type": "Identifier",
"start": 350,
"end": 357,
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 11,
"column": 30
},
"identifierName": "Angular"
},
"name": "Angular"
},
"arguments": [
{
"type": "SpreadElement",
"start": 358,
"end": 365,
"loc": {
"start": {
"line": 11,
"column": 31
},
"end": {
"line": 11,
"column": 38
}
},
"argument": {
"type": "Identifier",
"start": 361,
"end": 365,
"loc": {
"start": {
"line": 11,
"column": 34
},
"end": {
"line": 11,
"column": 38
},
"identifierName": "args"
},
"name": "args"
}
}
]
}
}
],
"test": {
"type": "StringLiteral",
"start": 301,
"end": 325,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 37
}
},
"extra": {
"rawValue": "CC_AngularRefDimension",
"raw": "'CC_AngularRefDimension'"
},
"value": "CC_AngularRefDimension"
}
},
{
"type": "SwitchCase",
"start": 375,
"end": 401,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 34
}
},
"consequent": [],
"test": {
"type": "StringLiteral",
"start": 380,
"end": 400,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 33
}
},
"extra": {
"rawValue": "CC_LinearDimension",
"raw": "'CC_LinearDimension'"
},
"value": "CC_LinearDimension"
}
},
{
"type": "SwitchCase",
"start": 410,
"end": 443,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 41
}
},
"consequent": [],
"test": {
"type": "StringLiteral",
"start": 415,
"end": 442,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 40
}
},
"extra": {
"rawValue": "CC_LinearFeatureDimension",
"raw": "'CC_LinearFeatureDimension'"
},
"value": "CC_LinearFeatureDimension"
}
},
{
"type": "SwitchCase",
"start": 452,
"end": 520,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 15,
"column": 38
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 494,
"end": 520,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 38
}
},
"argument": {
"type": "NewExpression",
"start": 501,
"end": 520,
"loc": {
"start": {
"line": 15,
"column": 19
},
"end": {
"line": 15,
"column": 38
}
},
"callee": {
"type": "Identifier",
"start": 505,
"end": 511,
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 29
},
"identifierName": "Linear"
},
"name": "Linear"
},
"arguments": [
{
"type": "SpreadElement",
"start": 512,
"end": 519,
"loc": {
"start": {
"line": 15,
"column": 30
},
"end": {
"line": 15,
"column": 37
}
},
"argument": {
"type": "Identifier",
"start": 515,
"end": 519,
"loc": {
"start": {
"line": 15,
"column": 33
},
"end": {
"line": 15,
"column": 37
},
"identifierName": "args"
},
"name": "args"
}
}
]
}
}
],
"test": {
"type": "StringLiteral",
"start": 457,
"end": 480,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 36
}
},
"extra": {
"rawValue": "CC_LinearRefDimension",
"raw": "'CC_LinearRefDimension'"
},
"value": "CC_LinearRefDimension"
}
},
{
"type": "SwitchCase",
"start": 529,
"end": 555,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 34
}
},
"consequent": [],
"test": {
"type": "StringLiteral",
"start": 534,
"end": 554,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 33
}
},
"extra": {
"rawValue": "CC_RadialDimension",
"raw": "'CC_RadialDimension'"
},
"value": "CC_RadialDimension"
}
},
{
"type": "SwitchCase",
"start": 564,
"end": 597,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 41
}
},
"consequent": [],
"test": {
"type": "StringLiteral",
"start": 569,
"end": 596,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 40
}
},
"extra": {
"rawValue": "CC_RadialFeatureDimension",
"raw": "'CC_RadialFeatureDimension'"
},
"value": "CC_RadialFeatureDimension"
}
},
{
"type": "SwitchCase",
"start": 606,
"end": 674,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 19,
"column": 38
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 648,
"end": 674,
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 38
}
},
"argument": {
"type": "NewExpression",
"start": 655,
"end": 674,
"loc": {
"start": {
"line": 19,
"column": 19
},
"end": {
"line": 19,
"column": 38
}
},
"callee": {
"type": "Identifier",
"start": 659,
"end": 665,
"loc": {
"start": {
"line": 19,
"column": 23
},
"end": {
"line": 19,
"column": 29
},
"identifierName": "Radial"
},
"name": "Radial"
},
"arguments": [
{
"type": "SpreadElement",
"start": 666,
"end": 673,
"loc": {
"start": {
"line": 19,
"column": 30
},
"end": {
"line": 19,
"column": 37
}
},
"argument": {
"type": "Identifier",
"start": 669,
"end": 673,
"loc": {
"start": {
"line": 19,
"column": 33
},
"end": {
"line": 19,
"column": 37
},
"identifierName": "args"
},
"name": "args"
}
}
]
}
}
],
"test": {
"type": "StringLiteral",
"start": 611,
"end": 634,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 36
}
},
"extra": {
"rawValue": "CC_RadialRefDimension",
"raw": "'CC_RadialRefDimension'"
},
"value": "CC_RadialRefDimension"
}
},
{
"type": "SwitchCase",
"start": 683,
"end": 711,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 36
}
},
"consequent": [],
"test": {
"type": "StringLiteral",
"start": 688,
"end": 710,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 35
}
},
"extra": {
"rawValue": "CC_DiameterDimension",
"raw": "'CC_DiameterDimension'"
},
"value": "CC_DiameterDimension"
}
},
{
"type": "SwitchCase",
"start": 720,
"end": 755,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 43
}
},
"consequent": [],
"test": {
"type": "StringLiteral",
"start": 725,
"end": 754,
"loc": {
"start": {
"line": 21,
"column": 13
},
"end": {
"line": 21,
"column": 42
}
},
"extra": {
"rawValue": "CC_DiameterFeatureDimension",
"raw": "'CC_DiameterFeatureDimension'"
},
"value": "CC_DiameterFeatureDimension"
}
},
{
"type": "SwitchCase",
"start": 764,
"end": 837,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 23,
"column": 41
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 808,
"end": 837,
"loc": {
"start": {
"line": 23,
"column": 12
},
"end": {
"line": 23,
"column": 41
}
},
"argument": {
"type": "NewExpression",
"start": 815,
"end": 837,
"loc": {
"start": {
"line": 23,
"column": 19
},
"end": {
"line": 23,
"column": 41
}
},
"callee": {
"type": "Identifier",
"start": 819,
"end": 828,
"loc": {
"start": {
"line": 23,
"column": 23
},
"end": {
"line": 23,
"column": 32
},
"identifierName": "Diametral"
},
"name": "Diametral"
},
"arguments": [
{
"type": "SpreadElement",
"start": 829,
"end": 836,
"loc": {
"start": {
"line": 23,
"column": 33
},
"end": {
"line": 23,
"column": 40
}
},
"argument": {
"type": "Identifier",
"start": 832,
"end": 836,
"loc": {
"start": {
"line": 23,
"column": 36
},
"end": {
"line": 23,
"column": 40
},
"identifierName": "args"
},
"name": "args"
}
}
]
}
}
],
"test": {
"type": "StringLiteral",
"start": 769,
"end": 794,
"loc": {
"start": {
"line": 22,
"column": 13
},
"end": {
"line": 22,
"column": 38
}
},
"extra": {
"rawValue": "CC_DiameterRefDimension",
"raw": "'CC_DiameterRefDimension'"
},
"value": "CC_DiameterRefDimension"
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentLine",
"value": " Support hot reloading",
"start": 847,
"end": 871,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 27,
"column": 24
}
}
}
],
"leadingComments": []
},
"trailingComments": [
{
"type": "CommentLine",
"value": " Support hot reloading",
"start": 847,
"end": 871,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 27,
"column": 24
}
}
}
]
},
{
"type": "IfStatement",
"start": 872,
"end": 959,
"loc": {
"start": {
"line": 28,
"column": 0
},
"end": {
"line": 28,
"column": 87
}
},
"test": {
"type": "MemberExpression",
"start": 876,
"end": 886,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 14
}
},
"object": {
"type": "Identifier",
"start": 876,
"end": 882,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 10
},
"identifierName": "module"
},
"name": "module",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 883,
"end": 886,
"loc": {
"start": {
"line": 28,
"column": 11
},
"end": {
"line": 28,
"column": 14
},
"identifierName": "hot"
},
"name": "hot"
},
"computed": false,
"leadingComments": null
},
"consequent": {
"type": "ExpressionStatement",
"start": 888,
"end": 959,
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 87
}
},
"expression": {
"type": "CallExpression",
"start": 888,
"end": 959,
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 87
}
},
"callee": {
"type": "MemberExpression",
"start": 888,
"end": 905,
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 888,
"end": 898,
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 888,
"end": 894,
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 22
},
"identifierName": "module"
},
"name": "module"
},
"property": {
"type": "Identifier",
"start": 895,
"end": 898,
"loc": {
"start": {
"line": 28,
"column": 23
},
"end": {
"line": 28,
"column": 26
},
"identifierName": "hot"
},
"name": "hot"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 899,
"end": 905,
"loc": {
"start": {
"line": 28,
"column": 27
},
"end": {
"line": 28,
"column": 33
},
"identifierName": "accept"
},
"name": "accept"
},
"computed": false
},
"arguments": [
{
"type": "ArrayExpression",
"start": 906,
"end": 958,
"loc": {
"start": {
"line": 28,
"column": 34
},
"end": {
"line": 28,
"column": 86
}
},
"elements": [
{
"type": "StringLiteral",
"start": 907,
"end": 918,
"loc": {
"start": {
"line": 28,
"column": 35
},
"end": {
"line": 28,
"column": 46
}
},
"extra": {
"rawValue": "./angular",
"raw": "'./angular'"
},
"value": "./angular"
},
{
"type": "StringLiteral",
"start": 920,
"end": 930,
"loc": {
"start": {
"line": 28,
"column": 48
},
"end": {
"line": 28,
"column": 58
}
},
"extra": {
"rawValue": "./linear",
"raw": "'./linear'"
},
"value": "./linear"
},
{
"type": "StringLiteral",
"start": 932,
"end": 942,
"loc": {
"start": {
"line": 28,
"column": 60
},
"end": {
"line": 28,
"column": 70
}
},
"extra": {
"rawValue": "./radial",
"raw": "'./radial'"
},
"value": "./radial"
},
{
"type": "StringLiteral",
"start": 944,
"end": 957,
"loc": {
"start": {
"line": 28,
"column": 72
},
"end": {
"line": 28,
"column": 85
}
},
"extra": {
"rawValue": "./diametral",
"raw": "'./diametral'"
},
"value": "./diametral"
}
]
}
]
}
},
"alternate": null,
"leadingComments": [
{
"type": "CommentLine",
"value": " Support hot reloading",
"start": 847,
"end": 871,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 27,
"column": 24
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentLine",
"value": " Support hot reloading",
"start": 847,
"end": 871,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 27,
"column": 24
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Angular",
"start": 7,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 15,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 1,
"column": 19
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./angular",
"start": 20,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 31
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"before