UNPKG

dirtybomb

Version:
1,504 lines (1,503 loc) 782 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "Vector", "range": [ 85, 91 ], "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 13 } } }, "range": [ 85, 91 ], "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 13 } } } ], "source": { "type": "Literal", "value": "./Vector", "raw": "'./Vector'", "range": [ 97, 107 ], "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 29 } } }, "range": [ 78, 108 ], "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 30 } }, "leadingComments": [ { "type": "Block", "value": "*\n * Created by austin on 6/16/16.\n * @file DynamicGaussianPuff.js\n * \n ", "range": [ 0, 76 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 5, "column": 3 } } } ] }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "GaussianPuff", "range": [ 116, 128 ], "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 19 } } }, "range": [ 116, 128 ], "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 19 } } } ], "source": { "type": "Literal", "value": "./GaussianPuff", "raw": "'./GaussianPuff'", "range": [ 134, 150 ], "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 8, "column": 41 } } }, "range": [ 109, 151 ], "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 42 } }, "trailingComments": [ { "type": "Block", "value": "*\n * Allows for atmospheric changes between puff movements\n ", "range": [ 153, 217 ], "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 12, "column": 3 } } } ] }, { "type": "Identifier", "id": { "type": "Identifier", "name": "DynamicGaussianPuff", "range": [ 224, 243 ], "loc": { "start": { "line": 13, "column": 6 }, "end": { "line": 13, "column": 25 } } }, "superClass": { "type": "Identifier", "name": "GaussianPuff", "range": [ 252, 264 ], "loc": { "start": { "line": 13, "column": 34 }, "end": { "line": 13, "column": 46 } } }, "body": { "type": "ClassBody", "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "range": [ 476, 487 ], "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 15 } } }, "value": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "atmosphere", "range": [ 488, 498 ], "loc": { "start": { "line": 21, "column": 16 }, "end": { "line": 21, "column": 26 } } }, { "type": "Identifier", "name": "source", "range": [ 500, 506 ], "loc": { "start": { "line": 21, "column": 28 }, "end": { "line": 21, "column": 34 } } }, { "type": "Identifier", "name": "massReleased", "range": [ 508, 520 ], "loc": { "start": { "line": 21, "column": 36 }, "end": { "line": 21, "column": 48 } } }, { "type": "Identifier", "name": "center", "range": [ 522, 528 ], "loc": { "start": { "line": 21, "column": 50 }, "end": { "line": 21, "column": 56 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Super", "range": [ 540, 545 ], "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "atmosphere", "range": [ 546, 556 ], "loc": { "start": { "line": 22, "column": 14 }, "end": { "line": 22, "column": 24 } } }, { "type": "Identifier", "name": "source", "range": [ 558, 564 ], "loc": { "start": { "line": 22, "column": 26 }, "end": { "line": 22, "column": 32 } } }, { "type": "Identifier", "name": "massReleased", "range": [ 566, 578 ], "loc": { "start": { "line": 22, "column": 34 }, "end": { "line": 22, "column": 46 } } } ], "range": [ 540, 579 ], "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 47 } } }, "range": [ 540, 580 ], "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 48 } }, "trailingComments": [ { "type": "Block", "value": "*\n * \n * @type {number}\n * @private\n ", "range": [ 590, 663 ], "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 28, "column": 11 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 672, 676 ], "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 12 } } }, "property": { "type": "Identifier", "name": "_currentTime", "range": [ 677, 689 ], "loc": { "start": { "line": 29, "column": 13 }, "end": { "line": 29, "column": 25 } } }, "range": [ 672, 689 ], "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 25 } } }, "right": { "type": "Literal", "value": 0, "raw": "0", "range": [ 692, 693 ], "loc": { "start": { "line": 29, "column": 28 }, "end": { "line": 29, "column": 29 } } }, "range": [ 672, 693 ], "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 29 } } }, "range": [ 672, 694 ], "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 30 } }, "leadingComments": [ { "type": "Block", "value": "*\n * \n * @type {number}\n * @private\n ", "range": [ 590, 663 ], "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 28, "column": 11 } } } ], "trailingComments": [ { "type": "Block", "value": "*\n * Really doesn't need to be a vector. Easy enough to use a vector as a cartesian coord though.\n * @type {Vector}\n * @private\n ", "range": [ 704, 869 ], "loc": { "start": { "line": 31, "column": 8 }, "end": { "line": 35, "column": 11 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 878, 882 ], "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 12 } } }, "property": { "type": "Identifier", "name": "_currentCenter", "range": [ 883, 897 ], "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 36, "column": 27 } } }, "range": [ 878, 897 ], "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 27 } } }, "right": { "type": "ConditionalExpression", "test": { "type": "Identifier", "name": "center", "range": [ 900, 906 ], "loc": { "start": { "line": 36, "column": 30 }, "end": { "line": 36, "column": 36 } } }, "consequent": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Vector", "range": [ 909, 915 ], "loc": { "start": { "line": 36, "column": 39 }, "end": { "line": 36, "column": 45 } } }, "property": { "type": "Identifier", "name": "fromArray", "range": [ 916, 925 ], "loc": { "start": { "line": 36, "column": 46 }, "end": { "line": 36, "column": 55 } } }, "range": [ 909, 925 ], "loc": { "start": { "line": 36, "column": 39 }, "end": { "line": 36, "column": 55 } } }, "arguments": [ { "type": "Identifier", "name": "center", "range": [ 926, 932 ], "loc": { "start": { "line": 36, "column": 56 }, "end": { "line": 36, "column": 62 } } } ], "range": [ 909, 933 ], "loc": { "start": { "line": 36, "column": 39 }, "end": { "line": 36, "column": 63 } } }, "alternate": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "Vector", "range": [ 940, 946 ], "loc": { "start": { "line": 36, "column": 70 }, "end": { "line": 36, "column": 76 } } }, "arguments": [ { "type": "Literal", "value": 0, "raw": "0", "range": [ 947, 948 ], "loc": { "start": { "line": 36, "column": 77 }, "end": { "line": 36, "column": 78 } } }, { "type": "Literal", "value": 0, "raw": "0", "range": [ 950, 951 ], "loc": { "start": { "line": 36, "column": 80 }, "end": { "line": 36, "column": 81 } } }, { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 953, 957 ], "loc": { "start": { "line": 36, "column": 83 }, "end": { "line": 36, "column": 87 } } }, "property": { "type": "Identifier", "name": "getEffectiveSourceHeight", "range": [ 958, 982 ], "loc": { "start": { "line": 36, "column": 88 }, "end": { "line": 36, "column": 112 } } }, "range": [ 953, 982 ], "loc": { "start": { "line": 36, "column": 83 }, "end": { "line": 36, "column": 112 } } }, "arguments": [], "range": [ 953, 984 ], "loc": { "start": { "line": 36, "column": 83 }, "end": { "line": 36, "column": 114 } } } ], "range": [ 936, 985 ], "loc": { "start": { "line": 36, "column": 66 }, "end": { "line": 36, "column": 115 } } }, "range": [ 900, 985 ], "loc": { "start": { "line": 36, "column": 30 }, "end": { "line": 36, "column": 115 } } }, "range": [ 878, 985 ], "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 115 } } }, "range": [ 878, 986 ], "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 116 } }, "leadingComments": [ { "type": "Block", "value": "*\n * Really doesn't need to be a vector. Easy enough to use a vector as a cartesian coord though.\n * @type {Vector}\n * @private\n ", "range": [ 704, 869 ], "loc": { "start": { "line": 31, "column": 8 }, "end": { "line": 35, "column": 11 } } } ], "trailingComments": [ { "type": "Block", "value": "*\n * @type {Vector}\n * @private\n ", "range": [ 996, 1057 ], "loc": { "start": { "line": 38, "column": 8 }, "end": { "line": 41, "column": 11 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 1066, 1070 ], "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 12 } } }, "property": { "type": "Identifier", "name": "_startCenter", "range": [ 1071, 1083 ], "loc": { "start": { "line": 42, "column": 13 }, "end": { "line": 42, "column": 25 } } }, "range": [ 1066, 1083 ], "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 25 } } }, "right": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 1086, 1090 ], "loc": { "start": { "line": 42, "column": 28 }, "end": { "line": 42, "column": 32 } } }, "property": { "type": "Identifier", "name": "_currentCenter", "range": [ 1091, 1105 ], "loc": { "start": { "line": 42, "column": 33 }, "end": { "line": 42, "column": 47 } } }, "range": [ 1086, 1105 ], "loc": { "start": { "line": 42, "column": 28 }, "end": { "line": 42, "column": 47 } } }, "property": { "type": "Identifier", "name": "clone", "range": [ 1106, 1111 ], "loc": { "start": { "line": 42, "column": 48 }, "end": { "line": 42, "column": 53 } } }, "range": [ 1086, 1111 ], "loc": { "start": { "line": 42, "column": 28 }, "end": { "line": 42, "column": 53 } } }, "arguments": [], "range": [ 1086, 1113 ], "loc": { "start": { "line": 42, "column": 28 }, "end": { "line": 42, "column": 55 } } }, "range": [ 1066, 1113 ], "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 55 } } }, "range": [ 1066, 1114 ], "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 56 } }, "leadingComments": [ { "type": "Block", "value": "*\n * @type {Vector}\n * @private\n ", "range": [ 996, 1057 ], "loc": { "start": { "line": 38, "column": 8 }, "end": { "line": 41, "column": 11 } } } ], "trailingComments": [ { "type": "Block", "value": "*\n *\n * @type {Array}\n * @private\n ", "range": [ 1124, 1195 ], "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 48, "column": 11 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 1204, 1208 ], "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 12 } } }, "property": { "type": "Identifier", "name": "_path", "range": [ 1209, 1214 ], "loc": { "start": { "line": 49, "column": 13 }, "end": { "line": 49, "column": 18 } } }, "range": [ 1204, 1214 ], "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 18 } } }, "right": { "type": "ArrayExpression", "elements": [], "range": [ 1217, 1219 ], "loc": { "start": { "line": 49, "column": 21 }, "end": { "line": 49, "column": 23 } } }, "range": [ 1204, 1219 ], "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 23 } } }, "range": [ 1204, 1220 ], "loc": { "start": { "line": 49, "column": 8 }, "end": { "line": 49, "column": 24 } }, "leadingComments": [ { "type": "Block", "value": "*\n *\n * @type {Array}\n * @private\n ", "range": [ 1124, 1195 ], "loc": { "start": { "line": 44, "column": 8 }, "end": { "line": 48, "column": 11 } } } ], "trailingComments": [ { "type": "Block", "value": "*\n * dY\n * @type {number}\n * @private\n ", "range": [ 1230, 1305 ], "loc": { "start": { "line": 51, "column": 8 }, "end": { "line": 55, "column": 11 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 1314, 1318 ], "loc": { "start": { "line": 56, "column": 8 }, "end": { "line": 56, "column": 12 } } }, "property": { "type": "Identifier", "name": "_virtHoriz", "range": [ 1319, 1329 ], "loc": { "start": { "line": 56, "column": 13 }, "end": { "line": 56, "column": 23 } } }, "range": [ 1314, 1329 ], "loc": { "start": { "line": 56, "column": 8 }, "end": { "line": 56, "column": 23 } } }, "right": { "type": "Literal", "value": 0, "raw": "0", "range": [ 1332, 1333 ], "loc": { "start": { "line": 56, "column": 26 }, "end": { "line": 56, "column": 27 } } }, "range": [ 1314, 1333 ], "loc": { "start": { "line": 56, "column": 8 }, "end": { "line": 56, "column": 27 } } }, "range": [ 1314, 1334 ], "loc": { "start": { "line": 56, "column": 8 }, "end": { "line": 56, "column": 28 } }, "leadingComments": [ { "type": "Block", "value": "*\n * dY\n * @type {number}\n * @private\n ", "range": [ 1230, 1305 ], "loc": { "start": { "line": 51, "column": 8