awv3
Version:
⚡ AWV3 embedded CAD
1,554 lines (1,553 loc) • 3.08 MB
JSON
{
"type": "File",
"start": 0,
"end": 16826,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 422,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 16826,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 422,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 31
}
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"start": 7,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 17
}
},
"local": {
"type": "Identifier",
"start": 12,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 17
},
"identifierName": "THREE"
},
"name": "THREE"
}
}
],
"source": {
"type": "StringLiteral",
"start": 23,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 30
}
},
"extra": {
"rawValue": "three",
"raw": "'three'"
},
"value": "three"
}
},
{
"type": "ImportDeclaration",
"start": 32,
"end": 74,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 42
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 39,
"end": 46,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 39,
"end": 46,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 14
},
"identifierName": "Object3"
},
"name": "Object3"
}
}
],
"source": {
"type": "StringLiteral",
"start": 52,
"end": 73,
"loc": {
"start": {
"line": 2,
"column": 20
},
"end": {
"line": 2,
"column": 41
}
},
"extra": {
"rawValue": "../../three/object3",
"raw": "'../../three/object3'"
},
"value": "../../three/object3"
}
},
{
"type": "ImportDeclaration",
"start": 75,
"end": 108,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 33
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 82,
"end": 85,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 10
}
},
"local": {
"type": "Identifier",
"start": 82,
"end": 85,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 10
},
"identifierName": "Hud"
},
"name": "Hud"
}
}
],
"source": {
"type": "StringLiteral",
"start": 91,
"end": 107,
"loc": {
"start": {
"line": 3,
"column": 16
},
"end": {
"line": 3,
"column": 32
}
},
"extra": {
"rawValue": "../../core/hud",
"raw": "'../../core/hud'"
},
"value": "../../core/hud"
}
},
{
"type": "ImportDeclaration",
"start": 109,
"end": 150,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 41
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 116,
"end": 121,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 116,
"end": 121,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 12
},
"identifierName": "Orbit"
},
"name": "Orbit"
}
}
],
"source": {
"type": "StringLiteral",
"start": 127,
"end": 149,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 4,
"column": 40
}
},
"extra": {
"rawValue": "../../controls/orbit",
"raw": "'../../controls/orbit'"
},
"value": "../../controls/orbit"
}
},
{
"type": "ImportDeclaration",
"start": 151,
"end": 207,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 56
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 158,
"end": 172,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 21
}
},
"local": {
"type": "Identifier",
"start": 158,
"end": 172,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 21
},
"identifierName": "CombinedCamera"
},
"name": "CombinedCamera"
}
}
],
"source": {
"type": "StringLiteral",
"start": 178,
"end": 206,
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 5,
"column": 55
}
},
"extra": {
"rawValue": "../../three/combinedcamera",
"raw": "'../../three/combinedcamera'"
},
"value": "../../three/combinedcamera"
}
},
{
"type": "ImportDeclaration",
"start": 208,
"end": 248,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 40
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 215,
"end": 221,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 215,
"end": 221,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 13
},
"identifierName": "Region"
},
"name": "Region"
}
}
],
"source": {
"type": "StringLiteral",
"start": 227,
"end": 247,
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 6,
"column": 39
}
},
"extra": {
"rawValue": "../../three/region",
"raw": "'../../three/region'"
},
"value": "../../three/region"
}
},
{
"type": "ImportDeclaration",
"start": 249,
"end": 311,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 62
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 258,
"end": 283,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 34
}
},
"imported": {
"type": "Identifier",
"start": 258,
"end": 265,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 16
},
"identifierName": "actions"
},
"name": "actions"
},
"local": {
"type": "Identifier",
"start": 269,
"end": 283,
"loc": {
"start": {
"line": 7,
"column": 20
},
"end": {
"line": 7,
"column": 34
},
"identifierName": "elementActions"
},
"name": "elementActions"
}
}
],
"source": {
"type": "StringLiteral",
"start": 291,
"end": 310,
"loc": {
"start": {
"line": 7,
"column": 42
},
"end": {
"line": 7,
"column": 61
}
},
"extra": {
"rawValue": "../store/elements",
"raw": "'../store/elements'"
},
"value": "../store/elements"
}
},
{
"type": "ImportDeclaration",
"start": 312,
"end": 351,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 39
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 321,
"end": 330,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 321,
"end": 330,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 18
},
"identifierName": "arrayDiff"
},
"name": "arrayDiff"
},
"local": {
"type": "Identifier",
"start": 321,
"end": 330,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 18
},
"identifierName": "arrayDiff"
},
"name": "arrayDiff"
}
}
],
"source": {
"type": "StringLiteral",
"start": 338,
"end": 350,
"loc": {
"start": {
"line": 8,
"column": 26
},
"end": {
"line": 8,
"column": 38
}
},
"extra": {
"rawValue": "../helpers",
"raw": "'../helpers'"
},
"value": "../helpers"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @class ObjectSelector is used to select whole objects in the view\n * (Filtersettings: Object).\n * includes single selection as well as rubberband selection. Object selection\n * is based on the object's id only and works without userData and meta-information.\n ",
"start": 353,
"end": 622,
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 15,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 623,
"end": 16825,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 421,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 630,
"end": 16825,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 421,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 636,
"end": 650,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 27
},
"identifierName": "ObjectSelector"
},
"name": "ObjectSelector",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 651,
"end": 16825,
"loc": {
"start": {
"line": 16,
"column": 28
},
"end": {
"line": 421,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 657,
"end": 1124,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 27,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 657,
"end": 668,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 669,
"end": 676,
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 23
},
"identifierName": "session"
},
"name": "session"
},
{
"type": "Identifier",
"start": 678,
"end": 685,
"loc": {
"start": {
"line": 17,
"column": 25
},
"end": {
"line": 17,
"column": 32
},
"identifierName": "options"
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 687,
"end": 1124,
"loc": {
"start": {
"line": 17,
"column": 34
},
"end": {
"line": 27,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 697,
"end": 720,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 31
}
},
"expression": {
"type": "AssignmentExpression",
"start": 697,
"end": 719,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 30
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 697,
"end": 709,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 697,
"end": 701,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 702,
"end": 709,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 20
},
"identifierName": "session"
},
"name": "session"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 712,
"end": 719,
"loc": {
"start": {
"line": 18,
"column": 23
},
"end": {
"line": 18,
"column": 30
},
"identifierName": "session"
},
"name": "session"
}
},
"trailingComments": [
{
"type": "CommentLine",
"value": " Wait until the sessions pool has been added into the view (happens in <App/>)",
"start": 729,
"end": 809,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 88
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 818,
"end": 879,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 69
}
},
"expression": {
"type": "CallExpression",
"start": 818,
"end": 878,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 68
}
},
"callee": {
"type": "MemberExpression",
"start": 818,
"end": 852,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 42
}
},
"object": {
"type": "CallExpression",
"start": 818,
"end": 847,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 818,
"end": 845,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 35
}
},
"object": {
"type": "MemberExpression",
"start": 818,
"end": 835,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 818,
"end": 830,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 818,
"end": 822,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 823,
"end": 830,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 20
},
"identifierName": "session"
},
"name": "session"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 831,
"end": 835,
"loc": {
"start": {
"line": 20,
"column": 21
},
"end": {
"line": 20,
"column": 25
},
"identifierName": "pool"
},
"name": "pool"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 836,
"end": 845,
"loc": {
"start": {
"line": 20,
"column": 26
},
"end": {
"line": 20,
"column": 35
},
"identifierName": "viewFound"
},
"name": "viewFound"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 848,
"end": 852,
"loc": {
"start": {
"line": 20,
"column": 38
},
"end": {
"line": 20,
"column": 42
},
"identifierName": "then"
},
"name": "then"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 853,
"end": 877,
"loc": {
"start": {
"line": 20,
"column": 43
},
"end": {
"line": 20,
"column": 67
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 853,
"end": 857,
"loc": {
"start": {
"line": 20,
"column": 43
},
"end": {
"line": 20,
"column": 47
},
"identifierName": "view"
},
"name": "view"
}
],
"body": {
"type": "AssignmentExpression",
"start": 861,
"end": 877,
"loc": {
"start": {
"line": 20,
"column": 51
},
"end": {
"line": 20,
"column": 67
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 861,
"end": 870,
"loc": {
"start": {
"line": 20,
"column": 51
},
"end": {
"line": 20,
"column": 60
}
},
"object": {
"type": "ThisExpression",
"start": 861,
"end": 865,
"loc": {
"start": {
"line": 20,
"column": 51
},
"end": {
"line": 20,
"column": 55
}
}
},
"property": {
"type": "Identifier",
"start": 866,
"end": 870,
"loc": {
"start": {
"line": 20,
"column": 56
},
"end": {
"line": 20,
"column": 60
},
"identifierName": "view"
},
"name": "view"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 873,
"end": 877,
"loc": {
"start": {
"line": 20,
"column": 63
},
"end": {
"line": 20,
"column": 67
},
"identifierName": "view"
},
"name": "view"
}
}
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Wait until the sessions pool has been added into the view (happens in <App/>)",
"start": 729,
"end": 809,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 88
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " the currently active selecion-element",
"start": 888,
"end": 928,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 48
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 937,
"end": 962,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 937,
"end": 961,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 937,
"end": 949,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 937,
"end": 941,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 942,
"end": 949,
"loc": {
"start": {
"line": 22,
"column": 13
},
"end": {
"line": 22,
"column": 20
},
"identifierName": "element"
},
"name": "element"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 952,
"end": 961,
"loc": {
"start": {
"line": 22,
"column": 23
},
"end": {
"line": 22,
"column": 32
},
"identifierName": "undefined"
},
"name": "undefined"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " the currently active selecion-element",
"start": 888,
"end": 928,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 48
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " stores the selected objects",
"start": 971,
"end": 1001,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 38
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1010,
"end": 1039,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 37
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1010,
"end": 1038,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 36
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1010,
"end": 1026,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 1010,
"end": 1014,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1015,
"end": 1026,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 24
},
"identifierName": "selectedSet"
},
"name": "selectedSet"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NewExpression",
"start": 1029,
"end": 1038,
"loc": {
"start": {
"line": 24,
"column": 27
},
"end": {
"line": 24,
"column": 36
}
},
"callee": {
"type": "Identifier",
"start": 1033,
"end": 1036,
"loc": {
"start": {
"line": 24,
"column": 31
},
"end": {
"line": 24,
"column": 34
},
"identifierName": "Set"
},
"name": "Set"
},
"arguments": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " stores the selected objects",
"start": 971,
"end": 1001,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 38
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " call unobserve when deactivated",
"start": 1048,
"end": 1082,
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 25,
"column": 42
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1091,
"end": 1118,
"loc": {
"start": {
"line": 26,
"column": 8
},