UNPKG

awv3

Version:
1,564 lines (1,563 loc) 4.16 MB
{ "type": "Program", "start": 0, "end": 31936, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 800, "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": "ImportNamespaceSpecifier", "start": 35, "end": 45, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 17 } }, "local": { "type": "Identifier", "start": 40, "end": 45, "loc": { "start": { "line": 2, "column": 12 }, "end": { "line": 2, "column": 17 } }, "name": "Error" } } ], "importKind": "value", "source": { "type": "Literal", "start": 51, "end": 66, "loc": { "start": { "line": 2, "column": 23 }, "end": { "line": 2, "column": 38 } }, "value": "../core/error", "rawValue": "../core/error", "raw": "'../core/error'" } }, { "type": "ImportDeclaration", "start": 69, "end": 112, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 43 } }, "specifiers": [ { "type": "ImportNamespaceSpecifier", "start": 76, "end": 88, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 19 } }, "local": { "type": "Identifier", "start": 81, "end": 88, "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 19 } }, "name": "Helpers" } } ], "importKind": "value", "source": { "type": "Literal", "start": 94, "end": 111, "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 42 } }, "value": "../core/helpers", "rawValue": "../core/helpers", "raw": "'../core/helpers'" } }, { "type": "ImportDeclaration", "start": 114, "end": 159, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 45 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 123, "end": 134, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 20 } }, "imported": { "type": "Identifier", "start": 123, "end": 134, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 20 } }, "name": "lastCreated" }, "local": { "type": "Identifier", "start": 123, "end": 134, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 20 } }, "name": "lastCreated" } } ], "importKind": "value", "source": { "type": "Literal", "start": 142, "end": 158, "loc": { "start": { "line": 4, "column": 28 }, "end": { "line": 4, "column": 44 } }, "value": "../core/canvas", "rawValue": "../core/canvas", "raw": "'../core/canvas'" } }, { "type": "ImportDeclaration", "start": 161, "end": 220, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 59 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 170, "end": 181, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 20 } }, "imported": { "type": "Identifier", "start": 170, "end": 181, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 20 } }, "name": "exponential" }, "local": { "type": "Identifier", "start": 170, "end": 181, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 20 } }, "name": "exponential" } }, { "type": "ImportSpecifier", "start": 183, "end": 190, "loc": { "start": { "line": 5, "column": 22 }, "end": { "line": 5, "column": 29 } }, "imported": { "type": "Identifier", "start": 183, "end": 190, "loc": { "start": { "line": 5, "column": 22 }, "end": { "line": 5, "column": 29 } }, "name": "elastic" }, "local": { "type": "Identifier", "start": 183, "end": 190, "loc": { "start": { "line": 5, "column": 22 }, "end": { "line": 5, "column": 29 } }, "name": "elastic" } } ], "importKind": "value", "source": { "type": "Literal", "start": 198, "end": 219, "loc": { "start": { "line": 5, "column": 37 }, "end": { "line": 5, "column": 58 } }, "value": "../animation/easing", "rawValue": "../animation/easing", "raw": "'../animation/easing'" } }, { "type": "ExportDefaultDeclaration", "start": 224, "end": 31638, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 776, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 239, "end": 31638, "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 776, "column": 1 } }, "id": { "type": "Identifier", "start": 245, "end": 250, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 26 } }, "name": "Orbit" }, "superClass": null, "body": { "type": "ClassBody", "start": 251, "end": 31638, "loc": { "start": { "line": 7, "column": 27 }, "end": { "line": 776, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 258, "end": 3632, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 77, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 258, "end": 269, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 269, "end": 3632, "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 77, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "AssignmentPattern", "start": 270, "end": 304, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 50 } }, "operator": "=", "left": { "type": "Identifier", "start": 270, "end": 274, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 20 } }, "name": "view" }, "right": { "type": "CallExpression", "start": 277, "end": 304, "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 277, "end": 286, "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 32 } }, "object": { "type": "Identifier", "start": 277, "end": 282, "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 28 } }, "name": "Error" }, "property": { "type": "Identifier", "start": 283, "end": 286, "loc": { "start": { "line": 8, "column": 29 }, "end": { "line": 8, "column": 32 } }, "name": "log" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 287, "end": 303, "loc": { "start": { "line": 8, "column": 33 }, "end": { "line": 8, "column": 49 } }, "value": "View undefined", "rawValue": "View undefined", "raw": "\"View undefined\"" } ] } }, { "type": "AssignmentPattern", "start": 306, "end": 318, "loc": { "start": { "line": 8, "column": 52 }, "end": { "line": 8, "column": 64 } }, "operator": "=", "left": { "type": "Identifier", "start": 306, "end": 313, "loc": { "start": { "line": 8, "column": 52 }, "end": { "line": 8, "column": 59 } }, "name": "options" }, "right": { "type": "ObjectExpression", "start": 316, "end": 318, "loc": { "start": { "line": 8, "column": 62 }, "end": { "line": 8, "column": 64 } }, "properties": [] } } ], "body": { "type": "BlockStatement", "start": 320, "end": 3632, "loc": { "start": { "line": 8, "column": 66 }, "end": { "line": 77, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 331, "end": 348, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 331, "end": 347, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 331, "end": 340, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 17 } }, "object": { "type": "ThisExpression", "start": 331, "end": 335, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 336, "end": 340, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 17 } }, "name": "view" }, "computed": false }, "right": { "type": "Identifier", "start": 343, "end": 347, "loc": { "start": { "line": 9, "column": 20 }, "end": { "line": 9, "column": 24 } }, "name": "view" } } }, { "type": "ExpressionStatement", "start": 358, "end": 384, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 34 } }, "expression": { "type": "AssignmentExpression", "start": 358, "end": 383, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 33 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 358, "end": 369, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 19 } }, "object": { "type": "ThisExpression", "start": 358, "end": 362, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 363, "end": 369, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 19 } }, "name": "canvas" }, "computed": false }, "right": { "type": "MemberExpression", "start": 372, "end": 383, "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 33 } }, "object": { "type": "Identifier", "start": 372, "end": 376, "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 26 } }, "name": "view" }, "property": { "type": "Identifier", "start": 377, "end": 383, "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 33 } }, "name": "canvas" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 394, "end": 414, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 28 } }, "expression": { "type": "AssignmentExpression", "start": 394, "end": 413, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 27 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 394, "end": 402, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 16 } }, "object": { "type": "ThisExpression", "start": 394, "end": 398, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 399, "end": 402, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 16 } }, "name": "dom" }, "computed": false }, "right": { "type": "MemberExpression", "start": 405, "end": 413, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 27 } }, "object": { "type": "Identifier", "start": 405, "end": 409, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 23 } }, "name": "view" }, "property": { "type": "Identifier", "start": 410, "end": 413, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 27 } }, "name": "dom" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 424, "end": 468, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 52 } }, "expression": { "type": "AssignmentExpression", "start": 424, "end": 467, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 51 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 424, "end": 435, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 19 } }, "object": { "type": "ThisExpression", "start": 424, "end": 428, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 429, "end": 435, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 19 } }, "name": "camera" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 438, "end": 467, "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 51 } }, "left": { "type": "MemberExpression", "start": 438, "end": 452, "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 36 } }, "object": { "type": "Identifier", "start": 438, "end": 445, "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 29 } }, "name": "options" }, "property": { "type": "Identifier", "start": 446, "end": 452, "loc": { "start": { "line": 12, "column": 30 }, "end": { "line": 12, "column": 36 } }, "name": "camera" }, "computed": false }, "operator": "||", "right": { "type": "MemberExpression", "start": 456, "end": 467, "loc": { "start": { "line": 12, "column": 40 }, "end": { "line": 12, "column": 51 } }, "object": { "type": "Identifier", "start": 456, "end": 460, "loc": { "start": { "line": 12, "column": 40 }, "end": { "line": 12, "column": 44 } }, "name": "view" }, "property": { "type": "Identifier", "start": 461, "end": 467, "loc": { "start": { "line": 12, "column": 45 }, "end": { "line": 12, "column": 51 } }, "name": "camera" }, "computed": false } } } }, { "type": "ExpressionStatement", "start": 480, "end": 510, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 38 } }, "expression": { "type": "AssignmentExpression", "start": 480, "end": 509, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 37 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 480, "end": 491, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 19 } }, "object": { "type": "ThisExpression", "start": 480, "end": 484, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 485, "end": 491, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 19 } }, "name": "easing" }, "computed": false }, "right": { "type": "MemberExpression", "start": 494, "end": 509, "loc": { "start": { "line": 14, "column": 22 }, "end": { "line": 14, "column": 37 } }, "object": { "type": "Identifier", "start": 494, "end": 505, "loc": { "start": { "line": 14, "column": 22 }, "end": { "line": 14, "column": 33 } }, "name": "exponential" }, "property": { "type": "Identifier", "start": 506, "end": 509, "loc": { "start": { "line": 14, "column": 34 }, "end": { "line": 14, "column": 37 } }, "name": "out" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 520, "end": 541, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 520, "end": 540, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 520, "end": 533, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 21 } }, "object": { "type": "ThisExpression", "start": 520, "end": 524, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "start": 525, "end": 533, "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 21 } }, "name": "duration" }, "computed": false }, "right": { "type": "Literal", "start": 536, "end": 540, "loc": { "start": { "line": 15, "column": 24 }, "end": { "line": 15, "column": 28 } }, "value": 1000, "rawValue": 1000, "raw": "1000" } } }, { "type": "ExpressionStatement", "start": 553, "end": 574, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 553, "end": 573, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 553, "end": 565, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 20 } }, "object": { "type": "ThisExpression", "start": 553, "end": 557, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } } }, "property": { "type": "Identifier", "start": 558, "end": 565, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 20 } }, "name": "_zoomed" }, "computed": false }, "right": { "type": "Literal", "start": 568, "end": 573, "loc": { "start": { "line": 17, "column": 23