UNPKG

awv3

Version:
1,793 lines 106 kB
{ "type": "File", "start": 0, "end": 729, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 18, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 729, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 18, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 32, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 32 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 } }, "local": { "type": "Identifier", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 }, "identifierName": "Angular" }, "name": "Angular" } } ], "source": { "type": "StringLiteral", "start": 20, "end": 31, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 31 } }, "extra": { "rawValue": "./angular", "raw": "'./angular'" }, "value": "./angular" } }, { "type": "ImportDeclaration", "start": 33, "end": 63, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 30 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 40, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } }, "local": { "type": "Identifier", "start": 40, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 }, "identifierName": "Linear" }, "name": "Linear" } } ], "source": { "type": "StringLiteral", "start": 52, "end": 62, "loc": { "start": { "line": 2, "column": 19 }, "end": { "line": 2, "column": 29 } }, "extra": { "rawValue": "./linear", "raw": "'./linear'" }, "value": "./linear" } }, { "type": "ImportDeclaration", "start": 64, "end": 94, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 30 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 71, "end": 77, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 } }, "local": { "type": "Identifier", "start": 71, "end": 77, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 }, "identifierName": "Radial" }, "name": "Radial" } } ], "source": { "type": "StringLiteral", "start": 83, "end": 93, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 29 } }, "extra": { "rawValue": "./radial", "raw": "'./radial'" }, "value": "./radial" } }, { "type": "ImportDeclaration", "start": 95, "end": 131, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 36 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 102, "end": 111, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 16 } }, "local": { "type": "Identifier", "start": 102, "end": 111, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 16 }, "identifierName": "Diametral" }, "name": "Diametral" } } ], "source": { "type": "StringLiteral", "start": 117, "end": 130, "loc": { "start": { "line": 4, "column": 22 }, "end": { "line": 4, "column": 35 } }, "extra": { "rawValue": "./diametral", "raw": "'./diametral'" }, "value": "./diametral" } }, { "type": "ExportDefaultDeclaration", "start": 133, "end": 608, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 13, "column": 1 } }, "declaration": { "type": "FunctionDeclaration", "start": 148, "end": 608, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 13, "column": 1 } }, "id": { "type": "Identifier", "start": 157, "end": 165, "loc": { "start": { "line": 6, "column": 24 }, "end": { "line": 6, "column": 32 }, "identifierName": "Graphics" }, "name": "Graphics" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 166, "end": 170, "loc": { "start": { "line": 6, "column": 33 }, "end": { "line": 6, "column": 37 }, "identifierName": "name" }, "name": "name" }, { "type": "RestElement", "start": 172, "end": 179, "loc": { "start": { "line": 6, "column": 39 }, "end": { "line": 6, "column": 46 } }, "argument": { "type": "Identifier", "start": 175, "end": 179, "loc": { "start": { "line": 6, "column": 42 }, "end": { "line": 6, "column": 46 }, "identifierName": "args" }, "name": "args" } } ], "body": { "type": "BlockStatement", "start": 181, "end": 608, "loc": { "start": { "line": 6, "column": 48 }, "end": { "line": 13, "column": 1 } }, "body": [ { "type": "SwitchStatement", "start": 187, "end": 606, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 12, "column": 5 } }, "discriminant": { "type": "Identifier", "start": 195, "end": 199, "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 16 }, "identifierName": "name" }, "name": "name" }, "cases": [ { "type": "SwitchCase", "start": 211, "end": 238, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 35 } }, "consequent": [], "test": { "type": "StringLiteral", "start": 216, "end": 237, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 34 } }, "extra": { "rawValue": "CC_AngularDimension", "raw": "'CC_AngularDimension'" }, "value": "CC_AngularDimension" } }, { "type": "SwitchCase", "start": 239, "end": 302, "loc": { "start": { "line": 8, "column": 36 }, "end": { "line": 8, "column": 99 } }, "consequent": [ { "type": "ReturnStatement", "start": 274, "end": 302, "loc": { "start": { "line": 8, "column": 71 }, "end": { "line": 8, "column": 99 } }, "argument": { "type": "NewExpression", "start": 281, "end": 301, "loc": { "start": { "line": 8, "column": 78 }, "end": { "line": 8, "column": 98 } }, "callee": { "type": "Identifier", "start": 285, "end": 292, "loc": { "start": { "line": 8, "column": 82 }, "end": { "line": 8, "column": 89 }, "identifierName": "Angular" }, "name": "Angular" }, "arguments": [ { "type": "SpreadElement", "start": 293, "end": 300, "loc": { "start": { "line": 8, "column": 90 }, "end": { "line": 8, "column": 97 } }, "argument": { "type": "Identifier", "start": 296, "end": 300, "loc": { "start": { "line": 8, "column": 93 }, "end": { "line": 8, "column": 97 }, "identifierName": "args" }, "name": "args" } } ] } } ], "test": { "type": "StringLiteral", "start": 244, "end": 272, "loc": { "start": { "line": 8, "column": 41 }, "end": { "line": 8, "column": 69 } }, "extra": { "rawValue": "CC_AngularFeatureDimension", "raw": "'CC_AngularFeatureDimension'" }, "value": "CC_AngularFeatureDimension" } }, { "type": "SwitchCase", "start": 311, "end": 337, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 34 } }, "consequent": [], "test": { "type": "StringLiteral", "start": 316, "end": 336, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 33 } }, "extra": { "rawValue": "CC_LinearDimension", "raw": "'CC_LinearDimension'" }, "value": "CC_LinearDimension" } }, { "type": "SwitchCase", "start": 338, "end": 399, "loc": { "start": { "line": 9, "column": 35 }, "end": { "line": 9, "column": 96 } }, "consequent": [ { "type": "ReturnStatement", "start": 372, "end": 399, "loc": { "start": { "line": 9, "column": 69 }, "end": { "line": 9, "column": 96 } }, "argument": { "type": "NewExpression", "start": 379, "end": 398, "loc": { "start": { "line": 9, "column": 76 }, "end": { "line": 9, "column": 95 } }, "callee": { "type": "Identifier", "start": 383, "end": 389, "loc": { "start": { "line": 9, "column": 80 }, "end": { "line": 9, "column": 86 }, "identifierName": "Linear" }, "name": "Linear" }, "arguments": [ { "type": "SpreadElement", "start": 390, "end": 397, "loc": { "start": { "line": 9, "column": 87 }, "end": { "line": 9, "column": 94 } }, "argument": { "type": "Identifier", "start": 393, "end": 397, "loc": { "start": { "line": 9, "column": 90 }, "end": { "line": 9, "column": 94 }, "identifierName": "args" }, "name": "args" } } ] } } ], "test": { "type": "StringLiteral", "start": 343, "end": 370, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 67 } }, "extra": { "rawValue": "CC_LinearFeatureDimension", "raw": "'CC_LinearFeatureDimension'" }, "value": "CC_LinearFeatureDimension" } }, { "type": "SwitchCase", "start": 408, "end": 434, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 34 } }, "consequent": [], "test": { "type": "StringLiteral", "start": 413, "end": 433, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 33 } }, "extra": { "rawValue": "CC_RadialDimension", "raw": "'CC_RadialDimension'" }, "value": "CC_RadialDimension" } }, { "type": "SwitchCase", "start": 435, "end": 496, "loc": { "start": { "line": 10, "column": 35 }, "end": { "line": 10, "column": 96 } }, "consequent": [ { "type": "ReturnStatement", "start": 469, "end": 496, "loc": { "start": { "line": 10, "column": 69 }, "end": { "line": 10, "column": 96 } }, "argument": { "type": "NewExpression", "start": 476, "end": 495, "loc": { "start": { "line": 10, "column": 76 }, "end": { "line": 10, "column": 95 } }, "callee": { "type": "Identifier", "start": 480, "end": 486, "loc": { "start": { "line": 10, "column": 80 }, "end": { "line": 10, "column": 86 }, "identifierName": "Radial" }, "name": "Radial" }, "arguments": [ { "type": "SpreadElement", "start": 487, "end": 494, "loc": { "start": { "line": 10, "column": 87 }, "end": { "line": 10, "column": 94 } }, "argument": { "type": "Identifier", "start": 490, "end": 494, "loc": { "start": { "line": 10, "column": 90 }, "end": { "line": 10, "column": 94 }, "identifierName": "args" }, "name": "args" } } ] } } ], "test": { "type": "StringLiteral", "start": 440, "end": 467, "loc": { "start": { "line": 10, "column": 40 }, "end": { "line": 10, "column": 67 } }, "extra": { "rawValue": "CC_RadialFeatureDimension", "raw": "'CC_RadialFeatureDimension'" }, "value": "CC_RadialFeatureDimension" } }, { "type": "SwitchCase", "start": 505, "end": 533, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 36 } }, "consequent": [], "test": { "type": "StringLiteral", "start": 510, "end": 532, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 35 } }, "extra": { "rawValue": "CC_DiameterDimension", "raw": "'CC_DiameterDimension'" }, "value": "CC_DiameterDimension" } }, { "type": "SwitchCase", "start": 534, "end": 600, "loc": { "start": { "line": 11, "column": 37 }, "end": { "line": 11, "column": 103 } }, "consequent": [ { "type": "ReturnStatement", "start": 570, "end": 600, "loc": { "start": { "line": 11, "column": 73 }, "end": { "line": 11, "column": 103 } }, "argument": { "type": "NewExpression", "start": 577, "end": 599, "loc": { "start": { "line": 11, "column": 80 }, "end": { "line": 11, "column": 102 } }, "callee": { "type": "Identifier", "start": 581, "end": 590, "loc": { "start": { "line": 11, "column": 84 }, "end": { "line": 11, "column": 93 }, "identifierName": "Diametral" }, "name": "Diametral" }, "arguments": [ { "type": "SpreadElement", "start": 591, "end": 598, "loc": { "start": { "line": 11, "column": 94 }, "end": { "line": 11, "column": 101 } }, "argument": { "type": "Identifier", "start": 594, "end": 598, "loc": { "start": { "line": 11, "column": 97 }, "end": { "line": 11, "column": 101 }, "identifierName": "args" }, "name": "args" } } ] } } ], "test": { "type": "StringLiteral", "start": 539, "end": 568, "loc": { "start": { "line": 11, "column": 42 }, "end": { "line": 11, "column": 71 } }, "extra": { "rawValue": "CC_DiameterFeatureDimension", "raw": "'CC_DiameterFeatureDimension'" }, "value": "CC_DiameterFeatureDimension" } } ] } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentLine", "value": " Support hot reloading", "start": 610, "end": 634, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 24 } } } ], "leadingComments": [] }, "trailingComments": [ { "type": "CommentLine", "value": " Support hot reloading", "start": 610, "end": 634, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 24 } } } ] }, { "type": "IfStatement", "start": 635, "end": 728, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 17, "column": 77 } }, "test": { "type": "MemberExpression", "start": 639, "end": 649, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 14 } }, "object": { "type": "Identifier", "start": 639, "end": 645, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 10 }, "identifierName": "module" }, "name": "module", "leadingComments": null }, "property": { "type": "Identifier", "start": 646, "end": 649, "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 14 }, "identifierName": "hot" }, "name": "hot" }, "computed": false, "leadingComments": null }, "consequent": { "type": "ExpressionStatement", "start": 655, "end": 728, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 77 } }, "expression": { "type": "CallExpression", "start": 655, "end": 727, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 76 } }, "callee": { "type": "MemberExpression", "start": 655, "end": 672, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 21 } }, "object": { "type": "MemberExpression", "start": 655, "end": 665, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 14 } }, "object": { "type": "Identifier", "start": 655, "end": 661, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 10 }, "identifierName": "module" }, "name": "module" }, "property": { "type": "Identifier", "start": 662, "end": 665, "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 14 }, "identifierName": "hot" }, "name": "hot" }, "computed": false }, "property": { "type": "Identifier", "start": 666, "end": 672, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 21 }, "identifierName": "accept" }, "name": "accept" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 673, "end": 726, "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 75 } }, "elements": [ { "type": "StringLiteral", "start": 674, "end": 685, "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 34 } }, "extra": { "rawValue": "./angular", "raw": "'./angular'" }, "value": "./angular" }, { "type": "StringLiteral", "start": 687, "end": 697, "loc": { "start": { "line": 17, "column": 36 }, "end": { "line": 17, "column": 46 } }, "extra": { "rawValue": "./linear", "raw": "'./linear'" }, "value": "./linear" }, { "type": "StringLiteral", "start": 699, "end": 709, "loc": { "start": { "line": 17, "column": 48 }, "end": { "line": 17, "column": 58 } }, "extra": { "rawValue": "./radial", "raw": "'./radial'" }, "value": "./radial" }, { "type": "StringLiteral", "start": 711, "end": 724, "loc": { "start": { "line": 17, "column": 60 }, "end": { "line": 17, "column": 73 } }, "extra": { "rawValue": "./diametral", "raw": "'./diametral'" }, "value": "./diametral" } ] } ] } }, "alternate": null, "leadingComments": [ { "type": "CommentLine", "value": " Support hot reloading", "start": 610, "end": 634, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 24 } } } ] } ], "directives": [] }, "comments": [ { "type": "CommentLine", "value": " Support hot reloading", "start": 610, "end": 634, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 24 } } } ], "tokens": [ { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 0, "end": 6, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 6 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Angular", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 15, "end": 19, "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./angular", "start": 20, "end": 31, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 31, "end": 32, "loc": { "start": { "line": 1, "column": 31 }, "end": { "line": 1, "column": 32 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 33, "end": 39, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 6 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Linear", "start": 40, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 47, "end": 51, "loc": { "start": { "line": 2, "column": 14 }, "end": { "line": 2, "column": 18 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./linear", "start": 52, "end": 62, "loc": { "start": { "line": 2, "column": 19 }, "end": { "line": 2, "column": 29 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 62, "end": 63, "loc": { "start": { "line": 2, "column": 29 }, "end": { "line": 2, "column": 30 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 64, "end": 70, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 6 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Radial", "start": 71, "end": 77, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 78, "end": 82, "loc": { "start": { "line": 3, "column": 14 }, "end": { "line": 3, "column": 18 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value