awv3
Version:
AWV client CAD framework
1,465 lines (1,464 loc) • 2.28 MB
JSON
{
"type": "Program",
"start": 0,
"end": 15327,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 334,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 12
}
},
"name": "THREE"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 18,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 25
}
},
"value": "three",
"rawValue": "three",
"raw": "'three'"
}
},
{
"type": "ImportDeclaration",
"start": 28,
"end": 67,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 39
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 35,
"end": 42,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 35,
"end": 42,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 14
}
},
"name": "Object3"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 48,
"end": 66,
"loc": {
"start": {
"line": 2,
"column": 20
},
"end": {
"line": 2,
"column": 38
}
},
"value": "../three/object3",
"rawValue": "../three/object3",
"raw": "'../three/object3'"
}
},
{
"type": "ImportDeclaration",
"start": 69,
"end": 107,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 38
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 76,
"end": 81,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 76,
"end": 81,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 12
}
},
"name": "Orbit"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 87,
"end": 106,
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 3,
"column": 37
}
},
"value": "../controls/orbit",
"rawValue": "../controls/orbit",
"raw": "'../controls/orbit'"
}
},
{
"type": "ImportDeclaration",
"start": 109,
"end": 156,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 47
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 116,
"end": 127,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 18
}
},
"local": {
"type": "Identifier",
"start": 116,
"end": 127,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 18
}
},
"name": "Perspective"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 133,
"end": 155,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 46
}
},
"value": "../three/perspective",
"rawValue": "../three/perspective",
"raw": "'../three/perspective'"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 160,
"end": 15325,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 333,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 175,
"end": 15325,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 333,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 181,
"end": 190,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 6,
"column": 30
}
},
"name": "Selection"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 191,
"end": 15325,
"loc": {
"start": {
"line": 6,
"column": 31
},
"end": {
"line": 333,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 198,
"end": 616,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 21,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 198,
"end": 209,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
}
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"value": {
"type": "FunctionExpression",
"start": 209,
"end": 616,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 21,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 210,
"end": 221,
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 27
}
},
"name": "integration"
},
{
"type": "Identifier",
"start": 223,
"end": 230,
"loc": {
"start": {
"line": 7,
"column": 29
},
"end": {
"line": 7,
"column": 36
}
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 232,
"end": 616,
"loc": {
"start": {
"line": 7,
"column": 38
},
"end": {
"line": 21,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 245,
"end": 457,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 15,
"column": 10
}
},
"expression": {
"type": "AssignmentExpression",
"start": 245,
"end": 456,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 15,
"column": 9
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 245,
"end": 257,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 245,
"end": 249,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 250,
"end": 257,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 20
}
},
"name": "options"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 260,
"end": 456,
"loc": {
"start": {
"line": 9,
"column": 23
},
"end": {
"line": 15,
"column": 9
}
},
"properties": [
{
"type": "Property",
"start": 275,
"end": 297,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 34
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 275,
"end": 280,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 17
}
},
"name": "hover"
},
"value": {
"type": "MemberExpression",
"start": 282,
"end": 297,
"loc": {
"start": {
"line": 10,
"column": 19
},
"end": {
"line": 10,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 282,
"end": 291,
"loc": {
"start": {
"line": 10,
"column": 19
},
"end": {
"line": 10,
"column": 28
}
},
"name": "Selection"
},
"property": {
"type": "Identifier",
"start": 292,
"end": 297,
"loc": {
"start": {
"line": 10,
"column": 29
},
"end": {
"line": 10,
"column": 34
}
},
"name": "hover"
},
"computed": false
},
"kind": "init"
},
{
"type": "Property",
"start": 312,
"end": 338,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 38
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 312,
"end": 319,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 19
}
},
"name": "unhover"
},
"value": {
"type": "MemberExpression",
"start": 321,
"end": 338,
"loc": {
"start": {
"line": 11,
"column": 21
},
"end": {
"line": 11,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 321,
"end": 330,
"loc": {
"start": {
"line": 11,
"column": 21
},
"end": {
"line": 11,
"column": 30
}
},
"name": "Selection"
},
"property": {
"type": "Identifier",
"start": 331,
"end": 338,
"loc": {
"start": {
"line": 11,
"column": 31
},
"end": {
"line": 11,
"column": 38
}
},
"name": "unhover"
},
"computed": false
},
"kind": "init"
},
{
"type": "Property",
"start": 353,
"end": 377,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 36
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 353,
"end": 359,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 18
}
},
"name": "select"
},
"value": {
"type": "MemberExpression",
"start": 361,
"end": 377,
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 12,
"column": 36
}
},
"object": {
"type": "Identifier",
"start": 361,
"end": 370,
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 12,
"column": 29
}
},
"name": "Selection"
},
"property": {
"type": "Identifier",
"start": 371,
"end": 377,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 36
}
},
"name": "select"
},
"computed": false
},
"kind": "init"
},
{
"type": "Property",
"start": 392,
"end": 420,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 40
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 392,
"end": 400,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 20
}
},
"name": "unselect"
},
"value": {
"type": "MemberExpression",
"start": 402,
"end": 420,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 402,
"end": 411,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 31
}
},
"name": "Selection"
},
"property": {
"type": "Identifier",
"start": 412,
"end": 420,
"loc": {
"start": {
"line": 13,
"column": 32
},
"end": {
"line": 13,
"column": 40
}
},
"name": "unselect"
},
"computed": false
},
"kind": "init"
},
{
"type": "SpreadProperty",
"start": 435,
"end": 445,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 22
}
},
"argument": {
"type": "Identifier",
"start": 438,
"end": 445,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 22
}
},
"name": "options"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 469,
"end": 500,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 39
}
},
"expression": {
"type": "AssignmentExpression",
"start": 469,
"end": 499,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 38
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 469,
"end": 485,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 469,
"end": 473,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 474,
"end": 485,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 24
}
},
"name": "integration"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 488,
"end": 499,
"loc": {
"start": {
"line": 17,
"column": 27
},
"end": {
"line": 17,
"column": 38
}
},
"name": "integration"
}
}
},
{
"type": "ExpressionStatement",
"start": 510,
"end": 544,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 42
}
},
"expression": {
"type": "AssignmentExpression",
"start": 510,
"end": 543,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 41
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 510,
"end": 519,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 510,
"end": 514,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 515,
"end": 519,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 17
}
},
"name": "view"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 522,
"end": 543,
"loc": {
"start": {
"line": 18,
"column": 20
},
"end": {
"line": 18,
"column": 41
}
},
"object": {
"type": "MemberExpression",
"start": 522,
"end": 538,
"loc": {
"start": {
"line": 18,
"column": 20
},
"end": {
"line": 18,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 522,
"end": 526,
"loc": {
"start": {
"line": 18,
"column": 20
},
"end": {
"line": 18,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 527,
"end": 538,
"loc": {
"start": {
"line": 18,
"column": 25
},
"end": {
"line": 18,
"column": 36
}
},
"name": "integration"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 539,
"end": 543,
"loc": {
"start": {
"line": 18,
"column": 37
},
"end": {
"line": 18,
"column": 41
}
},
"name": "view"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 554,
"end": 574,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 554,
"end": 573,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 554,
"end": 568,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 554,
"end": 558,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 559,
"end": 568,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 22
}
},
"name": "selection"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 571,
"end": 573,
"loc": {
"start": {
"line": 19,
"column": 25
},
"end": {
"line": 19,
"column": 27
}
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"start": 584,
"end": 609,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 584,
"end": 608,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 584,
"end": 596,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 584,
"end": 588,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 589,
"end": 596,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 20
}
},
"name": "element"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 599,
"end": 608,
"loc": {
"start": {
"line": 20,
"column": 23
},
"end": {
"line": 20,
"column": 32
}
},
"name": "undefined"
}
}
}
]
}
}
},
{
"type": "MethodDefinition",
"start": 624,
"end": 794,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 28,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 624,
"end": 630,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 10
}
},
"name": "toggle"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 630,
"end": 794,
"loc": {
"start": {
"line": 23,
"column": 10
},
"end": {
"line": 28,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start": 631,
"end": 653,
"loc": {
"start": {
"line": 23,
"column": 11
},
"end": {
"line": 23,
"column": 33
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 631,
"end": 638,
"loc": {
"start": {
"line": 23,
"column": 11
},
"end": {
"line": 23,
"column": 18
}
},
"name": "element"
},
"right": {
"type": "MemberExpression",
"start": 641,
"end": 653,
"loc": {
"start": {
"line": 23,
"column": 21
},
"end": {
"line": 23,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 641,
"end": 645,
"loc": {
"start": {
"line": 23,
"column": 21
},
"end": {
"line": 23,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"start": 646,
"end": 653,
"loc": {
"start": {
"line": 23,