awv3
Version:
AWV client CAD framework
2,055 lines (2,054 loc) • 4.46 MB
JSON
{
"type": "Program",
"start": 0,
"end": 47175,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1161,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 58,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 58
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 8,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 20
}
},
"imported": {
"type": "Identifier",
"start": 8,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 20
}
},
"name": "trackPromise"
},
"local": {
"type": "Identifier",
"start": 8,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 20
}
},
"name": "trackPromise"
}
},
{
"type": "ImportSpecifier",
"start": 22,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 30
}
},
"imported": {
"type": "Identifier",
"start": 22,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 30
}
},
"name": "logLevel"
},
"local": {
"type": "Identifier",
"start": 22,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 30
}
},
"name": "logLevel"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 37,
"end": 57,
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 57
}
},
"value": "sketcher/cchelpers",
"rawValue": "sketcher/cchelpers",
"raw": "'sketcher/cchelpers'"
}
},
{
"type": "ImportDeclaration",
"start": 59,
"end": 104,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 45
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 66,
"end": 76,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 17
}
},
"local": {
"type": "Identifier",
"start": 66,
"end": 76,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 17
}
},
"name": "Constraint"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 82,
"end": 103,
"loc": {
"start": {
"line": 2,
"column": 23
},
"end": {
"line": 2,
"column": 44
}
},
"value": "sketcher/constraint",
"rawValue": "sketcher/constraint",
"raw": "'sketcher/constraint'"
}
},
{
"type": "ImportDeclaration",
"start": 105,
"end": 142,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 37
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 112,
"end": 118,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 112,
"end": 118,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"name": "Sketch"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 124,
"end": 141,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 36
}
},
"value": "sketcher/sketch",
"rawValue": "sketcher/sketch",
"raw": "'sketcher/sketch'"
}
},
{
"type": "ImportDeclaration",
"start": 143,
"end": 285,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 142
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 151,
"end": 167,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 24
}
},
"imported": {
"type": "Identifier",
"start": 151,
"end": 167,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 24
}
},
"name": "createGeomObject"
},
"local": {
"type": "Identifier",
"start": 151,
"end": 167,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 24
}
},
"name": "createGeomObject"
}
},
{
"type": "ImportSpecifier",
"start": 169,
"end": 186,
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 43
}
},
"imported": {
"type": "Identifier",
"start": 169,
"end": 186,
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 43
}
},
"name": "drawArcBy_S_E_CPh"
},
"local": {
"type": "Identifier",
"start": 169,
"end": 186,
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 43
}
},
"name": "drawArcBy_S_E_CPh"
}
},
{
"type": "ImportSpecifier",
"start": 188,
"end": 203,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 4,
"column": 60
}
},
"imported": {
"type": "Identifier",
"start": 188,
"end": 203,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 4,
"column": 60
}
},
"name": "drawArcBy_S_E_M"
},
"local": {
"type": "Identifier",
"start": 188,
"end": 203,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 4,
"column": 60
}
},
"name": "drawArcBy_S_E_M"
}
},
{
"type": "ImportSpecifier",
"start": 205,
"end": 221,
"loc": {
"start": {
"line": 4,
"column": 62
},
"end": {
"line": 4,
"column": 78
}
},
"imported": {
"type": "Identifier",
"start": 205,
"end": 221,
"loc": {
"start": {
"line": 4,
"column": 62
},
"end": {
"line": 4,
"column": 78
}
},
"name": "drawArcBy_S_E_Ch"
},
"local": {
"type": "Identifier",
"start": 205,
"end": 221,
"loc": {
"start": {
"line": 4,
"column": 62
},
"end": {
"line": 4,
"column": 78
}
},
"name": "drawArcBy_S_E_Ch"
}
},
{
"type": "ImportSpecifier",
"start": 223,
"end": 238,
"loc": {
"start": {
"line": 4,
"column": 80
},
"end": {
"line": 4,
"column": 95
}
},
"imported": {
"type": "Identifier",
"start": 223,
"end": 238,
"loc": {
"start": {
"line": 4,
"column": 80
},
"end": {
"line": 4,
"column": 95
}
},
"name": "drawArcBy_S_T_E"
},
"local": {
"type": "Identifier",
"start": 223,
"end": 238,
"loc": {
"start": {
"line": 4,
"column": 80
},
"end": {
"line": 4,
"column": 95
}
},
"name": "drawArcBy_S_T_E"
}
},
{
"type": "ImportSpecifier",
"start": 240,
"end": 257,
"loc": {
"start": {
"line": 4,
"column": 97
},
"end": {
"line": 4,
"column": 114
}
},
"imported": {
"type": "Identifier",
"start": 240,
"end": 257,
"loc": {
"start": {
"line": 4,
"column": 97
},
"end": {
"line": 4,
"column": 114
}
},
"name": "drawArcBy_Angle_M"
},
"local": {
"type": "Identifier",
"start": 240,
"end": 257,
"loc": {
"start": {
"line": 4,
"column": 97
},
"end": {
"line": 4,
"column": 114
}
},
"name": "drawArcBy_Angle_M"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 264,
"end": 284,
"loc": {
"start": {
"line": 4,
"column": 121
},
"end": {
"line": 4,
"column": 141
}
},
"value": "sketcher/geomutils",
"rawValue": "sketcher/geomutils",
"raw": "'sketcher/geomutils'"
}
},
{
"type": "ImportDeclaration",
"start": 286,
"end": 357,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 71
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 294,
"end": 309,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 23
}
},
"imported": {
"type": "Identifier",
"start": 294,
"end": 309,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 23
}
},
"name": "GeometricObject"
},
"local": {
"type": "Identifier",
"start": 294,
"end": 309,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 23
}
},
"name": "GeometricObject"
}
},
{
"type": "ImportSpecifier",
"start": 311,
"end": 316,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 30
}
},
"imported": {
"type": "Identifier",
"start": 311,
"end": 316,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 30
}
},
"name": "Point"
},
"local": {
"type": "Identifier",
"start": 311,
"end": 316,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 30
}
},
"name": "Point"
}
},
{
"type": "ImportSpecifier",
"start": 318,
"end": 322,
"loc": {
"start": {
"line": 5,
"column": 32
},
"end": {
"line": 5,
"column": 36
}
},
"imported": {
"type": "Identifier",
"start": 318,
"end": 322,
"loc": {
"start": {
"line": 5,
"column": 32
},
"end": {
"line": 5,
"column": 36
}
},
"name": "Line"
},
"local": {
"type": "Identifier",
"start": 318,
"end": 322,
"loc": {
"start": {
"line": 5,
"column": 32
},
"end": {
"line": 5,
"column": 36
}
},
"name": "Line"
}
},
{
"type": "ImportSpecifier",
"start": 324,
"end": 327,
"loc": {
"start": {
"line": 5,
"column": 38
},
"end": {
"line": 5,
"column": 41
}
},
"imported": {
"type": "Identifier",
"start": 324,
"end": 327,
"loc": {
"start": {
"line": 5,
"column": 38
},
"end": {
"line": 5,
"column": 41
}
},
"name": "Arc"
},
"local": {
"type": "Identifier",
"start": 324,
"end": 327,
"loc": {
"start": {
"line": 5,
"column": 38
},
"end": {
"line": 5,
"column": 41
}
},
"name": "Arc"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 334,
"end": 356,
"loc": {
"start": {
"line": 5,
"column": 48
},
"end": {
"line": 5,
"column": 70
}
},
"value": "sketcher/geomobjects",
"rawValue": "sketcher/geomobjects",
"raw": "'sketcher/geomobjects'"
}
},
{
"type": "ImportDeclaration",
"start": 358,
"end": 435,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 77
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 366,
"end": 382,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 24
}
},
"imported": {
"type": "Identifier",
"start": 366,
"end": 382,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 24
}
},
"name": "ConstraintsAdder"
},
"local": {
"type": "Identifier",
"start": 366,
"end": 382,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 24
}
},
"name": "ConstraintsAdder"
}
},
{
"type": "ImportSpecifier",
"start": 384,
"end": 403,
"loc": {
"start": {
"line": 6,
"column": 26
},
"end": {
"line": 6,
"column": 45
}
},
"imported": {
"type": "Identifier",
"start": 384,
"end": 403,
"loc": {
"start": {
"line": 6,
"column": 26
},
"end": {
"line": 6,
"column": 45
}
},
"name": "ConstraintGenerator"
},
"local": {
"type": "Identifier",
"start": 384,
"end": 403,
"loc": {
"start": {
"line": 6,
"column": 26
},
"end": {
"line": 6,
"column": 45
}
},
"name": "ConstraintGenerator"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 410,
"end": 434,
"loc": {
"start": {
"line": 6,
"column": 52
},
"end": {
"line": 6,
"column": 76
}
},
"value": "sketcher/constraintgen",
"rawValue": "sketcher/constraintgen",
"raw": "'sketcher/constraintgen'"
}
},
{
"type": "ImportDeclaration",
"start": 436,
"end": 482,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 46
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 443,
"end": 458,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 22
}
},
"local": {
"type": "Identifier",
"start": 443,
"end": 458,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 22
}
},
"name": "FilletProcessor"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 464,
"end": 481,
"loc": {
"start": {
"line": 7,
"column": 28
},
"end": {
"line": 7,
"column": 45
}
},
"value": "sketcher/fillet",
"rawValue": "sketcher/fillet",
"raw": "'sketcher/fillet'"
}
},
{
"type": "ImportDeclaration",
"start": 483,
"end": 529,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 46
}
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"start": 490,
"end": 503,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 20
}
},
"local": {
"type": "Identifier",
"start": 495,
"end": 503,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 20
}
},
"name": "Controls"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 509,
"end": 528,
"loc": {
"start": {
"line": 8,
"column": 26
},
"end": {
"line": 8,
"column": 45
}
},
"value": "sketcher/controls",
"rawValue": "sketcher/controls",
"raw": "'sketcher/controls'"
}
},
{
"type": "ImportDeclaration",
"start": 530,
"end": 556,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 537,
"end": 542,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 537,
"end": 542,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 12
}
},
"name": "THREE"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 548,
"end": 555,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 25
}
},
"value": "three",
"rawValue": "three",
"raw": "'three'"
}
},
{
"type": "ImportDeclaration",
"start": 557,
"end": 593,
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 10,
"column": 36
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 564,
"end": 571,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 564,
"end": 571,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 14
}
},
"name": "Object3"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 577,
"end": 592,
"loc": {
"start": {
"line": 10,
"column": 20
},
"end": {
"line": 10,
"column": 35
}
},
"value": "three/object3",
"rawValue": "three/object3",
"raw": "'three/object3'"
}
},
{
"type": "ImportDeclaration",
"start": 594,
"end": 633,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 39
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 602,
"end": 611,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 17
}
},
"imported": {
"type": "Identifier",
"start": 602,
"end": 611,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 17
}
},
"name": "Timestamp"
},
"local": {
"type": "Identifier",
"start": 602,
"end": 611,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 17
}
},
"name": "Timestamp"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 618,
"end": 632,
"loc": {
"start": {
"line": 11,
"column": 24
},
"end": {
"line": 11,
"column": 38
}
},
"value": "core/helpers",
"rawValue": "core/helpers",
"raw": "'core/helpers'"
},
"trailingComments": [
{
"type": "CommentLine",
"value": "================================ interactionFunctions =========================================",
"start": 635,
"end": 732,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 97
}
},
"range": [
635,
732
]
}
]
},
{
"type": "FunctionDeclaration",
"start": 733,
"end": 1273,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 30,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 742,
"end": 755,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 22
}
},
"name": "hoverFunction",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 756,
"end": 759,
"loc": {
"start": {
"line": 14,
"column": 23
},
"end": {
"line": 14,
"column": 26
}
},
"name": "obj"
},
{
"type": "Identifier",
"start": 761,
"end": 769,
"loc": {
"start": {
"line": 14,
"column": 28
},
"end": {
"line": 14,
"column": 36
}
},
"name": "sketcher"
}
],
"body": {
"type": "BlockStatement",
"start": 771,
"end": 1273,
"loc": {
"start": {
"line": 14,
"column": 38
},
"end": {
"line": 30,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 777,
"end": 841,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 68
}
},
"test": {
"type": "LogicalExpression",
"start": 781,
"end": 832,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 59
}
},
"left": {
"type": "UnaryExpression",
"start": 781,
"end": 809,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 36
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "BinaryExpression",
"start": 783,
"end": 808,
"loc": {
"start": {
"line": 15,
"column": 10
},
"end": {
"line": 15,
"column": 35
}
},
"left": {
"type": "Identifier",
"start": 783,
"end": 786,
"loc": {
"start": {
"line": 15,
"column": 10
},
"end": {
"line": 15,
"column": 13
}
},
"name": "obj"
},
"operator": "instanceof",
"right": {
"type": "Identifier",
"start": 798,
"end": 808,
"loc": {
"start": {
"line": 15,
"column": 25
},
"end": {
"line": 15,
"column": 35
}
},
"name": "Constraint"
},
"parenthesizedExpression": true
}
},
"operator": "&&",
"right": {
"type": "UnaryExpression",
"start": 813,
"end": 832,
"loc": {
"start": {
"line": 15,
"column": 40
},
"end": {
"line": 15,
"column": 59
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 814,
"end": 832,
"loc": {
"start": {
"line": 15,
"column": 41
},
"end": {
"line": 15,
"column": 59
}
},
"object": {
"type": "MemberExpression",
"start": 814,
"end": 826,
"loc": {
"start": {
"line": 15,
"column": 41
},
"end": {
"line": 15,
"column": 53
}
},
"object": {
"type": "Identifier",
"start": 814,
"end": 817,
"loc": {
"start": {
"line": 15,
"column": 41
},
"end": {
"line": 15,
"column": 44
}
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 818,
"end": 826,
"loc": {
"start": {
"line": 15,
"column": 45
},
"end": {
"line": 15,
"column": 53
}
},
"name": "interact"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 827,
"end": 832,
"loc": {
"start": {
"line": 15,
"column": 54
},
"end": {
"line": 15,
"column": 59
}
},
"name": "hover"
},
"computed": false
}
}
},
"consequent": {
"type": "ReturnStatement",
"start": 834,
"end": 841,
"loc": {
"start": {
"line": 15,
"column": 61
},
"end": {
"line": 15,
"column": 68
}
},
"argument": null
},
"alternate": null
},
{
"type": "ExpressionStatement",
"start": 847,
"end": 904,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 61
}
},
"expression": {
"type": "CallExpression",
"start": 847,
"end": 903,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 60
}
},
"callee": {
"type": "Identifier",
"start": 847,
"end": 859,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 16
}
},
"name": "clearTimeout"
},
"arguments": [
{
"type": "MemberExpression",
"start": 860,
"end": 902,
"loc": {
"start": {
"line": 17,
"column": 17
},
"end": {
"line": 17,
"column": 59
}
},
"object": {
"type": "MemberExpression",
"start": 860,
"end": 892,
"loc": {
"start": {
"line": 17,
"column": 17
},
"end": {
"line": 17,
"column": 49
}
},
"object": {
"type": "Identifier",
"start": 860,
"end": 868,
"loc": {
"start": {
"line": 17,
"column": 17
},
"end": {
"line": 17,
"column": 25
}
},
"name": "sketcher"
},
"property": {
"type": "Identifier",
"start": 869,
"end": 892,
"loc": {
"start": {
"line": 17,
"column": 26
},
"end": {
"line": 17,
"column": 49
}
},
"name": "__sketchControlsHandler"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 893,
"end": 902,
"loc": {
"start": {
"line": 17,
"column": 50
},
"end": {
"line": 17,
"column": 59
}
},
"name": "timeoutID"
},
"computed": false
}
]
}
},
{
"type": "IfStatement",
"start": 910,
"end": 1013,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 23,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 914,
"end": 939,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 33
}
},
"left": {
"type": "Identifier",
"start": 914,
"end": 917,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 11
}
},
"name": "obj"
},
"operator": "instanceof",
"right": {
"type": "Identifier",
"start": 929,
"end": 939,
"loc": {
"start": {
"line": 19,
"column": 23
},
"end": {
"line": 19,
"column": 33
}
},
"name": "Constraint"
}
},
"consequent": {
"type": "BlockStatement",
"start": 941,
"end": 1013,
"loc": {
"start": {
"line": 19,
"column": 35
},
"end": {
"line": 23,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 951,
"end": 963,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 20
}
},
"expression": {
"type": "CallExpression",
"start": 951,
"end": 962,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 19
}
},
"callee": {
"type": "MemberExpression",
"start": 951,
"end": 960,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 951,
"end": 954,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 11
}
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 955,
"end": 960,
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 20,
"column": 17
}
},
"name": "hover"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 972,
"end": 991,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 27
}
},
"expression": {
"type": "CallExpression",
"start": 972,
"end": 990,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 26
}
},
"callee": {
"type": "MemberExpression",
"start": 972,
"end": 988,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 972,
"end": 980,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 16
}
},
"name": "sketcher"
},
"property": {
"type": "Identifier",
"start": 981,
"end": 988,
"loc": {
"start": {
"line": 21,
"column": 17
},
"end": {
"line": 21,
"column": 24
}
},
"name": "refresh"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ReturnStatement",
"start": 1000,
"end": 1007,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 15
}
},
"argument": null
}
]
},
"alternate": null
},
{
"type": "ExpressionStatement",
"start": 1019,
"end": 1060,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 45
}
},
"expression": {
"type": "CallExpression",
"start": 1019,
"end": 1059,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 1019,
"end": 1057,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 42
}
},
"object": {
"type": "MemberExpression",
"start": 1019,
"end": 1041,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {