awv3
Version:
⚡ AWV3 embedded CAD
1,372 lines (1,371 loc) • 2.14 MB
JSON
{
"type": "File",
"start": 0,
"end": 9154,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 226,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 9154,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 226,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 40
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 16
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 16
},
"identifierName": "cloneDeep"
},
"name": "cloneDeep"
}
}
],
"source": {
"type": "StringLiteral",
"start": 22,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 40
}
},
"extra": {
"rawValue": "lodash/cloneDeep",
"raw": "'lodash/cloneDeep'"
},
"value": "lodash/cloneDeep"
}
},
{
"type": "ImportDeclaration",
"start": 41,
"end": 71,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 30
}
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"start": 48,
"end": 58,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 17
}
},
"local": {
"type": "Identifier",
"start": 53,
"end": 58,
"loc": {
"start": {
"line": 2,
"column": 12
},
"end": {
"line": 2,
"column": 17
},
"identifierName": "THREE"
},
"name": "THREE"
}
}
],
"source": {
"type": "StringLiteral",
"start": 64,
"end": 71,
"loc": {
"start": {
"line": 2,
"column": 23
},
"end": {
"line": 2,
"column": 30
}
},
"extra": {
"rawValue": "three",
"raw": "'three'"
},
"value": "three"
}
},
{
"type": "ImportDeclaration",
"start": 72,
"end": 113,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 41
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 79,
"end": 86,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 79,
"end": 86,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 14
},
"identifierName": "Object3"
},
"name": "Object3"
}
}
],
"source": {
"type": "StringLiteral",
"start": 92,
"end": 113,
"loc": {
"start": {
"line": 3,
"column": 20
},
"end": {
"line": 3,
"column": 41
}
},
"extra": {
"rawValue": "../../three/object3",
"raw": "'../../three/object3'"
},
"value": "../../three/object3"
}
},
{
"type": "ExportNamedDeclaration",
"start": 115,
"end": 3372,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 82,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 122,
"end": 3372,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 82,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 128,
"end": 134,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 19
},
"identifierName": "Handle"
},
"name": "Handle"
},
"superClass": {
"type": "MemberExpression",
"start": 143,
"end": 153,
"loc": {
"start": {
"line": 5,
"column": 28
},
"end": {
"line": 5,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 143,
"end": 148,
"loc": {
"start": {
"line": 5,
"column": 28
},
"end": {
"line": 5,
"column": 33
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 149,
"end": 153,
"loc": {
"start": {
"line": 5,
"column": 34
},
"end": {
"line": 5,
"column": 38
},
"identifierName": "Mesh"
},
"name": "Mesh"
},
"computed": false
},
"body": {
"type": "ClassBody",
"start": 154,
"end": 3372,
"loc": {
"start": {
"line": 5,
"column": 39
},
"end": {
"line": 82,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 160,
"end": 545,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 13,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 160,
"end": 171,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 172,
"end": 180,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 24
},
"identifierName": "geometry"
},
"name": "geometry"
},
{
"type": "Identifier",
"start": 182,
"end": 190,
"loc": {
"start": {
"line": 6,
"column": 26
},
"end": {
"line": 6,
"column": 34
},
"identifierName": "material"
},
"name": "material"
}
],
"body": {
"type": "BlockStatement",
"start": 192,
"end": 545,
"loc": {
"start": {
"line": 6,
"column": 36
},
"end": {
"line": 13,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 202,
"end": 227,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 33
}
},
"expression": {
"type": "CallExpression",
"start": 202,
"end": 227,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 33
}
},
"callee": {
"type": "Super",
"start": 202,
"end": 207,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"start": 208,
"end": 216,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 22
},
"identifierName": "geometry"
},
"name": "geometry"
},
{
"type": "Identifier",
"start": 218,
"end": 226,
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 32
},
"identifierName": "material"
},
"name": "material"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 236,
"end": 306,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 78
}
},
"expression": {
"type": "CallExpression",
"start": 236,
"end": 306,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 78
}
},
"callee": {
"type": "MemberExpression",
"start": 236,
"end": 258,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 236,
"end": 240,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 241,
"end": 258,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 30
},
"identifierName": "createInteraction"
},
"name": "createInteraction"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 259,
"end": 305,
"loc": {
"start": {
"line": 8,
"column": 31
},
"end": {
"line": 8,
"column": 77
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 261,
"end": 275,
"loc": {
"start": {
"line": 8,
"column": 33
},
"end": {
"line": 8,
"column": 47
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 261,
"end": 269,
"loc": {
"start": {
"line": 8,
"column": 33
},
"end": {
"line": 8,
"column": 41
},
"identifierName": "priority"
},
"name": "priority"
},
"value": {
"type": "NumericLiteral",
"start": 271,
"end": 275,
"loc": {
"start": {
"line": 8,
"column": 43
},
"end": {
"line": 8,
"column": 47
}
},
"extra": {
"rawValue": 1000,
"raw": "1000"
},
"value": 1000
}
},
{
"type": "ObjectProperty",
"start": 277,
"end": 303,
"loc": {
"start": {
"line": 8,
"column": 49
},
"end": {
"line": 8,
"column": 75
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 277,
"end": 282,
"loc": {
"start": {
"line": 8,
"column": 49
},
"end": {
"line": 8,
"column": 54
},
"identifierName": "types"
},
"name": "types"
},
"value": {
"type": "ArrayExpression",
"start": 284,
"end": 303,
"loc": {
"start": {
"line": 8,
"column": 56
},
"end": {
"line": 8,
"column": 75
}
},
"elements": [
{
"type": "StringLiteral",
"start": 285,
"end": 302,
"loc": {
"start": {
"line": 8,
"column": 57
},
"end": {
"line": 8,
"column": 74
}
},
"extra": {
"rawValue": "DimensionHandle",
"raw": "'DimensionHandle'"
},
"value": "DimensionHandle"
}
]
}
}
]
}
]
}
},
{
"type": "ForOfStatement",
"start": 315,
"end": 509,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 11,
"column": 87
}
},
"left": {
"type": "VariableDeclaration",
"start": 320,
"end": 332,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 25
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 324,
"end": 332,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 25
}
},
"id": {
"type": "Identifier",
"start": 324,
"end": 332,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 25
},
"identifierName": "category"
},
"name": "category"
},
"init": null
}
],
"kind": "let"
},
"right": {
"type": "CallExpression",
"start": 336,
"end": 365,
"loc": {
"start": {
"line": 9,
"column": 29
},
"end": {
"line": 9,
"column": 58
}
},
"callee": {
"type": "MemberExpression",
"start": 336,
"end": 349,
"loc": {
"start": {
"line": 9,
"column": 29
},
"end": {
"line": 9,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 336,
"end": 342,
"loc": {
"start": {
"line": 9,
"column": 29
},
"end": {
"line": 9,
"column": 35
},
"identifierName": "Object"
},
"name": "Object"
},
"property": {
"type": "Identifier",
"start": 343,
"end": 349,
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 42
},
"identifierName": "values"
},
"name": "values"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 350,
"end": 364,
"loc": {
"start": {
"line": 9,
"column": 43
},
"end": {
"line": 9,
"column": 57
}
},
"object": {
"type": "Identifier",
"start": 350,
"end": 357,
"loc": {
"start": {
"line": 9,
"column": 43
},
"end": {
"line": 9,
"column": 50
},
"identifierName": "Object3"
},
"name": "Object3"
},
"property": {
"type": "Identifier",
"start": 358,
"end": 364,
"loc": {
"start": {
"line": 9,
"column": 51
},
"end": {
"line": 9,
"column": 57
},
"identifierName": "Events"
},
"name": "Events"
},
"computed": false
}
]
},
"body": {
"type": "ForOfStatement",
"start": 379,
"end": 509,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 11,
"column": 87
}
},
"left": {
"type": "VariableDeclaration",
"start": 384,
"end": 393,
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 26
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 388,
"end": 393,
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 26
}
},
"id": {
"type": "Identifier",
"start": 388,
"end": 393,
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 26
},
"identifierName": "event"
},
"name": "event"
},
"init": null
}
],
"kind": "let"
},
"right": {
"type": "CallExpression",
"start": 397,
"end": 420,
"loc": {
"start": {
"line": 10,
"column": 30
},
"end": {
"line": 10,
"column": 53
}
},
"callee": {
"type": "MemberExpression",
"start": 397,
"end": 410,
"loc": {
"start": {
"line": 10,
"column": 30
},
"end": {
"line": 10,
"column": 43
}
},
"object": {
"type": "Identifier",
"start": 397,
"end": 403,
"loc": {
"start": {
"line": 10,
"column": 30
},
"end": {
"line": 10,
"column": 36
},
"identifierName": "Object"
},
"name": "Object"
},
"property": {
"type": "Identifier",
"start": 404,
"end": 410,
"loc": {
"start": {
"line": 10,
"column": 37
},
"end": {
"line": 10,
"column": 43
},
"identifierName": "values"
},
"name": "values"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 411,
"end": 419,
"loc": {
"start": {
"line": 10,
"column": 44
},
"end": {
"line": 10,
"column": 52
},
"identifierName": "category"
},
"name": "category"
}
]
},
"body": {
"type": "IfStatement",
"start": 438,
"end": 509,
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 87
}
},
"test": {
"type": "MemberExpression",
"start": 442,
"end": 453,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 442,
"end": 446,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 447,
"end": 452,
"loc": {
"start": {
"line": 11,
"column": 25
},
"end": {
"line": 11,
"column": 30
},
"identifierName": "event"
},
"name": "event"
},
"computed": true
},
"consequent": {
"type": "ExpressionStatement",
"start": 455,
"end": 509,
"loc": {
"start": {
"line": 11,
"column": 33
},
"end": {
"line": 11,
"column": 87
}
},
"expression": {
"type": "CallExpression",
"start": 455,
"end": 509,
"loc": {
"start": {
"line": 11,
"column": 33
},
"end": {
"line": 11,
"column": 87
}
},
"callee": {
"type": "MemberExpression",
"start": 455,
"end": 462,
"loc": {
"start": {
"line": 11,
"column": 33
},
"end": {
"line": 11,
"column": 40
}
},
"object": {
"type": "ThisExpression",
"start": 455,
"end": 459,
"loc": {
"start": {
"line": 11,
"column": 33
},
"end": {
"line": 11,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"start": 460,
"end": 462,
"loc": {
"start": {
"line": 11,
"column": 38
},
"end": {
"line": 11,
"column": 40
},
"identifierName": "on"
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 463,
"end": 468,
"loc": {
"start": {
"line": 11,
"column": 41
},
"end": {
"line": 11,
"column": 46
},
"identifierName": "event"
},
"name": "event"
},
{
"type": "CallExpression",
"start": 470,
"end": 492,
"loc": {
"start": {
"line": 11,
"column": 48
},
"end": {
"line": 11,
"column": 70
}
},
"callee": {
"type": "MemberExpression",
"start": 470,
"end": 486,
"loc": {
"start": {
"line": 11,
"column": 48
},
"end": {
"line": 11,
"column": 64
}
},
"object": {
"type": "MemberExpression",
"start": 470,
"end": 481,
"loc": {
"start": {
"line": 11,
"column": 48
},
"end": {
"line": 11,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 470,
"end": 474,
"loc": {
"start": {
"line": 11,
"column": 48
},
"end": {
"line": 11,
"column": 52
}
}
},
"property": {
"type": "Identifier",
"start": 475,
"end": 480,
"loc": {
"start": {
"line": 11,
"column": 53
},
"end": {
"line": 11,
"column": 58
},
"identifierName": "event"
},
"name": "event"
},
"computed": true
},
"property": {
"type": "Identifier",
"start": 482,
"end": 486,
"loc": {
"start": {
"line": 11,
"column": 60
},
"end": {
"line": 11,
"column": 64
},
"identifierName": "bind"
},
"name": "bind"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 487,
"end": 491,
"loc": {
"start": {
"line": 11,
"column": 65
},
"end": {
"line": 11,
"column": 69
}
}
}
]
},
{
"type": "ObjectExpression",
"start": 494,
"end": 508,
"loc": {
"start": {
"line": 11,
"column": 72
},
"end": {
"line": 11,
"column": 86
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 496,
"end": 506,
"loc": {
"start": {
"line": 11,
"column": 74
},
"end": {
"line": 11,
"column": 84
}