UNPKG

awv3

Version:
1,564 lines (1,563 loc) 4.16 MB
{ "type": "Program", "start": 0, "end": 31127, "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": 27, "end": 66, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 39 } }, "specifiers": [ { "type": "ImportNamespaceSpecifier", "start": 34, "end": 44, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 17 } }, "local": { "type": "Identifier", "start": 39, "end": 44, "loc": { "start": { "line": 2, "column": 12 }, "end": { "line": 2, "column": 17 } }, "name": "Error" } } ], "importKind": "value", "source": { "type": "Literal", "start": 50, "end": 65, "loc": { "start": { "line": 2, "column": 23 }, "end": { "line": 2, "column": 38 } }, "value": "../core/error", "rawValue": "../core/error", "raw": "'../core/error'" } }, { "type": "ImportDeclaration", "start": 67, "end": 110, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 43 } }, "specifiers": [ { "type": "ImportNamespaceSpecifier", "start": 74, "end": 86, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 19 } }, "local": { "type": "Identifier", "start": 79, "end": 86, "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 19 } }, "name": "Helpers" } } ], "importKind": "value", "source": { "type": "Literal", "start": 92, "end": 109, "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 42 } }, "value": "../core/helpers", "rawValue": "../core/helpers", "raw": "'../core/helpers'" } }, { "type": "ImportDeclaration", "start": 111, "end": 156, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 45 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 120, "end": 131, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 20 } }, "imported": { "type": "Identifier", "start": 120, "end": 131, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 20 } }, "name": "lastCreated" }, "local": { "type": "Identifier", "start": 120, "end": 131, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 20 } }, "name": "lastCreated" } } ], "importKind": "value", "source": { "type": "Literal", "start": 139, "end": 155, "loc": { "start": { "line": 4, "column": 28 }, "end": { "line": 4, "column": 44 } }, "value": "../core/canvas", "rawValue": "../core/canvas", "raw": "'../core/canvas'" } }, { "type": "ImportDeclaration", "start": 157, "end": 216, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 59 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 166, "end": 177, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 20 } }, "imported": { "type": "Identifier", "start": 166, "end": 177, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 20 } }, "name": "exponential" }, "local": { "type": "Identifier", "start": 166, "end": 177, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 20 } }, "name": "exponential" } }, { "type": "ImportSpecifier", "start": 179, "end": 186, "loc": { "start": { "line": 5, "column": 22 }, "end": { "line": 5, "column": 29 } }, "imported": { "type": "Identifier", "start": 179, "end": 186, "loc": { "start": { "line": 5, "column": 22 }, "end": { "line": 5, "column": 29 } }, "name": "elastic" }, "local": { "type": "Identifier", "start": 179, "end": 186, "loc": { "start": { "line": 5, "column": 22 }, "end": { "line": 5, "column": 29 } }, "name": "elastic" } } ], "importKind": "value", "source": { "type": "Literal", "start": 194, "end": 215, "loc": { "start": { "line": 5, "column": 37 }, "end": { "line": 5, "column": 58 } }, "value": "../animation/easing", "rawValue": "../animation/easing", "raw": "'../animation/easing'" } }, { "type": "ExportDefaultDeclaration", "start": 218, "end": 30853, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 776, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 233, "end": 30853, "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 776, "column": 1 } }, "id": { "type": "Identifier", "start": 239, "end": 244, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 26 } }, "name": "Orbit" }, "superClass": null, "body": { "type": "ClassBody", "start": 245, "end": 30853, "loc": { "start": { "line": 7, "column": 27 }, "end": { "line": 776, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 251, "end": 3542, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 77, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 251, "end": 262, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 262, "end": 3542, "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 77, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "AssignmentPattern", "start": 263, "end": 297, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 50 } }, "operator": "=", "left": { "type": "Identifier", "start": 263, "end": 267, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 20 } }, "name": "view" }, "right": { "type": "CallExpression", "start": 270, "end": 297, "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 270, "end": 279, "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 32 } }, "object": { "type": "Identifier", "start": 270, "end": 275, "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 28 } }, "name": "Error" }, "property": { "type": "Identifier", "start": 276, "end": 279, "loc": { "start": { "line": 8, "column": 29 }, "end": { "line": 8, "column": 32 } }, "name": "log" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 280, "end": 296, "loc": { "start": { "line": 8, "column": 33 }, "end": { "line": 8, "column": 49 } }, "value": "View undefined", "rawValue": "View undefined", "raw": "\"View undefined\"" } ] } }, { "type": "AssignmentPattern", "start": 299, "end": 311, "loc": { "start": { "line": 8, "column": 52 }, "end": { "line": 8, "column": 64 } }, "operator": "=", "left": { "type": "Identifier", "start": 299, "end": 306, "loc": { "start": { "line": 8, "column": 52 }, "end": { "line": 8, "column": 59 } }, "name": "options" }, "right": { "type": "ObjectExpression", "start": 309, "end": 311, "loc": { "start": { "line": 8, "column": 62 }, "end": { "line": 8, "column": 64 } }, "properties": [] } } ], "body": { "type": "BlockStatement", "start": 313, "end": 3542, "loc": { "start": { "line": 8, "column": 66 }, "end": { "line": 77, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 323, "end": 340, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 323, "end": 339, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 323, "end": 332, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 17 } }, "object": { "type": "ThisExpression", "start": 323, "end": 327, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 328, "end": 332, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 17 } }, "name": "view" }, "computed": false }, "right": { "type": "Identifier", "start": 335, "end": 339, "loc": { "start": { "line": 9, "column": 20 }, "end": { "line": 9, "column": 24 } }, "name": "view" } } }, { "type": "ExpressionStatement", "start": 349, "end": 375, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 34 } }, "expression": { "type": "AssignmentExpression", "start": 349, "end": 374, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 33 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 349, "end": 360, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 19 } }, "object": { "type": "ThisExpression", "start": 349, "end": 353, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 354, "end": 360, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 19 } }, "name": "canvas" }, "computed": false }, "right": { "type": "MemberExpression", "start": 363, "end": 374, "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 33 } }, "object": { "type": "Identifier", "start": 363, "end": 367, "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 26 } }, "name": "view" }, "property": { "type": "Identifier", "start": 368, "end": 374, "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 33 } }, "name": "canvas" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 384, "end": 404, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 28 } }, "expression": { "type": "AssignmentExpression", "start": 384, "end": 403, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 27 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 384, "end": 392, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 16 } }, "object": { "type": "ThisExpression", "start": 384, "end": 388, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 389, "end": 392, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 16 } }, "name": "dom" }, "computed": false }, "right": { "type": "MemberExpression", "start": 395, "end": 403, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 27 } }, "object": { "type": "Identifier", "start": 395, "end": 399, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 23 } }, "name": "view" }, "property": { "type": "Identifier", "start": 400, "end": 403, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 27 } }, "name": "dom" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 413, "end": 457, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 52 } }, "expression": { "type": "AssignmentExpression", "start": 413, "end": 456, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 51 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 413, "end": 424, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 19 } }, "object": { "type": "ThisExpression", "start": 413, "end": 417, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 418, "end": 424, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 19 } }, "name": "camera" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 427, "end": 456, "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 51 } }, "left": { "type": "MemberExpression", "start": 427, "end": 441, "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 36 } }, "object": { "type": "Identifier", "start": 427, "end": 434, "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 29 } }, "name": "options" }, "property": { "type": "Identifier", "start": 435, "end": 441, "loc": { "start": { "line": 12, "column": 30 }, "end": { "line": 12, "column": 36 } }, "name": "camera" }, "computed": false }, "operator": "||", "right": { "type": "MemberExpression", "start": 445, "end": 456, "loc": { "start": { "line": 12, "column": 40 }, "end": { "line": 12, "column": 51 } }, "object": { "type": "Identifier", "start": 445, "end": 449, "loc": { "start": { "line": 12, "column": 40 }, "end": { "line": 12, "column": 44 } }, "name": "view" }, "property": { "type": "Identifier", "start": 450, "end": 456, "loc": { "start": { "line": 12, "column": 45 }, "end": { "line": 12, "column": 51 } }, "name": "camera" }, "computed": false } } } }, { "type": "ExpressionStatement", "start": 467, "end": 497, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 38 } }, "expression": { "type": "AssignmentExpression", "start": 467, "end": 496, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 37 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 467, "end": 478, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 19 } }, "object": { "type": "ThisExpression", "start": 467, "end": 471, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 472, "end": 478, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 19 } }, "name": "easing" }, "computed": false }, "right": { "type": "MemberExpression", "start": 481, "end": 496, "loc": { "start": { "line": 14, "column": 22 }, "end": { "line": 14, "column": 37 } }, "object": { "type": "Identifier", "start": 481, "end": 492, "loc": { "start": { "line": 14, "column": 22 }, "end": { "line": 14, "column": 33 } }, "name": "exponential" }, "property": { "type": "Identifier", "start": 493, "end": 496, "loc": { "start": { "line": 14, "column": 34 }, "end": { "line": 14, "column": 37 } }, "name": "out" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 506, "end": 527, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 506, "end": 526, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 506, "end": 519, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 21 } }, "object": { "type": "ThisExpression", "start": 506, "end": 510, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "start": 511, "end": 519, "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 21 } }, "name": "duration" }, "computed": false }, "right": { "type": "Literal", "start": 522, "end": 526, "loc": { "start": { "line": 15, "column": 24 }, "end": { "line": 15, "column": 28 } }, "value": 1000, "rawValue": 1000, "raw": "1000" } } }, { "type": "ExpressionStatement", "start": 537, "end": 558, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 537, "end": 557, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 537, "end": 549, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 20 } }, "object": { "type": "ThisExpression", "start": 537, "end": 541, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } } }, "property": { "type": "Identifier", "start": 542, "end": 549, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 20 } }, "name": "_zoomed" }, "computed": false }, "right": { "type": "Literal", "start": 552, "end": 557, "loc": { "start": { "line": 17, "column": 23