UNPKG

awv3

Version:
1,482 lines (1,481 loc) 1.13 MB
{ "type": "Program", "start": 0, "end": 10986, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 371, "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": 78, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 50 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 37, "end": 48, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 20 } }, "imported": { "type": "Identifier", "start": 37, "end": 48, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 20 } }, "name": "exponential" }, "local": { "type": "Identifier", "start": 37, "end": 48, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 20 } }, "name": "exponential" } } ], "importKind": "value", "source": { "type": "Literal", "start": 56, "end": 77, "loc": { "start": { "line": 2, "column": 28 }, "end": { "line": 2, "column": 49 } }, "value": "../animation/easing", "rawValue": "../animation/easing", "raw": "'../animation/easing'" } }, { "type": "VariableDeclaration", "start": 82, "end": 98, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 16 } }, "declarations": [ { "type": "VariableDeclarator", "start": 86, "end": 97, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 15 } }, "id": { "type": "Identifier", "start": 86, "end": 92, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 10 } }, "name": "tweens" }, "init": { "type": "ArrayExpression", "start": 95, "end": 97, "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 15 } }, "elements": [] } } ], "kind": "let" }, { "type": "ExportDefaultDeclaration", "start": 102, "end": 8681, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 291, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 117, "end": 8681, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 291, "column": 1 } }, "id": { "type": "Identifier", "start": 123, "end": 128, "loc": { "start": { "line": 6, "column": 21 }, "end": { "line": 6, "column": 26 } }, "name": "Tween" }, "superClass": null, "body": { "type": "ClassBody", "start": 129, "end": 8681, "loc": { "start": { "line": 6, "column": 27 }, "end": { "line": 291, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 136, "end": 1263, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 38, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 136, "end": 147, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 147, "end": 1263, "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 38, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 148, "end": 154, "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 22 } }, "name": "parent" }, { "type": "Identifier", "start": 156, "end": 166, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 34 } }, "name": "properties" } ], "body": { "type": "BlockStatement", "start": 168, "end": 1263, "loc": { "start": { "line": 7, "column": 36 }, "end": { "line": 38, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 179, "end": 200, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 179, "end": 199, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 179, "end": 190, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 19 } }, "object": { "type": "ThisExpression", "start": 179, "end": 183, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 184, "end": 190, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 19 } }, "name": "parent" }, "computed": false }, "right": { "type": "Identifier", "start": 193, "end": 199, "loc": { "start": { "line": 8, "column": 22 }, "end": { "line": 8, "column": 28 } }, "name": "parent" } } }, { "type": "ExpressionStatement", "start": 210, "end": 237, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 35 } }, "expression": { "type": "AssignmentExpression", "start": 210, "end": 236, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 34 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 210, "end": 229, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 27 } }, "object": { "type": "ThisExpression", "start": 210, "end": 214, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 215, "end": 229, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 27 } }, "name": "internalUpdate" }, "computed": false }, "right": { "type": "Literal", "start": 232, "end": 236, "loc": { "start": { "line": 9, "column": 30 }, "end": { "line": 9, "column": 34 } }, "value": null, "rawValue": null, "raw": "null" } } }, { "type": "ExpressionStatement", "start": 247, "end": 270, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 247, "end": 269, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 247, "end": 261, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 22 } }, "object": { "type": "ThisExpression", "start": 247, "end": 251, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 252, "end": 261, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 22 } }, "name": "isPlaying" }, "computed": false }, "right": { "type": "Literal", "start": 264, "end": 269, "loc": { "start": { "line": 10, "column": 25 }, "end": { "line": 10, "column": 30 } }, "value": false, "rawValue": false, "raw": "false" } } }, { "type": "ExpressionStatement", "start": 280, "end": 300, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 28 } }, "expression": { "type": "AssignmentExpression", "start": 280, "end": 299, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 27 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 280, "end": 291, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 19 } }, "object": { "type": "ThisExpression", "start": 280, "end": 284, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 285, "end": 291, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 19 } }, "name": "paused" }, "computed": false }, "right": { "type": "Literal", "start": 294, "end": 299, "loc": { "start": { "line": 11, "column": 22 }, "end": { "line": 11, "column": 27 } }, "value": false, "rawValue": false, "raw": "false" } } }, { "type": "ExpressionStatement", "start": 310, "end": 328, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 26 } }, "expression": { "type": "AssignmentExpression", "start": 310, "end": 327, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 25 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 310, "end": 323, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 21 } }, "object": { "type": "ThisExpression", "start": 310, "end": 314, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 315, "end": 323, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 21 } }, "name": "duration" }, "computed": false }, "right": { "type": "Literal", "start": 326, "end": 327, "loc": { "start": { "line": 12, "column": 24 }, "end": { "line": 12, "column": 25 } }, "value": 0, "rawValue": 0, "raw": "0" } } }, { "type": "ExpressionStatement", "start": 338, "end": 359, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 338, "end": 358, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 338, "end": 354, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 24 } }, "object": { "type": "ThisExpression", "start": 338, "end": 342, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "start": 343, "end": 354, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 24 } }, "name": "repeatTimes" }, "computed": false }, "right": { "type": "Literal", "start": 357, "end": 358, "loc": { "start": { "line": 13, "column": 27 }, "end": { "line": 13, "column": 28 } }, "value": 0, "rawValue": 0, "raw": "0" } } }, { "type": "ExpressionStatement", "start": 369, "end": 407, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 46 } }, "expression": { "type": "AssignmentExpression", "start": 369, "end": 406, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 45 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 369, "end": 384, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 23 } }, "object": { "type": "ThisExpression", "start": 369, "end": 373, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 374, "end": 384, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 23 } }, "name": "repeatMode" }, "computed": false }, "right": { "type": "MemberExpression", "start": 387, "end": 406, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 45 } }, "object": { "type": "MemberExpression", "start": 387, "end": 399, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 38 } }, "object": { "type": "Identifier", "start": 387, "end": 392, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 31 } }, "name": "Tween" }, "property": { "type": "Identifier", "start": 393, "end": 399, "loc": { "start": { "line": 14, "column": 32 }, "end": { "line": 14, "column": 38 } }, "name": "Repeat" }, "computed": false }, "property": { "type": "Identifier", "start": 400, "end": 406, "loc": { "start": { "line": 14, "column": 39 }, "end": { "line": 14, "column": 45 } }, "name": "Normal" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 417, "end": 439, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 30 } }, "expression": { "type": "AssignmentExpression", "start": 417, "end": 438, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 29 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 417, "end": 430, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 21 } }, "object": { "type": "ThisExpression", "start": 417, "end": 421, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "start": 422, "end": 430, "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 21 } }, "name": "reversed" }, "computed": false }, "right": { "type": "Literal", "start": 433, "end": 438, "loc": { "start": { "line": 15, "column": 24 }, "end": { "line": 15, "column": 29 } }, "value": false, "rawValue": false, "raw": "false" } } }, { "type": "ExpressionStatement", "start": 449, "end": 468, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 27 } }, "expression": { "type": "AssignmentExpression", "start": 449, "end": 467, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 26 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 449, "end": 463, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 22 } }, "object": { "type": "ThisExpression", "start": 449, "end": 453, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 } } }, "property": { "type": "Identifier", "start": 454, "end": 463, "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 22 } }, "name": "delayTime" }, "computed": false }, "right": { "type": "Literal", "start": 466, "end": 467, "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 26 } }, "value": 0, "rawValue": 0, "raw": "0" } } }, { "type": "ExpressionStatement", "start": 478, "end": 512, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 42 } }, "expression": { "type": "AssignmentExpression", "start": 478, "end": 511, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 41 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 478, "end": 503, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 33 } }, "object": { "type": "ThisExpression", "start": 478, "end": 482, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } } }, "property": { "type": "Identifier", "start": 483, "end": 503, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 33 } }, "name": "onStartCallbackFired" }, "computed": false }, "right": { "type": "Literal", "start": 506, "end": 511, "loc": { "start": { "line": 17, "column": 36 }, "end": { "line": 17, "column": 41 } }, "value": false, "rawValue": false, "raw": "false" } } }, { "type": "ExpressionStatement", "start": 522, "end": 560, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 46 } }, "expression": { "type": "AssignmentExpression", "start": 522, "end": 559, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 45 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 522, "end": 541, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 27 } }, "object": { "type": "ThisExpression", "start": 522, "end": 526, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 12 } } }, "property": { "type": "Identifier", "start": 527, "end": 541, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 27