awv3
Version:
AWV client CAD framework
2,094 lines • 4.57 MB
JSON
{
"type": "Program",
"start": 0,
"end": 48325,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1180,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 61,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 61
}
},
"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": 60,
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 60
}
},
"value": "../sketcher/cchelpers",
"rawValue": "../sketcher/cchelpers",
"raw": "'../sketcher/cchelpers'"
}
},
{
"type": "ImportDeclaration",
"start": 63,
"end": 111,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 48
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 70,
"end": 80,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 17
}
},
"local": {
"type": "Identifier",
"start": 70,
"end": 80,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 17
}
},
"name": "Constraint"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 86,
"end": 110,
"loc": {
"start": {
"line": 2,
"column": 23
},
"end": {
"line": 2,
"column": 47
}
},
"value": "../sketcher/constraint",
"rawValue": "../sketcher/constraint",
"raw": "'../sketcher/constraint'"
}
},
{
"type": "ImportDeclaration",
"start": 113,
"end": 153,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 40
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 120,
"end": 126,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 120,
"end": 126,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"name": "Sketch"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 132,
"end": 152,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 39
}
},
"value": "../sketcher/sketch",
"rawValue": "../sketcher/sketch",
"raw": "'../sketcher/sketch'"
}
},
{
"type": "ImportDeclaration",
"start": 155,
"end": 325,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 5,
"column": 89
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 163,
"end": 179,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 24
}
},
"imported": {
"type": "Identifier",
"start": 163,
"end": 179,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 24
}
},
"name": "createGeomObject"
},
"local": {
"type": "Identifier",
"start": 163,
"end": 179,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 24
}
},
"name": "createGeomObject"
}
},
{
"type": "ImportSpecifier",
"start": 181,
"end": 198,
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 43
}
},
"imported": {
"type": "Identifier",
"start": 181,
"end": 198,
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 43
}
},
"name": "drawArcBy_S_E_CPh"
},
"local": {
"type": "Identifier",
"start": 181,
"end": 198,
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 43
}
},
"name": "drawArcBy_S_E_CPh"
}
},
{
"type": "ImportSpecifier",
"start": 200,
"end": 215,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 4,
"column": 60
}
},
"imported": {
"type": "Identifier",
"start": 200,
"end": 215,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 4,
"column": 60
}
},
"name": "drawArcBy_S_E_M"
},
"local": {
"type": "Identifier",
"start": 200,
"end": 215,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 4,
"column": 60
}
},
"name": "drawArcBy_S_E_M"
}
},
{
"type": "ImportSpecifier",
"start": 217,
"end": 233,
"loc": {
"start": {
"line": 4,
"column": 62
},
"end": {
"line": 4,
"column": 78
}
},
"imported": {
"type": "Identifier",
"start": 217,
"end": 233,
"loc": {
"start": {
"line": 4,
"column": 62
},
"end": {
"line": 4,
"column": 78
}
},
"name": "drawArcBy_S_E_Ch"
},
"local": {
"type": "Identifier",
"start": 217,
"end": 233,
"loc": {
"start": {
"line": 4,
"column": 62
},
"end": {
"line": 4,
"column": 78
}
},
"name": "drawArcBy_S_E_Ch"
}
},
{
"type": "ImportSpecifier",
"start": 240,
"end": 255,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 19
}
},
"imported": {
"type": "Identifier",
"start": 240,
"end": 255,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 19
}
},
"name": "drawArcBy_S_T_E"
},
"local": {
"type": "Identifier",
"start": 240,
"end": 255,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 19
}
},
"name": "drawArcBy_S_T_E"
}
},
{
"type": "ImportSpecifier",
"start": 257,
"end": 274,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 38
}
},
"imported": {
"type": "Identifier",
"start": 257,
"end": 274,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 38
}
},
"name": "drawArcBy_Angle_M"
},
"local": {
"type": "Identifier",
"start": 257,
"end": 274,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 38
}
},
"name": "drawArcBy_Angle_M"
}
},
{
"type": "ImportSpecifier",
"start": 276,
"end": 294,
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 58
}
},
"imported": {
"type": "Identifier",
"start": 276,
"end": 294,
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 58
}
},
"name": "drawLineBy_Angle_M"
},
"local": {
"type": "Identifier",
"start": 276,
"end": 294,
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 58
}
},
"name": "drawLineBy_Angle_M"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 301,
"end": 324,
"loc": {
"start": {
"line": 5,
"column": 65
},
"end": {
"line": 5,
"column": 88
}
},
"value": "../sketcher/geomutils",
"rawValue": "../sketcher/geomutils",
"raw": "'../sketcher/geomutils'"
}
},
{
"type": "ImportDeclaration",
"start": 327,
"end": 401,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 74
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 335,
"end": 350,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 23
}
},
"imported": {
"type": "Identifier",
"start": 335,
"end": 350,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 23
}
},
"name": "GeometricObject"
},
"local": {
"type": "Identifier",
"start": 335,
"end": 350,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 23
}
},
"name": "GeometricObject"
}
},
{
"type": "ImportSpecifier",
"start": 352,
"end": 357,
"loc": {
"start": {
"line": 6,
"column": 25
},
"end": {
"line": 6,
"column": 30
}
},
"imported": {
"type": "Identifier",
"start": 352,
"end": 357,
"loc": {
"start": {
"line": 6,
"column": 25
},
"end": {
"line": 6,
"column": 30
}
},
"name": "Point"
},
"local": {
"type": "Identifier",
"start": 352,
"end": 357,
"loc": {
"start": {
"line": 6,
"column": 25
},
"end": {
"line": 6,
"column": 30
}
},
"name": "Point"
}
},
{
"type": "ImportSpecifier",
"start": 359,
"end": 363,
"loc": {
"start": {
"line": 6,
"column": 32
},
"end": {
"line": 6,
"column": 36
}
},
"imported": {
"type": "Identifier",
"start": 359,
"end": 363,
"loc": {
"start": {
"line": 6,
"column": 32
},
"end": {
"line": 6,
"column": 36
}
},
"name": "Line"
},
"local": {
"type": "Identifier",
"start": 359,
"end": 363,
"loc": {
"start": {
"line": 6,
"column": 32
},
"end": {
"line": 6,
"column": 36
}
},
"name": "Line"
}
},
{
"type": "ImportSpecifier",
"start": 365,
"end": 368,
"loc": {
"start": {
"line": 6,
"column": 38
},
"end": {
"line": 6,
"column": 41
}
},
"imported": {
"type": "Identifier",
"start": 365,
"end": 368,
"loc": {
"start": {
"line": 6,
"column": 38
},
"end": {
"line": 6,
"column": 41
}
},
"name": "Arc"
},
"local": {
"type": "Identifier",
"start": 365,
"end": 368,
"loc": {
"start": {
"line": 6,
"column": 38
},
"end": {
"line": 6,
"column": 41
}
},
"name": "Arc"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 375,
"end": 400,
"loc": {
"start": {
"line": 6,
"column": 48
},
"end": {
"line": 6,
"column": 73
}
},
"value": "../sketcher/geomobjects",
"rawValue": "../sketcher/geomobjects",
"raw": "'../sketcher/geomobjects'"
}
},
{
"type": "ImportDeclaration",
"start": 403,
"end": 483,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 80
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 411,
"end": 427,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 24
}
},
"imported": {
"type": "Identifier",
"start": 411,
"end": 427,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 24
}
},
"name": "ConstraintsAdder"
},
"local": {
"type": "Identifier",
"start": 411,
"end": 427,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 24
}
},
"name": "ConstraintsAdder"
}
},
{
"type": "ImportSpecifier",
"start": 429,
"end": 448,
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 7,
"column": 45
}
},
"imported": {
"type": "Identifier",
"start": 429,
"end": 448,
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 7,
"column": 45
}
},
"name": "ConstraintGenerator"
},
"local": {
"type": "Identifier",
"start": 429,
"end": 448,
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 7,
"column": 45
}
},
"name": "ConstraintGenerator"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 455,
"end": 482,
"loc": {
"start": {
"line": 7,
"column": 52
},
"end": {
"line": 7,
"column": 79
}
},
"value": "../sketcher/constraintgen",
"rawValue": "../sketcher/constraintgen",
"raw": "'../sketcher/constraintgen'"
}
},
{
"type": "ImportDeclaration",
"start": 485,
"end": 534,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 49
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 492,
"end": 507,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 22
}
},
"local": {
"type": "Identifier",
"start": 492,
"end": 507,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 22
}
},
"name": "FilletProcessor"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 513,
"end": 533,
"loc": {
"start": {
"line": 8,
"column": 28
},
"end": {
"line": 8,
"column": 48
}
},
"value": "../sketcher/fillet",
"rawValue": "../sketcher/fillet",
"raw": "'../sketcher/fillet'"
}
},
{
"type": "ImportDeclaration",
"start": 536,
"end": 585,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 49
}
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"start": 543,
"end": 556,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 20
}
},
"local": {
"type": "Identifier",
"start": 548,
"end": 556,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 20
}
},
"name": "Controls"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 562,
"end": 584,
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 48
}
},
"value": "../sketcher/controls",
"rawValue": "../sketcher/controls",
"raw": "'../sketcher/controls'"
}
},
{
"type": "ImportDeclaration",
"start": 587,
"end": 613,
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 10,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 594,
"end": 599,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 594,
"end": 599,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 12
}
},
"name": "THREE"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 605,
"end": 612,
"loc": {
"start": {
"line": 10,
"column": 18
},
"end": {
"line": 10,
"column": 25
}
},
"value": "three",
"rawValue": "three",
"raw": "'three'"
}
},
{
"type": "ImportDeclaration",
"start": 615,
"end": 654,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 39
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 622,
"end": 629,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 11,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 622,
"end": 629,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 11,
"column": 14
}
},
"name": "Object3"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 635,
"end": 653,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 38
}
},
"value": "../three/object3",
"rawValue": "../three/object3",
"raw": "'../three/object3'"
}
},
{
"type": "ImportDeclaration",
"start": 656,
"end": 698,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 12,
"column": 42
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 664,
"end": 673,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 17
}
},
"imported": {
"type": "Identifier",
"start": 664,
"end": 673,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 17
}
},
"name": "Timestamp"
},
"local": {
"type": "Identifier",
"start": 664,
"end": 673,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 17
}
},
"name": "Timestamp"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 680,
"end": 697,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 41
}
},
"value": "../core/helpers",
"rawValue": "../core/helpers",
"raw": "'../core/helpers'"
}
},
{
"type": "VariableDeclaration",
"start": 702,
"end": 900,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 23,
"column": 1
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 706,
"end": 900,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 23,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 706,
"end": 721,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 19
}
},
"name": "consoleCommands"
},
"init": {
"type": "ObjectExpression",
"start": 724,
"end": 900,
"loc": {
"start": {
"line": 14,
"column": 22
},
"end": {
"line": 23,
"column": 1
}
},
"properties": [
{
"type": "Property",
"start": 731,
"end": 742,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 15
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 731,
"end": 736,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 9
}
},
"name": "point"
},
"value": {
"type": "Literal",
"start": 739,
"end": 742,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 15
}
},
"value": "p",
"rawValue": "p",
"raw": "\"p\""
},
"kind": "init"
},
{
"type": "Property",
"start": 749,
"end": 759,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 14
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 749,
"end": 753,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 8
}
},
"name": "line"
},
"value": {
"type": "Literal",
"start": 756,
"end": 759,
"loc": {
"start": {
"line": 16,
"column": 11
},
"end": {
"line": 16,
"column": 14
}
},
"value": "l",
"rawValue": "l",
"raw": "\"l\""
},
"kind": "init"
},
{
"type": "Property",
"start": 766,
"end": 783,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 21
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 766,
"end": 775,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 13
}
},
"name": "arcCenter"
},
"value": {
"type": "Literal",
"start": 778,
"end": 783,
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 21
}
},
"value": "acn",
"rawValue": "acn",
"raw": "\"acn\""
},
"kind": "init"
},
{
"type": "Property",
"start": 790,
"end": 808,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 22
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 790,
"end": 800,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 14
}
},
"name": "arcControl"
},
"value": {
"type": "Literal",
"start": 803,
"end": 808,
"loc": {
"start": {
"line": 18,
"column": 17
},
"end": {
"line": 18,
"column": 22
}
},
"value": "act",
"rawValue": "act",
"raw": "\"act\""
},
"kind": "init"
},
{
"type": "Property",
"start": 815,
"end": 832,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 21
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 815,
"end": 825,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 14
}
},
"name": "arcTangent"
},
"value": {
"type": "Literal",
"start": 828,
"end": 832,
"loc": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 19,
"column": 21
}
},
"value": "at",
"rawValue": "at",
"raw": "\"at\""
},
"kind": "init"
},
{
"type": "Property",
"start": 839,
"end": 855,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 20
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 839,
"end": 848,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 13
}
},
"name": "arcMiddle"
},
"value": {
"type": "Literal",
"start": 851,
"end": 855,
"loc": {
"start": {
"line": 20,
"column": 16
},
"end": {
"line": 20,
"column": 20
}
},
"value": "am",
"rawValue": "am",
"raw": "\"am\""
},
"kind": "init"
},
{
"type": "Property",
"start": 862,
"end": 877,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 19
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 862,
"end": 870,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 12
}
},
"name": "polyline"
},
"value": {
"type": "Literal",
"start": 873,
"end": 877,
"loc": {
"start": {
"line": 21,
"column": 15
},
"end": {
"line": 21,
"column": 19
}
},
"value": "pl",
"rawValue": "pl",
"raw": "\"pl\""
},
"kind": "init"
},
{
"type": "Property",
"start": 884,
"end": 896,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 16
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 884,
"end": 890,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 10
}
},
"name": "fillet"
},
"value": {
"type": "Literal",
"start": 893,
"end": 896,
"loc": {
"start": {
"line": 22,
"column": 13
},
"end": {
"line": 22,
"column": 16
}
},
"value": "f",
"rawValue": "f",
"raw": "\"f\""
},
"kind": "init"
}
],
"trailingComments": null
},
"trailingComments": null
}
],
"kind": "var",
"trailingComments": [
{
"type": "CommentLine",
"value": "================================ interactionFunctions =========================================",
"start": 904,
"end": 1001,
"loc": {
"start": {
"line": 25,
"column": 0
},
"end": {
"line": 25,
"column": 97
}
},
"range": [
904,
1001
]
}
]
},
{
"type": "FunctionDeclaration",
"start": 1003,
"end": 1559,
"loc": {
"start": {
"line": 26,
"column": 0
},
"end": {
"line": 42,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1012,
"end": 1025,
"loc": {
"start": {
"line": 26,
"column": 9
},
"end": {
"line": 26,
"column": 22
}
},
"name": "hoverFunction",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1026,
"end": 1029,
"loc": {
"start": {
"line": 26,
"column": 23
},
"end": {
"line": 26,
"column": 26
}
},
"name": "obj"
},
{
"type": "Identifier",
"start": 1031,
"end": 1039,
"loc": {
"start": {
"line": 26,
"column": 28
},
"end": {
"line": 26,
"column": 36
}
},
"name": "sketcher"
}
],
"body": {
"type": "BlockStatement",
"start": 1041,
"end": 1559,
"loc": {
"start": {
"line": 26,
"column": 38
},
"end": {
"line": 42,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 1048,
"end": 1112,
"loc": {
"start": {
"line": 27,
"column": 4
},
"end": {
"line": 27,
"column": 68
}
},
"test": {
"type": "LogicalExpression",
"start": 1052,
"end": 1103,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 59
}
},
"left": {
"type": "UnaryExpression",
"start": 1052,
"end": 1080,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 36
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "BinaryExpression",
"start": 1054,
"end": 1079,
"loc": {
"start": {
"line": 27,
"column": 10
},
"end": {
"line": 27,
"column": 35
}
},
"left": {
"type": "Identifier",
"start": 1054,
"end": 1057,
"loc": {
"start": {
"line": 27,
"column": 10
},
"end": {
"line": 27,
"column": 13
}
},
"name": "obj"
},
"operator": "instanceof",
"right": {
"type": "Identifier",
"start": 1069,
"end": 1079,
"loc": {
"start": {
"line": 27,
"column": 25
},
"end": {
"line": 27,
"column": 35
}
},
"name": "Constraint"
},
"parenthesizedExpression": true
}
},
"operator": "&&",
"right": {
"type": "UnaryExpression",
"start": 1084,
"end": 1103,
"loc": {
"start": {
"line": 27,
"column": 40
},
"end": {
"line": 27,
"column": 59
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 1085,
"end": 1103,
"loc": {
"start": {
"line": 27,
"column": 41
},
"end": {
"line": 27,
"column": 59
}
},
"object": {
"type": "MemberExpression",
"start": 1085,
"end": 1097,
"loc": {
"start": {
"line": 27,
"column": 41
},
"end": {
"line": 27,
"column": 53
}
},
"object": {
"type": "Identifier",
"start": 1085,
"end": 1088,
"loc": {
"start": {
"line": 27,
"c