awv3
Version:
AWV client CAD framework
1,633 lines • 71.7 kB
JSON
{
"type": "Program",
"start": 0,
"end": 518,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 25,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 36
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"name": "Events"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 19,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 35
}
},
"value": "../core/events",
"rawValue": "../core/events",
"raw": "'../core/events'"
}
},
{
"type": "Identifier",
"start": 40,
"end": 404,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 17,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 46,
"end": 54,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 14
}
},
"name": "Defaults"
},
"superClass": {
"type": "Identifier",
"start": 63,
"end": 69,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 29
}
},
"name": "Events"
},
"body": {
"type": "ClassBody",
"start": 70,
"end": 404,
"loc": {
"start": {
"line": 3,
"column": 30
},
"end": {
"line": 17,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 77,
"end": 178,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 7,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 77,
"end": 88,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 15
}
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"value": {
"type": "FunctionExpression",
"start": 88,
"end": 178,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 7,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 91,
"end": 178,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 7,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 102,
"end": 110,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 102,
"end": 109,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 102,
"end": 107,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 120,
"end": 171,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 59
}
},
"expression": {
"type": "AssignmentExpression",
"start": 120,
"end": 170,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 58
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 120,
"end": 137,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 120,
"end": 124,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 125,
"end": 137,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 25
}
},
"name": "_renderOrder"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 140,
"end": 170,
"loc": {
"start": {
"line": 6,
"column": 28
},
"end": {
"line": 6,
"column": 58
}
},
"properties": [
{
"type": "Property",
"start": 142,
"end": 149,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 37
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 142,
"end": 146,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 34
}
},
"name": "Mesh"
},
"value": {
"type": "Literal",
"start": 148,
"end": 149,
"loc": {
"start": {
"line": 6,
"column": 36
},
"end": {
"line": 6,
"column": 37
}
},
"value": 0,
"rawValue": 0,
"raw": "0"
},
"kind": "init"
},
{
"type": "Property",
"start": 151,
"end": 168,
"loc": {
"start": {
"line": 6,
"column": 39
},
"end": {
"line": 6,
"column": 56
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 151,
"end": 163,
"loc": {
"start": {
"line": 6,
"column": 39
},
"end": {
"line": 6,
"column": 51
}
},
"name": "LineSegments"
},
"value": {
"type": "Literal",
"start": 165,
"end": 168,
"loc": {
"start": {
"line": 6,
"column": 53
},
"end": {
"line": 6,
"column": 56
}
},
"value": 100,
"rawValue": 100,
"raw": "100"
},
"kind": "init"
}
]
}
}
}
]
}
}
},
{
"type": "MethodDefinition",
"start": 186,
"end": 247,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 11,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 190,
"end": 201,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 19
}
},
"name": "renderOrder"
},
"static": false,
"kind": "get",
"value": {
"type": "FunctionExpression",
"start": 201,
"end": 247,
"loc": {
"start": {
"line": 9,
"column": 19
},
"end": {
"line": 11,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 204,
"end": 247,
"loc": {
"start": {
"line": 9,
"column": 22
},
"end": {
"line": 11,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 215,
"end": 240,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 33
}
},
"argument": {
"type": "MemberExpression",
"start": 222,
"end": 239,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 222,
"end": 226,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 227,
"end": 239,
"loc": {
"start": {
"line": 10,
"column": 20
},
"end": {
"line": 10,
"column": 32
}
},
"name": "_renderOrder"
},
"computed": false
}
}
]
}
}
},
{
"type": "MethodDefinition",
"start": 255,
"end": 401,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 16,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 259,
"end": 270,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 19
}
},
"name": "renderOrder"
},
"static": false,
"kind": "set",
"value": {
"type": "FunctionExpression",
"start": 270,
"end": 401,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 16,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 271,
"end": 276,
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 25
}
},
"name": "value"
}
],
"body": {
"type": "BlockStatement",
"start": 278,
"end": 401,
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 16,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 289,
"end": 315,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
"start": 289,
"end": 314,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 289,
"end": 306,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 289,
"end": 293,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 294,
"end": 306,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 25
}
},
"name": "_renderOrder"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 309,
"end": 314,
"loc": {
"start": {
"line": 14,
"column": 28
},
"end": {
"line": 14,
"column": 33
}
},
"name": "value"
}
}
},
{
"type": "ExpressionStatement",
"start": 325,
"end": 394,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 77
}
},
"expression": {
"type": "CallExpression",
"start": 325,
"end": 393,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 76
}
},
"callee": {
"type": "MemberExpression",
"start": 325,
"end": 334,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 325,
"end": 329,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 330,
"end": 334,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 17
}
},
"name": "emit"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 335,
"end": 358,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 41
}
},
"object": {
"type": "MemberExpression",
"start": 335,
"end": 350,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 335,
"end": 343,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 26
}
},
"name": "Defaults"
},
"property": {
"type": "Identifier",
"start": 344,
"end": 350,
"loc": {
"start": {
"line": 15,
"column": 27
},
"end": {
"line": 15,
"column": 33
}
},
"name": "Events"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 351,
"end": 358,
"loc": {
"start": {
"line": 15,
"column": 34
},
"end": {
"line": 15,
"column": 41
}
},
"name": "Changed"
},
"computed": false
},
{
"type": "Literal",
"start": 360,
"end": 373,
"loc": {
"start": {
"line": 15,
"column": 43
},
"end": {
"line": 15,
"column": 56
}
},
"value": "renderOrder",
"rawValue": "renderOrder",
"raw": "'renderOrder'"
},
{
"type": "MemberExpression",
"start": 375,
"end": 392,
"loc": {
"start": {
"line": 15,
"column": 58
},
"end": {
"line": 15,
"column": 75
}
},
"object": {
"type": "ThisExpression",
"start": 375,
"end": 379,
"loc": {
"start": {
"line": 15,
"column": 58
},
"end": {
"line": 15,
"column": 62
}
}
},
"property": {
"type": "Identifier",
"start": 380,
"end": 392,
"loc": {
"start": {
"line": 15,
"column": 63
},
"end": {
"line": 15,
"column": 75
}
},
"name": "_renderOrder"
},
"computed": false
}
]
}
}
]
}
}
}
]
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExpressionStatement",
"start": 408,
"end": 454,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 21,
"column": 1
}
},
"expression": {
"type": "AssignmentExpression",
"start": 408,
"end": 454,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 21,
"column": 1
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 408,
"end": 423,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 19,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 408,
"end": 416,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 19,
"column": 8
}
},
"name": "Defaults"
},
"property": {
"type": "Identifier",
"start": 417,
"end": 423,
"loc": {
"start": {
"line": 19,
"column": 9
},
"end": {
"line": 19,
"column": 15
}
},
"name": "Events"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 426,
"end": 454,
"loc": {
"start": {
"line": 19,
"column": 18
},
"end": {
"line": 21,
"column": 1
}
},
"properties": [
{
"type": "Property",
"start": 433,
"end": 451,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 22
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 433,
"end": 440,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 11
}
},
"name": "Changed"
},
"value": {
"type": "Literal",
"start": 442,
"end": 451,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 22
}
},
"value": "Changed",
"rawValue": "Changed",
"raw": "'Changed'"
},
"kind": "init"
}
]
}
}
},
{
"type": "Identifier",
"start": 458,
"end": 490,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 23,
"column": 32
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 464,
"end": 489,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 31
}
},
"id": {
"type": "Identifier",
"start": 464,
"end": 472,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 14
}
},
"name": "instance"
},
"init": {
"type": "NewExpression",
"start": 475,
"end": 489,
"loc": {
"start": {
"line": 23,
"column": 17
},
"end": {
"line": 23,
"column": 31
}
},
"callee": {
"type": "Identifier",
"start": 479,
"end": 487,
"loc": {
"start": {
"line": 23,
"column": 21
},
"end": {
"line": 23,
"column": 29
}
},
"name": "Defaults"
},
"arguments": []
}
}
],
"kind": "const",
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "Identifier",
"start": 492,
"end": 516,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 24
}
},
"declaration": {
"type": "Identifier",
"start": 507,
"end": 515,
"loc": {
"start": {
"line": 24,
"column": 15
},
"end": {
"line": 24,
"column": 23
}
},
"name": "instance"
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExportDefaultDeclaration",
"start": 492,
"end": 516,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 24
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 40,
"end": 404,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 17,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 46,
"end": 54,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 14
}
},
"name": "Defaults"
},
"superClass": {
"type": "Identifier",
"start": 63,
"end": 69,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 29
}
},
"name": "Events"
},
"body": {
"type": "ClassBody",
"start": 70,
"end": 404,
"loc": {
"start": {
"line": 3,
"column": 30
},
"end": {
"line": 17,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 77,
"end": 178,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 7,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 77,
"end": 88,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 15
}
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"value": {
"type": "FunctionExpression",
"start": 88,
"end": 178,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 7,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 91,
"end": 178,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 7,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 102,
"end": 110,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 102,
"end": 109,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 102,
"end": 107,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 120,
"end": 171,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 59
}
},
"expression": {
"type": "AssignmentExpression",
"start": 120,
"end": 170,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 58
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 120,
"end": 137,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 120,
"end": 124,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 125,
"end": 137,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 25
}
},
"name": "_renderOrder"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 140,
"end": 170,
"loc": {
"start": {
"line": 6,
"column": 28
},
"end": {
"line": 6,
"column": 58
}
},
"properties": [
{
"type": "Property",
"start": 142,
"end": 149,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 37
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 142,
"end": 146,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 34
}
},
"name": "Mesh"
},
"value": {
"type": "Literal",
"start": 148,
"end": 149,
"loc": {
"start": {
"line": 6,
"column": 36
},
"end": {
"line": 6,
"column": 37
}
},
"value": 0,
"rawValue": 0,
"raw": "0"
},
"kind": "init"
},
{
"type": "Property",
"start": 151,
"end": 168,
"loc": {
"start": {
"line": 6,
"column": 39
},
"end": {
"line": 6,
"column": 56
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 151,
"end": 163,
"loc": {
"start": {
"line": 6,
"column": 39
},
"e