awv3
Version:
AWV client CAD framework
1,315 lines (1,314 loc) • 102 kB
JSON
{
"type": "Program",
"start": 0,
"end": 1158,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 66,
"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": "ExportDefaultDeclaration",
"start": 40,
"end": 971,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 56,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 55,
"end": 971,
"loc": {
"start": {
"line": 3,
"column": 15
},
"end": {
"line": 56,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 61,
"end": 67,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 27
}
},
"name": "Plugin"
},
"superClass": {
"type": "Identifier",
"start": 76,
"end": 82,
"loc": {
"start": {
"line": 3,
"column": 36
},
"end": {
"line": 3,
"column": 42
}
},
"name": "Events"
},
"body": {
"type": "ClassBody",
"start": 83,
"end": 971,
"loc": {
"start": {
"line": 3,
"column": 43
},
"end": {
"line": 56,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 90,
"end": 732,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 34,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 90,
"end": 101,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 15
}
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"value": {
"type": "FunctionExpression",
"start": 101,
"end": 732,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 34,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start": 102,
"end": 114,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 28
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 102,
"end": 109,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 23
}
},
"name": "options"
},
"right": {
"type": "ObjectExpression",
"start": 112,
"end": 114,
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 28
}
},
"properties": []
}
}
],
"body": {
"type": "BlockStatement",
"start": 116,
"end": 732,
"loc": {
"start": {
"line": 4,
"column": 30
},
"end": {
"line": 34,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 129,
"end": 137,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 129,
"end": 136,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 129,
"end": 134,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 149,
"end": 228,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 9,
"column": 39
}
},
"expression": {
"type": "SequenceExpression",
"start": 149,
"end": 227,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 9,
"column": 38
}
},
"expressions": [
{
"type": "AssignmentExpression",
"start": 149,
"end": 186,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 45
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 149,
"end": 158,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 149,
"end": 153,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 154,
"end": 158,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 17
}
},
"name": "name"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 161,
"end": 186,
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 45
}
},
"left": {
"type": "MemberExpression",
"start": 161,
"end": 173,
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 161,
"end": 168,
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 27
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 169,
"end": 173,
"loc": {
"start": {
"line": 8,
"column": 28
},
"end": {
"line": 8,
"column": 32
}
},
"name": "name"
},
"computed": false
},
"operator": "||",
"right": {
"type": "Literal",
"start": 177,
"end": 186,
"loc": {
"start": {
"line": 8,
"column": 36
},
"end": {
"line": 8,
"column": 45
}
},
"value": "unnamed",
"rawValue": "unnamed",
"raw": "'unnamed'"
}
}
},
{
"type": "AssignmentExpression",
"start": 197,
"end": 227,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 38
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 197,
"end": 206,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 197,
"end": 201,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 202,
"end": 206,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 17
}
},
"name": "icon"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 209,
"end": 227,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 38
}
},
"left": {
"type": "MemberExpression",
"start": 209,
"end": 221,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 209,
"end": 216,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 27
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 217,
"end": 221,
"loc": {
"start": {
"line": 9,
"column": 28
},
"end": {
"line": 9,
"column": 32
}
},
"name": "icon"
},
"computed": false
},
"operator": "||",
"right": {
"type": "Literal",
"start": 225,
"end": 227,
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 38
}
},
"value": "",
"rawValue": "",
"raw": "''"
}
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 238,
"end": 267,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 37
}
},
"expression": {
"type": "AssignmentExpression",
"start": 238,
"end": 266,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 36
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 238,
"end": 254,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 238,
"end": 242,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 243,
"end": 254,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 24
}
},
"name": "integration"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 257,
"end": 266,
"loc": {
"start": {
"line": 10,
"column": 27
},
"end": {
"line": 10,
"column": 36
}
},
"name": "undefined"
}
}
},
{
"type": "ExpressionStatement",
"start": 277,
"end": 292,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 277,
"end": 291,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 22
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 277,
"end": 286,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 277,
"end": 281,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 282,
"end": 286,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 17
}
},
"name": "data"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 289,
"end": 291,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 22
}
},
"properties": []
}
},
"trailingComments": [
{
"type": "CommentLine",
"value": " Apply values",
"start": 304,
"end": 319,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 23
}
},
"range": [
304,
319
]
}
]
},
{
"type": "ExpressionStatement",
"start": 329,
"end": 723,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 32,
"column": 11
}
},
"expression": {
"type": "CallExpression",
"start": 329,
"end": 722,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 32,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 329,
"end": 339,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 329,
"end": 333,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 334,
"end": 339,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 18
}
},
"name": "apply"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "ObjectExpression",
"start": 340,
"end": 721,
"loc": {
"start": {
"line": 14,
"column": 19
},
"end": {
"line": 32,
"column": 9
}
},
"properties": [
{
"type": "Property",
"start": 355,
"end": 371,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 28
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 355,
"end": 364,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 21
}
},
"name": "collapsed"
},
"value": {
"type": "Literal",
"start": 366,
"end": 371,
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 28
}
},
"value": false,
"rawValue": false,
"raw": "false"
},
"kind": "init"
},
{
"type": "Property",
"start": 386,
"end": 397,
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 23
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 386,
"end": 391,
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 17
}
},
"name": "hasOk"
},
"value": {
"type": "Literal",
"start": 393,
"end": 397,
"loc": {
"start": {
"line": 16,
"column": 19
},
"end": {
"line": 16,
"column": 23
}
},
"value": true,
"rawValue": true,
"raw": "true"
},
"kind": "init"
},
{
"type": "Property",
"start": 412,
"end": 427,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 27
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 412,
"end": 421,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 21
}
},
"name": "hasCancel"
},
"value": {
"type": "Literal",
"start": 423,
"end": 427,
"loc": {
"start": {
"line": 17,
"column": 23
},
"end": {
"line": 17,
"column": 27
}
},
"value": true,
"rawValue": true,
"raw": "true"
},
"kind": "init"
},
{
"type": "Property",
"start": 444,
"end": 453,
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 21
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 444,
"end": 449,
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 17
}
},
"name": "title"
},
"value": {
"type": "Literal",
"start": 451,
"end": 453,
"loc": {
"start": {
"line": 19,
"column": 19
},
"end": {
"line": 19,
"column": 21
}
},
"value": "",
"rawValue": "",
"raw": "''"
},
"kind": "init"
},
{
"type": "Property",
"start": 468,
"end": 479,
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 20,
"column": 23
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 468,
"end": 475,
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 20,
"column": 19
}
},
"name": "toolbar"
},
"value": {
"type": "ArrayExpression",
"start": 477,
"end": 479,
"loc": {
"start": {
"line": 20,
"column": 21
},
"end": {
"line": 20,
"column": 23
}
},
"elements": []
},
"kind": "init"
},
{
"type": "Property",
"start": 494,
"end": 506,
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 24
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 494,
"end": 502,
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 20
}
},
"name": "elements"
},
"value": {
"type": "ArrayExpression",
"start": 504,
"end": 506,
"loc": {
"start": {
"line": 21,
"column": 22
},
"end": {
"line": 21,
"column": 24
}
},
"elements": []
},
"kind": "init"
},
{
"type": "Property",
"start": 521,
"end": 532,
"loc": {
"start": {
"line": 22,
"column": 12
},
"end": {
"line": 22,
"column": 23
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 521,
"end": 528,
"loc": {
"start": {
"line": 22,
"column": 12
},
"end": {
"line": 22,
"column": 19
}
},
"name": "results"
},
"value": {
"type": "ArrayExpression",
"start": 530,
"end": 532,
"loc": {
"start": {
"line": 22,
"column": 21
},
"end": {
"line": 22,
"column": 23
}
},
"elements": []
},
"kind": "init"
},
{
"type": "Property",
"start": 547,
"end": 565,