UNPKG

awv3

Version:
1,585 lines 868 kB
{ "type": "File", "start": 0, "end": 4904, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 144, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 4904, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 144, "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": 56, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 24 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 39, "end": 43, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 11 } }, "local": { "type": "Identifier", "start": 39, "end": 43, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 11 }, "identifierName": "pako" }, "name": "pako" } } ], "source": { "type": "StringLiteral", "start": 49, "end": 55, "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 23 } }, "extra": { "rawValue": "pako", "raw": "'pako'" }, "value": "pako" } }, { "type": "ImportDeclaration", "start": 57, "end": 97, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 40 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 64, "end": 70, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 } }, "local": { "type": "Identifier", "start": 64, "end": 70, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 }, "identifierName": "base64" }, "name": "base64" } } ], "source": { "type": "StringLiteral", "start": 76, "end": 96, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 39 } }, "extra": { "rawValue": "base64-arraybuffer", "raw": "'base64-arraybuffer'" }, "value": "base64-arraybuffer" } }, { "type": "ImportDeclaration", "start": 98, "end": 137, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 39 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 105, "end": 112, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 14 } }, "local": { "type": "Identifier", "start": 105, "end": 112, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 14 }, "identifierName": "Object3" }, "name": "Object3" } } ], "source": { "type": "StringLiteral", "start": 118, "end": 136, "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 38 } }, "extra": { "rawValue": "../three/object3", "raw": "'../three/object3'" }, "value": "../three/object3" } }, { "type": "ImportDeclaration", "start": 138, "end": 188, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 50 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 147, "end": 158, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 20 } }, "imported": { "type": "Identifier", "start": 147, "end": 158, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 20 }, "identifierName": "exponential" }, "name": "exponential" }, "local": { "type": "Identifier", "start": 147, "end": 158, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 20 }, "identifierName": "exponential" }, "name": "exponential" } } ], "source": { "type": "StringLiteral", "start": 166, "end": 187, "loc": { "start": { "line": 5, "column": 28 }, "end": { "line": 5, "column": 49 } }, "extra": { "rawValue": "../animation/easing", "raw": "'../animation/easing'" }, "value": "../animation/easing" } }, { "type": "ExportNamedDeclaration", "start": 190, "end": 522, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 20, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 197, "end": 522, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 20, "column": 1 } }, "id": { "type": "Identifier", "start": 203, "end": 207, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 17 }, "identifierName": "Pool" }, "name": "Pool" }, "superClass": { "type": "Identifier", "start": 216, "end": 223, "loc": { "start": { "line": 7, "column": 26 }, "end": { "line": 7, "column": 33 }, "identifierName": "Object3" }, "name": "Object3" }, "body": { "type": "ClassBody", "start": 224, "end": 522, "loc": { "start": { "line": 7, "column": 34 }, "end": { "line": 20, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 230, "end": 483, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 15, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 230, "end": 241, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "ObjectPattern", "start": 242, "end": 253, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 27 } }, "properties": [ { "type": "ObjectProperty", "start": 244, "end": 251, "loc": { "start": { "line": 8, "column": 18 }, "end": { "line": 8, "column": 25 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 244, "end": 251, "loc": { "start": { "line": 8, "column": 18 }, "end": { "line": 8, "column": 25 }, "identifierName": "session" }, "name": "session" }, "value": { "type": "Identifier", "start": 244, "end": 251, "loc": { "start": { "line": 8, "column": 18 }, "end": { "line": 8, "column": 25 }, "identifierName": "session" }, "name": "session" }, "extra": { "shorthand": true } } ] } ], "body": { "type": "BlockStatement", "start": 255, "end": 483, "loc": { "start": { "line": 8, "column": 29 }, "end": { "line": 15, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 265, "end": 273, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 16 } }, "expression": { "type": "CallExpression", "start": 265, "end": 272, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 15 } }, "callee": { "type": "Super", "start": 265, "end": 270, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 282, "end": 305, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 282, "end": 304, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 282, "end": 294, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 20 } }, "object": { "type": "ThisExpression", "start": 282, "end": 286, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 287, "end": 294, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 20 }, "identifierName": "session" }, "name": "session" }, "computed": false }, "right": { "type": "Identifier", "start": 297, "end": 304, "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 30 }, "identifierName": "session" }, "name": "session" } } }, { "type": "ExpressionStatement", "start": 314, "end": 345, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 39 } }, "expression": { "type": "AssignmentExpression", "start": 314, "end": 344, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 314, "end": 328, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 22 } }, "object": { "type": "ThisExpression", "start": 314, "end": 318, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 319, "end": 328, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 22 }, "identifierName": "temporary" }, "name": "temporary" }, "computed": false }, "right": { "type": "NewExpression", "start": 331, "end": 344, "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 38 } }, "callee": { "type": "Identifier", "start": 335, "end": 342, "loc": { "start": { "line": 11, "column": 29 }, "end": { "line": 11, "column": 36 }, "identifierName": "Object3" }, "name": "Object3" }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 354, "end": 399, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 53 } }, "expression": { "type": "AssignmentExpression", "start": 354, "end": 398, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 52 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 354, "end": 390, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 44 } }, "object": { "type": "MemberExpression", "start": 354, "end": 368, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 22 } }, "object": { "type": "ThisExpression", "start": 354, "end": 358, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 359, "end": 368, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 22 }, "identifierName": "temporary" }, "name": "temporary" }, "computed": false }, "property": { "type": "Identifier", "start": 369, "end": 390, "loc": { "start": { "line": 12, "column": 23 }, "end": { "line": 12, "column": 44 }, "identifierName": "updateParentMaterials" }, "name": "updateParentMaterials" }, "computed": false }, "right": { "type": "BooleanLiteral", "start": 393, "end": 398, "loc": { "start": { "line": 12, "column": 47 }, "end": { "line": 12, "column": 52 } }, "value": false } } }, { "type": "ExpressionStatement", "start": 408, "end": 442, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 42 } }, "expression": { "type": "AssignmentExpression", "start": 408, "end": 441, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 41 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 408, "end": 433, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 33 } }, "object": { "type": "MemberExpression", "start": 408, "end": 422, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 22 } }, "object": { "type": "ThisExpression", "start": 408, "end": 412, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "start": 413, "end": 422, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 22 }, "identifierName": "temporary" }, "name": "temporary" }, "computed": false }, "property": { "type": "Identifier", "start": 423, "end": 433, "loc": { "start": { "line": 13, "column": 23 }, "end": { "line": 13, "column": 33 }, "identifierName": "measurable" }, "name": "measurable" }, "computed": false }, "right": { "type": "BooleanLiteral", "start": 436, "end": 441, "loc": { "start": { "line": 13, "column": 36 }, "end": { "line": 13, "column": 41 } }, "value": false } } }, { "type": "ExpressionStatement", "start": 451, "end": 477, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 34 } }, "expression": { "type": "CallExpression", "start": 451, "end": 476, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 33 } }, "callee": { "type": "MemberExpression", "start": 451, "end": 460, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 17 } }, "object": { "type": "Super", "start": 451, "end": 456, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 13 } } }, "property": { "type": "Identifier", "start": 457, "end": 460, "loc": { "start": { "line": 14, "column": 14 }, "end": { "line": 14, "column": 17 }, "identifierName": "add" }, "name": "add" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 461, "end": 475, "loc": { "start": { "line": 14, "column": 18 }, "end": { "line": 14, "column": 32 } }, "object": { "type": "ThisExpression", "start": 461, "end": 465, "loc": { "start": { "line": 14, "column": 18 }, "end": { "line": 14, "column": 22 } } }, "property": { "type": "Identifier", "start": 466, "end": 475, "loc": { "start": { "line": 14, "column": 23 }, "end": { "line": 14, "column": 32 }, "identifierName": "temporary" }, "name": "temporary" }, "computed": false } ] } } ], "directives": [] } }, { "type": "ClassMethod", "start": 489, "end": 520, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 19, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 489, "end": 495, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 10 }, "identifierName": "update" }, "name": "update" }, "static": false, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 498, "end": 520, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 19, "column": 5 } }, "body": [], "directives": [], "leadingComments": null, "innerComments": [ { "type": "CommentLine", "value": " ...", "start": 508, "end": 514, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 14 } } } ] } } ] }, "leadingComments": [], "trailingComments": [] } }, { "type": "ExportNamedDeclaration", "start": 524, "end": 1277, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 40, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 531, "end": 1277, "loc": { "start": { "line": 22, "column": 7 }, "end": { "line": 40, "column": 1 } }, "id": { "type": "Identifier", "start": 537, "end": 552, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 28 }, "identifierName": "ObjectPrototype" }, "name": "ObjectPrototype" }, "superClass": { "type": "Identifier", "start": 561, "end": 568, "loc": { "start": { "line": 22, "column": 37 }, "end": { "line": 22, "column": 44 }, "identifierName": "Object3" }, "name": "Object3" }, "body": { "type": "ClassBody", "start": 569, "end": 1277, "loc": { "start": { "line": 22, "column": 45 }, "end": { "line": 40, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 575, "end": 1275, "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 39, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 575, "end": 586, "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 23, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "ObjectPattern", "start": 587, "end": 598, "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 23, "column": 27 } }, "properties": [ { "type": "ObjectProperty", "start": 589, "end": 596, "loc": { "start": { "line": 23, "column": 18 }, "end": { "line": 23, "column": 25 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 589, "end": 596, "loc": { "start": { "line": 23, "column": 18 }, "end": { "line": 23, "column": 25 }, "identifierName": "session" }, "name": "session" }, "value": { "type": "Identifier", "start": 589, "end": 596, "loc": { "start": { "line": 23, "column": 18 }, "end": { "line": 23, "column": 25 }, "identifierName": "session" }, "name": "session" }, "extra": { "shorthand": true } } ] } ], "body": { "type": "BlockStatement", "start": 600, "end": 1275, "loc": { "start": { "line": 23, "column": 29 }, "end": { "line": 39, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 610, "end": 618, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 16 } }, "expression": { "type": "CallExpression", "start": 610, "end": 617, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 15 } }, "callee": { "type": "Super", "start": 610, "end": 615, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 627, "end": 1269, "loc": { "start": { "line": 25, "column": 8 }, "end": { "li