awv3
Version:
AWV client CAD framework
1,482 lines (1,481 loc) • 1.12 MB
JSON
{
"type": "Program",
"start": 0,
"end": 10503,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 369,
"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": 77,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 50
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 36,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 20
}
},
"imported": {
"type": "Identifier",
"start": 36,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 20
}
},
"name": "exponential"
},
"local": {
"type": "Identifier",
"start": 36,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 20
}
},
"name": "exponential"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 55,
"end": 76,
"loc": {
"start": {
"line": 2,
"column": 28
},
"end": {
"line": 2,
"column": 49
}
},
"value": "../animation/easing",
"rawValue": "../animation/easing",
"raw": "'../animation/easing'"
}
},
{
"type": "VariableDeclaration",
"start": 79,
"end": 95,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 16
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 83,
"end": 94,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 15
}
},
"id": {
"type": "Identifier",
"start": 83,
"end": 89,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 10
}
},
"name": "tweens"
},
"init": {
"type": "ArrayExpression",
"start": 92,
"end": 94,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 15
}
},
"elements": []
}
}
],
"kind": "let"
},
{
"type": "ExportDefaultDeclaration",
"start": 97,
"end": 8278,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 289,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 112,
"end": 8278,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 289,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 118,
"end": 123,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 6,
"column": 26
}
},
"name": "Tween"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 124,
"end": 8278,
"loc": {
"start": {
"line": 6,
"column": 27
},
"end": {
"line": 289,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 130,
"end": 1225,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 38,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 130,
"end": 141,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
}
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"value": {
"type": "FunctionExpression",
"start": 141,
"end": 1225,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 38,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 142,
"end": 148,
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 22
}
},
"name": "parent"
},
{
"type": "Identifier",
"start": 150,
"end": 160,
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 34
}
},
"name": "properties"
}
],
"body": {
"type": "BlockStatement",
"start": 162,
"end": 1225,
"loc": {
"start": {
"line": 7,
"column": 36
},
"end": {
"line": 38,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 172,
"end": 193,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 172,
"end": 192,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 172,
"end": 183,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 172,
"end": 176,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 177,
"end": 183,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 19
}
},
"name": "parent"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 186,
"end": 192,
"loc": {
"start": {
"line": 8,
"column": 22
},
"end": {
"line": 8,
"column": 28
}
},
"name": "parent"
}
}
},
{
"type": "ExpressionStatement",
"start": 202,
"end": 229,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 35
}
},
"expression": {
"type": "AssignmentExpression",
"start": 202,
"end": 228,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 34
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 202,
"end": 221,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 202,
"end": 206,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 207,
"end": 221,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 27
}
},
"name": "internalUpdate"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 224,
"end": 228,
"loc": {
"start": {
"line": 9,
"column": 30
},
"end": {
"line": 9,
"column": 34
}
},
"value": null,
"rawValue": null,
"raw": "null"
}
}
},
{
"type": "ExpressionStatement",
"start": 238,
"end": 261,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 31
}
},
"expression": {
"type": "AssignmentExpression",
"start": 238,
"end": 260,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 30
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 238,
"end": 252,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 238,
"end": 242,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 243,
"end": 252,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 22
}
},
"name": "isPlaying"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 255,
"end": 260,
"loc": {
"start": {
"line": 10,
"column": 25
},
"end": {
"line": 10,
"column": 30
}
},
"value": false,
"rawValue": false,
"raw": "false"
}
}
},
{
"type": "ExpressionStatement",
"start": 270,
"end": 290,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 270,
"end": 289,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 270,
"end": 281,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 270,
"end": 274,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 275,
"end": 281,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 19
}
},
"name": "paused"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 284,
"end": 289,
"loc": {
"start": {
"line": 11,
"column": 22
},
"end": {
"line": 11,
"column": 27
}
},
"value": false,
"rawValue": false,
"raw": "false"
}
}
},
{
"type": "ExpressionStatement",
"start": 299,
"end": 317,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 299,
"end": 316,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 25
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 299,
"end": 312,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 299,
"end": 303,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 304,
"end": 312,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 21
}
},
"name": "duration"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 315,
"end": 316,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 25
}
},
"value": 0,
"rawValue": 0,
"raw": "0"
}
}
},
{
"type": "ExpressionStatement",
"start": 326,
"end": 347,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 326,
"end": 346,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 326,
"end": 342,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 326,
"end": 330,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 331,
"end": 342,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 24
}
},
"name": "repeatTimes"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 345,
"end": 346,
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 28
}
},
"value": 0,
"rawValue": 0,
"raw": "0"
}
}
},
{
"type": "ExpressionStatement",
"start": 356,
"end": 394,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 46
}
},
"expression": {
"type": "AssignmentExpression",
"start": 356,
"end": 393,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 45
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 356,
"end": 371,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 356,
"end": 360,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 361,
"end": 371,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 23
}
},
"name": "repeatMode"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 374,
"end": 393,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 45
}
},
"object": {
"type": "MemberExpression",
"start": 374,
"end": 386,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 374,
"end": 379,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 31
}
},
"name": "Tween"
},
"property": {
"type": "Identifier",
"start": 380,
"end": 386,
"loc": {
"start": {
"line": 14,
"column": 32
},
"end": {
"line": 14,
"column": 38
}
},
"name": "Repeat"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 387,
"end": 393,
"loc": {
"start": {
"line": 14,
"column": 39
},
"end": {
"line": 14,
"column": 45
}
},
"name": "Normal"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 403,
"end": 425,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 30
}
},
"expression": {
"type": "AssignmentExpression",
"start": 403,
"end": 424,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 29
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 403,
"end": 416,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 403,
"end": 407,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 408,
"end": 416,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 21
}
},
"name": "reversed"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 419,
"end": 424,
"loc": {
"start": {
"line": 15,
"column": 24
},
"end": {
"line": 15,
"column": 29
}
},
"value": false,
"rawValue": false,
"raw": "false"
}
}
},
{
"type": "ExpressionStatement",
"start": 434,
"end": 453,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 434,
"end": 452,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 434,
"end": 448,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 434,
"end": 438,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 439,
"end": 448,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 22
}
},
"name": "delayTime"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 451,
"end": 452,
"loc": {
"start": {
"line": 16,
"column": 25
},
"end": {
"line": 16,
"column": 26
}
},
"value": 0,
"rawValue": 0,
"raw": "0"
}
}
},
{
"type": "ExpressionStatement",
"start": 462,
"end": 496,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 42
}
},
"expression": {
"type": "AssignmentExpression",
"start": 462,
"end": 495,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 41
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 462,
"end": 487,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 462,
"end": 466,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 467,
"end": 487,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 33
}
},
"name": "onStartCallbackFired"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 490,
"end": 495,
"loc": {
"start": {
"line": 17,
"column": 36
},
"end": {
"line": 17,
"column": 41
}
},
"value": false,
"rawValue": false,
"raw": "false"
}
}
},
{
"type": "ExpressionStatement",
"start": 505,
"end": 543,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 46
}
},
"expression": {
"type": "AssignmentExpression",
"start": 505,
"end": 542,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 45
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 505,
"end": 524,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 505,
"end": 509,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 510,
"end": 524,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 27