UNPKG

awv3

Version:
1,468 lines (1,467 loc) 393 kB
{ "type": "File", "start": 0, "end": 1628, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 50, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 1628, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 50, "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": 89, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 57 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 39, "end": 52, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 20 } }, "local": { "type": "Identifier", "start": 39, "end": 52, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 20 }, "identifierName": "InfinitePlane" }, "name": "InfinitePlane" } } ], "source": { "type": "StringLiteral", "start": 58, "end": 88, "loc": { "start": { "line": 2, "column": 26 }, "end": { "line": 2, "column": 56 } }, "extra": { "rawValue": "../../../three/infiniteplane", "raw": "'../../../three/infiniteplane'" }, "value": "../../../three/infiniteplane" } }, { "type": "ImportDeclaration", "start": 90, "end": 124, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 34 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 97, "end": 109, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 19 } }, "local": { "type": "Identifier", "start": 97, "end": 109, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 19 }, "identifierName": "BaseGraphics" }, "name": "BaseGraphics" } } ], "source": { "type": "StringLiteral", "start": 115, "end": 123, "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 33 } }, "extra": { "rawValue": "./base", "raw": "'./base'" }, "value": "./base" } }, { "type": "VariableDeclaration", "start": 126, "end": 149, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 23 } }, "declarations": [ { "type": "VariableDeclarator", "start": 132, "end": 148, "loc": { "start": { "line": 5, "column": 6 }, "end": { "line": 5, "column": 22 } }, "id": { "type": "Identifier", "start": 132, "end": 142, "loc": { "start": { "line": 5, "column": 6 }, "end": { "line": 5, "column": 16 }, "identifierName": "LinesCount" }, "name": "LinesCount" }, "init": { "type": "NumericLiteral", "start": 145, "end": 148, "loc": { "start": { "line": 5, "column": 19 }, "end": { "line": 5, "column": 22 } }, "extra": { "rawValue": 1000, "raw": "1e3" }, "value": 1000 } } ], "kind": "const" }, { "type": "ExportDefaultDeclaration", "start": 151, "end": 1627, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 49, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 166, "end": 1627, "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 49, "column": 1 } }, "id": { "type": "Identifier", "start": 172, "end": 178, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 27 }, "identifierName": "Sketch" }, "name": "Sketch" }, "superClass": { "type": "Identifier", "start": 187, "end": 199, "loc": { "start": { "line": 7, "column": 36 }, "end": { "line": 7, "column": 48 }, "identifierName": "BaseGraphics" }, "name": "BaseGraphics" }, "body": { "type": "ClassBody", "start": 200, "end": 1627, "loc": { "start": { "line": 7, "column": 49 }, "end": { "line": 49, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 206, "end": 568, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 20, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 206, "end": 217, "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": "Identifier", "start": 218, "end": 225, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 23 }, "identifierName": "session" }, "name": "session" } ], "body": { "type": "BlockStatement", "start": 227, "end": 568, "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 20, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 237, "end": 245, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 16 } }, "expression": { "type": "CallExpression", "start": 237, "end": 244, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 15 } }, "callee": { "type": "Super", "start": 237, "end": 242, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 254, "end": 277, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 254, "end": 276, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 254, "end": 266, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 20 } }, "object": { "type": "ThisExpression", "start": 254, "end": 258, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 259, "end": 266, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 20 }, "identifierName": "session" }, "name": "session" }, "computed": false }, "right": { "type": "Identifier", "start": 269, "end": 276, "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 30 }, "identifierName": "session" }, "name": "session" } } }, { "type": "ExpressionStatement", "start": 286, "end": 317, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 39 } }, "expression": { "type": "AssignmentExpression", "start": 286, "end": 316, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 286, "end": 294, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 16 } }, "object": { "type": "ThisExpression", "start": 286, "end": 290, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 291, "end": 294, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 16 }, "identifierName": "day" }, "name": "day" }, "computed": false }, "right": { "type": "MemberExpression", "start": 297, "end": 316, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 38 } }, "object": { "type": "MemberExpression", "start": 297, "end": 312, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 34 } }, "object": { "type": "Identifier", "start": 297, "end": 304, "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 26 }, "identifierName": "session" }, "name": "session" }, "property": { "type": "Identifier", "start": 305, "end": 312, "loc": { "start": { "line": 11, "column": 27 }, "end": { "line": 11, "column": 34 }, "identifierName": "globals" }, "name": "globals" }, "computed": false }, "property": { "type": "Identifier", "start": 313, "end": 316, "loc": { "start": { "line": 11, "column": 35 }, "end": { "line": 11, "column": 38 }, "identifierName": "day" }, "name": "day" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 326, "end": 350, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 32 } }, "expression": { "type": "AssignmentExpression", "start": 326, "end": 349, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 31 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 326, "end": 341, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 23 } }, "object": { "type": "ThisExpression", "start": 326, "end": 330, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 331, "end": 341, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 23 }, "identifierName": "measurable" }, "name": "measurable" }, "computed": false }, "right": { "type": "BooleanLiteral", "start": 344, "end": 349, "loc": { "start": { "line": 12, "column": 26 }, "end": { "line": 12, "column": 31 } }, "value": false } } }, { "type": "ExpressionStatement", "start": 359, "end": 381, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 30 } }, "expression": { "type": "AssignmentExpression", "start": 359, "end": 380, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 29 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 359, "end": 368, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 17 } }, "object": { "type": "ThisExpression", "start": 359, "end": 363, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "start": 364, "end": 368, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 17 }, "identifierName": "step" }, "name": "step" }, "computed": false }, "right": { "type": "Identifier", "start": 371, "end": 380, "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 29 }, "identifierName": "undefined" }, "name": "undefined" } } }, { "type": "ExpressionStatement", "start": 390, "end": 412, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 30 } }, "expression": { "type": "AssignmentExpression", "start": 390, "end": 411, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 29 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 390, "end": 399, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 17 } }, "object": { "type": "ThisExpression", "start": 390, "end": 394, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 395, "end": 399, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 17 }, "identifierName": "grid" }, "name": "grid" }, "computed": false }, "right": { "type": "Identifier", "start": 402, "end": 411, "loc": { "start": { "line": 14, "column": 20 }, "end": { "line": 14, "column": 29 }, "identifierName": "undefined" }, "name": "undefined" } } }, { "type": "ExpressionStatement", "start": 421, "end": 443, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 30 } }, "expression": { "type": "AssignmentExpression", "start": 421, "end": 442, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 29 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 421, "end": 430, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 17 } }, "object": { "type": "ThisExpression", "start": 421, "end": 425, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "start": 426, "end": 430, "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 17 }, "identifierName": "axes" }, "name": "axes" }, "computed": false }, "right": { "type": "Identifier", "start": 433, "end": 442, "loc": { "start": { "line": 15, "column": 20 }, "end": { "line": 15, "column": 29 }, "identifierName": "undefined" }, "name": "undefined" } } }, { "type": "ExpressionStatement", "start": 453, "end": 486, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 41 } }, "expression": { "type": "AssignmentExpression", "start": 453, "end": 485, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 40 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 453, "end": 463, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 18 } }, "object": { "type": "ThisExpression", "start": 453, "end": 457, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } } }, "property": { "type": "Identifier", "start": 458, "end": 463, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 18 }, "identifierName": "plane" }, "name": "plane" }, "computed": false }, "right": { "type": "NewExpression", "start": 466, "end": 485, "loc": { "start": { "line": 17, "column": 21 }, "end": { "line": 17, "column": 40 } }, "callee": { "type": "Identifier", "start": 470, "end": 483, "loc": { "start": { "line": 17, "column": 25 }, "end": { "line": 17, "column": 38 }, "identifierName": "InfinitePlane" }, "name": "InfinitePlane" }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 495, "end": 532, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 45 } }, "expression": { "type": "CallExpression", "start": 495, "end": 531, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 44 } }, "callee": { "type": "MemberExpression", "start": 495, "end": 522, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 35 } }, "object": { "type": "MemberExpression", "start": 495, "end": 518, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 31 } }, "object": { "type": "MemberExpression", "start": 495, "end": 511, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 24 } }, "object": { "type": "MemberExpression", "start": 495, "end": 505, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 18 } }, "object": { "type": "ThisExpression", "start": 495, "end": 499, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 12 } } }, "property": { "type": "Identifier", "start": 500, "end": 505, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 18 }, "identifierName": "plane" }, "name": "plane" }, "computed": false }, "property": { "type": "Identifier", "start": 506, "end": 511, "loc": { "start": { "line": 18, "column": 19 }, "end": { "line": 18, "column": 24 }, "identifierName": "plane" }, "name": "plane" }, "computed": false }, "property": { "type": "Identifier", "start": 512, "end": 518, "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 18, "column": 31 }, "identifierName": "normal" }, "name": "normal" }, "computed": false }, "property": { "type": "Identifier", "start": 519, "end": 522, "loc": { "start": { "line": 18, "column": 32 }, "end": { "line": 18, "column": 35 }, "identifierName": "set" }, "name": "set" }, "computed": false }, "arguments": [ { "type": "NumericLiteral", "start": 523, "end": 524, "loc": { "start": { "line": 18, "column": 36 }, "end": { "line": 18, "column": 37 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, { "type": "NumericLiteral", "start": 526, "end": 527, "loc": { "start": { "line": 18, "column": 39 }, "end": { "line": 18, "column": 40 } }, "extra": { "rawValue": 0,