UNPKG

awv3

Version:
1,528 lines (1,527 loc) 3.03 MB
{ "type": "File", "start": 0, "end": 15475, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 384, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 15475, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 384, "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": 116, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 41 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 82, "end": 87, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 12 } }, "local": { "type": "Identifier", "start": 82, "end": 87, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 12 }, "identifierName": "Orbit" }, "name": "Orbit" } } ], "source": { "type": "StringLiteral", "start": 93, "end": 115, "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 40 } }, "extra": { "rawValue": "../../controls/orbit", "raw": "'../../controls/orbit'" }, "value": "../../controls/orbit" } }, { "type": "ImportDeclaration", "start": 117, "end": 167, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 50 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 124, "end": 135, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 18 } }, "local": { "type": "Identifier", "start": 124, "end": 135, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 18 }, "identifierName": "Perspective" }, "name": "Perspective" } } ], "source": { "type": "StringLiteral", "start": 141, "end": 166, "loc": { "start": { "line": 4, "column": 24 }, "end": { "line": 4, "column": 49 } }, "extra": { "rawValue": "../../three/perspective", "raw": "'../../three/perspective'" }, "value": "../../three/perspective" } }, { "type": "ImportDeclaration", "start": 168, "end": 208, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 40 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 175, "end": 181, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 13 } }, "local": { "type": "Identifier", "start": 175, "end": 181, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 13 }, "identifierName": "Region" }, "name": "Region" } } ], "source": { "type": "StringLiteral", "start": 187, "end": 207, "loc": { "start": { "line": 5, "column": 19 }, "end": { "line": 5, "column": 39 } }, "extra": { "rawValue": "../../three/region", "raw": "'../../three/region'" }, "value": "../../three/region" } }, { "type": "ImportDeclaration", "start": 209, "end": 271, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 62 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 218, "end": 243, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 34 } }, "imported": { "type": "Identifier", "start": 218, "end": 225, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 16 }, "identifierName": "actions" }, "name": "actions" }, "local": { "type": "Identifier", "start": 229, "end": 243, "loc": { "start": { "line": 6, "column": 20 }, "end": { "line": 6, "column": 34 }, "identifierName": "elementActions" }, "name": "elementActions" } } ], "source": { "type": "StringLiteral", "start": 251, "end": 270, "loc": { "start": { "line": 6, "column": 42 }, "end": { "line": 6, "column": 61 } }, "extra": { "rawValue": "../store/elements", "raw": "'../store/elements'" }, "value": "../store/elements" } }, { "type": "ImportDeclaration", "start": 272, "end": 311, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 39 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 281, "end": 290, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 18 } }, "imported": { "type": "Identifier", "start": 281, "end": 290, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 18 }, "identifierName": "arrayDiff" }, "name": "arrayDiff" }, "local": { "type": "Identifier", "start": 281, "end": 290, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 18 }, "identifierName": "arrayDiff" }, "name": "arrayDiff" } } ], "source": { "type": "StringLiteral", "start": 298, "end": 310, "loc": { "start": { "line": 7, "column": 26 }, "end": { "line": 7, "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": 313, "end": 582, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 14, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 583, "end": 15474, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 383, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 590, "end": 15474, "loc": { "start": { "line": 15, "column": 7 }, "end": { "line": 383, "column": 1 } }, "id": { "type": "Identifier", "start": 596, "end": 610, "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 27 }, "identifierName": "ObjectSelector" }, "name": "ObjectSelector", "leadingComments": null }, "superClass": null, "body": { "type": "ClassBody", "start": 611, "end": 15474, "loc": { "start": { "line": 15, "column": 28 }, "end": { "line": 383, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 617, "end": 1085, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 27, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 617, "end": 628, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 629, "end": 636, "loc": { "start": { "line": 16, "column": 16 }, "end": { "line": 16, "column": 23 }, "identifierName": "session" }, "name": "session" }, { "type": "Identifier", "start": 638, "end": 645, "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 32 }, "identifierName": "options" }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 647, "end": 1085, "loc": { "start": { "line": 16, "column": 34 }, "end": { "line": 27, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 658, "end": 681, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 658, "end": 680, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 658, "end": 670, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 20 } }, "object": { "type": "ThisExpression", "start": 658, "end": 662, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 12 } } }, "property": { "type": "Identifier", "start": 663, "end": 670, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 20 }, "identifierName": "session" }, "name": "session" }, "computed": false }, "right": { "type": "Identifier", "start": 673, "end": 680, "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": 690, "end": 770, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 88 } } } ] }, { "type": "ExpressionStatement", "start": 779, "end": 840, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 69 } }, "expression": { "type": "CallExpression", "start": 779, "end": 839, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 68 } }, "callee": { "type": "MemberExpression", "start": 779, "end": 813, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 42 } }, "object": { "type": "CallExpression", "start": 779, "end": 808, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 37 } }, "callee": { "type": "MemberExpression", "start": 779, "end": 806, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 35 } }, "object": { "type": "MemberExpression", "start": 779, "end": 796, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 25 } }, "object": { "type": "MemberExpression", "start": 779, "end": 791, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 20 } }, "object": { "type": "ThisExpression", "start": 779, "end": 783, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 784, "end": 791, "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 20 }, "identifierName": "session" }, "name": "session" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 792, "end": 796, "loc": { "start": { "line": 20, "column": 21 }, "end": { "line": 20, "column": 25 }, "identifierName": "pool" }, "name": "pool" }, "computed": false, "leadingComments": null }, "property": { "type": "Identifier", "start": 797, "end": 806, "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": 809, "end": 813, "loc": { "start": { "line": 20, "column": 38 }, "end": { "line": 20, "column": 42 }, "identifierName": "then" }, "name": "then" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 814, "end": 838, "loc": { "start": { "line": 20, "column": 43 }, "end": { "line": 20, "column": 67 } }, "id": null, "generator": false, "expression": true, "async": false, "params": [ { "type": "Identifier", "start": 814, "end": 818, "loc": { "start": { "line": 20, "column": 43 }, "end": { "line": 20, "column": 47 }, "identifierName": "view" }, "name": "view" } ], "body": { "type": "AssignmentExpression", "start": 822, "end": 838, "loc": { "start": { "line": 20, "column": 51 }, "end": { "line": 20, "column": 67 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 822, "end": 831, "loc": { "start": { "line": 20, "column": 51 }, "end": { "line": 20, "column": 60 } }, "object": { "type": "ThisExpression", "start": 822, "end": 826, "loc": { "start": { "line": 20, "column": 51 }, "end": { "line": 20, "column": 55 } } }, "property": { "type": "Identifier", "start": 827, "end": 831, "loc": { "start": { "line": 20, "column": 56 }, "end": { "line": 20, "column": 60 }, "identifierName": "view" }, "name": "view" }, "computed": false }, "right": { "type": "Identifier", "start": 834, "end": 838, "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": 690, "end": 770, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 88 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " the currently active selecion-element", "start": 849, "end": 889, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 48 } } } ] }, { "type": "ExpressionStatement", "start": 898, "end": 923, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 33 } }, "expression": { "type": "AssignmentExpression", "start": 898, "end": 922, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 898, "end": 910, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 20 } }, "object": { "type": "ThisExpression", "start": 898, "end": 902, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 903, "end": 910, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 20 }, "identifierName": "element" }, "name": "element" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 913, "end": 922, "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": 849, "end": 889, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 48 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " stores the selected objects", "start": 932, "end": 962, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 38 } } } ] }, { "type": "ExpressionStatement", "start": 971, "end": 1000, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 37 } }, "expression": { "type": "AssignmentExpression", "start": 971, "end": 999, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 36 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 971, "end": 987, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 24 } }, "object": { "type": "ThisExpression", "start": 971, "end": 975, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 976, "end": 987, "loc": { "start": { "line": 24, "column": 13 }, "end": { "line": 24, "column": 24 }, "identifierName": "selectedSet" }, "name": "selectedSet" }, "computed": false, "leadingComments": null }, "right": { "type": "NewExpression", "start": 990, "end": 999, "loc": { "start": { "line": 24, "column": 27 }, "end": { "line": 24, "column": 36 } }, "callee": { "type": "Identifier", "start": 994, "end": 997, "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": 932, "end": 962, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 38 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " call unobserve when deactivated", "start": 1009, "end": 1043, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 42 } } } ] }, { "type": "ExpressionStatement", "start": 1052, "end": 1079, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 35 } }, "expression": { "type": "AssignmentExpression", "start": 1052, "end": 1078, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 34 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1052, "end": 1066, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 22 } }, "object": { "type": "ThisExpression", "start": 1052, "end": 1056, "loc": { "start": { "line": 26, "column": 8 },