diff --git a/README.md b/README.md index e1407f7..93e5d4d 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ https://www.cnblogs.com/pcyy/p/5655542.html ## Settings -See the document. +See the [document](https://xiazeyu.github.io/live2d-widget.js/docs/class/src/index.js~L2Dwidget.html#instance-method-init).
Current supported models:
diff --git a/docsrc/CHANGELOG.md b/docsrc/CHANGELOG.md index 11379ed..95574f1 100644 --- a/docsrc/CHANGELOG.md +++ b/docsrc/CHANGELOG.md @@ -1,9 +1,74 @@ -# Unreleased (2018-01-13) +# Unreleased (2018-01-19) + +## 3.0.1 (2018-01-19) + +* 3.0.1 ([34a76c8](https://github.com/xiazeyu/live2d-widget.js/commit/34a76c8)) +* docs: relink js to unpkg CDN ([bde33f6](https://github.com/xiazeyu/live2d-widget.js/commit/bde33f6)) +* fix: achieve frameshot, recover event system ([155d46b](https://github.com/xiazeyu/live2d-widget.js/commit/155d46b)) +* style: change L2Dwidget into Class ([c98040a](https://github.com/xiazeyu/live2d-widget.js/commit/c98040a)) +* build: add script to bump version better ([c304bc2](https://github.com/xiazeyu/live2d-widget.js/commit/c304bc2)) + + + + +## 3.0.6 (2018-01-19) + +* 3.0.6 ([15ebe5d](https://github.com/xiazeyu/live2d-widget.js/commit/15ebe5d)) + + + + +## 3.0.5 (2018-01-19) + +* 3.0.5 ([34514d6](https://github.com/xiazeyu/live2d-widget.js/commit/34514d6)) + + + + +## 3.0.4 (2018-01-19) + +* 3.0.4 ([d66ab98](https://github.com/xiazeyu/live2d-widget.js/commit/d66ab98)) + + + + +## 3.0.4-0 (2018-01-19) + +* 3.0.4-0 ([2c919c8](https://github.com/xiazeyu/live2d-widget.js/commit/2c919c8)) + + + + +## 3.0.3-0 (2018-01-19) + +* 3.0.3-0 ([70cfeda](https://github.com/xiazeyu/live2d-widget.js/commit/70cfeda)) + + + + +## 3.0.2-0 (2018-01-19) + +* 3.0.2-0 ([3d4f065](https://github.com/xiazeyu/live2d-widget.js/commit/3d4f065)) + + + + +## 3.0.1-0 (2018-01-19) + +* 3.0.1-0 ([8458a4f](https://github.com/xiazeyu/live2d-widget.js/commit/8458a4f)) +* build(fix changelog script path problem): ([67c56ee](https://github.com/xiazeyu/live2d-widget.js/commit/67c56ee)) +* chore(update dependency settings): ([7796aac](https://github.com/xiazeyu/live2d-widget.js/commit/7796aac)) +* docs: update CHANGELOG ([c840cfa](https://github.com/xiazeyu/live2d-widget.js/commit/c840cfa)) +* docs(method of execute): finish the doc of launch it (use var) ([1b43dc0](https://github.com/xiazeyu/live2d-widget.js/commit/1b43dc0)) +* build: remove ghpages from npm publish ([7401ffe](https://github.com/xiazeyu/live2d-widget.js/commit/7401ffe)) + + + # 3.0.0 (2018-01-13) diff --git a/ghpages/docs/ast/source/cLive2DApp.js.json b/ghpages/docs/ast/source/cLive2DApp.js.json index 6cd18fb..8a3abf7 100644 --- a/ghpages/docs/ast/source/cLive2DApp.js.json +++ b/ghpages/docs/ast/source/cLive2DApp.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 10796, + "end": 10972, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 417, + "line": 429, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 10796, + "end": 10972, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 417, + "line": 429, "column": 0 } }, @@ -1618,7 +1618,7 @@ { "type": "VariableDeclaration", "start": 758, - "end": 782, + "end": 789, "loc": { "start": { "line": 29, @@ -1626,14 +1626,14 @@ }, "end": { "line": 29, - "column": 24 + "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 762, - "end": 781, + "end": 788, "loc": { "start": { "line": 29, @@ -1641,13 +1641,13 @@ }, "end": { "line": 29, - "column": 23 + "column": 30 } }, "id": { "type": "Identifier", "start": 762, - "end": 773, + "end": 776, "loc": { "start": { "line": 29, @@ -1655,27 +1655,28 @@ }, "end": { "line": 29, - "column": 15 + "column": 18 }, - "identifierName": "isDrawStart" + "identifierName": "captureFrameCB" }, - "name": "isDrawStart" + "name": "captureFrameCB" }, "init": { - "type": "BooleanLiteral", - "start": 776, - "end": 781, + "type": "Identifier", + "start": 779, + "end": 788, "loc": { "start": { "line": 29, - "column": 18 + "column": 21 }, "end": { "line": 29, - "column": 23 - } + "column": 30 + }, + "identifierName": "undefined" }, - "value": false + "name": "undefined" } } ], @@ -1683,8 +1684,8 @@ }, { "type": "VariableDeclaration", - "start": 783, - "end": 802, + "start": 790, + "end": 814, "loc": { "start": { "line": 30, @@ -1692,14 +1693,14 @@ }, "end": { "line": 30, - "column": 19 + "column": 24 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 787, - "end": 801, + "start": 794, + "end": 813, "loc": { "start": { "line": 30, @@ -1707,13 +1708,13 @@ }, "end": { "line": 30, - "column": 18 + "column": 23 } }, "id": { "type": "Identifier", - "start": 787, - "end": 794, + "start": 794, + "end": 805, "loc": { "start": { "line": 30, @@ -1721,26 +1722,27 @@ }, "end": { "line": 30, - "column": 11 + "column": 15 }, - "identifierName": "dragMgr" + "identifierName": "isDrawStart" }, - "name": "dragMgr" + "name": "isDrawStart" }, "init": { - "type": "NullLiteral", - "start": 797, - "end": 801, + "type": "BooleanLiteral", + "start": 808, + "end": 813, "loc": { "start": { "line": 30, - "column": 14 + "column": 18 }, "end": { "line": 30, - "column": 18 + "column": 23 } - } + }, + "value": false } } ], @@ -1748,8 +1750,8 @@ }, { "type": "VariableDeclaration", - "start": 803, - "end": 825, + "start": 815, + "end": 834, "loc": { "start": { "line": 31, @@ -1757,14 +1759,14 @@ }, "end": { "line": 31, - "column": 22 + "column": 19 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 807, - "end": 824, + "start": 819, + "end": 833, "loc": { "start": { "line": 31, @@ -1772,13 +1774,13 @@ }, "end": { "line": 31, - "column": 21 + "column": 18 } }, "id": { "type": "Identifier", - "start": 807, - "end": 817, + "start": 819, + "end": 826, "loc": { "start": { "line": 31, @@ -1786,24 +1788,24 @@ }, "end": { "line": 31, - "column": 14 + "column": 11 }, - "identifierName": "viewMatrix" + "identifierName": "dragMgr" }, - "name": "viewMatrix" + "name": "dragMgr" }, "init": { "type": "NullLiteral", - "start": 820, - "end": 824, + "start": 829, + "end": 833, "loc": { "start": { "line": 31, - "column": 17 + "column": 14 }, "end": { "line": 31, - "column": 21 + "column": 18 } } } @@ -1813,8 +1815,8 @@ }, { "type": "VariableDeclaration", - "start": 826, - "end": 848, + "start": 835, + "end": 857, "loc": { "start": { "line": 32, @@ -1828,8 +1830,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 830, - "end": 847, + "start": 839, + "end": 856, "loc": { "start": { "line": 32, @@ -1842,8 +1844,8 @@ }, "id": { "type": "Identifier", - "start": 830, - "end": 840, + "start": 839, + "end": 849, "loc": { "start": { "line": 32, @@ -1853,14 +1855,14 @@ "line": 32, "column": 14 }, - "identifierName": "projMatrix" + "identifierName": "viewMatrix" }, - "name": "projMatrix" + "name": "viewMatrix" }, "init": { "type": "NullLiteral", - "start": 843, - "end": 847, + "start": 852, + "end": 856, "loc": { "start": { "line": 32, @@ -1878,8 +1880,8 @@ }, { "type": "VariableDeclaration", - "start": 849, - "end": 875, + "start": 858, + "end": 880, "loc": { "start": { "line": 33, @@ -1887,14 +1889,14 @@ }, "end": { "line": 33, - "column": 26 + "column": 22 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 853, - "end": 874, + "start": 862, + "end": 879, "loc": { "start": { "line": 33, @@ -1902,13 +1904,13 @@ }, "end": { "line": 33, - "column": 25 + "column": 21 } }, "id": { "type": "Identifier", - "start": 853, - "end": 867, + "start": 862, + "end": 872, "loc": { "start": { "line": 33, @@ -1916,24 +1918,24 @@ }, "end": { "line": 33, - "column": 18 + "column": 14 }, - "identifierName": "deviceToScreen" + "identifierName": "projMatrix" }, - "name": "deviceToScreen" + "name": "projMatrix" }, "init": { "type": "NullLiteral", - "start": 870, - "end": 874, + "start": 875, + "end": 879, "loc": { "start": { "line": 33, - "column": 21 + "column": 17 }, "end": { "line": 33, - "column": 25 + "column": 21 } } } @@ -1943,8 +1945,8 @@ }, { "type": "VariableDeclaration", - "start": 876, - "end": 893, + "start": 881, + "end": 907, "loc": { "start": { "line": 34, @@ -1952,14 +1954,14 @@ }, "end": { "line": 34, - "column": 17 + "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 880, - "end": 892, + "start": 885, + "end": 906, "loc": { "start": { "line": 34, @@ -1967,13 +1969,13 @@ }, "end": { "line": 34, - "column": 16 + "column": 25 } }, "id": { "type": "Identifier", - "start": 880, - "end": 884, + "start": 885, + "end": 899, "loc": { "start": { "line": 34, @@ -1981,6 +1983,71 @@ }, "end": { "line": 34, + "column": 18 + }, + "identifierName": "deviceToScreen" + }, + "name": "deviceToScreen" + }, + "init": { + "type": "NullLiteral", + "start": 902, + "end": 906, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 25 + } + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 908, + "end": 925, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 35, + "column": 17 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 912, + "end": 924, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 16 + } + }, + "id": { + "type": "Identifier", + "start": 912, + "end": 916, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, "column": 8 }, "identifierName": "drag" @@ -1989,15 +2056,15 @@ }, "init": { "type": "BooleanLiteral", - "start": 887, - "end": 892, + "start": 919, + "end": 924, "loc": { "start": { - "line": 34, + "line": 35, "column": 11 }, "end": { - "line": 34, + "line": 35, "column": 16 } }, @@ -2009,44 +2076,44 @@ }, { "type": "VariableDeclaration", - "start": 894, - "end": 913, + "start": 926, + "end": 945, "loc": { "start": { - "line": 35, + "line": 36, "column": 0 }, "end": { - "line": 35, + "line": 36, "column": 19 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 898, - "end": 912, + "start": 930, + "end": 944, "loc": { "start": { - "line": 35, + "line": 36, "column": 4 }, "end": { - "line": 35, + "line": 36, "column": 18 } }, "id": { "type": "Identifier", - "start": 898, - "end": 908, + "start": 930, + "end": 940, "loc": { "start": { - "line": 35, + "line": 36, "column": 4 }, "end": { - "line": 35, + "line": 36, "column": 14 }, "identifierName": "lastMouseX" @@ -2055,15 +2122,15 @@ }, "init": { "type": "NumericLiteral", - "start": 911, - "end": 912, + "start": 943, + "end": 944, "loc": { "start": { - "line": 35, + "line": 36, "column": 17 }, "end": { - "line": 35, + "line": 36, "column": 18 } }, @@ -2079,44 +2146,44 @@ }, { "type": "VariableDeclaration", - "start": 914, - "end": 933, + "start": 946, + "end": 965, "loc": { "start": { - "line": 36, + "line": 37, "column": 0 }, "end": { - "line": 36, + "line": 37, "column": 19 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 918, - "end": 932, + "start": 950, + "end": 964, "loc": { "start": { - "line": 36, + "line": 37, "column": 4 }, "end": { - "line": 36, + "line": 37, "column": 18 } }, "id": { "type": "Identifier", - "start": 918, - "end": 928, + "start": 950, + "end": 960, "loc": { "start": { - "line": 36, + "line": 37, "column": 4 }, "end": { - "line": 36, + "line": 37, "column": 14 }, "identifierName": "lastMouseY" @@ -2125,15 +2192,15 @@ }, "init": { "type": "NumericLiteral", - "start": 931, - "end": 932, + "start": 963, + "end": 964, "loc": { "start": { - "line": 36, + "line": 37, "column": 17 }, "end": { - "line": 36, + "line": 37, "column": 18 } }, @@ -2149,44 +2216,44 @@ }, { "type": "VariableDeclaration", - "start": 934, - "end": 952, + "start": 966, + "end": 984, "loc": { "start": { - "line": 37, + "line": 38, "column": 0 }, "end": { - "line": 37, + "line": 38, "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 938, - "end": 951, + "start": 970, + "end": 983, "loc": { "start": { - "line": 37, + "line": 38, "column": 4 }, "end": { - "line": 37, + "line": 38, "column": 17 } }, "id": { "type": "Identifier", - "start": 938, - "end": 945, + "start": 970, + "end": 977, "loc": { "start": { - "line": 37, + "line": 38, "column": 4 }, "end": { - "line": 37, + "line": 38, "column": 11 }, "identifierName": "headPos" @@ -2195,15 +2262,15 @@ }, "init": { "type": "NumericLiteral", - "start": 948, - "end": 951, + "start": 980, + "end": 983, "loc": { "start": { - "line": 37, + "line": 38, "column": 14 }, "end": { - "line": 37, + "line": 38, "column": 17 } }, @@ -2219,44 +2286,44 @@ }, { "type": "VariableDeclaration", - "start": 953, - "end": 978, + "start": 985, + "end": 1010, "loc": { "start": { - "line": 38, + "line": 39, "column": 0 }, "end": { - "line": 38, + "line": 39, "column": 25 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 957, - "end": 977, + "start": 989, + "end": 1009, "loc": { "start": { - "line": 38, + "line": 39, "column": 4 }, "end": { - "line": 38, + "line": 39, "column": 24 } }, "id": { "type": "Identifier", - "start": 957, - "end": 971, + "start": 989, + "end": 1003, "loc": { "start": { - "line": 38, + "line": 39, "column": 4 }, "end": { - "line": 38, + "line": 39, "column": 18 }, "identifierName": "opacityDefault" @@ -2265,15 +2332,15 @@ }, "init": { "type": "NumericLiteral", - "start": 974, - "end": 977, + "start": 1006, + "end": 1009, "loc": { "start": { - "line": 38, + "line": 39, "column": 21 }, "end": { - "line": 38, + "line": 39, "column": 24 } }, @@ -2289,44 +2356,44 @@ }, { "type": "VariableDeclaration", - "start": 979, - "end": 1000, + "start": 1011, + "end": 1032, "loc": { "start": { - "line": 39, + "line": 40, "column": 0 }, "end": { - "line": 39, + "line": 40, "column": 21 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 983, - "end": 999, + "start": 1015, + "end": 1031, "loc": { "start": { - "line": 39, + "line": 40, "column": 4 }, "end": { - "line": 39, + "line": 40, "column": 20 } }, "id": { "type": "Identifier", - "start": 983, - "end": 995, + "start": 1015, + "end": 1027, "loc": { "start": { - "line": 39, + "line": 40, "column": 4 }, "end": { - "line": 39, + "line": 40, "column": 16 }, "identifierName": "opacityHover" @@ -2335,15 +2402,15 @@ }, "init": { "type": "NumericLiteral", - "start": 998, - "end": 999, + "start": 1030, + "end": 1031, "loc": { "start": { - "line": 39, + "line": 40, "column": 19 }, "end": { - "line": 39, + "line": 40, "column": 20 } }, @@ -2360,15 +2427,15 @@ { "type": "CommentBlock", "value": "*\n * Main function of live2d-widget\n * @return {null}\n ", - "start": 1004, - "end": 1063, + "start": 1036, + "end": 1095, "loc": { "start": { - "line": 43, + "line": 44, "column": 0 }, "end": { - "line": 46, + "line": 47, "column": 3 } } @@ -2377,29 +2444,29 @@ }, { "type": "Identifier", - "start": 1065, - "end": 2057, + "start": 1097, + "end": 2073, "loc": { "start": { - "line": 48, + "line": 49, "column": 0 }, "end": { - "line": 81, + "line": 84, "column": 1 } }, "id": { "type": "Identifier", - "start": 1074, - "end": 1085, + "start": 1106, + "end": 1117, "loc": { "start": { - "line": 48, + "line": 49, "column": 9 }, "end": { - "line": 48, + "line": 49, "column": 20 }, "identifierName": "theRealInit" @@ -2413,58 +2480,58 @@ "params": [], "body": { "type": "BlockStatement", - "start": 1088, - "end": 2057, + "start": 1120, + "end": 2073, "loc": { "start": { - "line": 48, + "line": 49, "column": 23 }, "end": { - "line": 81, + "line": 84, "column": 1 } }, "body": [ { "type": "ExpressionStatement", - "start": 1093, - "end": 1109, + "start": 1125, + "end": 1141, "loc": { "start": { - "line": 50, + "line": 51, "column": 2 }, "end": { - "line": 50, + "line": 51, "column": 18 } }, "expression": { "type": "CallExpression", - "start": 1093, - "end": 1108, + "start": 1125, + "end": 1140, "loc": { "start": { - "line": 50, + "line": 51, "column": 2 }, "end": { - "line": 50, + "line": 51, "column": 17 } }, "callee": { "type": "Identifier", - "start": 1093, - "end": 1106, + "start": 1125, + "end": 1138, "loc": { "start": { - "line": 50, + "line": 51, "column": 2 }, "end": { - "line": 50, + "line": 51, "column": 15 }, "identifierName": "createElement" @@ -2476,8 +2543,8 @@ }, { "type": "ExpressionStatement", - "start": 1113, - "end": 1144, + "start": 1144, + "end": 1156, "loc": { "start": { "line": 52, @@ -2485,13 +2552,13 @@ }, "end": { "line": 52, - "column": 33 + "column": 14 } }, "expression": { - "type": "AssignmentExpression", - "start": 1113, - "end": 1143, + "type": "CallExpression", + "start": 1144, + "end": 1155, "loc": { "start": { "line": 52, @@ -2499,21 +2566,69 @@ }, "end": { "line": 52, + "column": 13 + } + }, + "callee": { + "type": "Identifier", + "start": 1144, + "end": 1153, + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 52, + "column": 11 + }, + "identifierName": "initEvent" + }, + "name": "initEvent" + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 1160, + "end": 1191, + "loc": { + "start": { + "line": 54, + "column": 2 + }, + "end": { + "line": 54, + "column": 33 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1160, + "end": 1190, + "loc": { + "start": { + "line": 54, + "column": 2 + }, + "end": { + "line": 54, "column": 32 } }, "operator": "=", "left": { "type": "Identifier", - "start": 1113, - "end": 1120, + "start": 1160, + "end": 1167, "loc": { "start": { - "line": 52, + "line": 54, "column": 2 }, "end": { - "line": 52, + "line": 54, "column": 9 }, "identifierName": "dragMgr" @@ -2522,29 +2637,29 @@ }, "right": { "type": "NewExpression", - "start": 1123, - "end": 1143, + "start": 1170, + "end": 1190, "loc": { "start": { - "line": 52, + "line": 54, "column": 12 }, "end": { - "line": 52, + "line": 54, "column": 32 } }, "callee": { "type": "Identifier", - "start": 1127, - "end": 1141, + "start": 1174, + "end": 1188, "loc": { "start": { - "line": 52, + "line": 54, "column": 16 }, "end": { - "line": 52, + "line": 54, "column": 30 }, "identifierName": "L2DTargetPoint" @@ -2557,44 +2672,44 @@ }, { "type": "VariableDeclaration", - "start": 1147, - "end": 1204, + "start": 1194, + "end": 1243, "loc": { "start": { - "line": 53, + "line": 55, "column": 2 }, "end": { - "line": 53, - "column": 59 + "line": 55, + "column": 51 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 1151, - "end": 1203, + "start": 1198, + "end": 1242, "loc": { "start": { - "line": 53, + "line": 55, "column": 6 }, "end": { - "line": 53, - "column": 58 + "line": 55, + "column": 50 } }, "id": { "type": "Identifier", - "start": 1151, - "end": 1156, + "start": 1198, + "end": 1203, "loc": { "start": { - "line": 53, + "line": 55, "column": 6 }, "end": { - "line": 53, + "line": 55, "column": 11 }, "identifierName": "ratio" @@ -2603,94 +2718,61 @@ }, "init": { "type": "BinaryExpression", - "start": 1159, - "end": 1203, + "start": 1206, + "end": 1242, "loc": { "start": { - "line": 53, + "line": 55, "column": 14 }, "end": { - "line": 53, - "column": 58 + "line": 55, + "column": 50 } }, "left": { "type": "MemberExpression", - "start": 1159, - "end": 1180, + "start": 1206, + "end": 1223, "loc": { "start": { - "line": 53, + "line": 55, "column": 14 }, "end": { - "line": 53, - "column": 35 + "line": 55, + "column": 31 } }, "object": { - "type": "MemberExpression", - "start": 1159, - "end": 1173, + "type": "Identifier", + "start": 1206, + "end": 1216, "loc": { "start": { - "line": 53, + "line": 55, "column": 14 }, "end": { - "line": 53, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 1159, - "end": 1165, - "loc": { - "start": { - "line": 53, - "column": 14 - }, - "end": { - "line": 53, - "column": 20 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1166, - "end": 1173, - "loc": { - "start": { - "line": 53, - "column": 21 - }, - "end": { - "line": 53, - "column": 28 - }, - "identifierName": "display" + "line": 55, + "column": 24 }, - "name": "display" + "identifierName": "currCanvas" }, - "computed": false + "name": "currCanvas" }, "property": { "type": "Identifier", - "start": 1174, - "end": 1180, + "start": 1217, + "end": 1223, "loc": { "start": { - "line": 53, - "column": 29 + "line": 55, + "column": 25 }, "end": { - "line": 53, - "column": 35 + "line": 55, + "column": 31 }, "identifierName": "height" }, @@ -2701,80 +2783,47 @@ "operator": "/", "right": { "type": "MemberExpression", - "start": 1183, - "end": 1203, + "start": 1226, + "end": 1242, "loc": { "start": { - "line": 53, - "column": 38 + "line": 55, + "column": 34 }, "end": { - "line": 53, - "column": 58 + "line": 55, + "column": 50 } }, "object": { - "type": "MemberExpression", - "start": 1183, - "end": 1197, + "type": "Identifier", + "start": 1226, + "end": 1236, "loc": { "start": { - "line": 53, - "column": 38 + "line": 55, + "column": 34 }, "end": { - "line": 53, - "column": 52 - } - }, - "object": { - "type": "Identifier", - "start": 1183, - "end": 1189, - "loc": { - "start": { - "line": 53, - "column": 38 - }, - "end": { - "line": 53, - "column": 44 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1190, - "end": 1197, - "loc": { - "start": { - "line": 53, - "column": 45 - }, - "end": { - "line": 53, - "column": 52 - }, - "identifierName": "display" + "line": 55, + "column": 44 }, - "name": "display" + "identifierName": "currCanvas" }, - "computed": false + "name": "currCanvas" }, "property": { "type": "Identifier", - "start": 1198, - "end": 1203, + "start": 1237, + "end": 1242, "loc": { "start": { - "line": 53, - "column": 53 + "line": 55, + "column": 45 }, "end": { - "line": 53, - "column": 58 + "line": 55, + "column": 50 }, "identifierName": "width" }, @@ -2789,44 +2838,44 @@ }, { "type": "VariableDeclaration", - "start": 1207, - "end": 1244, + "start": 1246, + "end": 1283, "loc": { "start": { - "line": 54, + "line": 56, "column": 2 }, "end": { - "line": 54, + "line": 56, "column": 39 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 1211, - "end": 1243, + "start": 1250, + "end": 1282, "loc": { "start": { - "line": 54, + "line": 56, "column": 6 }, "end": { - "line": 54, + "line": 56, "column": 38 } }, "id": { "type": "Identifier", - "start": 1211, - "end": 1215, + "start": 1250, + "end": 1254, "loc": { "start": { - "line": 54, + "line": 56, "column": 6 }, "end": { - "line": 54, + "line": 56, "column": 10 }, "identifierName": "left" @@ -2835,29 +2884,29 @@ }, "init": { "type": "MemberExpression", - "start": 1218, - "end": 1243, + "start": 1257, + "end": 1282, "loc": { "start": { - "line": 54, + "line": 56, "column": 13 }, "end": { - "line": 54, + "line": 56, "column": 38 } }, "object": { "type": "Identifier", - "start": 1218, - "end": 1225, + "start": 1257, + "end": 1264, "loc": { "start": { - "line": 54, + "line": 56, "column": 13 }, "end": { - "line": 54, + "line": 56, "column": 20 }, "identifierName": "cDefine" @@ -2866,15 +2915,15 @@ }, "property": { "type": "Identifier", - "start": 1226, - "end": 1243, + "start": 1265, + "end": 1282, "loc": { "start": { - "line": 54, + "line": 56, "column": 21 }, "end": { - "line": 54, + "line": 56, "column": 38 }, "identifierName": "VIEW_LOGICAL_LEFT" @@ -2889,44 +2938,44 @@ }, { "type": "VariableDeclaration", - "start": 1247, - "end": 1286, + "start": 1286, + "end": 1325, "loc": { "start": { - "line": 55, + "line": 57, "column": 2 }, "end": { - "line": 55, + "line": 57, "column": 41 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 1251, - "end": 1285, + "start": 1290, + "end": 1324, "loc": { "start": { - "line": 55, + "line": 57, "column": 6 }, "end": { - "line": 55, + "line": 57, "column": 40 } }, "id": { "type": "Identifier", - "start": 1251, - "end": 1256, + "start": 1290, + "end": 1295, "loc": { "start": { - "line": 55, + "line": 57, "column": 6 }, "end": { - "line": 55, + "line": 57, "column": 11 }, "identifierName": "right" @@ -2935,29 +2984,29 @@ }, "init": { "type": "MemberExpression", - "start": 1259, - "end": 1285, + "start": 1298, + "end": 1324, "loc": { "start": { - "line": 55, + "line": 57, "column": 14 }, "end": { - "line": 55, + "line": 57, "column": 40 } }, "object": { "type": "Identifier", - "start": 1259, - "end": 1266, + "start": 1298, + "end": 1305, "loc": { "start": { - "line": 55, + "line": 57, "column": 14 }, "end": { - "line": 55, + "line": 57, "column": 21 }, "identifierName": "cDefine" @@ -2966,15 +3015,15 @@ }, "property": { "type": "Identifier", - "start": 1267, - "end": 1285, + "start": 1306, + "end": 1324, "loc": { "start": { - "line": 55, + "line": 57, "column": 22 }, "end": { - "line": 55, + "line": 57, "column": 40 }, "identifierName": "VIEW_LOGICAL_RIGHT" @@ -2989,44 +3038,44 @@ }, { "type": "VariableDeclaration", - "start": 1289, - "end": 1309, + "start": 1328, + "end": 1348, "loc": { "start": { - "line": 56, + "line": 58, "column": 2 }, "end": { - "line": 56, + "line": 58, "column": 22 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 1293, - "end": 1308, + "start": 1332, + "end": 1347, "loc": { "start": { - "line": 56, + "line": 58, "column": 6 }, "end": { - "line": 56, + "line": 58, "column": 21 } }, "id": { "type": "Identifier", - "start": 1293, - "end": 1299, + "start": 1332, + "end": 1338, "loc": { "start": { - "line": 56, + "line": 58, "column": 6 }, "end": { - "line": 56, + "line": 58, "column": 12 }, "identifierName": "bottom" @@ -3035,15 +3084,15 @@ }, "init": { "type": "UnaryExpression", - "start": 1302, - "end": 1308, + "start": 1341, + "end": 1347, "loc": { "start": { - "line": 56, + "line": 58, "column": 15 }, "end": { - "line": 56, + "line": 58, "column": 21 } }, @@ -3051,15 +3100,15 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 1303, - "end": 1308, + "start": 1342, + "end": 1347, "loc": { "start": { - "line": 56, + "line": 58, "column": 16 }, "end": { - "line": 56, + "line": 58, "column": 21 }, "identifierName": "ratio" @@ -3076,44 +3125,44 @@ }, { "type": "VariableDeclaration", - "start": 1312, - "end": 1328, + "start": 1351, + "end": 1367, "loc": { "start": { - "line": 57, + "line": 59, "column": 2 }, "end": { - "line": 57, + "line": 59, "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 1316, - "end": 1327, + "start": 1355, + "end": 1366, "loc": { "start": { - "line": 57, + "line": 59, "column": 6 }, "end": { - "line": 57, + "line": 59, "column": 17 } }, "id": { "type": "Identifier", - "start": 1316, - "end": 1319, + "start": 1355, + "end": 1358, "loc": { "start": { - "line": 57, + "line": 59, "column": 6 }, "end": { - "line": 57, + "line": 59, "column": 9 }, "identifierName": "top" @@ -3122,15 +3171,15 @@ }, "init": { "type": "Identifier", - "start": 1322, - "end": 1327, + "start": 1361, + "end": 1366, "loc": { "start": { - "line": 57, + "line": 59, "column": 12 }, "end": { - "line": 57, + "line": 59, "column": 17 }, "identifierName": "ratio" @@ -3143,44 +3192,44 @@ }, { "type": "ExpressionStatement", - "start": 1332, - "end": 1365, + "start": 1371, + "end": 1404, "loc": { "start": { - "line": 59, + "line": 61, "column": 2 }, "end": { - "line": 59, + "line": 61, "column": 35 } }, "expression": { "type": "AssignmentExpression", - "start": 1332, - "end": 1364, + "start": 1371, + "end": 1403, "loc": { "start": { - "line": 59, + "line": 61, "column": 2 }, "end": { - "line": 59, + "line": 61, "column": 34 } }, "operator": "=", "left": { "type": "Identifier", - "start": 1332, - "end": 1342, + "start": 1371, + "end": 1381, "loc": { "start": { - "line": 59, + "line": 61, "column": 2 }, "end": { - "line": 59, + "line": 61, "column": 12 }, "identifierName": "viewMatrix" @@ -3189,29 +3238,29 @@ }, "right": { "type": "NewExpression", - "start": 1345, - "end": 1364, + "start": 1384, + "end": 1403, "loc": { "start": { - "line": 59, + "line": 61, "column": 15 }, "end": { - "line": 59, + "line": 61, "column": 34 } }, "callee": { "type": "Identifier", - "start": 1349, - "end": 1362, + "start": 1388, + "end": 1401, "loc": { "start": { - "line": 59, + "line": 61, "column": 19 }, "end": { - "line": 59, + "line": 61, "column": 32 }, "identifierName": "L2DViewMatrix" @@ -3224,57 +3273,57 @@ }, { "type": "ExpressionStatement", - "start": 1369, - "end": 1420, + "start": 1408, + "end": 1459, "loc": { "start": { - "line": 61, + "line": 63, "column": 2 }, "end": { - "line": 61, + "line": 63, "column": 53 } }, "expression": { "type": "CallExpression", - "start": 1369, - "end": 1419, + "start": 1408, + "end": 1458, "loc": { "start": { - "line": 61, + "line": 63, "column": 2 }, "end": { - "line": 61, + "line": 63, "column": 52 } }, "callee": { "type": "MemberExpression", - "start": 1369, - "end": 1393, + "start": 1408, + "end": 1432, "loc": { "start": { - "line": 61, + "line": 63, "column": 2 }, "end": { - "line": 61, + "line": 63, "column": 26 } }, "object": { "type": "Identifier", - "start": 1369, - "end": 1379, + "start": 1408, + "end": 1418, "loc": { "start": { - "line": 61, + "line": 63, "column": 2 }, "end": { - "line": 61, + "line": 63, "column": 12 }, "identifierName": "viewMatrix" @@ -3283,15 +3332,15 @@ }, "property": { "type": "Identifier", - "start": 1380, - "end": 1393, + "start": 1419, + "end": 1432, "loc": { "start": { - "line": 61, + "line": 63, "column": 13 }, "end": { - "line": 61, + "line": 63, "column": 26 }, "identifierName": "setScreenRect" @@ -3303,15 +3352,15 @@ "arguments": [ { "type": "Identifier", - "start": 1394, - "end": 1398, + "start": 1433, + "end": 1437, "loc": { "start": { - "line": 61, + "line": 63, "column": 27 }, "end": { - "line": 61, + "line": 63, "column": 31 }, "identifierName": "left" @@ -3320,15 +3369,15 @@ }, { "type": "Identifier", - "start": 1400, - "end": 1405, + "start": 1439, + "end": 1444, "loc": { "start": { - "line": 61, + "line": 63, "column": 33 }, "end": { - "line": 61, + "line": 63, "column": 38 }, "identifierName": "right" @@ -3337,15 +3386,15 @@ }, { "type": "Identifier", - "start": 1407, - "end": 1413, + "start": 1446, + "end": 1452, "loc": { "start": { - "line": 61, + "line": 63, "column": 40 }, "end": { - "line": 61, + "line": 63, "column": 46 }, "identifierName": "bottom" @@ -3354,15 +3403,15 @@ }, { "type": "Identifier", - "start": 1415, - "end": 1418, + "start": 1454, + "end": 1457, "loc": { "start": { - "line": 61, + "line": 63, "column": 48 }, "end": { - "line": 61, + "line": 63, "column": 51 }, "identifierName": "top" @@ -3374,57 +3423,57 @@ }, { "type": "ExpressionStatement", - "start": 1424, - "end": 1590, + "start": 1463, + "end": 1629, "loc": { "start": { - "line": 63, + "line": 65, "column": 2 }, "end": { - "line": 66, + "line": 68, "column": 34 } }, "expression": { "type": "CallExpression", - "start": 1424, - "end": 1589, + "start": 1463, + "end": 1628, "loc": { "start": { - "line": 63, + "line": 65, "column": 2 }, "end": { - "line": 66, + "line": 68, "column": 33 } }, "callee": { "type": "MemberExpression", - "start": 1424, - "end": 1451, + "start": 1463, + "end": 1490, "loc": { "start": { - "line": 63, + "line": 65, "column": 2 }, "end": { - "line": 63, + "line": 65, "column": 29 } }, "object": { "type": "Identifier", - "start": 1424, - "end": 1434, + "start": 1463, + "end": 1473, "loc": { "start": { - "line": 63, + "line": 65, "column": 2 }, "end": { - "line": 63, + "line": 65, "column": 12 }, "identifierName": "viewMatrix" @@ -3433,15 +3482,15 @@ }, "property": { "type": "Identifier", - "start": 1435, - "end": 1451, + "start": 1474, + "end": 1490, "loc": { "start": { - "line": 63, + "line": 65, "column": 13 }, "end": { - "line": 63, + "line": 65, "column": 29 }, "identifierName": "setMaxScreenRect" @@ -3453,29 +3502,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 1452, - "end": 1481, + "start": 1491, + "end": 1520, "loc": { "start": { - "line": 63, + "line": 65, "column": 30 }, "end": { - "line": 63, + "line": 65, "column": 59 } }, "object": { "type": "Identifier", - "start": 1452, - "end": 1459, + "start": 1491, + "end": 1498, "loc": { "start": { - "line": 63, + "line": 65, "column": 30 }, "end": { - "line": 63, + "line": 65, "column": 37 }, "identifierName": "cDefine" @@ -3484,15 +3533,15 @@ }, "property": { "type": "Identifier", - "start": 1460, - "end": 1481, + "start": 1499, + "end": 1520, "loc": { "start": { - "line": 63, + "line": 65, "column": 38 }, "end": { - "line": 63, + "line": 65, "column": 59 }, "identifierName": "VIEW_LOGICAL_MAX_LEFT" @@ -3503,29 +3552,29 @@ }, { "type": "MemberExpression", - "start": 1487, - "end": 1517, + "start": 1526, + "end": 1556, "loc": { "start": { - "line": 64, + "line": 66, "column": 4 }, "end": { - "line": 64, + "line": 66, "column": 34 } }, "object": { "type": "Identifier", - "start": 1487, - "end": 1494, + "start": 1526, + "end": 1533, "loc": { "start": { - "line": 64, + "line": 66, "column": 4 }, "end": { - "line": 64, + "line": 66, "column": 11 }, "identifierName": "cDefine" @@ -3534,15 +3583,15 @@ }, "property": { "type": "Identifier", - "start": 1495, - "end": 1517, + "start": 1534, + "end": 1556, "loc": { "start": { - "line": 64, + "line": 66, "column": 12 }, "end": { - "line": 64, + "line": 66, "column": 34 }, "identifierName": "VIEW_LOGICAL_MAX_RIGHT" @@ -3553,29 +3602,29 @@ }, { "type": "MemberExpression", - "start": 1523, - "end": 1554, + "start": 1562, + "end": 1593, "loc": { "start": { - "line": 65, + "line": 67, "column": 4 }, "end": { - "line": 65, + "line": 67, "column": 35 } }, "object": { "type": "Identifier", - "start": 1523, - "end": 1530, + "start": 1562, + "end": 1569, "loc": { "start": { - "line": 65, + "line": 67, "column": 4 }, "end": { - "line": 65, + "line": 67, "column": 11 }, "identifierName": "cDefine" @@ -3584,15 +3633,15 @@ }, "property": { "type": "Identifier", - "start": 1531, - "end": 1554, + "start": 1570, + "end": 1593, "loc": { "start": { - "line": 65, + "line": 67, "column": 12 }, "end": { - "line": 65, + "line": 67, "column": 35 }, "identifierName": "VIEW_LOGICAL_MAX_BOTTOM" @@ -3603,29 +3652,29 @@ }, { "type": "MemberExpression", - "start": 1560, - "end": 1588, + "start": 1599, + "end": 1627, "loc": { "start": { - "line": 66, + "line": 68, "column": 4 }, "end": { - "line": 66, + "line": 68, "column": 32 } }, "object": { "type": "Identifier", - "start": 1560, - "end": 1567, + "start": 1599, + "end": 1606, "loc": { "start": { - "line": 66, + "line": 68, "column": 4 }, "end": { - "line": 66, + "line": 68, "column": 11 }, "identifierName": "cDefine" @@ -3634,15 +3683,15 @@ }, "property": { "type": "Identifier", - "start": 1568, - "end": 1588, + "start": 1607, + "end": 1627, "loc": { "start": { - "line": 66, + "line": 68, "column": 12 }, "end": { - "line": 66, + "line": 68, "column": 32 }, "identifierName": "VIEW_LOGICAL_MAX_TOP" @@ -3656,44 +3705,44 @@ }, { "type": "ExpressionStatement", - "start": 1594, - "end": 1625, + "start": 1633, + "end": 1664, "loc": { "start": { - "line": 68, + "line": 70, "column": 2 }, "end": { - "line": 68, + "line": 70, "column": 33 } }, "expression": { "type": "AssignmentExpression", - "start": 1594, - "end": 1624, + "start": 1633, + "end": 1663, "loc": { "start": { - "line": 68, + "line": 70, "column": 2 }, "end": { - "line": 68, + "line": 70, "column": 32 } }, "operator": "=", "left": { "type": "Identifier", - "start": 1594, - "end": 1604, + "start": 1633, + "end": 1643, "loc": { "start": { - "line": 68, + "line": 70, "column": 2 }, "end": { - "line": 68, + "line": 70, "column": 12 }, "identifierName": "projMatrix" @@ -3702,29 +3751,29 @@ }, "right": { "type": "NewExpression", - "start": 1607, - "end": 1624, + "start": 1646, + "end": 1663, "loc": { "start": { - "line": 68, + "line": 70, "column": 15 }, "end": { - "line": 68, + "line": 70, "column": 32 } }, "callee": { "type": "Identifier", - "start": 1611, - "end": 1622, + "start": 1650, + "end": 1661, "loc": { "start": { - "line": 68, + "line": 70, "column": 19 }, "end": { - "line": 68, + "line": 70, "column": 30 }, "identifierName": "L2DMatrix44" @@ -3737,57 +3786,57 @@ }, { "type": "ExpressionStatement", - "start": 1628, - "end": 1700, + "start": 1667, + "end": 1731, "loc": { "start": { - "line": 69, + "line": 71, "column": 2 }, "end": { - "line": 69, - "column": 74 + "line": 71, + "column": 66 } }, "expression": { "type": "CallExpression", - "start": 1628, - "end": 1699, + "start": 1667, + "end": 1730, "loc": { "start": { - "line": 69, + "line": 71, "column": 2 }, "end": { - "line": 69, - "column": 73 + "line": 71, + "column": 65 } }, "callee": { "type": "MemberExpression", - "start": 1628, - "end": 1648, + "start": 1667, + "end": 1687, "loc": { "start": { - "line": 69, + "line": 71, "column": 2 }, "end": { - "line": 69, + "line": 71, "column": 22 } }, "object": { "type": "Identifier", - "start": 1628, - "end": 1638, + "start": 1667, + "end": 1677, "loc": { "start": { - "line": 69, + "line": 71, "column": 2 }, "end": { - "line": 69, + "line": 71, "column": 12 }, "identifierName": "projMatrix" @@ -3796,15 +3845,15 @@ }, "property": { "type": "Identifier", - "start": 1639, - "end": 1648, + "start": 1678, + "end": 1687, "loc": { "start": { - "line": 69, + "line": 71, "column": 13 }, "end": { - "line": 69, + "line": 71, "column": 22 }, "identifierName": "multScale" @@ -3816,15 +3865,15 @@ "arguments": [ { "type": "NumericLiteral", - "start": 1649, - "end": 1650, + "start": 1688, + "end": 1689, "loc": { "start": { - "line": 69, + "line": 71, "column": 23 }, "end": { - "line": 69, + "line": 71, "column": 24 } }, @@ -3836,94 +3885,61 @@ }, { "type": "BinaryExpression", - "start": 1653, - "end": 1697, + "start": 1692, + "end": 1728, "loc": { "start": { - "line": 69, + "line": 71, "column": 27 }, "end": { - "line": 69, - "column": 71 + "line": 71, + "column": 63 } }, "left": { "type": "MemberExpression", - "start": 1653, - "end": 1673, + "start": 1692, + "end": 1708, "loc": { "start": { - "line": 69, + "line": 71, "column": 27 }, "end": { - "line": 69, - "column": 47 + "line": 71, + "column": 43 } }, "object": { - "type": "MemberExpression", - "start": 1653, - "end": 1667, + "type": "Identifier", + "start": 1692, + "end": 1702, "loc": { "start": { - "line": 69, + "line": 71, "column": 27 }, "end": { - "line": 69, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 1653, - "end": 1659, - "loc": { - "start": { - "line": 69, - "column": 27 - }, - "end": { - "line": 69, - "column": 33 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1660, - "end": 1667, - "loc": { - "start": { - "line": 69, - "column": 34 - }, - "end": { - "line": 69, - "column": 41 - }, - "identifierName": "display" + "line": 71, + "column": 37 }, - "name": "display" + "identifierName": "currCanvas" }, - "computed": false + "name": "currCanvas" }, "property": { "type": "Identifier", - "start": 1668, - "end": 1673, + "start": 1703, + "end": 1708, "loc": { "start": { - "line": 69, - "column": 42 + "line": 71, + "column": 38 }, "end": { - "line": 69, - "column": 47 + "line": 71, + "column": 43 }, "identifierName": "width" }, @@ -3934,80 +3950,47 @@ "operator": "/", "right": { "type": "MemberExpression", - "start": 1676, - "end": 1697, + "start": 1711, + "end": 1728, "loc": { "start": { - "line": 69, - "column": 50 + "line": 71, + "column": 46 }, "end": { - "line": 69, - "column": 71 + "line": 71, + "column": 63 } }, "object": { - "type": "MemberExpression", - "start": 1676, - "end": 1690, + "type": "Identifier", + "start": 1711, + "end": 1721, "loc": { "start": { - "line": 69, - "column": 50 + "line": 71, + "column": 46 }, "end": { - "line": 69, - "column": 64 - } - }, - "object": { - "type": "Identifier", - "start": 1676, - "end": 1682, - "loc": { - "start": { - "line": 69, - "column": 50 - }, - "end": { - "line": 69, - "column": 56 - }, - "identifierName": "config" + "line": 71, + "column": 56 }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1683, - "end": 1690, - "loc": { - "start": { - "line": 69, - "column": 57 - }, - "end": { - "line": 69, - "column": 64 - }, - "identifierName": "display" - }, - "name": "display" + "identifierName": "currCanvas" }, - "computed": false + "name": "currCanvas" }, "property": { "type": "Identifier", - "start": 1691, - "end": 1697, + "start": 1722, + "end": 1728, "loc": { "start": { - "line": 69, - "column": 65 + "line": 71, + "column": 57 }, "end": { - "line": 69, - "column": 71 + "line": 71, + "column": 63 }, "identifierName": "height" }, @@ -4017,7 +4000,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 1652 + "parenStart": 1691 } } ] @@ -4025,44 +4008,44 @@ }, { "type": "ExpressionStatement", - "start": 1704, - "end": 1739, + "start": 1735, + "end": 1770, "loc": { "start": { - "line": 71, + "line": 73, "column": 2 }, "end": { - "line": 71, + "line": 73, "column": 37 } }, "expression": { "type": "AssignmentExpression", - "start": 1704, - "end": 1738, + "start": 1735, + "end": 1769, "loc": { "start": { - "line": 71, + "line": 73, "column": 2 }, "end": { - "line": 71, + "line": 73, "column": 36 } }, "operator": "=", "left": { "type": "Identifier", - "start": 1704, - "end": 1718, + "start": 1735, + "end": 1749, "loc": { "start": { - "line": 71, + "line": 73, "column": 2 }, "end": { - "line": 71, + "line": 73, "column": 16 }, "identifierName": "deviceToScreen" @@ -4071,29 +4054,29 @@ }, "right": { "type": "NewExpression", - "start": 1721, - "end": 1738, + "start": 1752, + "end": 1769, "loc": { "start": { - "line": 71, + "line": 73, "column": 19 }, "end": { - "line": 71, + "line": 73, "column": 36 } }, "callee": { "type": "Identifier", - "start": 1725, - "end": 1736, + "start": 1756, + "end": 1767, "loc": { "start": { - "line": 71, + "line": 73, "column": 23 }, "end": { - "line": 71, + "line": 73, "column": 34 }, "identifierName": "L2DMatrix44" @@ -4106,57 +4089,57 @@ }, { "type": "ExpressionStatement", - "start": 1742, - "end": 1830, + "start": 1773, + "end": 1853, "loc": { "start": { - "line": 72, + "line": 74, "column": 2 }, "end": { - "line": 72, - "column": 90 + "line": 74, + "column": 82 } }, "expression": { "type": "CallExpression", - "start": 1742, - "end": 1829, + "start": 1773, + "end": 1852, "loc": { "start": { - "line": 72, + "line": 74, "column": 2 }, "end": { - "line": 72, - "column": 89 + "line": 74, + "column": 81 } }, "callee": { "type": "MemberExpression", - "start": 1742, - "end": 1770, + "start": 1773, + "end": 1801, "loc": { "start": { - "line": 72, + "line": 74, "column": 2 }, "end": { - "line": 72, + "line": 74, "column": 30 } }, "object": { "type": "Identifier", - "start": 1742, - "end": 1756, + "start": 1773, + "end": 1787, "loc": { "start": { - "line": 72, + "line": 74, "column": 2 }, "end": { - "line": 72, + "line": 74, "column": 16 }, "identifierName": "deviceToScreen" @@ -4165,15 +4148,15 @@ }, "property": { "type": "Identifier", - "start": 1757, - "end": 1770, + "start": 1788, + "end": 1801, "loc": { "start": { - "line": 72, + "line": 74, "column": 17 }, "end": { - "line": 72, + "line": 74, "column": 30 }, "identifierName": "multTranslate" @@ -4185,110 +4168,77 @@ "arguments": [ { "type": "BinaryExpression", - "start": 1771, - "end": 1798, + "start": 1802, + "end": 1825, "loc": { "start": { - "line": 72, + "line": 74, "column": 31 }, "end": { - "line": 72, - "column": 58 + "line": 74, + "column": 54 } }, "left": { "type": "UnaryExpression", - "start": 1771, - "end": 1792, + "start": 1802, + "end": 1819, "loc": { "start": { - "line": 72, + "line": 74, "column": 31 }, "end": { - "line": 72, - "column": 52 + "line": 74, + "column": 48 } }, "operator": "-", "prefix": true, "argument": { "type": "MemberExpression", - "start": 1772, - "end": 1792, + "start": 1803, + "end": 1819, "loc": { "start": { - "line": 72, + "line": 74, "column": 32 }, "end": { - "line": 72, - "column": 52 + "line": 74, + "column": 48 } }, "object": { - "type": "MemberExpression", - "start": 1772, - "end": 1786, + "type": "Identifier", + "start": 1803, + "end": 1813, "loc": { "start": { - "line": 72, + "line": 74, "column": 32 }, "end": { - "line": 72, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 1772, - "end": 1778, - "loc": { - "start": { - "line": 72, - "column": 32 - }, - "end": { - "line": 72, - "column": 38 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1779, - "end": 1786, - "loc": { - "start": { - "line": 72, - "column": 39 - }, - "end": { - "line": 72, - "column": 46 - }, - "identifierName": "display" + "line": 74, + "column": 42 }, - "name": "display" + "identifierName": "currCanvas" }, - "computed": false + "name": "currCanvas" }, "property": { "type": "Identifier", - "start": 1787, - "end": 1792, + "start": 1814, + "end": 1819, "loc": { "start": { - "line": 72, - "column": 47 + "line": 74, + "column": 43 }, "end": { - "line": 72, - "column": 52 + "line": 74, + "column": 48 }, "identifierName": "width" }, @@ -4303,16 +4253,16 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 1795, - "end": 1798, + "start": 1822, + "end": 1825, "loc": { "start": { - "line": 72, - "column": 55 + "line": 74, + "column": 51 }, "end": { - "line": 72, - "column": 58 + "line": 74, + "column": 54 } }, "extra": { @@ -4324,110 +4274,77 @@ }, { "type": "BinaryExpression", - "start": 1800, - "end": 1828, + "start": 1827, + "end": 1851, "loc": { "start": { - "line": 72, - "column": 60 + "line": 74, + "column": 56 }, "end": { - "line": 72, - "column": 88 + "line": 74, + "column": 80 } }, "left": { "type": "UnaryExpression", - "start": 1800, - "end": 1822, + "start": 1827, + "end": 1845, "loc": { "start": { - "line": 72, - "column": 60 + "line": 74, + "column": 56 }, "end": { - "line": 72, - "column": 82 + "line": 74, + "column": 74 } }, "operator": "-", "prefix": true, "argument": { "type": "MemberExpression", - "start": 1801, - "end": 1822, + "start": 1828, + "end": 1845, "loc": { "start": { - "line": 72, - "column": 61 + "line": 74, + "column": 57 }, "end": { - "line": 72, - "column": 82 + "line": 74, + "column": 74 } }, "object": { - "type": "MemberExpression", - "start": 1801, - "end": 1815, + "type": "Identifier", + "start": 1828, + "end": 1838, "loc": { "start": { - "line": 72, - "column": 61 + "line": 74, + "column": 57 }, "end": { - "line": 72, - "column": 75 - } - }, - "object": { - "type": "Identifier", - "start": 1801, - "end": 1807, - "loc": { - "start": { - "line": 72, - "column": 61 - }, - "end": { - "line": 72, - "column": 67 - }, - "identifierName": "config" + "line": 74, + "column": 67 }, - "name": "config" + "identifierName": "currCanvas" }, - "property": { - "type": "Identifier", - "start": 1808, - "end": 1815, - "loc": { - "start": { - "line": 72, - "column": 68 - }, - "end": { - "line": 72, - "column": 75 - }, - "identifierName": "display" - }, - "name": "display" - }, - "computed": false + "name": "currCanvas" }, "property": { "type": "Identifier", - "start": 1816, - "end": 1822, + "start": 1839, + "end": 1845, "loc": { "start": { - "line": 72, - "column": 76 + "line": 74, + "column": 68 }, "end": { - "line": 72, - "column": 82 + "line": 74, + "column": 74 }, "identifierName": "height" }, @@ -4442,16 +4359,16 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 1825, - "end": 1828, + "start": 1848, + "end": 1851, "loc": { "start": { - "line": 72, - "column": 85 + "line": 74, + "column": 77 }, "end": { - "line": 72, - "column": 88 + "line": 74, + "column": 80 } }, "extra": { @@ -4467,16 +4384,16 @@ { "type": "CommentLine", "value": " #32", - "start": 1832, - "end": 1838, + "start": 1855, + "end": 1861, "loc": { "start": { - "line": 72, - "column": 92 + "line": 74, + "column": 84 }, "end": { - "line": 72, - "column": 98 + "line": 74, + "column": 90 } } } @@ -4484,57 +4401,57 @@ }, { "type": "ExpressionStatement", - "start": 1841, - "end": 1920, + "start": 1864, + "end": 1935, "loc": { "start": { - "line": 73, + "line": 75, "column": 2 }, "end": { - "line": 73, - "column": 81 + "line": 75, + "column": 73 } }, "expression": { "type": "CallExpression", - "start": 1841, - "end": 1919, + "start": 1864, + "end": 1934, "loc": { "start": { - "line": 73, + "line": 75, "column": 2 }, "end": { - "line": 73, - "column": 80 + "line": 75, + "column": 72 } }, "callee": { "type": "MemberExpression", - "start": 1841, - "end": 1865, + "start": 1864, + "end": 1888, "loc": { "start": { - "line": 73, + "line": 75, "column": 2 }, "end": { - "line": 73, + "line": 75, "column": 26 } }, "object": { "type": "Identifier", - "start": 1841, - "end": 1855, + "start": 1864, + "end": 1878, "loc": { "start": { - "line": 73, + "line": 75, "column": 2 }, "end": { - "line": 73, + "line": 75, "column": 16 }, "identifierName": "deviceToScreen" @@ -4544,15 +4461,15 @@ }, "property": { "type": "Identifier", - "start": 1856, - "end": 1865, + "start": 1879, + "end": 1888, "loc": { "start": { - "line": 73, + "line": 75, "column": 17 }, "end": { - "line": 73, + "line": 75, "column": 26 }, "identifierName": "multScale" @@ -4565,29 +4482,29 @@ "arguments": [ { "type": "BinaryExpression", - "start": 1866, - "end": 1890, + "start": 1889, + "end": 1909, "loc": { "start": { - "line": 73, + "line": 75, "column": 27 }, "end": { - "line": 73, - "column": 51 + "line": 75, + "column": 47 } }, "left": { "type": "NumericLiteral", - "start": 1866, - "end": 1867, + "start": 1889, + "end": 1890, "loc": { "start": { - "line": 73, + "line": 75, "column": 27 }, "end": { - "line": 73, + "line": 75, "column": 28 } }, @@ -4600,80 +4517,47 @@ "operator": "/", "right": { "type": "MemberExpression", - "start": 1870, - "end": 1890, + "start": 1893, + "end": 1909, "loc": { "start": { - "line": 73, + "line": 75, "column": 31 }, "end": { - "line": 73, - "column": 51 + "line": 75, + "column": 47 } }, "object": { - "type": "MemberExpression", - "start": 1870, - "end": 1884, + "type": "Identifier", + "start": 1893, + "end": 1903, "loc": { "start": { - "line": 73, + "line": 75, "column": 31 }, "end": { - "line": 73, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 1870, - "end": 1876, - "loc": { - "start": { - "line": 73, - "column": 31 - }, - "end": { - "line": 73, - "column": 37 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1877, - "end": 1884, - "loc": { - "start": { - "line": 73, - "column": 38 - }, - "end": { - "line": 73, - "column": 45 - }, - "identifierName": "display" + "line": 75, + "column": 41 }, - "name": "display" + "identifierName": "currCanvas" }, - "computed": false + "name": "currCanvas" }, "property": { "type": "Identifier", - "start": 1885, - "end": 1890, + "start": 1904, + "end": 1909, "loc": { "start": { - "line": 73, - "column": 46 + "line": 75, + "column": 42 }, "end": { - "line": 73, - "column": 51 + "line": 75, + "column": 47 }, "identifierName": "width" }, @@ -4684,46 +4568,46 @@ }, { "type": "BinaryExpression", - "start": 1892, - "end": 1918, + "start": 1911, + "end": 1933, "loc": { "start": { - "line": 73, - "column": 53 + "line": 75, + "column": 49 }, "end": { - "line": 73, - "column": 79 + "line": 75, + "column": 71 } }, "left": { "type": "UnaryExpression", - "start": 1892, - "end": 1894, + "start": 1911, + "end": 1913, "loc": { "start": { - "line": 73, - "column": 53 + "line": 75, + "column": 49 }, "end": { - "line": 73, - "column": 55 + "line": 75, + "column": 51 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", - "start": 1893, - "end": 1894, + "start": 1912, + "end": 1913, "loc": { "start": { - "line": 73, - "column": 54 + "line": 75, + "column": 50 }, "end": { - "line": 73, - "column": 55 + "line": 75, + "column": 51 } }, "extra": { @@ -4739,80 +4623,47 @@ "operator": "/", "right": { "type": "MemberExpression", - "start": 1897, - "end": 1918, + "start": 1916, + "end": 1933, "loc": { "start": { - "line": 73, - "column": 58 + "line": 75, + "column": 54 }, "end": { - "line": 73, - "column": 79 + "line": 75, + "column": 71 } }, "object": { - "type": "MemberExpression", - "start": 1897, - "end": 1911, + "type": "Identifier", + "start": 1916, + "end": 1926, "loc": { "start": { - "line": 73, - "column": 58 + "line": 75, + "column": 54 }, "end": { - "line": 73, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 1897, - "end": 1903, - "loc": { - "start": { - "line": 73, - "column": 58 - }, - "end": { - "line": 73, - "column": 64 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1904, - "end": 1911, - "loc": { - "start": { - "line": 73, - "column": 65 - }, - "end": { - "line": 73, - "column": 72 - }, - "identifierName": "display" + "line": 75, + "column": 64 }, - "name": "display" + "identifierName": "currCanvas" }, - "computed": false + "name": "currCanvas" }, "property": { "type": "Identifier", - "start": 1912, - "end": 1918, + "start": 1927, + "end": 1933, "loc": { "start": { - "line": 73, - "column": 73 + "line": 75, + "column": 65 }, "end": { - "line": 73, - "column": 79 + "line": 75, + "column": 71 }, "identifierName": "height" }, @@ -4828,16 +4679,16 @@ { "type": "CommentLine", "value": " #32", - "start": 1832, - "end": 1838, + "start": 1855, + "end": 1861, "loc": { "start": { - "line": 72, - "column": 92 + "line": 74, + "column": 84 }, "end": { - "line": 72, - "column": 98 + "line": 74, + "column": 90 } } } @@ -4846,16 +4697,16 @@ { "type": "CommentLine", "value": " #32", - "start": 1922, - "end": 1928, + "start": 1937, + "end": 1943, "loc": { "start": { - "line": 73, - "column": 83 + "line": 75, + "column": 75 }, "end": { - "line": 73, - "column": 89 + "line": 75, + "column": 81 } } } @@ -4863,57 +4714,57 @@ }, { "type": "ExpressionStatement", - "start": 1933, - "end": 1957, + "start": 1948, + "end": 1972, "loc": { "start": { - "line": 76, + "line": 78, "column": 2 }, "end": { - "line": 76, + "line": 78, "column": 26 } }, "expression": { "type": "CallExpression", - "start": 1933, - "end": 1956, + "start": 1948, + "end": 1971, "loc": { "start": { - "line": 76, + "line": 78, "column": 2 }, "end": { - "line": 76, + "line": 78, "column": 25 } }, "callee": { "type": "MemberExpression", - "start": 1933, - "end": 1945, + "start": 1948, + "end": 1960, "loc": { "start": { - "line": 76, + "line": 78, "column": 2 }, "end": { - "line": 76, + "line": 78, "column": 14 } }, "object": { "type": "Identifier", - "start": 1933, - "end": 1939, + "start": 1948, + "end": 1954, "loc": { "start": { - "line": 76, + "line": 78, "column": 2 }, "end": { - "line": 76, + "line": 78, "column": 8 }, "identifierName": "Live2D" @@ -4923,15 +4774,15 @@ }, "property": { "type": "Identifier", - "start": 1940, - "end": 1945, + "start": 1955, + "end": 1960, "loc": { "start": { - "line": 76, + "line": 78, "column": 9 }, "end": { - "line": 76, + "line": 78, "column": 14 }, "identifierName": "setGL" @@ -4944,15 +4795,15 @@ "arguments": [ { "type": "Identifier", - "start": 1946, - "end": 1955, + "start": 1961, + "end": 1970, "loc": { "start": { - "line": 76, + "line": 78, "column": 15 }, "end": { - "line": 76, + "line": 78, "column": 24 }, "identifierName": "currWebGL" @@ -4966,16 +4817,16 @@ { "type": "CommentLine", "value": " #32", - "start": 1922, - "end": 1928, + "start": 1937, + "end": 1943, "loc": { "start": { - "line": 73, - "column": 83 + "line": 75, + "column": 75 }, "end": { - "line": 73, - "column": 89 + "line": 75, + "column": 81 } } } @@ -4983,57 +4834,57 @@ }, { "type": "ExpressionStatement", - "start": 1960, - "end": 2001, + "start": 1975, + "end": 2016, "loc": { "start": { - "line": 77, + "line": 79, "column": 2 }, "end": { - "line": 77, + "line": 79, "column": 43 } }, "expression": { "type": "CallExpression", - "start": 1960, - "end": 2000, + "start": 1975, + "end": 2015, "loc": { "start": { - "line": 77, + "line": 79, "column": 2 }, "end": { - "line": 77, + "line": 79, "column": 42 } }, "callee": { "type": "MemberExpression", - "start": 1960, - "end": 1980, + "start": 1975, + "end": 1995, "loc": { "start": { - "line": 77, + "line": 79, "column": 2 }, "end": { - "line": 77, + "line": 79, "column": 22 } }, "object": { "type": "Identifier", - "start": 1960, - "end": 1969, + "start": 1975, + "end": 1984, "loc": { "start": { - "line": 77, + "line": 79, "column": 2 }, "end": { - "line": 77, + "line": 79, "column": 11 }, "identifierName": "currWebGL" @@ -5042,15 +4893,15 @@ }, "property": { "type": "Identifier", - "start": 1970, - "end": 1980, + "start": 1985, + "end": 1995, "loc": { "start": { - "line": 77, + "line": 79, "column": 12 }, "end": { - "line": 77, + "line": 79, "column": 22 }, "identifierName": "clearColor" @@ -5062,15 +4913,15 @@ "arguments": [ { "type": "NumericLiteral", - "start": 1981, - "end": 1984, + "start": 1996, + "end": 1999, "loc": { "start": { - "line": 77, + "line": 79, "column": 23 }, "end": { - "line": 77, + "line": 79, "column": 26 } }, @@ -5082,15 +4933,15 @@ }, { "type": "NumericLiteral", - "start": 1986, - "end": 1989, + "start": 2001, + "end": 2004, "loc": { "start": { - "line": 77, + "line": 79, "column": 28 }, "end": { - "line": 77, + "line": 79, "column": 31 } }, @@ -5102,15 +4953,15 @@ }, { "type": "NumericLiteral", - "start": 1991, - "end": 1994, + "start": 2006, + "end": 2009, "loc": { "start": { - "line": 77, + "line": 79, "column": 33 }, "end": { - "line": 77, + "line": 79, "column": 36 } }, @@ -5122,15 +4973,15 @@ }, { "type": "NumericLiteral", - "start": 1996, - "end": 1999, + "start": 2011, + "end": 2014, "loc": { "start": { - "line": 77, + "line": 79, "column": 38 }, "end": { - "line": 77, + "line": 79, "column": 41 } }, @@ -5145,43 +4996,43 @@ }, { "type": "ExpressionStatement", - "start": 2004, - "end": 2039, + "start": 2019, + "end": 2054, "loc": { "start": { - "line": 78, + "line": 80, "column": 2 }, "end": { - "line": 78, + "line": 80, "column": 37 } }, "expression": { "type": "CallExpression", - "start": 2004, - "end": 2038, + "start": 2019, + "end": 2053, "loc": { "start": { - "line": 78, + "line": 80, "column": 2 }, "end": { - "line": 78, + "line": 80, "column": 36 } }, "callee": { "type": "Identifier", - "start": 2004, - "end": 2015, + "start": 2019, + "end": 2030, "loc": { "start": { - "line": 78, + "line": 80, "column": 2 }, "end": { - "line": 78, + "line": 80, "column": 13 }, "identifierName": "changeModel" @@ -5191,43 +5042,43 @@ "arguments": [ { "type": "MemberExpression", - "start": 2016, - "end": 2037, + "start": 2031, + "end": 2052, "loc": { "start": { - "line": 78, + "line": 80, "column": 14 }, "end": { - "line": 78, + "line": 80, "column": 35 } }, "object": { "type": "MemberExpression", - "start": 2016, - "end": 2028, + "start": 2031, + "end": 2043, "loc": { "start": { - "line": 78, + "line": 80, "column": 14 }, "end": { - "line": 78, + "line": 80, "column": 26 } }, "object": { "type": "Identifier", - "start": 2016, - "end": 2022, + "start": 2031, + "end": 2037, "loc": { "start": { - "line": 78, + "line": 80, "column": 14 }, "end": { - "line": 78, + "line": 80, "column": 20 }, "identifierName": "config" @@ -5236,15 +5087,15 @@ }, "property": { "type": "Identifier", - "start": 2023, - "end": 2028, + "start": 2038, + "end": 2043, "loc": { "start": { - "line": 78, + "line": 80, "column": 21 }, "end": { - "line": 78, + "line": 80, "column": 26 }, "identifierName": "model" @@ -5255,15 +5106,15 @@ }, "property": { "type": "Identifier", - "start": 2029, - "end": 2037, + "start": 2044, + "end": 2052, "loc": { "start": { - "line": 78, + "line": 80, "column": 27 }, "end": { - "line": 78, + "line": 80, "column": 35 }, "identifierName": "jsonPath" @@ -5277,43 +5128,43 @@ }, { "type": "ExpressionStatement", - "start": 2042, - "end": 2054, + "start": 2057, + "end": 2069, "loc": { "start": { - "line": 79, + "line": 81, "column": 2 }, "end": { - "line": 79, + "line": 81, "column": 14 } }, "expression": { "type": "CallExpression", - "start": 2042, - "end": 2053, + "start": 2057, + "end": 2068, "loc": { "start": { - "line": 79, + "line": 81, "column": 2 }, "end": { - "line": 79, + "line": 81, "column": 13 } }, "callee": { "type": "Identifier", - "start": 2042, - "end": 2051, + "start": 2057, + "end": 2066, "loc": { "start": { - "line": 79, + "line": 81, "column": 2 }, "end": { - "line": 79, + "line": 81, "column": 11 }, "identifierName": "startDraw" @@ -5333,29 +5184,29 @@ }, { "type": "Identifier", - "start": 2669, - "end": 2728, + "start": 2713, + "end": 2776, "loc": { "start": { - "line": 99, + "line": 107, "column": 0 }, "end": { - "line": 101, + "line": 109, "column": 1 } }, "id": { "type": "Identifier", - "start": 2678, - "end": 2690, + "start": 2722, + "end": 2734, "loc": { "start": { - "line": 99, + "line": 107, "column": 9 }, "end": { - "line": 99, + "line": 107, "column": 21 }, "identifierName": "captureFrame" @@ -5366,101 +5217,103 @@ "generator": false, "expression": false, "async": false, - "params": [], + "params": [ + { + "type": "Identifier", + "start": 2735, + "end": 2743, + "loc": { + "start": { + "line": 107, + "column": 22 + }, + "end": { + "line": 107, + "column": 30 + }, + "identifierName": "callback" + }, + "name": "callback" + } + ], "body": { "type": "BlockStatement", - "start": 2692, - "end": 2728, + "start": 2744, + "end": 2776, "loc": { "start": { - "line": 99, - "column": 23 + "line": 107, + "column": 31 }, "end": { - "line": 101, + "line": 109, "column": 1 } }, "body": [ { - "type": "ReturnStatement", - "start": 2696, - "end": 2726, + "type": "ExpressionStatement", + "start": 2748, + "end": 2774, "loc": { "start": { - "line": 100, + "line": 108, "column": 2 }, "end": { - "line": 100, - "column": 32 + "line": 108, + "column": 28 } }, - "argument": { - "type": "CallExpression", - "start": 2703, - "end": 2725, + "expression": { + "type": "AssignmentExpression", + "start": 2748, + "end": 2773, "loc": { "start": { - "line": 100, - "column": 9 + "line": 108, + "column": 2 }, "end": { - "line": 100, - "column": 31 + "line": 108, + "column": 27 } }, - "callee": { - "type": "MemberExpression", - "start": 2703, - "end": 2723, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2748, + "end": 2762, "loc": { "start": { - "line": 100, - "column": 9 + "line": 108, + "column": 2 }, "end": { - "line": 100, - "column": 29 - } - }, - "object": { - "type": "Identifier", - "start": 2703, - "end": 2713, - "loc": { - "start": { - "line": 100, - "column": 9 - }, - "end": { - "line": 100, - "column": 19 - }, - "identifierName": "currCanvas" + "line": 108, + "column": 16 }, - "name": "currCanvas" + "identifierName": "captureFrameCB" }, - "property": { - "type": "Identifier", - "start": 2714, - "end": 2723, - "loc": { - "start": { - "line": 100, - "column": 20 - }, - "end": { - "line": 100, - "column": 29 - }, - "identifierName": "toDataURL" + "name": "captureFrameCB" + }, + "right": { + "type": "Identifier", + "start": 2765, + "end": 2773, + "loc": { + "start": { + "line": 108, + "column": 19 + }, + "end": { + "line": 108, + "column": 27 }, - "name": "toDataURL" + "identifierName": "callback" }, - "computed": false - }, - "arguments": [] + "name": "callback" + } } } ], @@ -5472,29 +5325,29 @@ }, { "type": "FunctionDeclaration", - "start": 2730, - "end": 3227, + "start": 2778, + "end": 3271, "loc": { "start": { - "line": 103, + "line": 111, "column": 0 }, "end": { - "line": 114, + "line": 122, "column": 1 } }, "id": { "type": "Identifier", - "start": 2739, - "end": 2748, + "start": 2787, + "end": 2796, "loc": { "start": { - "line": 103, + "line": 111, "column": 9 }, "end": { - "line": 103, + "line": 111, "column": 18 }, "identifierName": "initEvent" @@ -5507,2644 +5360,2025 @@ "params": [], "body": { "type": "BlockStatement", - "start": 2750, - "end": 3227, + "start": 2798, + "end": 3271, "loc": { "start": { - "line": 103, + "line": 111, "column": 20 }, "end": { - "line": 114, - "column": 1 - } - }, - "body": [], - "directives": [], - "leadingComments": null, - "innerComments": [ - { - "type": "CommentBlock", - "value": "\n if (currCanvas.addEventListener) {\n window.addEventListener(\"click\", mouseEvent);\n window.addEventListener(\"mousedown\", mouseEvent);\n window.addEventListener(\"mousemove\", mouseEvent);\n window.addEventListener(\"mouseup\", mouseEvent);\n document.addEventListener(\"mouseleave\", mouseEvent);\n window.addEventListener(\"touchstart\", touchEvent);\n window.addEventListener(\"touchend\", touchEvent);\n window.addEventListener(\"touchmove\", touchEvent);\n }", - "start": 2751, - "end": 3225, - "loc": { - "start": { - "line": 103, - "column": 21 - }, - "end": { - "line": 113, - "column": 5 - } - } - } - ] - } - }, - { - "type": "FunctionDeclaration", - "start": 3229, - "end": 3601, - "loc": { - "start": { - "line": 116, - "column": 0 - }, - "end": { - "line": 130, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 3238, - "end": 3247, - "loc": { - "start": { - "line": 116, - "column": 9 - }, - "end": { - "line": 116, - "column": 18 - }, - "identifierName": "startDraw" - }, - "name": "startDraw" - }, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 3250, - "end": 3601, - "loc": { - "start": { - "line": 116, - "column": 21 - }, - "end": { - "line": 130, + "line": 122, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 3254, - "end": 3599, + "start": 2802, + "end": 3269, "loc": { "start": { - "line": 117, + "line": 112, "column": 2 }, "end": { - "line": 129, + "line": 121, "column": 3 } }, "test": { - "type": "UnaryExpression", - "start": 3258, - "end": 3270, + "type": "MemberExpression", + "start": 2806, + "end": 2833, "loc": { "start": { - "line": 117, + "line": 112, "column": 6 }, "end": { - "line": 117, - "column": 18 + "line": 112, + "column": 33 } }, - "operator": "!", - "prefix": true, - "argument": { + "object": { "type": "Identifier", - "start": 3259, - "end": 3270, + "start": 2806, + "end": 2816, "loc": { "start": { - "line": 117, - "column": 7 + "line": 112, + "column": 6 }, "end": { - "line": 117, - "column": 18 + "line": 112, + "column": 16 }, - "identifierName": "isDrawStart" + "identifierName": "currCanvas" }, - "name": "isDrawStart" + "name": "currCanvas" }, - "extra": { - "parenthesizedArgument": false - } + "property": { + "type": "Identifier", + "start": 2817, + "end": 2833, + "loc": { + "start": { + "line": 112, + "column": 17 + }, + "end": { + "line": 112, + "column": 33 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false }, "consequent": { "type": "BlockStatement", - "start": 3272, - "end": 3599, + "start": 2835, + "end": 3269, "loc": { "start": { - "line": 117, - "column": 20 + "line": 112, + "column": 35 }, "end": { - "line": 129, + "line": 121, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 3278, - "end": 3297, + "start": 2841, + "end": 2886, "loc": { "start": { - "line": 118, + "line": 113, "column": 4 }, "end": { - "line": 118, - "column": 23 + "line": 113, + "column": 49 } }, "expression": { - "type": "AssignmentExpression", - "start": 3278, - "end": 3296, + "type": "CallExpression", + "start": 2841, + "end": 2885, "loc": { "start": { - "line": 118, + "line": 113, "column": 4 }, "end": { - "line": 118, - "column": 22 + "line": 113, + "column": 48 } }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 3278, - "end": 3289, + "callee": { + "type": "MemberExpression", + "start": 2841, + "end": 2864, "loc": { "start": { - "line": 118, + "line": 113, "column": 4 }, "end": { - "line": 118, - "column": 15 + "line": 113, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 2841, + "end": 2847, + "loc": { + "start": { + "line": 113, + "column": 4 + }, + "end": { + "line": 113, + "column": 10 + }, + "identifierName": "window" }, - "identifierName": "isDrawStart" + "name": "window" }, - "name": "isDrawStart" + "property": { + "type": "Identifier", + "start": 2848, + "end": 2864, + "loc": { + "start": { + "line": 113, + "column": 11 + }, + "end": { + "line": 113, + "column": 27 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false }, - "right": { - "type": "BooleanLiteral", - "start": 3292, - "end": 3296, + "arguments": [ + { + "type": "StringLiteral", + "start": 2865, + "end": 2872, + "loc": { + "start": { + "line": 113, + "column": 28 + }, + "end": { + "line": 113, + "column": 35 + } + }, + "extra": { + "rawValue": "click", + "raw": "\"click\"" + }, + "value": "click" + }, + { + "type": "Identifier", + "start": 2874, + "end": 2884, + "loc": { + "start": { + "line": 113, + "column": 37 + }, + "end": { + "line": 113, + "column": 47 + }, + "identifierName": "mouseEvent" + }, + "name": "mouseEvent" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 2891, + "end": 2940, + "loc": { + "start": { + "line": 114, + "column": 4 + }, + "end": { + "line": 114, + "column": 53 + } + }, + "expression": { + "type": "CallExpression", + "start": 2891, + "end": 2939, + "loc": { + "start": { + "line": 114, + "column": 4 + }, + "end": { + "line": 114, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2891, + "end": 2914, "loc": { "start": { - "line": 118, - "column": 18 + "line": 114, + "column": 4 }, "end": { - "line": 118, - "column": 22 + "line": 114, + "column": 27 } }, - "value": true + "object": { + "type": "Identifier", + "start": 2891, + "end": 2897, + "loc": { + "start": { + "line": 114, + "column": 4 + }, + "end": { + "line": 114, + "column": 10 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "Identifier", + "start": 2898, + "end": 2914, + "loc": { + "start": { + "line": 114, + "column": 11 + }, + "end": { + "line": 114, + "column": 27 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2915, + "end": 2926, + "loc": { + "start": { + "line": 114, + "column": 28 + }, + "end": { + "line": 114, + "column": 39 + } + }, + "extra": { + "rawValue": "mousedown", + "raw": "\"mousedown\"" + }, + "value": "mousedown" + }, + { + "type": "Identifier", + "start": 2928, + "end": 2938, + "loc": { + "start": { + "line": 114, + "column": 41 + }, + "end": { + "line": 114, + "column": 51 + }, + "identifierName": "mouseEvent" + }, + "name": "mouseEvent" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 2945, + "end": 2994, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 53 } + }, + "expression": { + "type": "CallExpression", + "start": 2945, + "end": 2993, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2945, + "end": 2968, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 2945, + "end": 2951, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 10 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "Identifier", + "start": 2952, + "end": 2968, + "loc": { + "start": { + "line": 115, + "column": 11 + }, + "end": { + "line": 115, + "column": 27 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2969, + "end": 2980, + "loc": { + "start": { + "line": 115, + "column": 28 + }, + "end": { + "line": 115, + "column": 39 + } + }, + "extra": { + "rawValue": "mousemove", + "raw": "\"mousemove\"" + }, + "value": "mousemove" + }, + { + "type": "Identifier", + "start": 2982, + "end": 2992, + "loc": { + "start": { + "line": 115, + "column": 41 + }, + "end": { + "line": 115, + "column": 51 + }, + "identifierName": "mouseEvent" + }, + "name": "mouseEvent" + } + ] } }, { "type": "ExpressionStatement", - "start": 3302, - "end": 3595, + "start": 2999, + "end": 3046, "loc": { "start": { - "line": 119, + "line": 116, "column": 4 }, "end": { - "line": 128, - "column": 9 + "line": 116, + "column": 51 } }, "expression": { "type": "CallExpression", - "start": 3302, - "end": 3594, + "start": 2999, + "end": 3045, "loc": { "start": { - "line": 119, + "line": 116, "column": 4 }, "end": { - "line": 128, - "column": 8 + "line": 116, + "column": 50 } }, "callee": { - "type": "FunctionExpression", - "start": 3303, - "end": 3591, + "type": "MemberExpression", + "start": 2999, + "end": 3022, "loc": { "start": { - "line": 119, - "column": 5 + "line": 116, + "column": 4 }, "end": { - "line": 128, - "column": 5 + "line": 116, + "column": 27 } }, - "id": { + "object": { "type": "Identifier", - "start": 3312, - "end": 3316, + "start": 2999, + "end": 3005, "loc": { "start": { - "line": 119, - "column": 14 + "line": 116, + "column": 4 }, "end": { - "line": 119, - "column": 18 + "line": 116, + "column": 10 }, - "identifierName": "tick" + "identifierName": "window" }, - "name": "tick" + "name": "window" }, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 3319, - "end": 3591, + "property": { + "type": "Identifier", + "start": 3006, + "end": 3022, "loc": { "start": { - "line": 119, - "column": 21 + "line": 116, + "column": 11 }, "end": { - "line": 128, - "column": 5 + "line": 116, + "column": 27 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3023, + "end": 3032, + "loc": { + "start": { + "line": 116, + "column": 28 + }, + "end": { + "line": 116, + "column": 37 } }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3327, - "end": 3334, - "loc": { - "start": { - "line": 120, - "column": 6 - }, - "end": { - "line": 120, - "column": 13 - } - }, - "expression": { - "type": "CallExpression", - "start": 3327, - "end": 3333, - "loc": { - "start": { - "line": 120, - "column": 6 - }, - "end": { - "line": 120, - "column": 12 - } - }, - "callee": { - "type": "Identifier", - "start": 3327, - "end": 3331, - "loc": { - "start": { - "line": 120, - "column": 6 - }, - "end": { - "line": 120, - "column": 10 - }, - "identifierName": "draw" - }, - "name": "draw" - }, - "arguments": [] - } + "extra": { + "rawValue": "mouseup", + "raw": "\"mouseup\"" + }, + "value": "mouseup" + }, + { + "type": "Identifier", + "start": 3034, + "end": 3044, + "loc": { + "start": { + "line": 116, + "column": 39 }, - { - "type": "VariableDeclaration", - "start": 3341, - "end": 3537, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 125, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3345, - "end": 3536, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 125, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 3345, - "end": 3366, - "loc": { - "start": { - "line": 121, - "column": 10 - }, - "end": { - "line": 121, - "column": 31 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "init": { - "type": "LogicalExpression", - "start": 3377, - "end": 3536, - "loc": { - "start": { - "line": 122, - "column": 8 - }, - "end": { - "line": 125, - "column": 38 - } - }, - "left": { - "type": "LogicalExpression", - "start": 3377, - "end": 3494, - "loc": { - "start": { - "line": 122, - "column": 8 - }, - "end": { - "line": 124, - "column": 42 - } - }, - "left": { - "type": "LogicalExpression", - "start": 3377, - "end": 3448, - "loc": { - "start": { - "line": 122, - "column": 8 - }, - "end": { - "line": 123, - "column": 39 - } - }, - "left": { - "type": "MemberExpression", - "start": 3377, - "end": 3405, - "loc": { - "start": { - "line": 122, - "column": 8 - }, - "end": { - "line": 122, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 3377, - "end": 3383, - "loc": { - "start": { - "line": 122, - "column": 8 - }, - "end": { - "line": 122, - "column": 14 - }, - "identifierName": "window" - }, - "name": "window" - }, - "property": { - "type": "Identifier", - "start": 3384, - "end": 3405, - "loc": { - "start": { - "line": 122, - "column": 15 - }, - "end": { - "line": 122, - "column": 36 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "operator": "||", - "right": { - "type": "MemberExpression", - "start": 3417, - "end": 3448, - "loc": { - "start": { - "line": 123, - "column": 8 - }, - "end": { - "line": 123, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 3417, - "end": 3423, - "loc": { - "start": { - "line": 123, - "column": 8 - }, - "end": { - "line": 123, - "column": 14 - }, - "identifierName": "window" - }, - "name": "window" - }, - "property": { - "type": "Identifier", - "start": 3424, - "end": 3448, - "loc": { - "start": { - "line": 123, - "column": 15 - }, - "end": { - "line": 123, - "column": 39 - }, - "identifierName": "mozRequestAnimationFrame" - }, - "name": "mozRequestAnimationFrame" - }, - "computed": false - } - }, - "operator": "||", - "right": { - "type": "MemberExpression", - "start": 3460, - "end": 3494, - "loc": { - "start": { - "line": 124, - "column": 8 - }, - "end": { - "line": 124, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 3460, - "end": 3466, - "loc": { - "start": { - "line": 124, - "column": 8 - }, - "end": { - "line": 124, - "column": 14 - }, - "identifierName": "window" - }, - "name": "window" - }, - "property": { - "type": "Identifier", - "start": 3467, - "end": 3494, - "loc": { - "start": { - "line": 124, - "column": 15 - }, - "end": { - "line": 124, - "column": 42 - }, - "identifierName": "webkitRequestAnimationFrame" - }, - "name": "webkitRequestAnimationFrame" - }, - "computed": false - } - }, - "operator": "||", - "right": { - "type": "MemberExpression", - "start": 3506, - "end": 3536, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 3506, - "end": 3512, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 14 - }, - "identifierName": "window" - }, - "name": "window" - }, - "property": { - "type": "Identifier", - "start": 3513, - "end": 3536, - "loc": { - "start": { - "line": 125, - "column": 15 - }, - "end": { - "line": 125, - "column": 38 - }, - "identifierName": "msRequestAnimationFrame" - }, - "name": "msRequestAnimationFrame" - }, - "computed": false - } - } - } - ], - "kind": "let" + "end": { + "line": 116, + "column": 49 }, - { - "type": "ExpressionStatement", - "start": 3545, - "end": 3585, - "loc": { - "start": { - "line": 127, - "column": 6 - }, - "end": { - "line": 127, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 3545, - "end": 3584, - "loc": { - "start": { - "line": 127, - "column": 6 - }, - "end": { - "line": 127, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 3545, - "end": 3566, - "loc": { - "start": { - "line": 127, - "column": 6 - }, - "end": { - "line": 127, - "column": 27 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3567, - "end": 3571, - "loc": { - "start": { - "line": 127, - "column": 28 - }, - "end": { - "line": 127, - "column": 32 - }, - "identifierName": "tick" - }, - "name": "tick" - }, - { - "type": "Identifier", - "start": 3573, - "end": 3583, - "loc": { - "start": { - "line": 127, - "column": 34 - }, - "end": { - "line": 127, - "column": 44 - }, - "identifierName": "currCanvas" - }, - "name": "currCanvas" - } - ] - } - } - ], - "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 3302 + "identifierName": "mouseEvent" + }, + "name": "mouseEvent" } - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - }, - { - "type": "FunctionDeclaration", - "start": 3603, - "end": 4233, - "loc": { - "start": { - "line": 132, - "column": 0 - }, - "end": { - "line": 158, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 3612, - "end": 3616, - "loc": { - "start": { - "line": 132, - "column": 9 - }, - "end": { - "line": 132, - "column": 13 - }, - "identifierName": "draw" - }, - "name": "draw" - }, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 3619, - "end": 4233, - "loc": { - "start": { - "line": 133, - "column": 0 - }, - "end": { - "line": 158, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3625, - "end": 3645, - "loc": { - "start": { - "line": 134, - "column": 4 - }, - "end": { - "line": 134, - "column": 24 - } - }, - "expression": { - "type": "CallExpression", - "start": 3625, - "end": 3644, - "loc": { - "start": { - "line": 134, - "column": 4 - }, - "end": { - "line": 134, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3625, - "end": 3642, - "loc": { - "start": { - "line": 134, - "column": 4 - }, - "end": { - "line": 134, - "column": 21 + ] } }, - "object": { - "type": "Identifier", - "start": 3625, - "end": 3636, + { + "type": "ExpressionStatement", + "start": 3051, + "end": 3103, "loc": { "start": { - "line": 134, + "line": 117, "column": 4 }, "end": { - "line": 134, - "column": 15 - }, - "identifierName": "MatrixStack" + "line": 117, + "column": 56 + } }, - "name": "MatrixStack" - }, - "property": { - "type": "Identifier", - "start": 3637, - "end": 3642, - "loc": { - "start": { - "line": 134, - "column": 16 + "expression": { + "type": "CallExpression", + "start": 3051, + "end": 3102, + "loc": { + "start": { + "line": 117, + "column": 4 + }, + "end": { + "line": 117, + "column": 55 + } }, - "end": { - "line": 134, - "column": 21 + "callee": { + "type": "MemberExpression", + "start": 3051, + "end": 3076, + "loc": { + "start": { + "line": 117, + "column": 4 + }, + "end": { + "line": 117, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 3051, + "end": 3059, + "loc": { + "start": { + "line": 117, + "column": 4 + }, + "end": { + "line": 117, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 3060, + "end": 3076, + "loc": { + "start": { + "line": 117, + "column": 13 + }, + "end": { + "line": 117, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false }, - "identifierName": "reset" - }, - "name": "reset" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ExpressionStatement", - "start": 3650, - "end": 3677, - "loc": { - "start": { - "line": 135, - "column": 4 - }, - "end": { - "line": 135, - "column": 31 - } - }, - "expression": { - "type": "CallExpression", - "start": 3650, - "end": 3676, - "loc": { - "start": { - "line": 135, - "column": 4 - }, - "end": { - "line": 135, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3650, - "end": 3674, - "loc": { - "start": { - "line": 135, - "column": 4 - }, - "end": { - "line": 135, - "column": 28 + "arguments": [ + { + "type": "StringLiteral", + "start": 3077, + "end": 3089, + "loc": { + "start": { + "line": 117, + "column": 30 + }, + "end": { + "line": 117, + "column": 42 + } + }, + "extra": { + "rawValue": "mouseleave", + "raw": "\"mouseleave\"" + }, + "value": "mouseleave" + }, + { + "type": "Identifier", + "start": 3091, + "end": 3101, + "loc": { + "start": { + "line": 117, + "column": 44 + }, + "end": { + "line": 117, + "column": 54 + }, + "identifierName": "mouseEvent" + }, + "name": "mouseEvent" + } + ] } }, - "object": { - "type": "Identifier", - "start": 3650, - "end": 3661, + { + "type": "ExpressionStatement", + "start": 3108, + "end": 3158, "loc": { "start": { - "line": 135, + "line": 118, "column": 4 }, "end": { - "line": 135, - "column": 15 - }, - "identifierName": "MatrixStack" + "line": 118, + "column": 54 + } }, - "name": "MatrixStack" - }, - "property": { - "type": "Identifier", - "start": 3662, - "end": 3674, - "loc": { - "start": { - "line": 135, - "column": 16 - }, - "end": { - "line": 135, - "column": 28 + "expression": { + "type": "CallExpression", + "start": 3108, + "end": 3157, + "loc": { + "start": { + "line": 118, + "column": 4 + }, + "end": { + "line": 118, + "column": 53 + } }, - "identifierName": "loadIdentity" - }, - "name": "loadIdentity" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ExpressionStatement", - "start": 3682, - "end": 3699, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 136, - "column": 21 - } - }, - "expression": { - "type": "CallExpression", - "start": 3682, - "end": 3698, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 136, - "column": 20 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3682, - "end": 3696, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 136, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 3682, - "end": 3689, - "loc": { - "start": { - "line": 136, - "column": 4 - }, - "end": { - "line": 136, - "column": 11 - }, - "identifierName": "dragMgr" - }, - "name": "dragMgr" - }, - "property": { - "type": "Identifier", - "start": 3690, - "end": 3696, - "loc": { - "start": { - "line": 136, - "column": 12 - }, - "end": { - "line": 136, - "column": 18 + "callee": { + "type": "MemberExpression", + "start": 3108, + "end": 3131, + "loc": { + "start": { + "line": 118, + "column": 4 + }, + "end": { + "line": 118, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 3108, + "end": 3114, + "loc": { + "start": { + "line": 118, + "column": 4 + }, + "end": { + "line": 118, + "column": 10 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "Identifier", + "start": 3115, + "end": 3131, + "loc": { + "start": { + "line": 118, + "column": 11 + }, + "end": { + "line": 118, + "column": 27 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false }, - "identifierName": "update" - }, - "name": "update" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ExpressionStatement", - "start": 3704, - "end": 3754, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 54 - } - }, - "expression": { - "type": "CallExpression", - "start": 3704, - "end": 3753, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3704, - "end": 3721, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 21 + "arguments": [ + { + "type": "StringLiteral", + "start": 3132, + "end": 3144, + "loc": { + "start": { + "line": 118, + "column": 28 + }, + "end": { + "line": 118, + "column": 40 + } + }, + "extra": { + "rawValue": "touchstart", + "raw": "\"touchstart\"" + }, + "value": "touchstart" + }, + { + "type": "Identifier", + "start": 3146, + "end": 3156, + "loc": { + "start": { + "line": 118, + "column": 42 + }, + "end": { + "line": 118, + "column": 52 + }, + "identifierName": "touchEvent" + }, + "name": "touchEvent" + } + ] } }, - "object": { - "type": "Identifier", - "start": 3704, - "end": 3713, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 13 - }, - "identifierName": "live2DMgr" - }, - "name": "live2DMgr" - }, - "property": { - "type": "Identifier", - "start": 3714, - "end": 3721, - "loc": { - "start": { - "line": 137, - "column": 14 - }, - "end": { - "line": 137, - "column": 21 - }, - "identifierName": "setDrag" - }, - "name": "setDrag" - }, - "computed": false - }, - "arguments": [ { - "type": "CallExpression", - "start": 3722, - "end": 3736, + "type": "ExpressionStatement", + "start": 3163, + "end": 3211, "loc": { "start": { - "line": 137, - "column": 22 + "line": 119, + "column": 4 }, "end": { - "line": 137, - "column": 36 + "line": 119, + "column": 52 } }, - "callee": { - "type": "MemberExpression", - "start": 3722, - "end": 3734, + "expression": { + "type": "CallExpression", + "start": 3163, + "end": 3210, "loc": { "start": { - "line": 137, - "column": 22 + "line": 119, + "column": 4 }, "end": { - "line": 137, - "column": 34 + "line": 119, + "column": 51 } }, - "object": { - "type": "Identifier", - "start": 3722, - "end": 3729, + "callee": { + "type": "MemberExpression", + "start": 3163, + "end": 3186, "loc": { "start": { - "line": 137, - "column": 22 + "line": 119, + "column": 4 }, "end": { - "line": 137, - "column": 29 + "line": 119, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 3163, + "end": 3169, + "loc": { + "start": { + "line": 119, + "column": 4 + }, + "end": { + "line": 119, + "column": 10 + }, + "identifierName": "window" }, - "identifierName": "dragMgr" + "name": "window" }, - "name": "dragMgr" + "property": { + "type": "Identifier", + "start": 3170, + "end": 3186, + "loc": { + "start": { + "line": 119, + "column": 11 + }, + "end": { + "line": 119, + "column": 27 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false }, - "property": { - "type": "Identifier", - "start": 3730, - "end": 3734, - "loc": { - "start": { - "line": 137, - "column": 30 + "arguments": [ + { + "type": "StringLiteral", + "start": 3187, + "end": 3197, + "loc": { + "start": { + "line": 119, + "column": 28 + }, + "end": { + "line": 119, + "column": 38 + } }, - "end": { - "line": 137, - "column": 34 + "extra": { + "rawValue": "touchend", + "raw": "\"touchend\"" }, - "identifierName": "getX" + "value": "touchend" }, - "name": "getX" - }, - "computed": false - }, - "arguments": [] + { + "type": "Identifier", + "start": 3199, + "end": 3209, + "loc": { + "start": { + "line": 119, + "column": 40 + }, + "end": { + "line": 119, + "column": 50 + }, + "identifierName": "touchEvent" + }, + "name": "touchEvent" + } + ] + } }, { - "type": "CallExpression", - "start": 3738, - "end": 3752, + "type": "ExpressionStatement", + "start": 3216, + "end": 3265, "loc": { "start": { - "line": 137, - "column": 38 + "line": 120, + "column": 4 }, "end": { - "line": 137, - "column": 52 + "line": 120, + "column": 53 } }, - "callee": { - "type": "MemberExpression", - "start": 3738, - "end": 3750, + "expression": { + "type": "CallExpression", + "start": 3216, + "end": 3264, "loc": { "start": { - "line": 137, - "column": 38 + "line": 120, + "column": 4 }, "end": { - "line": 137, - "column": 50 + "line": 120, + "column": 52 } }, - "object": { - "type": "Identifier", - "start": 3738, - "end": 3745, + "callee": { + "type": "MemberExpression", + "start": 3216, + "end": 3239, "loc": { "start": { - "line": 137, - "column": 38 + "line": 120, + "column": 4 }, "end": { - "line": 137, - "column": 45 + "line": 120, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 3216, + "end": 3222, + "loc": { + "start": { + "line": 120, + "column": 4 + }, + "end": { + "line": 120, + "column": 10 + }, + "identifierName": "window" }, - "identifierName": "dragMgr" + "name": "window" }, - "name": "dragMgr" + "property": { + "type": "Identifier", + "start": 3223, + "end": 3239, + "loc": { + "start": { + "line": 120, + "column": 11 + }, + "end": { + "line": 120, + "column": 27 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false }, - "property": { - "type": "Identifier", - "start": 3746, - "end": 3750, - "loc": { - "start": { - "line": 137, - "column": 46 + "arguments": [ + { + "type": "StringLiteral", + "start": 3240, + "end": 3251, + "loc": { + "start": { + "line": 120, + "column": 28 + }, + "end": { + "line": 120, + "column": 39 + } }, - "end": { - "line": 137, - "column": 50 + "extra": { + "rawValue": "touchmove", + "raw": "\"touchmove\"" }, - "identifierName": "getY" + "value": "touchmove" }, - "name": "getY" - }, - "computed": false - }, - "arguments": [] + { + "type": "Identifier", + "start": 3253, + "end": 3263, + "loc": { + "start": { + "line": 120, + "column": 41 + }, + "end": { + "line": 120, + "column": 51 + }, + "identifierName": "touchEvent" + }, + "name": "touchEvent" + } + ] + } } - ] - } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "FunctionDeclaration", + "start": 3273, + "end": 3777, + "loc": { + "start": { + "line": 124, + "column": 0 + }, + "end": { + "line": 142, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 3282, + "end": 3291, + "loc": { + "start": { + "line": 124, + "column": 9 + }, + "end": { + "line": 124, + "column": 18 + }, + "identifierName": "startDraw" + }, + "name": "startDraw" + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 3294, + "end": 3777, + "loc": { + "start": { + "line": 124, + "column": 21 }, + "end": { + "line": 142, + "column": 1 + } + }, + "body": [ { - "type": "ExpressionStatement", - "start": 3760, - "end": 3804, + "type": "IfStatement", + "start": 3298, + "end": 3775, "loc": { "start": { - "line": 139, - "column": 4 + "line": 125, + "column": 2 }, "end": { - "line": 139, - "column": 48 + "line": 141, + "column": 3 } }, - "expression": { - "type": "CallExpression", - "start": 3760, - "end": 3803, + "test": { + "type": "UnaryExpression", + "start": 3302, + "end": 3314, "loc": { "start": { - "line": 139, - "column": 4 + "line": 125, + "column": 6 }, "end": { - "line": 139, - "column": 47 + "line": 125, + "column": 18 } }, - "callee": { - "type": "MemberExpression", - "start": 3760, - "end": 3775, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 3303, + "end": 3314, "loc": { "start": { - "line": 139, - "column": 4 + "line": 125, + "column": 7 }, "end": { - "line": 139, - "column": 19 - } + "line": 125, + "column": 18 + }, + "identifierName": "isDrawStart" }, - "object": { - "type": "Identifier", - "start": 3760, - "end": 3769, + "name": "isDrawStart" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 3316, + "end": 3775, + "loc": { + "start": { + "line": 125, + "column": 20 + }, + "end": { + "line": 141, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3322, + "end": 3341, "loc": { "start": { - "line": 139, + "line": 126, "column": 4 }, "end": { - "line": 139, - "column": 13 - }, - "identifierName": "currWebGL" + "line": 126, + "column": 23 + } }, - "name": "currWebGL" - }, - "property": { - "type": "Identifier", - "start": 3770, - "end": 3775, - "loc": { - "start": { - "line": 139, - "column": 14 + "expression": { + "type": "AssignmentExpression", + "start": 3322, + "end": 3340, + "loc": { + "start": { + "line": 126, + "column": 4 + }, + "end": { + "line": 126, + "column": 22 + } }, - "end": { - "line": 139, - "column": 19 + "operator": "=", + "left": { + "type": "Identifier", + "start": 3322, + "end": 3333, + "loc": { + "start": { + "line": 126, + "column": 4 + }, + "end": { + "line": 126, + "column": 15 + }, + "identifierName": "isDrawStart" + }, + "name": "isDrawStart" }, - "identifierName": "clear" - }, - "name": "clear" + "right": { + "type": "BooleanLiteral", + "start": 3336, + "end": 3340, + "loc": { + "start": { + "line": 126, + "column": 18 + }, + "end": { + "line": 126, + "column": 22 + } + }, + "value": true + } + } }, - "computed": false - }, - "arguments": [ { - "type": "MemberExpression", - "start": 3776, - "end": 3802, + "type": "ExpressionStatement", + "start": 3346, + "end": 3771, "loc": { "start": { - "line": 139, - "column": 20 + "line": 127, + "column": 4 }, "end": { - "line": 139, - "column": 46 + "line": 140, + "column": 9 } }, - "object": { - "type": "Identifier", - "start": 3776, - "end": 3785, + "expression": { + "type": "CallExpression", + "start": 3346, + "end": 3770, "loc": { "start": { - "line": 139, - "column": 20 + "line": 127, + "column": 4 }, "end": { - "line": 139, - "column": 29 - }, - "identifierName": "currWebGL" + "line": 140, + "column": 8 + } }, - "name": "currWebGL" - }, - "property": { - "type": "Identifier", - "start": 3786, - "end": 3802, - "loc": { - "start": { - "line": 139, - "column": 30 - }, - "end": { - "line": 139, - "column": 46 - }, - "identifierName": "COLOR_BUFFER_BIT" - }, - "name": "COLOR_BUFFER_BIT" - }, - "computed": false - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3810, - "end": 3856, - "loc": { - "start": { - "line": 141, - "column": 4 - }, - "end": { - "line": 141, - "column": 50 - } - }, - "expression": { - "type": "CallExpression", - "start": 3810, - "end": 3855, - "loc": { - "start": { - "line": 141, - "column": 4 - }, - "end": { - "line": 141, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3810, - "end": 3832, - "loc": { - "start": { - "line": 141, - "column": 4 - }, - "end": { - "line": 141, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 3810, - "end": 3821, - "loc": { - "start": { - "line": 141, - "column": 4 - }, - "end": { - "line": 141, - "column": 15 - }, - "identifierName": "MatrixStack" - }, - "name": "MatrixStack" - }, - "property": { - "type": "Identifier", - "start": 3822, - "end": 3832, - "loc": { - "start": { - "line": 141, - "column": 16 - }, - "end": { - "line": 141, - "column": 26 - }, - "identifierName": "multMatrix" - }, - "name": "multMatrix" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3833, - "end": 3854, - "loc": { - "start": { - "line": 141, - "column": 27 - }, - "end": { - "line": 141, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3833, - "end": 3852, - "loc": { - "start": { - "line": 141, - "column": 27 - }, - "end": { - "line": 141, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 3833, - "end": 3843, - "loc": { - "start": { - "line": 141, - "column": 27 - }, - "end": { - "line": 141, - "column": 37 - }, - "identifierName": "projMatrix" - }, - "name": "projMatrix" - }, - "property": { - "type": "Identifier", - "start": 3844, - "end": 3852, - "loc": { - "start": { - "line": 141, - "column": 38 - }, - "end": { - "line": 141, - "column": 46 - }, - "identifierName": "getArray" - }, - "name": "getArray" - }, - "computed": false - }, - "arguments": [] - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3861, - "end": 3907, - "loc": { - "start": { - "line": 142, - "column": 4 - }, - "end": { - "line": 142, - "column": 50 - } - }, - "expression": { - "type": "CallExpression", - "start": 3861, - "end": 3906, - "loc": { - "start": { - "line": 142, - "column": 4 - }, - "end": { - "line": 142, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3861, - "end": 3883, - "loc": { - "start": { - "line": 142, - "column": 4 - }, - "end": { - "line": 142, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 3861, - "end": 3872, - "loc": { - "start": { - "line": 142, - "column": 4 - }, - "end": { - "line": 142, - "column": 15 - }, - "identifierName": "MatrixStack" - }, - "name": "MatrixStack" - }, - "property": { - "type": "Identifier", - "start": 3873, - "end": 3883, - "loc": { - "start": { - "line": 142, - "column": 16 - }, - "end": { - "line": 142, - "column": 26 - }, - "identifierName": "multMatrix" - }, - "name": "multMatrix" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3884, - "end": 3905, - "loc": { - "start": { - "line": 142, - "column": 27 - }, - "end": { - "line": 142, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3884, - "end": 3903, - "loc": { - "start": { - "line": 142, - "column": 27 - }, - "end": { - "line": 142, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 3884, - "end": 3894, - "loc": { - "start": { - "line": 142, - "column": 27 - }, - "end": { - "line": 142, - "column": 37 - }, - "identifierName": "viewMatrix" - }, - "name": "viewMatrix" - }, - "property": { - "type": "Identifier", - "start": 3895, - "end": 3903, - "loc": { - "start": { - "line": 142, - "column": 38 - }, - "end": { - "line": 142, - "column": 46 - }, - "identifierName": "getArray" - }, - "name": "getArray" - }, - "computed": false - }, - "arguments": [] - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 3912, - "end": 3931, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 23 - } - }, - "expression": { - "type": "CallExpression", - "start": 3912, - "end": 3930, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3912, - "end": 3928, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 3912, - "end": 3923, - "loc": { - "start": { - "line": 143, - "column": 4 - }, - "end": { - "line": 143, - "column": 15 - }, - "identifierName": "MatrixStack" - }, - "name": "MatrixStack" - }, - "property": { - "type": "Identifier", - "start": 3924, - "end": 3928, - "loc": { - "start": { - "line": 143, - "column": 16 - }, - "end": { - "line": 143, - "column": 20 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ForStatement", - "start": 3937, - "end": 4208, - "loc": { - "start": { - "line": 145, - "column": 4 - }, - "end": { - "line": 156, - "column": 5 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 3942, - "end": 3951, - "loc": { - "start": { - "line": 145, - "column": 9 - }, - "end": { - "line": 145, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3946, - "end": 3951, - "loc": { - "start": { - "line": 145, - "column": 13 - }, - "end": { - "line": 145, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 3946, - "end": 3947, - "loc": { - "start": { - "line": 145, - "column": 13 - }, - "end": { - "line": 145, - "column": 14 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 3950, - "end": 3951, - "loc": { - "start": { - "line": 145, - "column": 17 - }, - "end": { - "line": 145, - "column": 18 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 3953, - "end": 3978, - "loc": { - "start": { - "line": 145, - "column": 20 - }, - "end": { - "line": 145, - "column": 45 - } - }, - "left": { - "type": "Identifier", - "start": 3953, - "end": 3954, - "loc": { - "start": { - "line": 145, - "column": 20 - }, - "end": { - "line": 145, - "column": 21 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "CallExpression", - "start": 3957, - "end": 3978, - "loc": { - "start": { - "line": 145, - "column": 24 - }, - "end": { - "line": 145, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3957, - "end": 3976, - "loc": { - "start": { - "line": 145, - "column": 24 - }, - "end": { - "line": 145, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 3957, - "end": 3966, - "loc": { - "start": { - "line": 145, - "column": 24 - }, - "end": { - "line": 145, - "column": 33 - }, - "identifierName": "live2DMgr" - }, - "name": "live2DMgr" - }, - "property": { - "type": "Identifier", - "start": 3967, - "end": 3976, - "loc": { - "start": { - "line": 145, - "column": 34 - }, - "end": { - "line": 145, - "column": 43 - }, - "identifierName": "numModels" - }, - "name": "numModels" - }, - "computed": false - }, - "arguments": [] - } - }, - "update": { - "type": "UpdateExpression", - "start": 3980, - "end": 3983, - "loc": { - "start": { - "line": 145, - "column": 47 - }, - "end": { - "line": 145, - "column": 50 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 3980, - "end": 3981, - "loc": { - "start": { - "line": 145, - "column": 47 - }, - "end": { - "line": 145, - "column": 48 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 3989, - "end": 4208, - "loc": { - "start": { - "line": 146, - "column": 4 - }, - "end": { - "line": 156, - "column": 5 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3999, - "end": 4033, - "loc": { - "start": { - "line": 147, - "column": 8 - }, - "end": { - "line": 147, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4003, - "end": 4032, + "callee": { + "type": "FunctionExpression", + "start": 3347, + "end": 3767, "loc": { "start": { - "line": 147, - "column": 12 + "line": 127, + "column": 5 }, "end": { - "line": 147, - "column": 41 + "line": 140, + "column": 5 } }, "id": { "type": "Identifier", - "start": 4003, - "end": 4008, + "start": 3356, + "end": 3360, "loc": { "start": { - "line": 147, - "column": 12 + "line": 127, + "column": 14 }, "end": { - "line": 147, - "column": 17 + "line": 127, + "column": 18 }, - "identifierName": "model" + "identifierName": "tick" }, - "name": "model" + "name": "tick" }, - "init": { - "type": "CallExpression", - "start": 4011, - "end": 4032, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 3363, + "end": 3767, "loc": { "start": { - "line": 147, - "column": 20 + "line": 127, + "column": 21 }, "end": { - "line": 147, - "column": 41 + "line": 140, + "column": 5 } }, - "callee": { - "type": "MemberExpression", - "start": 4011, - "end": 4029, - "loc": { - "start": { - "line": 147, - "column": 20 + "body": [ + { + "type": "ExpressionStatement", + "start": 3371, + "end": 3378, + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 13 + } }, - "end": { - "line": 147, - "column": 38 + "expression": { + "type": "CallExpression", + "start": 3371, + "end": 3377, + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 12 + } + }, + "callee": { + "type": "Identifier", + "start": 3371, + "end": 3375, + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 10 + }, + "identifierName": "draw" + }, + "name": "draw" + }, + "arguments": [] } }, - "object": { - "type": "Identifier", - "start": 4011, - "end": 4020, + { + "type": "VariableDeclaration", + "start": 3385, + "end": 3581, "loc": { "start": { - "line": 147, - "column": 20 + "line": 129, + "column": 6 }, "end": { - "line": 147, - "column": 29 - }, - "identifierName": "live2DMgr" + "line": 133, + "column": 39 + } }, - "name": "live2DMgr" + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3389, + "end": 3580, + "loc": { + "start": { + "line": 129, + "column": 10 + }, + "end": { + "line": 133, + "column": 38 + } + }, + "id": { + "type": "Identifier", + "start": 3389, + "end": 3410, + "loc": { + "start": { + "line": 129, + "column": 10 + }, + "end": { + "line": 129, + "column": 31 + }, + "identifierName": "requestAnimationFrame" + }, + "name": "requestAnimationFrame" + }, + "init": { + "type": "LogicalExpression", + "start": 3421, + "end": 3580, + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 133, + "column": 38 + } + }, + "left": { + "type": "LogicalExpression", + "start": 3421, + "end": 3538, + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 132, + "column": 42 + } + }, + "left": { + "type": "LogicalExpression", + "start": 3421, + "end": 3492, + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 131, + "column": 39 + } + }, + "left": { + "type": "MemberExpression", + "start": 3421, + "end": 3449, + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 130, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 3421, + "end": 3427, + "loc": { + "start": { + "line": 130, + "column": 8 + }, + "end": { + "line": 130, + "column": 14 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "Identifier", + "start": 3428, + "end": 3449, + "loc": { + "start": { + "line": 130, + "column": 15 + }, + "end": { + "line": 130, + "column": 36 + }, + "identifierName": "requestAnimationFrame" + }, + "name": "requestAnimationFrame" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 3461, + "end": 3492, + "loc": { + "start": { + "line": 131, + "column": 8 + }, + "end": { + "line": 131, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 3461, + "end": 3467, + "loc": { + "start": { + "line": 131, + "column": 8 + }, + "end": { + "line": 131, + "column": 14 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "Identifier", + "start": 3468, + "end": 3492, + "loc": { + "start": { + "line": 131, + "column": 15 + }, + "end": { + "line": 131, + "column": 39 + }, + "identifierName": "mozRequestAnimationFrame" + }, + "name": "mozRequestAnimationFrame" + }, + "computed": false + } + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 3504, + "end": 3538, + "loc": { + "start": { + "line": 132, + "column": 8 + }, + "end": { + "line": 132, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 3504, + "end": 3510, + "loc": { + "start": { + "line": 132, + "column": 8 + }, + "end": { + "line": 132, + "column": 14 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "Identifier", + "start": 3511, + "end": 3538, + "loc": { + "start": { + "line": 132, + "column": 15 + }, + "end": { + "line": 132, + "column": 42 + }, + "identifierName": "webkitRequestAnimationFrame" + }, + "name": "webkitRequestAnimationFrame" + }, + "computed": false + } + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 3550, + "end": 3580, + "loc": { + "start": { + "line": 133, + "column": 8 + }, + "end": { + "line": 133, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 3550, + "end": 3556, + "loc": { + "start": { + "line": 133, + "column": 8 + }, + "end": { + "line": 133, + "column": 14 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "Identifier", + "start": 3557, + "end": 3580, + "loc": { + "start": { + "line": 133, + "column": 15 + }, + "end": { + "line": 133, + "column": 38 + }, + "identifierName": "msRequestAnimationFrame" + }, + "name": "msRequestAnimationFrame" + }, + "computed": false + } + } + } + ], + "kind": "let" }, - "property": { - "type": "Identifier", - "start": 4021, - "end": 4029, + { + "type": "ExpressionStatement", + "start": 3589, + "end": 3629, "loc": { "start": { - "line": 147, - "column": 30 + "line": 135, + "column": 6 }, "end": { - "line": 147, - "column": 38 - }, - "identifierName": "getModel" + "line": 135, + "column": 46 + } }, - "name": "getModel" + "expression": { + "type": "CallExpression", + "start": 3589, + "end": 3628, + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 45 + } + }, + "callee": { + "type": "Identifier", + "start": 3589, + "end": 3610, + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 27 + }, + "identifierName": "requestAnimationFrame" + }, + "name": "requestAnimationFrame" + }, + "arguments": [ + { + "type": "Identifier", + "start": 3611, + "end": 3615, + "loc": { + "start": { + "line": 135, + "column": 28 + }, + "end": { + "line": 135, + "column": 32 + }, + "identifierName": "tick" + }, + "name": "tick" + }, + { + "type": "Identifier", + "start": 3617, + "end": 3627, + "loc": { + "start": { + "line": 135, + "column": 34 + }, + "end": { + "line": 135, + "column": 44 + }, + "identifierName": "currCanvas" + }, + "name": "currCanvas" + } + ] + } }, - "computed": false - }, - "arguments": [ { - "type": "Identifier", - "start": 4030, - "end": 4031, + "type": "IfStatement", + "start": 3636, + "end": 3761, "loc": { "start": { - "line": 147, - "column": 39 + "line": 136, + "column": 6 }, "end": { - "line": 147, - "column": 40 + "line": 139, + "column": 7 + } + }, + "test": { + "type": "BinaryExpression", + "start": 3639, + "end": 3667, + "loc": { + "start": { + "line": 136, + "column": 9 + }, + "end": { + "line": 136, + "column": 37 + } }, - "identifierName": "i" + "left": { + "type": "Identifier", + "start": 3639, + "end": 3653, + "loc": { + "start": { + "line": 136, + "column": 9 + }, + "end": { + "line": 136, + "column": 23 + }, + "identifierName": "captureFrameCB" + }, + "name": "captureFrameCB" + }, + "operator": "!==", + "right": { + "type": "Identifier", + "start": 3658, + "end": 3667, + "loc": { + "start": { + "line": 136, + "column": 28 + }, + "end": { + "line": 136, + "column": 37 + }, + "identifierName": "undefined" + }, + "name": "undefined" + } }, - "name": "i" + "consequent": { + "type": "BlockStatement", + "start": 3668, + "end": 3761, + "loc": { + "start": { + "line": 136, + "column": 38 + }, + "end": { + "line": 139, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3678, + "end": 3717, + "loc": { + "start": { + "line": 137, + "column": 8 + }, + "end": { + "line": 137, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 3678, + "end": 3716, + "loc": { + "start": { + "line": 137, + "column": 8 + }, + "end": { + "line": 137, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 3678, + "end": 3692, + "loc": { + "start": { + "line": 137, + "column": 8 + }, + "end": { + "line": 137, + "column": 22 + }, + "identifierName": "captureFrameCB" + }, + "name": "captureFrameCB" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 3693, + "end": 3715, + "loc": { + "start": { + "line": 137, + "column": 23 + }, + "end": { + "line": 137, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3693, + "end": 3713, + "loc": { + "start": { + "line": 137, + "column": 23 + }, + "end": { + "line": 137, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 3693, + "end": 3703, + "loc": { + "start": { + "line": 137, + "column": 23 + }, + "end": { + "line": 137, + "column": 33 + }, + "identifierName": "currCanvas" + }, + "name": "currCanvas" + }, + "property": { + "type": "Identifier", + "start": 3704, + "end": 3713, + "loc": { + "start": { + "line": 137, + "column": 34 + }, + "end": { + "line": 137, + "column": 43 + }, + "identifierName": "toDataURL" + }, + "name": "toDataURL" + }, + "computed": false + }, + "arguments": [] + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 3726, + "end": 3753, + "loc": { + "start": { + "line": 138, + "column": 8 + }, + "end": { + "line": 138, + "column": 35 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3726, + "end": 3752, + "loc": { + "start": { + "line": 138, + "column": 8 + }, + "end": { + "line": 138, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 3726, + "end": 3740, + "loc": { + "start": { + "line": 138, + "column": 8 + }, + "end": { + "line": 138, + "column": 22 + }, + "identifierName": "captureFrameCB" + }, + "name": "captureFrameCB" + }, + "right": { + "type": "Identifier", + "start": 3743, + "end": 3752, + "loc": { + "start": { + "line": 138, + "column": 25 + }, + "end": { + "line": 138, + "column": 34 + }, + "identifierName": "undefined" + }, + "name": "undefined" + } + } + } + ], + "directives": [] + }, + "alternate": null } - ] - } - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 4043, - "end": 4068, - "loc": { - "start": { - "line": 149, - "column": 8 - }, - "end": { - "line": 149, - "column": 33 - } - }, - "test": { - "type": "BinaryExpression", - "start": 4046, - "end": 4059, - "loc": { - "start": { - "line": 149, - "column": 11 + ], + "directives": [] }, - "end": { - "line": 149, - "column": 24 + "extra": { + "parenthesized": true, + "parenStart": 3346 } }, - "left": { - "type": "Identifier", - "start": 4046, - "end": 4051, - "loc": { - "start": { - "line": 149, - "column": 11 - }, - "end": { - "line": 149, - "column": 16 - }, - "identifierName": "model" - }, - "name": "model" - }, - "operator": "==", - "right": { - "type": "NullLiteral", - "start": 4055, - "end": 4059, - "loc": { - "start": { - "line": 149, - "column": 20 - }, - "end": { - "line": 149, - "column": 24 - } - } - } - }, - "consequent": { - "type": "ReturnStatement", - "start": 4061, - "end": 4068, - "loc": { - "start": { - "line": 149, - "column": 26 - }, - "end": { - "line": 149, - "column": 33 - } - }, - "argument": null - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 4078, - "end": 4202, - "loc": { - "start": { - "line": 151, - "column": 8 - }, - "end": { - "line": 155, - "column": 9 - } - }, - "test": { - "type": "LogicalExpression", - "start": 4082, - "end": 4118, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 48 - } - }, - "left": { - "type": "MemberExpression", - "start": 4082, - "end": 4099, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 29 - } - }, - "object": { - "type": "Identifier", - "start": 4082, - "end": 4087, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 17 - }, - "identifierName": "model" - }, - "name": "model" - }, - "property": { - "type": "Identifier", - "start": 4088, - "end": 4099, - "loc": { - "start": { - "line": 151, - "column": 18 - }, - "end": { - "line": 151, - "column": 29 - }, - "identifierName": "initialized" - }, - "name": "initialized" - }, - "computed": false - }, - "operator": "&&", - "right": { - "type": "UnaryExpression", - "start": 4103, - "end": 4118, - "loc": { - "start": { - "line": 151, - "column": 33 - }, - "end": { - "line": 151, - "column": 48 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 4104, - "end": 4118, - "loc": { - "start": { - "line": 151, - "column": 34 - }, - "end": { - "line": 151, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 4104, - "end": 4109, - "loc": { - "start": { - "line": 151, - "column": 34 - }, - "end": { - "line": 151, - "column": 39 - }, - "identifierName": "model" - }, - "name": "model" - }, - "property": { - "type": "Identifier", - "start": 4110, - "end": 4118, - "loc": { - "start": { - "line": 151, - "column": 40 - }, - "end": { - "line": 151, - "column": 48 - }, - "identifierName": "updating" - }, - "name": "updating" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - } - }, - "consequent": { - "type": "BlockStatement", - "start": 4128, - "end": 4202, - "loc": { - "start": { - "line": 152, - "column": 8 - }, - "end": { - "line": 155, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4142, - "end": 4157, - "loc": { - "start": { - "line": 153, - "column": 12 - }, - "end": { - "line": 153, - "column": 27 - } - }, - "expression": { - "type": "CallExpression", - "start": 4142, - "end": 4156, - "loc": { - "start": { - "line": 153, - "column": 12 - }, - "end": { - "line": 153, - "column": 26 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4142, - "end": 4154, - "loc": { - "start": { - "line": 153, - "column": 12 - }, - "end": { - "line": 153, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 4142, - "end": 4147, - "loc": { - "start": { - "line": 153, - "column": 12 - }, - "end": { - "line": 153, - "column": 17 - }, - "identifierName": "model" - }, - "name": "model" - }, - "property": { - "type": "Identifier", - "start": 4148, - "end": 4154, - "loc": { - "start": { - "line": 153, - "column": 18 - }, - "end": { - "line": 153, - "column": 24 - }, - "identifierName": "update" - }, - "name": "update" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ExpressionStatement", - "start": 4170, - "end": 4192, - "loc": { - "start": { - "line": 154, - "column": 12 - }, - "end": { - "line": 154, - "column": 34 - } - }, - "expression": { - "type": "CallExpression", - "start": 4170, - "end": 4191, - "loc": { - "start": { - "line": 154, - "column": 12 - }, - "end": { - "line": 154, - "column": 33 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4170, - "end": 4180, - "loc": { - "start": { - "line": 154, - "column": 12 - }, - "end": { - "line": 154, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 4170, - "end": 4175, - "loc": { - "start": { - "line": 154, - "column": 12 - }, - "end": { - "line": 154, - "column": 17 - }, - "identifierName": "model" - }, - "name": "model" - }, - "property": { - "type": "Identifier", - "start": 4176, - "end": 4180, - "loc": { - "start": { - "line": 154, - "column": 18 - }, - "end": { - "line": 154, - "column": 22 - }, - "identifierName": "draw" - }, - "name": "draw" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4181, - "end": 4190, - "loc": { - "start": { - "line": 154, - "column": 23 - }, - "end": { - "line": 154, - "column": 32 - }, - "identifierName": "currWebGL" - }, - "name": "currWebGL" - } - ] - } - } - ], - "directives": [] - }, - "alternate": null + "arguments": [] + } } ], "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 4213, - "end": 4231, - "loc": { - "start": { - "line": 157, - "column": 4 - }, - "end": { - "line": 157, - "column": 22 - } }, - "expression": { - "type": "CallExpression", - "start": 4213, - "end": 4230, - "loc": { - "start": { - "line": 157, - "column": 4 - }, - "end": { - "line": 157, - "column": 21 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4213, - "end": 4228, - "loc": { - "start": { - "line": 157, - "column": 4 - }, - "end": { - "line": 157, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 4213, - "end": 4224, - "loc": { - "start": { - "line": 157, - "column": 4 - }, - "end": { - "line": 157, - "column": 15 - }, - "identifierName": "MatrixStack" - }, - "name": "MatrixStack" - }, - "property": { - "type": "Identifier", - "start": 4225, - "end": 4228, - "loc": { - "start": { - "line": 157, - "column": 16 - }, - "end": { - "line": 157, - "column": 19 - }, - "identifierName": "pop" - }, - "name": "pop" - }, - "computed": false - }, - "arguments": [] - } + "alternate": null } ], "directives": [] @@ -8152,5371 +7386,4413 @@ }, { "type": "FunctionDeclaration", - "start": 4235, - "end": 4400, + "start": 3779, + "end": 4409, "loc": { "start": { - "line": 160, + "line": 144, "column": 0 }, "end": { - "line": 165, + "line": 170, "column": 1 } }, "id": { "type": "Identifier", - "start": 4244, - "end": 4255, + "start": 3788, + "end": 3792, "loc": { "start": { - "line": 160, + "line": 144, "column": 9 }, "end": { - "line": 160, - "column": 20 + "line": 144, + "column": 13 }, - "identifierName": "changeModel" + "identifierName": "draw" }, - "name": "changeModel" + "name": "draw" }, "generator": false, "expression": false, "async": false, - "params": [ - { - "type": "Identifier", - "start": 4256, - "end": 4264, - "loc": { - "start": { - "line": 160, - "column": 21 - }, - "end": { - "line": 160, - "column": 29 - }, - "identifierName": "modelurl" - }, - "name": "modelurl" - } - ], + "params": [], "body": { "type": "BlockStatement", - "start": 4274, - "end": 4400, + "start": 3795, + "end": 4409, "loc": { "start": { - "line": 161, + "line": 145, "column": 0 }, "end": { - "line": 165, + "line": 170, "column": 1 } }, "body": [ { "type": "ExpressionStatement", - "start": 4280, - "end": 4307, + "start": 3801, + "end": 3821, "loc": { "start": { - "line": 162, + "line": 146, "column": 4 }, "end": { - "line": 162, - "column": 31 + "line": 146, + "column": 24 } }, "expression": { - "type": "AssignmentExpression", - "start": 4280, - "end": 4306, + "type": "CallExpression", + "start": 3801, + "end": 3820, "loc": { "start": { - "line": 162, + "line": 146, "column": 4 }, "end": { - "line": 162, - "column": 30 + "line": 146, + "column": 23 } }, - "operator": "=", - "left": { + "callee": { "type": "MemberExpression", - "start": 4280, - "end": 4299, + "start": 3801, + "end": 3818, "loc": { "start": { - "line": 162, + "line": 146, "column": 4 }, "end": { - "line": 162, - "column": 23 + "line": 146, + "column": 21 } }, "object": { "type": "Identifier", - "start": 4280, - "end": 4289, + "start": 3801, + "end": 3812, "loc": { "start": { - "line": 162, + "line": 146, "column": 4 }, "end": { - "line": 162, - "column": 13 + "line": 146, + "column": 15 }, - "identifierName": "live2DMgr" + "identifierName": "MatrixStack" }, - "name": "live2DMgr", - "leadingComments": null + "name": "MatrixStack" }, "property": { "type": "Identifier", - "start": 4290, - "end": 4299, + "start": 3813, + "end": 3818, "loc": { "start": { - "line": 162, - "column": 14 + "line": 146, + "column": 16 }, "end": { - "line": 162, - "column": 23 + "line": 146, + "column": 21 }, - "identifierName": "reloadFlg" - }, - "name": "reloadFlg" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "BooleanLiteral", - "start": 4302, - "end": 4306, - "loc": { - "start": { - "line": 162, - "column": 26 + "identifierName": "reset" }, - "end": { - "line": 162, - "column": 30 - } + "name": "reset" }, - "value": true + "computed": false }, - "leadingComments": null - }, - "leadingComments": null + "arguments": [] + } }, { "type": "ExpressionStatement", - "start": 4312, - "end": 4330, + "start": 3826, + "end": 3853, "loc": { "start": { - "line": 163, + "line": 147, "column": 4 }, "end": { - "line": 163, - "column": 22 + "line": 147, + "column": 31 } }, "expression": { - "type": "UpdateExpression", - "start": 4312, - "end": 4329, + "type": "CallExpression", + "start": 3826, + "end": 3852, "loc": { "start": { - "line": 163, + "line": 147, "column": 4 }, "end": { - "line": 163, - "column": 21 + "line": 147, + "column": 30 } }, - "operator": "++", - "prefix": false, - "argument": { + "callee": { "type": "MemberExpression", - "start": 4312, - "end": 4327, + "start": 3826, + "end": 3850, "loc": { "start": { - "line": 163, + "line": 147, "column": 4 }, "end": { - "line": 163, - "column": 19 + "line": 147, + "column": 28 } }, "object": { "type": "Identifier", - "start": 4312, - "end": 4321, + "start": 3826, + "end": 3837, "loc": { "start": { - "line": 163, + "line": 147, "column": 4 }, "end": { - "line": 163, - "column": 13 + "line": 147, + "column": 15 }, - "identifierName": "live2DMgr" + "identifierName": "MatrixStack" }, - "name": "live2DMgr" + "name": "MatrixStack" }, "property": { "type": "Identifier", - "start": 4322, - "end": 4327, + "start": 3838, + "end": 3850, "loc": { "start": { - "line": 163, - "column": 14 + "line": 147, + "column": 16 }, "end": { - "line": 163, - "column": 19 + "line": 147, + "column": 28 }, - "identifierName": "count" + "identifierName": "loadIdentity" }, - "name": "count" + "name": "loadIdentity" }, "computed": false - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " 现在仍有多模型支持,稍后可以精简", - "start": 4331, - "end": 4350, - "loc": { - "start": { - "line": 163, - "column": 23 - }, - "end": { - "line": 163, - "column": 42 - } - } - } - ] + }, + "arguments": [] + } }, { "type": "ExpressionStatement", - "start": 4355, - "end": 4398, + "start": 3858, + "end": 3875, "loc": { "start": { - "line": 164, + "line": 148, "column": 4 }, "end": { - "line": 164, - "column": 47 + "line": 148, + "column": 21 } }, "expression": { "type": "CallExpression", - "start": 4355, - "end": 4397, + "start": 3858, + "end": 3874, "loc": { "start": { - "line": 164, + "line": 148, "column": 4 }, "end": { - "line": 164, - "column": 46 + "line": 148, + "column": 20 } }, "callee": { "type": "MemberExpression", - "start": 4355, - "end": 4376, + "start": 3858, + "end": 3872, "loc": { "start": { - "line": 164, + "line": 148, "column": 4 }, "end": { - "line": 164, - "column": 25 + "line": 148, + "column": 18 } }, "object": { "type": "Identifier", - "start": 4355, - "end": 4364, + "start": 3858, + "end": 3865, "loc": { "start": { - "line": 164, + "line": 148, "column": 4 }, "end": { - "line": 164, - "column": 13 + "line": 148, + "column": 11 }, - "identifierName": "live2DMgr" + "identifierName": "dragMgr" }, - "name": "live2DMgr", - "leadingComments": null + "name": "dragMgr" }, "property": { "type": "Identifier", - "start": 4365, - "end": 4376, - "loc": { - "start": { - "line": 164, - "column": 14 - }, - "end": { - "line": 164, - "column": 25 - }, - "identifierName": "changeModel" - }, - "name": "changeModel" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 4377, - "end": 4386, + "start": 3866, + "end": 3872, "loc": { "start": { - "line": 164, - "column": 26 + "line": 148, + "column": 12 }, "end": { - "line": 164, - "column": 35 + "line": 148, + "column": 18 }, - "identifierName": "currWebGL" + "identifierName": "update" }, - "name": "currWebGL" + "name": "update" }, - { - "type": "Identifier", - "start": 4388, - "end": 4396, - "loc": { - "start": { - "line": 164, - "column": 37 - }, - "end": { - "line": 164, - "column": 45 - }, - "identifierName": "modelurl" - }, - "name": "modelurl" - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " 现在仍有多模型支持,稍后可以精简", - "start": 4331, - "end": 4350, - "loc": { - "start": { - "line": 163, - "column": 23 - }, - "end": { - "line": 163, - "column": 42 - } - } - } - ] - } - ], - "directives": [], - "leadingComments": [ - { - "type": "CommentLine", - "value": " 更换模型", - "start": 4266, - "end": 4273, - "loc": { - "start": { - "line": 160, - "column": 31 + "computed": false }, - "end": { - "line": 160, - "column": 38 - } + "arguments": [] } - } - ] - } - }, - { - "type": "FunctionDeclaration", - "start": 4402, - "end": 4473, - "loc": { - "start": { - "line": 167, - "column": 0 - }, - "end": { - "line": 169, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 4411, - "end": 4423, - "loc": { - "start": { - "line": 167, - "column": 9 - }, - "end": { - "line": 167, - "column": 21 - }, - "identifierName": "modelScaling" - }, - "name": "modelScaling" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4424, - "end": 4429, - "loc": { - "start": { - "line": 167, - "column": 22 - }, - "end": { - "line": 167, - "column": 27 - }, - "identifierName": "scale" - }, - "name": "scale" - } - ], - "body": { - "type": "BlockStatement", - "start": 4431, - "end": 4473, - "loc": { - "start": { - "line": 167, - "column": 29 }, - "end": { - "line": 169, - "column": 1 - } - }, - "body": [ { "type": "ExpressionStatement", - "start": 4435, - "end": 4471, + "start": 3880, + "end": 3930, "loc": { "start": { - "line": 168, - "column": 2 + "line": 149, + "column": 4 }, "end": { - "line": 168, - "column": 38 + "line": 149, + "column": 54 } }, "expression": { "type": "CallExpression", - "start": 4435, - "end": 4470, + "start": 3880, + "end": 3929, "loc": { "start": { - "line": 168, - "column": 2 + "line": 149, + "column": 4 }, "end": { - "line": 168, - "column": 37 + "line": 149, + "column": 53 } }, "callee": { "type": "MemberExpression", - "start": 4435, - "end": 4457, + "start": 3880, + "end": 3897, "loc": { "start": { - "line": 168, - "column": 2 + "line": 149, + "column": 4 }, "end": { - "line": 168, - "column": 24 + "line": 149, + "column": 21 } }, "object": { "type": "Identifier", - "start": 4435, - "end": 4445, + "start": 3880, + "end": 3889, "loc": { "start": { - "line": 168, - "column": 2 + "line": 149, + "column": 4 }, "end": { - "line": 168, - "column": 12 + "line": 149, + "column": 13 }, - "identifierName": "viewMatrix" + "identifierName": "live2DMgr" }, - "name": "viewMatrix" + "name": "live2DMgr" }, "property": { "type": "Identifier", - "start": 4446, - "end": 4457, + "start": 3890, + "end": 3897, "loc": { "start": { - "line": 168, - "column": 13 + "line": 149, + "column": 14 }, "end": { - "line": 168, - "column": 24 + "line": 149, + "column": 21 }, - "identifierName": "adjustScale" + "identifierName": "setDrag" }, - "name": "adjustScale" + "name": "setDrag" }, "computed": false }, "arguments": [ { - "type": "NumericLiteral", - "start": 4458, - "end": 4459, + "type": "CallExpression", + "start": 3898, + "end": 3912, "loc": { "start": { - "line": 168, - "column": 25 + "line": 149, + "column": 22 }, "end": { - "line": 168, - "column": 26 + "line": 149, + "column": 36 } }, - "extra": { - "rawValue": 0, - "raw": "0" + "callee": { + "type": "MemberExpression", + "start": 3898, + "end": 3910, + "loc": { + "start": { + "line": 149, + "column": 22 + }, + "end": { + "line": 149, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 3898, + "end": 3905, + "loc": { + "start": { + "line": 149, + "column": 22 + }, + "end": { + "line": 149, + "column": 29 + }, + "identifierName": "dragMgr" + }, + "name": "dragMgr" + }, + "property": { + "type": "Identifier", + "start": 3906, + "end": 3910, + "loc": { + "start": { + "line": 149, + "column": 30 + }, + "end": { + "line": 149, + "column": 34 + }, + "identifierName": "getX" + }, + "name": "getX" + }, + "computed": false }, - "value": 0 + "arguments": [] }, { - "type": "NumericLiteral", - "start": 4461, - "end": 4462, + "type": "CallExpression", + "start": 3914, + "end": 3928, "loc": { "start": { - "line": 168, - "column": 28 + "line": 149, + "column": 38 }, "end": { - "line": 168, - "column": 29 + "line": 149, + "column": 52 } }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "Identifier", - "start": 4464, - "end": 4469, - "loc": { - "start": { - "line": 168, - "column": 31 + "callee": { + "type": "MemberExpression", + "start": 3914, + "end": 3926, + "loc": { + "start": { + "line": 149, + "column": 38 + }, + "end": { + "line": 149, + "column": 50 + } }, - "end": { - "line": 168, - "column": 36 + "object": { + "type": "Identifier", + "start": 3914, + "end": 3921, + "loc": { + "start": { + "line": 149, + "column": 38 + }, + "end": { + "line": 149, + "column": 45 + }, + "identifierName": "dragMgr" + }, + "name": "dragMgr" }, - "identifierName": "scale" + "property": { + "type": "Identifier", + "start": 3922, + "end": 3926, + "loc": { + "start": { + "line": 149, + "column": 46 + }, + "end": { + "line": 149, + "column": 50 + }, + "identifierName": "getY" + }, + "name": "getY" + }, + "computed": false }, - "name": "scale" + "arguments": [] } ] } - } - ], - "directives": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "\nfunction transformRange(center, transform, range)\n{\n let a = {\n x: transform.x - center.x,\n y: transform.y - center.y\n }\n let r = Math.sqrt(Math.pow(a.x,2) + Math.pow(a.y,2));\n if (r > range) {\n a = {\n x: a.x / r * range + center.x,\n y: a.y / r * range + center.y\n };\n return a;\n } else {\n return transform;\n }\n}\n", - "start": 4474, - "end": 4874, - "loc": { - "start": { - "line": 170, - "column": 0 - }, - "end": { - "line": 188, - "column": 2 - } - } - } - ] - }, - { - "type": "FunctionDeclaration", - "start": 4875, - "end": 4930, - "loc": { - "start": { - "line": 189, - "column": 0 - }, - "end": { - "line": 192, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 4884, - "end": 4887, - "loc": { - "start": { - "line": 189, - "column": 9 - }, - "end": { - "line": 189, - "column": 12 - }, - "identifierName": "dot" - }, - "name": "dot", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4888, - "end": 4889, - "loc": { - "start": { - "line": 189, - "column": 13 - }, - "end": { - "line": 189, - "column": 14 - }, - "identifierName": "A" - }, - "name": "A" - }, - { - "type": "Identifier", - "start": 4890, - "end": 4891, - "loc": { - "start": { - "line": 189, - "column": 15 - }, - "end": { - "line": 189, - "column": 16 - }, - "identifierName": "B" - }, - "name": "B" - } - ], - "body": { - "type": "BlockStatement", - "start": 4893, - "end": 4930, - "loc": { - "start": { - "line": 190, - "column": 0 }, - "end": { - "line": 192, - "column": 1 - } - }, - "body": [ { - "type": "ReturnStatement", - "start": 4899, - "end": 4928, + "type": "ExpressionStatement", + "start": 3936, + "end": 3980, "loc": { "start": { - "line": 191, + "line": 151, "column": 4 }, "end": { - "line": 191, - "column": 33 + "line": 151, + "column": 48 } }, - "argument": { - "type": "BinaryExpression", - "start": 4906, - "end": 4927, + "expression": { + "type": "CallExpression", + "start": 3936, + "end": 3979, "loc": { "start": { - "line": 191, - "column": 11 + "line": 151, + "column": 4 }, "end": { - "line": 191, - "column": 32 + "line": 151, + "column": 47 } }, - "left": { - "type": "BinaryExpression", - "start": 4906, - "end": 4915, + "callee": { + "type": "MemberExpression", + "start": 3936, + "end": 3951, "loc": { "start": { - "line": 191, - "column": 11 + "line": 151, + "column": 4 }, "end": { - "line": 191, - "column": 20 + "line": 151, + "column": 19 } }, - "left": { - "type": "MemberExpression", - "start": 4906, - "end": 4909, + "object": { + "type": "Identifier", + "start": 3936, + "end": 3945, "loc": { "start": { - "line": 191, - "column": 11 + "line": 151, + "column": 4 }, "end": { - "line": 191, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 4906, - "end": 4907, - "loc": { - "start": { - "line": 191, - "column": 11 - }, - "end": { - "line": 191, - "column": 12 - }, - "identifierName": "A" + "line": 151, + "column": 13 }, - "name": "A" + "identifierName": "currWebGL" }, - "property": { - "type": "Identifier", - "start": 4908, - "end": 4909, - "loc": { - "start": { - "line": 191, - "column": 13 - }, - "end": { - "line": 191, - "column": 14 - }, - "identifierName": "x" + "name": "currWebGL" + }, + "property": { + "type": "Identifier", + "start": 3946, + "end": 3951, + "loc": { + "start": { + "line": 151, + "column": 14 }, - "name": "x" + "end": { + "line": 151, + "column": 19 + }, + "identifierName": "clear" }, - "computed": false + "name": "clear" }, - "operator": "*", - "right": { + "computed": false + }, + "arguments": [ + { "type": "MemberExpression", - "start": 4912, - "end": 4915, + "start": 3952, + "end": 3978, "loc": { "start": { - "line": 191, - "column": 17 + "line": 151, + "column": 20 }, "end": { - "line": 191, - "column": 20 + "line": 151, + "column": 46 } }, "object": { "type": "Identifier", - "start": 4912, - "end": 4913, + "start": 3952, + "end": 3961, "loc": { "start": { - "line": 191, - "column": 17 + "line": 151, + "column": 20 }, "end": { - "line": 191, - "column": 18 + "line": 151, + "column": 29 }, - "identifierName": "B" + "identifierName": "currWebGL" }, - "name": "B" + "name": "currWebGL" }, "property": { "type": "Identifier", - "start": 4914, - "end": 4915, + "start": 3962, + "end": 3978, "loc": { "start": { - "line": 191, - "column": 19 + "line": 151, + "column": 30 }, "end": { - "line": 191, - "column": 20 + "line": 151, + "column": 46 }, - "identifierName": "x" + "identifierName": "COLOR_BUFFER_BIT" }, - "name": "x" + "name": "COLOR_BUFFER_BIT" }, "computed": false } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 3986, + "end": 4032, + "loc": { + "start": { + "line": 153, + "column": 4 }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 4918, - "end": 4927, + "end": { + "line": 153, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 3986, + "end": 4031, + "loc": { + "start": { + "line": 153, + "column": 4 + }, + "end": { + "line": 153, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3986, + "end": 4008, "loc": { "start": { - "line": 191, - "column": 23 + "line": 153, + "column": 4 }, "end": { - "line": 191, - "column": 32 + "line": 153, + "column": 26 } }, - "left": { - "type": "MemberExpression", - "start": 4918, - "end": 4921, + "object": { + "type": "Identifier", + "start": 3986, + "end": 3997, "loc": { "start": { - "line": 191, - "column": 23 + "line": 153, + "column": 4 }, "end": { - "line": 191, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 4918, - "end": 4919, - "loc": { - "start": { - "line": 191, - "column": 23 - }, - "end": { - "line": 191, - "column": 24 - }, - "identifierName": "A" + "line": 153, + "column": 15 }, - "name": "A" + "identifierName": "MatrixStack" }, - "property": { - "type": "Identifier", - "start": 4920, - "end": 4921, - "loc": { - "start": { - "line": 191, - "column": 25 - }, - "end": { - "line": 191, - "column": 26 - }, - "identifierName": "y" + "name": "MatrixStack" + }, + "property": { + "type": "Identifier", + "start": 3998, + "end": 4008, + "loc": { + "start": { + "line": 153, + "column": 16 }, - "name": "y" + "end": { + "line": 153, + "column": 26 + }, + "identifierName": "multMatrix" }, - "computed": false + "name": "multMatrix" }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 4924, - "end": 4927, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 4009, + "end": 4030, "loc": { "start": { - "line": 191, - "column": 29 + "line": 153, + "column": 27 }, "end": { - "line": 191, - "column": 32 + "line": 153, + "column": 48 } }, - "object": { - "type": "Identifier", - "start": 4924, - "end": 4925, + "callee": { + "type": "MemberExpression", + "start": 4009, + "end": 4028, "loc": { "start": { - "line": 191, - "column": 29 + "line": 153, + "column": 27 }, "end": { - "line": 191, - "column": 30 - }, - "identifierName": "B" + "line": 153, + "column": 46 + } }, - "name": "B" - }, - "property": { - "type": "Identifier", - "start": 4926, - "end": 4927, - "loc": { - "start": { - "line": 191, - "column": 31 + "object": { + "type": "Identifier", + "start": 4009, + "end": 4019, + "loc": { + "start": { + "line": 153, + "column": 27 + }, + "end": { + "line": 153, + "column": 37 + }, + "identifierName": "projMatrix" }, - "end": { - "line": 191, - "column": 32 + "name": "projMatrix" + }, + "property": { + "type": "Identifier", + "start": 4020, + "end": 4028, + "loc": { + "start": { + "line": 153, + "column": 38 + }, + "end": { + "line": 153, + "column": 46 + }, + "identifierName": "getArray" }, - "identifierName": "y" + "name": "getArray" }, - "name": "y" + "computed": false }, - "computed": false + "arguments": [] } - } - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "\nfunction transformRange(center, transform, range)\n{\n let a = {\n x: transform.x - center.x,\n y: transform.y - center.y\n }\n let r = Math.sqrt(Math.pow(a.x,2) + Math.pow(a.y,2));\n if (r > range) {\n a = {\n x: a.x / r * range + center.x,\n y: a.y / r * range + center.y\n };\n return a;\n } else {\n return transform;\n }\n}\n", - "start": 4474, - "end": 4874, - "loc": { - "start": { - "line": 170, - "column": 0 - }, - "end": { - "line": 188, - "column": 2 + ] } - } - } - ] - }, - { - "type": "FunctionDeclaration", - "start": 4932, - "end": 5065, - "loc": { - "start": { - "line": 194, - "column": 0 - }, - "end": { - "line": 201, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 4941, - "end": 4950, - "loc": { - "start": { - "line": 194, - "column": 9 - }, - "end": { - "line": 194, - "column": 18 - }, - "identifierName": "normalize" - }, - "name": "normalize" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4951, - "end": 4952, - "loc": { - "start": { - "line": 194, - "column": 19 - }, - "end": { - "line": 194, - "column": 20 - }, - "identifierName": "x" - }, - "name": "x" - }, - { - "type": "Identifier", - "start": 4953, - "end": 4954, - "loc": { - "start": { - "line": 194, - "column": 21 - }, - "end": { - "line": 194, - "column": 22 - }, - "identifierName": "y" - }, - "name": "y" - } - ], - "body": { - "type": "BlockStatement", - "start": 4956, - "end": 5065, - "loc": { - "start": { - "line": 195, - "column": 0 }, - "end": { - "line": 201, - "column": 1 - } - }, - "body": [ { - "type": "VariableDeclaration", - "start": 4962, - "end": 4999, + "type": "ExpressionStatement", + "start": 4037, + "end": 4083, "loc": { "start": { - "line": 196, + "line": 154, "column": 4 }, "end": { - "line": 196, - "column": 41 + "line": 154, + "column": 50 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4966, - "end": 4999, + "expression": { + "type": "CallExpression", + "start": 4037, + "end": 4082, + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4037, + "end": 4059, "loc": { "start": { - "line": 196, - "column": 8 + "line": 154, + "column": 4 }, "end": { - "line": 196, - "column": 41 + "line": 154, + "column": 26 } }, - "id": { + "object": { "type": "Identifier", - "start": 4966, - "end": 4972, + "start": 4037, + "end": 4048, "loc": { "start": { - "line": 196, - "column": 8 + "line": 154, + "column": 4 }, "end": { - "line": 196, - "column": 14 + "line": 154, + "column": 15 }, - "identifierName": "length" + "identifierName": "MatrixStack" }, - "name": "length" + "name": "MatrixStack" }, - "init": { + "property": { + "type": "Identifier", + "start": 4049, + "end": 4059, + "loc": { + "start": { + "line": 154, + "column": 16 + }, + "end": { + "line": 154, + "column": 26 + }, + "identifierName": "multMatrix" + }, + "name": "multMatrix" + }, + "computed": false + }, + "arguments": [ + { "type": "CallExpression", - "start": 4975, - "end": 4999, + "start": 4060, + "end": 4081, "loc": { "start": { - "line": 196, - "column": 17 + "line": 154, + "column": 27 }, "end": { - "line": 196, - "column": 41 + "line": 154, + "column": 48 } }, "callee": { "type": "MemberExpression", - "start": 4975, - "end": 4984, + "start": 4060, + "end": 4079, "loc": { "start": { - "line": 196, - "column": 17 + "line": 154, + "column": 27 }, "end": { - "line": 196, - "column": 26 + "line": 154, + "column": 46 } }, "object": { "type": "Identifier", - "start": 4975, - "end": 4979, + "start": 4060, + "end": 4070, "loc": { "start": { - "line": 196, - "column": 17 + "line": 154, + "column": 27 }, "end": { - "line": 196, - "column": 21 + "line": 154, + "column": 37 }, - "identifierName": "Math" + "identifierName": "viewMatrix" }, - "name": "Math" + "name": "viewMatrix" }, "property": { "type": "Identifier", - "start": 4980, - "end": 4984, + "start": 4071, + "end": 4079, "loc": { "start": { - "line": 196, - "column": 22 + "line": 154, + "column": 38 }, "end": { - "line": 196, - "column": 26 + "line": 154, + "column": 46 }, - "identifierName": "sqrt" + "identifierName": "getArray" }, - "name": "sqrt" + "name": "getArray" }, "computed": false }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 4985, - "end": 4998, - "loc": { - "start": { - "line": 196, - "column": 27 - }, - "end": { - "line": 196, - "column": 40 - } - }, - "left": { - "type": "BinaryExpression", - "start": 4985, - "end": 4990, - "loc": { - "start": { - "line": 196, - "column": 27 - }, - "end": { - "line": 196, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 4985, - "end": 4986, - "loc": { - "start": { - "line": 196, - "column": 27 - }, - "end": { - "line": 196, - "column": 28 - }, - "identifierName": "x" - }, - "name": "x" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 4989, - "end": 4990, - "loc": { - "start": { - "line": 196, - "column": 31 - }, - "end": { - "line": 196, - "column": 32 - }, - "identifierName": "x" - }, - "name": "x" - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 4993, - "end": 4998, - "loc": { - "start": { - "line": 196, - "column": 35 - }, - "end": { - "line": 196, - "column": 40 - } - }, - "left": { - "type": "Identifier", - "start": 4993, - "end": 4994, - "loc": { - "start": { - "line": 196, - "column": 35 - }, - "end": { - "line": 196, - "column": 36 - }, - "identifierName": "y" - }, - "name": "y" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 4997, - "end": 4998, - "loc": { - "start": { - "line": 196, - "column": 39 - }, - "end": { - "line": 196, - "column": 40 - }, - "identifierName": "y" - }, - "name": "y" - } - } - } - ] + "arguments": [] } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 4088, + "end": 4107, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, + "column": 23 } - ], - "kind": "let" + }, + "expression": { + "type": "CallExpression", + "start": 4088, + "end": 4106, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4088, + "end": 4104, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 4088, + "end": 4099, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, + "column": 15 + }, + "identifierName": "MatrixStack" + }, + "name": "MatrixStack" + }, + "property": { + "type": "Identifier", + "start": 4100, + "end": 4104, + "loc": { + "start": { + "line": 155, + "column": 16 + }, + "end": { + "line": 155, + "column": 20 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [] + } }, { - "type": "ReturnStatement", - "start": 5004, - "end": 5063, + "type": "ForStatement", + "start": 4113, + "end": 4384, "loc": { "start": { - "line": 197, + "line": 157, "column": 4 }, "end": { - "line": 200, + "line": 168, "column": 5 } }, - "argument": { - "type": "ObjectExpression", - "start": 5011, - "end": 5063, + "init": { + "type": "VariableDeclaration", + "start": 4118, + "end": 4127, "loc": { "start": { - "line": 197, - "column": 11 + "line": 157, + "column": 9 }, "end": { - "line": 200, - "column": 5 + "line": 157, + "column": 18 } }, - "properties": [ + "declarations": [ { - "type": "ObjectProperty", - "start": 5021, - "end": 5034, + "type": "VariableDeclarator", + "start": 4122, + "end": 4127, "loc": { "start": { - "line": 198, - "column": 8 + "line": 157, + "column": 13 }, "end": { - "line": 198, - "column": 21 + "line": 157, + "column": 18 } }, - "method": false, - "shorthand": false, - "computed": false, - "key": { + "id": { "type": "Identifier", - "start": 5021, - "end": 5022, + "start": 4122, + "end": 4123, "loc": { "start": { - "line": 198, - "column": 8 + "line": 157, + "column": 13 }, "end": { - "line": 198, - "column": 9 + "line": 157, + "column": 14 }, - "identifierName": "x" + "identifierName": "i" }, - "name": "x" + "name": "i" }, - "value": { - "type": "BinaryExpression", - "start": 5024, - "end": 5034, + "init": { + "type": "NumericLiteral", + "start": 4126, + "end": 4127, "loc": { "start": { - "line": 198, - "column": 11 + "line": 157, + "column": 17 }, "end": { - "line": 198, - "column": 21 + "line": 157, + "column": 18 } }, - "left": { - "type": "Identifier", - "start": 5024, - "end": 5025, - "loc": { - "start": { - "line": 198, - "column": 11 - }, - "end": { - "line": 198, - "column": 12 - }, - "identifierName": "x" - }, - "name": "x" + "extra": { + "rawValue": 0, + "raw": "0" }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 5028, - "end": 5034, - "loc": { - "start": { - "line": 198, - "column": 15 - }, - "end": { - "line": 198, - "column": 21 - }, - "identifierName": "length" - }, - "name": "length" - } + "value": 0 } + } + ], + "kind": "let" + }, + "test": { + "type": "BinaryExpression", + "start": 4129, + "end": 4154, + "loc": { + "start": { + "line": 157, + "column": 20 }, - { - "type": "ObjectProperty", - "start": 5044, - "end": 5057, + "end": { + "line": 157, + "column": 45 + } + }, + "left": { + "type": "Identifier", + "start": 4129, + "end": 4130, + "loc": { + "start": { + "line": 157, + "column": 20 + }, + "end": { + "line": 157, + "column": 21 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "CallExpression", + "start": 4133, + "end": 4154, + "loc": { + "start": { + "line": 157, + "column": 24 + }, + "end": { + "line": 157, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4133, + "end": 4152, "loc": { "start": { - "line": 199, - "column": 8 + "line": 157, + "column": 24 }, "end": { - "line": 199, - "column": 21 + "line": 157, + "column": 43 } }, - "method": false, - "shorthand": false, - "computed": false, - "key": { + "object": { "type": "Identifier", - "start": 5044, - "end": 5045, + "start": 4133, + "end": 4142, "loc": { "start": { - "line": 199, - "column": 8 + "line": 157, + "column": 24 }, "end": { - "line": 199, - "column": 9 + "line": 157, + "column": 33 }, - "identifierName": "y" + "identifierName": "live2DMgr" }, - "name": "y" + "name": "live2DMgr" }, - "value": { + "property": { + "type": "Identifier", + "start": 4143, + "end": 4152, + "loc": { + "start": { + "line": 157, + "column": 34 + }, + "end": { + "line": 157, + "column": 43 + }, + "identifierName": "numModels" + }, + "name": "numModels" + }, + "computed": false + }, + "arguments": [] + } + }, + "update": { + "type": "UpdateExpression", + "start": 4156, + "end": 4159, + "loc": { + "start": { + "line": 157, + "column": 47 + }, + "end": { + "line": 157, + "column": 50 + } + }, + "operator": "++", + "prefix": false, + "argument": { + "type": "Identifier", + "start": 4156, + "end": 4157, + "loc": { + "start": { + "line": 157, + "column": 47 + }, + "end": { + "line": 157, + "column": 48 + }, + "identifierName": "i" + }, + "name": "i" + } + }, + "body": { + "type": "BlockStatement", + "start": 4165, + "end": 4384, + "loc": { + "start": { + "line": 158, + "column": 4 + }, + "end": { + "line": 168, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 4175, + "end": 4209, + "loc": { + "start": { + "line": 159, + "column": 8 + }, + "end": { + "line": 159, + "column": 42 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4179, + "end": 4208, + "loc": { + "start": { + "line": 159, + "column": 12 + }, + "end": { + "line": 159, + "column": 41 + } + }, + "id": { + "type": "Identifier", + "start": 4179, + "end": 4184, + "loc": { + "start": { + "line": 159, + "column": 12 + }, + "end": { + "line": 159, + "column": 17 + }, + "identifierName": "model" + }, + "name": "model" + }, + "init": { + "type": "CallExpression", + "start": 4187, + "end": 4208, + "loc": { + "start": { + "line": 159, + "column": 20 + }, + "end": { + "line": 159, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4187, + "end": 4205, + "loc": { + "start": { + "line": 159, + "column": 20 + }, + "end": { + "line": 159, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 4187, + "end": 4196, + "loc": { + "start": { + "line": 159, + "column": 20 + }, + "end": { + "line": 159, + "column": 29 + }, + "identifierName": "live2DMgr" + }, + "name": "live2DMgr" + }, + "property": { + "type": "Identifier", + "start": 4197, + "end": 4205, + "loc": { + "start": { + "line": 159, + "column": 30 + }, + "end": { + "line": 159, + "column": 38 + }, + "identifierName": "getModel" + }, + "name": "getModel" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4206, + "end": 4207, + "loc": { + "start": { + "line": 159, + "column": 39 + }, + "end": { + "line": 159, + "column": 40 + }, + "identifierName": "i" + }, + "name": "i" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 4219, + "end": 4244, + "loc": { + "start": { + "line": 161, + "column": 8 + }, + "end": { + "line": 161, + "column": 33 + } + }, + "test": { "type": "BinaryExpression", - "start": 5047, - "end": 5057, + "start": 4222, + "end": 4235, "loc": { "start": { - "line": 199, + "line": 161, "column": 11 }, "end": { - "line": 199, - "column": 21 + "line": 161, + "column": 24 } }, "left": { "type": "Identifier", - "start": 5047, - "end": 5048, + "start": 4222, + "end": 4227, "loc": { "start": { - "line": 199, + "line": 161, "column": 11 }, "end": { - "line": 199, - "column": 12 + "line": 161, + "column": 16 }, - "identifierName": "y" + "identifierName": "model" }, - "name": "y" + "name": "model" }, - "operator": "/", + "operator": "==", "right": { - "type": "Identifier", - "start": 5051, - "end": 5057, + "type": "NullLiteral", + "start": 4231, + "end": 4235, "loc": { "start": { - "line": 199, - "column": 15 + "line": 161, + "column": 20 }, "end": { - "line": 199, - "column": 21 - }, - "identifierName": "length" - }, - "name": "length" + "line": 161, + "column": 24 + } + } } - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "FunctionDeclaration", - "start": 5067, - "end": 7086, - "loc": { - "start": { - "line": 203, - "column": 0 - }, - "end": { - "line": 265, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 5076, - "end": 5089, - "loc": { - "start": { - "line": 203, - "column": 9 - }, - "end": { - "line": 203, - "column": 22 - }, - "identifierName": "transformRect" - }, - "name": "transformRect" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5090, - "end": 5096, - "loc": { - "start": { - "line": 203, - "column": 23 - }, - "end": { - "line": 203, - "column": 29 - }, - "identifierName": "center" - }, - "name": "center" - }, - { - "type": "Identifier", - "start": 5098, - "end": 5107, - "loc": { - "start": { - "line": 203, - "column": 31 - }, - "end": { - "line": 203, - "column": 40 - }, - "identifierName": "transform" - }, - "name": "transform" - }, - { - "type": "Identifier", - "start": 5109, - "end": 5113, - "loc": { - "start": { - "line": 203, - "column": 42 - }, - "end": { - "line": 203, - "column": 46 - }, - "identifierName": "rect" - }, - "name": "rect" - } - ], - "body": { - "type": "BlockStatement", - "start": 5115, - "end": 7086, - "loc": { - "start": { - "line": 204, - "column": 0 - }, - "end": { - "line": 265, - "column": 1 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 5121, - "end": 5281, - "loc": { - "start": { - "line": 205, - "column": 4 - }, - "end": { - "line": 206, - "column": 76 - } - }, - "test": { - "type": "LogicalExpression", - "start": 5125, - "end": 5262, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 206, - "column": 57 - } - }, - "left": { - "type": "LogicalExpression", - "start": 5125, - "end": 5236, - "loc": { - "start": { - "line": 205, - "column": 8 }, - "end": { - "line": 206, - "column": 31 - } + "consequent": { + "type": "ReturnStatement", + "start": 4237, + "end": 4244, + "loc": { + "start": { + "line": 161, + "column": 26 + }, + "end": { + "line": 161, + "column": 33 + } + }, + "argument": null + }, + "alternate": null }, - "left": { - "type": "LogicalExpression", - "start": 5125, - "end": 5201, + { + "type": "IfStatement", + "start": 4254, + "end": 4378, "loc": { "start": { - "line": 205, + "line": 163, "column": 8 }, "end": { - "line": 205, - "column": 84 + "line": 167, + "column": 9 } }, - "left": { - "type": "BinaryExpression", - "start": 5125, - "end": 5161, + "test": { + "type": "LogicalExpression", + "start": 4258, + "end": 4294, "loc": { "start": { - "line": 205, - "column": 8 + "line": 163, + "column": 12 }, "end": { - "line": 205, - "column": 44 + "line": 163, + "column": 48 } }, "left": { "type": "MemberExpression", - "start": 5125, - "end": 5136, + "start": 4258, + "end": 4275, "loc": { "start": { - "line": 205, - "column": 8 + "line": 163, + "column": 12 }, "end": { - "line": 205, - "column": 19 + "line": 163, + "column": 29 } }, "object": { "type": "Identifier", - "start": 5125, - "end": 5134, + "start": 4258, + "end": 4263, "loc": { "start": { - "line": 205, - "column": 8 + "line": 163, + "column": 12 }, "end": { - "line": 205, + "line": 163, "column": 17 }, - "identifierName": "transform" + "identifierName": "model" }, - "name": "transform" + "name": "model" }, "property": { "type": "Identifier", - "start": 5135, - "end": 5136, + "start": 4264, + "end": 4275, "loc": { "start": { - "line": 205, + "line": 163, "column": 18 }, "end": { - "line": 205, - "column": 19 + "line": 163, + "column": 29 }, - "identifierName": "x" + "identifierName": "initialized" }, - "name": "x" + "name": "initialized" }, "computed": false }, - "operator": "<", + "operator": "&&", "right": { - "type": "BinaryExpression", - "start": 5139, - "end": 5161, + "type": "UnaryExpression", + "start": 4279, + "end": 4294, "loc": { "start": { - "line": 205, - "column": 22 + "line": 163, + "column": 33 }, "end": { - "line": 205, - "column": 44 + "line": 163, + "column": 48 } }, - "left": { - "type": "MemberExpression", - "start": 5139, - "end": 5148, - "loc": { - "start": { - "line": 205, - "column": 22 - }, - "end": { - "line": 205, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 5139, - "end": 5143, - "loc": { - "start": { - "line": 205, - "column": 22 - }, - "end": { - "line": 205, - "column": 26 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5144, - "end": 5148, - "loc": { - "start": { - "line": 205, - "column": 27 - }, - "end": { - "line": 205, - "column": 31 - }, - "identifierName": "left" - }, - "name": "left" - }, - "computed": false - }, - "operator": "+", - "right": { + "operator": "!", + "prefix": true, + "argument": { "type": "MemberExpression", - "start": 5151, - "end": 5161, + "start": 4280, + "end": 4294, "loc": { "start": { - "line": 205, + "line": 163, "column": 34 }, "end": { - "line": 205, - "column": 44 + "line": 163, + "column": 48 } }, "object": { "type": "Identifier", - "start": 5151, - "end": 5155, + "start": 4280, + "end": 4285, "loc": { "start": { - "line": 205, + "line": 163, "column": 34 }, "end": { - "line": 205, - "column": 38 + "line": 163, + "column": 39 }, - "identifierName": "rect" + "identifierName": "model" }, - "name": "rect" + "name": "model" }, "property": { "type": "Identifier", - "start": 5156, - "end": 5161, + "start": 4286, + "end": 4294, "loc": { "start": { - "line": 205, - "column": 39 + "line": 163, + "column": 40 }, "end": { - "line": 205, - "column": 44 + "line": 163, + "column": 48 }, - "identifierName": "width" + "identifierName": "updating" }, - "name": "width" + "name": "updating" }, "computed": false + }, + "extra": { + "parenthesizedArgument": false } } }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 5165, - "end": 5201, + "consequent": { + "type": "BlockStatement", + "start": 4304, + "end": 4378, "loc": { "start": { - "line": 205, - "column": 48 + "line": 164, + "column": 8 }, "end": { - "line": 205, - "column": 84 + "line": 167, + "column": 9 } }, - "left": { - "type": "MemberExpression", - "start": 5165, - "end": 5176, - "loc": { - "start": { - "line": 205, - "column": 48 - }, - "end": { - "line": 205, - "column": 59 - } - }, - "object": { - "type": "Identifier", - "start": 5165, - "end": 5174, + "body": [ + { + "type": "ExpressionStatement", + "start": 4318, + "end": 4333, "loc": { "start": { - "line": 205, - "column": 48 + "line": 165, + "column": 12 }, "end": { - "line": 205, - "column": 57 - }, - "identifierName": "transform" - }, - "name": "transform" - }, - "property": { - "type": "Identifier", - "start": 5175, - "end": 5176, - "loc": { - "start": { - "line": 205, - "column": 58 - }, - "end": { - "line": 205, - "column": 59 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "<", - "right": { - "type": "BinaryExpression", - "start": 5179, - "end": 5201, - "loc": { - "start": { - "line": 205, - "column": 62 - }, - "end": { - "line": 205, - "column": 84 - } - }, - "left": { - "type": "MemberExpression", - "start": 5179, - "end": 5187, - "loc": { - "start": { - "line": 205, - "column": 62 - }, - "end": { - "line": 205, - "column": 70 + "line": 165, + "column": 27 } }, - "object": { - "type": "Identifier", - "start": 5179, - "end": 5183, + "expression": { + "type": "CallExpression", + "start": 4318, + "end": 4332, "loc": { "start": { - "line": 205, - "column": 62 + "line": 165, + "column": 12 }, "end": { - "line": 205, - "column": 66 - }, - "identifierName": "rect" + "line": 165, + "column": 26 + } }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5184, - "end": 5187, - "loc": { - "start": { - "line": 205, - "column": 67 + "callee": { + "type": "MemberExpression", + "start": 4318, + "end": 4330, + "loc": { + "start": { + "line": 165, + "column": 12 + }, + "end": { + "line": 165, + "column": 24 + } }, - "end": { - "line": 205, - "column": 70 + "object": { + "type": "Identifier", + "start": 4318, + "end": 4323, + "loc": { + "start": { + "line": 165, + "column": 12 + }, + "end": { + "line": 165, + "column": 17 + }, + "identifierName": "model" + }, + "name": "model" }, - "identifierName": "top" + "property": { + "type": "Identifier", + "start": 4324, + "end": 4330, + "loc": { + "start": { + "line": 165, + "column": 18 + }, + "end": { + "line": 165, + "column": 24 + }, + "identifierName": "update" + }, + "name": "update" + }, + "computed": false }, - "name": "top" - }, - "computed": false + "arguments": [] + } }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5190, - "end": 5201, + { + "type": "ExpressionStatement", + "start": 4346, + "end": 4368, "loc": { "start": { - "line": 205, - "column": 73 + "line": 166, + "column": 12 }, "end": { - "line": 205, - "column": 84 + "line": 166, + "column": 34 } }, - "object": { - "type": "Identifier", - "start": 5190, - "end": 5194, + "expression": { + "type": "CallExpression", + "start": 4346, + "end": 4367, "loc": { "start": { - "line": 205, - "column": 73 + "line": 166, + "column": 12 }, "end": { - "line": 205, - "column": 77 - }, - "identifierName": "rect" + "line": 166, + "column": 33 + } }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5195, - "end": 5201, - "loc": { - "start": { - "line": 205, - "column": 78 + "callee": { + "type": "MemberExpression", + "start": 4346, + "end": 4356, + "loc": { + "start": { + "line": 166, + "column": 12 + }, + "end": { + "line": 166, + "column": 22 + } }, - "end": { - "line": 205, - "column": 84 + "object": { + "type": "Identifier", + "start": 4346, + "end": 4351, + "loc": { + "start": { + "line": 166, + "column": 12 + }, + "end": { + "line": 166, + "column": 17 + }, + "identifierName": "model" + }, + "name": "model" }, - "identifierName": "height" + "property": { + "type": "Identifier", + "start": 4352, + "end": 4356, + "loc": { + "start": { + "line": 166, + "column": 18 + }, + "end": { + "line": 166, + "column": 22 + }, + "identifierName": "draw" + }, + "name": "draw" + }, + "computed": false }, - "name": "height" - }, - "computed": false - } - } - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 5213, - "end": 5236, - "loc": { - "start": { - "line": 206, - "column": 8 - }, - "end": { - "line": 206, - "column": 31 - } - }, - "left": { - "type": "MemberExpression", - "start": 5213, - "end": 5224, - "loc": { - "start": { - "line": 206, - "column": 8 - }, - "end": { - "line": 206, - "column": 19 + "arguments": [ + { + "type": "Identifier", + "start": 4357, + "end": 4366, + "loc": { + "start": { + "line": 166, + "column": 23 + }, + "end": { + "line": 166, + "column": 32 + }, + "identifierName": "currWebGL" + }, + "name": "currWebGL" + } + ] + } } - }, - "object": { - "type": "Identifier", - "start": 5213, - "end": 5222, - "loc": { - "start": { - "line": 206, - "column": 8 - }, - "end": { - "line": 206, - "column": 17 - }, - "identifierName": "transform" - }, - "name": "transform" - }, - "property": { - "type": "Identifier", - "start": 5223, - "end": 5224, - "loc": { - "start": { - "line": 206, - "column": 18 - }, - "end": { - "line": 206, - "column": 19 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false + ], + "directives": [] }, - "operator": ">", - "right": { - "type": "MemberExpression", - "start": 5227, - "end": 5236, - "loc": { - "start": { - "line": 206, - "column": 22 - }, - "end": { - "line": 206, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 5227, - "end": 5231, - "loc": { - "start": { - "line": 206, - "column": 22 - }, - "end": { - "line": 206, - "column": 26 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5232, - "end": 5236, - "loc": { - "start": { - "line": 206, - "column": 27 - }, - "end": { - "line": 206, - "column": 31 - }, - "identifierName": "left" - }, - "name": "left" - }, - "computed": false - } + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ExpressionStatement", + "start": 4389, + "end": 4407, + "loc": { + "start": { + "line": 169, + "column": 4 + }, + "end": { + "line": 169, + "column": 22 + } + }, + "expression": { + "type": "CallExpression", + "start": 4389, + "end": 4406, + "loc": { + "start": { + "line": 169, + "column": 4 + }, + "end": { + "line": 169, + "column": 21 } }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 5240, - "end": 5262, + "callee": { + "type": "MemberExpression", + "start": 4389, + "end": 4404, "loc": { "start": { - "line": 206, - "column": 35 + "line": 169, + "column": 4 }, "end": { - "line": 206, - "column": 57 + "line": 169, + "column": 19 } }, - "left": { - "type": "MemberExpression", - "start": 5240, - "end": 5251, + "object": { + "type": "Identifier", + "start": 4389, + "end": 4400, "loc": { "start": { - "line": 206, - "column": 35 + "line": 169, + "column": 4 }, "end": { - "line": 206, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 5240, - "end": 5249, - "loc": { - "start": { - "line": 206, - "column": 35 - }, - "end": { - "line": 206, - "column": 44 - }, - "identifierName": "transform" - }, - "name": "transform" - }, - "property": { - "type": "Identifier", - "start": 5250, - "end": 5251, - "loc": { - "start": { - "line": 206, - "column": 45 - }, - "end": { - "line": 206, - "column": 46 - }, - "identifierName": "y" + "line": 169, + "column": 15 }, - "name": "y" + "identifierName": "MatrixStack" }, - "computed": false + "name": "MatrixStack" }, - "operator": ">", - "right": { - "type": "MemberExpression", - "start": 5254, - "end": 5262, + "property": { + "type": "Identifier", + "start": 4401, + "end": 4404, "loc": { "start": { - "line": 206, - "column": 49 + "line": 169, + "column": 16 }, "end": { - "line": 206, - "column": 57 - } - }, - "object": { - "type": "Identifier", - "start": 5254, - "end": 5258, - "loc": { - "start": { - "line": 206, - "column": 49 - }, - "end": { - "line": 206, - "column": 53 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5259, - "end": 5262, - "loc": { - "start": { - "line": 206, - "column": 54 - }, - "end": { - "line": 206, - "column": 57 - }, - "identifierName": "top" + "line": 169, + "column": 19 }, - "name": "top" + "identifierName": "pop" }, - "computed": false - } - } - }, - "consequent": { - "type": "ReturnStatement", - "start": 5264, - "end": 5281, - "loc": { - "start": { - "line": 206, - "column": 59 + "name": "pop" }, - "end": { - "line": 206, - "column": 76 - } + "computed": false }, - "argument": { - "type": "Identifier", - "start": 5271, - "end": 5280, - "loc": { - "start": { - "line": 206, - "column": 66 - }, - "end": { - "line": 206, - "column": 75 - }, - "identifierName": "transform" - }, - "name": "transform" - } + "arguments": [] + } + } + ], + "directives": [] + } + }, + { + "type": "FunctionDeclaration", + "start": 4411, + "end": 4576, + "loc": { + "start": { + "line": 172, + "column": 0 + }, + "end": { + "line": 177, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 4420, + "end": 4431, + "loc": { + "start": { + "line": 172, + "column": 9 + }, + "end": { + "line": 172, + "column": 20 + }, + "identifierName": "changeModel" + }, + "name": "changeModel" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4432, + "end": 4440, + "loc": { + "start": { + "line": 172, + "column": 21 }, - "alternate": null + "end": { + "line": 172, + "column": 29 + }, + "identifierName": "modelurl" + }, + "name": "modelurl" + } + ], + "body": { + "type": "BlockStatement", + "start": 4450, + "end": 4576, + "loc": { + "start": { + "line": 173, + "column": 0 }, + "end": { + "line": 177, + "column": 1 + } + }, + "body": [ { - "type": "VariableDeclaration", - "start": 5286, - "end": 5321, + "type": "ExpressionStatement", + "start": 4456, + "end": 4483, "loc": { "start": { - "line": 207, + "line": 174, "column": 4 }, "end": { - "line": 207, - "column": 39 + "line": 174, + "column": 31 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5290, - "end": 5320, + "expression": { + "type": "AssignmentExpression", + "start": 4456, + "end": 4482, + "loc": { + "start": { + "line": 174, + "column": 4 + }, + "end": { + "line": 174, + "column": 30 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4456, + "end": 4475, "loc": { "start": { - "line": 207, - "column": 8 + "line": 174, + "column": 4 }, "end": { - "line": 207, - "column": 38 + "line": 174, + "column": 23 } }, - "id": { + "object": { "type": "Identifier", - "start": 5290, - "end": 5295, + "start": 4456, + "end": 4465, "loc": { "start": { - "line": 207, - "column": 8 + "line": 174, + "column": 4 }, "end": { - "line": 207, + "line": 174, "column": 13 }, - "identifierName": "Len_X" + "identifierName": "live2DMgr" }, - "name": "Len_X" + "name": "live2DMgr", + "leadingComments": null }, - "init": { - "type": "BinaryExpression", - "start": 5298, - "end": 5320, + "property": { + "type": "Identifier", + "start": 4466, + "end": 4475, "loc": { "start": { - "line": 207, - "column": 16 + "line": 174, + "column": 14 }, "end": { - "line": 207, - "column": 38 - } - }, - "left": { - "type": "MemberExpression", - "start": 5298, - "end": 5306, - "loc": { - "start": { - "line": 207, - "column": 16 - }, - "end": { - "line": 207, - "column": 24 - } + "line": 174, + "column": 23 }, - "object": { - "type": "Identifier", - "start": 5298, - "end": 5304, - "loc": { - "start": { - "line": 207, - "column": 16 - }, - "end": { - "line": 207, - "column": 22 - }, - "identifierName": "center" - }, - "name": "center" + "identifierName": "reloadFlg" + }, + "name": "reloadFlg" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "BooleanLiteral", + "start": 4478, + "end": 4482, + "loc": { + "start": { + "line": 174, + "column": 26 + }, + "end": { + "line": 174, + "column": 30 + } + }, + "value": true + }, + "leadingComments": null + }, + "leadingComments": null + }, + { + "type": "ExpressionStatement", + "start": 4488, + "end": 4506, + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 22 + } + }, + "expression": { + "type": "UpdateExpression", + "start": 4488, + "end": 4505, + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 21 + } + }, + "operator": "++", + "prefix": false, + "argument": { + "type": "MemberExpression", + "start": 4488, + "end": 4503, + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 4488, + "end": 4497, + "loc": { + "start": { + "line": 175, + "column": 4 }, - "property": { - "type": "Identifier", - "start": 5305, - "end": 5306, - "loc": { - "start": { - "line": 207, - "column": 23 - }, - "end": { - "line": 207, - "column": 24 - }, - "identifierName": "x" - }, - "name": "x" + "end": { + "line": 175, + "column": 13 }, - "computed": false + "identifierName": "live2DMgr" }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 5309, - "end": 5320, - "loc": { - "start": { - "line": 207, - "column": 27 - }, - "end": { - "line": 207, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 5309, - "end": 5318, - "loc": { - "start": { - "line": 207, - "column": 27 - }, - "end": { - "line": 207, - "column": 36 - }, - "identifierName": "transform" - }, - "name": "transform" + "name": "live2DMgr" + }, + "property": { + "type": "Identifier", + "start": 4498, + "end": 4503, + "loc": { + "start": { + "line": 175, + "column": 14 }, - "property": { - "type": "Identifier", - "start": 5319, - "end": 5320, - "loc": { - "start": { - "line": 207, - "column": 37 - }, - "end": { - "line": 207, - "column": 38 - }, - "identifierName": "x" - }, - "name": "x" + "end": { + "line": 175, + "column": 19 }, - "computed": false + "identifierName": "count" + }, + "name": "count" + }, + "computed": false + } + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " 现在仍有多模型支持,稍后可以精简", + "start": 4507, + "end": 4526, + "loc": { + "start": { + "line": 175, + "column": 23 + }, + "end": { + "line": 175, + "column": 42 } } } - ], - "kind": "let" + ] }, { - "type": "VariableDeclaration", - "start": 5326, - "end": 5361, + "type": "ExpressionStatement", + "start": 4531, + "end": 4574, "loc": { "start": { - "line": 208, + "line": 176, "column": 4 }, "end": { - "line": 208, - "column": 39 + "line": 176, + "column": 47 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5330, - "end": 5360, + "expression": { + "type": "CallExpression", + "start": 4531, + "end": 4573, + "loc": { + "start": { + "line": 176, + "column": 4 + }, + "end": { + "line": 176, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4531, + "end": 4552, "loc": { "start": { - "line": 208, - "column": 8 + "line": 176, + "column": 4 }, "end": { - "line": 208, - "column": 38 + "line": 176, + "column": 25 } }, - "id": { + "object": { "type": "Identifier", - "start": 5330, - "end": 5335, + "start": 4531, + "end": 4540, "loc": { "start": { - "line": 208, - "column": 8 + "line": 176, + "column": 4 }, "end": { - "line": 208, + "line": 176, "column": 13 }, - "identifierName": "Len_Y" + "identifierName": "live2DMgr" }, - "name": "Len_Y" + "name": "live2DMgr", + "leadingComments": null }, - "init": { - "type": "BinaryExpression", - "start": 5338, - "end": 5360, + "property": { + "type": "Identifier", + "start": 4541, + "end": 4552, "loc": { "start": { - "line": 208, - "column": 16 + "line": 176, + "column": 14 }, "end": { - "line": 208, - "column": 38 - } - }, - "left": { - "type": "MemberExpression", - "start": 5338, - "end": 5346, - "loc": { - "start": { - "line": 208, - "column": 16 - }, - "end": { - "line": 208, - "column": 24 - } + "line": 176, + "column": 25 }, - "object": { - "type": "Identifier", - "start": 5338, - "end": 5344, - "loc": { - "start": { - "line": 208, - "column": 16 - }, - "end": { - "line": 208, - "column": 22 - }, - "identifierName": "center" - }, - "name": "center" + "identifierName": "changeModel" + }, + "name": "changeModel" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 4553, + "end": 4562, + "loc": { + "start": { + "line": 176, + "column": 26 }, - "property": { - "type": "Identifier", - "start": 5345, - "end": 5346, - "loc": { - "start": { - "line": 208, - "column": 23 - }, - "end": { - "line": 208, - "column": 24 - }, - "identifierName": "y" - }, - "name": "y" + "end": { + "line": 176, + "column": 35 }, - "computed": false + "identifierName": "currWebGL" }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 5349, - "end": 5360, - "loc": { - "start": { - "line": 208, - "column": 27 - }, - "end": { - "line": 208, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 5349, - "end": 5358, - "loc": { - "start": { - "line": 208, - "column": 27 - }, - "end": { - "line": 208, - "column": 36 - }, - "identifierName": "transform" - }, - "name": "transform" + "name": "currWebGL" + }, + { + "type": "Identifier", + "start": 4564, + "end": 4572, + "loc": { + "start": { + "line": 176, + "column": 37 }, - "property": { - "type": "Identifier", - "start": 5359, - "end": 5360, - "loc": { - "start": { - "line": 208, - "column": 37 - }, - "end": { - "line": 208, - "column": 38 - }, - "identifierName": "y" - }, - "name": "y" + "end": { + "line": 176, + "column": 45 }, - "computed": false + "identifierName": "modelurl" + }, + "name": "modelurl" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " 现在仍有多模型支持,稍后可以精简", + "start": 4507, + "end": 4526, + "loc": { + "start": { + "line": 175, + "column": 23 + }, + "end": { + "line": 175, + "column": 42 } } } - ], - "kind": "let" + ] + } + ], + "directives": [], + "leadingComments": [ + { + "type": "CommentLine", + "value": " 更换模型", + "start": 4442, + "end": 4449, + "loc": { + "start": { + "line": 172, + "column": 31 + }, + "end": { + "line": 172, + "column": 38 + } + } + } + ] + } + }, + { + "type": "FunctionDeclaration", + "start": 4578, + "end": 4649, + "loc": { + "start": { + "line": 179, + "column": 0 + }, + "end": { + "line": 181, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 4587, + "end": 4599, + "loc": { + "start": { + "line": 179, + "column": 9 + }, + "end": { + "line": 179, + "column": 21 + }, + "identifierName": "modelScaling" + }, + "name": "modelScaling" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4600, + "end": 4605, + "loc": { + "start": { + "line": 179, + "column": 22 + }, + "end": { + "line": 179, + "column": 27 + }, + "identifierName": "scale" + }, + "name": "scale" + } + ], + "body": { + "type": "BlockStatement", + "start": 4607, + "end": 4649, + "loc": { + "start": { + "line": 179, + "column": 29 }, + "end": { + "line": 181, + "column": 1 + } + }, + "body": [ { - "type": "FunctionDeclaration", - "start": 5367, - "end": 5526, + "type": "ExpressionStatement", + "start": 4611, + "end": 4647, "loc": { "start": { - "line": 210, - "column": 4 + "line": 180, + "column": 2 }, "end": { - "line": 216, - "column": 5 + "line": 180, + "column": 38 } }, - "id": { - "type": "Identifier", - "start": 5376, - "end": 5381, + "expression": { + "type": "CallExpression", + "start": 4611, + "end": 4646, "loc": { "start": { - "line": 210, - "column": 13 + "line": 180, + "column": 2 }, "end": { - "line": 210, - "column": 18 - }, - "identifierName": "angle" + "line": 180, + "column": 37 + } }, - "name": "angle" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5382, - "end": 5387, + "callee": { + "type": "MemberExpression", + "start": 4611, + "end": 4633, "loc": { "start": { - "line": 210, - "column": 19 + "line": 180, + "column": 2 }, "end": { - "line": 210, + "line": 180, "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 4611, + "end": 4621, + "loc": { + "start": { + "line": 180, + "column": 2 + }, + "end": { + "line": 180, + "column": 12 + }, + "identifierName": "viewMatrix" }, - "identifierName": "Len_X" + "name": "viewMatrix" }, - "name": "Len_X" + "property": { + "type": "Identifier", + "start": 4622, + "end": 4633, + "loc": { + "start": { + "line": 180, + "column": 13 + }, + "end": { + "line": 180, + "column": 24 + }, + "identifierName": "adjustScale" + }, + "name": "adjustScale" + }, + "computed": false }, - { - "type": "Identifier", - "start": 5389, - "end": 5394, - "loc": { - "start": { - "line": 210, - "column": 26 + "arguments": [ + { + "type": "NumericLiteral", + "start": 4634, + "end": 4635, + "loc": { + "start": { + "line": 180, + "column": 25 + }, + "end": { + "line": 180, + "column": 26 + } }, - "end": { - "line": 210, - "column": 31 + "extra": { + "rawValue": 0, + "raw": "0" }, - "identifierName": "Len_Y" - }, - "name": "Len_Y" - } - ], - "body": { - "type": "BlockStatement", - "start": 5400, - "end": 5526, - "loc": { - "start": { - "line": 211, - "column": 4 + "value": 0 }, - "end": { - "line": 216, - "column": 5 - } - }, - "body": [ { - "type": "ReturnStatement", - "start": 5410, - "end": 5520, + "type": "NumericLiteral", + "start": 4637, + "end": 4638, "loc": { "start": { - "line": 212, - "column": 8 + "line": 180, + "column": 28 }, "end": { - "line": 215, - "column": 52 + "line": 180, + "column": 29 } }, - "argument": { - "type": "BinaryExpression", - "start": 5417, - "end": 5520, - "loc": { - "start": { - "line": 212, - "column": 15 - }, - "end": { - "line": 215, - "column": 52 - } + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "Identifier", + "start": 4640, + "end": 4645, + "loc": { + "start": { + "line": 180, + "column": 31 }, - "left": { - "type": "BinaryExpression", - "start": 5417, - "end": 5510, - "loc": { - "start": { - "line": 212, - "column": 15 - }, - "end": { - "line": 215, - "column": 42 - } - }, - "left": { - "type": "CallExpression", - "start": 5417, - "end": 5504, - "loc": { - "start": { - "line": 212, - "column": 15 - }, - "end": { - "line": 215, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5417, - "end": 5426, - "loc": { - "start": { - "line": 212, - "column": 15 - }, - "end": { - "line": 212, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 5417, - "end": 5421, - "loc": { - "start": { - "line": 212, - "column": 15 - }, - "end": { - "line": 212, - "column": 19 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 5422, - "end": 5426, - "loc": { - "start": { - "line": 212, - "column": 20 - }, - "end": { - "line": 212, - "column": 24 - }, - "identifierName": "acos" - }, - "name": "acos" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 5427, - "end": 5503, - "loc": { - "start": { - "line": 212, - "column": 25 - }, - "end": { - "line": 215, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 5427, - "end": 5430, - "loc": { - "start": { - "line": 212, - "column": 25 - }, - "end": { - "line": 212, - "column": 28 - }, - "identifierName": "dot" - }, - "name": "dot" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 5431, - "end": 5477, - "loc": { - "start": { - "line": 212, - "column": 29 - }, - "end": { - "line": 215, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 5445, - "end": 5449, - "loc": { - "start": { - "line": 213, - "column": 12 - }, - "end": { - "line": 213, - "column": 16 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5445, - "end": 5446, - "loc": { - "start": { - "line": 213, - "column": 12 - }, - "end": { - "line": 213, - "column": 13 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "NumericLiteral", - "start": 5448, - "end": 5449, - "loc": { - "start": { - "line": 213, - "column": 15 - }, - "end": { - "line": 213, - "column": 16 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - { - "type": "ObjectProperty", - "start": 5463, - "end": 5467, - "loc": { - "start": { - "line": 214, - "column": 12 - }, - "end": { - "line": 214, - "column": 16 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5463, - "end": 5464, - "loc": { - "start": { - "line": 214, - "column": 12 - }, - "end": { - "line": 214, - "column": 13 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "NumericLiteral", - "start": 5466, - "end": 5467, - "loc": { - "start": { - "line": 214, - "column": 15 - }, - "end": { - "line": 214, - "column": 16 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ] - }, - { - "type": "CallExpression", - "start": 5479, - "end": 5502, - "loc": { - "start": { - "line": 215, - "column": 11 - }, - "end": { - "line": 215, - "column": 34 - } - }, - "callee": { - "type": "Identifier", - "start": 5479, - "end": 5488, - "loc": { - "start": { - "line": 215, - "column": 11 - }, - "end": { - "line": 215, - "column": 20 - }, - "identifierName": "normalize" - }, - "name": "normalize" - }, - "arguments": [ - { - "type": "Identifier", - "start": 5489, - "end": 5494, - "loc": { - "start": { - "line": 215, - "column": 21 - }, - "end": { - "line": 215, - "column": 26 - }, - "identifierName": "Len_X" - }, - "name": "Len_X" - }, - { - "type": "Identifier", - "start": 5496, - "end": 5501, - "loc": { - "start": { - "line": 215, - "column": 28 - }, - "end": { - "line": 215, - "column": 33 - }, - "identifierName": "Len_Y" - }, - "name": "Len_Y" - } - ] - } - ] - } - ] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 5507, - "end": 5510, - "loc": { - "start": { - "line": 215, - "column": 39 - }, - "end": { - "line": 215, - "column": 42 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - } + "end": { + "line": 180, + "column": 36 }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 5513, - "end": 5520, - "loc": { - "start": { - "line": 215, - "column": 45 - }, - "end": { - "line": 215, - "column": 52 - } - }, - "object": { - "type": "Identifier", - "start": 5513, - "end": 5517, - "loc": { - "start": { - "line": 215, - "column": 45 - }, - "end": { - "line": 215, - "column": 49 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 5518, - "end": 5520, - "loc": { - "start": { - "line": 215, - "column": 50 - }, - "end": { - "line": 215, - "column": 52 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - } - } + "identifierName": "scale" + }, + "name": "scale" } - ], - "directives": [] + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "\nfunction transformRange(center, transform, range)\n{\n let a = {\n x: transform.x - center.x,\n y: transform.y - center.y\n }\n let r = Math.sqrt(Math.pow(a.x,2) + Math.pow(a.y,2));\n if (r > range) {\n a = {\n x: a.x / r * range + center.x,\n y: a.y / r * range + center.y\n };\n return a;\n } else {\n return transform;\n }\n}\n", + "start": 4650, + "end": 5050, + "loc": { + "start": { + "line": 182, + "column": 0 + }, + "end": { + "line": 200, + "column": 2 } + } + } + ] + }, + { + "type": "FunctionDeclaration", + "start": 5051, + "end": 5106, + "loc": { + "start": { + "line": 201, + "column": 0 + }, + "end": { + "line": 204, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 5060, + "end": 5063, + "loc": { + "start": { + "line": 201, + "column": 9 + }, + "end": { + "line": 201, + "column": 12 + }, + "identifierName": "dot" + }, + "name": "dot", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5064, + "end": 5065, + "loc": { + "start": { + "line": 201, + "column": 13 + }, + "end": { + "line": 201, + "column": 14 + }, + "identifierName": "A" + }, + "name": "A" + }, + { + "type": "Identifier", + "start": 5066, + "end": 5067, + "loc": { + "start": { + "line": 201, + "column": 15 + }, + "end": { + "line": 201, + "column": 16 + }, + "identifierName": "B" + }, + "name": "B" + } + ], + "body": { + "type": "BlockStatement", + "start": 5069, + "end": 5106, + "loc": { + "start": { + "line": 202, + "column": 0 }, + "end": { + "line": 204, + "column": 1 + } + }, + "body": [ { - "type": "VariableDeclaration", - "start": 5532, - "end": 5570, + "type": "ReturnStatement", + "start": 5075, + "end": 5104, "loc": { "start": { - "line": 218, + "line": 203, "column": 4 }, "end": { - "line": 218, - "column": 42 + "line": 203, + "column": 33 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5536, - "end": 5569, + "argument": { + "type": "BinaryExpression", + "start": 5082, + "end": 5103, + "loc": { + "start": { + "line": 203, + "column": 11 + }, + "end": { + "line": 203, + "column": 32 + } + }, + "left": { + "type": "BinaryExpression", + "start": 5082, + "end": 5091, "loc": { "start": { - "line": 218, - "column": 8 + "line": 203, + "column": 11 }, "end": { - "line": 218, - "column": 41 + "line": 203, + "column": 20 } }, - "id": { - "type": "Identifier", - "start": 5536, - "end": 5547, + "left": { + "type": "MemberExpression", + "start": 5082, + "end": 5085, "loc": { "start": { - "line": 218, - "column": 8 + "line": 203, + "column": 11 }, "end": { - "line": 218, - "column": 19 + "line": 203, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 5082, + "end": 5083, + "loc": { + "start": { + "line": 203, + "column": 11 + }, + "end": { + "line": 203, + "column": 12 + }, + "identifierName": "A" }, - "identifierName": "angleTarget" + "name": "A" }, - "name": "angleTarget" + "property": { + "type": "Identifier", + "start": 5084, + "end": 5085, + "loc": { + "start": { + "line": 203, + "column": 13 + }, + "end": { + "line": 203, + "column": 14 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false }, - "init": { - "type": "CallExpression", - "start": 5550, - "end": 5569, + "operator": "*", + "right": { + "type": "MemberExpression", + "start": 5088, + "end": 5091, "loc": { "start": { - "line": 218, - "column": 22 + "line": 203, + "column": 17 }, "end": { - "line": 218, - "column": 41 + "line": 203, + "column": 20 } }, - "callee": { + "object": { "type": "Identifier", - "start": 5550, - "end": 5555, + "start": 5088, + "end": 5089, "loc": { "start": { - "line": 218, - "column": 22 + "line": 203, + "column": 17 }, "end": { - "line": 218, - "column": 27 + "line": 203, + "column": 18 }, - "identifierName": "angle" + "identifierName": "B" }, - "name": "angle" + "name": "B" }, - "arguments": [ - { - "type": "Identifier", - "start": 5556, - "end": 5561, - "loc": { - "start": { - "line": 218, - "column": 28 - }, - "end": { - "line": 218, - "column": 33 - }, - "identifierName": "Len_X" + "property": { + "type": "Identifier", + "start": 5090, + "end": 5091, + "loc": { + "start": { + "line": 203, + "column": 19 }, - "name": "Len_X" - }, - { - "type": "Identifier", - "start": 5563, - "end": 5568, - "loc": { - "start": { - "line": 218, - "column": 35 - }, - "end": { - "line": 218, - "column": 40 - }, - "identifierName": "Len_Y" + "end": { + "line": 203, + "column": 20 }, - "name": "Len_Y" - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 5575, - "end": 5635, - "loc": { - "start": { - "line": 219, - "column": 4 - }, - "end": { - "line": 219, - "column": 64 - } - }, - "test": { - "type": "BinaryExpression", - "start": 5579, - "end": 5601, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 30 - } - }, - "left": { - "type": "MemberExpression", - "start": 5579, - "end": 5590, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 5579, - "end": 5588, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 17 - }, - "identifierName": "transform" - }, - "name": "transform" - }, - "property": { - "type": "Identifier", - "start": 5589, - "end": 5590, - "loc": { - "start": { - "line": 219, - "column": 18 - }, - "end": { - "line": 219, - "column": 19 + "identifierName": "x" }, - "identifierName": "x" + "name": "x" }, - "name": "x" - }, - "computed": false + "computed": false + } }, - "operator": "<", + "operator": "+", "right": { - "type": "MemberExpression", - "start": 5593, - "end": 5601, + "type": "BinaryExpression", + "start": 5094, + "end": 5103, "loc": { "start": { - "line": 219, - "column": 22 + "line": 203, + "column": 23 }, "end": { - "line": 219, - "column": 30 + "line": 203, + "column": 32 } }, - "object": { - "type": "Identifier", - "start": 5593, - "end": 5599, + "left": { + "type": "MemberExpression", + "start": 5094, + "end": 5097, "loc": { "start": { - "line": 219, - "column": 22 + "line": 203, + "column": 23 }, "end": { - "line": 219, - "column": 28 - }, - "identifierName": "center" + "line": 203, + "column": 26 + } }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 5600, - "end": 5601, - "loc": { - "start": { - "line": 219, - "column": 29 - }, - "end": { - "line": 219, - "column": 30 + "object": { + "type": "Identifier", + "start": 5094, + "end": 5095, + "loc": { + "start": { + "line": 203, + "column": 23 + }, + "end": { + "line": 203, + "column": 24 + }, + "identifierName": "A" }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 5603, - "end": 5635, - "loc": { - "start": { - "line": 219, - "column": 32 - }, - "end": { - "line": 219, - "column": 64 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5603, - "end": 5634, - "loc": { - "start": { - "line": 219, - "column": 32 + "name": "A" }, - "end": { - "line": 219, - "column": 63 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 5603, - "end": 5614, - "loc": { - "start": { - "line": 219, - "column": 32 - }, - "end": { - "line": 219, - "column": 43 + "property": { + "type": "Identifier", + "start": 5096, + "end": 5097, + "loc": { + "start": { + "line": 203, + "column": 25 + }, + "end": { + "line": 203, + "column": 26 + }, + "identifierName": "y" }, - "identifierName": "angleTarget" + "name": "y" }, - "name": "angleTarget" + "computed": false }, + "operator": "*", "right": { - "type": "BinaryExpression", - "start": 5617, - "end": 5634, + "type": "MemberExpression", + "start": 5100, + "end": 5103, "loc": { "start": { - "line": 219, - "column": 46 + "line": 203, + "column": 29 }, "end": { - "line": 219, - "column": 63 + "line": 203, + "column": 32 } }, - "left": { - "type": "NumericLiteral", - "start": 5617, - "end": 5620, + "object": { + "type": "Identifier", + "start": 5100, + "end": 5101, "loc": { "start": { - "line": 219, - "column": 46 + "line": 203, + "column": 29 }, "end": { - "line": 219, - "column": 49 - } - }, - "extra": { - "rawValue": 360, - "raw": "360" + "line": 203, + "column": 30 + }, + "identifierName": "B" }, - "value": 360 + "name": "B" }, - "operator": "-", - "right": { + "property": { "type": "Identifier", - "start": 5623, - "end": 5634, + "start": 5102, + "end": 5103, "loc": { "start": { - "line": 219, - "column": 52 + "line": 203, + "column": 31 }, "end": { - "line": 219, - "column": 63 + "line": 203, + "column": 32 }, - "identifierName": "angleTarget" + "identifierName": "y" }, - "name": "angleTarget" - } + "name": "y" + }, + "computed": false } } + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "\nfunction transformRange(center, transform, range)\n{\n let a = {\n x: transform.x - center.x,\n y: transform.y - center.y\n }\n let r = Math.sqrt(Math.pow(a.x,2) + Math.pow(a.y,2));\n if (r > range) {\n a = {\n x: a.x / r * range + center.x,\n y: a.y / r * range + center.y\n };\n return a;\n } else {\n return transform;\n }\n}\n", + "start": 4650, + "end": 5050, + "loc": { + "start": { + "line": 182, + "column": 0 }, - "alternate": null + "end": { + "line": 200, + "column": 2 + } + } + } + ] + }, + { + "type": "FunctionDeclaration", + "start": 5108, + "end": 5241, + "loc": { + "start": { + "line": 206, + "column": 0 + }, + "end": { + "line": 213, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 5117, + "end": 5126, + "loc": { + "start": { + "line": 206, + "column": 9 + }, + "end": { + "line": 206, + "column": 18 + }, + "identifierName": "normalize" + }, + "name": "normalize" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5127, + "end": 5128, + "loc": { + "start": { + "line": 206, + "column": 19 + }, + "end": { + "line": 206, + "column": 20 + }, + "identifierName": "x" + }, + "name": "x" + }, + { + "type": "Identifier", + "start": 5129, + "end": 5130, + "loc": { + "start": { + "line": 206, + "column": 21 + }, + "end": { + "line": 206, + "column": 22 + }, + "identifierName": "y" + }, + "name": "y" + } + ], + "body": { + "type": "BlockStatement", + "start": 5132, + "end": 5241, + "loc": { + "start": { + "line": 207, + "column": 0 }, + "end": { + "line": 213, + "column": 1 + } + }, + "body": [ { "type": "VariableDeclaration", - "start": 5640, - "end": 5721, + "start": 5138, + "end": 5175, "loc": { "start": { - "line": 220, + "line": 208, "column": 4 }, "end": { - "line": 220, - "column": 85 + "line": 208, + "column": 41 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 5644, - "end": 5720, + "start": 5142, + "end": 5175, "loc": { "start": { - "line": 220, + "line": 208, "column": 8 }, "end": { - "line": 220, - "column": 84 + "line": 208, + "column": 41 } }, "id": { "type": "Identifier", - "start": 5644, - "end": 5656, + "start": 5142, + "end": 5148, "loc": { "start": { - "line": 220, + "line": 208, "column": 8 }, "end": { - "line": 220, - "column": 20 + "line": 208, + "column": 14 }, - "identifierName": "angleLeftTop" + "identifierName": "length" }, - "name": "angleLeftTop" + "name": "length" }, "init": { - "type": "BinaryExpression", - "start": 5659, - "end": 5720, + "type": "CallExpression", + "start": 5151, + "end": 5175, "loc": { "start": { - "line": 220, - "column": 23 + "line": 208, + "column": 17 }, "end": { - "line": 220, - "column": 84 + "line": 208, + "column": 41 } }, - "left": { - "type": "NumericLiteral", - "start": 5659, - "end": 5662, + "callee": { + "type": "MemberExpression", + "start": 5151, + "end": 5160, "loc": { "start": { - "line": 220, - "column": 23 + "line": 208, + "column": 17 }, "end": { - "line": 220, + "line": 208, "column": 26 } }, - "extra": { - "rawValue": 360, - "raw": "360" - }, - "value": 360 - }, - "operator": "-", - "right": { - "type": "CallExpression", - "start": 5665, - "end": 5720, - "loc": { - "start": { - "line": 220, - "column": 29 + "object": { + "type": "Identifier", + "start": 5151, + "end": 5155, + "loc": { + "start": { + "line": 208, + "column": 17 + }, + "end": { + "line": 208, + "column": 21 + }, + "identifierName": "Math" }, - "end": { - "line": 220, - "column": 84 - } + "name": "Math" }, - "callee": { + "property": { "type": "Identifier", - "start": 5665, - "end": 5670, + "start": 5156, + "end": 5160, "loc": { "start": { - "line": 220, - "column": 29 + "line": 208, + "column": 22 }, "end": { - "line": 220, - "column": 34 + "line": 208, + "column": 26 }, - "identifierName": "angle" + "identifierName": "sqrt" }, - "name": "angle" + "name": "sqrt" }, - "arguments": [ - { + "computed": false + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 5161, + "end": 5174, + "loc": { + "start": { + "line": 208, + "column": 27 + }, + "end": { + "line": 208, + "column": 40 + } + }, + "left": { "type": "BinaryExpression", - "start": 5671, - "end": 5691, + "start": 5161, + "end": 5166, "loc": { "start": { - "line": 220, - "column": 35 + "line": 208, + "column": 27 }, "end": { - "line": 220, - "column": 55 + "line": 208, + "column": 32 } }, "left": { - "type": "MemberExpression", - "start": 5671, - "end": 5680, + "type": "Identifier", + "start": 5161, + "end": 5162, "loc": { "start": { - "line": 220, - "column": 35 + "line": 208, + "column": 27 }, "end": { - "line": 220, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 5671, - "end": 5675, - "loc": { - "start": { - "line": 220, - "column": 35 - }, - "end": { - "line": 220, - "column": 39 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5676, - "end": 5680, - "loc": { - "start": { - "line": 220, - "column": 40 - }, - "end": { - "line": 220, - "column": 44 - }, - "identifierName": "left" + "line": 208, + "column": 28 }, - "name": "left" + "identifierName": "x" }, - "computed": false + "name": "x" }, - "operator": "-", + "operator": "*", "right": { - "type": "MemberExpression", - "start": 5683, - "end": 5691, + "type": "Identifier", + "start": 5165, + "end": 5166, "loc": { "start": { - "line": 220, - "column": 47 + "line": 208, + "column": 31 }, "end": { - "line": 220, - "column": 55 - } - }, - "object": { - "type": "Identifier", - "start": 5683, - "end": 5689, - "loc": { - "start": { - "line": 220, - "column": 47 - }, - "end": { - "line": 220, - "column": 53 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 5690, - "end": 5691, - "loc": { - "start": { - "line": 220, - "column": 54 - }, - "end": { - "line": 220, - "column": 55 - }, - "identifierName": "x" + "line": 208, + "column": 32 }, - "name": "x" + "identifierName": "x" }, - "computed": false + "name": "x" } }, - { + "operator": "+", + "right": { "type": "BinaryExpression", - "start": 5693, - "end": 5719, + "start": 5169, + "end": 5174, "loc": { "start": { - "line": 220, - "column": 57 + "line": 208, + "column": 35 }, "end": { - "line": 220, - "column": 83 + "line": 208, + "column": 40 } }, "left": { - "type": "BinaryExpression", - "start": 5694, - "end": 5713, + "type": "Identifier", + "start": 5169, + "end": 5170, "loc": { "start": { - "line": 220, - "column": 58 + "line": 208, + "column": 35 }, "end": { - "line": 220, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 5694, - "end": 5702, - "loc": { - "start": { - "line": 220, - "column": 58 - }, - "end": { - "line": 220, - "column": 66 - } - }, - "object": { - "type": "Identifier", - "start": 5694, - "end": 5698, - "loc": { - "start": { - "line": 220, - "column": 58 - }, - "end": { - "line": 220, - "column": 62 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5699, - "end": 5702, - "loc": { - "start": { - "line": 220, - "column": 63 - }, - "end": { - "line": 220, - "column": 66 - }, - "identifierName": "top" - }, - "name": "top" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 5705, - "end": 5713, - "loc": { - "start": { - "line": 220, - "column": 69 - }, - "end": { - "line": 220, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 5705, - "end": 5711, - "loc": { - "start": { - "line": 220, - "column": 69 - }, - "end": { - "line": 220, - "column": 75 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 5712, - "end": 5713, - "loc": { - "start": { - "line": 220, - "column": 76 - }, - "end": { - "line": 220, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" + "line": 208, + "column": 36 }, - "computed": false + "identifierName": "y" }, - "extra": { - "parenthesized": true, - "parenStart": 5693 - } + "name": "y" }, "operator": "*", "right": { - "type": "UnaryExpression", - "start": 5717, - "end": 5719, + "type": "Identifier", + "start": 5173, + "end": 5174, "loc": { "start": { - "line": 220, - "column": 81 + "line": 208, + "column": 39 }, "end": { - "line": 220, - "column": 83 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 5718, - "end": 5719, - "loc": { - "start": { - "line": 220, - "column": 82 - }, - "end": { - "line": 220, - "column": 83 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" + "line": 208, + "column": 40 }, - "value": 1 + "identifierName": "y" }, - "extra": { - "parenthesizedArgument": false - } + "name": "y" } } - ] - } + } + ] } } ], "kind": "let" }, { - "type": "VariableDeclaration", - "start": 5726, - "end": 5824, + "type": "ReturnStatement", + "start": 5180, + "end": 5239, "loc": { "start": { - "line": 221, + "line": 209, "column": 4 }, "end": { - "line": 221, - "column": 102 + "line": 212, + "column": 5 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5730, - "end": 5823, - "loc": { - "start": { - "line": 221, - "column": 8 - }, - "end": { - "line": 221, - "column": 101 - } + "argument": { + "type": "ObjectExpression", + "start": 5187, + "end": 5239, + "loc": { + "start": { + "line": 209, + "column": 11 }, - "id": { - "type": "Identifier", - "start": 5730, - "end": 5745, + "end": { + "line": 212, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 5197, + "end": 5210, "loc": { "start": { - "line": 221, + "line": 210, "column": 8 }, "end": { - "line": 221, - "column": 23 + "line": 210, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5197, + "end": 5198, + "loc": { + "start": { + "line": 210, + "column": 8 + }, + "end": { + "line": 210, + "column": 9 + }, + "identifierName": "x" }, - "identifierName": "angleLeftBottom" + "name": "x" }, - "name": "angleLeftBottom" + "value": { + "type": "BinaryExpression", + "start": 5200, + "end": 5210, + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 21 + } + }, + "left": { + "type": "Identifier", + "start": 5200, + "end": 5201, + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 12 + }, + "identifierName": "x" + }, + "name": "x" + }, + "operator": "/", + "right": { + "type": "Identifier", + "start": 5204, + "end": 5210, + "loc": { + "start": { + "line": 210, + "column": 15 + }, + "end": { + "line": 210, + "column": 21 + }, + "identifierName": "length" + }, + "name": "length" + } + } }, - "init": { - "type": "BinaryExpression", - "start": 5748, - "end": 5823, + { + "type": "ObjectProperty", + "start": 5220, + "end": 5233, "loc": { "start": { - "line": 221, - "column": 26 + "line": 211, + "column": 8 }, "end": { - "line": 221, - "column": 101 + "line": 211, + "column": 21 } }, - "left": { - "type": "NumericLiteral", - "start": 5748, - "end": 5751, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5220, + "end": 5221, "loc": { "start": { - "line": 221, - "column": 26 + "line": 211, + "column": 8 }, "end": { - "line": 221, - "column": 29 + "line": 211, + "column": 9 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "BinaryExpression", + "start": 5223, + "end": 5233, + "loc": { + "start": { + "line": 211, + "column": 11 + }, + "end": { + "line": 211, + "column": 21 } }, - "extra": { - "rawValue": 360, - "raw": "360" + "left": { + "type": "Identifier", + "start": 5223, + "end": 5224, + "loc": { + "start": { + "line": 211, + "column": 11 + }, + "end": { + "line": 211, + "column": 12 + }, + "identifierName": "y" + }, + "name": "y" }, - "value": 360 + "operator": "/", + "right": { + "type": "Identifier", + "start": 5227, + "end": 5233, + "loc": { + "start": { + "line": 211, + "column": 15 + }, + "end": { + "line": 211, + "column": 21 + }, + "identifierName": "length" + }, + "name": "length" + } + } + } + ] + } + } + ], + "directives": [] + } + }, + { + "type": "FunctionDeclaration", + "start": 5243, + "end": 7262, + "loc": { + "start": { + "line": 215, + "column": 0 + }, + "end": { + "line": 277, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 5252, + "end": 5265, + "loc": { + "start": { + "line": 215, + "column": 9 + }, + "end": { + "line": 215, + "column": 22 + }, + "identifierName": "transformRect" + }, + "name": "transformRect" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5266, + "end": 5272, + "loc": { + "start": { + "line": 215, + "column": 23 + }, + "end": { + "line": 215, + "column": 29 + }, + "identifierName": "center" + }, + "name": "center" + }, + { + "type": "Identifier", + "start": 5274, + "end": 5283, + "loc": { + "start": { + "line": 215, + "column": 31 + }, + "end": { + "line": 215, + "column": 40 + }, + "identifierName": "transform" + }, + "name": "transform" + }, + { + "type": "Identifier", + "start": 5285, + "end": 5289, + "loc": { + "start": { + "line": 215, + "column": 42 + }, + "end": { + "line": 215, + "column": 46 + }, + "identifierName": "rect" + }, + "name": "rect" + } + ], + "body": { + "type": "BlockStatement", + "start": 5291, + "end": 7262, + "loc": { + "start": { + "line": 216, + "column": 0 + }, + "end": { + "line": 277, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 5297, + "end": 5457, + "loc": { + "start": { + "line": 217, + "column": 4 + }, + "end": { + "line": 218, + "column": 76 + } + }, + "test": { + "type": "LogicalExpression", + "start": 5301, + "end": 5438, + "loc": { + "start": { + "line": 217, + "column": 8 + }, + "end": { + "line": 218, + "column": 57 + } + }, + "left": { + "type": "LogicalExpression", + "start": 5301, + "end": 5412, + "loc": { + "start": { + "line": 217, + "column": 8 }, - "operator": "-", - "right": { - "type": "CallExpression", - "start": 5754, - "end": 5823, + "end": { + "line": 218, + "column": 31 + } + }, + "left": { + "type": "LogicalExpression", + "start": 5301, + "end": 5377, + "loc": { + "start": { + "line": 217, + "column": 8 + }, + "end": { + "line": 217, + "column": 84 + } + }, + "left": { + "type": "BinaryExpression", + "start": 5301, + "end": 5337, "loc": { "start": { - "line": 221, - "column": 32 + "line": 217, + "column": 8 }, "end": { - "line": 221, - "column": 101 + "line": 217, + "column": 44 } }, - "callee": { - "type": "Identifier", - "start": 5754, - "end": 5759, + "left": { + "type": "MemberExpression", + "start": 5301, + "end": 5312, "loc": { "start": { - "line": 221, - "column": 32 + "line": 217, + "column": 8 }, "end": { - "line": 221, - "column": 37 + "line": 217, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 5301, + "end": 5310, + "loc": { + "start": { + "line": 217, + "column": 8 + }, + "end": { + "line": 217, + "column": 17 + }, + "identifierName": "transform" }, - "identifierName": "angle" + "name": "transform" }, - "name": "angle" + "property": { + "type": "Identifier", + "start": 5311, + "end": 5312, + "loc": { + "start": { + "line": 217, + "column": 18 + }, + "end": { + "line": 217, + "column": 19 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 5760, - "end": 5780, + "operator": "<", + "right": { + "type": "BinaryExpression", + "start": 5315, + "end": 5337, + "loc": { + "start": { + "line": 217, + "column": 22 + }, + "end": { + "line": 217, + "column": 44 + } + }, + "left": { + "type": "MemberExpression", + "start": 5315, + "end": 5324, "loc": { "start": { - "line": 221, - "column": 38 + "line": 217, + "column": 22 }, "end": { - "line": 221, - "column": 58 + "line": 217, + "column": 31 } }, - "left": { - "type": "MemberExpression", - "start": 5760, - "end": 5769, + "object": { + "type": "Identifier", + "start": 5315, + "end": 5319, "loc": { "start": { - "line": 221, - "column": 38 + "line": 217, + "column": 22 }, "end": { - "line": 221, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 5760, - "end": 5764, - "loc": { - "start": { - "line": 221, - "column": 38 - }, - "end": { - "line": 221, - "column": 42 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5765, - "end": 5769, - "loc": { - "start": { - "line": 221, - "column": 43 - }, - "end": { - "line": 221, - "column": 47 - }, - "identifierName": "left" + "line": 217, + "column": 26 }, - "name": "left" + "identifierName": "rect" }, - "computed": false + "name": "rect" }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 5772, - "end": 5780, + "property": { + "type": "Identifier", + "start": 5320, + "end": 5324, "loc": { "start": { - "line": 221, - "column": 50 + "line": 217, + "column": 27 }, "end": { - "line": 221, - "column": 58 - } - }, - "object": { - "type": "Identifier", - "start": 5772, - "end": 5778, - "loc": { - "start": { - "line": 221, - "column": 50 - }, - "end": { - "line": 221, - "column": 56 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 5779, - "end": 5780, - "loc": { - "start": { - "line": 221, - "column": 57 - }, - "end": { - "line": 221, - "column": 58 - }, - "identifierName": "x" + "line": 217, + "column": 31 }, - "name": "x" + "identifierName": "left" }, - "computed": false - } + "name": "left" + }, + "computed": false }, - { - "type": "BinaryExpression", - "start": 5782, - "end": 5822, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 5327, + "end": 5337, "loc": { "start": { - "line": 221, - "column": 60 + "line": 217, + "column": 34 }, "end": { - "line": 221, - "column": 100 + "line": 217, + "column": 44 } }, - "left": { - "type": "BinaryExpression", - "start": 5783, - "end": 5816, + "object": { + "type": "Identifier", + "start": 5327, + "end": 5331, "loc": { "start": { - "line": 221, - "column": 61 + "line": 217, + "column": 34 }, "end": { - "line": 221, - "column": 94 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5783, - "end": 5805, - "loc": { - "start": { - "line": 221, - "column": 61 - }, - "end": { - "line": 221, - "column": 83 - } - }, - "left": { - "type": "MemberExpression", - "start": 5783, - "end": 5791, - "loc": { - "start": { - "line": 221, - "column": 61 - }, - "end": { - "line": 221, - "column": 69 - } - }, - "object": { - "type": "Identifier", - "start": 5783, - "end": 5787, - "loc": { - "start": { - "line": 221, - "column": 61 - }, - "end": { - "line": 221, - "column": 65 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5788, - "end": 5791, - "loc": { - "start": { - "line": 221, - "column": 66 - }, - "end": { - "line": 221, - "column": 69 - }, - "identifierName": "top" - }, - "name": "top" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5794, - "end": 5805, - "loc": { - "start": { - "line": 221, - "column": 72 - }, - "end": { - "line": 221, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 5794, - "end": 5798, - "loc": { - "start": { - "line": 221, - "column": 72 - }, - "end": { - "line": 221, - "column": 76 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5799, - "end": 5805, - "loc": { - "start": { - "line": 221, - "column": 77 - }, - "end": { - "line": 221, - "column": 83 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 5808, - "end": 5816, - "loc": { - "start": { - "line": 221, - "column": 86 - }, - "end": { - "line": 221, - "column": 94 - } - }, - "object": { - "type": "Identifier", - "start": 5808, - "end": 5814, - "loc": { - "start": { - "line": 221, - "column": 86 - }, - "end": { - "line": 221, - "column": 92 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 5815, - "end": 5816, - "loc": { - "start": { - "line": 221, - "column": 93 - }, - "end": { - "line": 221, - "column": 94 - }, - "identifierName": "y" - }, - "name": "y" + "line": 217, + "column": 38 }, - "computed": false + "identifierName": "rect" }, - "extra": { - "parenthesized": true, - "parenStart": 5782 - } + "name": "rect" }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 5820, - "end": 5822, + "property": { + "type": "Identifier", + "start": 5332, + "end": 5337, "loc": { "start": { - "line": 221, - "column": 98 + "line": 217, + "column": 39 }, "end": { - "line": 221, - "column": 100 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 5821, - "end": 5822, - "loc": { - "start": { - "line": 221, - "column": 99 - }, - "end": { - "line": 221, - "column": 100 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" + "line": 217, + "column": 44 }, - "value": 1 + "identifierName": "width" }, - "extra": { - "parenthesizedArgument": false - } - } + "name": "width" + }, + "computed": false } - ] - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 5829, - "end": 5918, - "loc": { - "start": { - "line": 222, - "column": 4 - }, - "end": { - "line": 222, - "column": 93 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5833, - "end": 5917, - "loc": { - "start": { - "line": 222, - "column": 8 - }, - "end": { - "line": 222, - "column": 92 - } - }, - "id": { - "type": "Identifier", - "start": 5833, - "end": 5846, - "loc": { - "start": { - "line": 222, - "column": 8 - }, - "end": { - "line": 222, - "column": 21 - }, - "identifierName": "angleRightTop" - }, - "name": "angleRightTop" - }, - "init": { - "type": "CallExpression", - "start": 5849, - "end": 5917, - "loc": { - "start": { - "line": 222, - "column": 24 - }, - "end": { - "line": 222, - "column": 92 } }, - "callee": { - "type": "Identifier", - "start": 5849, - "end": 5854, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 5341, + "end": 5377, "loc": { "start": { - "line": 222, - "column": 24 + "line": 217, + "column": 48 }, "end": { - "line": 222, - "column": 29 + "line": 217, + "column": 84 + } + }, + "left": { + "type": "MemberExpression", + "start": 5341, + "end": 5352, + "loc": { + "start": { + "line": 217, + "column": 48 + }, + "end": { + "line": 217, + "column": 59 + } }, - "identifierName": "angle" + "object": { + "type": "Identifier", + "start": 5341, + "end": 5350, + "loc": { + "start": { + "line": 217, + "column": 48 + }, + "end": { + "line": 217, + "column": 57 + }, + "identifierName": "transform" + }, + "name": "transform" + }, + "property": { + "type": "Identifier", + "start": 5351, + "end": 5352, + "loc": { + "start": { + "line": 217, + "column": 58 + }, + "end": { + "line": 217, + "column": 59 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false }, - "name": "angle" - }, - "arguments": [ - { + "operator": "<", + "right": { "type": "BinaryExpression", - "start": 5855, - "end": 5888, + "start": 5355, + "end": 5377, "loc": { "start": { - "line": 222, - "column": 30 + "line": 217, + "column": 62 }, "end": { - "line": 222, - "column": 63 + "line": 217, + "column": 84 } }, "left": { - "type": "BinaryExpression", - "start": 5855, - "end": 5877, + "type": "MemberExpression", + "start": 5355, + "end": 5363, "loc": { "start": { - "line": 222, - "column": 30 + "line": 217, + "column": 62 }, "end": { - "line": 222, - "column": 52 + "line": 217, + "column": 70 } }, - "left": { - "type": "MemberExpression", - "start": 5855, - "end": 5864, + "object": { + "type": "Identifier", + "start": 5355, + "end": 5359, "loc": { "start": { - "line": 222, - "column": 30 + "line": 217, + "column": 62 }, "end": { - "line": 222, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 5855, - "end": 5859, - "loc": { - "start": { - "line": 222, - "column": 30 - }, - "end": { - "line": 222, - "column": 34 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5860, - "end": 5864, - "loc": { - "start": { - "line": 222, - "column": 35 - }, - "end": { - "line": 222, - "column": 39 - }, - "identifierName": "left" + "line": 217, + "column": 66 }, - "name": "left" + "identifierName": "rect" }, - "computed": false + "name": "rect" }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5867, - "end": 5877, + "property": { + "type": "Identifier", + "start": 5360, + "end": 5363, "loc": { "start": { - "line": 222, - "column": 42 + "line": 217, + "column": 67 }, "end": { - "line": 222, - "column": 52 - } - }, - "object": { - "type": "Identifier", - "start": 5867, - "end": 5871, - "loc": { - "start": { - "line": 222, - "column": 42 - }, - "end": { - "line": 222, - "column": 46 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5872, - "end": 5877, - "loc": { - "start": { - "line": 222, - "column": 47 - }, - "end": { - "line": 222, - "column": 52 - }, - "identifierName": "width" + "line": 217, + "column": 70 }, - "name": "width" + "identifierName": "top" }, - "computed": false - } + "name": "top" + }, + "computed": false }, - "operator": "-", + "operator": "+", "right": { "type": "MemberExpression", - "start": 5880, - "end": 5888, + "start": 5366, + "end": 5377, "loc": { "start": { - "line": 222, - "column": 55 + "line": 217, + "column": 73 }, "end": { - "line": 222, - "column": 63 + "line": 217, + "column": 84 } }, "object": { "type": "Identifier", - "start": 5880, - "end": 5886, + "start": 5366, + "end": 5370, "loc": { "start": { - "line": 222, - "column": 55 + "line": 217, + "column": 73 }, "end": { - "line": 222, - "column": 61 + "line": 217, + "column": 77 }, - "identifierName": "center" + "identifierName": "rect" }, - "name": "center" + "name": "rect" }, "property": { "type": "Identifier", - "start": 5887, - "end": 5888, + "start": 5371, + "end": 5377, "loc": { "start": { - "line": 222, - "column": 62 + "line": 217, + "column": 78 }, "end": { - "line": 222, - "column": 63 + "line": 217, + "column": 84 }, - "identifierName": "x" + "identifierName": "height" }, - "name": "x" + "name": "height" }, "computed": false } + } + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 5389, + "end": 5412, + "loc": { + "start": { + "line": 218, + "column": 8 }, - { - "type": "BinaryExpression", - "start": 5890, - "end": 5916, + "end": { + "line": 218, + "column": 31 + } + }, + "left": { + "type": "MemberExpression", + "start": 5389, + "end": 5400, + "loc": { + "start": { + "line": 218, + "column": 8 + }, + "end": { + "line": 218, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 5389, + "end": 5398, "loc": { "start": { - "line": 222, - "column": 65 + "line": 218, + "column": 8 }, "end": { - "line": 222, - "column": 91 - } + "line": 218, + "column": 17 + }, + "identifierName": "transform" }, - "left": { - "type": "BinaryExpression", - "start": 5891, - "end": 5910, - "loc": { - "start": { - "line": 222, - "column": 66 - }, - "end": { - "line": 222, - "column": 85 - } + "name": "transform" + }, + "property": { + "type": "Identifier", + "start": 5399, + "end": 5400, + "loc": { + "start": { + "line": 218, + "column": 18 }, - "left": { - "type": "MemberExpression", - "start": 5891, - "end": 5899, - "loc": { - "start": { - "line": 222, - "column": 66 - }, - "end": { - "line": 222, - "column": 74 - } - }, - "object": { - "type": "Identifier", - "start": 5891, - "end": 5895, - "loc": { - "start": { - "line": 222, - "column": 66 - }, - "end": { - "line": 222, - "column": 70 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5896, - "end": 5899, - "loc": { - "start": { - "line": 222, - "column": 71 - }, - "end": { - "line": 222, - "column": 74 - }, - "identifierName": "top" - }, - "name": "top" - }, - "computed": false + "end": { + "line": 218, + "column": 19 }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 5902, - "end": 5910, - "loc": { - "start": { - "line": 222, - "column": 77 - }, - "end": { - "line": 222, - "column": 85 - } - }, - "object": { - "type": "Identifier", - "start": 5902, - "end": 5908, - "loc": { - "start": { - "line": 222, - "column": 77 - }, - "end": { - "line": 222, - "column": 83 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 5909, - "end": 5910, - "loc": { - "start": { - "line": 222, - "column": 84 - }, - "end": { - "line": 222, - "column": 85 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": ">", + "right": { + "type": "MemberExpression", + "start": 5403, + "end": 5412, + "loc": { + "start": { + "line": 218, + "column": 22 + }, + "end": { + "line": 218, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 5403, + "end": 5407, + "loc": { + "start": { + "line": 218, + "column": 22 }, - "extra": { - "parenthesized": true, - "parenStart": 5890 - } + "end": { + "line": 218, + "column": 26 + }, + "identifierName": "rect" }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 5914, - "end": 5916, - "loc": { - "start": { - "line": 222, - "column": 89 - }, - "end": { - "line": 222, - "column": 91 - } + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 5408, + "end": 5412, + "loc": { + "start": { + "line": 218, + "column": 27 }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 5915, - "end": 5916, - "loc": { - "start": { - "line": 222, - "column": 90 - }, - "end": { - "line": 222, - "column": 91 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 + "end": { + "line": 218, + "column": 31 }, - "extra": { - "parenthesizedArgument": false - } - } + "identifierName": "left" + }, + "name": "left" + }, + "computed": false + } + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 5416, + "end": 5438, + "loc": { + "start": { + "line": 218, + "column": 35 + }, + "end": { + "line": 218, + "column": 57 + } + }, + "left": { + "type": "MemberExpression", + "start": 5416, + "end": 5427, + "loc": { + "start": { + "line": 218, + "column": 35 + }, + "end": { + "line": 218, + "column": 46 } - ] + }, + "object": { + "type": "Identifier", + "start": 5416, + "end": 5425, + "loc": { + "start": { + "line": 218, + "column": 35 + }, + "end": { + "line": 218, + "column": 44 + }, + "identifierName": "transform" + }, + "name": "transform" + }, + "property": { + "type": "Identifier", + "start": 5426, + "end": 5427, + "loc": { + "start": { + "line": 218, + "column": 45 + }, + "end": { + "line": 218, + "column": 46 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "operator": ">", + "right": { + "type": "MemberExpression", + "start": 5430, + "end": 5438, + "loc": { + "start": { + "line": 218, + "column": 49 + }, + "end": { + "line": 218, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 5430, + "end": 5434, + "loc": { + "start": { + "line": 218, + "column": 49 + }, + "end": { + "line": 218, + "column": 53 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 5435, + "end": 5438, + "loc": { + "start": { + "line": 218, + "column": 54 + }, + "end": { + "line": 218, + "column": 57 + }, + "identifierName": "top" + }, + "name": "top" + }, + "computed": false } } - ], - "kind": "let" + }, + "consequent": { + "type": "ReturnStatement", + "start": 5440, + "end": 5457, + "loc": { + "start": { + "line": 218, + "column": 59 + }, + "end": { + "line": 218, + "column": 76 + } + }, + "argument": { + "type": "Identifier", + "start": 5447, + "end": 5456, + "loc": { + "start": { + "line": 218, + "column": 66 + }, + "end": { + "line": 218, + "column": 75 + }, + "identifierName": "transform" + }, + "name": "transform" + } + }, + "alternate": null }, { "type": "VariableDeclaration", - "start": 5923, - "end": 6029, + "start": 5462, + "end": 5497, "loc": { "start": { - "line": 223, + "line": 219, "column": 4 }, "end": { - "line": 223, - "column": 110 + "line": 219, + "column": 39 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 5927, - "end": 6028, + "start": 5466, + "end": 5496, "loc": { "start": { - "line": 223, + "line": 219, "column": 8 }, "end": { - "line": 223, - "column": 109 + "line": 219, + "column": 38 } }, "id": { "type": "Identifier", - "start": 5927, - "end": 5943, + "start": 5466, + "end": 5471, "loc": { "start": { - "line": 223, + "line": 219, "column": 8 }, "end": { - "line": 223, - "column": 24 + "line": 219, + "column": 13 }, - "identifierName": "angleRightBottom" + "identifierName": "Len_X" }, - "name": "angleRightBottom" + "name": "Len_X" }, "init": { - "type": "CallExpression", - "start": 5946, - "end": 6028, + "type": "BinaryExpression", + "start": 5474, + "end": 5496, "loc": { "start": { - "line": 223, - "column": 27 + "line": 219, + "column": 16 }, "end": { - "line": 223, - "column": 109 + "line": 219, + "column": 38 } }, - "callee": { - "type": "Identifier", - "start": 5946, - "end": 5951, + "left": { + "type": "MemberExpression", + "start": 5474, + "end": 5482, "loc": { "start": { - "line": 223, - "column": 27 + "line": 219, + "column": 16 }, "end": { - "line": 223, - "column": 32 - }, - "identifierName": "angle" + "line": 219, + "column": 24 + } }, - "name": "angle" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 5952, - "end": 5985, + "object": { + "type": "Identifier", + "start": 5474, + "end": 5480, "loc": { "start": { - "line": 223, - "column": 33 + "line": 219, + "column": 16 }, "end": { - "line": 223, - "column": 66 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5952, - "end": 5974, - "loc": { - "start": { - "line": 223, - "column": 33 - }, - "end": { - "line": 223, - "column": 55 - } - }, - "left": { - "type": "MemberExpression", - "start": 5952, - "end": 5961, - "loc": { - "start": { - "line": 223, - "column": 33 - }, - "end": { - "line": 223, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 5952, - "end": 5956, - "loc": { - "start": { - "line": 223, - "column": 33 - }, - "end": { - "line": 223, - "column": 37 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5957, - "end": 5961, - "loc": { - "start": { - "line": 223, - "column": 38 - }, - "end": { - "line": 223, - "column": 42 - }, - "identifierName": "left" - }, - "name": "left" - }, - "computed": false + "line": 219, + "column": 22 }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5964, - "end": 5974, - "loc": { - "start": { - "line": 223, - "column": 45 - }, - "end": { - "line": 223, - "column": 55 - } - }, - "object": { - "type": "Identifier", - "start": 5964, - "end": 5968, - "loc": { - "start": { - "line": 223, - "column": 45 - }, - "end": { - "line": 223, - "column": 49 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5969, - "end": 5974, - "loc": { - "start": { - "line": 223, - "column": 50 - }, - "end": { - "line": 223, - "column": 55 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } + "identifierName": "center" }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 5977, - "end": 5985, - "loc": { - "start": { - "line": 223, - "column": 58 - }, - "end": { - "line": 223, - "column": 66 - } - }, - "object": { - "type": "Identifier", - "start": 5977, - "end": 5983, - "loc": { - "start": { - "line": 223, - "column": 58 - }, - "end": { - "line": 223, - "column": 64 - }, - "identifierName": "center" - }, - "name": "center" + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 5481, + "end": 5482, + "loc": { + "start": { + "line": 219, + "column": 23 }, - "property": { - "type": "Identifier", - "start": 5984, - "end": 5985, - "loc": { - "start": { - "line": 223, - "column": 65 - }, - "end": { - "line": 223, - "column": 66 - }, - "identifierName": "x" - }, - "name": "x" + "end": { + "line": 219, + "column": 24 }, - "computed": false + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 5485, + "end": 5496, + "loc": { + "start": { + "line": 219, + "column": 27 + }, + "end": { + "line": 219, + "column": 38 } }, - { - "type": "BinaryExpression", - "start": 5987, - "end": 6027, + "object": { + "type": "Identifier", + "start": 5485, + "end": 5494, "loc": { "start": { - "line": 223, - "column": 68 + "line": 219, + "column": 27 }, "end": { - "line": 223, - "column": 108 - } + "line": 219, + "column": 36 + }, + "identifierName": "transform" }, - "left": { - "type": "BinaryExpression", - "start": 5988, - "end": 6021, - "loc": { - "start": { - "line": 223, - "column": 69 - }, - "end": { - "line": 223, - "column": 102 - } + "name": "transform" + }, + "property": { + "type": "Identifier", + "start": 5495, + "end": 5496, + "loc": { + "start": { + "line": 219, + "column": 37 }, - "left": { - "type": "BinaryExpression", - "start": 5988, - "end": 6010, - "loc": { - "start": { - "line": 223, - "column": 69 - }, - "end": { - "line": 223, - "column": 91 - } - }, - "left": { - "type": "MemberExpression", - "start": 5988, - "end": 5996, - "loc": { - "start": { - "line": 223, - "column": 69 - }, - "end": { - "line": 223, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 5988, - "end": 5992, - "loc": { - "start": { - "line": 223, - "column": 69 - }, - "end": { - "line": 223, - "column": 73 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 5993, - "end": 5996, - "loc": { - "start": { - "line": 223, - "column": 74 - }, - "end": { - "line": 223, - "column": 77 - }, - "identifierName": "top" - }, - "name": "top" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5999, - "end": 6010, - "loc": { - "start": { - "line": 223, - "column": 80 - }, - "end": { - "line": 223, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 5999, - "end": 6003, - "loc": { - "start": { - "line": 223, - "column": 80 - }, - "end": { - "line": 223, - "column": 84 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 6004, - "end": 6010, - "loc": { - "start": { - "line": 223, - "column": 85 - }, - "end": { - "line": 223, - "column": 91 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 6013, - "end": 6021, - "loc": { - "start": { - "line": 223, - "column": 94 - }, - "end": { - "line": 223, - "column": 102 - } - }, - "object": { - "type": "Identifier", - "start": 6013, - "end": 6019, - "loc": { - "start": { - "line": 223, - "column": 94 - }, - "end": { - "line": 223, - "column": 100 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6020, - "end": 6021, - "loc": { - "start": { - "line": 223, - "column": 101 - }, - "end": { - "line": 223, - "column": 102 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false + "end": { + "line": 219, + "column": 38 }, - "extra": { - "parenthesized": true, - "parenStart": 5987 - } + "identifierName": "x" }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 6025, - "end": 6027, - "loc": { - "start": { - "line": 223, - "column": 106 - }, - "end": { - "line": 223, - "column": 108 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 6026, - "end": 6027, - "loc": { - "start": { - "line": 223, - "column": 107 - }, - "end": { - "line": 223, - "column": 108 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ] + "name": "x" + }, + "computed": false + } } } ], @@ -13524,1101 +11800,1357 @@ }, { "type": "VariableDeclaration", - "start": 6034, - "end": 6060, + "start": 5502, + "end": 5537, "loc": { "start": { - "line": 224, + "line": 220, "column": 4 }, "end": { - "line": 224, - "column": 30 + "line": 220, + "column": 39 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 6038, - "end": 6059, + "start": 5506, + "end": 5536, "loc": { "start": { - "line": 224, + "line": 220, "column": 8 }, "end": { - "line": 224, - "column": 29 + "line": 220, + "column": 38 } }, "id": { "type": "Identifier", - "start": 6038, - "end": 6043, + "start": 5506, + "end": 5511, "loc": { "start": { - "line": 224, + "line": 220, "column": 8 }, "end": { - "line": 224, + "line": 220, "column": 13 }, - "identifierName": "scale" + "identifierName": "Len_Y" }, - "name": "scale" + "name": "Len_Y" }, "init": { "type": "BinaryExpression", - "start": 6046, - "end": 6059, + "start": 5514, + "end": 5536, "loc": { "start": { - "line": 224, + "line": 220, "column": 16 }, "end": { - "line": 224, - "column": 29 + "line": 220, + "column": 38 } }, "left": { - "type": "Identifier", - "start": 6046, - "end": 6051, + "type": "MemberExpression", + "start": 5514, + "end": 5522, "loc": { "start": { - "line": 224, + "line": 220, "column": 16 }, "end": { - "line": 224, - "column": 21 + "line": 220, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 5514, + "end": 5520, + "loc": { + "start": { + "line": 220, + "column": 16 + }, + "end": { + "line": 220, + "column": 22 + }, + "identifierName": "center" }, - "identifierName": "Len_Y" + "name": "center" }, - "name": "Len_Y" + "property": { + "type": "Identifier", + "start": 5521, + "end": 5522, + "loc": { + "start": { + "line": 220, + "column": 23 + }, + "end": { + "line": 220, + "column": 24 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false }, - "operator": "/", + "operator": "-", "right": { - "type": "Identifier", - "start": 6054, - "end": 6059, + "type": "MemberExpression", + "start": 5525, + "end": 5536, "loc": { "start": { - "line": 224, - "column": 24 + "line": 220, + "column": 27 }, "end": { - "line": 224, - "column": 29 - }, - "identifierName": "Len_X" - }, - "name": "Len_X" - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 6065, - "end": 6078, - "loc": { - "start": { - "line": 225, - "column": 4 - }, - "end": { - "line": 225, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6069, - "end": 6077, - "loc": { - "start": { - "line": 225, - "column": 8 - }, - "end": { - "line": 225, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 6069, - "end": 6072, - "loc": { - "start": { - "line": 225, - "column": 8 + "line": 220, + "column": 38 + } }, - "end": { - "line": 225, - "column": 11 + "object": { + "type": "Identifier", + "start": 5525, + "end": 5534, + "loc": { + "start": { + "line": 220, + "column": 27 + }, + "end": { + "line": 220, + "column": 36 + }, + "identifierName": "transform" + }, + "name": "transform" }, - "identifierName": "res" - }, - "name": "res" - }, - "init": { - "type": "ObjectExpression", - "start": 6075, - "end": 6077, - "loc": { - "start": { - "line": 225, - "column": 14 + "property": { + "type": "Identifier", + "start": 5535, + "end": 5536, + "loc": { + "start": { + "line": 220, + "column": 37 + }, + "end": { + "line": 220, + "column": 38 + }, + "identifierName": "y" + }, + "name": "y" }, - "end": { - "line": 225, - "column": 16 - } - }, - "properties": [] + "computed": false + } } } ], "kind": "let" }, { - "type": "IfStatement", - "start": 6084, - "end": 7067, + "type": "FunctionDeclaration", + "start": 5543, + "end": 5702, "loc": { "start": { - "line": 227, + "line": 222, "column": 4 }, "end": { - "line": 262, + "line": 228, "column": 5 } }, - "test": { - "type": "BinaryExpression", - "start": 6088, - "end": 6115, + "id": { + "type": "Identifier", + "start": 5552, + "end": 5557, "loc": { "start": { - "line": 227, - "column": 8 + "line": 222, + "column": 13 }, "end": { - "line": 227, - "column": 35 - } + "line": 222, + "column": 18 + }, + "identifierName": "angle" }, - "left": { + "name": "angle" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { "type": "Identifier", - "start": 6088, - "end": 6099, + "start": 5558, + "end": 5563, "loc": { "start": { - "line": 227, - "column": 8 + "line": 222, + "column": 19 }, "end": { - "line": 227, - "column": 19 + "line": 222, + "column": 24 }, - "identifierName": "angleTarget" + "identifierName": "Len_X" }, - "name": "angleTarget" + "name": "Len_X" }, - "operator": "<", - "right": { + { "type": "Identifier", - "start": 6102, - "end": 6115, + "start": 5565, + "end": 5570, "loc": { "start": { - "line": 227, - "column": 22 + "line": 222, + "column": 26 }, "end": { - "line": 227, - "column": 35 + "line": 222, + "column": 31 }, - "identifierName": "angleRightTop" + "identifierName": "Len_Y" }, - "name": "angleRightTop" + "name": "Len_Y" } - }, - "consequent": { + ], + "body": { "type": "BlockStatement", - "start": 6117, - "end": 6276, + "start": 5576, + "end": 5702, "loc": { "start": { - "line": 227, - "column": 37 + "line": 223, + "column": 4 }, "end": { - "line": 234, + "line": 228, "column": 5 } }, "body": [ { - "type": "VariableDeclaration", - "start": 6127, - "end": 6156, + "type": "ReturnStatement", + "start": 5586, + "end": 5696, "loc": { "start": { - "line": 228, + "line": 224, "column": 8 }, "end": { - "line": 228, - "column": 37 + "line": 227, + "column": 52 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6131, - "end": 6155, + "argument": { + "type": "BinaryExpression", + "start": 5593, + "end": 5696, + "loc": { + "start": { + "line": 224, + "column": 15 + }, + "end": { + "line": 227, + "column": 52 + } + }, + "left": { + "type": "BinaryExpression", + "start": 5593, + "end": 5686, "loc": { "start": { - "line": 228, - "column": 12 + "line": 224, + "column": 15 }, "end": { - "line": 228, - "column": 36 + "line": 227, + "column": 42 } }, - "id": { - "type": "Identifier", - "start": 6131, - "end": 6133, - "loc": { - "start": { - "line": 228, - "column": 12 - }, - "end": { - "line": 228, - "column": 14 - }, - "identifierName": "y3" - }, - "name": "y3" - }, - "init": { - "type": "BinaryExpression", - "start": 6136, - "end": 6155, + "left": { + "type": "CallExpression", + "start": 5593, + "end": 5680, "loc": { "start": { - "line": 228, - "column": 17 + "line": 224, + "column": 15 }, "end": { - "line": 228, + "line": 227, "column": 36 } }, - "left": { + "callee": { "type": "MemberExpression", - "start": 6136, - "end": 6144, + "start": 5593, + "end": 5602, "loc": { "start": { - "line": 228, - "column": 17 + "line": 224, + "column": 15 }, "end": { - "line": 228, - "column": 25 + "line": 224, + "column": 24 } }, "object": { "type": "Identifier", - "start": 6136, - "end": 6140, + "start": 5593, + "end": 5597, "loc": { "start": { - "line": 228, - "column": 17 + "line": 224, + "column": 15 }, "end": { - "line": 228, - "column": 21 + "line": 224, + "column": 19 }, - "identifierName": "rect" + "identifierName": "Math" }, - "name": "rect" + "name": "Math" }, "property": { "type": "Identifier", - "start": 6141, - "end": 6144, + "start": 5598, + "end": 5602, "loc": { "start": { - "line": 228, - "column": 22 + "line": 224, + "column": 20 }, "end": { - "line": 228, - "column": 25 + "line": 224, + "column": 24 }, - "identifierName": "top" + "identifierName": "acos" }, - "name": "top" + "name": "acos" }, "computed": false }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 6147, - "end": 6155, - "loc": { - "start": { - "line": 228, - "column": 28 - }, - "end": { - "line": 228, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 6147, - "end": 6153, + "arguments": [ + { + "type": "CallExpression", + "start": 5603, + "end": 5679, "loc": { "start": { - "line": 228, - "column": 28 + "line": 224, + "column": 25 }, "end": { - "line": 228, - "column": 34 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6154, - "end": 6155, - "loc": { - "start": { - "line": 228, + "line": 227, "column": 35 + } + }, + "callee": { + "type": "Identifier", + "start": 5603, + "end": 5606, + "loc": { + "start": { + "line": 224, + "column": 25 + }, + "end": { + "line": 224, + "column": 28 + }, + "identifierName": "dot" }, - "end": { - "line": 228, - "column": 36 - }, - "identifierName": "y" + "name": "dot" }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 6165, - "end": 6185, - "loc": { - "start": { - "line": 229, - "column": 8 - }, - "end": { - "line": 229, - "column": 28 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6169, - "end": 6184, - "loc": { - "start": { - "line": 229, - "column": 12 - }, - "end": { - "line": 229, - "column": 27 - } - }, - "id": { + "arguments": [ + { + "type": "ObjectExpression", + "start": 5607, + "end": 5653, + "loc": { + "start": { + "line": 224, + "column": 29 + }, + "end": { + "line": 227, + "column": 9 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 5621, + "end": 5625, + "loc": { + "start": { + "line": 225, + "column": 12 + }, + "end": { + "line": 225, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5621, + "end": 5622, + "loc": { + "start": { + "line": 225, + "column": 12 + }, + "end": { + "line": 225, + "column": 13 + }, + "identifierName": "x" + }, + "name": "x" + }, + "value": { + "type": "NumericLiteral", + "start": 5624, + "end": 5625, + "loc": { + "start": { + "line": 225, + "column": 15 + }, + "end": { + "line": 225, + "column": 16 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + { + "type": "ObjectProperty", + "start": 5639, + "end": 5643, + "loc": { + "start": { + "line": 226, + "column": 12 + }, + "end": { + "line": 226, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5639, + "end": 5640, + "loc": { + "start": { + "line": 226, + "column": 12 + }, + "end": { + "line": 226, + "column": 13 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "NumericLiteral", + "start": 5642, + "end": 5643, + "loc": { + "start": { + "line": 226, + "column": 15 + }, + "end": { + "line": 226, + "column": 16 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + } + ] + }, + { + "type": "CallExpression", + "start": 5655, + "end": 5678, + "loc": { + "start": { + "line": 227, + "column": 11 + }, + "end": { + "line": 227, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 5655, + "end": 5664, + "loc": { + "start": { + "line": 227, + "column": 11 + }, + "end": { + "line": 227, + "column": 20 + }, + "identifierName": "normalize" + }, + "name": "normalize" + }, + "arguments": [ + { + "type": "Identifier", + "start": 5665, + "end": 5670, + "loc": { + "start": { + "line": 227, + "column": 21 + }, + "end": { + "line": 227, + "column": 26 + }, + "identifierName": "Len_X" + }, + "name": "Len_X" + }, + { + "type": "Identifier", + "start": 5672, + "end": 5677, + "loc": { + "start": { + "line": 227, + "column": 28 + }, + "end": { + "line": 227, + "column": 33 + }, + "identifierName": "Len_Y" + }, + "name": "Len_Y" + } + ] + } + ] + } + ] + }, + "operator": "*", + "right": { + "type": "NumericLiteral", + "start": 5683, + "end": 5686, + "loc": { + "start": { + "line": 227, + "column": 39 + }, + "end": { + "line": 227, + "column": 42 + } + }, + "extra": { + "rawValue": 180, + "raw": "180" + }, + "value": 180 + } + }, + "operator": "/", + "right": { + "type": "MemberExpression", + "start": 5689, + "end": 5696, + "loc": { + "start": { + "line": 227, + "column": 45 + }, + "end": { + "line": 227, + "column": 52 + } + }, + "object": { "type": "Identifier", - "start": 6169, - "end": 6171, + "start": 5689, + "end": 5693, "loc": { "start": { - "line": 229, - "column": 12 + "line": 227, + "column": 45 }, "end": { - "line": 229, - "column": 14 + "line": 227, + "column": 49 }, - "identifierName": "x3" + "identifierName": "Math" }, - "name": "x3" + "name": "Math" }, - "init": { - "type": "BinaryExpression", - "start": 6174, - "end": 6184, + "property": { + "type": "Identifier", + "start": 5694, + "end": 5696, "loc": { "start": { - "line": 229, - "column": 17 + "line": 227, + "column": 50 }, "end": { - "line": 229, - "column": 27 - } - }, - "left": { - "type": "Identifier", - "start": 6174, - "end": 6176, - "loc": { - "start": { - "line": 229, - "column": 17 - }, - "end": { - "line": 229, - "column": 19 - }, - "identifierName": "y3" + "line": 227, + "column": 52 }, - "name": "y3" + "identifierName": "PI" }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 6179, - "end": 6184, - "loc": { - "start": { - "line": 229, - "column": 22 - }, - "end": { - "line": 229, - "column": 27 - }, - "identifierName": "scale" - }, - "name": "scale" - } - } + "name": "PI" + }, + "computed": false } - ], - "kind": "let" + } + } + ], + "directives": [] + } + }, + { + "type": "VariableDeclaration", + "start": 5708, + "end": 5746, + "loc": { + "start": { + "line": 230, + "column": 4 + }, + "end": { + "line": 230, + "column": 42 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5712, + "end": 5745, + "loc": { + "start": { + "line": 230, + "column": 8 + }, + "end": { + "line": 230, + "column": 41 + } }, - { - "type": "ExpressionStatement", - "start": 6194, - "end": 6270, + "id": { + "type": "Identifier", + "start": 5712, + "end": 5723, "loc": { "start": { "line": 230, "column": 8 }, "end": { - "line": 233, - "column": 9 + "line": 230, + "column": 19 + }, + "identifierName": "angleTarget" + }, + "name": "angleTarget" + }, + "init": { + "type": "CallExpression", + "start": 5726, + "end": 5745, + "loc": { + "start": { + "line": 230, + "column": 22 + }, + "end": { + "line": 230, + "column": 41 } }, - "expression": { - "type": "AssignmentExpression", - "start": 6194, - "end": 6270, + "callee": { + "type": "Identifier", + "start": 5726, + "end": 5731, "loc": { "start": { "line": 230, - "column": 8 + "column": 22 }, "end": { - "line": 233, - "column": 9 - } + "line": 230, + "column": 27 + }, + "identifierName": "angle" }, - "operator": "=", - "left": { + "name": "angle" + }, + "arguments": [ + { "type": "Identifier", - "start": 6194, - "end": 6197, + "start": 5732, + "end": 5737, "loc": { "start": { "line": 230, - "column": 8 + "column": 28 }, "end": { "line": 230, - "column": 11 + "column": 33 }, - "identifierName": "res" + "identifierName": "Len_X" }, - "name": "res" + "name": "Len_X" }, - "right": { - "type": "ObjectExpression", - "start": 6200, - "end": 6270, + { + "type": "Identifier", + "start": 5739, + "end": 5744, "loc": { "start": { "line": 230, - "column": 14 + "column": 35 }, "end": { - "line": 233, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6214, - "end": 6230, - "loc": { - "start": { - "line": 231, - "column": 12 - }, - "end": { - "line": 231, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6214, - "end": 6215, - "loc": { - "start": { - "line": 231, - "column": 12 - }, - "end": { - "line": 231, - "column": 13 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 6217, - "end": 6230, - "loc": { - "start": { - "line": 231, - "column": 15 - }, - "end": { - "line": 231, - "column": 28 - } - }, - "left": { - "type": "MemberExpression", - "start": 6217, - "end": 6225, - "loc": { - "start": { - "line": 231, - "column": 15 - }, - "end": { - "line": 231, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 6217, - "end": 6223, - "loc": { - "start": { - "line": 231, - "column": 15 - }, - "end": { - "line": 231, - "column": 21 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6224, - "end": 6225, - "loc": { - "start": { - "line": 231, - "column": 22 - }, - "end": { - "line": 231, - "column": 23 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 6228, - "end": 6230, - "loc": { - "start": { - "line": 231, - "column": 26 - }, - "end": { - "line": 231, - "column": 28 - }, - "identifierName": "y3" - }, - "name": "y3" - } - } + "line": 230, + "column": 40 }, - { - "type": "ObjectProperty", - "start": 6244, - "end": 6260, - "loc": { - "start": { - "line": 232, - "column": 12 - }, - "end": { - "line": 232, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6244, - "end": 6245, - "loc": { - "start": { - "line": 232, - "column": 12 - }, - "end": { - "line": 232, - "column": 13 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 6247, - "end": 6260, - "loc": { - "start": { - "line": 232, - "column": 15 - }, - "end": { - "line": 232, - "column": 28 - } - }, - "left": { - "type": "MemberExpression", - "start": 6247, - "end": 6255, - "loc": { - "start": { - "line": 232, - "column": 15 - }, - "end": { - "line": 232, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 6247, - "end": 6253, - "loc": { - "start": { - "line": 232, - "column": 15 - }, - "end": { - "line": 232, - "column": 21 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6254, - "end": 6255, - "loc": { - "start": { - "line": 232, - "column": 22 - }, - "end": { - "line": 232, - "column": 23 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 6258, - "end": 6260, - "loc": { - "start": { - "line": 232, - "column": 26 - }, - "end": { - "line": 232, - "column": 28 - }, - "identifierName": "x3" - }, - "name": "x3" - } - } - } - ] + "identifierName": "Len_Y" + }, + "name": "Len_Y" } - } + ] } - ], - "directives": [] + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 5751, + "end": 5811, + "loc": { + "start": { + "line": 231, + "column": 4 + }, + "end": { + "line": 231, + "column": 64 + } }, - "alternate": { - "type": "IfStatement", - "start": 6282, - "end": 7067, + "test": { + "type": "BinaryExpression", + "start": 5755, + "end": 5777, "loc": { "start": { - "line": 234, - "column": 11 + "line": 231, + "column": 8 }, "end": { - "line": 262, - "column": 5 + "line": 231, + "column": 30 } }, - "test": { - "type": "BinaryExpression", - "start": 6285, - "end": 6315, + "left": { + "type": "MemberExpression", + "start": 5755, + "end": 5766, "loc": { "start": { - "line": 234, - "column": 14 + "line": 231, + "column": 8 }, "end": { - "line": 234, - "column": 44 + "line": 231, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 5755, + "end": 5764, + "loc": { + "start": { + "line": 231, + "column": 8 + }, + "end": { + "line": 231, + "column": 17 + }, + "identifierName": "transform" + }, + "name": "transform" + }, + "property": { + "type": "Identifier", + "start": 5765, + "end": 5766, + "loc": { + "start": { + "line": 231, + "column": 18 + }, + "end": { + "line": 231, + "column": 19 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "<", + "right": { + "type": "MemberExpression", + "start": 5769, + "end": 5777, + "loc": { + "start": { + "line": 231, + "column": 22 + }, + "end": { + "line": 231, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 5769, + "end": 5775, + "loc": { + "start": { + "line": 231, + "column": 22 + }, + "end": { + "line": 231, + "column": 28 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 5776, + "end": 5777, + "loc": { + "start": { + "line": 231, + "column": 29 + }, + "end": { + "line": 231, + "column": 30 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 5779, + "end": 5811, + "loc": { + "start": { + "line": 231, + "column": 32 + }, + "end": { + "line": 231, + "column": 64 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5779, + "end": 5810, + "loc": { + "start": { + "line": 231, + "column": 32 + }, + "end": { + "line": 231, + "column": 63 } }, + "operator": "=", "left": { "type": "Identifier", - "start": 6285, - "end": 6296, + "start": 5779, + "end": 5790, "loc": { "start": { - "line": 234, - "column": 14 + "line": 231, + "column": 32 }, "end": { - "line": 234, - "column": 25 + "line": 231, + "column": 43 }, "identifierName": "angleTarget" }, "name": "angleTarget" }, - "operator": "<", "right": { - "type": "Identifier", - "start": 6299, - "end": 6315, + "type": "BinaryExpression", + "start": 5793, + "end": 5810, "loc": { "start": { - "line": 234, - "column": 28 + "line": 231, + "column": 46 }, "end": { - "line": 234, - "column": 44 + "line": 231, + "column": 63 + } + }, + "left": { + "type": "NumericLiteral", + "start": 5793, + "end": 5796, + "loc": { + "start": { + "line": 231, + "column": 46 + }, + "end": { + "line": 231, + "column": 49 + } }, - "identifierName": "angleRightBottom" + "extra": { + "rawValue": 360, + "raw": "360" + }, + "value": 360 }, - "name": "angleRightBottom" + "operator": "-", + "right": { + "type": "Identifier", + "start": 5799, + "end": 5810, + "loc": { + "start": { + "line": 231, + "column": 52 + }, + "end": { + "line": 231, + "column": 63 + }, + "identifierName": "angleTarget" + }, + "name": "angleTarget" + } } + } + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 5816, + "end": 5897, + "loc": { + "start": { + "line": 232, + "column": 4 }, - "consequent": { - "type": "BlockStatement", - "start": 6317, - "end": 6490, + "end": { + "line": 232, + "column": 85 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5820, + "end": 5896, "loc": { "start": { - "line": 234, - "column": 46 + "line": 232, + "column": 8 }, "end": { - "line": 241, - "column": 5 + "line": 232, + "column": 84 } }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6327, - "end": 6370, + "id": { + "type": "Identifier", + "start": 5820, + "end": 5832, + "loc": { + "start": { + "line": 232, + "column": 8 + }, + "end": { + "line": 232, + "column": 20 + }, + "identifierName": "angleLeftTop" + }, + "name": "angleLeftTop" + }, + "init": { + "type": "BinaryExpression", + "start": 5835, + "end": 5896, + "loc": { + "start": { + "line": 232, + "column": 23 + }, + "end": { + "line": 232, + "column": 84 + } + }, + "left": { + "type": "NumericLiteral", + "start": 5835, + "end": 5838, "loc": { "start": { - "line": 235, - "column": 8 + "line": 232, + "column": 23 }, "end": { - "line": 235, - "column": 51 + "line": 232, + "column": 26 } }, - "declarations": [ + "extra": { + "rawValue": 360, + "raw": "360" + }, + "value": 360 + }, + "operator": "-", + "right": { + "type": "CallExpression", + "start": 5841, + "end": 5896, + "loc": { + "start": { + "line": 232, + "column": 29 + }, + "end": { + "line": 232, + "column": 84 + } + }, + "callee": { + "type": "Identifier", + "start": 5841, + "end": 5846, + "loc": { + "start": { + "line": 232, + "column": 29 + }, + "end": { + "line": 232, + "column": 34 + }, + "identifierName": "angle" + }, + "name": "angle" + }, + "arguments": [ { - "type": "VariableDeclarator", - "start": 6331, - "end": 6369, + "type": "BinaryExpression", + "start": 5847, + "end": 5867, "loc": { "start": { - "line": 235, - "column": 12 + "line": 232, + "column": 35 }, "end": { - "line": 235, - "column": 50 + "line": 232, + "column": 55 } }, - "id": { - "type": "Identifier", - "start": 6331, - "end": 6333, + "left": { + "type": "MemberExpression", + "start": 5847, + "end": 5856, "loc": { "start": { - "line": 235, - "column": 12 + "line": 232, + "column": 35 }, "end": { - "line": 235, - "column": 14 + "line": 232, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 5847, + "end": 5851, + "loc": { + "start": { + "line": 232, + "column": 35 + }, + "end": { + "line": 232, + "column": 39 + }, + "identifierName": "rect" }, - "identifierName": "x3" + "name": "rect" }, - "name": "x3" + "property": { + "type": "Identifier", + "start": 5852, + "end": 5856, + "loc": { + "start": { + "line": 232, + "column": 40 + }, + "end": { + "line": 232, + "column": 44 + }, + "identifierName": "left" + }, + "name": "left" + }, + "computed": false }, - "init": { + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 5859, + "end": 5867, + "loc": { + "start": { + "line": 232, + "column": 47 + }, + "end": { + "line": 232, + "column": 55 + } + }, + "object": { + "type": "Identifier", + "start": 5859, + "end": 5865, + "loc": { + "start": { + "line": 232, + "column": 47 + }, + "end": { + "line": 232, + "column": 53 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 5866, + "end": 5867, + "loc": { + "start": { + "line": 232, + "column": 54 + }, + "end": { + "line": 232, + "column": 55 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } + }, + { + "type": "BinaryExpression", + "start": 5869, + "end": 5895, + "loc": { + "start": { + "line": 232, + "column": 57 + }, + "end": { + "line": 232, + "column": 83 + } + }, + "left": { "type": "BinaryExpression", - "start": 6336, - "end": 6369, + "start": 5870, + "end": 5889, "loc": { "start": { - "line": 235, - "column": 17 + "line": 232, + "column": 58 }, "end": { - "line": 235, - "column": 50 + "line": 232, + "column": 77 } }, "left": { - "type": "BinaryExpression", - "start": 6336, - "end": 6358, + "type": "MemberExpression", + "start": 5870, + "end": 5878, "loc": { "start": { - "line": 235, - "column": 17 + "line": 232, + "column": 58 }, "end": { - "line": 235, - "column": 39 + "line": 232, + "column": 66 } }, - "left": { - "type": "MemberExpression", - "start": 6336, - "end": 6345, + "object": { + "type": "Identifier", + "start": 5870, + "end": 5874, "loc": { "start": { - "line": 235, - "column": 17 + "line": 232, + "column": 58 }, "end": { - "line": 235, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 6336, - "end": 6340, - "loc": { - "start": { - "line": 235, - "column": 17 - }, - "end": { - "line": 235, - "column": 21 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 6341, - "end": 6345, - "loc": { - "start": { - "line": 235, - "column": 22 - }, - "end": { - "line": 235, - "column": 26 - }, - "identifierName": "left" + "line": 232, + "column": 62 }, - "name": "left" + "identifierName": "rect" }, - "computed": false + "name": "rect" }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 6348, - "end": 6358, + "property": { + "type": "Identifier", + "start": 5875, + "end": 5878, "loc": { "start": { - "line": 235, - "column": 29 + "line": 232, + "column": 63 }, "end": { - "line": 235, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 6348, - "end": 6352, - "loc": { - "start": { - "line": 235, - "column": 29 - }, - "end": { - "line": 235, - "column": 33 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 6353, - "end": 6358, - "loc": { - "start": { - "line": 235, - "column": 34 - }, - "end": { - "line": 235, - "column": 39 - }, - "identifierName": "width" + "line": 232, + "column": 66 }, - "name": "width" + "identifierName": "top" }, - "computed": false - } + "name": "top" + }, + "computed": false }, "operator": "-", "right": { "type": "MemberExpression", - "start": 6361, - "end": 6369, + "start": 5881, + "end": 5889, "loc": { "start": { - "line": 235, - "column": 42 + "line": 232, + "column": 69 }, "end": { - "line": 235, - "column": 50 + "line": 232, + "column": 77 } }, "object": { "type": "Identifier", - "start": 6361, - "end": 6367, + "start": 5881, + "end": 5887, "loc": { "start": { - "line": 235, - "column": 42 + "line": 232, + "column": 69 }, "end": { - "line": 235, - "column": 48 + "line": 232, + "column": 75 }, "identifierName": "center" }, @@ -14626,3174 +13158,2089 @@ }, "property": { "type": "Identifier", - "start": 6368, - "end": 6369, + "start": 5888, + "end": 5889, "loc": { "start": { - "line": 235, - "column": 49 + "line": 232, + "column": 76 }, "end": { - "line": 235, - "column": 50 + "line": 232, + "column": 77 }, - "identifierName": "x" + "identifierName": "y" }, - "name": "x" + "name": "y" }, "computed": false - } - } + }, + "extra": { + "parenthesized": true, + "parenStart": 5869 + } + }, + "operator": "*", + "right": { + "type": "UnaryExpression", + "start": 5893, + "end": 5895, + "loc": { + "start": { + "line": 232, + "column": 81 + }, + "end": { + "line": 232, + "column": 83 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "NumericLiteral", + "start": 5894, + "end": 5895, + "loc": { + "start": { + "line": 232, + "column": 82 + }, + "end": { + "line": 232, + "column": 83 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "extra": { + "parenthesizedArgument": false + } + } } - ], - "kind": "let" + ] + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 5902, + "end": 6000, + "loc": { + "start": { + "line": 233, + "column": 4 + }, + "end": { + "line": 233, + "column": 102 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5906, + "end": 5999, + "loc": { + "start": { + "line": 233, + "column": 8 }, - { - "type": "VariableDeclaration", - "start": 6379, - "end": 6399, + "end": { + "line": 233, + "column": 101 + } + }, + "id": { + "type": "Identifier", + "start": 5906, + "end": 5921, + "loc": { + "start": { + "line": 233, + "column": 8 + }, + "end": { + "line": 233, + "column": 23 + }, + "identifierName": "angleLeftBottom" + }, + "name": "angleLeftBottom" + }, + "init": { + "type": "BinaryExpression", + "start": 5924, + "end": 5999, + "loc": { + "start": { + "line": 233, + "column": 26 + }, + "end": { + "line": 233, + "column": 101 + } + }, + "left": { + "type": "NumericLiteral", + "start": 5924, + "end": 5927, "loc": { "start": { - "line": 236, - "column": 8 + "line": 233, + "column": 26 }, "end": { - "line": 236, - "column": 28 + "line": 233, + "column": 29 } }, - "declarations": [ + "extra": { + "rawValue": 360, + "raw": "360" + }, + "value": 360 + }, + "operator": "-", + "right": { + "type": "CallExpression", + "start": 5930, + "end": 5999, + "loc": { + "start": { + "line": 233, + "column": 32 + }, + "end": { + "line": 233, + "column": 101 + } + }, + "callee": { + "type": "Identifier", + "start": 5930, + "end": 5935, + "loc": { + "start": { + "line": 233, + "column": 32 + }, + "end": { + "line": 233, + "column": 37 + }, + "identifierName": "angle" + }, + "name": "angle" + }, + "arguments": [ { - "type": "VariableDeclarator", - "start": 6383, - "end": 6398, + "type": "BinaryExpression", + "start": 5936, + "end": 5956, "loc": { "start": { - "line": 236, - "column": 12 + "line": 233, + "column": 38 }, "end": { - "line": 236, - "column": 27 + "line": 233, + "column": 58 } }, - "id": { - "type": "Identifier", - "start": 6383, - "end": 6385, + "left": { + "type": "MemberExpression", + "start": 5936, + "end": 5945, "loc": { "start": { - "line": 236, - "column": 12 + "line": 233, + "column": 38 }, "end": { - "line": 236, - "column": 14 + "line": 233, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 5936, + "end": 5940, + "loc": { + "start": { + "line": 233, + "column": 38 + }, + "end": { + "line": 233, + "column": 42 + }, + "identifierName": "rect" }, - "identifierName": "y3" + "name": "rect" }, - "name": "y3" + "property": { + "type": "Identifier", + "start": 5941, + "end": 5945, + "loc": { + "start": { + "line": 233, + "column": 43 + }, + "end": { + "line": 233, + "column": 47 + }, + "identifierName": "left" + }, + "name": "left" + }, + "computed": false }, - "init": { - "type": "BinaryExpression", - "start": 6388, - "end": 6398, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 5948, + "end": 5956, "loc": { "start": { - "line": 236, - "column": 17 + "line": 233, + "column": 50 }, "end": { - "line": 236, - "column": 27 + "line": 233, + "column": 58 } }, - "left": { + "object": { "type": "Identifier", - "start": 6388, - "end": 6390, + "start": 5948, + "end": 5954, "loc": { "start": { - "line": 236, - "column": 17 + "line": 233, + "column": 50 }, "end": { - "line": 236, - "column": 19 + "line": 233, + "column": 56 }, - "identifierName": "x3" + "identifierName": "center" }, - "name": "x3" + "name": "center" }, - "operator": "*", - "right": { + "property": { "type": "Identifier", - "start": 6393, - "end": 6398, + "start": 5955, + "end": 5956, "loc": { "start": { - "line": 236, - "column": 22 + "line": 233, + "column": 57 }, "end": { - "line": 236, - "column": 27 + "line": 233, + "column": 58 }, - "identifierName": "scale" + "identifierName": "x" }, - "name": "scale" - } - } - } - ], - "kind": "let" - }, - { - "type": "ExpressionStatement", - "start": 6408, - "end": 6484, - "loc": { - "start": { - "line": 237, - "column": 8 - }, - "end": { - "line": 240, - "column": 9 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 6408, - "end": 6484, - "loc": { - "start": { - "line": 237, - "column": 8 - }, - "end": { - "line": 240, - "column": 9 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 6408, - "end": 6411, - "loc": { - "start": { - "line": 237, - "column": 8 - }, - "end": { - "line": 237, - "column": 11 + "name": "x" }, - "identifierName": "res" - }, - "name": "res" + "computed": false + } }, - "right": { - "type": "ObjectExpression", - "start": 6414, - "end": 6484, + { + "type": "BinaryExpression", + "start": 5958, + "end": 5998, "loc": { "start": { - "line": 237, - "column": 14 + "line": 233, + "column": 60 }, "end": { - "line": 240, - "column": 9 + "line": 233, + "column": 100 } }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6428, - "end": 6444, + "left": { + "type": "BinaryExpression", + "start": 5959, + "end": 5992, + "loc": { + "start": { + "line": 233, + "column": 61 + }, + "end": { + "line": 233, + "column": 94 + } + }, + "left": { + "type": "BinaryExpression", + "start": 5959, + "end": 5981, "loc": { "start": { - "line": 238, - "column": 12 + "line": 233, + "column": 61 }, "end": { - "line": 238, - "column": 28 + "line": 233, + "column": 83 } }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6428, - "end": 6429, + "left": { + "type": "MemberExpression", + "start": 5959, + "end": 5967, "loc": { "start": { - "line": 238, - "column": 12 + "line": 233, + "column": 61 }, "end": { - "line": 238, - "column": 13 + "line": 233, + "column": 69 + } + }, + "object": { + "type": "Identifier", + "start": 5959, + "end": 5963, + "loc": { + "start": { + "line": 233, + "column": 61 + }, + "end": { + "line": 233, + "column": 65 + }, + "identifierName": "rect" }, - "identifierName": "y" + "name": "rect" }, - "name": "y" + "property": { + "type": "Identifier", + "start": 5964, + "end": 5967, + "loc": { + "start": { + "line": 233, + "column": 66 + }, + "end": { + "line": 233, + "column": 69 + }, + "identifierName": "top" + }, + "name": "top" + }, + "computed": false }, - "value": { - "type": "BinaryExpression", - "start": 6431, - "end": 6444, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 5970, + "end": 5981, "loc": { "start": { - "line": 238, - "column": 15 + "line": 233, + "column": 72 }, "end": { - "line": 238, - "column": 28 + "line": 233, + "column": 83 } }, - "left": { - "type": "MemberExpression", - "start": 6431, - "end": 6439, + "object": { + "type": "Identifier", + "start": 5970, + "end": 5974, "loc": { "start": { - "line": 238, - "column": 15 + "line": 233, + "column": 72 }, "end": { - "line": 238, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 6431, - "end": 6437, - "loc": { - "start": { - "line": 238, - "column": 15 - }, - "end": { - "line": 238, - "column": 21 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6438, - "end": 6439, - "loc": { - "start": { - "line": 238, - "column": 22 - }, - "end": { - "line": 238, - "column": 23 - }, - "identifierName": "y" + "line": 233, + "column": 76 }, - "name": "y" + "identifierName": "rect" }, - "computed": false + "name": "rect" }, - "operator": "+", - "right": { + "property": { "type": "Identifier", - "start": 6442, - "end": 6444, + "start": 5975, + "end": 5981, "loc": { "start": { - "line": 238, - "column": 26 + "line": 233, + "column": 77 }, "end": { - "line": 238, - "column": 28 + "line": 233, + "column": 83 }, - "identifierName": "y3" + "identifierName": "height" }, - "name": "y3" - } + "name": "height" + }, + "computed": false } }, - { - "type": "ObjectProperty", - "start": 6458, - "end": 6474, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 5984, + "end": 5992, "loc": { "start": { - "line": 239, - "column": 12 + "line": 233, + "column": 86 }, "end": { - "line": 239, - "column": 28 + "line": 233, + "column": 94 } }, - "method": false, - "shorthand": false, - "computed": false, - "key": { + "object": { "type": "Identifier", - "start": 6458, - "end": 6459, + "start": 5984, + "end": 5990, "loc": { "start": { - "line": 239, - "column": 12 + "line": 233, + "column": 86 }, "end": { - "line": 239, - "column": 13 + "line": 233, + "column": 92 }, - "identifierName": "x" + "identifierName": "center" }, - "name": "x" + "name": "center" }, - "value": { - "type": "BinaryExpression", - "start": 6461, - "end": 6474, + "property": { + "type": "Identifier", + "start": 5991, + "end": 5992, "loc": { "start": { - "line": 239, - "column": 15 + "line": 233, + "column": 93 }, "end": { - "line": 239, - "column": 28 - } - }, - "left": { - "type": "MemberExpression", - "start": 6461, - "end": 6469, - "loc": { - "start": { - "line": 239, - "column": 15 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 6461, - "end": 6467, - "loc": { - "start": { - "line": 239, - "column": 15 - }, - "end": { - "line": 239, - "column": 21 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6468, - "end": 6469, - "loc": { - "start": { - "line": 239, - "column": 22 - }, - "end": { - "line": 239, - "column": 23 - }, - "identifierName": "x" - }, - "name": "x" + "line": 233, + "column": 94 }, - "computed": false + "identifierName": "y" }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 6472, - "end": 6474, - "loc": { - "start": { - "line": 239, - "column": 26 - }, - "end": { - "line": 239, - "column": 28 - }, - "identifierName": "x3" - }, - "name": "x3" - } - } + "name": "y" + }, + "computed": false + }, + "extra": { + "parenthesized": true, + "parenStart": 5958 } - ] - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 6496, - "end": 7067, - "loc": { - "start": { - "line": 241, - "column": 11 - }, - "end": { - "line": 262, - "column": 5 - } - }, - "test": { - "type": "BinaryExpression", - "start": 6500, - "end": 6529, - "loc": { - "start": { - "line": 241, - "column": 15 - }, - "end": { - "line": 241, - "column": 44 - } - }, - "left": { - "type": "Identifier", - "start": 6500, - "end": 6511, - "loc": { - "start": { - "line": 241, - "column": 15 - }, - "end": { - "line": 241, - "column": 26 - }, - "identifierName": "angleTarget" + }, + "operator": "*", + "right": { + "type": "UnaryExpression", + "start": 5996, + "end": 5998, + "loc": { + "start": { + "line": 233, + "column": 98 + }, + "end": { + "line": 233, + "column": 100 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "NumericLiteral", + "start": 5997, + "end": 5998, + "loc": { + "start": { + "line": 233, + "column": 99 + }, + "end": { + "line": 233, + "column": 100 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "extra": { + "parenthesizedArgument": false + } + } + } + ] + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6005, + "end": 6094, + "loc": { + "start": { + "line": 234, + "column": 4 + }, + "end": { + "line": 234, + "column": 93 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6009, + "end": 6093, + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 234, + "column": 92 + } + }, + "id": { + "type": "Identifier", + "start": 6009, + "end": 6022, + "loc": { + "start": { + "line": 234, + "column": 8 }, - "name": "angleTarget" + "end": { + "line": 234, + "column": 21 + }, + "identifierName": "angleRightTop" }, - "operator": "<", - "right": { + "name": "angleRightTop" + }, + "init": { + "type": "CallExpression", + "start": 6025, + "end": 6093, + "loc": { + "start": { + "line": 234, + "column": 24 + }, + "end": { + "line": 234, + "column": 92 + } + }, + "callee": { "type": "Identifier", - "start": 6514, - "end": 6529, + "start": 6025, + "end": 6030, "loc": { "start": { - "line": 241, - "column": 29 + "line": 234, + "column": 24 }, "end": { - "line": 241, - "column": 44 + "line": 234, + "column": 29 }, - "identifierName": "angleLeftBottom" - }, - "name": "angleLeftBottom" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 6531, - "end": 6704, - "loc": { - "start": { - "line": 241, - "column": 46 + "identifierName": "angle" }, - "end": { - "line": 248, - "column": 5 - } + "name": "angle" }, - "body": [ + "arguments": [ { - "type": "VariableDeclaration", - "start": 6541, - "end": 6584, + "type": "BinaryExpression", + "start": 6031, + "end": 6064, "loc": { "start": { - "line": 242, - "column": 8 + "line": 234, + "column": 30 }, "end": { - "line": 242, - "column": 51 + "line": 234, + "column": 63 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6545, - "end": 6583, + "left": { + "type": "BinaryExpression", + "start": 6031, + "end": 6053, + "loc": { + "start": { + "line": 234, + "column": 30 + }, + "end": { + "line": 234, + "column": 52 + } + }, + "left": { + "type": "MemberExpression", + "start": 6031, + "end": 6040, "loc": { "start": { - "line": 242, - "column": 12 + "line": 234, + "column": 30 }, "end": { - "line": 242, - "column": 50 + "line": 234, + "column": 39 } }, - "id": { + "object": { "type": "Identifier", - "start": 6545, - "end": 6547, + "start": 6031, + "end": 6035, "loc": { "start": { - "line": 242, - "column": 12 + "line": 234, + "column": 30 }, "end": { - "line": 242, - "column": 14 + "line": 234, + "column": 34 }, - "identifierName": "y3" + "identifierName": "rect" }, - "name": "y3" + "name": "rect" }, - "init": { - "type": "BinaryExpression", - "start": 6550, - "end": 6583, + "property": { + "type": "Identifier", + "start": 6036, + "end": 6040, "loc": { "start": { - "line": 242, - "column": 17 + "line": 234, + "column": 35 }, "end": { - "line": 242, - "column": 50 - } - }, - "left": { - "type": "BinaryExpression", - "start": 6550, - "end": 6572, - "loc": { - "start": { - "line": 242, - "column": 17 - }, - "end": { - "line": 242, - "column": 39 - } - }, - "left": { - "type": "MemberExpression", - "start": 6550, - "end": 6558, - "loc": { - "start": { - "line": 242, - "column": 17 - }, - "end": { - "line": 242, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 6550, - "end": 6554, - "loc": { - "start": { - "line": 242, - "column": 17 - }, - "end": { - "line": 242, - "column": 21 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 6555, - "end": 6558, - "loc": { - "start": { - "line": 242, - "column": 22 - }, - "end": { - "line": 242, - "column": 25 - }, - "identifierName": "top" - }, - "name": "top" - }, - "computed": false + "line": 234, + "column": 39 }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 6561, - "end": 6572, - "loc": { - "start": { - "line": 242, - "column": 28 - }, - "end": { - "line": 242, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 6561, - "end": 6565, - "loc": { - "start": { - "line": 242, - "column": 28 - }, - "end": { - "line": 242, - "column": 32 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 6566, - "end": 6572, - "loc": { - "start": { - "line": 242, - "column": 33 - }, - "end": { - "line": 242, - "column": 39 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } + "identifierName": "left" }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 6575, - "end": 6583, - "loc": { - "start": { - "line": 242, - "column": 42 - }, - "end": { - "line": 242, - "column": 50 - } - }, - "object": { - "type": "Identifier", - "start": 6575, - "end": 6581, - "loc": { - "start": { - "line": 242, - "column": 42 - }, - "end": { - "line": 242, - "column": 48 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6582, - "end": 6583, - "loc": { - "start": { - "line": 242, - "column": 49 - }, - "end": { - "line": 242, - "column": 50 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 6593, - "end": 6613, - "loc": { - "start": { - "line": 243, - "column": 8 + "name": "left" + }, + "computed": false }, - "end": { - "line": 243, - "column": 28 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6597, - "end": 6612, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 6043, + "end": 6053, "loc": { "start": { - "line": 243, - "column": 12 + "line": 234, + "column": 42 }, "end": { - "line": 243, - "column": 27 + "line": 234, + "column": 52 } }, - "id": { + "object": { "type": "Identifier", - "start": 6597, - "end": 6599, + "start": 6043, + "end": 6047, "loc": { "start": { - "line": 243, - "column": 12 + "line": 234, + "column": 42 }, "end": { - "line": 243, - "column": 14 + "line": 234, + "column": 46 }, - "identifierName": "x3" + "identifierName": "rect" }, - "name": "x3" + "name": "rect" }, - "init": { - "type": "BinaryExpression", - "start": 6602, - "end": 6612, + "property": { + "type": "Identifier", + "start": 6048, + "end": 6053, "loc": { "start": { - "line": 243, - "column": 17 + "line": 234, + "column": 47 }, "end": { - "line": 243, - "column": 27 - } - }, - "left": { - "type": "Identifier", - "start": 6602, - "end": 6604, - "loc": { - "start": { - "line": 243, - "column": 17 - }, - "end": { - "line": 243, - "column": 19 - }, - "identifierName": "y3" + "line": 234, + "column": 52 }, - "name": "y3" + "identifierName": "width" }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 6607, - "end": 6612, - "loc": { - "start": { - "line": 243, - "column": 22 - }, - "end": { - "line": 243, - "column": 27 - }, - "identifierName": "scale" - }, - "name": "scale" - } - } + "name": "width" + }, + "computed": false } - ], - "kind": "let" + }, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 6056, + "end": 6064, + "loc": { + "start": { + "line": 234, + "column": 55 + }, + "end": { + "line": 234, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 6056, + "end": 6062, + "loc": { + "start": { + "line": 234, + "column": 55 + }, + "end": { + "line": 234, + "column": 61 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 6063, + "end": 6064, + "loc": { + "start": { + "line": 234, + "column": 62 + }, + "end": { + "line": 234, + "column": 63 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } }, { - "type": "ExpressionStatement", - "start": 6622, - "end": 6698, + "type": "BinaryExpression", + "start": 6066, + "end": 6092, "loc": { "start": { - "line": 244, - "column": 8 + "line": 234, + "column": 65 }, "end": { - "line": 247, - "column": 9 + "line": 234, + "column": 91 } }, - "expression": { - "type": "AssignmentExpression", - "start": 6622, - "end": 6698, + "left": { + "type": "BinaryExpression", + "start": 6067, + "end": 6086, "loc": { "start": { - "line": 244, - "column": 8 + "line": 234, + "column": 66 }, "end": { - "line": 247, - "column": 9 + "line": 234, + "column": 85 } }, - "operator": "=", "left": { - "type": "Identifier", - "start": 6622, - "end": 6625, + "type": "MemberExpression", + "start": 6067, + "end": 6075, "loc": { "start": { - "line": 244, - "column": 8 + "line": 234, + "column": 66 }, "end": { - "line": 244, - "column": 11 + "line": 234, + "column": 74 + } + }, + "object": { + "type": "Identifier", + "start": 6067, + "end": 6071, + "loc": { + "start": { + "line": 234, + "column": 66 + }, + "end": { + "line": 234, + "column": 70 + }, + "identifierName": "rect" }, - "identifierName": "res" + "name": "rect" }, - "name": "res" + "property": { + "type": "Identifier", + "start": 6072, + "end": 6075, + "loc": { + "start": { + "line": 234, + "column": 71 + }, + "end": { + "line": 234, + "column": 74 + }, + "identifierName": "top" + }, + "name": "top" + }, + "computed": false }, + "operator": "-", "right": { - "type": "ObjectExpression", - "start": 6628, - "end": 6698, + "type": "MemberExpression", + "start": 6078, + "end": 6086, "loc": { "start": { - "line": 244, - "column": 14 + "line": 234, + "column": 77 }, "end": { - "line": 247, - "column": 9 + "line": 234, + "column": 85 } }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6642, - "end": 6658, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 28 - } + "object": { + "type": "Identifier", + "start": 6078, + "end": 6084, + "loc": { + "start": { + "line": 234, + "column": 77 }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6642, - "end": 6643, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 13 - }, - "identifierName": "y" - }, - "name": "y" + "end": { + "line": 234, + "column": 83 }, - "value": { - "type": "BinaryExpression", - "start": 6645, - "end": 6658, - "loc": { - "start": { - "line": 245, - "column": 15 - }, - "end": { - "line": 245, - "column": 28 - } - }, - "left": { - "type": "MemberExpression", - "start": 6645, - "end": 6653, - "loc": { - "start": { - "line": 245, - "column": 15 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 6645, - "end": 6651, - "loc": { - "start": { - "line": 245, - "column": 15 - }, - "end": { - "line": 245, - "column": 21 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6652, - "end": 6653, - "loc": { - "start": { - "line": 245, - "column": 22 - }, - "end": { - "line": 245, - "column": 23 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 6656, - "end": 6658, - "loc": { - "start": { - "line": 245, - "column": 26 - }, - "end": { - "line": 245, - "column": 28 - }, - "identifierName": "y3" - }, - "name": "y3" - } - } + "identifierName": "center" }, - { - "type": "ObjectProperty", - "start": 6672, - "end": 6688, - "loc": { - "start": { - "line": 246, - "column": 12 - }, - "end": { - "line": 246, - "column": 28 - } + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 6085, + "end": 6086, + "loc": { + "start": { + "line": 234, + "column": 84 }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6672, - "end": 6673, - "loc": { - "start": { - "line": 246, - "column": 12 - }, - "end": { - "line": 246, - "column": 13 - }, - "identifierName": "x" - }, - "name": "x" + "end": { + "line": 234, + "column": 85 }, - "value": { - "type": "BinaryExpression", - "start": 6675, - "end": 6688, - "loc": { - "start": { - "line": 246, - "column": 15 - }, - "end": { - "line": 246, - "column": 28 - } - }, - "left": { - "type": "MemberExpression", - "start": 6675, - "end": 6683, - "loc": { - "start": { - "line": 246, - "column": 15 - }, - "end": { - "line": 246, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 6675, - "end": 6681, - "loc": { - "start": { - "line": 246, - "column": 15 - }, - "end": { - "line": 246, - "column": 21 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6682, - "end": 6683, - "loc": { - "start": { - "line": 246, - "column": 22 - }, - "end": { - "line": 246, - "column": 23 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 6686, - "end": 6688, - "loc": { - "start": { - "line": 246, - "column": 26 - }, - "end": { - "line": 246, - "column": 28 - }, - "identifierName": "x3" - }, - "name": "x3" - } - } + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "extra": { + "parenthesized": true, + "parenStart": 6066 + } + }, + "operator": "*", + "right": { + "type": "UnaryExpression", + "start": 6090, + "end": 6092, + "loc": { + "start": { + "line": 234, + "column": 89 + }, + "end": { + "line": 234, + "column": 91 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "NumericLiteral", + "start": 6091, + "end": 6092, + "loc": { + "start": { + "line": 234, + "column": 90 + }, + "end": { + "line": 234, + "column": 91 } - ] + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "extra": { + "parenthesizedArgument": false } } } - ], - "directives": [] + ] + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6099, + "end": 6205, + "loc": { + "start": { + "line": 235, + "column": 4 + }, + "end": { + "line": 235, + "column": 110 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6103, + "end": 6204, + "loc": { + "start": { + "line": 235, + "column": 8 + }, + "end": { + "line": 235, + "column": 109 + } }, - "alternate": { - "type": "IfStatement", - "start": 6710, - "end": 7067, + "id": { + "type": "Identifier", + "start": 6103, + "end": 6119, "loc": { "start": { - "line": 248, - "column": 11 + "line": 235, + "column": 8 }, "end": { - "line": 262, - "column": 5 + "line": 235, + "column": 24 + }, + "identifierName": "angleRightBottom" + }, + "name": "angleRightBottom" + }, + "init": { + "type": "CallExpression", + "start": 6122, + "end": 6204, + "loc": { + "start": { + "line": 235, + "column": 27 + }, + "end": { + "line": 235, + "column": 109 } }, - "test": { - "type": "BinaryExpression", - "start": 6714, - "end": 6740, + "callee": { + "type": "Identifier", + "start": 6122, + "end": 6127, "loc": { "start": { - "line": 248, - "column": 15 + "line": 235, + "column": 27 }, "end": { - "line": 248, - "column": 41 - } + "line": 235, + "column": 32 + }, + "identifierName": "angle" }, - "left": { - "type": "Identifier", - "start": 6714, - "end": 6725, + "name": "angle" + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 6128, + "end": 6161, "loc": { "start": { - "line": 248, - "column": 15 + "line": 235, + "column": 33 }, "end": { - "line": 248, - "column": 26 + "line": 235, + "column": 66 + } + }, + "left": { + "type": "BinaryExpression", + "start": 6128, + "end": 6150, + "loc": { + "start": { + "line": 235, + "column": 33 + }, + "end": { + "line": 235, + "column": 55 + } }, - "identifierName": "angleTarget" + "left": { + "type": "MemberExpression", + "start": 6128, + "end": 6137, + "loc": { + "start": { + "line": 235, + "column": 33 + }, + "end": { + "line": 235, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 6128, + "end": 6132, + "loc": { + "start": { + "line": 235, + "column": 33 + }, + "end": { + "line": 235, + "column": 37 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 6133, + "end": 6137, + "loc": { + "start": { + "line": 235, + "column": 38 + }, + "end": { + "line": 235, + "column": 42 + }, + "identifierName": "left" + }, + "name": "left" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 6140, + "end": 6150, + "loc": { + "start": { + "line": 235, + "column": 45 + }, + "end": { + "line": 235, + "column": 55 + } + }, + "object": { + "type": "Identifier", + "start": 6140, + "end": 6144, + "loc": { + "start": { + "line": 235, + "column": 45 + }, + "end": { + "line": 235, + "column": 49 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 6145, + "end": 6150, + "loc": { + "start": { + "line": 235, + "column": 50 + }, + "end": { + "line": 235, + "column": 55 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } }, - "name": "angleTarget" + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 6153, + "end": 6161, + "loc": { + "start": { + "line": 235, + "column": 58 + }, + "end": { + "line": 235, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 6153, + "end": 6159, + "loc": { + "start": { + "line": 235, + "column": 58 + }, + "end": { + "line": 235, + "column": 64 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 6160, + "end": 6161, + "loc": { + "start": { + "line": 235, + "column": 65 + }, + "end": { + "line": 235, + "column": 66 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } }, - "operator": "<", - "right": { - "type": "Identifier", - "start": 6728, - "end": 6740, + { + "type": "BinaryExpression", + "start": 6163, + "end": 6203, "loc": { "start": { - "line": 248, - "column": 29 + "line": 235, + "column": 68 }, "end": { - "line": 248, - "column": 41 - }, - "identifierName": "angleLeftTop" - }, - "name": "angleLeftTop" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 6742, - "end": 6902, - "loc": { - "start": { - "line": 248, - "column": 43 + "line": 235, + "column": 108 + } }, - "end": { - "line": 255, - "column": 5 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6752, - "end": 6782, + "left": { + "type": "BinaryExpression", + "start": 6164, + "end": 6197, "loc": { "start": { - "line": 249, - "column": 8 + "line": 235, + "column": 69 }, "end": { - "line": 249, - "column": 38 + "line": 235, + "column": 102 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6756, - "end": 6781, + "left": { + "type": "BinaryExpression", + "start": 6164, + "end": 6186, + "loc": { + "start": { + "line": 235, + "column": 69 + }, + "end": { + "line": 235, + "column": 91 + } + }, + "left": { + "type": "MemberExpression", + "start": 6164, + "end": 6172, "loc": { "start": { - "line": 249, - "column": 12 + "line": 235, + "column": 69 }, "end": { - "line": 249, - "column": 37 + "line": 235, + "column": 77 } }, - "id": { + "object": { "type": "Identifier", - "start": 6756, - "end": 6758, + "start": 6164, + "end": 6168, "loc": { "start": { - "line": 249, - "column": 12 + "line": 235, + "column": 69 }, "end": { - "line": 249, - "column": 14 + "line": 235, + "column": 73 }, - "identifierName": "x3" + "identifierName": "rect" }, - "name": "x3" + "name": "rect" }, - "init": { - "type": "BinaryExpression", - "start": 6761, - "end": 6781, + "property": { + "type": "Identifier", + "start": 6169, + "end": 6172, "loc": { "start": { - "line": 249, - "column": 17 + "line": 235, + "column": 74 }, "end": { - "line": 249, - "column": 37 - } - }, - "left": { - "type": "MemberExpression", - "start": 6761, - "end": 6769, - "loc": { - "start": { - "line": 249, - "column": 17 - }, - "end": { - "line": 249, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 6761, - "end": 6767, - "loc": { - "start": { - "line": 249, - "column": 17 - }, - "end": { - "line": 249, - "column": 23 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6768, - "end": 6769, - "loc": { - "start": { - "line": 249, - "column": 24 - }, - "end": { - "line": 249, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" + "line": 235, + "column": 77 }, - "computed": false + "identifierName": "top" }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 6772, - "end": 6781, - "loc": { - "start": { - "line": 249, - "column": 28 - }, - "end": { - "line": 249, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 6772, - "end": 6776, - "loc": { - "start": { - "line": 249, - "column": 28 - }, - "end": { - "line": 249, - "column": 32 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 6777, - "end": 6781, - "loc": { - "start": { - "line": 249, - "column": 33 - }, - "end": { - "line": 249, - "column": 37 - }, - "identifierName": "left" - }, - "name": "left" - }, - "computed": false - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 6791, - "end": 6811, - "loc": { - "start": { - "line": 250, - "column": 8 + "name": "top" + }, + "computed": false }, - "end": { - "line": 250, - "column": 28 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6795, - "end": 6810, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 6175, + "end": 6186, "loc": { "start": { - "line": 250, - "column": 12 + "line": 235, + "column": 80 }, "end": { - "line": 250, - "column": 27 + "line": 235, + "column": 91 } }, - "id": { + "object": { "type": "Identifier", - "start": 6795, - "end": 6797, + "start": 6175, + "end": 6179, "loc": { "start": { - "line": 250, - "column": 12 + "line": 235, + "column": 80 }, "end": { - "line": 250, - "column": 14 + "line": 235, + "column": 84 }, - "identifierName": "y3" + "identifierName": "rect" }, - "name": "y3" + "name": "rect" }, - "init": { - "type": "BinaryExpression", - "start": 6800, - "end": 6810, + "property": { + "type": "Identifier", + "start": 6180, + "end": 6186, "loc": { "start": { - "line": 250, - "column": 17 + "line": 235, + "column": 85 }, "end": { - "line": 250, - "column": 27 - } - }, - "left": { - "type": "Identifier", - "start": 6800, - "end": 6802, - "loc": { - "start": { - "line": 250, - "column": 17 - }, - "end": { - "line": 250, - "column": 19 - }, - "identifierName": "x3" + "line": 235, + "column": 91 }, - "name": "x3" + "identifierName": "height" }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 6805, - "end": 6810, - "loc": { - "start": { - "line": 250, - "column": 22 - }, - "end": { - "line": 250, - "column": 27 - }, - "identifierName": "scale" - }, - "name": "scale" - } - } - } - ], - "kind": "let" - }, - { - "type": "ExpressionStatement", - "start": 6820, - "end": 6896, - "loc": { - "start": { - "line": 251, - "column": 8 - }, - "end": { - "line": 254, - "column": 9 + "name": "height" + }, + "computed": false } }, - "expression": { - "type": "AssignmentExpression", - "start": 6820, - "end": 6896, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 6189, + "end": 6197, "loc": { "start": { - "line": 251, - "column": 8 + "line": 235, + "column": 94 }, "end": { - "line": 254, - "column": 9 + "line": 235, + "column": 102 } }, - "operator": "=", - "left": { + "object": { "type": "Identifier", - "start": 6820, - "end": 6823, + "start": 6189, + "end": 6195, "loc": { "start": { - "line": 251, - "column": 8 + "line": 235, + "column": 94 }, "end": { - "line": 251, - "column": 11 + "line": 235, + "column": 100 }, - "identifierName": "res" + "identifierName": "center" }, - "name": "res" + "name": "center" }, - "right": { - "type": "ObjectExpression", - "start": 6826, - "end": 6896, + "property": { + "type": "Identifier", + "start": 6196, + "end": 6197, "loc": { "start": { - "line": 251, - "column": 14 + "line": 235, + "column": 101 }, "end": { - "line": 254, - "column": 9 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6840, - "end": 6856, - "loc": { - "start": { - "line": 252, - "column": 12 - }, - "end": { - "line": 252, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6840, - "end": 6841, - "loc": { - "start": { - "line": 252, - "column": 12 - }, - "end": { - "line": 252, - "column": 13 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 6843, - "end": 6856, - "loc": { - "start": { - "line": 252, - "column": 15 - }, - "end": { - "line": 252, - "column": 28 - } - }, - "left": { - "type": "MemberExpression", - "start": 6843, - "end": 6851, - "loc": { - "start": { - "line": 252, - "column": 15 - }, - "end": { - "line": 252, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 6843, - "end": 6849, - "loc": { - "start": { - "line": 252, - "column": 15 - }, - "end": { - "line": 252, - "column": 21 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6850, - "end": 6851, - "loc": { - "start": { - "line": 252, - "column": 22 - }, - "end": { - "line": 252, - "column": 23 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 6854, - "end": 6856, - "loc": { - "start": { - "line": 252, - "column": 26 - }, - "end": { - "line": 252, - "column": 28 - }, - "identifierName": "y3" - }, - "name": "y3" - } - } + "line": 235, + "column": 102 }, - { - "type": "ObjectProperty", - "start": 6870, - "end": 6886, - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6870, - "end": 6871, - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 13 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 6873, - "end": 6886, - "loc": { - "start": { - "line": 253, - "column": 15 - }, - "end": { - "line": 253, - "column": 28 - } - }, - "left": { - "type": "MemberExpression", - "start": 6873, - "end": 6881, - "loc": { - "start": { - "line": 253, - "column": 15 - }, - "end": { - "line": 253, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 6873, - "end": 6879, - "loc": { - "start": { - "line": 253, - "column": 15 - }, - "end": { - "line": 253, - "column": 21 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6880, - "end": 6881, - "loc": { - "start": { - "line": 253, - "column": 22 - }, - "end": { - "line": 253, - "column": 23 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 6884, - "end": 6886, - "loc": { - "start": { - "line": 253, - "column": 26 - }, - "end": { - "line": 253, - "column": 28 - }, - "identifierName": "x3" - }, - "name": "x3" - } - } - } - ] - } + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "extra": { + "parenthesized": true, + "parenStart": 6163 } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 6908, - "end": 7067, - "loc": { - "start": { - "line": 255, - "column": 11 }, - "end": { - "line": 262, - "column": 5 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6918, - "end": 6947, + "operator": "*", + "right": { + "type": "UnaryExpression", + "start": 6201, + "end": 6203, "loc": { "start": { - "line": 256, - "column": 8 + "line": 235, + "column": 106 }, "end": { - "line": 256, - "column": 37 + "line": 235, + "column": 108 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6922, - "end": 6946, - "loc": { - "start": { - "line": 256, - "column": 12 - }, - "end": { - "line": 256, - "column": 36 - } - }, - "id": { - "type": "Identifier", - "start": 6922, - "end": 6924, - "loc": { - "start": { - "line": 256, - "column": 12 - }, - "end": { - "line": 256, - "column": 14 - }, - "identifierName": "y3" - }, - "name": "y3" + "operator": "-", + "prefix": true, + "argument": { + "type": "NumericLiteral", + "start": 6202, + "end": 6203, + "loc": { + "start": { + "line": 235, + "column": 107 }, - "init": { - "type": "BinaryExpression", - "start": 6927, - "end": 6946, - "loc": { - "start": { - "line": 256, - "column": 17 - }, - "end": { - "line": 256, - "column": 36 - } - }, - "left": { - "type": "MemberExpression", - "start": 6927, - "end": 6935, - "loc": { - "start": { - "line": 256, - "column": 17 - }, - "end": { - "line": 256, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 6927, - "end": 6931, - "loc": { - "start": { - "line": 256, - "column": 17 - }, - "end": { - "line": 256, - "column": 21 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 6932, - "end": 6935, - "loc": { - "start": { - "line": 256, - "column": 22 - }, - "end": { - "line": 256, - "column": 25 - }, - "identifierName": "top" - }, - "name": "top" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 6938, - "end": 6946, - "loc": { - "start": { - "line": 256, - "column": 28 - }, - "end": { - "line": 256, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 6938, - "end": 6944, - "loc": { - "start": { - "line": 256, - "column": 28 - }, - "end": { - "line": 256, - "column": 34 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 6945, - "end": 6946, - "loc": { - "start": { - "line": 256, - "column": 35 - }, - "end": { - "line": 256, - "column": 36 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } + "end": { + "line": 235, + "column": 108 } - } - ], - "kind": "let" + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "extra": { + "parenthesizedArgument": false + } + } + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6210, + "end": 6236, + "loc": { + "start": { + "line": 236, + "column": 4 + }, + "end": { + "line": 236, + "column": 30 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6214, + "end": 6235, + "loc": { + "start": { + "line": 236, + "column": 8 + }, + "end": { + "line": 236, + "column": 29 + } + }, + "id": { + "type": "Identifier", + "start": 6214, + "end": 6219, + "loc": { + "start": { + "line": 236, + "column": 8 + }, + "end": { + "line": 236, + "column": 13 + }, + "identifierName": "scale" + }, + "name": "scale" + }, + "init": { + "type": "BinaryExpression", + "start": 6222, + "end": 6235, + "loc": { + "start": { + "line": 236, + "column": 16 + }, + "end": { + "line": 236, + "column": 29 + } + }, + "left": { + "type": "Identifier", + "start": 6222, + "end": 6227, + "loc": { + "start": { + "line": 236, + "column": 16 }, - { - "type": "VariableDeclaration", - "start": 6956, - "end": 6976, + "end": { + "line": 236, + "column": 21 + }, + "identifierName": "Len_Y" + }, + "name": "Len_Y" + }, + "operator": "/", + "right": { + "type": "Identifier", + "start": 6230, + "end": 6235, + "loc": { + "start": { + "line": 236, + "column": 24 + }, + "end": { + "line": 236, + "column": 29 + }, + "identifierName": "Len_X" + }, + "name": "Len_X" + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6241, + "end": 6254, + "loc": { + "start": { + "line": 237, + "column": 4 + }, + "end": { + "line": 237, + "column": 17 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6245, + "end": 6253, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 16 + } + }, + "id": { + "type": "Identifier", + "start": 6245, + "end": 6248, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 11 + }, + "identifierName": "res" + }, + "name": "res" + }, + "init": { + "type": "ObjectExpression", + "start": 6251, + "end": 6253, + "loc": { + "start": { + "line": 237, + "column": 14 + }, + "end": { + "line": 237, + "column": 16 + } + }, + "properties": [] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 6260, + "end": 7243, + "loc": { + "start": { + "line": 239, + "column": 4 + }, + "end": { + "line": 274, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6264, + "end": 6291, + "loc": { + "start": { + "line": 239, + "column": 8 + }, + "end": { + "line": 239, + "column": 35 + } + }, + "left": { + "type": "Identifier", + "start": 6264, + "end": 6275, + "loc": { + "start": { + "line": 239, + "column": 8 + }, + "end": { + "line": 239, + "column": 19 + }, + "identifierName": "angleTarget" + }, + "name": "angleTarget" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 6278, + "end": 6291, + "loc": { + "start": { + "line": 239, + "column": 22 + }, + "end": { + "line": 239, + "column": 35 + }, + "identifierName": "angleRightTop" + }, + "name": "angleRightTop" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 6293, + "end": 6452, + "loc": { + "start": { + "line": 239, + "column": 37 + }, + "end": { + "line": 246, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 6303, + "end": 6332, + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6307, + "end": 6331, + "loc": { + "start": { + "line": 240, + "column": 12 + }, + "end": { + "line": 240, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 6307, + "end": 6309, "loc": { "start": { - "line": 257, - "column": 8 + "line": 240, + "column": 12 }, "end": { - "line": 257, - "column": 28 + "line": 240, + "column": 14 + }, + "identifierName": "y3" + }, + "name": "y3" + }, + "init": { + "type": "BinaryExpression", + "start": 6312, + "end": 6331, + "loc": { + "start": { + "line": 240, + "column": 17 + }, + "end": { + "line": 240, + "column": 36 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6960, - "end": 6975, + "left": { + "type": "MemberExpression", + "start": 6312, + "end": 6320, + "loc": { + "start": { + "line": 240, + "column": 17 + }, + "end": { + "line": 240, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 6312, + "end": 6316, "loc": { "start": { - "line": 257, - "column": 12 + "line": 240, + "column": 17 }, "end": { - "line": 257, - "column": 27 - } - }, - "id": { - "type": "Identifier", - "start": 6960, - "end": 6962, - "loc": { - "start": { - "line": 257, - "column": 12 - }, - "end": { - "line": 257, - "column": 14 - }, - "identifierName": "x3" + "line": 240, + "column": 21 }, - "name": "x3" + "identifierName": "rect" }, - "init": { - "type": "BinaryExpression", - "start": 6965, - "end": 6975, - "loc": { - "start": { - "line": 257, - "column": 17 - }, - "end": { - "line": 257, - "column": 27 - } + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 6317, + "end": 6320, + "loc": { + "start": { + "line": 240, + "column": 22 }, - "left": { - "type": "Identifier", - "start": 6965, - "end": 6967, - "loc": { - "start": { - "line": 257, - "column": 17 - }, - "end": { - "line": 257, - "column": 19 - }, - "identifierName": "y3" - }, - "name": "y3" + "end": { + "line": 240, + "column": 25 }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 6970, - "end": 6975, - "loc": { - "start": { - "line": 257, - "column": 22 - }, - "end": { - "line": 257, - "column": 27 - }, - "identifierName": "scale" - }, - "name": "scale" - } - } - } - ], - "kind": "let" - }, - { - "type": "ExpressionStatement", - "start": 6985, - "end": 7061, - "loc": { - "start": { - "line": 258, - "column": 8 + "identifierName": "top" + }, + "name": "top" }, - "end": { - "line": 261, - "column": 9 - } + "computed": false }, - "expression": { - "type": "AssignmentExpression", - "start": 6985, - "end": 7061, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 6323, + "end": 6331, "loc": { "start": { - "line": 258, - "column": 8 + "line": 240, + "column": 28 }, "end": { - "line": 261, - "column": 9 + "line": 240, + "column": 36 } }, - "operator": "=", - "left": { + "object": { "type": "Identifier", - "start": 6985, - "end": 6988, + "start": 6323, + "end": 6329, "loc": { "start": { - "line": 258, - "column": 8 + "line": 240, + "column": 28 }, "end": { - "line": 258, - "column": 11 + "line": 240, + "column": 34 }, - "identifierName": "res" + "identifierName": "center" }, - "name": "res" + "name": "center" }, - "right": { - "type": "ObjectExpression", - "start": 6991, - "end": 7061, + "property": { + "type": "Identifier", + "start": 6330, + "end": 6331, "loc": { "start": { - "line": 258, - "column": 14 + "line": 240, + "column": 35 }, "end": { - "line": 261, - "column": 9 - } + "line": 240, + "column": 36 + }, + "identifierName": "y" }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7005, - "end": 7021, - "loc": { - "start": { - "line": 259, - "column": 12 - }, - "end": { - "line": 259, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7005, - "end": 7006, - "loc": { - "start": { - "line": 259, - "column": 12 - }, - "end": { - "line": 259, - "column": 13 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 7008, - "end": 7021, - "loc": { - "start": { - "line": 259, - "column": 15 - }, - "end": { - "line": 259, - "column": 28 - } - }, - "left": { - "type": "MemberExpression", - "start": 7008, - "end": 7016, - "loc": { - "start": { - "line": 259, - "column": 15 - }, - "end": { - "line": 259, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 7008, - "end": 7014, - "loc": { - "start": { - "line": 259, - "column": 15 - }, - "end": { - "line": 259, - "column": 21 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 7015, - "end": 7016, - "loc": { - "start": { - "line": 259, - "column": 22 - }, - "end": { - "line": 259, - "column": 23 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 7019, - "end": 7021, - "loc": { - "start": { - "line": 259, - "column": 26 - }, - "end": { - "line": 259, - "column": 28 - }, - "identifierName": "y3" - }, - "name": "y3" - } - } - }, - { - "type": "ObjectProperty", - "start": 7035, - "end": 7051, - "loc": { - "start": { - "line": 260, - "column": 12 - }, - "end": { - "line": 260, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7035, - "end": 7036, - "loc": { - "start": { - "line": 260, - "column": 12 - }, - "end": { - "line": 260, - "column": 13 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 7038, - "end": 7051, - "loc": { - "start": { - "line": 260, - "column": 15 - }, - "end": { - "line": 260, - "column": 28 - } - }, - "left": { - "type": "MemberExpression", - "start": 7038, - "end": 7046, - "loc": { - "start": { - "line": 260, - "column": 15 - }, - "end": { - "line": 260, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 7038, - "end": 7044, - "loc": { - "start": { - "line": 260, - "column": 15 - }, - "end": { - "line": 260, - "column": 21 - }, - "identifierName": "center" - }, - "name": "center" - }, - "property": { - "type": "Identifier", - "start": 7045, - "end": 7046, - "loc": { - "start": { - "line": 260, - "column": 22 - }, - "end": { - "line": 260, - "column": 23 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 7049, - "end": 7051, - "loc": { - "start": { - "line": 260, - "column": 26 - }, - "end": { - "line": 260, - "column": 28 - }, - "identifierName": "x3" - }, - "name": "x3" - } - } - } - ] - } + "name": "y" + }, + "computed": false } } - ], - "directives": [] - } - } - } - } - }, - { - "type": "ReturnStatement", - "start": 7073, - "end": 7084, - "loc": { - "start": { - "line": 264, - "column": 4 - }, - "end": { - "line": 264, - "column": 15 - } - }, - "argument": { - "type": "Identifier", - "start": 7080, - "end": 7083, - "loc": { - "start": { - "line": 264, - "column": 11 - }, - "end": { - "line": 264, - "column": 14 - }, - "identifierName": "res" - }, - "name": "res" - } - } - ], - "directives": [] - } - }, - { - "type": "FunctionDeclaration", - "start": 7088, - "end": 7845, - "loc": { - "start": { - "line": 267, - "column": 0 - }, - "end": { - "line": 292, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 7097, - "end": 7110, - "loc": { - "start": { - "line": 267, - "column": 9 - }, - "end": { - "line": 267, - "column": 22 - }, - "identifierName": "modelTurnHead" - }, - "name": "modelTurnHead" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7111, - "end": 7116, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 28 - }, - "identifierName": "event" - }, - "name": "event" - } - ], - "body": { - "type": "BlockStatement", - "start": 7118, - "end": 7845, - "loc": { - "start": { - "line": 268, - "column": 0 - }, - "end": { - "line": 292, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7124, - "end": 7136, - "loc": { - "start": { - "line": 269, - "column": 4 - }, - "end": { - "line": 269, - "column": 16 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7124, - "end": 7135, - "loc": { - "start": { - "line": 269, - "column": 4 - }, - "end": { - "line": 269, - "column": 15 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7124, - "end": 7128, - "loc": { - "start": { - "line": 269, - "column": 4 - }, - "end": { - "line": 269, - "column": 8 - }, - "identifierName": "drag" - }, - "name": "drag" - }, - "right": { - "type": "BooleanLiteral", - "start": 7131, - "end": 7135, - "loc": { - "start": { - "line": 269, - "column": 11 - }, - "end": { - "line": 269, - "column": 15 - } - }, - "value": true - } - } - }, - { - "type": "VariableDeclaration", - "start": 7142, - "end": 7188, - "loc": { - "start": { - "line": 271, - "column": 4 - }, - "end": { - "line": 271, - "column": 50 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7146, - "end": 7187, - "loc": { - "start": { - "line": 271, - "column": 8 - }, - "end": { - "line": 271, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 7146, - "end": 7150, - "loc": { - "start": { - "line": 271, - "column": 8 - }, - "end": { - "line": 271, - "column": 12 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "init": { - "type": "CallExpression", - "start": 7153, - "end": 7187, - "loc": { - "start": { - "line": 271, - "column": 15 - }, - "end": { - "line": 271, - "column": 49 } - }, - "callee": { - "type": "MemberExpression", - "start": 7153, - "end": 7185, - "loc": { - "start": { - "line": 271, - "column": 15 - }, - "end": { - "line": 271, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 7153, - "end": 7163, - "loc": { - "start": { - "line": 271, - "column": 15 - }, - "end": { - "line": 271, - "column": 25 - }, - "identifierName": "currCanvas" - }, - "name": "currCanvas" - }, - "property": { - "type": "Identifier", - "start": 7164, - "end": 7185, - "loc": { - "start": { - "line": 271, - "column": 26 - }, - "end": { - "line": 271, - "column": 47 - }, - "identifierName": "getBoundingClientRect" - }, - "name": "getBoundingClientRect" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 7194, - "end": 7247, - "loc": { - "start": { - "line": 273, - "column": 4 - }, - "end": { - "line": 273, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7198, - "end": 7246, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 56 - } + ], + "kind": "let" }, - "id": { - "type": "Identifier", - "start": 7198, - "end": 7200, + { + "type": "VariableDeclaration", + "start": 6341, + "end": 6361, "loc": { "start": { - "line": 273, + "line": 241, "column": 8 }, "end": { - "line": 273, - "column": 10 - }, - "identifierName": "sx" - }, - "name": "sx" - }, - "init": { - "type": "CallExpression", - "start": 7203, - "end": 7246, - "loc": { - "start": { - "line": 273, - "column": 13 - }, - "end": { - "line": 273, - "column": 56 + "line": 241, + "column": 28 } }, - "callee": { - "type": "Identifier", - "start": 7203, - "end": 7219, - "loc": { - "start": { - "line": 273, - "column": 13 - }, - "end": { - "line": 273, - "column": 29 - }, - "identifierName": "transformScreenX" - }, - "name": "transformScreenX" - }, - "arguments": [ + "declarations": [ { - "type": "BinaryExpression", - "start": 7220, - "end": 7245, + "type": "VariableDeclarator", + "start": 6345, + "end": 6360, "loc": { "start": { - "line": 273, - "column": 30 + "line": 241, + "column": 12 }, "end": { - "line": 273, - "column": 55 + "line": 241, + "column": 27 } }, - "left": { - "type": "MemberExpression", - "start": 7220, - "end": 7233, + "id": { + "type": "Identifier", + "start": 6345, + "end": 6347, "loc": { "start": { - "line": 273, - "column": 30 + "line": 241, + "column": 12 }, "end": { - "line": 273, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 7220, - "end": 7225, - "loc": { - "start": { - "line": 273, - "column": 30 - }, - "end": { - "line": 273, - "column": 35 - }, - "identifierName": "event" - }, - "name": "event" - }, - "property": { - "type": "Identifier", - "start": 7226, - "end": 7233, - "loc": { - "start": { - "line": 273, - "column": 36 - }, - "end": { - "line": 273, - "column": 43 - }, - "identifierName": "clientX" + "line": 241, + "column": 14 }, - "name": "clientX" + "identifierName": "x3" }, - "computed": false + "name": "x3" }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 7236, - "end": 7245, + "init": { + "type": "BinaryExpression", + "start": 6350, + "end": 6360, "loc": { "start": { - "line": 273, - "column": 46 + "line": 241, + "column": 17 }, "end": { - "line": 273, - "column": 55 + "line": 241, + "column": 27 } }, - "object": { + "left": { "type": "Identifier", - "start": 7236, - "end": 7240, + "start": 6350, + "end": 6352, "loc": { "start": { - "line": 273, - "column": 46 + "line": 241, + "column": 17 }, "end": { - "line": 273, - "column": 50 + "line": 241, + "column": 19 }, - "identifierName": "rect" + "identifierName": "y3" }, - "name": "rect" + "name": "y3" }, - "property": { + "operator": "/", + "right": { "type": "Identifier", - "start": 7241, - "end": 7245, + "start": 6355, + "end": 6360, "loc": { "start": { - "line": 273, - "column": 51 + "line": 241, + "column": 22 }, "end": { - "line": 273, - "column": 55 + "line": 241, + "column": 27 }, - "identifierName": "left" + "identifierName": "scale" }, - "name": "left" - }, - "computed": false + "name": "scale" + } } } - ] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 7252, - "end": 7304, - "loc": { - "start": { - "line": 274, - "column": 4 - }, - "end": { - "line": 274, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7256, - "end": 7303, - "loc": { - "start": { - "line": 274, - "column": 8 - }, - "end": { - "line": 274, - "column": 55 - } + ], + "kind": "let" }, - "id": { - "type": "Identifier", - "start": 7256, - "end": 7258, + { + "type": "ExpressionStatement", + "start": 6370, + "end": 6446, "loc": { "start": { - "line": 274, + "line": 242, "column": 8 }, "end": { - "line": 274, - "column": 10 - }, - "identifierName": "sy" - }, - "name": "sy" - }, - "init": { - "type": "CallExpression", - "start": 7261, - "end": 7303, - "loc": { - "start": { - "line": 274, - "column": 13 - }, - "end": { - "line": 274, - "column": 55 + "line": 245, + "column": 9 } }, - "callee": { - "type": "Identifier", - "start": 7261, - "end": 7277, + "expression": { + "type": "AssignmentExpression", + "start": 6370, + "end": 6446, "loc": { "start": { - "line": 274, - "column": 13 + "line": 242, + "column": 8 }, "end": { - "line": 274, - "column": 29 - }, - "identifierName": "transformScreenY" + "line": 245, + "column": 9 + } }, - "name": "transformScreenY" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 7278, - "end": 7302, + "operator": "=", + "left": { + "type": "Identifier", + "start": 6370, + "end": 6373, "loc": { "start": { - "line": 274, - "column": 30 + "line": 242, + "column": 8 }, "end": { - "line": 274, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 7278, - "end": 7291, - "loc": { - "start": { - "line": 274, - "column": 30 - }, - "end": { - "line": 274, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 7278, - "end": 7283, - "loc": { - "start": { - "line": 274, - "column": 30 - }, - "end": { - "line": 274, - "column": 35 - }, - "identifierName": "event" - }, - "name": "event" - }, - "property": { - "type": "Identifier", - "start": 7284, - "end": 7291, - "loc": { - "start": { - "line": 274, - "column": 36 - }, - "end": { - "line": 274, - "column": 43 - }, - "identifierName": "clientY" - }, - "name": "clientY" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 7294, - "end": 7302, - "loc": { - "start": { - "line": 274, - "column": 46 - }, - "end": { - "line": 274, - "column": 54 - } - }, - "object": { - "type": "Identifier", - "start": 7294, - "end": 7298, - "loc": { - "start": { - "line": 274, - "column": 46 - }, - "end": { - "line": 274, - "column": 50 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 7299, - "end": 7302, - "loc": { - "start": { - "line": 274, - "column": 51 - }, - "end": { - "line": 274, - "column": 54 - }, - "identifierName": "top" - }, - "name": "top" + "line": 242, + "column": 11 }, - "computed": false - } - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 7309, - "end": 7493, - "loc": { - "start": { - "line": 275, - "column": 4 - }, - "end": { - "line": 281, - "column": 12 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7313, - "end": 7493, - "loc": { - "start": { - "line": 275, - "column": 8 - }, - "end": { - "line": 281, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 7313, - "end": 7319, - "loc": { - "start": { - "line": 275, - "column": 8 - }, - "end": { - "line": 275, - "column": 14 - }, - "identifierName": "target" - }, - "name": "target" - }, - "init": { - "type": "CallExpression", - "start": 7322, - "end": 7493, - "loc": { - "start": { - "line": 275, - "column": 17 - }, - "end": { - "line": 281, - "column": 12 - } - }, - "callee": { - "type": "Identifier", - "start": 7322, - "end": 7335, - "loc": { - "start": { - "line": 275, - "column": 17 - }, - "end": { - "line": 275, - "column": 30 + "identifierName": "res" }, - "identifierName": "transformRect" + "name": "res" }, - "name": "transformRect" - }, - "arguments": [ - { + "right": { "type": "ObjectExpression", - "start": 7336, - "end": 7426, + "start": 6376, + "end": 6446, "loc": { "start": { - "line": 275, - "column": 31 + "line": 242, + "column": 14 }, "end": { - "line": 278, - "column": 5 + "line": 245, + "column": 9 } }, "properties": [ { "type": "ObjectProperty", - "start": 7346, - "end": 7375, + "start": 6390, + "end": 6406, "loc": { "start": { - "line": 276, - "column": 8 + "line": 243, + "column": 12 }, "end": { - "line": 276, - "column": 37 + "line": 243, + "column": 28 } }, "method": false, @@ -17801,186 +15248,117 @@ "computed": false, "key": { "type": "Identifier", - "start": 7346, - "end": 7347, + "start": 6390, + "end": 6391, "loc": { "start": { - "line": 276, - "column": 8 + "line": 243, + "column": 12 }, "end": { - "line": 276, - "column": 9 + "line": 243, + "column": 13 }, - "identifierName": "x" + "identifierName": "y" }, - "name": "x" + "name": "y" }, "value": { "type": "BinaryExpression", - "start": 7349, - "end": 7375, + "start": 6393, + "end": 6406, "loc": { "start": { - "line": 276, - "column": 11 + "line": 243, + "column": 15 }, "end": { - "line": 276, - "column": 37 + "line": 243, + "column": 28 } }, "left": { "type": "MemberExpression", - "start": 7349, - "end": 7358, + "start": 6393, + "end": 6401, "loc": { "start": { - "line": 276, - "column": 11 + "line": 243, + "column": 15 }, "end": { - "line": 276, - "column": 20 + "line": 243, + "column": 23 } }, "object": { "type": "Identifier", - "start": 7349, - "end": 7353, + "start": 6393, + "end": 6399, "loc": { "start": { - "line": 276, - "column": 11 + "line": 243, + "column": 15 }, "end": { - "line": 276, - "column": 15 + "line": 243, + "column": 21 }, - "identifierName": "rect" + "identifierName": "center" }, - "name": "rect" + "name": "center" }, "property": { "type": "Identifier", - "start": 7354, - "end": 7358, + "start": 6400, + "end": 6401, "loc": { "start": { - "line": 276, - "column": 16 + "line": 243, + "column": 22 }, "end": { - "line": 276, - "column": 20 + "line": 243, + "column": 23 }, - "identifierName": "left" + "identifierName": "y" }, - "name": "left" + "name": "y" }, "computed": false }, "operator": "+", "right": { - "type": "BinaryExpression", - "start": 7361, - "end": 7375, + "type": "Identifier", + "start": 6404, + "end": 6406, "loc": { "start": { - "line": 276, - "column": 23 + "line": 243, + "column": 26 }, "end": { - "line": 276, - "column": 37 - } - }, - "left": { - "type": "MemberExpression", - "start": 7361, - "end": 7371, - "loc": { - "start": { - "line": 276, - "column": 23 - }, - "end": { - "line": 276, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 7361, - "end": 7365, - "loc": { - "start": { - "line": 276, - "column": 23 - }, - "end": { - "line": 276, - "column": 27 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 7366, - "end": 7371, - "loc": { - "start": { - "line": 276, - "column": 28 - }, - "end": { - "line": 276, - "column": 33 - }, - "identifierName": "width" - }, - "name": "width" + "line": 243, + "column": 28 }, - "computed": false + "identifierName": "y3" }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 7374, - "end": 7375, - "loc": { - "start": { - "line": 276, - "column": 36 - }, - "end": { - "line": 276, - "column": 37 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } + "name": "y3" } } }, { "type": "ObjectProperty", - "start": 7385, - "end": 7420, + "start": 6420, + "end": 6436, "loc": { "start": { - "line": 277, - "column": 8 + "line": 244, + "column": 12 }, "end": { - "line": 277, - "column": 43 + "line": 244, + "column": 28 } }, "method": false, @@ -17988,2862 +15366,3059 @@ "computed": false, "key": { "type": "Identifier", - "start": 7385, - "end": 7386, + "start": 6420, + "end": 6421, "loc": { "start": { - "line": 277, - "column": 8 + "line": 244, + "column": 12 }, "end": { - "line": 277, - "column": 9 + "line": 244, + "column": 13 }, - "identifierName": "y" + "identifierName": "x" }, - "name": "y" + "name": "x" }, "value": { "type": "BinaryExpression", - "start": 7388, - "end": 7420, + "start": 6423, + "end": 6436, "loc": { "start": { - "line": 277, - "column": 11 + "line": 244, + "column": 15 }, "end": { - "line": 277, - "column": 43 + "line": 244, + "column": 28 } }, "left": { "type": "MemberExpression", - "start": 7388, - "end": 7396, + "start": 6423, + "end": 6431, "loc": { "start": { - "line": 277, - "column": 11 + "line": 244, + "column": 15 }, "end": { - "line": 277, - "column": 19 + "line": 244, + "column": 23 } }, "object": { "type": "Identifier", - "start": 7388, - "end": 7392, + "start": 6423, + "end": 6429, "loc": { "start": { - "line": 277, - "column": 11 + "line": 244, + "column": 15 }, "end": { - "line": 277, - "column": 15 + "line": 244, + "column": 21 }, - "identifierName": "rect" + "identifierName": "center" }, - "name": "rect" + "name": "center" }, "property": { "type": "Identifier", - "start": 7393, - "end": 7396, + "start": 6430, + "end": 6431, "loc": { "start": { - "line": 277, - "column": 16 + "line": 244, + "column": 22 }, "end": { - "line": 277, - "column": 19 + "line": 244, + "column": 23 }, - "identifierName": "top" + "identifierName": "x" }, - "name": "top" + "name": "x" }, "computed": false }, "operator": "+", "right": { - "type": "BinaryExpression", - "start": 7399, - "end": 7420, + "type": "Identifier", + "start": 6434, + "end": 6436, "loc": { "start": { - "line": 277, - "column": 22 + "line": 244, + "column": 26 }, "end": { - "line": 277, - "column": 43 - } - }, - "left": { - "type": "MemberExpression", - "start": 7399, - "end": 7410, - "loc": { - "start": { - "line": 277, - "column": 22 - }, - "end": { - "line": 277, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 7399, - "end": 7403, - "loc": { - "start": { - "line": 277, - "column": 22 - }, - "end": { - "line": 277, - "column": 26 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 7404, - "end": 7410, - "loc": { - "start": { - "line": 277, - "column": 27 - }, - "end": { - "line": 277, - "column": 33 - }, - "identifierName": "height" - }, - "name": "height" + "line": 244, + "column": 28 }, - "computed": false + "identifierName": "x3" }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 7413, - "end": 7420, - "loc": { - "start": { - "line": 277, - "column": 36 - }, - "end": { - "line": 277, - "column": 43 - }, - "identifierName": "headPos" - }, - "name": "headPos" - } + "name": "x3" } } } ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "IfStatement", + "start": 6458, + "end": 7243, + "loc": { + "start": { + "line": 246, + "column": 11 + }, + "end": { + "line": 274, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6461, + "end": 6491, + "loc": { + "start": { + "line": 246, + "column": 14 + }, + "end": { + "line": 246, + "column": 44 + } + }, + "left": { + "type": "Identifier", + "start": 6461, + "end": 6472, + "loc": { + "start": { + "line": 246, + "column": 14 }, - { - "type": "ObjectExpression", - "start": 7428, - "end": 7486, - "loc": { - "start": { - "line": 278, - "column": 7 - }, - "end": { - "line": 281, - "column": 5 - } + "end": { + "line": 246, + "column": 25 + }, + "identifierName": "angleTarget" + }, + "name": "angleTarget" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 6475, + "end": 6491, + "loc": { + "start": { + "line": 246, + "column": 28 + }, + "end": { + "line": 246, + "column": 44 + }, + "identifierName": "angleRightBottom" + }, + "name": "angleRightBottom" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 6493, + "end": 6666, + "loc": { + "start": { + "line": 246, + "column": 46 + }, + "end": { + "line": 253, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 6503, + "end": 6546, + "loc": { + "start": { + "line": 247, + "column": 8 }, - "properties": [ - { - "type": "ObjectProperty", - "start": 7438, - "end": 7454, - "loc": { - "start": { - "line": 279, - "column": 8 - }, - "end": { - "line": 279, - "column": 24 - } + "end": { + "line": 247, + "column": 51 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6507, + "end": 6545, + "loc": { + "start": { + "line": 247, + "column": 12 }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7438, - "end": 7439, - "loc": { - "start": { - "line": 279, - "column": 8 - }, - "end": { - "line": 279, - "column": 9 - }, - "identifierName": "x" + "end": { + "line": 247, + "column": 50 + } + }, + "id": { + "type": "Identifier", + "start": 6507, + "end": 6509, + "loc": { + "start": { + "line": 247, + "column": 12 }, - "name": "x" + "end": { + "line": 247, + "column": 14 + }, + "identifierName": "x3" }, - "value": { - "type": "MemberExpression", - "start": 7441, - "end": 7454, + "name": "x3" + }, + "init": { + "type": "BinaryExpression", + "start": 6512, + "end": 6545, + "loc": { + "start": { + "line": 247, + "column": 17 + }, + "end": { + "line": 247, + "column": 50 + } + }, + "left": { + "type": "BinaryExpression", + "start": 6512, + "end": 6534, "loc": { "start": { - "line": 279, - "column": 11 + "line": 247, + "column": 17 }, "end": { - "line": 279, - "column": 24 + "line": 247, + "column": 39 } }, - "object": { - "type": "Identifier", - "start": 7441, - "end": 7446, + "left": { + "type": "MemberExpression", + "start": 6512, + "end": 6521, "loc": { "start": { - "line": 279, - "column": 11 + "line": 247, + "column": 17 }, "end": { - "line": 279, - "column": 16 + "line": 247, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 6512, + "end": 6516, + "loc": { + "start": { + "line": 247, + "column": 17 + }, + "end": { + "line": 247, + "column": 21 + }, + "identifierName": "rect" }, - "identifierName": "event" + "name": "rect" }, - "name": "event" + "property": { + "type": "Identifier", + "start": 6517, + "end": 6521, + "loc": { + "start": { + "line": 247, + "column": 22 + }, + "end": { + "line": 247, + "column": 26 + }, + "identifierName": "left" + }, + "name": "left" + }, + "computed": false }, - "property": { - "type": "Identifier", - "start": 7447, - "end": 7454, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 6524, + "end": 6534, "loc": { "start": { - "line": 279, - "column": 17 + "line": 247, + "column": 29 }, "end": { - "line": 279, - "column": 24 - }, - "identifierName": "clientX" + "line": 247, + "column": 39 + } }, - "name": "clientX" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 7464, - "end": 7480, - "loc": { - "start": { - "line": 280, - "column": 8 - }, - "end": { - "line": 280, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7464, - "end": 7465, - "loc": { - "start": { - "line": 280, - "column": 8 + "object": { + "type": "Identifier", + "start": 6524, + "end": 6528, + "loc": { + "start": { + "line": 247, + "column": 29 + }, + "end": { + "line": 247, + "column": 33 + }, + "identifierName": "rect" + }, + "name": "rect" }, - "end": { - "line": 280, - "column": 9 + "property": { + "type": "Identifier", + "start": 6529, + "end": 6534, + "loc": { + "start": { + "line": 247, + "column": 34 + }, + "end": { + "line": 247, + "column": 39 + }, + "identifierName": "width" + }, + "name": "width" }, - "identifierName": "y" - }, - "name": "y" + "computed": false + } }, - "value": { + "operator": "-", + "right": { "type": "MemberExpression", - "start": 7467, - "end": 7480, + "start": 6537, + "end": 6545, "loc": { "start": { - "line": 280, - "column": 11 + "line": 247, + "column": 42 }, "end": { - "line": 280, - "column": 24 + "line": 247, + "column": 50 } }, "object": { "type": "Identifier", - "start": 7467, - "end": 7472, + "start": 6537, + "end": 6543, "loc": { "start": { - "line": 280, - "column": 11 + "line": 247, + "column": 42 }, "end": { - "line": 280, - "column": 16 + "line": 247, + "column": 48 }, - "identifierName": "event" + "identifierName": "center" }, - "name": "event" + "name": "center" }, "property": { "type": "Identifier", - "start": 7473, - "end": 7480, + "start": 6544, + "end": 6545, "loc": { "start": { - "line": 280, - "column": 17 + "line": 247, + "column": 49 }, "end": { - "line": 280, - "column": 24 + "line": 247, + "column": 50 }, - "identifierName": "clientY" + "identifierName": "x" }, - "name": "clientY" + "name": "x" }, "computed": false } } - ] - }, - { - "type": "Identifier", - "start": 7488, - "end": 7492, - "loc": { - "start": { - "line": 281, - "column": 7 - }, - "end": { - "line": 281, - "column": 11 - }, - "identifierName": "rect" - }, - "name": "rect" - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 7498, - "end": 7544, - "loc": { - "start": { - "line": 282, - "column": 4 - }, - "end": { - "line": 282, - "column": 50 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7502, - "end": 7543, - "loc": { - "start": { - "line": 282, - "column": 8 - }, - "end": { - "line": 282, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 7502, - "end": 7504, - "loc": { - "start": { - "line": 282, - "column": 8 - }, - "end": { - "line": 282, - "column": 10 - }, - "identifierName": "vx" - }, - "name": "vx" - }, - "init": { - "type": "CallExpression", - "start": 7507, - "end": 7543, - "loc": { - "start": { - "line": 282, - "column": 13 - }, - "end": { - "line": 282, - "column": 49 - } + } + ], + "kind": "let" }, - "callee": { - "type": "Identifier", - "start": 7507, - "end": 7521, + { + "type": "VariableDeclaration", + "start": 6555, + "end": 6575, "loc": { "start": { - "line": 282, - "column": 13 + "line": 248, + "column": 8 }, "end": { - "line": 282, - "column": 27 - }, - "identifierName": "transformViewX" + "line": 248, + "column": 28 + } }, - "name": "transformViewX" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 7522, - "end": 7542, - "loc": { - "start": { - "line": 282, - "column": 28 - }, - "end": { - "line": 282, - "column": 48 - } - }, - "left": { - "type": "MemberExpression", - "start": 7522, - "end": 7530, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6559, + "end": 6574, "loc": { "start": { - "line": 282, - "column": 28 + "line": 248, + "column": 12 }, "end": { - "line": 282, - "column": 36 + "line": 248, + "column": 27 } }, - "object": { + "id": { "type": "Identifier", - "start": 7522, - "end": 7528, + "start": 6559, + "end": 6561, "loc": { "start": { - "line": 282, - "column": 28 + "line": 248, + "column": 12 }, "end": { - "line": 282, - "column": 34 + "line": 248, + "column": 14 }, - "identifierName": "target" + "identifierName": "y3" }, - "name": "target" + "name": "y3" }, - "property": { - "type": "Identifier", - "start": 7529, - "end": 7530, + "init": { + "type": "BinaryExpression", + "start": 6564, + "end": 6574, "loc": { "start": { - "line": 282, - "column": 35 + "line": 248, + "column": 17 }, "end": { - "line": 282, - "column": 36 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 7533, - "end": 7542, - "loc": { - "start": { - "line": 282, - "column": 39 + "line": 248, + "column": 27 + } }, - "end": { - "line": 282, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 7533, - "end": 7537, - "loc": { - "start": { - "line": 282, - "column": 39 - }, - "end": { - "line": 282, - "column": 43 + "left": { + "type": "Identifier", + "start": 6564, + "end": 6566, + "loc": { + "start": { + "line": 248, + "column": 17 + }, + "end": { + "line": 248, + "column": 19 + }, + "identifierName": "x3" }, - "identifierName": "rect" + "name": "x3" }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 7538, - "end": 7542, - "loc": { - "start": { - "line": 282, - "column": 44 - }, - "end": { - "line": 282, - "column": 48 + "operator": "*", + "right": { + "type": "Identifier", + "start": 6569, + "end": 6574, + "loc": { + "start": { + "line": 248, + "column": 22 + }, + "end": { + "line": 248, + "column": 27 + }, + "identifierName": "scale" }, - "identifierName": "left" - }, - "name": "left" - }, - "computed": false + "name": "scale" + } + } } - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 7549, - "end": 7594, - "loc": { - "start": { - "line": 283, - "column": 4 - }, - "end": { - "line": 283, - "column": 49 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7553, - "end": 7593, - "loc": { - "start": { - "line": 283, - "column": 8 - }, - "end": { - "line": 283, - "column": 48 - } - }, - "id": { - "type": "Identifier", - "start": 7553, - "end": 7555, - "loc": { - "start": { - "line": 283, - "column": 8 - }, - "end": { - "line": 283, - "column": 10 - }, - "identifierName": "vy" - }, - "name": "vy" - }, - "init": { - "type": "CallExpression", - "start": 7558, - "end": 7593, - "loc": { - "start": { - "line": 283, - "column": 13 - }, - "end": { - "line": 283, - "column": 48 - } + ], + "kind": "let" }, - "callee": { - "type": "Identifier", - "start": 7558, - "end": 7572, + { + "type": "ExpressionStatement", + "start": 6584, + "end": 6660, "loc": { "start": { - "line": 283, - "column": 13 + "line": 249, + "column": 8 }, "end": { - "line": 283, - "column": 27 - }, - "identifierName": "transformViewY" + "line": 252, + "column": 9 + } }, - "name": "transformViewY" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 7573, - "end": 7592, + "expression": { + "type": "AssignmentExpression", + "start": 6584, + "end": 6660, "loc": { "start": { - "line": 283, - "column": 28 + "line": 249, + "column": 8 }, "end": { - "line": 283, - "column": 47 + "line": 252, + "column": 9 } }, + "operator": "=", "left": { - "type": "MemberExpression", - "start": 7573, - "end": 7581, + "type": "Identifier", + "start": 6584, + "end": 6587, "loc": { "start": { - "line": 283, - "column": 28 + "line": 249, + "column": 8 }, "end": { - "line": 283, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 7573, - "end": 7579, - "loc": { - "start": { - "line": 283, - "column": 28 - }, - "end": { - "line": 283, - "column": 34 - }, - "identifierName": "target" - }, - "name": "target" - }, - "property": { - "type": "Identifier", - "start": 7580, - "end": 7581, - "loc": { - "start": { - "line": 283, - "column": 35 - }, - "end": { - "line": 283, - "column": 36 - }, - "identifierName": "y" + "line": 249, + "column": 11 }, - "name": "y" + "identifierName": "res" }, - "computed": false + "name": "res" }, - "operator": "-", "right": { - "type": "MemberExpression", - "start": 7584, - "end": 7592, + "type": "ObjectExpression", + "start": 6590, + "end": 6660, "loc": { "start": { - "line": 283, - "column": 39 + "line": 249, + "column": 14 }, "end": { - "line": 283, - "column": 47 + "line": 252, + "column": 9 } }, - "object": { - "type": "Identifier", - "start": 7584, - "end": 7588, - "loc": { - "start": { - "line": 283, - "column": 39 + "properties": [ + { + "type": "ObjectProperty", + "start": 6604, + "end": 6620, + "loc": { + "start": { + "line": 250, + "column": 12 + }, + "end": { + "line": 250, + "column": 28 + } }, - "end": { - "line": 283, - "column": 43 + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6604, + "end": 6605, + "loc": { + "start": { + "line": 250, + "column": 12 + }, + "end": { + "line": 250, + "column": 13 + }, + "identifierName": "y" + }, + "name": "y" }, - "identifierName": "rect" + "value": { + "type": "BinaryExpression", + "start": 6607, + "end": 6620, + "loc": { + "start": { + "line": 250, + "column": 15 + }, + "end": { + "line": 250, + "column": 28 + } + }, + "left": { + "type": "MemberExpression", + "start": 6607, + "end": 6615, + "loc": { + "start": { + "line": 250, + "column": 15 + }, + "end": { + "line": 250, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 6607, + "end": 6613, + "loc": { + "start": { + "line": 250, + "column": 15 + }, + "end": { + "line": 250, + "column": 21 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 6614, + "end": 6615, + "loc": { + "start": { + "line": 250, + "column": 22 + }, + "end": { + "line": 250, + "column": 23 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 6618, + "end": 6620, + "loc": { + "start": { + "line": 250, + "column": 26 + }, + "end": { + "line": 250, + "column": 28 + }, + "identifierName": "y3" + }, + "name": "y3" + } + } }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 7589, - "end": 7592, - "loc": { - "start": { - "line": 283, - "column": 44 + { + "type": "ObjectProperty", + "start": 6634, + "end": 6650, + "loc": { + "start": { + "line": 251, + "column": 12 + }, + "end": { + "line": 251, + "column": 28 + } }, - "end": { - "line": 283, - "column": 47 + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6634, + "end": 6635, + "loc": { + "start": { + "line": 251, + "column": 12 + }, + "end": { + "line": 251, + "column": 13 + }, + "identifierName": "x" + }, + "name": "x" }, - "identifierName": "top" - }, - "name": "top" - }, - "computed": false + "value": { + "type": "BinaryExpression", + "start": 6637, + "end": 6650, + "loc": { + "start": { + "line": 251, + "column": 15 + }, + "end": { + "line": 251, + "column": 28 + } + }, + "left": { + "type": "MemberExpression", + "start": 6637, + "end": 6645, + "loc": { + "start": { + "line": 251, + "column": 15 + }, + "end": { + "line": 251, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 6637, + "end": 6643, + "loc": { + "start": { + "line": 251, + "column": 15 + }, + "end": { + "line": 251, + "column": 21 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 6644, + "end": 6645, + "loc": { + "start": { + "line": 251, + "column": 22 + }, + "end": { + "line": 251, + "column": 23 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 6648, + "end": 6650, + "loc": { + "start": { + "line": 251, + "column": 26 + }, + "end": { + "line": 251, + "column": 28 + }, + "identifierName": "x3" + }, + "name": "x3" + } + } + } + ] } } - ] - } - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 7600, - "end": 7769, - "loc": { - "start": { - "line": 285, - "column": 4 - }, - "end": { - "line": 286, - "column": 140 - } - }, - "test": { - "type": "MemberExpression", - "start": 7604, - "end": 7627, - "loc": { - "start": { - "line": 285, - "column": 8 - }, - "end": { - "line": 285, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 7604, - "end": 7611, - "loc": { - "start": { - "line": 285, - "column": 8 - }, - "end": { - "line": 285, - "column": 15 - }, - "identifierName": "cDefine" - }, - "name": "cDefine" - }, - "property": { - "type": "Identifier", - "start": 7612, - "end": 7627, - "loc": { - "start": { - "line": 285, - "column": 16 - }, - "end": { - "line": 285, - "column": 31 - }, - "identifierName": "DEBUG_MOUSE_LOG" - }, - "name": "DEBUG_MOUSE_LOG" - }, - "computed": false - }, - "consequent": { - "type": "ExpressionStatement", - "start": 7637, - "end": 7769, - "loc": { - "start": { - "line": 286, - "column": 8 - }, - "end": { - "line": 286, - "column": 140 - } + } + ], + "directives": [] }, - "expression": { - "type": "CallExpression", - "start": 7637, - "end": 7768, + "alternate": { + "type": "IfStatement", + "start": 6672, + "end": 7243, "loc": { "start": { - "line": 286, - "column": 8 + "line": 253, + "column": 11 }, "end": { - "line": 286, - "column": 139 + "line": 274, + "column": 5 } }, - "callee": { - "type": "MemberExpression", - "start": 7637, - "end": 7648, + "test": { + "type": "BinaryExpression", + "start": 6676, + "end": 6705, "loc": { "start": { - "line": 286, - "column": 8 + "line": 253, + "column": 15 }, "end": { - "line": 286, - "column": 19 + "line": 253, + "column": 44 } }, - "object": { + "left": { "type": "Identifier", - "start": 7637, - "end": 7644, + "start": 6676, + "end": 6687, "loc": { "start": { - "line": 286, - "column": 8 + "line": 253, + "column": 15 }, "end": { - "line": 286, - "column": 15 + "line": 253, + "column": 26 }, - "identifierName": "console" + "identifierName": "angleTarget" }, - "name": "console" + "name": "angleTarget" }, - "property": { + "operator": "<", + "right": { "type": "Identifier", - "start": 7645, - "end": 7648, + "start": 6690, + "end": 6705, "loc": { "start": { - "line": 286, - "column": 16 + "line": 253, + "column": 29 }, "end": { - "line": 286, - "column": 19 + "line": 253, + "column": 44 }, - "identifierName": "log" + "identifierName": "angleLeftBottom" }, - "name": "log" - }, - "computed": false + "name": "angleLeftBottom" + } }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 7649, - "end": 7767, - "loc": { - "start": { - "line": 286, - "column": 20 - }, - "end": { - "line": 286, - "column": 138 - } + "consequent": { + "type": "BlockStatement", + "start": 6707, + "end": 6880, + "loc": { + "start": { + "line": 253, + "column": 46 }, - "left": { - "type": "BinaryExpression", - "start": 7649, - "end": 7761, + "end": { + "line": 260, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 6717, + "end": 6760, "loc": { "start": { - "line": 286, - "column": 20 + "line": 254, + "column": 8 }, "end": { - "line": 286, - "column": 132 + "line": 254, + "column": 51 } }, - "left": { - "type": "BinaryExpression", - "start": 7649, - "end": 7756, - "loc": { - "start": { - "line": 286, - "column": 20 - }, - "end": { - "line": 286, - "column": 127 - } - }, - "left": { - "type": "BinaryExpression", - "start": 7649, - "end": 7748, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6721, + "end": 6759, "loc": { "start": { - "line": 286, - "column": 20 + "line": 254, + "column": 12 }, "end": { - "line": 286, - "column": 119 + "line": 254, + "column": 50 } }, - "left": { + "id": { + "type": "Identifier", + "start": 6721, + "end": 6723, + "loc": { + "start": { + "line": 254, + "column": 12 + }, + "end": { + "line": 254, + "column": 14 + }, + "identifierName": "y3" + }, + "name": "y3" + }, + "init": { "type": "BinaryExpression", - "start": 7649, - "end": 7743, + "start": 6726, + "end": 6759, "loc": { "start": { - "line": 286, - "column": 20 + "line": 254, + "column": 17 }, "end": { - "line": 286, - "column": 114 + "line": 254, + "column": 50 } }, "left": { "type": "BinaryExpression", - "start": 7649, - "end": 7727, + "start": 6726, + "end": 6748, "loc": { "start": { - "line": 286, - "column": 20 + "line": 254, + "column": 17 }, "end": { - "line": 286, - "column": 98 + "line": 254, + "column": 39 } }, "left": { - "type": "BinaryExpression", - "start": 7649, - "end": 7711, + "type": "MemberExpression", + "start": 6726, + "end": 6734, "loc": { "start": { - "line": 286, - "column": 20 + "line": 254, + "column": 17 }, "end": { - "line": 286, - "column": 82 + "line": 254, + "column": 25 } }, - "left": { - "type": "BinaryExpression", - "start": 7649, - "end": 7703, + "object": { + "type": "Identifier", + "start": 6726, + "end": 6730, "loc": { "start": { - "line": 286, - "column": 20 + "line": 254, + "column": 17 }, "end": { - "line": 286, - "column": 74 - } - }, - "left": { - "type": "StringLiteral", - "start": 7649, - "end": 7687, - "loc": { - "start": { - "line": 286, - "column": 20 - }, - "end": { - "line": 286, - "column": 58 - } - }, - "extra": { - "rawValue": "modelTurnHead onMouseMove device( x:", - "raw": "\"modelTurnHead onMouseMove device( x:\"" + "line": 254, + "column": 21 }, - "value": "modelTurnHead onMouseMove device( x:" + "identifierName": "rect" }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 7690, - "end": 7703, - "loc": { - "start": { - "line": 286, - "column": 61 - }, - "end": { - "line": 286, - "column": 74 - } - }, - "object": { - "type": "Identifier", - "start": 7690, - "end": 7695, - "loc": { - "start": { - "line": 286, - "column": 61 - }, - "end": { - "line": 286, - "column": 66 - }, - "identifierName": "event" - }, - "name": "event" - }, - "property": { - "type": "Identifier", - "start": 7696, - "end": 7703, - "loc": { - "start": { - "line": 286, - "column": 67 - }, - "end": { - "line": 286, - "column": 74 - }, - "identifierName": "clientX" - }, - "name": "clientX" - }, - "computed": false - } + "name": "rect" }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 7706, - "end": 7711, + "property": { + "type": "Identifier", + "start": 6731, + "end": 6734, "loc": { "start": { - "line": 286, - "column": 77 + "line": 254, + "column": 22 }, "end": { - "line": 286, - "column": 82 - } - }, - "extra": { - "rawValue": " y:", - "raw": "\" y:\"" + "line": 254, + "column": 25 + }, + "identifierName": "top" }, - "value": " y:" - } + "name": "top" + }, + "computed": false }, "operator": "+", "right": { "type": "MemberExpression", - "start": 7714, - "end": 7727, + "start": 6737, + "end": 6748, "loc": { "start": { - "line": 286, - "column": 85 + "line": 254, + "column": 28 }, "end": { - "line": 286, - "column": 98 + "line": 254, + "column": 39 } }, "object": { "type": "Identifier", - "start": 7714, - "end": 7719, + "start": 6737, + "end": 6741, "loc": { "start": { - "line": 286, - "column": 85 + "line": 254, + "column": 28 }, "end": { - "line": 286, - "column": 90 + "line": 254, + "column": 32 }, - "identifierName": "event" + "identifierName": "rect" }, - "name": "event" + "name": "rect" }, "property": { "type": "Identifier", - "start": 7720, - "end": 7727, + "start": 6742, + "end": 6748, "loc": { "start": { - "line": 286, - "column": 91 + "line": 254, + "column": 33 }, "end": { - "line": 286, - "column": 98 + "line": 254, + "column": 39 }, - "identifierName": "clientY" + "identifierName": "height" }, - "name": "clientY" + "name": "height" }, "computed": false } }, - "operator": "+", + "operator": "-", "right": { - "type": "StringLiteral", - "start": 7730, - "end": 7743, + "type": "MemberExpression", + "start": 6751, + "end": 6759, "loc": { "start": { - "line": 286, - "column": 101 + "line": 254, + "column": 42 }, "end": { - "line": 286, - "column": 114 + "line": 254, + "column": 50 } }, - "extra": { - "rawValue": " ) view( x:", - "raw": "\" ) view( x:\"" + "object": { + "type": "Identifier", + "start": 6751, + "end": 6757, + "loc": { + "start": { + "line": 254, + "column": 42 + }, + "end": { + "line": 254, + "column": 48 + }, + "identifierName": "center" + }, + "name": "center" }, - "value": " ) view( x:" + "property": { + "type": "Identifier", + "start": 6758, + "end": 6759, + "loc": { + "start": { + "line": 254, + "column": 49 + }, + "end": { + "line": 254, + "column": 50 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6769, + "end": 6789, + "loc": { + "start": { + "line": 255, + "column": 8 + }, + "end": { + "line": 255, + "column": 28 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6773, + "end": 6788, + "loc": { + "start": { + "line": 255, + "column": 12 + }, + "end": { + "line": 255, + "column": 27 } }, - "operator": "+", - "right": { + "id": { "type": "Identifier", - "start": 7746, - "end": 7748, + "start": 6773, + "end": 6775, "loc": { "start": { - "line": 286, - "column": 117 + "line": 255, + "column": 12 }, "end": { - "line": 286, - "column": 119 + "line": 255, + "column": 14 }, - "identifierName": "vx" + "identifierName": "x3" }, - "name": "vx" + "name": "x3" + }, + "init": { + "type": "BinaryExpression", + "start": 6778, + "end": 6788, + "loc": { + "start": { + "line": 255, + "column": 17 + }, + "end": { + "line": 255, + "column": 27 + } + }, + "left": { + "type": "Identifier", + "start": 6778, + "end": 6780, + "loc": { + "start": { + "line": 255, + "column": 17 + }, + "end": { + "line": 255, + "column": 19 + }, + "identifierName": "y3" + }, + "name": "y3" + }, + "operator": "/", + "right": { + "type": "Identifier", + "start": 6783, + "end": 6788, + "loc": { + "start": { + "line": 255, + "column": 22 + }, + "end": { + "line": 255, + "column": 27 + }, + "identifierName": "scale" + }, + "name": "scale" + } } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 6798, + "end": 6874, + "loc": { + "start": { + "line": 256, + "column": 8 + }, + "end": { + "line": 259, + "column": 9 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6798, + "end": 6874, + "loc": { + "start": { + "line": 256, + "column": 8 + }, + "end": { + "line": 259, + "column": 9 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 6798, + "end": 6801, + "loc": { + "start": { + "line": 256, + "column": 8 + }, + "end": { + "line": 256, + "column": 11 + }, + "identifierName": "res" + }, + "name": "res" }, - "operator": "+", "right": { - "type": "StringLiteral", - "start": 7751, - "end": 7756, + "type": "ObjectExpression", + "start": 6804, + "end": 6874, "loc": { "start": { - "line": 286, - "column": 122 + "line": 256, + "column": 14 }, "end": { - "line": 286, - "column": 127 + "line": 259, + "column": 9 } }, - "extra": { - "rawValue": " y:", - "raw": "\" y:\"" - }, - "value": " y:" + "properties": [ + { + "type": "ObjectProperty", + "start": 6818, + "end": 6834, + "loc": { + "start": { + "line": 257, + "column": 12 + }, + "end": { + "line": 257, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6818, + "end": 6819, + "loc": { + "start": { + "line": 257, + "column": 12 + }, + "end": { + "line": 257, + "column": 13 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "BinaryExpression", + "start": 6821, + "end": 6834, + "loc": { + "start": { + "line": 257, + "column": 15 + }, + "end": { + "line": 257, + "column": 28 + } + }, + "left": { + "type": "MemberExpression", + "start": 6821, + "end": 6829, + "loc": { + "start": { + "line": 257, + "column": 15 + }, + "end": { + "line": 257, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 6821, + "end": 6827, + "loc": { + "start": { + "line": 257, + "column": 15 + }, + "end": { + "line": 257, + "column": 21 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 6828, + "end": 6829, + "loc": { + "start": { + "line": 257, + "column": 22 + }, + "end": { + "line": 257, + "column": 23 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 6832, + "end": 6834, + "loc": { + "start": { + "line": 257, + "column": 26 + }, + "end": { + "line": 257, + "column": 28 + }, + "identifierName": "y3" + }, + "name": "y3" + } + } + }, + { + "type": "ObjectProperty", + "start": 6848, + "end": 6864, + "loc": { + "start": { + "line": 258, + "column": 12 + }, + "end": { + "line": 258, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6848, + "end": 6849, + "loc": { + "start": { + "line": 258, + "column": 12 + }, + "end": { + "line": 258, + "column": 13 + }, + "identifierName": "x" + }, + "name": "x" + }, + "value": { + "type": "BinaryExpression", + "start": 6851, + "end": 6864, + "loc": { + "start": { + "line": 258, + "column": 15 + }, + "end": { + "line": 258, + "column": 28 + } + }, + "left": { + "type": "MemberExpression", + "start": 6851, + "end": 6859, + "loc": { + "start": { + "line": 258, + "column": 15 + }, + "end": { + "line": 258, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 6851, + "end": 6857, + "loc": { + "start": { + "line": 258, + "column": 15 + }, + "end": { + "line": 258, + "column": 21 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 6858, + "end": 6859, + "loc": { + "start": { + "line": 258, + "column": 22 + }, + "end": { + "line": 258, + "column": 23 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 6862, + "end": 6864, + "loc": { + "start": { + "line": 258, + "column": 26 + }, + "end": { + "line": 258, + "column": 28 + }, + "identifierName": "x3" + }, + "name": "x3" + } + } + } + ] } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "IfStatement", + "start": 6886, + "end": 7243, + "loc": { + "start": { + "line": 260, + "column": 11 + }, + "end": { + "line": 274, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6890, + "end": 6916, + "loc": { + "start": { + "line": 260, + "column": 15 }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 7759, - "end": 7761, - "loc": { - "start": { - "line": 286, - "column": 130 - }, - "end": { - "line": 286, - "column": 132 - }, - "identifierName": "vy" - }, - "name": "vy" + "end": { + "line": 260, + "column": 41 } }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 7764, - "end": 7767, + "left": { + "type": "Identifier", + "start": 6890, + "end": 6901, "loc": { "start": { - "line": 286, - "column": 135 + "line": 260, + "column": 15 }, "end": { - "line": 286, - "column": 138 - } + "line": 260, + "column": 26 + }, + "identifierName": "angleTarget" }, - "extra": { - "rawValue": ")", - "raw": "\")\"" + "name": "angleTarget" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 6904, + "end": 6916, + "loc": { + "start": { + "line": 260, + "column": 29 + }, + "end": { + "line": 260, + "column": 41 + }, + "identifierName": "angleLeftTop" }, - "value": ")" + "name": "angleLeftTop" } - } - ] - } - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 7775, - "end": 7791, - "loc": { - "start": { - "line": 288, - "column": 4 - }, - "end": { - "line": 288, - "column": 20 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7775, - "end": 7790, - "loc": { - "start": { - "line": 288, - "column": 4 - }, - "end": { - "line": 288, - "column": 19 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7775, - "end": 7785, - "loc": { - "start": { - "line": 288, - "column": 4 - }, - "end": { - "line": 288, - "column": 14 - }, - "identifierName": "lastMouseX" - }, - "name": "lastMouseX" - }, - "right": { - "type": "Identifier", - "start": 7788, - "end": 7790, - "loc": { - "start": { - "line": 288, - "column": 17 - }, - "end": { - "line": 288, - "column": 19 }, - "identifierName": "sx" - }, - "name": "sx" - } - } - }, - { - "type": "ExpressionStatement", - "start": 7796, - "end": 7812, - "loc": { - "start": { - "line": 289, - "column": 4 - }, - "end": { - "line": 289, - "column": 20 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7796, - "end": 7811, - "loc": { - "start": { - "line": 289, - "column": 4 - }, - "end": { - "line": 289, - "column": 19 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7796, - "end": 7806, - "loc": { - "start": { - "line": 289, - "column": 4 - }, - "end": { - "line": 289, - "column": 14 - }, - "identifierName": "lastMouseY" - }, - "name": "lastMouseY" - }, - "right": { - "type": "Identifier", - "start": 7809, - "end": 7811, - "loc": { - "start": { - "line": 289, - "column": 17 - }, - "end": { - "line": 289, - "column": 19 - }, - "identifierName": "sy" - }, - "name": "sy" - } - } - }, - { - "type": "ExpressionStatement", - "start": 7818, - "end": 7843, - "loc": { - "start": { - "line": 291, - "column": 4 - }, - "end": { - "line": 291, - "column": 29 - } - }, - "expression": { - "type": "CallExpression", - "start": 7818, - "end": 7842, - "loc": { - "start": { - "line": 291, - "column": 4 - }, - "end": { - "line": 291, - "column": 28 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7818, - "end": 7834, - "loc": { - "start": { - "line": 291, - "column": 4 - }, - "end": { - "line": 291, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 7818, - "end": 7825, - "loc": { - "start": { - "line": 291, - "column": 4 - }, - "end": { - "line": 291, - "column": 11 - }, - "identifierName": "dragMgr" - }, - "name": "dragMgr" - }, - "property": { - "type": "Identifier", - "start": 7826, - "end": 7834, - "loc": { - "start": { - "line": 291, - "column": 12 - }, - "end": { - "line": 291, - "column": 20 - }, - "identifierName": "setPoint" - }, - "name": "setPoint" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 7835, - "end": 7837, - "loc": { - "start": { - "line": 291, - "column": 21 - }, - "end": { - "line": 291, - "column": 23 - }, - "identifierName": "vx" - }, - "name": "vx" - }, - { - "type": "Identifier", - "start": 7839, - "end": 7841, - "loc": { - "start": { - "line": 291, - "column": 25 - }, - "end": { - "line": 291, - "column": 27 - }, - "identifierName": "vy" - }, - "name": "vy" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "FunctionDeclaration", - "start": 7847, - "end": 8606, - "loc": { - "start": { - "line": 294, - "column": 0 - }, - "end": { - "line": 319, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 7856, - "end": 7869, - "loc": { - "start": { - "line": 294, - "column": 9 - }, - "end": { - "line": 294, - "column": 22 - }, - "identifierName": "modelTapEvent" - }, - "name": "modelTapEvent" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7870, - "end": 7875, - "loc": { - "start": { - "line": 294, - "column": 23 - }, - "end": { - "line": 294, - "column": 28 - }, - "identifierName": "event" - }, - "name": "event" - } - ], - "body": { - "type": "BlockStatement", - "start": 7877, - "end": 8606, - "loc": { - "start": { - "line": 295, - "column": 0 - }, - "end": { - "line": 319, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7883, - "end": 7895, - "loc": { - "start": { - "line": 296, - "column": 4 - }, - "end": { - "line": 296, - "column": 16 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7883, - "end": 7894, - "loc": { - "start": { - "line": 296, - "column": 4 - }, - "end": { - "line": 296, - "column": 15 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7883, - "end": 7887, - "loc": { - "start": { - "line": 296, - "column": 4 - }, - "end": { - "line": 296, - "column": 8 - }, - "identifierName": "drag" - }, - "name": "drag" - }, - "right": { - "type": "BooleanLiteral", - "start": 7890, - "end": 7894, - "loc": { - "start": { - "line": 296, - "column": 11 - }, - "end": { - "line": 296, - "column": 15 - } - }, - "value": true - } - } - }, - { - "type": "VariableDeclaration", - "start": 7901, - "end": 7947, - "loc": { - "start": { - "line": 298, - "column": 4 - }, - "end": { - "line": 298, - "column": 50 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7905, - "end": 7946, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 7905, - "end": 7909, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 12 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "init": { - "type": "CallExpression", - "start": 7912, - "end": 7946, - "loc": { - "start": { - "line": 298, - "column": 15 - }, - "end": { - "line": 298, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7912, - "end": 7944, + "consequent": { + "type": "BlockStatement", + "start": 6918, + "end": 7078, "loc": { "start": { - "line": 298, - "column": 15 + "line": 260, + "column": 43 }, "end": { - "line": 298, - "column": 47 + "line": 267, + "column": 5 } }, - "object": { - "type": "Identifier", - "start": 7912, - "end": 7922, - "loc": { - "start": { - "line": 298, - "column": 15 - }, - "end": { - "line": 298, - "column": 25 - }, - "identifierName": "currCanvas" - }, - "name": "currCanvas" - }, - "property": { - "type": "Identifier", - "start": 7923, - "end": 7944, - "loc": { - "start": { - "line": 298, - "column": 26 - }, - "end": { - "line": 298, - "column": 47 - }, - "identifierName": "getBoundingClientRect" - }, - "name": "getBoundingClientRect" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 7953, - "end": 8006, - "loc": { - "start": { - "line": 300, - "column": 4 - }, - "end": { - "line": 300, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7957, - "end": 8005, - "loc": { - "start": { - "line": 300, - "column": 8 - }, - "end": { - "line": 300, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 7957, - "end": 7959, - "loc": { - "start": { - "line": 300, - "column": 8 - }, - "end": { - "line": 300, - "column": 10 - }, - "identifierName": "sx" - }, - "name": "sx" - }, - "init": { - "type": "CallExpression", - "start": 7962, - "end": 8005, - "loc": { - "start": { - "line": 300, - "column": 13 - }, - "end": { - "line": 300, - "column": 56 - } - }, - "callee": { - "type": "Identifier", - "start": 7962, - "end": 7978, - "loc": { - "start": { - "line": 300, - "column": 13 - }, - "end": { - "line": 300, - "column": 29 - }, - "identifierName": "transformScreenX" - }, - "name": "transformScreenX" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 7979, - "end": 8004, - "loc": { - "start": { - "line": 300, - "column": 30 - }, - "end": { - "line": 300, - "column": 55 - } - }, - "left": { - "type": "MemberExpression", - "start": 7979, - "end": 7992, - "loc": { - "start": { - "line": 300, - "column": 30 - }, - "end": { - "line": 300, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 7979, - "end": 7984, - "loc": { - "start": { - "line": 300, - "column": 30 - }, - "end": { - "line": 300, - "column": 35 - }, - "identifierName": "event" - }, - "name": "event" - }, - "property": { - "type": "Identifier", - "start": 7985, - "end": 7992, - "loc": { - "start": { - "line": 300, - "column": 36 - }, - "end": { - "line": 300, - "column": 43 - }, - "identifierName": "clientX" - }, - "name": "clientX" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 7995, - "end": 8004, + "body": [ + { + "type": "VariableDeclaration", + "start": 6928, + "end": 6958, "loc": { "start": { - "line": 300, - "column": 46 + "line": 261, + "column": 8 }, "end": { - "line": 300, - "column": 55 + "line": 261, + "column": 38 } }, - "object": { - "type": "Identifier", - "start": 7995, - "end": 7999, - "loc": { - "start": { - "line": 300, - "column": 46 - }, - "end": { - "line": 300, - "column": 50 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 8000, - "end": 8004, - "loc": { - "start": { - "line": 300, - "column": 51 + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6932, + "end": 6957, + "loc": { + "start": { + "line": 261, + "column": 12 + }, + "end": { + "line": 261, + "column": 37 + } }, - "end": { - "line": 300, - "column": 55 + "id": { + "type": "Identifier", + "start": 6932, + "end": 6934, + "loc": { + "start": { + "line": 261, + "column": 12 + }, + "end": { + "line": 261, + "column": 14 + }, + "identifierName": "x3" + }, + "name": "x3" }, - "identifierName": "left" - }, - "name": "left" - }, - "computed": false - } - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 8011, - "end": 8063, - "loc": { - "start": { - "line": 301, - "column": 4 - }, - "end": { - "line": 301, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8015, - "end": 8062, - "loc": { - "start": { - "line": 301, - "column": 8 - }, - "end": { - "line": 301, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 8015, - "end": 8017, - "loc": { - "start": { - "line": 301, - "column": 8 - }, - "end": { - "line": 301, - "column": 10 - }, - "identifierName": "sy" - }, - "name": "sy" - }, - "init": { - "type": "CallExpression", - "start": 8020, - "end": 8062, - "loc": { - "start": { - "line": 301, - "column": 13 - }, - "end": { - "line": 301, - "column": 55 - } - }, - "callee": { - "type": "Identifier", - "start": 8020, - "end": 8036, - "loc": { - "start": { - "line": 301, - "column": 13 - }, - "end": { - "line": 301, - "column": 29 - }, - "identifierName": "transformScreenY" - }, - "name": "transformScreenY" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 8037, - "end": 8061, - "loc": { - "start": { - "line": 301, - "column": 30 - }, - "end": { - "line": 301, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 8037, - "end": 8050, - "loc": { - "start": { - "line": 301, - "column": 30 - }, - "end": { - "line": 301, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 8037, - "end": 8042, - "loc": { - "start": { - "line": 301, - "column": 30 - }, - "end": { - "line": 301, - "column": 35 - }, - "identifierName": "event" - }, - "name": "event" - }, - "property": { - "type": "Identifier", - "start": 8043, - "end": 8050, - "loc": { - "start": { - "line": 301, - "column": 36 - }, - "end": { - "line": 301, - "column": 43 - }, - "identifierName": "clientY" - }, - "name": "clientY" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 8053, - "end": 8061, - "loc": { - "start": { - "line": 301, - "column": 46 - }, - "end": { - "line": 301, - "column": 54 - } - }, - "object": { - "type": "Identifier", - "start": 8053, - "end": 8057, - "loc": { - "start": { - "line": 301, - "column": 46 - }, - "end": { - "line": 301, - "column": 50 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 8058, - "end": 8061, - "loc": { - "start": { - "line": 301, - "column": 51 - }, - "end": { - "line": 301, - "column": 54 - }, - "identifierName": "top" - }, - "name": "top" - }, - "computed": false - } - } - ] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 8068, - "end": 8252, - "loc": { - "start": { - "line": 302, - "column": 4 - }, - "end": { - "line": 308, - "column": 12 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8072, - "end": 8252, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 308, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 8072, - "end": 8078, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 302, - "column": 14 - }, - "identifierName": "target" - }, - "name": "target" - }, - "init": { - "type": "CallExpression", - "start": 8081, - "end": 8252, - "loc": { - "start": { - "line": 302, - "column": 17 - }, - "end": { - "line": 308, - "column": 12 - } - }, - "callee": { - "type": "Identifier", - "start": 8081, - "end": 8094, - "loc": { - "start": { - "line": 302, - "column": 17 - }, - "end": { - "line": 302, - "column": 30 - }, - "identifierName": "transformRect" - }, - "name": "transformRect" - }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8095, - "end": 8185, - "loc": { - "start": { - "line": 302, - "column": 31 - }, - "end": { - "line": 305, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8105, - "end": 8134, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 37 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8105, - "end": 8106, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 8108, - "end": 8134, - "loc": { - "start": { - "line": 303, - "column": 11 - }, - "end": { - "line": 303, - "column": 37 - } - }, - "left": { - "type": "MemberExpression", - "start": 8108, - "end": 8117, - "loc": { - "start": { - "line": 303, - "column": 11 - }, - "end": { - "line": 303, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 8108, - "end": 8112, - "loc": { - "start": { - "line": 303, - "column": 11 - }, - "end": { - "line": 303, - "column": 15 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 8113, - "end": 8117, - "loc": { - "start": { - "line": 303, - "column": 16 - }, - "end": { - "line": 303, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left" - }, - "computed": false - }, - "operator": "+", - "right": { + "init": { "type": "BinaryExpression", - "start": 8120, - "end": 8134, + "start": 6937, + "end": 6957, "loc": { "start": { - "line": 303, - "column": 23 + "line": 261, + "column": 17 }, "end": { - "line": 303, + "line": 261, "column": 37 } }, "left": { "type": "MemberExpression", - "start": 8120, - "end": 8130, + "start": 6937, + "end": 6945, "loc": { "start": { - "line": 303, - "column": 23 + "line": 261, + "column": 17 }, "end": { - "line": 303, - "column": 33 + "line": 261, + "column": 25 } }, "object": { "type": "Identifier", - "start": 8120, - "end": 8124, + "start": 6937, + "end": 6943, "loc": { "start": { - "line": 303, - "column": 23 + "line": 261, + "column": 17 }, "end": { - "line": 303, - "column": 27 + "line": 261, + "column": 23 }, - "identifierName": "rect" + "identifierName": "center" }, - "name": "rect" + "name": "center" }, "property": { "type": "Identifier", - "start": 8125, - "end": 8130, + "start": 6944, + "end": 6945, "loc": { "start": { - "line": 303, - "column": 28 + "line": 261, + "column": 24 }, "end": { - "line": 303, - "column": 33 + "line": 261, + "column": 25 }, - "identifierName": "width" + "identifierName": "x" }, - "name": "width" + "name": "x" }, "computed": false }, - "operator": "/", + "operator": "-", "right": { - "type": "NumericLiteral", - "start": 8133, - "end": 8134, + "type": "MemberExpression", + "start": 6948, + "end": 6957, "loc": { "start": { - "line": 303, - "column": 36 + "line": 261, + "column": 28 }, "end": { - "line": 303, + "line": 261, "column": 37 } }, - "extra": { - "rawValue": 2, - "raw": "2" + "object": { + "type": "Identifier", + "start": 6948, + "end": 6952, + "loc": { + "start": { + "line": 261, + "column": 28 + }, + "end": { + "line": 261, + "column": 32 + }, + "identifierName": "rect" + }, + "name": "rect" }, - "value": 2 + "property": { + "type": "Identifier", + "start": 6953, + "end": 6957, + "loc": { + "start": { + "line": 261, + "column": 33 + }, + "end": { + "line": 261, + "column": 37 + }, + "identifierName": "left" + }, + "name": "left" + }, + "computed": false } } } - }, - { - "type": "ObjectProperty", - "start": 8144, - "end": 8179, - "loc": { - "start": { - "line": 304, - "column": 8 - }, - "end": { - "line": 304, - "column": 43 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8144, - "end": 8145, - "loc": { - "start": { - "line": 304, - "column": 8 - }, - "end": { - "line": 304, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6967, + "end": 6987, + "loc": { + "start": { + "line": 262, + "column": 8 }, - "value": { - "type": "BinaryExpression", - "start": 8147, - "end": 8179, + "end": { + "line": 262, + "column": 28 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6971, + "end": 6986, "loc": { "start": { - "line": 304, - "column": 11 + "line": 262, + "column": 12 }, "end": { - "line": 304, - "column": 43 + "line": 262, + "column": 27 } }, - "left": { - "type": "MemberExpression", - "start": 8147, - "end": 8155, + "id": { + "type": "Identifier", + "start": 6971, + "end": 6973, "loc": { "start": { - "line": 304, - "column": 11 + "line": 262, + "column": 12 }, "end": { - "line": 304, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8147, - "end": 8151, - "loc": { - "start": { - "line": 304, - "column": 11 - }, - "end": { - "line": 304, - "column": 15 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 8152, - "end": 8155, - "loc": { - "start": { - "line": 304, - "column": 16 - }, - "end": { - "line": 304, - "column": 19 - }, - "identifierName": "top" + "line": 262, + "column": 14 }, - "name": "top" + "identifierName": "y3" }, - "computed": false + "name": "y3" }, - "operator": "+", - "right": { + "init": { "type": "BinaryExpression", - "start": 8158, - "end": 8179, + "start": 6976, + "end": 6986, "loc": { "start": { - "line": 304, - "column": 22 + "line": 262, + "column": 17 }, "end": { - "line": 304, - "column": 43 + "line": 262, + "column": 27 } }, "left": { - "type": "MemberExpression", - "start": 8158, - "end": 8169, + "type": "Identifier", + "start": 6976, + "end": 6978, "loc": { "start": { - "line": 304, - "column": 22 + "line": 262, + "column": 17 }, "end": { - "line": 304, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 8158, - "end": 8162, - "loc": { - "start": { - "line": 304, - "column": 22 - }, - "end": { - "line": 304, - "column": 26 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 8163, - "end": 8169, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 33 - }, - "identifierName": "height" + "line": 262, + "column": 19 }, - "name": "height" + "identifierName": "x3" }, - "computed": false + "name": "x3" }, "operator": "*", "right": { "type": "Identifier", - "start": 8172, - "end": 8179, + "start": 6981, + "end": 6986, "loc": { "start": { - "line": 304, - "column": 36 + "line": 262, + "column": 22 }, "end": { - "line": 304, - "column": 43 + "line": 262, + "column": 27 }, - "identifierName": "headPos" + "identifierName": "scale" }, - "name": "headPos" + "name": "scale" } } } - } - ] - }, - { - "type": "ObjectExpression", - "start": 8187, - "end": 8245, - "loc": { - "start": { - "line": 305, - "column": 7 - }, - "end": { - "line": 308, - "column": 5 - } + ], + "kind": "let" }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8197, - "end": 8213, - "loc": { - "start": { - "line": 306, - "column": 8 - }, - "end": { - "line": 306, - "column": 24 + { + "type": "ExpressionStatement", + "start": 6996, + "end": 7072, + "loc": { + "start": { + "line": 263, + "column": 8 + }, + "end": { + "line": 266, + "column": 9 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6996, + "end": 7072, + "loc": { + "start": { + "line": 263, + "column": 8 + }, + "end": { + "line": 266, + "column": 9 } }, - "method": false, - "shorthand": false, - "computed": false, - "key": { + "operator": "=", + "left": { "type": "Identifier", - "start": 8197, - "end": 8198, + "start": 6996, + "end": 6999, "loc": { "start": { - "line": 306, + "line": 263, "column": 8 }, "end": { - "line": 306, - "column": 9 + "line": 263, + "column": 11 }, - "identifierName": "x" + "identifierName": "res" }, - "name": "x" + "name": "res" }, - "value": { - "type": "MemberExpression", - "start": 8200, - "end": 8213, + "right": { + "type": "ObjectExpression", + "start": 7002, + "end": 7072, "loc": { "start": { - "line": 306, - "column": 11 + "line": 263, + "column": 14 }, "end": { - "line": 306, - "column": 24 + "line": 266, + "column": 9 } }, - "object": { + "properties": [ + { + "type": "ObjectProperty", + "start": 7016, + "end": 7032, + "loc": { + "start": { + "line": 264, + "column": 12 + }, + "end": { + "line": 264, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 7016, + "end": 7017, + "loc": { + "start": { + "line": 264, + "column": 12 + }, + "end": { + "line": 264, + "column": 13 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "BinaryExpression", + "start": 7019, + "end": 7032, + "loc": { + "start": { + "line": 264, + "column": 15 + }, + "end": { + "line": 264, + "column": 28 + } + }, + "left": { + "type": "MemberExpression", + "start": 7019, + "end": 7027, + "loc": { + "start": { + "line": 264, + "column": 15 + }, + "end": { + "line": 264, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 7019, + "end": 7025, + "loc": { + "start": { + "line": 264, + "column": 15 + }, + "end": { + "line": 264, + "column": 21 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 7026, + "end": 7027, + "loc": { + "start": { + "line": 264, + "column": 22 + }, + "end": { + "line": 264, + "column": 23 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "Identifier", + "start": 7030, + "end": 7032, + "loc": { + "start": { + "line": 264, + "column": 26 + }, + "end": { + "line": 264, + "column": 28 + }, + "identifierName": "y3" + }, + "name": "y3" + } + } + }, + { + "type": "ObjectProperty", + "start": 7046, + "end": 7062, + "loc": { + "start": { + "line": 265, + "column": 12 + }, + "end": { + "line": 265, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 7046, + "end": 7047, + "loc": { + "start": { + "line": 265, + "column": 12 + }, + "end": { + "line": 265, + "column": 13 + }, + "identifierName": "x" + }, + "name": "x" + }, + "value": { + "type": "BinaryExpression", + "start": 7049, + "end": 7062, + "loc": { + "start": { + "line": 265, + "column": 15 + }, + "end": { + "line": 265, + "column": 28 + } + }, + "left": { + "type": "MemberExpression", + "start": 7049, + "end": 7057, + "loc": { + "start": { + "line": 265, + "column": 15 + }, + "end": { + "line": 265, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 7049, + "end": 7055, + "loc": { + "start": { + "line": 265, + "column": 15 + }, + "end": { + "line": 265, + "column": 21 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 7056, + "end": 7057, + "loc": { + "start": { + "line": 265, + "column": 22 + }, + "end": { + "line": 265, + "column": 23 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "Identifier", + "start": 7060, + "end": 7062, + "loc": { + "start": { + "line": 265, + "column": 26 + }, + "end": { + "line": 265, + "column": 28 + }, + "identifierName": "x3" + }, + "name": "x3" + } + } + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 7084, + "end": 7243, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 274, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 7094, + "end": 7123, + "loc": { + "start": { + "line": 268, + "column": 8 + }, + "end": { + "line": 268, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7098, + "end": 7122, + "loc": { + "start": { + "line": 268, + "column": 12 + }, + "end": { + "line": 268, + "column": 36 + } + }, + "id": { "type": "Identifier", - "start": 8200, - "end": 8205, + "start": 7098, + "end": 7100, "loc": { "start": { - "line": 306, - "column": 11 + "line": 268, + "column": 12 }, "end": { - "line": 306, - "column": 16 + "line": 268, + "column": 14 }, - "identifierName": "event" + "identifierName": "y3" }, - "name": "event" + "name": "y3" }, - "property": { - "type": "Identifier", - "start": 8206, - "end": 8213, + "init": { + "type": "BinaryExpression", + "start": 7103, + "end": 7122, "loc": { "start": { - "line": 306, + "line": 268, "column": 17 }, "end": { - "line": 306, - "column": 24 + "line": 268, + "column": 36 + } + }, + "left": { + "type": "MemberExpression", + "start": 7103, + "end": 7111, + "loc": { + "start": { + "line": 268, + "column": 17 + }, + "end": { + "line": 268, + "column": 25 + } }, - "identifierName": "clientX" + "object": { + "type": "Identifier", + "start": 7103, + "end": 7107, + "loc": { + "start": { + "line": 268, + "column": 17 + }, + "end": { + "line": 268, + "column": 21 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 7108, + "end": 7111, + "loc": { + "start": { + "line": 268, + "column": 22 + }, + "end": { + "line": 268, + "column": 25 + }, + "identifierName": "top" + }, + "name": "top" + }, + "computed": false }, - "name": "clientX" + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 7114, + "end": 7122, + "loc": { + "start": { + "line": 268, + "column": 28 + }, + "end": { + "line": 268, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 7114, + "end": 7120, + "loc": { + "start": { + "line": 268, + "column": 28 + }, + "end": { + "line": 268, + "column": 34 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 7121, + "end": 7122, + "loc": { + "start": { + "line": 268, + "column": 35 + }, + "end": { + "line": 268, + "column": 36 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 7132, + "end": 7152, + "loc": { + "start": { + "line": 269, + "column": 8 + }, + "end": { + "line": 269, + "column": 28 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7136, + "end": 7151, + "loc": { + "start": { + "line": 269, + "column": 12 + }, + "end": { + "line": 269, + "column": 27 + } }, - "computed": false + "id": { + "type": "Identifier", + "start": 7136, + "end": 7138, + "loc": { + "start": { + "line": 269, + "column": 12 + }, + "end": { + "line": 269, + "column": 14 + }, + "identifierName": "x3" + }, + "name": "x3" + }, + "init": { + "type": "BinaryExpression", + "start": 7141, + "end": 7151, + "loc": { + "start": { + "line": 269, + "column": 17 + }, + "end": { + "line": 269, + "column": 27 + } + }, + "left": { + "type": "Identifier", + "start": 7141, + "end": 7143, + "loc": { + "start": { + "line": 269, + "column": 17 + }, + "end": { + "line": 269, + "column": 19 + }, + "identifierName": "y3" + }, + "name": "y3" + }, + "operator": "/", + "right": { + "type": "Identifier", + "start": 7146, + "end": 7151, + "loc": { + "start": { + "line": 269, + "column": 22 + }, + "end": { + "line": 269, + "column": 27 + }, + "identifierName": "scale" + }, + "name": "scale" + } + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 7161, + "end": 7237, + "loc": { + "start": { + "line": 270, + "column": 8 + }, + "end": { + "line": 273, + "column": 9 } }, - { - "type": "ObjectProperty", - "start": 8223, - "end": 8239, + "expression": { + "type": "AssignmentExpression", + "start": 7161, + "end": 7237, "loc": { "start": { - "line": 307, + "line": 270, "column": 8 }, "end": { - "line": 307, - "column": 24 + "line": 273, + "column": 9 } }, - "method": false, - "shorthand": false, - "computed": false, - "key": { + "operator": "=", + "left": { "type": "Identifier", - "start": 8223, - "end": 8224, + "start": 7161, + "end": 7164, "loc": { "start": { - "line": 307, + "line": 270, "column": 8 }, "end": { - "line": 307, - "column": 9 + "line": 270, + "column": 11 }, - "identifierName": "y" + "identifierName": "res" }, - "name": "y" + "name": "res" }, - "value": { - "type": "MemberExpression", - "start": 8226, - "end": 8239, + "right": { + "type": "ObjectExpression", + "start": 7167, + "end": 7237, "loc": { "start": { - "line": 307, - "column": 11 + "line": 270, + "column": 14 }, "end": { - "line": 307, - "column": 24 + "line": 273, + "column": 9 } }, - "object": { - "type": "Identifier", - "start": 8226, - "end": 8231, - "loc": { - "start": { - "line": 307, - "column": 11 + "properties": [ + { + "type": "ObjectProperty", + "start": 7181, + "end": 7197, + "loc": { + "start": { + "line": 271, + "column": 12 + }, + "end": { + "line": 271, + "column": 28 + } }, - "end": { - "line": 307, - "column": 16 + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 7181, + "end": 7182, + "loc": { + "start": { + "line": 271, + "column": 12 + }, + "end": { + "line": 271, + "column": 13 + }, + "identifierName": "y" + }, + "name": "y" }, - "identifierName": "event" - }, - "name": "event" - }, - "property": { - "type": "Identifier", - "start": 8232, - "end": 8239, - "loc": { - "start": { - "line": 307, - "column": 17 + "value": { + "type": "BinaryExpression", + "start": 7184, + "end": 7197, + "loc": { + "start": { + "line": 271, + "column": 15 + }, + "end": { + "line": 271, + "column": 28 + } + }, + "left": { + "type": "MemberExpression", + "start": 7184, + "end": 7192, + "loc": { + "start": { + "line": 271, + "column": 15 + }, + "end": { + "line": 271, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 7184, + "end": 7190, + "loc": { + "start": { + "line": 271, + "column": 15 + }, + "end": { + "line": 271, + "column": 21 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 7191, + "end": 7192, + "loc": { + "start": { + "line": 271, + "column": 22 + }, + "end": { + "line": 271, + "column": 23 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 7195, + "end": 7197, + "loc": { + "start": { + "line": 271, + "column": 26 + }, + "end": { + "line": 271, + "column": 28 + }, + "identifierName": "y3" + }, + "name": "y3" + } + } + }, + { + "type": "ObjectProperty", + "start": 7211, + "end": 7227, + "loc": { + "start": { + "line": 272, + "column": 12 + }, + "end": { + "line": 272, + "column": 28 + } }, - "end": { - "line": 307, - "column": 24 + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 7211, + "end": 7212, + "loc": { + "start": { + "line": 272, + "column": 12 + }, + "end": { + "line": 272, + "column": 13 + }, + "identifierName": "x" + }, + "name": "x" }, - "identifierName": "clientY" - }, - "name": "clientY" - }, - "computed": false + "value": { + "type": "BinaryExpression", + "start": 7214, + "end": 7227, + "loc": { + "start": { + "line": 272, + "column": 15 + }, + "end": { + "line": 272, + "column": 28 + } + }, + "left": { + "type": "MemberExpression", + "start": 7214, + "end": 7222, + "loc": { + "start": { + "line": 272, + "column": 15 + }, + "end": { + "line": 272, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 7214, + "end": 7220, + "loc": { + "start": { + "line": 272, + "column": 15 + }, + "end": { + "line": 272, + "column": 21 + }, + "identifierName": "center" + }, + "name": "center" + }, + "property": { + "type": "Identifier", + "start": 7221, + "end": 7222, + "loc": { + "start": { + "line": 272, + "column": 22 + }, + "end": { + "line": 272, + "column": 23 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 7225, + "end": 7227, + "loc": { + "start": { + "line": 272, + "column": 26 + }, + "end": { + "line": 272, + "column": 28 + }, + "identifierName": "x3" + }, + "name": "x3" + } + } + } + ] } } - ] + } + ], + "directives": [] + } + } + } + } + }, + { + "type": "ReturnStatement", + "start": 7249, + "end": 7260, + "loc": { + "start": { + "line": 276, + "column": 4 + }, + "end": { + "line": 276, + "column": 15 + } + }, + "argument": { + "type": "Identifier", + "start": 7256, + "end": 7259, + "loc": { + "start": { + "line": 276, + "column": 11 + }, + "end": { + "line": 276, + "column": 14 + }, + "identifierName": "res" + }, + "name": "res" + } + } + ], + "directives": [] + } + }, + { + "type": "FunctionDeclaration", + "start": 7264, + "end": 8021, + "loc": { + "start": { + "line": 279, + "column": 0 + }, + "end": { + "line": 304, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 7273, + "end": 7286, + "loc": { + "start": { + "line": 279, + "column": 9 + }, + "end": { + "line": 279, + "column": 22 + }, + "identifierName": "modelTurnHead" + }, + "name": "modelTurnHead" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 7287, + "end": 7292, + "loc": { + "start": { + "line": 279, + "column": 23 + }, + "end": { + "line": 279, + "column": 28 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 7294, + "end": 8021, + "loc": { + "start": { + "line": 280, + "column": 0 + }, + "end": { + "line": 304, + "column": 1 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7300, + "end": 7312, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 16 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7300, + "end": 7311, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 15 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7300, + "end": 7304, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 8 + }, + "identifierName": "drag" + }, + "name": "drag" + }, + "right": { + "type": "BooleanLiteral", + "start": 7307, + "end": 7311, + "loc": { + "start": { + "line": 281, + "column": 11 + }, + "end": { + "line": 281, + "column": 15 + } + }, + "value": true + } + } + }, + { + "type": "VariableDeclaration", + "start": 7318, + "end": 7364, + "loc": { + "start": { + "line": 283, + "column": 4 + }, + "end": { + "line": 283, + "column": 50 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7322, + "end": 7363, + "loc": { + "start": { + "line": 283, + "column": 8 + }, + "end": { + "line": 283, + "column": 49 + } + }, + "id": { + "type": "Identifier", + "start": 7322, + "end": 7326, + "loc": { + "start": { + "line": 283, + "column": 8 }, - { + "end": { + "line": 283, + "column": 12 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "init": { + "type": "CallExpression", + "start": 7329, + "end": 7363, + "loc": { + "start": { + "line": 283, + "column": 15 + }, + "end": { + "line": 283, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7329, + "end": 7361, + "loc": { + "start": { + "line": 283, + "column": 15 + }, + "end": { + "line": 283, + "column": 47 + } + }, + "object": { "type": "Identifier", - "start": 8247, - "end": 8251, + "start": 7329, + "end": 7339, "loc": { "start": { - "line": 308, - "column": 7 + "line": 283, + "column": 15 }, "end": { - "line": 308, - "column": 11 + "line": 283, + "column": 25 }, - "identifierName": "rect" + "identifierName": "currCanvas" }, - "name": "rect" - } - ] + "name": "currCanvas" + }, + "property": { + "type": "Identifier", + "start": 7340, + "end": 7361, + "loc": { + "start": { + "line": 283, + "column": 26 + }, + "end": { + "line": 283, + "column": 47 + }, + "identifierName": "getBoundingClientRect" + }, + "name": "getBoundingClientRect" + }, + "computed": false + }, + "arguments": [] } } ], @@ -20851,173 +18426,173 @@ }, { "type": "VariableDeclaration", - "start": 8257, - "end": 8303, + "start": 7370, + "end": 7423, "loc": { "start": { - "line": 309, + "line": 285, "column": 4 }, "end": { - "line": 309, - "column": 50 + "line": 285, + "column": 57 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 8261, - "end": 8302, + "start": 7374, + "end": 7422, "loc": { "start": { - "line": 309, + "line": 285, "column": 8 }, "end": { - "line": 309, - "column": 49 + "line": 285, + "column": 56 } }, "id": { "type": "Identifier", - "start": 8261, - "end": 8263, + "start": 7374, + "end": 7376, "loc": { "start": { - "line": 309, + "line": 285, "column": 8 }, "end": { - "line": 309, + "line": 285, "column": 10 }, - "identifierName": "vx" + "identifierName": "sx" }, - "name": "vx" + "name": "sx" }, "init": { "type": "CallExpression", - "start": 8266, - "end": 8302, + "start": 7379, + "end": 7422, "loc": { "start": { - "line": 309, + "line": 285, "column": 13 }, "end": { - "line": 309, - "column": 49 + "line": 285, + "column": 56 } }, "callee": { "type": "Identifier", - "start": 8266, - "end": 8280, + "start": 7379, + "end": 7395, "loc": { "start": { - "line": 309, + "line": 285, "column": 13 }, "end": { - "line": 309, - "column": 27 + "line": 285, + "column": 29 }, - "identifierName": "transformViewX" + "identifierName": "transformScreenX" }, - "name": "transformViewX" + "name": "transformScreenX" }, "arguments": [ { "type": "BinaryExpression", - "start": 8281, - "end": 8301, + "start": 7396, + "end": 7421, "loc": { "start": { - "line": 309, - "column": 28 + "line": 285, + "column": 30 }, "end": { - "line": 309, - "column": 48 + "line": 285, + "column": 55 } }, "left": { "type": "MemberExpression", - "start": 8281, - "end": 8289, + "start": 7396, + "end": 7409, "loc": { "start": { - "line": 309, - "column": 28 + "line": 285, + "column": 30 }, "end": { - "line": 309, - "column": 36 + "line": 285, + "column": 43 } }, "object": { "type": "Identifier", - "start": 8281, - "end": 8287, + "start": 7396, + "end": 7401, "loc": { "start": { - "line": 309, - "column": 28 + "line": 285, + "column": 30 }, "end": { - "line": 309, - "column": 34 + "line": 285, + "column": 35 }, - "identifierName": "target" + "identifierName": "event" }, - "name": "target" + "name": "event" }, "property": { "type": "Identifier", - "start": 8288, - "end": 8289, + "start": 7402, + "end": 7409, "loc": { "start": { - "line": 309, - "column": 35 + "line": 285, + "column": 36 }, "end": { - "line": 309, - "column": 36 + "line": 285, + "column": 43 }, - "identifierName": "x" + "identifierName": "clientX" }, - "name": "x" + "name": "clientX" }, "computed": false }, "operator": "-", "right": { "type": "MemberExpression", - "start": 8292, - "end": 8301, + "start": 7412, + "end": 7421, "loc": { "start": { - "line": 309, - "column": 39 + "line": 285, + "column": 46 }, "end": { - "line": 309, - "column": 48 + "line": 285, + "column": 55 } }, "object": { "type": "Identifier", - "start": 8292, - "end": 8296, + "start": 7412, + "end": 7416, "loc": { "start": { - "line": 309, - "column": 39 + "line": 285, + "column": 46 }, "end": { - "line": 309, - "column": 43 + "line": 285, + "column": 50 }, "identifierName": "rect" }, @@ -21025,16 +18600,16 @@ }, "property": { "type": "Identifier", - "start": 8297, - "end": 8301, + "start": 7417, + "end": 7421, "loc": { "start": { - "line": 309, - "column": 44 + "line": 285, + "column": 51 }, "end": { - "line": 309, - "column": 48 + "line": 285, + "column": 55 }, "identifierName": "left" }, @@ -21051,173 +18626,173 @@ }, { "type": "VariableDeclaration", - "start": 8308, - "end": 8353, + "start": 7428, + "end": 7480, "loc": { "start": { - "line": 310, + "line": 286, "column": 4 }, "end": { - "line": 310, - "column": 49 + "line": 286, + "column": 56 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 8312, - "end": 8352, + "start": 7432, + "end": 7479, "loc": { "start": { - "line": 310, + "line": 286, "column": 8 }, "end": { - "line": 310, - "column": 48 + "line": 286, + "column": 55 } }, "id": { "type": "Identifier", - "start": 8312, - "end": 8314, + "start": 7432, + "end": 7434, "loc": { "start": { - "line": 310, + "line": 286, "column": 8 }, "end": { - "line": 310, + "line": 286, "column": 10 }, - "identifierName": "vy" + "identifierName": "sy" }, - "name": "vy" + "name": "sy" }, "init": { "type": "CallExpression", - "start": 8317, - "end": 8352, + "start": 7437, + "end": 7479, "loc": { "start": { - "line": 310, + "line": 286, "column": 13 }, "end": { - "line": 310, - "column": 48 + "line": 286, + "column": 55 } }, "callee": { "type": "Identifier", - "start": 8317, - "end": 8331, + "start": 7437, + "end": 7453, "loc": { "start": { - "line": 310, + "line": 286, "column": 13 }, "end": { - "line": 310, - "column": 27 + "line": 286, + "column": 29 }, - "identifierName": "transformViewY" + "identifierName": "transformScreenY" }, - "name": "transformViewY" + "name": "transformScreenY" }, "arguments": [ { "type": "BinaryExpression", - "start": 8332, - "end": 8351, + "start": 7454, + "end": 7478, "loc": { "start": { - "line": 310, - "column": 28 + "line": 286, + "column": 30 }, "end": { - "line": 310, - "column": 47 + "line": 286, + "column": 54 } }, "left": { "type": "MemberExpression", - "start": 8332, - "end": 8340, + "start": 7454, + "end": 7467, "loc": { "start": { - "line": 310, - "column": 28 + "line": 286, + "column": 30 }, "end": { - "line": 310, - "column": 36 + "line": 286, + "column": 43 } }, "object": { "type": "Identifier", - "start": 8332, - "end": 8338, + "start": 7454, + "end": 7459, "loc": { "start": { - "line": 310, - "column": 28 + "line": 286, + "column": 30 }, "end": { - "line": 310, - "column": 34 + "line": 286, + "column": 35 }, - "identifierName": "target" + "identifierName": "event" }, - "name": "target" + "name": "event" }, "property": { "type": "Identifier", - "start": 8339, - "end": 8340, + "start": 7460, + "end": 7467, "loc": { "start": { - "line": 310, - "column": 35 + "line": 286, + "column": 36 }, "end": { - "line": 310, - "column": 36 + "line": 286, + "column": 43 }, - "identifierName": "y" + "identifierName": "clientY" }, - "name": "y" + "name": "clientY" }, "computed": false }, "operator": "-", "right": { "type": "MemberExpression", - "start": 8343, - "end": 8351, + "start": 7470, + "end": 7478, "loc": { "start": { - "line": 310, - "column": 39 + "line": 286, + "column": 46 }, "end": { - "line": 310, - "column": 47 + "line": 286, + "column": 54 } }, "object": { "type": "Identifier", - "start": 8343, - "end": 8347, + "start": 7470, + "end": 7474, "loc": { "start": { - "line": 310, - "column": 39 + "line": 286, + "column": 46 }, "end": { - "line": 310, - "column": 43 + "line": 286, + "column": 50 }, "identifierName": "rect" }, @@ -21225,16 +18800,16 @@ }, "property": { "type": "Identifier", - "start": 8348, - "end": 8351, + "start": 7475, + "end": 7478, "loc": { "start": { - "line": 310, - "column": 44 + "line": 286, + "column": 51 }, "end": { - "line": 310, - "column": 47 + "line": 286, + "column": 54 }, "identifierName": "top" }, @@ -21250,1118 +18825,850 @@ "kind": "let" }, { - "type": "IfStatement", - "start": 8359, - "end": 8528, + "type": "VariableDeclaration", + "start": 7485, + "end": 7669, "loc": { "start": { - "line": 312, + "line": 287, "column": 4 }, "end": { - "line": 313, - "column": 140 + "line": 293, + "column": 12 } }, - "test": { - "type": "MemberExpression", - "start": 8363, - "end": 8386, - "loc": { - "start": { - "line": 312, - "column": 8 - }, - "end": { - "line": 312, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 8363, - "end": 8370, - "loc": { - "start": { - "line": 312, - "column": 8 - }, - "end": { - "line": 312, - "column": 15 - }, - "identifierName": "cDefine" - }, - "name": "cDefine" - }, - "property": { - "type": "Identifier", - "start": 8371, - "end": 8386, - "loc": { - "start": { - "line": 312, - "column": 16 - }, - "end": { - "line": 312, - "column": 31 - }, - "identifierName": "DEBUG_MOUSE_LOG" - }, - "name": "DEBUG_MOUSE_LOG" - }, - "computed": false - }, - "consequent": { - "type": "ExpressionStatement", - "start": 8396, - "end": 8528, - "loc": { - "start": { - "line": 313, - "column": 8 - }, - "end": { - "line": 313, - "column": 140 - } - }, - "expression": { - "type": "CallExpression", - "start": 8396, - "end": 8527, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7489, + "end": 7669, "loc": { "start": { - "line": 313, + "line": 287, "column": 8 }, "end": { - "line": 313, - "column": 139 + "line": 293, + "column": 12 } }, - "callee": { - "type": "MemberExpression", - "start": 8396, - "end": 8407, + "id": { + "type": "Identifier", + "start": 7489, + "end": 7495, "loc": { "start": { - "line": 313, + "line": 287, "column": 8 }, "end": { - "line": 313, - "column": 19 - } + "line": 287, + "column": 14 + }, + "identifierName": "target" }, - "object": { - "type": "Identifier", - "start": 8396, - "end": 8403, - "loc": { - "start": { - "line": 313, - "column": 8 - }, - "end": { - "line": 313, - "column": 15 - }, - "identifierName": "console" + "name": "target" + }, + "init": { + "type": "CallExpression", + "start": 7498, + "end": 7669, + "loc": { + "start": { + "line": 287, + "column": 17 }, - "name": "console" + "end": { + "line": 293, + "column": 12 + } }, - "property": { + "callee": { "type": "Identifier", - "start": 8404, - "end": 8407, + "start": 7498, + "end": 7511, "loc": { "start": { - "line": 313, - "column": 16 + "line": 287, + "column": 17 }, "end": { - "line": 313, - "column": 19 + "line": 287, + "column": 30 }, - "identifierName": "log" + "identifierName": "transformRect" }, - "name": "log" + "name": "transformRect" }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 8408, - "end": 8526, - "loc": { - "start": { - "line": 313, - "column": 20 - }, - "end": { - "line": 313, - "column": 138 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8408, - "end": 8520, + "arguments": [ + { + "type": "ObjectExpression", + "start": 7512, + "end": 7602, "loc": { "start": { - "line": 313, - "column": 20 + "line": 287, + "column": 31 }, "end": { - "line": 313, - "column": 132 + "line": 290, + "column": 5 } }, - "left": { - "type": "BinaryExpression", - "start": 8408, - "end": 8515, - "loc": { - "start": { - "line": 313, - "column": 20 - }, - "end": { - "line": 313, - "column": 127 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8408, - "end": 8507, + "properties": [ + { + "type": "ObjectProperty", + "start": 7522, + "end": 7551, "loc": { "start": { - "line": 313, - "column": 20 + "line": 288, + "column": 8 }, "end": { - "line": 313, - "column": 119 + "line": 288, + "column": 37 } }, - "left": { + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 7522, + "end": 7523, + "loc": { + "start": { + "line": 288, + "column": 8 + }, + "end": { + "line": 288, + "column": 9 + }, + "identifierName": "x" + }, + "name": "x" + }, + "value": { "type": "BinaryExpression", - "start": 8408, - "end": 8502, + "start": 7525, + "end": 7551, "loc": { "start": { - "line": 313, - "column": 20 + "line": 288, + "column": 11 }, "end": { - "line": 313, - "column": 114 + "line": 288, + "column": 37 } }, "left": { - "type": "BinaryExpression", - "start": 8408, - "end": 8486, + "type": "MemberExpression", + "start": 7525, + "end": 7534, "loc": { "start": { - "line": 313, + "line": 288, + "column": 11 + }, + "end": { + "line": 288, "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 7525, + "end": 7529, + "loc": { + "start": { + "line": 288, + "column": 11 + }, + "end": { + "line": 288, + "column": 15 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 7530, + "end": 7534, + "loc": { + "start": { + "line": 288, + "column": 16 + }, + "end": { + "line": 288, + "column": 20 + }, + "identifierName": "left" + }, + "name": "left" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "BinaryExpression", + "start": 7537, + "end": 7551, + "loc": { + "start": { + "line": 288, + "column": 23 }, "end": { - "line": 313, - "column": 98 + "line": 288, + "column": 37 } }, "left": { - "type": "BinaryExpression", - "start": 8408, - "end": 8470, + "type": "MemberExpression", + "start": 7537, + "end": 7547, "loc": { "start": { - "line": 313, - "column": 20 + "line": 288, + "column": 23 }, "end": { - "line": 313, - "column": 82 + "line": 288, + "column": 33 } }, - "left": { - "type": "BinaryExpression", - "start": 8408, - "end": 8462, + "object": { + "type": "Identifier", + "start": 7537, + "end": 7541, "loc": { "start": { - "line": 313, - "column": 20 + "line": 288, + "column": 23 }, "end": { - "line": 313, - "column": 74 - } - }, - "left": { - "type": "StringLiteral", - "start": 8408, - "end": 8446, - "loc": { - "start": { - "line": 313, - "column": 20 - }, - "end": { - "line": 313, - "column": 58 - } - }, - "extra": { - "rawValue": "modelTapEvent onMouseDown device( x:", - "raw": "\"modelTapEvent onMouseDown device( x:\"" + "line": 288, + "column": 27 }, - "value": "modelTapEvent onMouseDown device( x:" + "identifierName": "rect" }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 8449, - "end": 8462, - "loc": { - "start": { - "line": 313, - "column": 61 - }, - "end": { - "line": 313, - "column": 74 - } - }, - "object": { - "type": "Identifier", - "start": 8449, - "end": 8454, - "loc": { - "start": { - "line": 313, - "column": 61 - }, - "end": { - "line": 313, - "column": 66 - }, - "identifierName": "event" - }, - "name": "event" - }, - "property": { - "type": "Identifier", - "start": 8455, - "end": 8462, - "loc": { - "start": { - "line": 313, - "column": 67 - }, - "end": { - "line": 313, - "column": 74 - }, - "identifierName": "clientX" - }, - "name": "clientX" - }, - "computed": false - } + "name": "rect" }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 8465, - "end": 8470, + "property": { + "type": "Identifier", + "start": 7542, + "end": 7547, "loc": { "start": { - "line": 313, - "column": 77 + "line": 288, + "column": 28 }, "end": { - "line": 313, - "column": 82 - } + "line": 288, + "column": 33 + }, + "identifierName": "width" }, - "extra": { - "rawValue": " y:", - "raw": "\" y:\"" + "name": "width" + }, + "computed": false + }, + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 7550, + "end": 7551, + "loc": { + "start": { + "line": 288, + "column": 36 }, - "value": " y:" + "end": { + "line": 288, + "column": 37 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + } + } + }, + { + "type": "ObjectProperty", + "start": 7561, + "end": 7596, + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 7561, + "end": 7562, + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 9 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "BinaryExpression", + "start": 7564, + "end": 7596, + "loc": { + "start": { + "line": 289, + "column": 11 + }, + "end": { + "line": 289, + "column": 43 + } + }, + "left": { + "type": "MemberExpression", + "start": 7564, + "end": 7572, + "loc": { + "start": { + "line": 289, + "column": 11 + }, + "end": { + "line": 289, + "column": 19 } }, - "operator": "+", - "right": { + "object": { + "type": "Identifier", + "start": 7564, + "end": 7568, + "loc": { + "start": { + "line": 289, + "column": 11 + }, + "end": { + "line": 289, + "column": 15 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 7569, + "end": 7572, + "loc": { + "start": { + "line": 289, + "column": 16 + }, + "end": { + "line": 289, + "column": 19 + }, + "identifierName": "top" + }, + "name": "top" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "BinaryExpression", + "start": 7575, + "end": 7596, + "loc": { + "start": { + "line": 289, + "column": 22 + }, + "end": { + "line": 289, + "column": 43 + } + }, + "left": { "type": "MemberExpression", - "start": 8473, - "end": 8486, + "start": 7575, + "end": 7586, "loc": { "start": { - "line": 313, - "column": 85 + "line": 289, + "column": 22 }, "end": { - "line": 313, - "column": 98 + "line": 289, + "column": 33 } }, "object": { "type": "Identifier", - "start": 8473, - "end": 8478, + "start": 7575, + "end": 7579, "loc": { "start": { - "line": 313, - "column": 85 + "line": 289, + "column": 22 }, "end": { - "line": 313, - "column": 90 + "line": 289, + "column": 26 }, - "identifierName": "event" + "identifierName": "rect" }, - "name": "event" + "name": "rect" }, "property": { "type": "Identifier", - "start": 8479, - "end": 8486, + "start": 7580, + "end": 7586, "loc": { "start": { - "line": 313, - "column": 91 + "line": 289, + "column": 27 }, "end": { - "line": 313, - "column": 98 + "line": 289, + "column": 33 }, - "identifierName": "clientY" + "identifierName": "height" }, - "name": "clientY" + "name": "height" }, "computed": false - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 8489, - "end": 8502, - "loc": { - "start": { - "line": 313, - "column": 101 - }, - "end": { - "line": 313, - "column": 114 - } - }, - "extra": { - "rawValue": " ) view( x:", - "raw": "\" ) view( x:\"" }, - "value": " ) view( x:" + "operator": "*", + "right": { + "type": "Identifier", + "start": 7589, + "end": 7596, + "loc": { + "start": { + "line": 289, + "column": 36 + }, + "end": { + "line": 289, + "column": 43 + }, + "identifierName": "headPos" + }, + "name": "headPos" + } } - }, - "operator": "+", - "right": { + } + } + ] + }, + { + "type": "ObjectExpression", + "start": 7604, + "end": 7662, + "loc": { + "start": { + "line": 290, + "column": 7 + }, + "end": { + "line": 293, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 7614, + "end": 7630, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 291, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { "type": "Identifier", - "start": 8505, - "end": 8507, + "start": 7614, + "end": 7615, "loc": { "start": { - "line": 313, - "column": 117 + "line": 291, + "column": 8 }, "end": { - "line": 313, - "column": 119 + "line": 291, + "column": 9 }, - "identifierName": "vx" + "identifierName": "x" }, - "name": "vx" + "name": "x" + }, + "value": { + "type": "MemberExpression", + "start": 7617, + "end": 7630, + "loc": { + "start": { + "line": 291, + "column": 11 + }, + "end": { + "line": 291, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 7617, + "end": 7622, + "loc": { + "start": { + "line": 291, + "column": 11 + }, + "end": { + "line": 291, + "column": 16 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 7623, + "end": 7630, + "loc": { + "start": { + "line": 291, + "column": 17 + }, + "end": { + "line": 291, + "column": 24 + }, + "identifierName": "clientX" + }, + "name": "clientX" + }, + "computed": false } }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 8510, - "end": 8515, + { + "type": "ObjectProperty", + "start": 7640, + "end": 7656, "loc": { "start": { - "line": 313, - "column": 122 + "line": 292, + "column": 8 }, "end": { - "line": 313, - "column": 127 + "line": 292, + "column": 24 } }, - "extra": { - "rawValue": " y:", - "raw": "\" y:\"" + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 7640, + "end": 7641, + "loc": { + "start": { + "line": 292, + "column": 8 + }, + "end": { + "line": 292, + "column": 9 + }, + "identifierName": "y" + }, + "name": "y" }, - "value": " y:" + "value": { + "type": "MemberExpression", + "start": 7643, + "end": 7656, + "loc": { + "start": { + "line": 292, + "column": 11 + }, + "end": { + "line": 292, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 7643, + "end": 7648, + "loc": { + "start": { + "line": 292, + "column": 11 + }, + "end": { + "line": 292, + "column": 16 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 7649, + "end": 7656, + "loc": { + "start": { + "line": 292, + "column": 17 + }, + "end": { + "line": 292, + "column": 24 + }, + "identifierName": "clientY" + }, + "name": "clientY" + }, + "computed": false + } } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 8518, - "end": 8520, - "loc": { - "start": { - "line": 313, - "column": 130 - }, - "end": { - "line": 313, - "column": 132 - }, - "identifierName": "vy" - }, - "name": "vy" - } + ] }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 8523, - "end": 8526, + { + "type": "Identifier", + "start": 7664, + "end": 7668, "loc": { "start": { - "line": 313, - "column": 135 + "line": 293, + "column": 7 }, "end": { - "line": 313, - "column": 138 - } - }, - "extra": { - "rawValue": ")", - "raw": "\")\"" + "line": 293, + "column": 11 + }, + "identifierName": "rect" }, - "value": ")" + "name": "rect" } - } - ] - } - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 8534, - "end": 8550, - "loc": { - "start": { - "line": 315, - "column": 4 - }, - "end": { - "line": 315, - "column": 20 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8534, - "end": 8549, - "loc": { - "start": { - "line": 315, - "column": 4 - }, - "end": { - "line": 315, - "column": 19 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8534, - "end": 8544, - "loc": { - "start": { - "line": 315, - "column": 4 - }, - "end": { - "line": 315, - "column": 14 - }, - "identifierName": "lastMouseX" - }, - "name": "lastMouseX" - }, - "right": { - "type": "Identifier", - "start": 8547, - "end": 8549, - "loc": { - "start": { - "line": 315, - "column": 17 - }, - "end": { - "line": 315, - "column": 19 - }, - "identifierName": "sx" - }, - "name": "sx" - } - } - }, - { - "type": "ExpressionStatement", - "start": 8555, - "end": 8571, - "loc": { - "start": { - "line": 316, - "column": 4 - }, - "end": { - "line": 316, - "column": 20 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8555, - "end": 8570, - "loc": { - "start": { - "line": 316, - "column": 4 - }, - "end": { - "line": 316, - "column": 19 + ] } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8555, - "end": 8565, - "loc": { - "start": { - "line": 316, - "column": 4 - }, - "end": { - "line": 316, - "column": 14 - }, - "identifierName": "lastMouseY" - }, - "name": "lastMouseY" - }, - "right": { - "type": "Identifier", - "start": 8568, - "end": 8570, - "loc": { - "start": { - "line": 316, - "column": 17 - }, - "end": { - "line": 316, - "column": 19 - }, - "identifierName": "sy" - }, - "name": "sy" - } - } - }, - { - "type": "ExpressionStatement", - "start": 8577, - "end": 8604, - "loc": { - "start": { - "line": 318, - "column": 4 - }, - "end": { - "line": 318, - "column": 31 } - }, - "expression": { - "type": "CallExpression", - "start": 8577, - "end": 8603, - "loc": { - "start": { - "line": 318, - "column": 4 - }, - "end": { - "line": 318, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8577, - "end": 8595, - "loc": { - "start": { - "line": 318, - "column": 4 - }, - "end": { - "line": 318, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 8577, - "end": 8586, - "loc": { - "start": { - "line": 318, - "column": 4 - }, - "end": { - "line": 318, - "column": 13 - }, - "identifierName": "live2DMgr" - }, - "name": "live2DMgr" - }, - "property": { - "type": "Identifier", - "start": 8587, - "end": 8595, - "loc": { - "start": { - "line": 318, - "column": 14 - }, - "end": { - "line": 318, - "column": 22 - }, - "identifierName": "tapEvent" - }, - "name": "tapEvent" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 8596, - "end": 8598, - "loc": { - "start": { - "line": 318, - "column": 23 - }, - "end": { - "line": 318, - "column": 25 - }, - "identifierName": "vx" - }, - "name": "vx" - }, - { - "type": "Identifier", - "start": 8600, - "end": 8602, - "loc": { - "start": { - "line": 318, - "column": 27 - }, - "end": { - "line": 318, - "column": 29 - }, - "identifierName": "vy" - }, - "name": "vy" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "FunctionDeclaration", - "start": 8608, - "end": 9524, - "loc": { - "start": { - "line": 321, - "column": 0 - }, - "end": { - "line": 350, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 8617, - "end": 8630, - "loc": { - "start": { - "line": 321, - "column": 9 - }, - "end": { - "line": 321, - "column": 22 - }, - "identifierName": "followPointer" - }, - "name": "followPointer" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8631, - "end": 8636, - "loc": { - "start": { - "line": 321, - "column": 23 - }, - "end": { - "line": 321, - "column": 28 - }, - "identifierName": "event" - }, - "name": "event" - } - ], - "body": { - "type": "BlockStatement", - "start": 8638, - "end": 9524, - "loc": { - "start": { - "line": 322, - "column": 0 + ], + "kind": "let" }, - "end": { - "line": 350, - "column": 1 - } - }, - "body": [ { "type": "VariableDeclaration", - "start": 8644, - "end": 8690, + "start": 7674, + "end": 7720, "loc": { "start": { - "line": 323, + "line": 294, "column": 4 }, "end": { - "line": 323, + "line": 294, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 8648, - "end": 8689, + "start": 7678, + "end": 7719, "loc": { "start": { - "line": 323, + "line": 294, "column": 8 }, "end": { - "line": 323, + "line": 294, "column": 49 } }, "id": { "type": "Identifier", - "start": 8648, - "end": 8652, + "start": 7678, + "end": 7680, "loc": { "start": { - "line": 323, + "line": 294, "column": 8 }, "end": { - "line": 323, - "column": 12 + "line": 294, + "column": 10 }, - "identifierName": "rect" + "identifierName": "vx" }, - "name": "rect" + "name": "vx" }, "init": { "type": "CallExpression", - "start": 8655, - "end": 8689, + "start": 7683, + "end": 7719, "loc": { "start": { - "line": 323, - "column": 15 + "line": 294, + "column": 13 }, "end": { - "line": 323, + "line": 294, "column": 49 } }, "callee": { - "type": "MemberExpression", - "start": 8655, - "end": 8687, + "type": "Identifier", + "start": 7683, + "end": 7697, "loc": { "start": { - "line": 323, - "column": 15 + "line": 294, + "column": 13 }, "end": { - "line": 323, - "column": 47 - } + "line": 294, + "column": 27 + }, + "identifierName": "transformViewX" }, - "object": { - "type": "Identifier", - "start": 8655, - "end": 8665, + "name": "transformViewX" + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 7698, + "end": 7718, "loc": { "start": { - "line": 323, - "column": 15 + "line": 294, + "column": 28 }, "end": { - "line": 323, - "column": 25 - }, - "identifierName": "currCanvas" + "line": 294, + "column": 48 + } }, - "name": "currCanvas" - }, - "property": { - "type": "Identifier", - "start": 8666, - "end": 8687, - "loc": { - "start": { - "line": 323, - "column": 26 + "left": { + "type": "MemberExpression", + "start": 7698, + "end": 7706, + "loc": { + "start": { + "line": 294, + "column": 28 + }, + "end": { + "line": 294, + "column": 36 + } }, - "end": { - "line": 323, - "column": 47 + "object": { + "type": "Identifier", + "start": 7698, + "end": 7704, + "loc": { + "start": { + "line": 294, + "column": 28 + }, + "end": { + "line": 294, + "column": 34 + }, + "identifierName": "target" + }, + "name": "target" }, - "identifierName": "getBoundingClientRect" - }, - "name": "getBoundingClientRect" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 8696, - "end": 8749, - "loc": { - "start": { - "line": 325, - "column": 4 - }, - "end": { - "line": 325, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8700, - "end": 8748, - "loc": { - "start": { - "line": 325, - "column": 8 - }, - "end": { - "line": 325, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 8700, - "end": 8702, - "loc": { - "start": { - "line": 325, - "column": 8 - }, - "end": { - "line": 325, - "column": 10 - }, - "identifierName": "sx" - }, - "name": "sx" - }, - "init": { - "type": "CallExpression", - "start": 8705, - "end": 8748, - "loc": { - "start": { - "line": 325, - "column": 13 - }, - "end": { - "line": 325, - "column": 56 - } - }, - "callee": { - "type": "Identifier", - "start": 8705, - "end": 8721, - "loc": { - "start": { - "line": 325, - "column": 13 - }, - "end": { - "line": 325, - "column": 29 - }, - "identifierName": "transformScreenX" - }, - "name": "transformScreenX" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 8722, - "end": 8747, - "loc": { - "start": { - "line": 325, - "column": 30 - }, - "end": { - "line": 325, - "column": 55 - } - }, - "left": { - "type": "MemberExpression", - "start": 8722, - "end": 8735, - "loc": { - "start": { - "line": 325, - "column": 30 - }, - "end": { - "line": 325, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 8722, - "end": 8727, - "loc": { - "start": { - "line": 325, - "column": 30 - }, - "end": { - "line": 325, - "column": 35 - }, - "identifierName": "event" - }, - "name": "event" - }, - "property": { - "type": "Identifier", - "start": 8728, - "end": 8735, - "loc": { - "start": { - "line": 325, - "column": 36 - }, - "end": { - "line": 325, - "column": 43 - }, - "identifierName": "clientX" - }, - "name": "clientX" - }, - "computed": false + "property": { + "type": "Identifier", + "start": 7705, + "end": 7706, + "loc": { + "start": { + "line": 294, + "column": 35 + }, + "end": { + "line": 294, + "column": 36 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false }, "operator": "-", "right": { "type": "MemberExpression", - "start": 8738, - "end": 8747, + "start": 7709, + "end": 7718, "loc": { "start": { - "line": 325, - "column": 46 + "line": 294, + "column": 39 }, "end": { - "line": 325, - "column": 55 + "line": 294, + "column": 48 } }, "object": { "type": "Identifier", - "start": 8738, - "end": 8742, + "start": 7709, + "end": 7713, "loc": { "start": { - "line": 325, - "column": 46 + "line": 294, + "column": 39 }, "end": { - "line": 325, - "column": 50 + "line": 294, + "column": 43 }, "identifierName": "rect" }, @@ -22369,16 +19676,16 @@ }, "property": { "type": "Identifier", - "start": 8743, - "end": 8747, + "start": 7714, + "end": 7718, "loc": { "start": { - "line": 325, - "column": 51 + "line": 294, + "column": 44 }, "end": { - "line": 325, - "column": 55 + "line": 294, + "column": 48 }, "identifierName": "left" }, @@ -22395,173 +19702,173 @@ }, { "type": "VariableDeclaration", - "start": 8754, - "end": 8806, + "start": 7725, + "end": 7770, "loc": { "start": { - "line": 326, + "line": 295, "column": 4 }, "end": { - "line": 326, - "column": 56 + "line": 295, + "column": 49 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 8758, - "end": 8805, + "start": 7729, + "end": 7769, "loc": { "start": { - "line": 326, + "line": 295, "column": 8 }, "end": { - "line": 326, - "column": 55 + "line": 295, + "column": 48 } }, "id": { "type": "Identifier", - "start": 8758, - "end": 8760, + "start": 7729, + "end": 7731, "loc": { "start": { - "line": 326, + "line": 295, "column": 8 }, "end": { - "line": 326, + "line": 295, "column": 10 }, - "identifierName": "sy" + "identifierName": "vy" }, - "name": "sy" + "name": "vy" }, "init": { "type": "CallExpression", - "start": 8763, - "end": 8805, + "start": 7734, + "end": 7769, "loc": { "start": { - "line": 326, + "line": 295, "column": 13 }, "end": { - "line": 326, - "column": 55 + "line": 295, + "column": 48 } }, "callee": { "type": "Identifier", - "start": 8763, - "end": 8779, + "start": 7734, + "end": 7748, "loc": { "start": { - "line": 326, + "line": 295, "column": 13 }, "end": { - "line": 326, - "column": 29 + "line": 295, + "column": 27 }, - "identifierName": "transformScreenY" + "identifierName": "transformViewY" }, - "name": "transformScreenY" + "name": "transformViewY" }, "arguments": [ { "type": "BinaryExpression", - "start": 8780, - "end": 8804, + "start": 7749, + "end": 7768, "loc": { "start": { - "line": 326, - "column": 30 + "line": 295, + "column": 28 }, "end": { - "line": 326, - "column": 54 + "line": 295, + "column": 47 } }, "left": { "type": "MemberExpression", - "start": 8780, - "end": 8793, + "start": 7749, + "end": 7757, "loc": { "start": { - "line": 326, - "column": 30 + "line": 295, + "column": 28 }, "end": { - "line": 326, - "column": 43 + "line": 295, + "column": 36 } }, "object": { "type": "Identifier", - "start": 8780, - "end": 8785, + "start": 7749, + "end": 7755, "loc": { "start": { - "line": 326, - "column": 30 + "line": 295, + "column": 28 }, "end": { - "line": 326, - "column": 35 + "line": 295, + "column": 34 }, - "identifierName": "event" + "identifierName": "target" }, - "name": "event" + "name": "target" }, "property": { "type": "Identifier", - "start": 8786, - "end": 8793, + "start": 7756, + "end": 7757, "loc": { "start": { - "line": 326, - "column": 36 + "line": 295, + "column": 35 }, "end": { - "line": 326, - "column": 43 + "line": 295, + "column": 36 }, - "identifierName": "clientY" + "identifierName": "y" }, - "name": "clientY" + "name": "y" }, "computed": false }, "operator": "-", "right": { "type": "MemberExpression", - "start": 8796, - "end": 8804, + "start": 7760, + "end": 7768, "loc": { "start": { - "line": 326, - "column": 46 + "line": 295, + "column": 39 }, "end": { - "line": 326, - "column": 54 + "line": 295, + "column": 47 } }, "object": { "type": "Identifier", - "start": 8796, - "end": 8800, + "start": 7760, + "end": 7764, "loc": { "start": { - "line": 326, - "column": 46 + "line": 295, + "column": 39 }, "end": { - "line": 326, - "column": 50 + "line": 295, + "column": 43 }, "identifierName": "rect" }, @@ -22569,16 +19876,16 @@ }, "property": { "type": "Identifier", - "start": 8801, - "end": 8804, + "start": 7765, + "end": 7768, "loc": { "start": { - "line": 326, - "column": 51 + "line": 295, + "column": 44 }, "end": { - "line": 326, - "column": 54 + "line": 295, + "column": 47 }, "identifierName": "top" }, @@ -22591,942 +19898,1185 @@ } } ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " log but seems ok", - "start": 8812, - "end": 8831, + "kind": "let" + }, + { + "type": "IfStatement", + "start": 7776, + "end": 7945, + "loc": { + "start": { + "line": 297, + "column": 4 + }, + "end": { + "line": 298, + "column": 140 + } + }, + "test": { + "type": "MemberExpression", + "start": 7780, + "end": 7803, + "loc": { + "start": { + "line": 297, + "column": 8 + }, + "end": { + "line": 297, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 7780, + "end": 7787, "loc": { "start": { - "line": 328, - "column": 4 + "line": 297, + "column": 8 }, "end": { - "line": 328, - "column": 23 - } - } + "line": 297, + "column": 15 + }, + "identifierName": "cDefine" + }, + "name": "cDefine" }, - { - "type": "CommentLine", - "value": " console.log(\"ecx=\" + event.clientX + \" ecy=\" + event.clientY + \" sx=\" + sx + \" sy=\" + sy);", - "start": 8836, - "end": 8929, + "property": { + "type": "Identifier", + "start": 7788, + "end": 7803, "loc": { "start": { - "line": 329, - "column": 4 + "line": 297, + "column": 16 }, "end": { - "line": 329, - "column": 97 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 8935, - "end": 9135, - "loc": { - "start": { - "line": 331, - "column": 4 + "line": 297, + "column": 31 + }, + "identifierName": "DEBUG_MOUSE_LOG" + }, + "name": "DEBUG_MOUSE_LOG" }, - "end": { - "line": 337, - "column": 12 - } + "computed": false }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8939, - "end": 9135, + "consequent": { + "type": "ExpressionStatement", + "start": 7813, + "end": 7945, + "loc": { + "start": { + "line": 298, + "column": 8 + }, + "end": { + "line": 298, + "column": 140 + } + }, + "expression": { + "type": "CallExpression", + "start": 7813, + "end": 7944, "loc": { "start": { - "line": 331, + "line": 298, "column": 8 }, "end": { - "line": 337, - "column": 12 + "line": 298, + "column": 139 } }, - "id": { - "type": "Identifier", - "start": 8939, - "end": 8945, + "callee": { + "type": "MemberExpression", + "start": 7813, + "end": 7824, "loc": { "start": { - "line": 331, + "line": 298, "column": 8 }, "end": { - "line": 331, - "column": 14 - }, - "identifierName": "target" + "line": 298, + "column": 19 + } }, - "name": "target", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 8948, - "end": 9135, - "loc": { - "start": { - "line": 331, - "column": 17 + "object": { + "type": "Identifier", + "start": 7813, + "end": 7820, + "loc": { + "start": { + "line": 298, + "column": 8 + }, + "end": { + "line": 298, + "column": 15 + }, + "identifierName": "console" }, - "end": { - "line": 337, - "column": 12 - } + "name": "console" }, - "callee": { + "property": { "type": "Identifier", - "start": 8948, - "end": 8961, + "start": 7821, + "end": 7824, "loc": { "start": { - "line": 331, - "column": 17 + "line": 298, + "column": 16 }, "end": { - "line": 331, - "column": 30 + "line": 298, + "column": 19 }, - "identifierName": "transformRect" + "identifierName": "log" }, - "name": "transformRect" + "name": "log" }, - "arguments": [ - { - "type": "ObjectExpression", - "start": 8962, - "end": 9068, + "computed": false + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 7825, + "end": 7943, + "loc": { + "start": { + "line": 298, + "column": 20 + }, + "end": { + "line": 298, + "column": 138 + } + }, + "left": { + "type": "BinaryExpression", + "start": 7825, + "end": 7937, "loc": { "start": { - "line": 331, - "column": 31 + "line": 298, + "column": 20 }, "end": { - "line": 334, - "column": 5 + "line": 298, + "column": 132 } }, - "properties": [ - { - "type": "ObjectProperty", - "start": 8988, - "end": 9017, + "left": { + "type": "BinaryExpression", + "start": 7825, + "end": 7932, + "loc": { + "start": { + "line": 298, + "column": 20 + }, + "end": { + "line": 298, + "column": 127 + } + }, + "left": { + "type": "BinaryExpression", + "start": 7825, + "end": 7924, "loc": { "start": { - "line": 332, - "column": 8 + "line": 298, + "column": 20 }, "end": { - "line": 332, - "column": 37 + "line": 298, + "column": 119 } }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8988, - "end": 8989, - "loc": { - "start": { - "line": 332, - "column": 8 - }, - "end": { - "line": 332, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x", - "leadingComments": null - }, - "value": { + "left": { "type": "BinaryExpression", - "start": 8991, - "end": 9017, + "start": 7825, + "end": 7919, "loc": { "start": { - "line": 332, - "column": 11 + "line": 298, + "column": 20 }, "end": { - "line": 332, - "column": 37 + "line": 298, + "column": 114 } }, "left": { - "type": "MemberExpression", - "start": 8991, - "end": 9000, - "loc": { - "start": { - "line": 332, - "column": 11 - }, - "end": { - "line": 332, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 8991, - "end": 8995, - "loc": { - "start": { - "line": 332, - "column": 11 - }, - "end": { - "line": 332, - "column": 15 - }, - "identifierName": "rect" - }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 8996, - "end": 9000, - "loc": { - "start": { - "line": 332, - "column": 16 - }, - "end": { - "line": 332, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left" - }, - "computed": false - }, - "operator": "+", - "right": { "type": "BinaryExpression", - "start": 9003, - "end": 9017, + "start": 7825, + "end": 7903, "loc": { "start": { - "line": 332, - "column": 23 + "line": 298, + "column": 20 }, "end": { - "line": 332, - "column": 37 + "line": 298, + "column": 98 } }, "left": { - "type": "MemberExpression", - "start": 9003, - "end": 9013, + "type": "BinaryExpression", + "start": 7825, + "end": 7887, "loc": { "start": { - "line": 332, - "column": 23 + "line": 298, + "column": 20 }, "end": { - "line": 332, - "column": 33 + "line": 298, + "column": 82 } }, - "object": { - "type": "Identifier", - "start": 9003, - "end": 9007, + "left": { + "type": "BinaryExpression", + "start": 7825, + "end": 7879, "loc": { "start": { - "line": 332, - "column": 23 + "line": 298, + "column": 20 }, "end": { - "line": 332, - "column": 27 - }, - "identifierName": "rect" + "line": 298, + "column": 74 + } }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 9008, - "end": 9013, - "loc": { - "start": { - "line": 332, - "column": 28 + "left": { + "type": "StringLiteral", + "start": 7825, + "end": 7863, + "loc": { + "start": { + "line": 298, + "column": 20 + }, + "end": { + "line": 298, + "column": 58 + } }, - "end": { - "line": 332, - "column": 33 + "extra": { + "rawValue": "modelTurnHead onMouseMove device( x:", + "raw": "\"modelTurnHead onMouseMove device( x:\"" }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 9016, - "end": 9017, - "loc": { - "start": { - "line": 332, - "column": 36 + "value": "modelTurnHead onMouseMove device( x:" }, - "end": { - "line": 332, - "column": 37 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " seems ok here", - "start": 8963, - "end": 8979, - "loc": { - "start": { - "line": 331, - "column": 32 - }, - "end": { - "line": 331, - "column": 48 - } - } - } - ] - }, - { - "type": "ObjectProperty", - "start": 9027, - "end": 9062, - "loc": { - "start": { - "line": 333, - "column": 8 - }, - "end": { - "line": 333, - "column": 43 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9027, - "end": 9028, - "loc": { - "start": { - "line": 333, - "column": 8 - }, - "end": { - "line": 333, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 9030, - "end": 9062, - "loc": { - "start": { - "line": 333, - "column": 11 - }, - "end": { - "line": 333, - "column": 43 - } - }, - "left": { - "type": "MemberExpression", - "start": 9030, - "end": 9038, - "loc": { - "start": { - "line": 333, - "column": 11 - }, - "end": { - "line": 333, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 9030, - "end": 9034, - "loc": { - "start": { - "line": 333, - "column": 11 - }, - "end": { - "line": 333, - "column": 15 - }, - "identifierName": "rect" + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 7866, + "end": 7879, + "loc": { + "start": { + "line": 298, + "column": 61 + }, + "end": { + "line": 298, + "column": 74 + } + }, + "object": { + "type": "Identifier", + "start": 7866, + "end": 7871, + "loc": { + "start": { + "line": 298, + "column": 61 + }, + "end": { + "line": 298, + "column": 66 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 7872, + "end": 7879, + "loc": { + "start": { + "line": 298, + "column": 67 + }, + "end": { + "line": 298, + "column": 74 + }, + "identifierName": "clientX" + }, + "name": "clientX" + }, + "computed": false + } }, - "name": "rect" - }, - "property": { - "type": "Identifier", - "start": 9035, - "end": 9038, - "loc": { - "start": { - "line": 333, - "column": 16 + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 7882, + "end": 7887, + "loc": { + "start": { + "line": 298, + "column": 77 + }, + "end": { + "line": 298, + "column": 82 + } }, - "end": { - "line": 333, - "column": 19 + "extra": { + "rawValue": " y:", + "raw": "\" y:\"" }, - "identifierName": "top" - }, - "name": "top" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 9041, - "end": 9062, - "loc": { - "start": { - "line": 333, - "column": 22 - }, - "end": { - "line": 333, - "column": 43 + "value": " y:" } }, - "left": { + "operator": "+", + "right": { "type": "MemberExpression", - "start": 9041, - "end": 9052, + "start": 7890, + "end": 7903, "loc": { "start": { - "line": 333, - "column": 22 + "line": 298, + "column": 85 }, "end": { - "line": 333, - "column": 33 + "line": 298, + "column": 98 } }, "object": { "type": "Identifier", - "start": 9041, - "end": 9045, + "start": 7890, + "end": 7895, "loc": { "start": { - "line": 333, - "column": 22 + "line": 298, + "column": 85 }, "end": { - "line": 333, - "column": 26 + "line": 298, + "column": 90 }, - "identifierName": "rect" + "identifierName": "event" }, - "name": "rect" + "name": "event" }, "property": { "type": "Identifier", - "start": 9046, - "end": 9052, + "start": 7896, + "end": 7903, "loc": { "start": { - "line": 333, - "column": 27 + "line": 298, + "column": 91 }, "end": { - "line": 333, - "column": 33 + "line": 298, + "column": 98 }, - "identifierName": "height" + "identifierName": "clientY" }, - "name": "height" + "name": "clientY" }, "computed": false - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 9055, - "end": 9062, - "loc": { - "start": { - "line": 333, - "column": 36 - }, - "end": { - "line": 333, - "column": 43 - }, - "identifierName": "headPos" - }, - "name": "headPos" } - } - } - } - ] - }, - { - "type": "ObjectExpression", - "start": 9070, - "end": 9128, - "loc": { - "start": { - "line": 334, - "column": 7 - }, - "end": { - "line": 337, - "column": 5 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 9080, - "end": 9096, - "loc": { - "start": { - "line": 335, - "column": 8 }, - "end": { - "line": 335, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9080, - "end": 9081, - "loc": { - "start": { - "line": 335, - "column": 8 + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 7906, + "end": 7919, + "loc": { + "start": { + "line": 298, + "column": 101 + }, + "end": { + "line": 298, + "column": 114 + } }, - "end": { - "line": 335, - "column": 9 + "extra": { + "rawValue": " ) view( x:", + "raw": "\" ) view( x:\"" }, - "identifierName": "x" - }, - "name": "x" + "value": " ) view( x:" + } }, - "value": { - "type": "MemberExpression", - "start": 9083, - "end": 9096, + "operator": "+", + "right": { + "type": "Identifier", + "start": 7922, + "end": 7924, "loc": { "start": { - "line": 335, - "column": 11 + "line": 298, + "column": 117 }, "end": { - "line": 335, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 9083, - "end": 9088, - "loc": { - "start": { - "line": 335, - "column": 11 - }, - "end": { - "line": 335, - "column": 16 - }, - "identifierName": "event" - }, - "name": "event" - }, - "property": { - "type": "Identifier", - "start": 9089, - "end": 9096, - "loc": { - "start": { - "line": 335, - "column": 17 - }, - "end": { - "line": 335, - "column": 24 - }, - "identifierName": "clientX" + "line": 298, + "column": 119 }, - "name": "clientX" + "identifierName": "vx" }, - "computed": false + "name": "vx" } }, - { - "type": "ObjectProperty", - "start": 9106, - "end": 9122, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 7927, + "end": 7932, "loc": { "start": { - "line": 336, - "column": 8 + "line": 298, + "column": 122 }, "end": { - "line": 336, - "column": 24 + "line": 298, + "column": 127 } }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9106, - "end": 9107, - "loc": { - "start": { - "line": 336, - "column": 8 - }, - "end": { - "line": 336, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" + "extra": { + "rawValue": " y:", + "raw": "\" y:\"" }, - "value": { - "type": "MemberExpression", - "start": 9109, - "end": 9122, - "loc": { - "start": { - "line": 336, - "column": 11 - }, - "end": { - "line": 336, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 9109, - "end": 9114, - "loc": { - "start": { - "line": 336, - "column": 11 - }, - "end": { - "line": 336, - "column": 16 - }, - "identifierName": "event" - }, - "name": "event" - }, - "property": { - "type": "Identifier", - "start": 9115, - "end": 9122, - "loc": { - "start": { - "line": 336, - "column": 17 - }, - "end": { - "line": 336, - "column": 24 - }, - "identifierName": "clientY" - }, - "name": "clientY" - }, - "computed": false - } + "value": " y:" } - ] + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 7935, + "end": 7937, + "loc": { + "start": { + "line": 298, + "column": 130 + }, + "end": { + "line": 298, + "column": 132 + }, + "identifierName": "vy" + }, + "name": "vy" + } }, - { - "type": "Identifier", - "start": 9130, - "end": 9134, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 7940, + "end": 7943, "loc": { "start": { - "line": 337, - "column": 7 + "line": 298, + "column": 135 }, "end": { - "line": 337, - "column": 11 - }, - "identifierName": "rect" + "line": 298, + "column": 138 + } }, - "name": "rect" + "extra": { + "rawValue": ")", + "raw": "\")\"" + }, + "value": ")" } - ] - }, - "leadingComments": null + } + ] } - ], - "kind": "let", - "leadingComments": [ - { - "type": "CommentLine", - "value": " log but seems ok", - "start": 8812, - "end": 8831, + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 7951, + "end": 7967, + "loc": { + "start": { + "line": 300, + "column": 4 + }, + "end": { + "line": 300, + "column": 20 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7951, + "end": 7966, + "loc": { + "start": { + "line": 300, + "column": 4 + }, + "end": { + "line": 300, + "column": 19 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7951, + "end": 7961, "loc": { "start": { - "line": 328, + "line": 300, "column": 4 }, "end": { - "line": 328, - "column": 23 - } - } + "line": 300, + "column": 14 + }, + "identifierName": "lastMouseX" + }, + "name": "lastMouseX" }, - { - "type": "CommentLine", - "value": " console.log(\"ecx=\" + event.clientX + \" ecy=\" + event.clientY + \" sx=\" + sx + \" sy=\" + sy);", - "start": 8836, - "end": 8929, + "right": { + "type": "Identifier", + "start": 7964, + "end": 7966, "loc": { "start": { - "line": 329, - "column": 4 + "line": 300, + "column": 17 }, "end": { - "line": 329, - "column": 97 - } - } + "line": 300, + "column": 19 + }, + "identifierName": "sx" + }, + "name": "sx" } - ] + } }, { - "type": "VariableDeclaration", - "start": 9140, - "end": 9186, + "type": "ExpressionStatement", + "start": 7972, + "end": 7988, "loc": { "start": { - "line": 338, + "line": 301, "column": 4 }, "end": { - "line": 338, - "column": 50 + "line": 301, + "column": 20 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9144, - "end": 9185, + "expression": { + "type": "AssignmentExpression", + "start": 7972, + "end": 7987, + "loc": { + "start": { + "line": 301, + "column": 4 + }, + "end": { + "line": 301, + "column": 19 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7972, + "end": 7982, "loc": { "start": { - "line": 338, - "column": 8 + "line": 301, + "column": 4 }, "end": { - "line": 338, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 9144, - "end": 9146, - "loc": { - "start": { - "line": 338, - "column": 8 - }, - "end": { - "line": 338, - "column": 10 - }, - "identifierName": "vx" + "line": 301, + "column": 14 }, - "name": "vx" + "identifierName": "lastMouseY" }, - "init": { - "type": "CallExpression", - "start": 9149, - "end": 9185, - "loc": { - "start": { - "line": 338, - "column": 13 - }, - "end": { - "line": 338, + "name": "lastMouseY" + }, + "right": { + "type": "Identifier", + "start": 7985, + "end": 7987, + "loc": { + "start": { + "line": 301, + "column": 17 + }, + "end": { + "line": 301, + "column": 19 + }, + "identifierName": "sy" + }, + "name": "sy" + } + } + }, + { + "type": "ExpressionStatement", + "start": 7994, + "end": 8019, + "loc": { + "start": { + "line": 303, + "column": 4 + }, + "end": { + "line": 303, + "column": 29 + } + }, + "expression": { + "type": "CallExpression", + "start": 7994, + "end": 8018, + "loc": { + "start": { + "line": 303, + "column": 4 + }, + "end": { + "line": 303, + "column": 28 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7994, + "end": 8010, + "loc": { + "start": { + "line": 303, + "column": 4 + }, + "end": { + "line": 303, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 7994, + "end": 8001, + "loc": { + "start": { + "line": 303, + "column": 4 + }, + "end": { + "line": 303, + "column": 11 + }, + "identifierName": "dragMgr" + }, + "name": "dragMgr" + }, + "property": { + "type": "Identifier", + "start": 8002, + "end": 8010, + "loc": { + "start": { + "line": 303, + "column": 12 + }, + "end": { + "line": 303, + "column": 20 + }, + "identifierName": "setPoint" + }, + "name": "setPoint" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 8011, + "end": 8013, + "loc": { + "start": { + "line": 303, + "column": 21 + }, + "end": { + "line": 303, + "column": 23 + }, + "identifierName": "vx" + }, + "name": "vx" + }, + { + "type": "Identifier", + "start": 8015, + "end": 8017, + "loc": { + "start": { + "line": 303, + "column": 25 + }, + "end": { + "line": 303, + "column": 27 + }, + "identifierName": "vy" + }, + "name": "vy" + } + ] + } + } + ], + "directives": [] + } + }, + { + "type": "FunctionDeclaration", + "start": 8023, + "end": 8782, + "loc": { + "start": { + "line": 306, + "column": 0 + }, + "end": { + "line": 331, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 8032, + "end": 8045, + "loc": { + "start": { + "line": 306, + "column": 9 + }, + "end": { + "line": 306, + "column": 22 + }, + "identifierName": "modelTapEvent" + }, + "name": "modelTapEvent" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 8046, + "end": 8051, + "loc": { + "start": { + "line": 306, + "column": 23 + }, + "end": { + "line": 306, + "column": 28 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 8053, + "end": 8782, + "loc": { + "start": { + "line": 307, + "column": 0 + }, + "end": { + "line": 331, + "column": 1 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8059, + "end": 8071, + "loc": { + "start": { + "line": 308, + "column": 4 + }, + "end": { + "line": 308, + "column": 16 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8059, + "end": 8070, + "loc": { + "start": { + "line": 308, + "column": 4 + }, + "end": { + "line": 308, + "column": 15 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8059, + "end": 8063, + "loc": { + "start": { + "line": 308, + "column": 4 + }, + "end": { + "line": 308, + "column": 8 + }, + "identifierName": "drag" + }, + "name": "drag" + }, + "right": { + "type": "BooleanLiteral", + "start": 8066, + "end": 8070, + "loc": { + "start": { + "line": 308, + "column": 11 + }, + "end": { + "line": 308, + "column": 15 + } + }, + "value": true + } + } + }, + { + "type": "VariableDeclaration", + "start": 8077, + "end": 8123, + "loc": { + "start": { + "line": 310, + "column": 4 + }, + "end": { + "line": 310, + "column": 50 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8081, + "end": 8122, + "loc": { + "start": { + "line": 310, + "column": 8 + }, + "end": { + "line": 310, + "column": 49 + } + }, + "id": { + "type": "Identifier", + "start": 8081, + "end": 8085, + "loc": { + "start": { + "line": 310, + "column": 8 + }, + "end": { + "line": 310, + "column": 12 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "init": { + "type": "CallExpression", + "start": 8088, + "end": 8122, + "loc": { + "start": { + "line": 310, + "column": 15 + }, + "end": { + "line": 310, "column": 49 } }, + "callee": { + "type": "MemberExpression", + "start": 8088, + "end": 8120, + "loc": { + "start": { + "line": 310, + "column": 15 + }, + "end": { + "line": 310, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 8088, + "end": 8098, + "loc": { + "start": { + "line": 310, + "column": 15 + }, + "end": { + "line": 310, + "column": 25 + }, + "identifierName": "currCanvas" + }, + "name": "currCanvas" + }, + "property": { + "type": "Identifier", + "start": 8099, + "end": 8120, + "loc": { + "start": { + "line": 310, + "column": 26 + }, + "end": { + "line": 310, + "column": 47 + }, + "identifierName": "getBoundingClientRect" + }, + "name": "getBoundingClientRect" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 8129, + "end": 8182, + "loc": { + "start": { + "line": 312, + "column": 4 + }, + "end": { + "line": 312, + "column": 57 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8133, + "end": 8181, + "loc": { + "start": { + "line": 312, + "column": 8 + }, + "end": { + "line": 312, + "column": 56 + } + }, + "id": { + "type": "Identifier", + "start": 8133, + "end": 8135, + "loc": { + "start": { + "line": 312, + "column": 8 + }, + "end": { + "line": 312, + "column": 10 + }, + "identifierName": "sx" + }, + "name": "sx" + }, + "init": { + "type": "CallExpression", + "start": 8138, + "end": 8181, + "loc": { + "start": { + "line": 312, + "column": 13 + }, + "end": { + "line": 312, + "column": 56 + } + }, "callee": { "type": "Identifier", - "start": 9149, - "end": 9163, + "start": 8138, + "end": 8154, "loc": { "start": { - "line": 338, + "line": 312, "column": 13 }, "end": { - "line": 338, - "column": 27 + "line": 312, + "column": 29 }, - "identifierName": "transformViewX" + "identifierName": "transformScreenX" }, - "name": "transformViewX" + "name": "transformScreenX" }, "arguments": [ { "type": "BinaryExpression", - "start": 9164, - "end": 9184, + "start": 8155, + "end": 8180, "loc": { "start": { - "line": 338, - "column": 28 + "line": 312, + "column": 30 }, "end": { - "line": 338, - "column": 48 + "line": 312, + "column": 55 } }, "left": { "type": "MemberExpression", - "start": 9164, - "end": 9172, + "start": 8155, + "end": 8168, "loc": { "start": { - "line": 338, - "column": 28 + "line": 312, + "column": 30 }, "end": { - "line": 338, - "column": 36 + "line": 312, + "column": 43 } }, "object": { "type": "Identifier", - "start": 9164, - "end": 9170, + "start": 8155, + "end": 8160, "loc": { "start": { - "line": 338, - "column": 28 + "line": 312, + "column": 30 }, "end": { - "line": 338, - "column": 34 + "line": 312, + "column": 35 }, - "identifierName": "target" + "identifierName": "event" }, - "name": "target" + "name": "event" }, "property": { "type": "Identifier", - "start": 9171, - "end": 9172, + "start": 8161, + "end": 8168, "loc": { "start": { - "line": 338, - "column": 35 + "line": 312, + "column": 36 }, "end": { - "line": 338, - "column": 36 + "line": 312, + "column": 43 }, - "identifierName": "x" + "identifierName": "clientX" }, - "name": "x" + "name": "clientX" }, "computed": false }, "operator": "-", "right": { "type": "MemberExpression", - "start": 9175, - "end": 9184, + "start": 8171, + "end": 8180, "loc": { "start": { - "line": 338, - "column": 39 + "line": 312, + "column": 46 }, "end": { - "line": 338, - "column": 48 + "line": 312, + "column": 55 } }, "object": { "type": "Identifier", - "start": 9175, - "end": 9179, + "start": 8171, + "end": 8175, "loc": { "start": { - "line": 338, - "column": 39 + "line": 312, + "column": 46 }, "end": { - "line": 338, - "column": 43 + "line": 312, + "column": 50 }, "identifierName": "rect" }, @@ -23534,16 +21084,16 @@ }, "property": { "type": "Identifier", - "start": 9180, - "end": 9184, + "start": 8176, + "end": 8180, "loc": { "start": { - "line": 338, - "column": 44 + "line": 312, + "column": 51 }, "end": { - "line": 338, - "column": 48 + "line": 312, + "column": 55 }, "identifierName": "left" }, @@ -23560,173 +21110,173 @@ }, { "type": "VariableDeclaration", - "start": 9191, - "end": 9236, + "start": 8187, + "end": 8239, "loc": { "start": { - "line": 339, + "line": 313, "column": 4 }, "end": { - "line": 339, - "column": 49 + "line": 313, + "column": 56 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 9195, - "end": 9235, + "start": 8191, + "end": 8238, "loc": { "start": { - "line": 339, + "line": 313, "column": 8 }, "end": { - "line": 339, - "column": 48 + "line": 313, + "column": 55 } }, "id": { "type": "Identifier", - "start": 9195, - "end": 9197, + "start": 8191, + "end": 8193, "loc": { "start": { - "line": 339, + "line": 313, "column": 8 }, "end": { - "line": 339, + "line": 313, "column": 10 }, - "identifierName": "vy" + "identifierName": "sy" }, - "name": "vy" + "name": "sy" }, "init": { "type": "CallExpression", - "start": 9200, - "end": 9235, + "start": 8196, + "end": 8238, "loc": { "start": { - "line": 339, + "line": 313, "column": 13 }, "end": { - "line": 339, - "column": 48 + "line": 313, + "column": 55 } }, "callee": { "type": "Identifier", - "start": 9200, - "end": 9214, + "start": 8196, + "end": 8212, "loc": { "start": { - "line": 339, + "line": 313, "column": 13 }, "end": { - "line": 339, - "column": 27 + "line": 313, + "column": 29 }, - "identifierName": "transformViewY" + "identifierName": "transformScreenY" }, - "name": "transformViewY" + "name": "transformScreenY" }, "arguments": [ { "type": "BinaryExpression", - "start": 9215, - "end": 9234, + "start": 8213, + "end": 8237, "loc": { "start": { - "line": 339, - "column": 28 + "line": 313, + "column": 30 }, "end": { - "line": 339, - "column": 47 + "line": 313, + "column": 54 } }, "left": { "type": "MemberExpression", - "start": 9215, - "end": 9223, + "start": 8213, + "end": 8226, "loc": { "start": { - "line": 339, - "column": 28 + "line": 313, + "column": 30 }, "end": { - "line": 339, - "column": 36 + "line": 313, + "column": 43 } }, "object": { "type": "Identifier", - "start": 9215, - "end": 9221, + "start": 8213, + "end": 8218, "loc": { "start": { - "line": 339, - "column": 28 + "line": 313, + "column": 30 }, "end": { - "line": 339, - "column": 34 + "line": 313, + "column": 35 }, - "identifierName": "target" + "identifierName": "event" }, - "name": "target" + "name": "event" }, "property": { "type": "Identifier", - "start": 9222, - "end": 9223, + "start": 8219, + "end": 8226, "loc": { "start": { - "line": 339, - "column": 35 + "line": 313, + "column": 36 }, "end": { - "line": 339, - "column": 36 + "line": 313, + "column": 43 }, - "identifierName": "y" + "identifierName": "clientY" }, - "name": "y" + "name": "clientY" }, "computed": false }, "operator": "-", "right": { "type": "MemberExpression", - "start": 9226, - "end": 9234, + "start": 8229, + "end": 8237, "loc": { "start": { - "line": 339, - "column": 39 + "line": 313, + "column": 46 }, "end": { - "line": 339, - "column": 47 + "line": 313, + "column": 54 } }, "object": { "type": "Identifier", - "start": 9226, - "end": 9230, + "start": 8229, + "end": 8233, "loc": { "start": { - "line": 339, - "column": 39 + "line": 313, + "column": 46 }, "end": { - "line": 339, - "column": 43 + "line": 313, + "column": 50 }, "identifierName": "rect" }, @@ -23734,16 +21284,16 @@ }, "property": { "type": "Identifier", - "start": 9231, - "end": 9234, + "start": 8234, + "end": 8237, "loc": { "start": { - "line": 339, - "column": 44 + "line": 313, + "column": 51 }, "end": { - "line": 339, - "column": 47 + "line": 313, + "column": 54 }, "identifierName": "top" }, @@ -23759,1099 +21309,1833 @@ "kind": "let" }, { - "type": "IfStatement", - "start": 9242, - "end": 9411, + "type": "VariableDeclaration", + "start": 8244, + "end": 8428, "loc": { "start": { - "line": 341, + "line": 314, "column": 4 }, "end": { - "line": 342, - "column": 140 + "line": 320, + "column": 12 } }, - "test": { - "type": "MemberExpression", - "start": 9246, - "end": 9269, - "loc": { - "start": { - "line": 341, - "column": 8 - }, - "end": { - "line": 341, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 9246, - "end": 9253, - "loc": { - "start": { - "line": 341, - "column": 8 - }, - "end": { - "line": 341, - "column": 15 - }, - "identifierName": "cDefine" - }, - "name": "cDefine" - }, - "property": { - "type": "Identifier", - "start": 9254, - "end": 9269, - "loc": { - "start": { - "line": 341, - "column": 16 - }, - "end": { - "line": 341, - "column": 31 - }, - "identifierName": "DEBUG_MOUSE_LOG" - }, - "name": "DEBUG_MOUSE_LOG" - }, - "computed": false - }, - "consequent": { - "type": "ExpressionStatement", - "start": 9279, - "end": 9411, - "loc": { - "start": { - "line": 342, - "column": 8 - }, - "end": { - "line": 342, - "column": 140 - } - }, - "expression": { - "type": "CallExpression", - "start": 9279, - "end": 9410, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8248, + "end": 8428, "loc": { "start": { - "line": 342, + "line": 314, "column": 8 }, "end": { - "line": 342, - "column": 139 + "line": 320, + "column": 12 } }, - "callee": { - "type": "MemberExpression", - "start": 9279, - "end": 9290, + "id": { + "type": "Identifier", + "start": 8248, + "end": 8254, "loc": { "start": { - "line": 342, + "line": 314, "column": 8 }, "end": { - "line": 342, - "column": 19 - } + "line": 314, + "column": 14 + }, + "identifierName": "target" }, - "object": { - "type": "Identifier", - "start": 9279, - "end": 9286, - "loc": { - "start": { - "line": 342, - "column": 8 - }, - "end": { - "line": 342, - "column": 15 - }, - "identifierName": "console" + "name": "target" + }, + "init": { + "type": "CallExpression", + "start": 8257, + "end": 8428, + "loc": { + "start": { + "line": 314, + "column": 17 }, - "name": "console" + "end": { + "line": 320, + "column": 12 + } }, - "property": { + "callee": { "type": "Identifier", - "start": 9287, - "end": 9290, + "start": 8257, + "end": 8270, "loc": { "start": { - "line": 342, - "column": 16 + "line": 314, + "column": 17 }, "end": { - "line": 342, - "column": 19 + "line": 314, + "column": 30 }, - "identifierName": "log" + "identifierName": "transformRect" }, - "name": "log" + "name": "transformRect" }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 9291, - "end": 9409, - "loc": { - "start": { - "line": 342, - "column": 20 - }, - "end": { - "line": 342, - "column": 138 - } - }, - "left": { - "type": "BinaryExpression", - "start": 9291, - "end": 9403, + "arguments": [ + { + "type": "ObjectExpression", + "start": 8271, + "end": 8361, "loc": { "start": { - "line": 342, - "column": 20 + "line": 314, + "column": 31 }, "end": { - "line": 342, - "column": 132 + "line": 317, + "column": 5 } }, - "left": { - "type": "BinaryExpression", - "start": 9291, - "end": 9398, - "loc": { - "start": { - "line": 342, - "column": 20 - }, - "end": { - "line": 342, - "column": 127 - } - }, - "left": { - "type": "BinaryExpression", - "start": 9291, - "end": 9390, + "properties": [ + { + "type": "ObjectProperty", + "start": 8281, + "end": 8310, "loc": { "start": { - "line": 342, - "column": 20 + "line": 315, + "column": 8 }, "end": { - "line": 342, - "column": 119 + "line": 315, + "column": 37 } }, - "left": { + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 8281, + "end": 8282, + "loc": { + "start": { + "line": 315, + "column": 8 + }, + "end": { + "line": 315, + "column": 9 + }, + "identifierName": "x" + }, + "name": "x" + }, + "value": { "type": "BinaryExpression", - "start": 9291, - "end": 9385, + "start": 8284, + "end": 8310, "loc": { "start": { - "line": 342, - "column": 20 + "line": 315, + "column": 11 }, "end": { - "line": 342, - "column": 114 + "line": 315, + "column": 37 } }, "left": { - "type": "BinaryExpression", - "start": 9291, - "end": 9369, + "type": "MemberExpression", + "start": 8284, + "end": 8293, "loc": { "start": { - "line": 342, + "line": 315, + "column": 11 + }, + "end": { + "line": 315, "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 8284, + "end": 8288, + "loc": { + "start": { + "line": 315, + "column": 11 + }, + "end": { + "line": 315, + "column": 15 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 8289, + "end": 8293, + "loc": { + "start": { + "line": 315, + "column": 16 + }, + "end": { + "line": 315, + "column": 20 + }, + "identifierName": "left" + }, + "name": "left" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "BinaryExpression", + "start": 8296, + "end": 8310, + "loc": { + "start": { + "line": 315, + "column": 23 }, "end": { - "line": 342, - "column": 98 + "line": 315, + "column": 37 } }, "left": { - "type": "BinaryExpression", - "start": 9291, - "end": 9353, + "type": "MemberExpression", + "start": 8296, + "end": 8306, "loc": { "start": { - "line": 342, - "column": 20 + "line": 315, + "column": 23 }, "end": { - "line": 342, - "column": 82 + "line": 315, + "column": 33 } }, - "left": { - "type": "BinaryExpression", - "start": 9291, - "end": 9345, + "object": { + "type": "Identifier", + "start": 8296, + "end": 8300, "loc": { "start": { - "line": 342, - "column": 20 + "line": 315, + "column": 23 }, "end": { - "line": 342, - "column": 74 - } - }, - "left": { - "type": "StringLiteral", - "start": 9291, - "end": 9329, - "loc": { - "start": { - "line": 342, - "column": 20 - }, - "end": { - "line": 342, - "column": 58 - } - }, - "extra": { - "rawValue": "followPointer onMouseMove device( x:", - "raw": "\"followPointer onMouseMove device( x:\"" + "line": 315, + "column": 27 }, - "value": "followPointer onMouseMove device( x:" + "identifierName": "rect" }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 9332, - "end": 9345, - "loc": { - "start": { - "line": 342, - "column": 61 - }, - "end": { - "line": 342, - "column": 74 - } - }, - "object": { - "type": "Identifier", - "start": 9332, - "end": 9337, - "loc": { - "start": { - "line": 342, - "column": 61 - }, - "end": { - "line": 342, - "column": 66 - }, - "identifierName": "event" - }, - "name": "event" - }, - "property": { - "type": "Identifier", - "start": 9338, - "end": 9345, - "loc": { - "start": { - "line": 342, - "column": 67 - }, - "end": { - "line": 342, - "column": 74 - }, - "identifierName": "clientX" - }, - "name": "clientX" - }, - "computed": false - } + "name": "rect" }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 9348, - "end": 9353, + "property": { + "type": "Identifier", + "start": 8301, + "end": 8306, "loc": { "start": { - "line": 342, - "column": 77 + "line": 315, + "column": 28 }, "end": { - "line": 342, - "column": 82 - } + "line": 315, + "column": 33 + }, + "identifierName": "width" }, - "extra": { - "rawValue": " y:", - "raw": "\" y:\"" + "name": "width" + }, + "computed": false + }, + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 8309, + "end": 8310, + "loc": { + "start": { + "line": 315, + "column": 36 }, - "value": " y:" + "end": { + "line": 315, + "column": 37 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + } + } + }, + { + "type": "ObjectProperty", + "start": 8320, + "end": 8355, + "loc": { + "start": { + "line": 316, + "column": 8 + }, + "end": { + "line": 316, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 8320, + "end": 8321, + "loc": { + "start": { + "line": 316, + "column": 8 + }, + "end": { + "line": 316, + "column": 9 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "BinaryExpression", + "start": 8323, + "end": 8355, + "loc": { + "start": { + "line": 316, + "column": 11 + }, + "end": { + "line": 316, + "column": 43 + } + }, + "left": { + "type": "MemberExpression", + "start": 8323, + "end": 8331, + "loc": { + "start": { + "line": 316, + "column": 11 + }, + "end": { + "line": 316, + "column": 19 } }, - "operator": "+", - "right": { + "object": { + "type": "Identifier", + "start": 8323, + "end": 8327, + "loc": { + "start": { + "line": 316, + "column": 11 + }, + "end": { + "line": 316, + "column": 15 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 8328, + "end": 8331, + "loc": { + "start": { + "line": 316, + "column": 16 + }, + "end": { + "line": 316, + "column": 19 + }, + "identifierName": "top" + }, + "name": "top" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "BinaryExpression", + "start": 8334, + "end": 8355, + "loc": { + "start": { + "line": 316, + "column": 22 + }, + "end": { + "line": 316, + "column": 43 + } + }, + "left": { "type": "MemberExpression", - "start": 9356, - "end": 9369, + "start": 8334, + "end": 8345, "loc": { "start": { - "line": 342, - "column": 85 + "line": 316, + "column": 22 }, "end": { - "line": 342, - "column": 98 + "line": 316, + "column": 33 } }, "object": { "type": "Identifier", - "start": 9356, - "end": 9361, + "start": 8334, + "end": 8338, "loc": { "start": { - "line": 342, - "column": 85 + "line": 316, + "column": 22 }, "end": { - "line": 342, - "column": 90 + "line": 316, + "column": 26 }, - "identifierName": "event" + "identifierName": "rect" }, - "name": "event" + "name": "rect" }, "property": { "type": "Identifier", - "start": 9362, - "end": 9369, + "start": 8339, + "end": 8345, "loc": { "start": { - "line": 342, - "column": 91 + "line": 316, + "column": 27 }, "end": { - "line": 342, - "column": 98 + "line": 316, + "column": 33 }, - "identifierName": "clientY" + "identifierName": "height" }, - "name": "clientY" + "name": "height" }, "computed": false + }, + "operator": "*", + "right": { + "type": "Identifier", + "start": 8348, + "end": 8355, + "loc": { + "start": { + "line": 316, + "column": 36 + }, + "end": { + "line": 316, + "column": 43 + }, + "identifierName": "headPos" + }, + "name": "headPos" } + } + } + } + ] + }, + { + "type": "ObjectExpression", + "start": 8363, + "end": 8421, + "loc": { + "start": { + "line": 317, + "column": 7 + }, + "end": { + "line": 320, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 8373, + "end": 8389, + "loc": { + "start": { + "line": 318, + "column": 8 }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 9372, - "end": 9385, - "loc": { - "start": { - "line": 342, - "column": 101 - }, - "end": { - "line": 342, - "column": 114 - } - }, - "extra": { - "rawValue": " ) view( x:", - "raw": "\" ) view( x:\"" - }, - "value": " ) view( x:" + "end": { + "line": 318, + "column": 24 } }, - "operator": "+", - "right": { + "method": false, + "shorthand": false, + "computed": false, + "key": { "type": "Identifier", - "start": 9388, - "end": 9390, + "start": 8373, + "end": 8374, "loc": { "start": { - "line": 342, - "column": 117 + "line": 318, + "column": 8 }, "end": { - "line": 342, - "column": 119 + "line": 318, + "column": 9 }, - "identifierName": "vx" - }, - "name": "vx" - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 9393, - "end": 9398, - "loc": { - "start": { - "line": 342, - "column": 122 + "identifierName": "x" }, - "end": { - "line": 342, - "column": 127 - } - }, - "extra": { - "rawValue": " y:", - "raw": "\" y:\"" - }, - "value": " y:" - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 9401, - "end": 9403, - "loc": { - "start": { - "line": 342, - "column": 130 + "name": "x" }, - "end": { - "line": 342, - "column": 132 - }, - "identifierName": "vy" + "value": { + "type": "MemberExpression", + "start": 8376, + "end": 8389, + "loc": { + "start": { + "line": 318, + "column": 11 + }, + "end": { + "line": 318, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 8376, + "end": 8381, + "loc": { + "start": { + "line": 318, + "column": 11 + }, + "end": { + "line": 318, + "column": 16 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 8382, + "end": 8389, + "loc": { + "start": { + "line": 318, + "column": 17 + }, + "end": { + "line": 318, + "column": 24 + }, + "identifierName": "clientX" + }, + "name": "clientX" + }, + "computed": false + } }, - "name": "vy" - } + { + "type": "ObjectProperty", + "start": 8399, + "end": 8415, + "loc": { + "start": { + "line": 319, + "column": 8 + }, + "end": { + "line": 319, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 8399, + "end": 8400, + "loc": { + "start": { + "line": 319, + "column": 8 + }, + "end": { + "line": 319, + "column": 9 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "MemberExpression", + "start": 8402, + "end": 8415, + "loc": { + "start": { + "line": 319, + "column": 11 + }, + "end": { + "line": 319, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 8402, + "end": 8407, + "loc": { + "start": { + "line": 319, + "column": 11 + }, + "end": { + "line": 319, + "column": 16 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 8408, + "end": 8415, + "loc": { + "start": { + "line": 319, + "column": 17 + }, + "end": { + "line": 319, + "column": 24 + }, + "identifierName": "clientY" + }, + "name": "clientY" + }, + "computed": false + } + } + ] }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 9406, - "end": 9409, + { + "type": "Identifier", + "start": 8423, + "end": 8427, "loc": { "start": { - "line": 342, - "column": 135 + "line": 320, + "column": 7 }, "end": { - "line": 342, - "column": 138 - } - }, - "extra": { - "rawValue": ")", - "raw": "\")\"" + "line": 320, + "column": 11 + }, + "identifierName": "rect" }, - "value": ")" + "name": "rect" } - } - ] + ] + } } - }, - "alternate": null + ], + "kind": "let" }, { - "type": "IfStatement", - "start": 9417, - "end": 9522, + "type": "VariableDeclaration", + "start": 8433, + "end": 8479, "loc": { "start": { - "line": 344, + "line": 321, "column": 4 }, "end": { - "line": 349, - "column": 5 + "line": 321, + "column": 50 } }, - "test": { - "type": "Identifier", - "start": 9421, - "end": 9425, - "loc": { - "start": { - "line": 344, - "column": 8 - }, - "end": { - "line": 344, - "column": 12 - }, - "identifierName": "drag" - }, - "name": "drag" - }, - "consequent": { - "type": "BlockStatement", - "start": 9431, - "end": 9522, - "loc": { - "start": { - "line": 345, - "column": 4 + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8437, + "end": 8478, + "loc": { + "start": { + "line": 321, + "column": 8 + }, + "end": { + "line": 321, + "column": 49 + } }, - "end": { - "line": 349, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9441, - "end": 9457, + "id": { + "type": "Identifier", + "start": 8437, + "end": 8439, "loc": { "start": { - "line": 346, + "line": 321, "column": 8 }, "end": { - "line": 346, - "column": 24 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9441, - "end": 9456, - "loc": { - "start": { - "line": 346, - "column": 8 - }, - "end": { - "line": 346, - "column": 23 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 9441, - "end": 9451, - "loc": { - "start": { - "line": 346, - "column": 8 - }, - "end": { - "line": 346, - "column": 18 - }, - "identifierName": "lastMouseX" - }, - "name": "lastMouseX" + "line": 321, + "column": 10 }, - "right": { - "type": "Identifier", - "start": 9454, - "end": 9456, - "loc": { - "start": { - "line": 346, - "column": 21 - }, - "end": { - "line": 346, - "column": 23 - }, - "identifierName": "sx" - }, - "name": "sx" - } - } + "identifierName": "vx" + }, + "name": "vx" }, - { - "type": "ExpressionStatement", - "start": 9466, - "end": 9482, + "init": { + "type": "CallExpression", + "start": 8442, + "end": 8478, "loc": { "start": { - "line": 347, - "column": 8 + "line": 321, + "column": 13 }, "end": { - "line": 347, - "column": 24 + "line": 321, + "column": 49 } }, - "expression": { - "type": "AssignmentExpression", - "start": 9466, - "end": 9481, + "callee": { + "type": "Identifier", + "start": 8442, + "end": 8456, "loc": { "start": { - "line": 347, - "column": 8 + "line": 321, + "column": 13 }, "end": { - "line": 347, - "column": 23 - } + "line": 321, + "column": 27 + }, + "identifierName": "transformViewX" }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 9466, - "end": 9476, + "name": "transformViewX" + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 8457, + "end": 8477, "loc": { "start": { - "line": 347, - "column": 8 + "line": 321, + "column": 28 }, "end": { - "line": 347, - "column": 18 - }, - "identifierName": "lastMouseY" + "line": 321, + "column": 48 + } }, - "name": "lastMouseY" - }, - "right": { - "type": "Identifier", - "start": 9479, - "end": 9481, - "loc": { - "start": { - "line": 347, - "column": 21 + "left": { + "type": "MemberExpression", + "start": 8457, + "end": 8465, + "loc": { + "start": { + "line": 321, + "column": 28 + }, + "end": { + "line": 321, + "column": 36 + } }, - "end": { - "line": 347, - "column": 23 + "object": { + "type": "Identifier", + "start": 8457, + "end": 8463, + "loc": { + "start": { + "line": 321, + "column": 28 + }, + "end": { + "line": 321, + "column": 34 + }, + "identifierName": "target" + }, + "name": "target" }, - "identifierName": "sy" + "property": { + "type": "Identifier", + "start": 8464, + "end": 8465, + "loc": { + "start": { + "line": 321, + "column": 35 + }, + "end": { + "line": 321, + "column": 36 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false }, - "name": "sy" + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 8468, + "end": 8477, + "loc": { + "start": { + "line": 321, + "column": 39 + }, + "end": { + "line": 321, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 8468, + "end": 8472, + "loc": { + "start": { + "line": 321, + "column": 39 + }, + "end": { + "line": 321, + "column": 43 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 8473, + "end": 8477, + "loc": { + "start": { + "line": 321, + "column": 44 + }, + "end": { + "line": 321, + "column": 48 + }, + "identifierName": "left" + }, + "name": "left" + }, + "computed": false + } } + ] + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 8484, + "end": 8529, + "loc": { + "start": { + "line": 322, + "column": 4 + }, + "end": { + "line": 322, + "column": 49 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8488, + "end": 8528, + "loc": { + "start": { + "line": 322, + "column": 8 + }, + "end": { + "line": 322, + "column": 48 } }, - { - "type": "ExpressionStatement", - "start": 9491, - "end": 9516, + "id": { + "type": "Identifier", + "start": 8488, + "end": 8490, "loc": { "start": { - "line": 348, + "line": 322, "column": 8 }, "end": { - "line": 348, - "column": 33 + "line": 322, + "column": 10 + }, + "identifierName": "vy" + }, + "name": "vy" + }, + "init": { + "type": "CallExpression", + "start": 8493, + "end": 8528, + "loc": { + "start": { + "line": 322, + "column": 13 + }, + "end": { + "line": 322, + "column": 48 } }, - "expression": { - "type": "CallExpression", - "start": 9491, - "end": 9515, + "callee": { + "type": "Identifier", + "start": 8493, + "end": 8507, "loc": { "start": { - "line": 348, - "column": 8 + "line": 322, + "column": 13 }, "end": { - "line": 348, - "column": 32 - } + "line": 322, + "column": 27 + }, + "identifierName": "transformViewY" }, - "callee": { - "type": "MemberExpression", - "start": 9491, - "end": 9507, + "name": "transformViewY" + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 8508, + "end": 8527, "loc": { "start": { - "line": 348, - "column": 8 + "line": 322, + "column": 28 }, "end": { - "line": 348, - "column": 24 + "line": 322, + "column": 47 } }, - "object": { - "type": "Identifier", - "start": 9491, - "end": 9498, + "left": { + "type": "MemberExpression", + "start": 8508, + "end": 8516, "loc": { "start": { - "line": 348, - "column": 8 + "line": 322, + "column": 28 }, "end": { - "line": 348, - "column": 15 - }, - "identifierName": "dragMgr" + "line": 322, + "column": 36 + } }, - "name": "dragMgr" - }, - "property": { - "type": "Identifier", - "start": 9499, - "end": 9507, - "loc": { - "start": { - "line": 348, - "column": 16 + "object": { + "type": "Identifier", + "start": 8508, + "end": 8514, + "loc": { + "start": { + "line": 322, + "column": 28 + }, + "end": { + "line": 322, + "column": 34 + }, + "identifierName": "target" }, - "end": { - "line": 348, - "column": 24 + "name": "target" + }, + "property": { + "type": "Identifier", + "start": 8515, + "end": 8516, + "loc": { + "start": { + "line": 322, + "column": 35 + }, + "end": { + "line": 322, + "column": 36 + }, + "identifierName": "y" }, - "identifierName": "setPoint" + "name": "y" }, - "name": "setPoint" + "computed": false }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9508, - "end": 9510, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 8519, + "end": 8527, "loc": { "start": { - "line": 348, - "column": 25 + "line": 322, + "column": 39 }, "end": { - "line": 348, - "column": 27 - }, - "identifierName": "vx" + "line": 322, + "column": 47 + } }, - "name": "vx" - }, - { - "type": "Identifier", - "start": 9512, - "end": 9514, - "loc": { - "start": { - "line": 348, - "column": 29 + "object": { + "type": "Identifier", + "start": 8519, + "end": 8523, + "loc": { + "start": { + "line": 322, + "column": 39 + }, + "end": { + "line": 322, + "column": 43 + }, + "identifierName": "rect" }, - "end": { - "line": 348, - "column": 31 + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 8524, + "end": 8527, + "loc": { + "start": { + "line": 322, + "column": 44 + }, + "end": { + "line": 322, + "column": 47 + }, + "identifierName": "top" }, - "identifierName": "vy" + "name": "top" }, - "name": "vy" + "computed": false } - ] - } + } + ] } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - }, - { - "type": "FunctionDeclaration", - "start": 9526, - "end": 9622, - "loc": { - "start": { - "line": 352, - "column": 0 - }, - "end": { - "line": 358, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 9535, - "end": 9544, - "loc": { - "start": { - "line": 352, - "column": 9 - }, - "end": { - "line": 352, - "column": 18 - }, - "identifierName": "lookFront" - }, - "name": "lookFront" - }, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 9547, - "end": 9622, - "loc": { - "start": { - "line": 353, - "column": 0 + } + ], + "kind": "let" }, - "end": { - "line": 358, - "column": 1 - } - }, - "body": [ { "type": "IfStatement", - "start": 9553, - "end": 9592, + "start": 8535, + "end": 8704, "loc": { "start": { - "line": 354, + "line": 324, "column": 4 }, "end": { - "line": 356, - "column": 5 + "line": 325, + "column": 140 } }, "test": { - "type": "Identifier", - "start": 9557, - "end": 9561, + "type": "MemberExpression", + "start": 8539, + "end": 8562, "loc": { "start": { - "line": 354, + "line": 324, "column": 8 }, "end": { - "line": 354, - "column": 12 + "line": 324, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 8539, + "end": 8546, + "loc": { + "start": { + "line": 324, + "column": 8 + }, + "end": { + "line": 324, + "column": 15 + }, + "identifierName": "cDefine" }, - "identifierName": "drag" + "name": "cDefine" }, - "name": "drag" + "property": { + "type": "Identifier", + "start": 8547, + "end": 8562, + "loc": { + "start": { + "line": 324, + "column": 16 + }, + "end": { + "line": 324, + "column": 31 + }, + "identifierName": "DEBUG_MOUSE_LOG" + }, + "name": "DEBUG_MOUSE_LOG" + }, + "computed": false }, "consequent": { - "type": "BlockStatement", - "start": 9563, - "end": 9592, + "type": "ExpressionStatement", + "start": 8572, + "end": 8704, "loc": { "start": { - "line": 354, - "column": 14 + "line": 325, + "column": 8 }, "end": { - "line": 356, - "column": 5 + "line": 325, + "column": 140 } }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9573, - "end": 9586, + "expression": { + "type": "CallExpression", + "start": 8572, + "end": 8703, + "loc": { + "start": { + "line": 325, + "column": 8 + }, + "end": { + "line": 325, + "column": 139 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8572, + "end": 8583, "loc": { "start": { - "line": 355, + "line": 325, "column": 8 }, "end": { - "line": 355, - "column": 21 + "line": 325, + "column": 19 } }, - "expression": { - "type": "AssignmentExpression", - "start": 9573, - "end": 9585, + "object": { + "type": "Identifier", + "start": 8572, + "end": 8579, "loc": { "start": { - "line": 355, + "line": 325, "column": 8 }, "end": { - "line": 355, + "line": 325, + "column": 15 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 8580, + "end": 8583, + "loc": { + "start": { + "line": 325, + "column": 16 + }, + "end": { + "line": 325, + "column": 19 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 8584, + "end": 8702, + "loc": { + "start": { + "line": 325, "column": 20 + }, + "end": { + "line": 325, + "column": 138 } }, - "operator": "=", "left": { - "type": "Identifier", - "start": 9573, - "end": 9577, + "type": "BinaryExpression", + "start": 8584, + "end": 8696, "loc": { "start": { - "line": 355, - "column": 8 + "line": 325, + "column": 20 }, "end": { - "line": 355, - "column": 12 + "line": 325, + "column": 132 + } + }, + "left": { + "type": "BinaryExpression", + "start": 8584, + "end": 8691, + "loc": { + "start": { + "line": 325, + "column": 20 + }, + "end": { + "line": 325, + "column": 127 + } }, - "identifierName": "drag" + "left": { + "type": "BinaryExpression", + "start": 8584, + "end": 8683, + "loc": { + "start": { + "line": 325, + "column": 20 + }, + "end": { + "line": 325, + "column": 119 + } + }, + "left": { + "type": "BinaryExpression", + "start": 8584, + "end": 8678, + "loc": { + "start": { + "line": 325, + "column": 20 + }, + "end": { + "line": 325, + "column": 114 + } + }, + "left": { + "type": "BinaryExpression", + "start": 8584, + "end": 8662, + "loc": { + "start": { + "line": 325, + "column": 20 + }, + "end": { + "line": 325, + "column": 98 + } + }, + "left": { + "type": "BinaryExpression", + "start": 8584, + "end": 8646, + "loc": { + "start": { + "line": 325, + "column": 20 + }, + "end": { + "line": 325, + "column": 82 + } + }, + "left": { + "type": "BinaryExpression", + "start": 8584, + "end": 8638, + "loc": { + "start": { + "line": 325, + "column": 20 + }, + "end": { + "line": 325, + "column": 74 + } + }, + "left": { + "type": "StringLiteral", + "start": 8584, + "end": 8622, + "loc": { + "start": { + "line": 325, + "column": 20 + }, + "end": { + "line": 325, + "column": 58 + } + }, + "extra": { + "rawValue": "modelTapEvent onMouseDown device( x:", + "raw": "\"modelTapEvent onMouseDown device( x:\"" + }, + "value": "modelTapEvent onMouseDown device( x:" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 8625, + "end": 8638, + "loc": { + "start": { + "line": 325, + "column": 61 + }, + "end": { + "line": 325, + "column": 74 + } + }, + "object": { + "type": "Identifier", + "start": 8625, + "end": 8630, + "loc": { + "start": { + "line": 325, + "column": 61 + }, + "end": { + "line": 325, + "column": 66 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 8631, + "end": 8638, + "loc": { + "start": { + "line": 325, + "column": 67 + }, + "end": { + "line": 325, + "column": 74 + }, + "identifierName": "clientX" + }, + "name": "clientX" + }, + "computed": false + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 8641, + "end": 8646, + "loc": { + "start": { + "line": 325, + "column": 77 + }, + "end": { + "line": 325, + "column": 82 + } + }, + "extra": { + "rawValue": " y:", + "raw": "\" y:\"" + }, + "value": " y:" + } + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 8649, + "end": 8662, + "loc": { + "start": { + "line": 325, + "column": 85 + }, + "end": { + "line": 325, + "column": 98 + } + }, + "object": { + "type": "Identifier", + "start": 8649, + "end": 8654, + "loc": { + "start": { + "line": 325, + "column": 85 + }, + "end": { + "line": 325, + "column": 90 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 8655, + "end": 8662, + "loc": { + "start": { + "line": 325, + "column": 91 + }, + "end": { + "line": 325, + "column": 98 + }, + "identifierName": "clientY" + }, + "name": "clientY" + }, + "computed": false + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 8665, + "end": 8678, + "loc": { + "start": { + "line": 325, + "column": 101 + }, + "end": { + "line": 325, + "column": 114 + } + }, + "extra": { + "rawValue": " ) view( x:", + "raw": "\" ) view( x:\"" + }, + "value": " ) view( x:" + } + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 8681, + "end": 8683, + "loc": { + "start": { + "line": 325, + "column": 117 + }, + "end": { + "line": 325, + "column": 119 + }, + "identifierName": "vx" + }, + "name": "vx" + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 8686, + "end": 8691, + "loc": { + "start": { + "line": 325, + "column": 122 + }, + "end": { + "line": 325, + "column": 127 + } + }, + "extra": { + "rawValue": " y:", + "raw": "\" y:\"" + }, + "value": " y:" + } }, - "name": "drag" + "operator": "+", + "right": { + "type": "Identifier", + "start": 8694, + "end": 8696, + "loc": { + "start": { + "line": 325, + "column": 130 + }, + "end": { + "line": 325, + "column": 132 + }, + "identifierName": "vy" + }, + "name": "vy" + } }, + "operator": "+", "right": { - "type": "BooleanLiteral", - "start": 9580, - "end": 9585, + "type": "StringLiteral", + "start": 8699, + "end": 8702, "loc": { "start": { - "line": 355, - "column": 15 + "line": 325, + "column": 135 }, "end": { - "line": 355, - "column": 20 + "line": 325, + "column": 138 } }, - "value": false + "extra": { + "rawValue": ")", + "raw": "\")\"" + }, + "value": ")" } } - } - ], - "directives": [] + ] + } }, "alternate": null }, { "type": "ExpressionStatement", - "start": 9597, - "end": 9620, + "start": 8710, + "end": 8726, "loc": { "start": { - "line": 357, + "line": 327, "column": 4 }, "end": { - "line": 357, - "column": 27 + "line": 327, + "column": 20 } }, "expression": { - "type": "CallExpression", - "start": 9597, - "end": 9619, + "type": "AssignmentExpression", + "start": 8710, + "end": 8725, "loc": { "start": { - "line": 357, + "line": 327, "column": 4 }, "end": { - "line": 357, - "column": 26 + "line": 327, + "column": 19 } }, - "callee": { - "type": "MemberExpression", - "start": 9597, - "end": 9613, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8710, + "end": 8720, "loc": { "start": { - "line": 357, + "line": 327, "column": 4 }, "end": { - "line": 357, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 9597, - "end": 9604, - "loc": { - "start": { - "line": 357, - "column": 4 - }, - "end": { - "line": 357, - "column": 11 - }, - "identifierName": "dragMgr" - }, - "name": "dragMgr" - }, - "property": { - "type": "Identifier", - "start": 9605, - "end": 9613, - "loc": { - "start": { - "line": 357, - "column": 12 - }, - "end": { - "line": 357, - "column": 20 - }, - "identifierName": "setPoint" + "line": 327, + "column": 14 }, - "name": "setPoint" + "identifierName": "lastMouseX" }, - "computed": false + "name": "lastMouseX" }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 9614, - "end": 9615, - "loc": { - "start": { - "line": 357, - "column": 21 - }, - "end": { - "line": 357, - "column": 22 - } + "right": { + "type": "Identifier", + "start": 8723, + "end": 8725, + "loc": { + "start": { + "line": 327, + "column": 17 }, - "extra": { - "rawValue": 0, - "raw": "0" + "end": { + "line": 327, + "column": 19 }, - "value": 0 + "identifierName": "sx" }, - { - "type": "NumericLiteral", - "start": 9617, - "end": 9618, - "loc": { - "start": { - "line": 357, - "column": 24 - }, - "end": { - "line": 357, - "column": 25 - } + "name": "sx" + } + } + }, + { + "type": "ExpressionStatement", + "start": 8731, + "end": 8747, + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 328, + "column": 20 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8731, + "end": 8746, + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 328, + "column": 19 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8731, + "end": 8741, + "loc": { + "start": { + "line": 328, + "column": 4 }, - "extra": { - "rawValue": 0, - "raw": "0" + "end": { + "line": 328, + "column": 14 }, - "value": 0 + "identifierName": "lastMouseY" + }, + "name": "lastMouseY" + }, + "right": { + "type": "Identifier", + "start": 8744, + "end": 8746, + "loc": { + "start": { + "line": 328, + "column": 17 + }, + "end": { + "line": 328, + "column": 19 + }, + "identifierName": "sy" + }, + "name": "sy" + } + } + }, + { + "type": "ExpressionStatement", + "start": 8753, + "end": 8780, + "loc": { + "start": { + "line": 330, + "column": 4 + }, + "end": { + "line": 330, + "column": 31 + } + }, + "expression": { + "type": "CallExpression", + "start": 8753, + "end": 8779, + "loc": { + "start": { + "line": 330, + "column": 4 + }, + "end": { + "line": 330, + "column": 30 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8753, + "end": 8771, + "loc": { + "start": { + "line": 330, + "column": 4 + }, + "end": { + "line": 330, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 8753, + "end": 8762, + "loc": { + "start": { + "line": 330, + "column": 4 + }, + "end": { + "line": 330, + "column": 13 + }, + "identifierName": "live2DMgr" + }, + "name": "live2DMgr" + }, + "property": { + "type": "Identifier", + "start": 8763, + "end": 8771, + "loc": { + "start": { + "line": 330, + "column": 14 + }, + "end": { + "line": 330, + "column": 22 + }, + "identifierName": "tapEvent" + }, + "name": "tapEvent" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 8772, + "end": 8774, + "loc": { + "start": { + "line": 330, + "column": 23 + }, + "end": { + "line": 330, + "column": 25 + }, + "identifierName": "vx" + }, + "name": "vx" + }, + { + "type": "Identifier", + "start": 8776, + "end": 8778, + "loc": { + "start": { + "line": 330, + "column": 27 + }, + "end": { + "line": 330, + "column": 29 + }, + "identifierName": "vy" + }, + "name": "vy" } ] } @@ -24862,34 +23146,34 @@ }, { "type": "FunctionDeclaration", - "start": 9624, - "end": 9982, + "start": 8784, + "end": 9700, "loc": { "start": { - "line": 360, + "line": 333, "column": 0 }, "end": { - "line": 373, + "line": 362, "column": 1 } }, "id": { "type": "Identifier", - "start": 9633, - "end": 9643, + "start": 8793, + "end": 8806, "loc": { "start": { - "line": 360, + "line": 333, "column": 9 }, "end": { - "line": 360, - "column": 19 + "line": 333, + "column": 22 }, - "identifierName": "mouseEvent" + "identifierName": "followPointer" }, - "name": "mouseEvent" + "name": "followPointer" }, "generator": false, "expression": false, @@ -24897,2123 +23181,2812 @@ "params": [ { "type": "Identifier", - "start": 9644, - "end": 9645, + "start": 8807, + "end": 8812, "loc": { "start": { - "line": 360, - "column": 20 + "line": 333, + "column": 23 }, "end": { - "line": 360, - "column": 21 + "line": 333, + "column": 28 }, - "identifierName": "e" + "identifierName": "event" }, - "name": "e" + "name": "event" } ], "body": { "type": "BlockStatement", - "start": 9647, - "end": 9982, + "start": 8814, + "end": 9700, "loc": { "start": { - "line": 361, + "line": 334, "column": 0 }, "end": { - "line": 373, + "line": 362, "column": 1 } }, "body": [ { - "type": "IfStatement", - "start": 9679, - "end": 9980, + "type": "VariableDeclaration", + "start": 8820, + "end": 8866, "loc": { "start": { - "line": 363, + "line": 335, "column": 4 }, "end": { - "line": 372, - "column": 5 + "line": 335, + "column": 50 } }, - "test": { - "type": "BinaryExpression", - "start": 9683, - "end": 9704, - "loc": { - "start": { - "line": 363, - "column": 8 - }, - "end": { - "line": 363, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 9683, - "end": 9689, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8824, + "end": 8865, "loc": { "start": { - "line": 363, + "line": 335, "column": 8 }, "end": { - "line": 363, - "column": 14 + "line": 335, + "column": 49 } }, - "object": { + "id": { "type": "Identifier", - "start": 9683, - "end": 9684, + "start": 8824, + "end": 8828, "loc": { "start": { - "line": 363, + "line": 335, "column": 8 }, "end": { - "line": 363, - "column": 9 - }, - "identifierName": "e" - }, - "name": "e", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 9685, - "end": 9689, - "loc": { - "start": { - "line": 363, - "column": 10 - }, - "end": { - "line": 363, - "column": 14 + "line": 335, + "column": 12 }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false, - "leadingComments": null - }, - "operator": "==", - "right": { - "type": "StringLiteral", - "start": 9693, - "end": 9704, - "loc": { - "start": { - "line": 363, - "column": 18 + "identifierName": "rect" }, - "end": { - "line": 363, - "column": 29 - } - }, - "extra": { - "rawValue": "mousedown", - "raw": "\"mousedown\"" - }, - "value": "mousedown" - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 9706, - "end": 9739, - "loc": { - "start": { - "line": 363, - "column": 31 + "name": "rect" }, - "end": { - "line": 365, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9716, - "end": 9733, + "init": { + "type": "CallExpression", + "start": 8831, + "end": 8865, "loc": { "start": { - "line": 364, - "column": 8 + "line": 335, + "column": 15 }, "end": { - "line": 364, - "column": 25 + "line": 335, + "column": 49 } }, - "expression": { - "type": "CallExpression", - "start": 9716, - "end": 9732, + "callee": { + "type": "MemberExpression", + "start": 8831, + "end": 8863, "loc": { "start": { - "line": 364, - "column": 8 + "line": 335, + "column": 15 }, "end": { - "line": 364, - "column": 24 + "line": 335, + "column": 47 } }, - "callee": { + "object": { "type": "Identifier", - "start": 9716, - "end": 9729, + "start": 8831, + "end": 8841, "loc": { "start": { - "line": 364, - "column": 8 + "line": 335, + "column": 15 }, "end": { - "line": 364, - "column": 21 + "line": 335, + "column": 25 }, - "identifierName": "modelTapEvent" + "identifierName": "currCanvas" }, - "name": "modelTapEvent" + "name": "currCanvas" }, - "arguments": [ - { - "type": "Identifier", - "start": 9730, - "end": 9731, - "loc": { - "start": { - "line": 364, - "column": 22 - }, - "end": { - "line": 364, - "column": 23 - }, - "identifierName": "e" + "property": { + "type": "Identifier", + "start": 8842, + "end": 8863, + "loc": { + "start": { + "line": 335, + "column": 26 }, - "name": "e" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 9745, - "end": 9980, - "loc": { - "start": { - "line": 365, - "column": 11 - }, - "end": { - "line": 372, - "column": 5 + "end": { + "line": 335, + "column": 47 + }, + "identifierName": "getBoundingClientRect" + }, + "name": "getBoundingClientRect" + }, + "computed": false + }, + "arguments": [] } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 8872, + "end": 8925, + "loc": { + "start": { + "line": 337, + "column": 4 }, - "test": { - "type": "BinaryExpression", - "start": 9749, - "end": 9770, + "end": { + "line": 337, + "column": 57 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8876, + "end": 8924, "loc": { "start": { - "line": 365, - "column": 15 + "line": 337, + "column": 8 }, "end": { - "line": 365, - "column": 36 + "line": 337, + "column": 56 } }, - "left": { - "type": "MemberExpression", - "start": 9749, - "end": 9755, + "id": { + "type": "Identifier", + "start": 8876, + "end": 8878, "loc": { "start": { - "line": 365, - "column": 15 + "line": 337, + "column": 8 }, "end": { - "line": 365, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 9749, - "end": 9750, - "loc": { - "start": { - "line": 365, - "column": 15 - }, - "end": { - "line": 365, - "column": 16 - }, - "identifierName": "e" - }, - "name": "e" - }, - "property": { - "type": "Identifier", - "start": 9751, - "end": 9755, - "loc": { - "start": { - "line": 365, - "column": 17 - }, - "end": { - "line": 365, - "column": 21 - }, - "identifierName": "type" + "line": 337, + "column": 10 }, - "name": "type" + "identifierName": "sx" }, - "computed": false + "name": "sx" }, - "operator": "==", - "right": { - "type": "StringLiteral", - "start": 9759, - "end": 9770, + "init": { + "type": "CallExpression", + "start": 8881, + "end": 8924, "loc": { "start": { - "line": 365, - "column": 25 + "line": 337, + "column": 13 }, "end": { - "line": 365, - "column": 36 + "line": 337, + "column": 56 } }, - "extra": { - "rawValue": "mousemove", - "raw": "\"mousemove\"" - }, - "value": "mousemove" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 9772, - "end": 9805, - "loc": { - "start": { - "line": 365, - "column": 38 - }, - "end": { - "line": 367, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9782, - "end": 9799, + "callee": { + "type": "Identifier", + "start": 8881, + "end": 8897, "loc": { "start": { - "line": 366, - "column": 8 + "line": 337, + "column": 13 }, "end": { - "line": 366, - "column": 25 - } + "line": 337, + "column": 29 + }, + "identifierName": "transformScreenX" }, - "expression": { - "type": "CallExpression", - "start": 9782, - "end": 9798, + "name": "transformScreenX" + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 8898, + "end": 8923, "loc": { "start": { - "line": 366, - "column": 8 + "line": 337, + "column": 30 }, "end": { - "line": 366, - "column": 24 + "line": 337, + "column": 55 } }, - "callee": { - "type": "Identifier", - "start": 9782, - "end": 9795, + "left": { + "type": "MemberExpression", + "start": 8898, + "end": 8911, "loc": { "start": { - "line": 366, - "column": 8 + "line": 337, + "column": 30 }, "end": { - "line": 366, - "column": 21 - }, - "identifierName": "modelTurnHead" + "line": 337, + "column": 43 + } }, - "name": "modelTurnHead" - }, - "arguments": [ - { + "object": { "type": "Identifier", - "start": 9796, - "end": 9797, + "start": 8898, + "end": 8903, "loc": { "start": { - "line": 366, - "column": 22 + "line": 337, + "column": 30 }, "end": { - "line": 366, - "column": 23 + "line": 337, + "column": 35 }, - "identifierName": "e" + "identifierName": "event" }, - "name": "e" - } - ] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 9811, - "end": 9980, - "loc": { - "start": { - "line": 367, - "column": 11 - }, - "end": { - "line": 372, - "column": 5 - } - }, - "test": { - "type": "BinaryExpression", - "start": 9815, - "end": 9834, - "loc": { - "start": { - "line": 367, - "column": 15 - }, - "end": { - "line": 367, - "column": 34 - } - }, - "left": { - "type": "MemberExpression", - "start": 9815, - "end": 9821, - "loc": { - "start": { - "line": 367, - "column": 15 - }, - "end": { - "line": 367, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 9815, - "end": 9816, - "loc": { - "start": { - "line": 367, - "column": 15 + "name": "event" }, - "end": { - "line": 367, - "column": 16 + "property": { + "type": "Identifier", + "start": 8904, + "end": 8911, + "loc": { + "start": { + "line": 337, + "column": 36 + }, + "end": { + "line": 337, + "column": 43 + }, + "identifierName": "clientX" + }, + "name": "clientX" }, - "identifierName": "e" + "computed": false }, - "name": "e" - }, - "property": { - "type": "Identifier", - "start": 9817, - "end": 9821, - "loc": { - "start": { - "line": 367, - "column": 17 + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 8914, + "end": 8923, + "loc": { + "start": { + "line": 337, + "column": 46 + }, + "end": { + "line": 337, + "column": 55 + } }, - "end": { - "line": 367, - "column": 21 + "object": { + "type": "Identifier", + "start": 8914, + "end": 8918, + "loc": { + "start": { + "line": 337, + "column": 46 + }, + "end": { + "line": 337, + "column": 50 + }, + "identifierName": "rect" + }, + "name": "rect" }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "operator": "==", - "right": { - "type": "StringLiteral", - "start": 9825, - "end": 9834, - "loc": { - "start": { - "line": 367, - "column": 25 - }, - "end": { - "line": 367, - "column": 34 + "property": { + "type": "Identifier", + "start": 8919, + "end": 8923, + "loc": { + "start": { + "line": 337, + "column": 51 + }, + "end": { + "line": 337, + "column": 55 + }, + "identifierName": "left" + }, + "name": "left" + }, + "computed": false } + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 8930, + "end": 8982, + "loc": { + "start": { + "line": 338, + "column": 4 + }, + "end": { + "line": 338, + "column": 56 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8934, + "end": 8981, + "loc": { + "start": { + "line": 338, + "column": 8 + }, + "end": { + "line": 338, + "column": 55 + } + }, + "id": { + "type": "Identifier", + "start": 8934, + "end": 8936, + "loc": { + "start": { + "line": 338, + "column": 8 }, - "extra": { - "rawValue": "mouseup", - "raw": "\"mouseup\"" + "end": { + "line": 338, + "column": 10 }, - "value": "mouseup" - } + "identifierName": "sy" + }, + "name": "sy" }, - "consequent": { - "type": "BlockStatement", - "start": 9836, - "end": 9918, + "init": { + "type": "CallExpression", + "start": 8939, + "end": 8981, "loc": { "start": { - "line": 367, - "column": 36 + "line": 338, + "column": 13 }, "end": { - "line": 370, - "column": 5 + "line": 338, + "column": 55 } }, - "body": [ + "callee": { + "type": "Identifier", + "start": 8939, + "end": 8955, + "loc": { + "start": { + "line": 338, + "column": 13 + }, + "end": { + "line": 338, + "column": 29 + }, + "identifierName": "transformScreenY" + }, + "name": "transformScreenY" + }, + "arguments": [ { - "type": "IfStatement", - "start": 9846, - "end": 9888, + "type": "BinaryExpression", + "start": 8956, + "end": 8980, "loc": { "start": { - "line": 368, - "column": 8 + "line": 338, + "column": 30 }, "end": { - "line": 368, - "column": 50 + "line": 338, + "column": 54 } }, - "test": { - "type": "LogicalExpression", - "start": 9849, - "end": 9879, + "left": { + "type": "MemberExpression", + "start": 8956, + "end": 8969, "loc": { "start": { - "line": 368, - "column": 11 + "line": 338, + "column": 30 }, "end": { - "line": 368, - "column": 41 + "line": 338, + "column": 43 } }, - "left": { - "type": "BinaryExpression", - "start": 9849, - "end": 9862, + "object": { + "type": "Identifier", + "start": 8956, + "end": 8961, "loc": { "start": { - "line": 368, - "column": 11 + "line": 338, + "column": 30 }, "end": { - "line": 368, - "column": 24 - } - }, - "left": { - "type": "StringLiteral", - "start": 9849, - "end": 9857, - "loc": { - "start": { - "line": 368, - "column": 11 - }, - "end": { - "line": 368, - "column": 19 - } - }, - "extra": { - "rawValue": "button", - "raw": "\"button\"" + "line": 338, + "column": 35 }, - "value": "button" + "identifierName": "event" }, - "operator": "in", - "right": { - "type": "Identifier", - "start": 9861, - "end": 9862, - "loc": { - "start": { - "line": 368, - "column": 23 - }, - "end": { - "line": 368, - "column": 24 - }, - "identifierName": "e" - }, - "name": "e" - } + "name": "event" }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 9866, - "end": 9879, + "property": { + "type": "Identifier", + "start": 8962, + "end": 8969, "loc": { "start": { - "line": 368, - "column": 28 + "line": 338, + "column": 36 }, "end": { - "line": 368, - "column": 41 - } - }, - "left": { - "type": "MemberExpression", - "start": 9866, - "end": 9874, - "loc": { - "start": { - "line": 368, - "column": 28 - }, - "end": { - "line": 368, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 9866, - "end": 9867, - "loc": { - "start": { - "line": 368, - "column": 28 - }, - "end": { - "line": 368, - "column": 29 - }, - "identifierName": "e" - }, - "name": "e" - }, - "property": { - "type": "Identifier", - "start": 9868, - "end": 9874, - "loc": { - "start": { - "line": 368, - "column": 30 - }, - "end": { - "line": 368, - "column": 36 - }, - "identifierName": "button" - }, - "name": "button" + "line": 338, + "column": 43 }, - "computed": false + "identifierName": "clientY" }, - "operator": "!=", - "right": { - "type": "NumericLiteral", - "start": 9878, - "end": 9879, - "loc": { - "start": { - "line": 368, - "column": 40 - }, - "end": { - "line": 368, - "column": 41 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } + "name": "clientY" + }, + "computed": false }, - "consequent": { - "type": "ReturnStatement", - "start": 9881, - "end": 9888, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 8972, + "end": 8980, "loc": { "start": { - "line": 368, - "column": 43 + "line": 338, + "column": 46 }, "end": { - "line": 368, - "column": 50 + "line": 338, + "column": 54 } }, - "argument": null, - "leadingComments": null, - "trailingComments": null - }, - "alternate": null, - "trailingComments": [ - { - "type": "CommentLine", - "value": " lookFront();", - "start": 9897, - "end": 9912, + "object": { + "type": "Identifier", + "start": 8972, + "end": 8976, "loc": { "start": { - "line": 369, - "column": 8 + "line": 338, + "column": 46 }, "end": { - "line": 369, - "column": 23 - } - } - } - ] + "line": 338, + "column": 50 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 8977, + "end": 8980, + "loc": { + "start": { + "line": 338, + "column": 51 + }, + "end": { + "line": 338, + "column": 54 + }, + "identifierName": "top" + }, + "name": "top" + }, + "computed": false + } } - ], - "directives": [] + ] + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentLine", + "value": " log but seems ok", + "start": 8988, + "end": 9007, + "loc": { + "start": { + "line": 340, + "column": 4 + }, + "end": { + "line": 340, + "column": 23 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(\"ecx=\" + event.clientX + \" ecy=\" + event.clientY + \" sx=\" + sx + \" sy=\" + sy);", + "start": 9012, + "end": 9105, + "loc": { + "start": { + "line": 341, + "column": 4 + }, + "end": { + "line": 341, + "column": 97 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 9111, + "end": 9311, + "loc": { + "start": { + "line": 343, + "column": 4 + }, + "end": { + "line": 349, + "column": 12 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 9115, + "end": 9311, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 349, + "column": 12 + } }, - "alternate": { - "type": "IfStatement", - "start": 9924, - "end": 9980, + "id": { + "type": "Identifier", + "start": 9115, + "end": 9121, "loc": { "start": { - "line": 370, - "column": 11 + "line": 343, + "column": 8 }, "end": { - "line": 372, - "column": 5 + "line": 343, + "column": 14 + }, + "identifierName": "target" + }, + "name": "target", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 9124, + "end": 9311, + "loc": { + "start": { + "line": 343, + "column": 17 + }, + "end": { + "line": 349, + "column": 12 } }, - "test": { - "type": "BinaryExpression", - "start": 9928, - "end": 9950, + "callee": { + "type": "Identifier", + "start": 9124, + "end": 9137, "loc": { "start": { - "line": 370, - "column": 15 + "line": 343, + "column": 17 }, "end": { - "line": 370, - "column": 37 - } - }, - "left": { - "type": "MemberExpression", - "start": 9928, - "end": 9934, - "loc": { - "start": { - "line": 370, - "column": 15 - }, - "end": { - "line": 370, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 9928, - "end": 9929, - "loc": { - "start": { - "line": 370, - "column": 15 - }, - "end": { - "line": 370, - "column": 16 - }, - "identifierName": "e" - }, - "name": "e" - }, - "property": { - "type": "Identifier", - "start": 9930, - "end": 9934, - "loc": { - "start": { - "line": 370, - "column": 17 - }, - "end": { - "line": 370, - "column": 21 - }, - "identifierName": "type" - }, - "name": "type" + "line": 343, + "column": 30 }, - "computed": false + "identifierName": "transformRect" }, - "operator": "==", - "right": { - "type": "StringLiteral", - "start": 9938, - "end": 9950, + "name": "transformRect" + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 9138, + "end": 9244, "loc": { "start": { - "line": 370, - "column": 25 + "line": 343, + "column": 31 }, "end": { - "line": 370, - "column": 37 + "line": 346, + "column": 5 } }, - "extra": { - "rawValue": "mouseleave", - "raw": "\"mouseleave\"" - }, - "value": "mouseleave" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 9952, - "end": 9980, - "loc": { - "start": { - "line": 370, - "column": 39 - }, - "end": { - "line": 372, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9962, - "end": 9974, - "loc": { - "start": { - "line": 371, - "column": 8 - }, - "end": { - "line": 371, - "column": 20 - } - }, - "expression": { - "type": "CallExpression", - "start": 9962, - "end": 9973, + "properties": [ + { + "type": "ObjectProperty", + "start": 9164, + "end": 9193, "loc": { "start": { - "line": 371, + "line": 344, "column": 8 }, "end": { - "line": 371, - "column": 19 + "line": 344, + "column": 37 } }, - "callee": { + "method": false, + "shorthand": false, + "computed": false, + "key": { "type": "Identifier", - "start": 9962, - "end": 9971, + "start": 9164, + "end": 9165, "loc": { "start": { - "line": 371, + "line": 344, "column": 8 }, "end": { - "line": 371, - "column": 17 + "line": 344, + "column": 9 }, - "identifierName": "lookFront" + "identifierName": "x" }, - "name": "lookFront" + "name": "x", + "leadingComments": null }, - "arguments": [] + "value": { + "type": "BinaryExpression", + "start": 9167, + "end": 9193, + "loc": { + "start": { + "line": 344, + "column": 11 + }, + "end": { + "line": 344, + "column": 37 + } + }, + "left": { + "type": "MemberExpression", + "start": 9167, + "end": 9176, + "loc": { + "start": { + "line": 344, + "column": 11 + }, + "end": { + "line": 344, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 9167, + "end": 9171, + "loc": { + "start": { + "line": 344, + "column": 11 + }, + "end": { + "line": 344, + "column": 15 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 9172, + "end": 9176, + "loc": { + "start": { + "line": 344, + "column": 16 + }, + "end": { + "line": 344, + "column": 20 + }, + "identifierName": "left" + }, + "name": "left" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "BinaryExpression", + "start": 9179, + "end": 9193, + "loc": { + "start": { + "line": 344, + "column": 23 + }, + "end": { + "line": 344, + "column": 37 + } + }, + "left": { + "type": "MemberExpression", + "start": 9179, + "end": 9189, + "loc": { + "start": { + "line": 344, + "column": 23 + }, + "end": { + "line": 344, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 9179, + "end": 9183, + "loc": { + "start": { + "line": 344, + "column": 23 + }, + "end": { + "line": 344, + "column": 27 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 9184, + "end": 9189, + "loc": { + "start": { + "line": 344, + "column": 28 + }, + "end": { + "line": 344, + "column": 33 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + }, + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 9192, + "end": 9193, + "loc": { + "start": { + "line": 344, + "column": 36 + }, + "end": { + "line": 344, + "column": 37 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " seems ok here", + "start": 9139, + "end": 9155, + "loc": { + "start": { + "line": 343, + "column": 32 + }, + "end": { + "line": 343, + "column": 48 + } + } + } + ] + }, + { + "type": "ObjectProperty", + "start": 9203, + "end": 9238, + "loc": { + "start": { + "line": 345, + "column": 8 + }, + "end": { + "line": 345, + "column": 43 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9203, + "end": 9204, + "loc": { + "start": { + "line": 345, + "column": 8 + }, + "end": { + "line": 345, + "column": 9 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "BinaryExpression", + "start": 9206, + "end": 9238, + "loc": { + "start": { + "line": 345, + "column": 11 + }, + "end": { + "line": 345, + "column": 43 + } + }, + "left": { + "type": "MemberExpression", + "start": 9206, + "end": 9214, + "loc": { + "start": { + "line": 345, + "column": 11 + }, + "end": { + "line": 345, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 9206, + "end": 9210, + "loc": { + "start": { + "line": 345, + "column": 11 + }, + "end": { + "line": 345, + "column": 15 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 9211, + "end": 9214, + "loc": { + "start": { + "line": 345, + "column": 16 + }, + "end": { + "line": 345, + "column": 19 + }, + "identifierName": "top" + }, + "name": "top" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "BinaryExpression", + "start": 9217, + "end": 9238, + "loc": { + "start": { + "line": 345, + "column": 22 + }, + "end": { + "line": 345, + "column": 43 + } + }, + "left": { + "type": "MemberExpression", + "start": 9217, + "end": 9228, + "loc": { + "start": { + "line": 345, + "column": 22 + }, + "end": { + "line": 345, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 9217, + "end": 9221, + "loc": { + "start": { + "line": 345, + "column": 22 + }, + "end": { + "line": 345, + "column": 26 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 9222, + "end": 9228, + "loc": { + "start": { + "line": 345, + "column": 27 + }, + "end": { + "line": 345, + "column": 33 + }, + "identifierName": "height" + }, + "name": "height" + }, + "computed": false + }, + "operator": "*", + "right": { + "type": "Identifier", + "start": 9231, + "end": 9238, + "loc": { + "start": { + "line": 345, + "column": 36 + }, + "end": { + "line": 345, + "column": 43 + }, + "identifierName": "headPos" + }, + "name": "headPos" + } + } + } } - } - ], - "directives": [] - }, - "alternate": null - } + ] + }, + { + "type": "ObjectExpression", + "start": 9246, + "end": 9304, + "loc": { + "start": { + "line": 346, + "column": 7 + }, + "end": { + "line": 349, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 9256, + "end": 9272, + "loc": { + "start": { + "line": 347, + "column": 8 + }, + "end": { + "line": 347, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9256, + "end": 9257, + "loc": { + "start": { + "line": 347, + "column": 8 + }, + "end": { + "line": 347, + "column": 9 + }, + "identifierName": "x" + }, + "name": "x" + }, + "value": { + "type": "MemberExpression", + "start": 9259, + "end": 9272, + "loc": { + "start": { + "line": 347, + "column": 11 + }, + "end": { + "line": 347, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 9259, + "end": 9264, + "loc": { + "start": { + "line": 347, + "column": 11 + }, + "end": { + "line": 347, + "column": 16 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 9265, + "end": 9272, + "loc": { + "start": { + "line": 347, + "column": 17 + }, + "end": { + "line": 347, + "column": 24 + }, + "identifierName": "clientX" + }, + "name": "clientX" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 9282, + "end": 9298, + "loc": { + "start": { + "line": 348, + "column": 8 + }, + "end": { + "line": 348, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9282, + "end": 9283, + "loc": { + "start": { + "line": 348, + "column": 8 + }, + "end": { + "line": 348, + "column": 9 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "MemberExpression", + "start": 9285, + "end": 9298, + "loc": { + "start": { + "line": 348, + "column": 11 + }, + "end": { + "line": 348, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 9285, + "end": 9290, + "loc": { + "start": { + "line": 348, + "column": 11 + }, + "end": { + "line": 348, + "column": 16 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 9291, + "end": 9298, + "loc": { + "start": { + "line": 348, + "column": 17 + }, + "end": { + "line": 348, + "column": 24 + }, + "identifierName": "clientY" + }, + "name": "clientY" + }, + "computed": false + } + } + ] + }, + { + "type": "Identifier", + "start": 9306, + "end": 9310, + "loc": { + "start": { + "line": 349, + "column": 7 + }, + "end": { + "line": 349, + "column": 11 + }, + "identifierName": "rect" + }, + "name": "rect" + } + ] + }, + "leadingComments": null } - }, + ], + "kind": "let", "leadingComments": [ { "type": "CommentLine", - "value": "e.preventDefault();", - "start": 9653, - "end": 9674, + "value": " log but seems ok", + "start": 8988, + "end": 9007, "loc": { "start": { - "line": 362, + "line": 340, "column": 4 }, "end": { - "line": 362, - "column": 25 + "line": 340, + "column": 23 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(\"ecx=\" + event.clientX + \" ecy=\" + event.clientY + \" sx=\" + sx + \" sy=\" + sy);", + "start": 9012, + "end": 9105, + "loc": { + "start": { + "line": 341, + "column": 4 + }, + "end": { + "line": 341, + "column": 97 } } } ] - } - ], - "directives": [] - } - }, - { - "type": "FunctionDeclaration", - "start": 9984, - "end": 10294, - "loc": { - "start": { - "line": 375, - "column": 0 - }, - "end": { - "line": 386, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 9993, - "end": 10003, - "loc": { - "start": { - "line": 375, - "column": 9 }, - "end": { - "line": 375, - "column": 19 - }, - "identifierName": "touchEvent" - }, - "name": "touchEvent" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 10004, - "end": 10005, - "loc": { - "start": { - "line": 375, - "column": 20 - }, - "end": { - "line": 375, - "column": 21 - }, - "identifierName": "e" - }, - "name": "e" - } - ], - "body": { - "type": "BlockStatement", - "start": 10007, - "end": 10294, - "loc": { - "start": { - "line": 376, - "column": 0 - }, - "end": { - "line": 386, - "column": 1 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 10013, - "end": 10038, - "loc": { - "start": { - "line": 377, - "column": 4 - }, - "end": { - "line": 377, - "column": 29 - } + { + "type": "VariableDeclaration", + "start": 9316, + "end": 9362, + "loc": { + "start": { + "line": 350, + "column": 4 + }, + "end": { + "line": 350, + "column": 50 + } }, "declarations": [ { "type": "VariableDeclarator", - "start": 10017, - "end": 10037, + "start": 9320, + "end": 9361, "loc": { "start": { - "line": 377, + "line": 350, "column": 8 }, "end": { - "line": 377, - "column": 28 + "line": 350, + "column": 49 } }, "id": { "type": "Identifier", - "start": 10017, - "end": 10022, + "start": 9320, + "end": 9322, "loc": { "start": { - "line": 377, + "line": 350, "column": 8 }, "end": { - "line": 377, - "column": 13 + "line": 350, + "column": 10 }, - "identifierName": "touch" + "identifierName": "vx" }, - "name": "touch" + "name": "vx" }, "init": { - "type": "MemberExpression", - "start": 10025, - "end": 10037, + "type": "CallExpression", + "start": 9325, + "end": 9361, "loc": { "start": { - "line": 377, - "column": 16 + "line": 350, + "column": 13 }, "end": { - "line": 377, - "column": 28 + "line": 350, + "column": 49 } }, - "object": { - "type": "MemberExpression", - "start": 10025, - "end": 10034, + "callee": { + "type": "Identifier", + "start": 9325, + "end": 9339, "loc": { "start": { - "line": 377, - "column": 16 + "line": 350, + "column": 13 }, "end": { - "line": 377, - "column": 25 - } + "line": 350, + "column": 27 + }, + "identifierName": "transformViewX" }, - "object": { - "type": "Identifier", - "start": 10025, - "end": 10026, + "name": "transformViewX" + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 9340, + "end": 9360, "loc": { "start": { - "line": 377, - "column": 16 + "line": 350, + "column": 28 }, "end": { - "line": 377, - "column": 17 - }, - "identifierName": "e" + "line": 350, + "column": 48 + } }, - "name": "e" - }, - "property": { - "type": "Identifier", - "start": 10027, - "end": 10034, - "loc": { - "start": { - "line": 377, - "column": 18 + "left": { + "type": "MemberExpression", + "start": 9340, + "end": 9348, + "loc": { + "start": { + "line": 350, + "column": 28 + }, + "end": { + "line": 350, + "column": 36 + } }, - "end": { - "line": 377, - "column": 25 + "object": { + "type": "Identifier", + "start": 9340, + "end": 9346, + "loc": { + "start": { + "line": 350, + "column": 28 + }, + "end": { + "line": 350, + "column": 34 + }, + "identifierName": "target" + }, + "name": "target" }, - "identifierName": "touches" - }, - "name": "touches" - }, - "computed": false - }, - "property": { - "type": "NumericLiteral", - "start": 10035, - "end": 10036, - "loc": { - "start": { - "line": 377, - "column": 26 + "property": { + "type": "Identifier", + "start": 9347, + "end": 9348, + "loc": { + "start": { + "line": 350, + "column": 35 + }, + "end": { + "line": 350, + "column": 36 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false }, - "end": { - "line": 377, - "column": 27 + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 9351, + "end": 9360, + "loc": { + "start": { + "line": 350, + "column": 39 + }, + "end": { + "line": 350, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 9351, + "end": 9355, + "loc": { + "start": { + "line": 350, + "column": 39 + }, + "end": { + "line": 350, + "column": 43 + }, + "identifierName": "rect" + }, + "name": "rect" + }, + "property": { + "type": "Identifier", + "start": 9356, + "end": 9360, + "loc": { + "start": { + "line": 350, + "column": 44 + }, + "end": { + "line": 350, + "column": 48 + }, + "identifierName": "left" + }, + "name": "left" + }, + "computed": false } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true + } + ] } } ], - "kind": "var" + "kind": "let" }, { - "type": "IfStatement", - "start": 10043, - "end": 10292, + "type": "VariableDeclaration", + "start": 9367, + "end": 9412, "loc": { "start": { - "line": 378, + "line": 351, "column": 4 }, "end": { - "line": 385, - "column": 5 + "line": 351, + "column": 49 } }, - "test": { - "type": "BinaryExpression", - "start": 10047, - "end": 10069, - "loc": { - "start": { - "line": 378, - "column": 8 - }, - "end": { - "line": 378, - "column": 30 - } - }, - "left": { - "type": "MemberExpression", - "start": 10047, - "end": 10053, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 9371, + "end": 9411, "loc": { "start": { - "line": 378, + "line": 351, "column": 8 }, "end": { - "line": 378, - "column": 14 + "line": 351, + "column": 48 } }, - "object": { + "id": { "type": "Identifier", - "start": 10047, - "end": 10048, + "start": 9371, + "end": 9373, "loc": { "start": { - "line": 378, + "line": 351, "column": 8 }, "end": { - "line": 378, - "column": 9 - }, - "identifierName": "e" - }, - "name": "e" - }, - "property": { - "type": "Identifier", - "start": 10049, - "end": 10053, - "loc": { - "start": { - "line": 378, + "line": 351, "column": 10 }, - "end": { - "line": 378, - "column": 14 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "operator": "==", - "right": { - "type": "StringLiteral", - "start": 10057, - "end": 10069, - "loc": { - "start": { - "line": 378, - "column": 18 + "identifierName": "vy" }, - "end": { - "line": 378, - "column": 30 - } - }, - "extra": { - "rawValue": "touchstart", - "raw": "\"touchstart\"" - }, - "value": "touchstart" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 10071, - "end": 10162, - "loc": { - "start": { - "line": 378, - "column": 32 + "name": "vy" }, - "end": { - "line": 381, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 10081, - "end": 10129, + "init": { + "type": "CallExpression", + "start": 9376, + "end": 9411, "loc": { "start": { - "line": 379, - "column": 8 + "line": 351, + "column": 13 }, "end": { - "line": 379, - "column": 56 + "line": 351, + "column": 48 } }, - "test": { - "type": "BinaryExpression", - "start": 10085, - "end": 10106, + "callee": { + "type": "Identifier", + "start": 9376, + "end": 9390, "loc": { "start": { - "line": 379, - "column": 12 + "line": 351, + "column": 13 }, "end": { - "line": 379, - "column": 33 - } + "line": 351, + "column": 27 + }, + "identifierName": "transformViewY" }, - "left": { - "type": "MemberExpression", - "start": 10085, - "end": 10101, + "name": "transformViewY" + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 9391, + "end": 9410, "loc": { "start": { - "line": 379, - "column": 12 + "line": 351, + "column": 28 }, "end": { - "line": 379, - "column": 28 + "line": 351, + "column": 47 } }, - "object": { + "left": { "type": "MemberExpression", - "start": 10085, - "end": 10094, + "start": 9391, + "end": 9399, "loc": { "start": { - "line": 379, - "column": 12 + "line": 351, + "column": 28 }, "end": { - "line": 379, - "column": 21 + "line": 351, + "column": 36 } }, "object": { "type": "Identifier", - "start": 10085, - "end": 10086, + "start": 9391, + "end": 9397, "loc": { "start": { - "line": 379, - "column": 12 + "line": 351, + "column": 28 }, "end": { - "line": 379, - "column": 13 + "line": 351, + "column": 34 }, - "identifierName": "e" + "identifierName": "target" }, - "name": "e" + "name": "target" }, "property": { "type": "Identifier", - "start": 10087, - "end": 10094, + "start": 9398, + "end": 9399, "loc": { "start": { - "line": 379, - "column": 14 + "line": 351, + "column": 35 }, "end": { - "line": 379, - "column": 21 + "line": 351, + "column": 36 }, - "identifierName": "touches" + "identifierName": "y" }, - "name": "touches" + "name": "y" }, "computed": false }, - "property": { - "type": "Identifier", - "start": 10095, - "end": 10101, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 9402, + "end": 9410, "loc": { "start": { - "line": 379, - "column": 22 + "line": 351, + "column": 39 }, "end": { - "line": 379, - "column": 28 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": "==", - "right": { - "type": "NumericLiteral", - "start": 10105, - "end": 10106, - "loc": { - "start": { - "line": 379, - "column": 32 - }, - "end": { - "line": 379, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10108, - "end": 10129, - "loc": { - "start": { - "line": 379, - "column": 35 - }, - "end": { - "line": 379, - "column": 56 - } - }, - "expression": { - "type": "CallExpression", - "start": 10108, - "end": 10128, - "loc": { - "start": { - "line": 379, - "column": 35 + "line": 351, + "column": 47 + } }, - "end": { - "line": 379, - "column": 55 - } - }, - "callee": { - "type": "Identifier", - "start": 10108, - "end": 10121, - "loc": { - "start": { - "line": 379, - "column": 35 - }, - "end": { - "line": 379, - "column": 48 + "object": { + "type": "Identifier", + "start": 9402, + "end": 9406, + "loc": { + "start": { + "line": 351, + "column": 39 + }, + "end": { + "line": 351, + "column": 43 + }, + "identifierName": "rect" }, - "identifierName": "modelTapEvent" + "name": "rect" }, - "name": "modelTapEvent" - }, - "arguments": [ - { + "property": { "type": "Identifier", - "start": 10122, - "end": 10127, + "start": 9407, + "end": 9410, "loc": { "start": { - "line": 379, - "column": 49 + "line": 351, + "column": 44 }, "end": { - "line": 379, - "column": 54 + "line": 351, + "column": 47 }, - "identifierName": "touch" + "identifierName": "top" }, - "name": "touch" - } - ] - }, - "trailingComments": null - }, - "alternate": null, - "trailingComments": [ - { - "type": "CommentLine", - "value": " onClick(touch);", - "start": 10138, - "end": 10156, - "loc": { - "start": { - "line": 380, - "column": 8 + "name": "top" }, - "end": { - "line": 380, - "column": 26 - } + "computed": false } } ] } - ], - "directives": [] + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 9418, + "end": 9587, + "loc": { + "start": { + "line": 353, + "column": 4 + }, + "end": { + "line": 354, + "column": 140 + } }, - "alternate": { - "type": "IfStatement", - "start": 10168, - "end": 10292, + "test": { + "type": "MemberExpression", + "start": 9422, + "end": 9445, "loc": { "start": { - "line": 381, - "column": 11 + "line": 353, + "column": 8 }, "end": { - "line": 385, - "column": 5 + "line": 353, + "column": 31 } }, - "test": { - "type": "BinaryExpression", - "start": 10172, - "end": 10193, + "object": { + "type": "Identifier", + "start": 9422, + "end": 9429, "loc": { "start": { - "line": 381, + "line": 353, + "column": 8 + }, + "end": { + "line": 353, "column": 15 }, + "identifierName": "cDefine" + }, + "name": "cDefine" + }, + "property": { + "type": "Identifier", + "start": 9430, + "end": 9445, + "loc": { + "start": { + "line": 353, + "column": 16 + }, "end": { - "line": 381, - "column": 36 + "line": 353, + "column": 31 + }, + "identifierName": "DEBUG_MOUSE_LOG" + }, + "name": "DEBUG_MOUSE_LOG" + }, + "computed": false + }, + "consequent": { + "type": "ExpressionStatement", + "start": 9455, + "end": 9587, + "loc": { + "start": { + "line": 354, + "column": 8 + }, + "end": { + "line": 354, + "column": 140 + } + }, + "expression": { + "type": "CallExpression", + "start": 9455, + "end": 9586, + "loc": { + "start": { + "line": 354, + "column": 8 + }, + "end": { + "line": 354, + "column": 139 } }, - "left": { + "callee": { "type": "MemberExpression", - "start": 10172, - "end": 10178, + "start": 9455, + "end": 9466, "loc": { "start": { - "line": 381, - "column": 15 + "line": 354, + "column": 8 }, "end": { - "line": 381, - "column": 21 + "line": 354, + "column": 19 } }, "object": { "type": "Identifier", - "start": 10172, - "end": 10173, + "start": 9455, + "end": 9462, "loc": { "start": { - "line": 381, - "column": 15 + "line": 354, + "column": 8 }, "end": { - "line": 381, - "column": 16 + "line": 354, + "column": 15 }, - "identifierName": "e" + "identifierName": "console" }, - "name": "e" + "name": "console" }, "property": { "type": "Identifier", - "start": 10174, - "end": 10178, + "start": 9463, + "end": 9466, "loc": { "start": { - "line": 381, - "column": 17 + "line": 354, + "column": 16 }, "end": { - "line": 381, - "column": 21 + "line": 354, + "column": 19 }, - "identifierName": "type" + "identifierName": "log" }, - "name": "type" + "name": "log" }, "computed": false }, - "operator": "==", - "right": { - "type": "StringLiteral", - "start": 10182, - "end": 10193, - "loc": { - "start": { - "line": 381, - "column": 25 - }, - "end": { - "line": 381, - "column": 36 - } - }, - "extra": { - "rawValue": "touchmove", - "raw": "\"touchmove\"" - }, - "value": "touchmove" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 10195, - "end": 10232, - "loc": { - "start": { - "line": 381, - "column": 38 - }, - "end": { - "line": 383, - "column": 5 - } - }, - "body": [ + "arguments": [ { - "type": "ExpressionStatement", - "start": 10205, - "end": 10226, + "type": "BinaryExpression", + "start": 9467, + "end": 9585, "loc": { "start": { - "line": 382, - "column": 8 + "line": 354, + "column": 20 }, "end": { - "line": 382, - "column": 29 + "line": 354, + "column": 138 } }, - "expression": { - "type": "CallExpression", - "start": 10205, - "end": 10225, + "left": { + "type": "BinaryExpression", + "start": 9467, + "end": 9579, "loc": { "start": { - "line": 382, - "column": 8 + "line": 354, + "column": 20 }, "end": { - "line": 382, - "column": 28 + "line": 354, + "column": 132 } }, - "callee": { - "type": "Identifier", - "start": 10205, - "end": 10218, + "left": { + "type": "BinaryExpression", + "start": 9467, + "end": 9574, "loc": { "start": { - "line": 382, - "column": 8 + "line": 354, + "column": 20 }, "end": { - "line": 382, - "column": 21 - }, - "identifierName": "followPointer" + "line": 354, + "column": 127 + } }, - "name": "followPointer" - }, - "arguments": [ - { - "type": "Identifier", - "start": 10219, - "end": 10224, + "left": { + "type": "BinaryExpression", + "start": 9467, + "end": 9566, "loc": { "start": { - "line": 382, - "column": 22 + "line": 354, + "column": 20 }, "end": { - "line": 382, - "column": 27 + "line": 354, + "column": 119 + } + }, + "left": { + "type": "BinaryExpression", + "start": 9467, + "end": 9561, + "loc": { + "start": { + "line": 354, + "column": 20 + }, + "end": { + "line": 354, + "column": 114 + } }, - "identifierName": "touch" + "left": { + "type": "BinaryExpression", + "start": 9467, + "end": 9545, + "loc": { + "start": { + "line": 354, + "column": 20 + }, + "end": { + "line": 354, + "column": 98 + } + }, + "left": { + "type": "BinaryExpression", + "start": 9467, + "end": 9529, + "loc": { + "start": { + "line": 354, + "column": 20 + }, + "end": { + "line": 354, + "column": 82 + } + }, + "left": { + "type": "BinaryExpression", + "start": 9467, + "end": 9521, + "loc": { + "start": { + "line": 354, + "column": 20 + }, + "end": { + "line": 354, + "column": 74 + } + }, + "left": { + "type": "StringLiteral", + "start": 9467, + "end": 9505, + "loc": { + "start": { + "line": 354, + "column": 20 + }, + "end": { + "line": 354, + "column": 58 + } + }, + "extra": { + "rawValue": "followPointer onMouseMove device( x:", + "raw": "\"followPointer onMouseMove device( x:\"" + }, + "value": "followPointer onMouseMove device( x:" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 9508, + "end": 9521, + "loc": { + "start": { + "line": 354, + "column": 61 + }, + "end": { + "line": 354, + "column": 74 + } + }, + "object": { + "type": "Identifier", + "start": 9508, + "end": 9513, + "loc": { + "start": { + "line": 354, + "column": 61 + }, + "end": { + "line": 354, + "column": 66 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 9514, + "end": 9521, + "loc": { + "start": { + "line": 354, + "column": 67 + }, + "end": { + "line": 354, + "column": 74 + }, + "identifierName": "clientX" + }, + "name": "clientX" + }, + "computed": false + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 9524, + "end": 9529, + "loc": { + "start": { + "line": 354, + "column": 77 + }, + "end": { + "line": 354, + "column": 82 + } + }, + "extra": { + "rawValue": " y:", + "raw": "\" y:\"" + }, + "value": " y:" + } + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 9532, + "end": 9545, + "loc": { + "start": { + "line": 354, + "column": 85 + }, + "end": { + "line": 354, + "column": 98 + } + }, + "object": { + "type": "Identifier", + "start": 9532, + "end": 9537, + "loc": { + "start": { + "line": 354, + "column": 85 + }, + "end": { + "line": 354, + "column": 90 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 9538, + "end": 9545, + "loc": { + "start": { + "line": 354, + "column": 91 + }, + "end": { + "line": 354, + "column": 98 + }, + "identifierName": "clientY" + }, + "name": "clientY" + }, + "computed": false + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 9548, + "end": 9561, + "loc": { + "start": { + "line": 354, + "column": 101 + }, + "end": { + "line": 354, + "column": 114 + } + }, + "extra": { + "rawValue": " ) view( x:", + "raw": "\" ) view( x:\"" + }, + "value": " ) view( x:" + } }, - "name": "touch" + "operator": "+", + "right": { + "type": "Identifier", + "start": 9564, + "end": 9566, + "loc": { + "start": { + "line": 354, + "column": 117 + }, + "end": { + "line": 354, + "column": 119 + }, + "identifierName": "vx" + }, + "name": "vx" + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 9569, + "end": 9574, + "loc": { + "start": { + "line": 354, + "column": 122 + }, + "end": { + "line": 354, + "column": 127 + } + }, + "extra": { + "rawValue": " y:", + "raw": "\" y:\"" + }, + "value": " y:" } - ] + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 9577, + "end": 9579, + "loc": { + "start": { + "line": 354, + "column": 130 + }, + "end": { + "line": 354, + "column": 132 + }, + "identifierName": "vy" + }, + "name": "vy" + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 9582, + "end": 9585, + "loc": { + "start": { + "line": 354, + "column": 135 + }, + "end": { + "line": 354, + "column": 138 + } + }, + "extra": { + "rawValue": ")", + "raw": "\")\"" + }, + "value": ")" } } - ], - "directives": [] + ] + } + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 9593, + "end": 9698, + "loc": { + "start": { + "line": 356, + "column": 4 }, - "alternate": { - "type": "IfStatement", - "start": 10238, - "end": 10292, - "loc": { - "start": { - "line": 383, - "column": 11 - }, - "end": { - "line": 385, - "column": 5 - } + "end": { + "line": 361, + "column": 5 + } + }, + "test": { + "type": "Identifier", + "start": 9597, + "end": 9601, + "loc": { + "start": { + "line": 356, + "column": 8 }, - "test": { - "type": "BinaryExpression", - "start": 10242, - "end": 10262, + "end": { + "line": 356, + "column": 12 + }, + "identifierName": "drag" + }, + "name": "drag" + }, + "consequent": { + "type": "BlockStatement", + "start": 9607, + "end": 9698, + "loc": { + "start": { + "line": 357, + "column": 4 + }, + "end": { + "line": 361, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9617, + "end": 9633, "loc": { "start": { - "line": 383, - "column": 15 + "line": 358, + "column": 8 }, "end": { - "line": 383, - "column": 35 + "line": 358, + "column": 24 } }, - "left": { - "type": "MemberExpression", - "start": 10242, - "end": 10248, + "expression": { + "type": "AssignmentExpression", + "start": 9617, + "end": 9632, "loc": { "start": { - "line": 383, - "column": 15 + "line": 358, + "column": 8 }, "end": { - "line": 383, - "column": 21 + "line": 358, + "column": 23 } }, - "object": { + "operator": "=", + "left": { "type": "Identifier", - "start": 10242, - "end": 10243, + "start": 9617, + "end": 9627, "loc": { "start": { - "line": 383, - "column": 15 + "line": 358, + "column": 8 }, "end": { - "line": 383, - "column": 16 + "line": 358, + "column": 18 }, - "identifierName": "e" + "identifierName": "lastMouseX" }, - "name": "e" + "name": "lastMouseX" }, - "property": { + "right": { "type": "Identifier", - "start": 10244, - "end": 10248, + "start": 9630, + "end": 9632, "loc": { "start": { - "line": 383, - "column": 17 + "line": 358, + "column": 21 }, "end": { - "line": 383, - "column": 21 + "line": 358, + "column": 23 }, - "identifierName": "type" + "identifierName": "sx" }, - "name": "type" + "name": "sx" + } + } + }, + { + "type": "ExpressionStatement", + "start": 9642, + "end": 9658, + "loc": { + "start": { + "line": 359, + "column": 8 }, - "computed": false + "end": { + "line": 359, + "column": 24 + } }, - "operator": "==", - "right": { - "type": "StringLiteral", - "start": 10252, - "end": 10262, + "expression": { + "type": "AssignmentExpression", + "start": 9642, + "end": 9657, "loc": { "start": { - "line": 383, - "column": 25 + "line": 359, + "column": 8 }, "end": { - "line": 383, - "column": 35 + "line": 359, + "column": 23 } }, - "extra": { - "rawValue": "touchend", - "raw": "\"touchend\"" + "operator": "=", + "left": { + "type": "Identifier", + "start": 9642, + "end": 9652, + "loc": { + "start": { + "line": 359, + "column": 8 + }, + "end": { + "line": 359, + "column": 18 + }, + "identifierName": "lastMouseY" + }, + "name": "lastMouseY" }, - "value": "touchend" + "right": { + "type": "Identifier", + "start": 9655, + "end": 9657, + "loc": { + "start": { + "line": 359, + "column": 21 + }, + "end": { + "line": 359, + "column": 23 + }, + "identifierName": "sy" + }, + "name": "sy" + } } }, - "consequent": { - "type": "BlockStatement", - "start": 10264, - "end": 10292, + { + "type": "ExpressionStatement", + "start": 9667, + "end": 9692, "loc": { "start": { - "line": 383, - "column": 37 + "line": 360, + "column": 8 }, "end": { - "line": 385, - "column": 5 + "line": 360, + "column": 33 } }, - "body": [ - { - "type": "ExpressionStatement", - "start": 10274, - "end": 10286, + "expression": { + "type": "CallExpression", + "start": 9667, + "end": 9691, + "loc": { + "start": { + "line": 360, + "column": 8 + }, + "end": { + "line": 360, + "column": 32 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9667, + "end": 9683, "loc": { "start": { - "line": 384, + "line": 360, "column": 8 }, "end": { - "line": 384, - "column": 20 + "line": 360, + "column": 24 } }, - "expression": { - "type": "CallExpression", - "start": 10274, - "end": 10285, + "object": { + "type": "Identifier", + "start": 9667, + "end": 9674, "loc": { "start": { - "line": 384, + "line": 360, "column": 8 }, "end": { - "line": 384, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 10274, - "end": 10283, - "loc": { - "start": { - "line": 384, - "column": 8 - }, - "end": { - "line": 384, - "column": 17 - }, - "identifierName": "lookFront" + "line": 360, + "column": 15 }, - "name": "lookFront" + "identifierName": "dragMgr" }, - "arguments": [] - } - } - ], - "directives": [] - }, - "alternate": null - } - } - } + "name": "dragMgr" + }, + "property": { + "type": "Identifier", + "start": 9675, + "end": 9683, + "loc": { + "start": { + "line": 360, + "column": 16 + }, + "end": { + "line": 360, + "column": 24 + }, + "identifierName": "setPoint" + }, + "name": "setPoint" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 9684, + "end": 9686, + "loc": { + "start": { + "line": 360, + "column": 25 + }, + "end": { + "line": 360, + "column": 27 + }, + "identifierName": "vx" + }, + "name": "vx" + }, + { + "type": "Identifier", + "start": 9688, + "end": 9690, + "loc": { + "start": { + "line": 360, + "column": 29 + }, + "end": { + "line": 360, + "column": 31 + }, + "identifierName": "vy" + }, + "name": "vy" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } ], "directives": [] } }, { "type": "FunctionDeclaration", - "start": 10296, - "end": 10435, + "start": 9702, + "end": 9798, "loc": { "start": { - "line": 388, + "line": 364, "column": 0 }, "end": { - "line": 392, + "line": 370, "column": 1 } }, "id": { "type": "Identifier", - "start": 10305, - "end": 10319, + "start": 9711, + "end": 9720, "loc": { "start": { - "line": 388, + "line": 364, "column": 9 }, "end": { - "line": 388, - "column": 23 + "line": 364, + "column": 18 }, - "identifierName": "transformViewX" + "identifierName": "lookFront" }, - "name": "transformViewX" + "name": "lookFront" }, "generator": false, "expression": false, "async": false, - "params": [ - { - "type": "Identifier", - "start": 10320, - "end": 10327, - "loc": { - "start": { - "line": 388, - "column": 24 - }, - "end": { - "line": 388, - "column": 31 - }, - "identifierName": "deviceX" - }, - "name": "deviceX" - } - ], + "params": [], "body": { "type": "BlockStatement", - "start": 10329, - "end": 10435, + "start": 9723, + "end": 9798, "loc": { "start": { - "line": 389, + "line": 365, "column": 0 }, "end": { - "line": 392, + "line": 370, "column": 1 } }, "body": [ { - "type": "VariableDeclaration", - "start": 10335, - "end": 10384, + "type": "IfStatement", + "start": 9729, + "end": 9768, "loc": { "start": { - "line": 390, + "line": 366, "column": 4 }, "end": { - "line": 390, - "column": 53 + "line": 368, + "column": 5 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10339, - "end": 10383, - "loc": { - "start": { - "line": 390, - "column": 8 - }, - "end": { - "line": 390, - "column": 52 - } + "test": { + "type": "Identifier", + "start": 9733, + "end": 9737, + "loc": { + "start": { + "line": 366, + "column": 8 }, - "id": { - "type": "Identifier", - "start": 10339, - "end": 10346, - "loc": { - "start": { - "line": 390, - "column": 8 - }, - "end": { - "line": 390, - "column": 15 - }, - "identifierName": "screenX" - }, - "name": "screenX" + "end": { + "line": 366, + "column": 12 }, - "init": { - "type": "CallExpression", - "start": 10349, - "end": 10383, + "identifierName": "drag" + }, + "name": "drag" + }, + "consequent": { + "type": "BlockStatement", + "start": 9739, + "end": 9768, + "loc": { + "start": { + "line": 366, + "column": 14 + }, + "end": { + "line": 368, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9749, + "end": 9762, "loc": { "start": { - "line": 390, - "column": 18 + "line": 367, + "column": 8 }, "end": { - "line": 390, - "column": 52 + "line": 367, + "column": 21 } }, - "callee": { - "type": "MemberExpression", - "start": 10349, - "end": 10374, + "expression": { + "type": "AssignmentExpression", + "start": 9749, + "end": 9761, "loc": { "start": { - "line": 390, - "column": 18 + "line": 367, + "column": 8 }, "end": { - "line": 390, - "column": 43 + "line": 367, + "column": 20 } }, - "object": { - "type": "Identifier", - "start": 10349, - "end": 10363, - "loc": { - "start": { - "line": 390, - "column": 18 - }, - "end": { - "line": 390, - "column": 32 - }, - "identifierName": "deviceToScreen" - }, - "name": "deviceToScreen" - }, - "property": { + "operator": "=", + "left": { "type": "Identifier", - "start": 10364, - "end": 10374, + "start": 9749, + "end": 9753, "loc": { "start": { - "line": 390, - "column": 33 + "line": 367, + "column": 8 }, "end": { - "line": 390, - "column": 43 + "line": 367, + "column": 12 }, - "identifierName": "transformX" + "identifierName": "drag" }, - "name": "transformX" + "name": "drag" }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10375, - "end": 10382, + "right": { + "type": "BooleanLiteral", + "start": 9756, + "end": 9761, "loc": { "start": { - "line": 390, - "column": 44 + "line": 367, + "column": 15 }, "end": { - "line": 390, - "column": 51 - }, - "identifierName": "deviceX" + "line": 367, + "column": 20 + } }, - "name": "deviceX" + "value": false } - ] + } } - } - ], - "kind": "var" + ], + "directives": [] + }, + "alternate": null }, { - "type": "ReturnStatement", - "start": 10389, - "end": 10433, + "type": "ExpressionStatement", + "start": 9773, + "end": 9796, "loc": { "start": { - "line": 391, + "line": 369, "column": 4 }, "end": { - "line": 391, - "column": 48 + "line": 369, + "column": 27 } }, - "argument": { + "expression": { "type": "CallExpression", - "start": 10396, - "end": 10432, + "start": 9773, + "end": 9795, "loc": { "start": { - "line": 391, - "column": 11 + "line": 369, + "column": 4 }, "end": { - "line": 391, - "column": 47 + "line": 369, + "column": 26 } }, "callee": { "type": "MemberExpression", - "start": 10396, - "end": 10423, + "start": 9773, + "end": 9789, "loc": { "start": { - "line": 391, - "column": 11 + "line": 369, + "column": 4 }, "end": { - "line": 391, - "column": 38 + "line": 369, + "column": 20 } }, "object": { "type": "Identifier", - "start": 10396, - "end": 10406, + "start": 9773, + "end": 9780, "loc": { "start": { - "line": 391, - "column": 11 + "line": 369, + "column": 4 }, "end": { - "line": 391, - "column": 21 + "line": 369, + "column": 11 }, - "identifierName": "viewMatrix" + "identifierName": "dragMgr" }, - "name": "viewMatrix" + "name": "dragMgr" }, "property": { "type": "Identifier", - "start": 10407, - "end": 10423, + "start": 9781, + "end": 9789, "loc": { "start": { - "line": 391, - "column": 22 + "line": 369, + "column": 12 }, "end": { - "line": 391, - "column": 38 + "line": 369, + "column": 20 }, - "identifierName": "invertTransformX" + "identifierName": "setPoint" }, - "name": "invertTransformX" + "name": "setPoint" }, "computed": false }, "arguments": [ { - "type": "Identifier", - "start": 10424, - "end": 10431, + "type": "NumericLiteral", + "start": 9790, + "end": 9791, "loc": { "start": { - "line": 391, - "column": 39 + "line": 369, + "column": 21 }, "end": { - "line": 391, - "column": 46 + "line": 369, + "column": 22 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "NumericLiteral", + "start": 9793, + "end": 9794, + "loc": { + "start": { + "line": 369, + "column": 24 }, - "identifierName": "screenX" + "end": { + "line": 369, + "column": 25 + } }, - "name": "screenX" + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 } ] } @@ -27024,34 +25997,34 @@ }, { "type": "FunctionDeclaration", - "start": 10438, - "end": 10577, + "start": 9800, + "end": 10158, "loc": { "start": { - "line": 395, + "line": 372, "column": 0 }, "end": { - "line": 399, + "line": 385, "column": 1 } }, "id": { "type": "Identifier", - "start": 10447, - "end": 10461, + "start": 9809, + "end": 9819, "loc": { "start": { - "line": 395, + "line": 372, "column": 9 }, "end": { - "line": 395, - "column": 23 + "line": 372, + "column": 19 }, - "identifierName": "transformViewY" + "identifierName": "mouseEvent" }, - "name": "transformViewY" + "name": "mouseEvent" }, "generator": false, "expression": false, @@ -27059,4179 +26032,8436 @@ "params": [ { "type": "Identifier", - "start": 10462, - "end": 10469, + "start": 9820, + "end": 9821, "loc": { "start": { - "line": 395, - "column": 24 + "line": 372, + "column": 20 }, "end": { - "line": 395, - "column": 31 + "line": 372, + "column": 21 }, - "identifierName": "deviceY" + "identifierName": "e" }, - "name": "deviceY" + "name": "e" } ], "body": { "type": "BlockStatement", - "start": 10471, - "end": 10577, + "start": 9823, + "end": 10158, "loc": { "start": { - "line": 396, + "line": 373, "column": 0 }, "end": { - "line": 399, + "line": 385, "column": 1 } }, "body": [ { - "type": "VariableDeclaration", - "start": 10477, - "end": 10526, + "type": "IfStatement", + "start": 9855, + "end": 10156, "loc": { "start": { - "line": 397, + "line": 375, "column": 4 }, "end": { - "line": 397, - "column": 53 + "line": 384, + "column": 5 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10481, - "end": 10525, + "test": { + "type": "BinaryExpression", + "start": 9859, + "end": 9880, + "loc": { + "start": { + "line": 375, + "column": 8 + }, + "end": { + "line": 375, + "column": 29 + } + }, + "left": { + "type": "MemberExpression", + "start": 9859, + "end": 9865, "loc": { "start": { - "line": 397, + "line": 375, "column": 8 }, "end": { - "line": 397, - "column": 52 + "line": 375, + "column": 14 } }, - "id": { + "object": { "type": "Identifier", - "start": 10481, - "end": 10488, + "start": 9859, + "end": 9860, "loc": { "start": { - "line": 397, + "line": 375, "column": 8 }, "end": { - "line": 397, - "column": 15 + "line": 375, + "column": 9 }, - "identifierName": "screenY" + "identifierName": "e" }, - "name": "screenY" + "name": "e", + "leadingComments": null }, - "init": { - "type": "CallExpression", - "start": 10491, - "end": 10525, + "property": { + "type": "Identifier", + "start": 9861, + "end": 9865, "loc": { "start": { - "line": 397, - "column": 18 + "line": 375, + "column": 10 }, "end": { - "line": 397, - "column": 52 + "line": 375, + "column": 14 + }, + "identifierName": "type" + }, + "name": "type" + }, + "computed": false, + "leadingComments": null + }, + "operator": "==", + "right": { + "type": "StringLiteral", + "start": 9869, + "end": 9880, + "loc": { + "start": { + "line": 375, + "column": 18 + }, + "end": { + "line": 375, + "column": 29 + } + }, + "extra": { + "rawValue": "mousedown", + "raw": "\"mousedown\"" + }, + "value": "mousedown" + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 9882, + "end": 9915, + "loc": { + "start": { + "line": 375, + "column": 31 + }, + "end": { + "line": 377, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9892, + "end": 9909, + "loc": { + "start": { + "line": 376, + "column": 8 + }, + "end": { + "line": 376, + "column": 25 } }, - "callee": { - "type": "MemberExpression", - "start": 10491, - "end": 10516, + "expression": { + "type": "CallExpression", + "start": 9892, + "end": 9908, "loc": { "start": { - "line": 397, - "column": 18 + "line": 376, + "column": 8 }, "end": { - "line": 397, - "column": 43 + "line": 376, + "column": 24 } }, - "object": { - "type": "Identifier", - "start": 10491, - "end": 10505, - "loc": { - "start": { - "line": 397, - "column": 18 - }, - "end": { - "line": 397, - "column": 32 - }, - "identifierName": "deviceToScreen" - }, - "name": "deviceToScreen" - }, - "property": { + "callee": { "type": "Identifier", - "start": 10506, - "end": 10516, + "start": 9892, + "end": 9905, "loc": { "start": { - "line": 397, - "column": 33 + "line": 376, + "column": 8 }, "end": { - "line": 397, - "column": 43 + "line": 376, + "column": 21 }, - "identifierName": "transformY" + "identifierName": "modelTapEvent" }, - "name": "transformY" + "name": "modelTapEvent" }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10517, - "end": 10524, - "loc": { - "start": { - "line": 397, - "column": 44 - }, - "end": { - "line": 397, - "column": 51 + "arguments": [ + { + "type": "Identifier", + "start": 9906, + "end": 9907, + "loc": { + "start": { + "line": 376, + "column": 22 + }, + "end": { + "line": 376, + "column": 23 + }, + "identifierName": "e" }, - "identifierName": "deviceY" - }, - "name": "deviceY" - } - ] + "name": "e" + } + ] + } } - } - ], - "kind": "var" - }, - { - "type": "ReturnStatement", - "start": 10531, - "end": 10575, - "loc": { - "start": { - "line": 398, - "column": 4 - }, - "end": { - "line": 398, - "column": 48 - } + ], + "directives": [] }, - "argument": { - "type": "CallExpression", - "start": 10538, - "end": 10574, + "alternate": { + "type": "IfStatement", + "start": 9921, + "end": 10156, "loc": { "start": { - "line": 398, + "line": 377, "column": 11 }, "end": { - "line": 398, - "column": 47 + "line": 384, + "column": 5 } }, - "callee": { - "type": "MemberExpression", - "start": 10538, - "end": 10565, + "test": { + "type": "BinaryExpression", + "start": 9925, + "end": 9946, "loc": { "start": { - "line": 398, - "column": 11 + "line": 377, + "column": 15 }, "end": { - "line": 398, - "column": 38 + "line": 377, + "column": 36 } }, - "object": { - "type": "Identifier", - "start": 10538, - "end": 10548, + "left": { + "type": "MemberExpression", + "start": 9925, + "end": 9931, "loc": { "start": { - "line": 398, - "column": 11 + "line": 377, + "column": 15 }, "end": { - "line": 398, + "line": 377, "column": 21 - }, - "identifierName": "viewMatrix" + } }, - "name": "viewMatrix" - }, - "property": { - "type": "Identifier", - "start": 10549, - "end": 10565, - "loc": { - "start": { - "line": 398, - "column": 22 - }, - "end": { - "line": 398, - "column": 38 + "object": { + "type": "Identifier", + "start": 9925, + "end": 9926, + "loc": { + "start": { + "line": 377, + "column": 15 + }, + "end": { + "line": 377, + "column": 16 + }, + "identifierName": "e" }, - "identifierName": "invertTransformY" + "name": "e" }, - "name": "invertTransformY" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10566, - "end": 10573, - "loc": { - "start": { - "line": 398, - "column": 39 - }, - "end": { - "line": 398, - "column": 46 + "property": { + "type": "Identifier", + "start": 9927, + "end": 9931, + "loc": { + "start": { + "line": 377, + "column": 17 + }, + "end": { + "line": 377, + "column": 21 + }, + "identifierName": "type" }, - "identifierName": "screenY" - }, - "name": "screenY" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "FunctionDeclaration", - "start": 10580, - "end": 10665, - "loc": { - "start": { - "line": 402, - "column": 0 - }, - "end": { - "line": 405, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 10589, - "end": 10605, - "loc": { - "start": { - "line": 402, - "column": 9 - }, - "end": { - "line": 402, - "column": 25 - }, - "identifierName": "transformScreenX" - }, - "name": "transformScreenX" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 10606, - "end": 10613, - "loc": { - "start": { - "line": 402, - "column": 26 - }, - "end": { - "line": 402, - "column": 33 - }, - "identifierName": "deviceX" - }, - "name": "deviceX" - } - ], - "body": { - "type": "BlockStatement", - "start": 10615, - "end": 10665, - "loc": { - "start": { - "line": 403, - "column": 0 - }, - "end": { - "line": 405, - "column": 1 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 10621, - "end": 10663, - "loc": { - "start": { - "line": 404, - "column": 4 - }, - "end": { - "line": 404, - "column": 46 - } - }, - "argument": { - "type": "CallExpression", - "start": 10628, - "end": 10662, - "loc": { - "start": { - "line": 404, - "column": 11 - }, - "end": { - "line": 404, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10628, - "end": 10653, - "loc": { - "start": { - "line": 404, - "column": 11 + "name": "type" }, - "end": { - "line": 404, - "column": 36 - } + "computed": false }, - "object": { - "type": "Identifier", - "start": 10628, - "end": 10642, + "operator": "==", + "right": { + "type": "StringLiteral", + "start": 9935, + "end": 9946, "loc": { "start": { - "line": 404, - "column": 11 - }, - "end": { - "line": 404, + "line": 377, "column": 25 }, - "identifierName": "deviceToScreen" - }, - "name": "deviceToScreen" - }, - "property": { - "type": "Identifier", - "start": 10643, - "end": 10653, - "loc": { - "start": { - "line": 404, - "column": 26 - }, "end": { - "line": 404, + "line": 377, "column": 36 - }, - "identifierName": "transformX" + } }, - "name": "transformX" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10654, - "end": 10661, - "loc": { - "start": { - "line": 404, - "column": 37 - }, - "end": { - "line": 404, - "column": 44 - }, - "identifierName": "deviceX" + "extra": { + "rawValue": "mousemove", + "raw": "\"mousemove\"" }, - "name": "deviceX" + "value": "mousemove" } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "FunctionDeclaration", - "start": 10668, - "end": 10753, - "loc": { - "start": { - "line": 408, - "column": 0 - }, - "end": { - "line": 411, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 10677, - "end": 10693, - "loc": { - "start": { - "line": 408, - "column": 9 - }, - "end": { - "line": 408, - "column": 25 - }, - "identifierName": "transformScreenY" - }, - "name": "transformScreenY" - }, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 10694, - "end": 10701, - "loc": { - "start": { - "line": 408, - "column": 26 - }, - "end": { - "line": 408, - "column": 33 - }, - "identifierName": "deviceY" - }, - "name": "deviceY" - } - ], - "body": { - "type": "BlockStatement", - "start": 10703, - "end": 10753, - "loc": { - "start": { - "line": 409, - "column": 0 - }, - "end": { - "line": 411, - "column": 1 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 10709, - "end": 10751, - "loc": { - "start": { - "line": 410, - "column": 4 }, - "end": { - "line": 410, - "column": 46 - } - }, - "argument": { - "type": "CallExpression", - "start": 10716, - "end": 10750, - "loc": { - "start": { - "line": 410, - "column": 11 + "consequent": { + "type": "BlockStatement", + "start": 9948, + "end": 9981, + "loc": { + "start": { + "line": 377, + "column": 38 + }, + "end": { + "line": 379, + "column": 5 + } }, - "end": { - "line": 410, - "column": 45 - } + "body": [ + { + "type": "ExpressionStatement", + "start": 9958, + "end": 9975, + "loc": { + "start": { + "line": 378, + "column": 8 + }, + "end": { + "line": 378, + "column": 25 + } + }, + "expression": { + "type": "CallExpression", + "start": 9958, + "end": 9974, + "loc": { + "start": { + "line": 378, + "column": 8 + }, + "end": { + "line": 378, + "column": 24 + } + }, + "callee": { + "type": "Identifier", + "start": 9958, + "end": 9971, + "loc": { + "start": { + "line": 378, + "column": 8 + }, + "end": { + "line": 378, + "column": 21 + }, + "identifierName": "modelTurnHead" + }, + "name": "modelTurnHead" + }, + "arguments": [ + { + "type": "Identifier", + "start": 9972, + "end": 9973, + "loc": { + "start": { + "line": 378, + "column": 22 + }, + "end": { + "line": 378, + "column": 23 + }, + "identifierName": "e" + }, + "name": "e" + } + ] + } + } + ], + "directives": [] }, - "callee": { - "type": "MemberExpression", - "start": 10716, - "end": 10741, + "alternate": { + "type": "IfStatement", + "start": 9987, + "end": 10156, "loc": { "start": { - "line": 410, + "line": 379, "column": 11 }, "end": { - "line": 410, - "column": 36 + "line": 384, + "column": 5 } }, - "object": { - "type": "Identifier", - "start": 10716, - "end": 10730, + "test": { + "type": "BinaryExpression", + "start": 9991, + "end": 10010, "loc": { "start": { - "line": 410, - "column": 11 + "line": 379, + "column": 15 }, "end": { - "line": 410, - "column": 25 - }, - "identifierName": "deviceToScreen" + "line": 379, + "column": 34 + } }, - "name": "deviceToScreen" - }, - "property": { - "type": "Identifier", - "start": 10731, - "end": 10741, - "loc": { - "start": { - "line": 410, - "column": 26 + "left": { + "type": "MemberExpression", + "start": 9991, + "end": 9997, + "loc": { + "start": { + "line": 379, + "column": 15 + }, + "end": { + "line": 379, + "column": 21 + } }, - "end": { - "line": 410, - "column": 36 + "object": { + "type": "Identifier", + "start": 9991, + "end": 9992, + "loc": { + "start": { + "line": 379, + "column": 15 + }, + "end": { + "line": 379, + "column": 16 + }, + "identifierName": "e" + }, + "name": "e" }, - "identifierName": "transformY" + "property": { + "type": "Identifier", + "start": 9993, + "end": 9997, + "loc": { + "start": { + "line": 379, + "column": 17 + }, + "end": { + "line": 379, + "column": 21 + }, + "identifierName": "type" + }, + "name": "type" + }, + "computed": false }, - "name": "transformY" + "operator": "==", + "right": { + "type": "StringLiteral", + "start": 10001, + "end": 10010, + "loc": { + "start": { + "line": 379, + "column": 25 + }, + "end": { + "line": 379, + "column": 34 + } + }, + "extra": { + "rawValue": "mouseup", + "raw": "\"mouseup\"" + }, + "value": "mouseup" + } }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10742, - "end": 10749, + "consequent": { + "type": "BlockStatement", + "start": 10012, + "end": 10094, "loc": { "start": { - "line": 410, - "column": 37 + "line": 379, + "column": 36 }, "end": { - "line": 410, - "column": 44 - }, - "identifierName": "deviceY" + "line": 382, + "column": 5 + } }, - "name": "deviceY" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ExportNamedDeclaration", - "start": 10755, - "end": 10795, - "loc": { - "start": { - "line": 413, - "column": 0 - }, - "end": { - "line": 416, - "column": 1 - } - }, - "declaration": null, - "specifiers": [ - { - "type": "ExportSpecifier", - "start": 10765, - "end": 10776, - "loc": { - "start": { - "line": 414, - "column": 2 - }, - "end": { - "line": 414, - "column": 13 - } - }, - "local": { - "type": "Identifier", - "start": 10765, - "end": 10776, - "loc": { - "start": { - "line": 414, - "column": 2 - }, - "end": { - "line": 414, - "column": 13 - }, - "identifierName": "theRealInit" - }, - "name": "theRealInit" - }, - "exported": { - "type": "Identifier", - "start": 10765, - "end": 10776, - "loc": { - "start": { - "line": 414, - "column": 2 - }, - "end": { - "line": 414, - "column": 13 - }, - "identifierName": "theRealInit" - }, - "name": "theRealInit" - } - }, - { - "type": "ExportSpecifier", - "start": 10780, - "end": 10792, - "loc": { - "start": { - "line": 415, - "column": 2 - }, - "end": { - "line": 415, - "column": 14 - } - }, - "local": { - "type": "Identifier", - "start": 10780, - "end": 10792, - "loc": { - "start": { - "line": 415, - "column": 2 - }, - "end": { - "line": 415, - "column": 14 - }, - "identifierName": "captureFrame" - }, - "name": "captureFrame" - }, - "exported": { - "type": "Identifier", - "start": 10780, - "end": 10792, - "loc": { - "start": { - "line": 415, - "column": 2 - }, - "end": { - "line": 415, - "column": 14 - }, - "identifierName": "captureFrame" - }, - "name": "captureFrame" - } - } - ], - "source": null - }, - { - "type": "ExportNamedDeclaration", - "start": 10755, - "end": 10795, - "loc": { - "start": { - "line": 413, - "column": 0 - }, - "end": { - "line": 416, - "column": 1 - } - }, - "declaration": { - "type": "FunctionDeclaration", - "start": 1065, - "end": 2057, - "loc": { - "start": { - "line": 48, - "column": 0 - }, - "end": { - "line": 81, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 1074, - "end": 1085, - "loc": { - "start": { - "line": 48, - "column": 9 - }, - "end": { - "line": 48, - "column": 20 - }, - "identifierName": "theRealInit" - }, - "name": "theRealInit", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 1088, - "end": 2057, - "loc": { - "start": { - "line": 48, - "column": 23 - }, - "end": { - "line": 81, - "column": 1 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1093, - "end": 1109, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 18 - } - }, - "expression": { - "type": "CallExpression", - "start": 1093, - "end": 1108, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 17 - } - }, - "callee": { - "type": "Identifier", - "start": 1093, - "end": 1106, - "loc": { - "start": { - "line": 50, - "column": 2 - }, - "end": { - "line": 50, - "column": 15 - }, - "identifierName": "createElement" - }, - "name": "createElement" - }, - "arguments": [] - } - }, - { - "type": "ExpressionStatement", - "start": 1113, - "end": 1144, - "loc": { - "start": { - "line": 52, - "column": 2 - }, - "end": { - "line": 52, - "column": 33 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1113, - "end": 1143, - "loc": { - "start": { - "line": 52, - "column": 2 - }, - "end": { - "line": 52, - "column": 32 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 1113, - "end": 1120, - "loc": { - "start": { - "line": 52, - "column": 2 - }, - "end": { - "line": 52, - "column": 9 - }, - "identifierName": "dragMgr" - }, - "name": "dragMgr" - }, - "right": { - "type": "NewExpression", - "start": 1123, - "end": 1143, - "loc": { - "start": { - "line": 52, - "column": 12 - }, - "end": { - "line": 52, - "column": 32 - } - }, - "callee": { - "type": "Identifier", - "start": 1127, - "end": 1141, - "loc": { - "start": { - "line": 52, - "column": 16 - }, - "end": { - "line": 52, - "column": 30 - }, - "identifierName": "L2DTargetPoint" - }, - "name": "L2DTargetPoint" - }, - "arguments": [] - } - } - }, - { - "type": "VariableDeclaration", - "start": 1147, - "end": 1204, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 53, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1151, - "end": 1203, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 1151, - "end": 1156, - "loc": { - "start": { - "line": 53, - "column": 6 - }, - "end": { - "line": 53, - "column": 11 - }, - "identifierName": "ratio" - }, - "name": "ratio" - }, - "init": { - "type": "BinaryExpression", - "start": 1159, - "end": 1203, - "loc": { - "start": { - "line": 53, - "column": 14 - }, - "end": { - "line": 53, - "column": 58 - } - }, - "left": { - "type": "MemberExpression", - "start": 1159, - "end": 1180, + "body": [ + { + "type": "IfStatement", + "start": 10022, + "end": 10064, "loc": { "start": { - "line": 53, - "column": 14 + "line": 380, + "column": 8 }, "end": { - "line": 53, - "column": 35 + "line": 380, + "column": 50 } }, - "object": { - "type": "MemberExpression", - "start": 1159, - "end": 1173, + "test": { + "type": "LogicalExpression", + "start": 10025, + "end": 10055, "loc": { "start": { - "line": 53, - "column": 14 + "line": 380, + "column": 11 }, "end": { - "line": 53, - "column": 28 + "line": 380, + "column": 41 } }, - "object": { - "type": "Identifier", - "start": 1159, - "end": 1165, + "left": { + "type": "BinaryExpression", + "start": 10025, + "end": 10038, "loc": { "start": { - "line": 53, - "column": 14 + "line": 380, + "column": 11 }, "end": { - "line": 53, - "column": 20 + "line": 380, + "column": 24 + } + }, + "left": { + "type": "StringLiteral", + "start": 10025, + "end": 10033, + "loc": { + "start": { + "line": 380, + "column": 11 + }, + "end": { + "line": 380, + "column": 19 + } + }, + "extra": { + "rawValue": "button", + "raw": "\"button\"" }, - "identifierName": "config" + "value": "button" }, - "name": "config" + "operator": "in", + "right": { + "type": "Identifier", + "start": 10037, + "end": 10038, + "loc": { + "start": { + "line": 380, + "column": 23 + }, + "end": { + "line": 380, + "column": 24 + }, + "identifierName": "e" + }, + "name": "e" + } }, - "property": { - "type": "Identifier", - "start": 1166, - "end": 1173, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 10042, + "end": 10055, "loc": { "start": { - "line": 53, - "column": 21 + "line": 380, + "column": 28 }, "end": { - "line": 53, - "column": 28 + "line": 380, + "column": 41 + } + }, + "left": { + "type": "MemberExpression", + "start": 10042, + "end": 10050, + "loc": { + "start": { + "line": 380, + "column": 28 + }, + "end": { + "line": 380, + "column": 36 + } }, - "identifierName": "display" + "object": { + "type": "Identifier", + "start": 10042, + "end": 10043, + "loc": { + "start": { + "line": 380, + "column": 28 + }, + "end": { + "line": 380, + "column": 29 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 10044, + "end": 10050, + "loc": { + "start": { + "line": 380, + "column": 30 + }, + "end": { + "line": 380, + "column": 36 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": false }, - "name": "display" - }, - "computed": false + "operator": "!=", + "right": { + "type": "NumericLiteral", + "start": 10054, + "end": 10055, + "loc": { + "start": { + "line": 380, + "column": 40 + }, + "end": { + "line": 380, + "column": 41 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } }, - "property": { - "type": "Identifier", - "start": 1174, - "end": 1180, + "consequent": { + "type": "ReturnStatement", + "start": 10057, + "end": 10064, "loc": { "start": { - "line": 53, - "column": 29 + "line": 380, + "column": 43 }, "end": { - "line": 53, - "column": 35 - }, - "identifierName": "height" + "line": 380, + "column": 50 + } }, - "name": "height" + "argument": null, + "leadingComments": null, + "trailingComments": null }, - "computed": false + "alternate": null, + "trailingComments": [ + { + "type": "CommentLine", + "value": " lookFront();", + "start": 10073, + "end": 10088, + "loc": { + "start": { + "line": 381, + "column": 8 + }, + "end": { + "line": 381, + "column": 23 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": { + "type": "IfStatement", + "start": 10100, + "end": 10156, + "loc": { + "start": { + "line": 382, + "column": 11 }, - "operator": "/", - "right": { + "end": { + "line": 384, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 10104, + "end": 10126, + "loc": { + "start": { + "line": 382, + "column": 15 + }, + "end": { + "line": 382, + "column": 37 + } + }, + "left": { "type": "MemberExpression", - "start": 1183, - "end": 1203, + "start": 10104, + "end": 10110, "loc": { "start": { - "line": 53, - "column": 38 + "line": 382, + "column": 15 }, "end": { - "line": 53, - "column": 58 + "line": 382, + "column": 21 } }, "object": { - "type": "MemberExpression", - "start": 1183, - "end": 1197, + "type": "Identifier", + "start": 10104, + "end": 10105, "loc": { "start": { - "line": 53, - "column": 38 + "line": 382, + "column": 15 }, "end": { - "line": 53, - "column": 52 - } - }, - "object": { - "type": "Identifier", - "start": 1183, - "end": 1189, - "loc": { - "start": { - "line": 53, - "column": 38 - }, - "end": { - "line": 53, - "column": 44 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1190, - "end": 1197, - "loc": { - "start": { - "line": 53, - "column": 45 - }, - "end": { - "line": 53, - "column": 52 - }, - "identifierName": "display" + "line": 382, + "column": 16 }, - "name": "display" + "identifierName": "e" }, - "computed": false + "name": "e" }, "property": { "type": "Identifier", - "start": 1198, - "end": 1203, + "start": 10106, + "end": 10110, "loc": { "start": { - "line": 53, - "column": 53 + "line": 382, + "column": 17 }, "end": { - "line": 53, - "column": 58 + "line": 382, + "column": 21 }, - "identifierName": "width" + "identifierName": "type" }, - "name": "width" + "name": "type" }, "computed": false - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 1207, - "end": 1244, - "loc": { - "start": { - "line": 54, - "column": 2 - }, - "end": { - "line": 54, - "column": 39 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1211, - "end": 1243, - "loc": { - "start": { - "line": 54, - "column": 6 }, - "end": { - "line": 54, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 1211, - "end": 1215, - "loc": { - "start": { - "line": 54, - "column": 6 + "operator": "==", + "right": { + "type": "StringLiteral", + "start": 10114, + "end": 10126, + "loc": { + "start": { + "line": 382, + "column": 25 + }, + "end": { + "line": 382, + "column": 37 + } }, - "end": { - "line": 54, - "column": 10 + "extra": { + "rawValue": "mouseleave", + "raw": "\"mouseleave\"" }, - "identifierName": "left" - }, - "name": "left" + "value": "mouseleave" + } }, - "init": { - "type": "MemberExpression", - "start": 1218, - "end": 1243, + "consequent": { + "type": "BlockStatement", + "start": 10128, + "end": 10156, "loc": { "start": { - "line": 54, - "column": 13 + "line": 382, + "column": 39 }, "end": { - "line": 54, - "column": 38 + "line": 384, + "column": 5 } }, - "object": { - "type": "Identifier", - "start": 1218, - "end": 1225, - "loc": { - "start": { - "line": 54, - "column": 13 - }, - "end": { - "line": 54, - "column": 20 - }, - "identifierName": "cDefine" - }, - "name": "cDefine" - }, - "property": { - "type": "Identifier", - "start": 1226, - "end": 1243, - "loc": { - "start": { - "line": 54, - "column": 21 - }, - "end": { - "line": 54, - "column": 38 + "body": [ + { + "type": "ExpressionStatement", + "start": 10138, + "end": 10150, + "loc": { + "start": { + "line": 383, + "column": 8 + }, + "end": { + "line": 383, + "column": 20 + } }, - "identifierName": "VIEW_LOGICAL_LEFT" - }, - "name": "VIEW_LOGICAL_LEFT" - }, - "computed": false - } + "expression": { + "type": "CallExpression", + "start": 10138, + "end": 10149, + "loc": { + "start": { + "line": 383, + "column": 8 + }, + "end": { + "line": 383, + "column": 19 + } + }, + "callee": { + "type": "Identifier", + "start": 10138, + "end": 10147, + "loc": { + "start": { + "line": 383, + "column": 8 + }, + "end": { + "line": 383, + "column": 17 + }, + "identifierName": "lookFront" + }, + "name": "lookFront" + }, + "arguments": [] + } + } + ], + "directives": [] + }, + "alternate": null } - ], - "kind": "let" + } }, - { - "type": "VariableDeclaration", - "start": 1247, - "end": 1286, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 55, - "column": 41 + "leadingComments": [ + { + "type": "CommentLine", + "value": "e.preventDefault();", + "start": 9829, + "end": 9850, + "loc": { + "start": { + "line": 374, + "column": 4 + }, + "end": { + "line": 374, + "column": 25 + } } + } + ] + } + ], + "directives": [] + } + }, + { + "type": "FunctionDeclaration", + "start": 10160, + "end": 10470, + "loc": { + "start": { + "line": 387, + "column": 0 + }, + "end": { + "line": 398, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 10169, + "end": 10179, + "loc": { + "start": { + "line": 387, + "column": 9 + }, + "end": { + "line": 387, + "column": 19 + }, + "identifierName": "touchEvent" + }, + "name": "touchEvent" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10180, + "end": 10181, + "loc": { + "start": { + "line": 387, + "column": 20 + }, + "end": { + "line": 387, + "column": 21 + }, + "identifierName": "e" + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 10183, + "end": 10470, + "loc": { + "start": { + "line": 388, + "column": 0 + }, + "end": { + "line": 398, + "column": 1 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 10189, + "end": 10214, + "loc": { + "start": { + "line": 389, + "column": 4 }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1251, - "end": 1285, + "end": { + "line": 389, + "column": 29 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 10193, + "end": 10213, + "loc": { + "start": { + "line": 389, + "column": 8 + }, + "end": { + "line": 389, + "column": 28 + } + }, + "id": { + "type": "Identifier", + "start": 10193, + "end": 10198, "loc": { "start": { - "line": 55, - "column": 6 + "line": 389, + "column": 8 }, "end": { - "line": 55, - "column": 40 - } + "line": 389, + "column": 13 + }, + "identifierName": "touch" }, - "id": { - "type": "Identifier", - "start": 1251, - "end": 1256, - "loc": { - "start": { - "line": 55, - "column": 6 - }, - "end": { - "line": 55, - "column": 11 - }, - "identifierName": "right" + "name": "touch" + }, + "init": { + "type": "MemberExpression", + "start": 10201, + "end": 10213, + "loc": { + "start": { + "line": 389, + "column": 16 }, - "name": "right" + "end": { + "line": 389, + "column": 28 + } }, - "init": { + "object": { "type": "MemberExpression", - "start": 1259, - "end": 1285, + "start": 10201, + "end": 10210, "loc": { "start": { - "line": 55, - "column": 14 + "line": 389, + "column": 16 }, "end": { - "line": 55, - "column": 40 + "line": 389, + "column": 25 } }, "object": { "type": "Identifier", - "start": 1259, - "end": 1266, + "start": 10201, + "end": 10202, "loc": { "start": { - "line": 55, - "column": 14 + "line": 389, + "column": 16 }, "end": { - "line": 55, - "column": 21 + "line": 389, + "column": 17 }, - "identifierName": "cDefine" + "identifierName": "e" }, - "name": "cDefine" + "name": "e" }, "property": { "type": "Identifier", - "start": 1267, - "end": 1285, + "start": 10203, + "end": 10210, "loc": { "start": { - "line": 55, - "column": 22 + "line": 389, + "column": 18 }, "end": { - "line": 55, - "column": 40 + "line": 389, + "column": 25 }, - "identifierName": "VIEW_LOGICAL_RIGHT" + "identifierName": "touches" }, - "name": "VIEW_LOGICAL_RIGHT" + "name": "touches" }, "computed": false - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 1289, - "end": 1309, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 56, - "column": 22 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1293, - "end": 1308, - "loc": { - "start": { - "line": 56, - "column": 6 - }, - "end": { - "line": 56, - "column": 21 - } - }, - "id": { - "type": "Identifier", - "start": 1293, - "end": 1299, - "loc": { - "start": { - "line": 56, - "column": 6 - }, - "end": { - "line": 56, - "column": 12 - }, - "identifierName": "bottom" - }, - "name": "bottom" }, - "init": { - "type": "UnaryExpression", - "start": 1302, - "end": 1308, + "property": { + "type": "NumericLiteral", + "start": 10211, + "end": 10212, "loc": { "start": { - "line": 56, - "column": 15 + "line": 389, + "column": 26 }, "end": { - "line": 56, - "column": 21 + "line": 389, + "column": 27 } }, - "operator": "-", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 1303, - "end": 1308, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 56, - "column": 21 - }, - "identifierName": "ratio" - }, - "name": "ratio" - }, "extra": { - "parenthesizedArgument": false - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 1312, - "end": 1328, - "loc": { - "start": { - "line": 57, - "column": 2 - }, - "end": { - "line": 57, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1316, - "end": 1327, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 1316, - "end": 1319, - "loc": { - "start": { - "line": 57, - "column": 6 - }, - "end": { - "line": 57, - "column": 9 - }, - "identifierName": "top" + "rawValue": 0, + "raw": "0" }, - "name": "top" + "value": 0 }, - "init": { - "type": "Identifier", - "start": 1322, - "end": 1327, - "loc": { - "start": { - "line": 57, - "column": 12 - }, - "end": { - "line": 57, - "column": 17 - }, - "identifierName": "ratio" - }, - "name": "ratio" - } + "computed": true } - ], - "kind": "let" + } + ], + "kind": "var" + }, + { + "type": "IfStatement", + "start": 10219, + "end": 10468, + "loc": { + "start": { + "line": 390, + "column": 4 + }, + "end": { + "line": 397, + "column": 5 + } }, - { - "type": "ExpressionStatement", - "start": 1332, - "end": 1365, + "test": { + "type": "BinaryExpression", + "start": 10223, + "end": 10245, "loc": { "start": { - "line": 59, - "column": 2 + "line": 390, + "column": 8 }, "end": { - "line": 59, - "column": 35 + "line": 390, + "column": 30 } }, - "expression": { - "type": "AssignmentExpression", - "start": 1332, - "end": 1364, + "left": { + "type": "MemberExpression", + "start": 10223, + "end": 10229, "loc": { "start": { - "line": 59, - "column": 2 + "line": 390, + "column": 8 }, "end": { - "line": 59, - "column": 34 + "line": 390, + "column": 14 } }, - "operator": "=", - "left": { + "object": { "type": "Identifier", - "start": 1332, - "end": 1342, + "start": 10223, + "end": 10224, "loc": { "start": { - "line": 59, - "column": 2 + "line": 390, + "column": 8 }, "end": { - "line": 59, - "column": 12 + "line": 390, + "column": 9 }, - "identifierName": "viewMatrix" + "identifierName": "e" }, - "name": "viewMatrix" + "name": "e" }, - "right": { - "type": "NewExpression", - "start": 1345, - "end": 1364, + "property": { + "type": "Identifier", + "start": 10225, + "end": 10229, "loc": { "start": { - "line": 59, - "column": 15 + "line": 390, + "column": 10 }, "end": { - "line": 59, - "column": 34 - } - }, - "callee": { - "type": "Identifier", - "start": 1349, - "end": 1362, - "loc": { - "start": { - "line": 59, - "column": 19 - }, - "end": { - "line": 59, - "column": 32 - }, - "identifierName": "L2DViewMatrix" + "line": 390, + "column": 14 }, - "name": "L2DViewMatrix" + "identifierName": "type" }, - "arguments": [] - } - } - }, - { - "type": "ExpressionStatement", - "start": 1369, - "end": 1420, - "loc": { - "start": { - "line": 61, - "column": 2 + "name": "type" }, - "end": { - "line": 61, - "column": 53 - } + "computed": false }, - "expression": { - "type": "CallExpression", - "start": 1369, - "end": 1419, + "operator": "==", + "right": { + "type": "StringLiteral", + "start": 10233, + "end": 10245, "loc": { "start": { - "line": 61, - "column": 2 + "line": 390, + "column": 18 }, "end": { - "line": 61, - "column": 52 + "line": 390, + "column": 30 } }, - "callee": { - "type": "MemberExpression", - "start": 1369, - "end": 1393, + "extra": { + "rawValue": "touchstart", + "raw": "\"touchstart\"" + }, + "value": "touchstart" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 10247, + "end": 10338, + "loc": { + "start": { + "line": 390, + "column": 32 + }, + "end": { + "line": 393, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 10257, + "end": 10305, "loc": { "start": { - "line": 61, - "column": 2 + "line": 391, + "column": 8 }, "end": { - "line": 61, - "column": 26 + "line": 391, + "column": 56 } }, - "object": { - "type": "Identifier", - "start": 1369, - "end": 1379, + "test": { + "type": "BinaryExpression", + "start": 10261, + "end": 10282, "loc": { "start": { - "line": 61, - "column": 2 - }, - "end": { - "line": 61, + "line": 391, "column": 12 }, - "identifierName": "viewMatrix" - }, - "name": "viewMatrix" - }, - "property": { - "type": "Identifier", - "start": 1380, - "end": 1393, - "loc": { - "start": { - "line": 61, - "column": 13 - }, "end": { - "line": 61, - "column": 26 - }, - "identifierName": "setScreenRect" + "line": 391, + "column": 33 + } }, - "name": "setScreenRect" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1394, - "end": 1398, - "loc": { - "start": { - "line": 61, - "column": 27 + "left": { + "type": "MemberExpression", + "start": 10261, + "end": 10277, + "loc": { + "start": { + "line": 391, + "column": 12 + }, + "end": { + "line": 391, + "column": 28 + } }, - "end": { - "line": 61, - "column": 31 + "object": { + "type": "MemberExpression", + "start": 10261, + "end": 10270, + "loc": { + "start": { + "line": 391, + "column": 12 + }, + "end": { + "line": 391, + "column": 21 + } + }, + "object": { + "type": "Identifier", + "start": 10261, + "end": 10262, + "loc": { + "start": { + "line": 391, + "column": 12 + }, + "end": { + "line": 391, + "column": 13 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 10263, + "end": 10270, + "loc": { + "start": { + "line": 391, + "column": 14 + }, + "end": { + "line": 391, + "column": 21 + }, + "identifierName": "touches" + }, + "name": "touches" + }, + "computed": false }, - "identifierName": "left" + "property": { + "type": "Identifier", + "start": 10271, + "end": 10277, + "loc": { + "start": { + "line": 391, + "column": 22 + }, + "end": { + "line": 391, + "column": 28 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false }, - "name": "left" - }, - { - "type": "Identifier", - "start": 1400, - "end": 1405, - "loc": { - "start": { - "line": 61, - "column": 33 + "operator": "==", + "right": { + "type": "NumericLiteral", + "start": 10281, + "end": 10282, + "loc": { + "start": { + "line": 391, + "column": 32 + }, + "end": { + "line": 391, + "column": 33 + } }, - "end": { - "line": 61, - "column": 38 + "extra": { + "rawValue": 1, + "raw": "1" }, - "identifierName": "right" - }, - "name": "right" + "value": 1 + } }, - { - "type": "Identifier", - "start": 1407, - "end": 1413, + "consequent": { + "type": "ExpressionStatement", + "start": 10284, + "end": 10305, "loc": { "start": { - "line": 61, - "column": 40 + "line": 391, + "column": 35 }, "end": { - "line": 61, - "column": 46 - }, - "identifierName": "bottom" + "line": 391, + "column": 56 + } }, - "name": "bottom" - }, - { - "type": "Identifier", - "start": 1415, - "end": 1418, - "loc": { - "start": { - "line": 61, - "column": 48 + "expression": { + "type": "CallExpression", + "start": 10284, + "end": 10304, + "loc": { + "start": { + "line": 391, + "column": 35 + }, + "end": { + "line": 391, + "column": 55 + } }, - "end": { - "line": 61, - "column": 51 + "callee": { + "type": "Identifier", + "start": 10284, + "end": 10297, + "loc": { + "start": { + "line": 391, + "column": 35 + }, + "end": { + "line": 391, + "column": 48 + }, + "identifierName": "modelTapEvent" + }, + "name": "modelTapEvent" }, - "identifierName": "top" + "arguments": [ + { + "type": "Identifier", + "start": 10298, + "end": 10303, + "loc": { + "start": { + "line": 391, + "column": 49 + }, + "end": { + "line": 391, + "column": 54 + }, + "identifierName": "touch" + }, + "name": "touch" + } + ] }, - "name": "top" - } - ] - } + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentLine", + "value": " onClick(touch);", + "start": 10314, + "end": 10332, + "loc": { + "start": { + "line": 392, + "column": 8 + }, + "end": { + "line": 392, + "column": 26 + } + } + } + ] + } + ], + "directives": [] }, - { - "type": "ExpressionStatement", - "start": 1424, - "end": 1590, + "alternate": { + "type": "IfStatement", + "start": 10344, + "end": 10468, "loc": { "start": { - "line": 63, - "column": 2 + "line": 393, + "column": 11 }, "end": { - "line": 66, - "column": 34 + "line": 397, + "column": 5 } }, - "expression": { - "type": "CallExpression", - "start": 1424, - "end": 1589, + "test": { + "type": "BinaryExpression", + "start": 10348, + "end": 10369, "loc": { "start": { - "line": 63, - "column": 2 + "line": 393, + "column": 15 }, "end": { - "line": 66, - "column": 33 + "line": 393, + "column": 36 } }, - "callee": { + "left": { "type": "MemberExpression", - "start": 1424, - "end": 1451, + "start": 10348, + "end": 10354, "loc": { "start": { - "line": 63, - "column": 2 + "line": 393, + "column": 15 }, "end": { - "line": 63, - "column": 29 + "line": 393, + "column": 21 } }, "object": { "type": "Identifier", - "start": 1424, - "end": 1434, + "start": 10348, + "end": 10349, "loc": { "start": { - "line": 63, - "column": 2 + "line": 393, + "column": 15 }, "end": { - "line": 63, - "column": 12 + "line": 393, + "column": 16 }, - "identifierName": "viewMatrix" + "identifierName": "e" }, - "name": "viewMatrix" + "name": "e" }, "property": { "type": "Identifier", - "start": 1435, - "end": 1451, + "start": 10350, + "end": 10354, "loc": { "start": { - "line": 63, - "column": 13 + "line": 393, + "column": 17 }, "end": { - "line": 63, - "column": 29 + "line": 393, + "column": 21 }, - "identifierName": "setMaxScreenRect" + "identifierName": "type" }, - "name": "setMaxScreenRect" + "name": "type" }, "computed": false }, - "arguments": [ + "operator": "==", + "right": { + "type": "StringLiteral", + "start": 10358, + "end": 10369, + "loc": { + "start": { + "line": 393, + "column": 25 + }, + "end": { + "line": 393, + "column": 36 + } + }, + "extra": { + "rawValue": "touchmove", + "raw": "\"touchmove\"" + }, + "value": "touchmove" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 10371, + "end": 10408, + "loc": { + "start": { + "line": 393, + "column": 38 + }, + "end": { + "line": 395, + "column": 5 + } + }, + "body": [ { - "type": "MemberExpression", - "start": 1452, - "end": 1481, + "type": "ExpressionStatement", + "start": 10381, + "end": 10402, "loc": { "start": { - "line": 63, - "column": 30 + "line": 394, + "column": 8 }, "end": { - "line": 63, - "column": 59 + "line": 394, + "column": 29 } }, - "object": { - "type": "Identifier", - "start": 1452, - "end": 1459, + "expression": { + "type": "CallExpression", + "start": 10381, + "end": 10401, "loc": { "start": { - "line": 63, - "column": 30 + "line": 394, + "column": 8 }, "end": { - "line": 63, - "column": 37 - }, - "identifierName": "cDefine" + "line": 394, + "column": 28 + } }, - "name": "cDefine" - }, - "property": { - "type": "Identifier", - "start": 1460, - "end": 1481, - "loc": { - "start": { - "line": 63, - "column": 38 - }, - "end": { - "line": 63, - "column": 59 + "callee": { + "type": "Identifier", + "start": 10381, + "end": 10394, + "loc": { + "start": { + "line": 394, + "column": 8 + }, + "end": { + "line": 394, + "column": 21 + }, + "identifierName": "followPointer" }, - "identifierName": "VIEW_LOGICAL_MAX_LEFT" + "name": "followPointer" }, - "name": "VIEW_LOGICAL_MAX_LEFT" + "arguments": [ + { + "type": "Identifier", + "start": 10395, + "end": 10400, + "loc": { + "start": { + "line": 394, + "column": 22 + }, + "end": { + "line": 394, + "column": 27 + }, + "identifierName": "touch" + }, + "name": "touch" + } + ] + } + } + ], + "directives": [] + }, + "alternate": { + "type": "IfStatement", + "start": 10414, + "end": 10468, + "loc": { + "start": { + "line": 395, + "column": 11 + }, + "end": { + "line": 397, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 10418, + "end": 10438, + "loc": { + "start": { + "line": 395, + "column": 15 }, - "computed": false + "end": { + "line": 395, + "column": 35 + } }, - { + "left": { "type": "MemberExpression", - "start": 1487, - "end": 1517, + "start": 10418, + "end": 10424, "loc": { "start": { - "line": 64, - "column": 4 + "line": 395, + "column": 15 }, "end": { - "line": 64, - "column": 34 + "line": 395, + "column": 21 } }, "object": { "type": "Identifier", - "start": 1487, - "end": 1494, + "start": 10418, + "end": 10419, "loc": { "start": { - "line": 64, - "column": 4 + "line": 395, + "column": 15 }, "end": { - "line": 64, - "column": 11 + "line": 395, + "column": 16 }, - "identifierName": "cDefine" + "identifierName": "e" }, - "name": "cDefine" + "name": "e" }, "property": { "type": "Identifier", - "start": 1495, - "end": 1517, + "start": 10420, + "end": 10424, "loc": { "start": { - "line": 64, - "column": 12 + "line": 395, + "column": 17 }, "end": { - "line": 64, - "column": 34 + "line": 395, + "column": 21 }, - "identifierName": "VIEW_LOGICAL_MAX_RIGHT" + "identifierName": "type" }, - "name": "VIEW_LOGICAL_MAX_RIGHT" + "name": "type" }, "computed": false }, - { - "type": "MemberExpression", - "start": 1523, - "end": 1554, + "operator": "==", + "right": { + "type": "StringLiteral", + "start": 10428, + "end": 10438, "loc": { "start": { - "line": 65, - "column": 4 + "line": 395, + "column": 25 }, "end": { - "line": 65, + "line": 395, "column": 35 } }, - "object": { - "type": "Identifier", - "start": 1523, - "end": 1530, - "loc": { - "start": { - "line": 65, - "column": 4 - }, - "end": { - "line": 65, - "column": 11 - }, - "identifierName": "cDefine" - }, - "name": "cDefine" + "extra": { + "rawValue": "touchend", + "raw": "\"touchend\"" }, - "property": { - "type": "Identifier", - "start": 1531, - "end": 1554, - "loc": { - "start": { - "line": 65, - "column": 12 - }, - "end": { - "line": 65, - "column": 35 - }, - "identifierName": "VIEW_LOGICAL_MAX_BOTTOM" - }, - "name": "VIEW_LOGICAL_MAX_BOTTOM" + "value": "touchend" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 10440, + "end": 10468, + "loc": { + "start": { + "line": 395, + "column": 37 }, - "computed": false + "end": { + "line": 397, + "column": 5 + } }, - { - "type": "MemberExpression", - "start": 1560, - "end": 1588, - "loc": { - "start": { - "line": 66, - "column": 4 - }, - "end": { - "line": 66, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 1560, - "end": 1567, + "body": [ + { + "type": "ExpressionStatement", + "start": 10450, + "end": 10462, "loc": { "start": { - "line": 66, - "column": 4 + "line": 396, + "column": 8 }, "end": { - "line": 66, - "column": 11 - }, - "identifierName": "cDefine" + "line": 396, + "column": 20 + } }, - "name": "cDefine" - }, - "property": { - "type": "Identifier", - "start": 1568, - "end": 1588, - "loc": { - "start": { - "line": 66, - "column": 12 + "expression": { + "type": "CallExpression", + "start": 10450, + "end": 10461, + "loc": { + "start": { + "line": 396, + "column": 8 + }, + "end": { + "line": 396, + "column": 19 + } }, - "end": { - "line": 66, - "column": 32 + "callee": { + "type": "Identifier", + "start": 10450, + "end": 10459, + "loc": { + "start": { + "line": 396, + "column": 8 + }, + "end": { + "line": 396, + "column": 17 + }, + "identifierName": "lookFront" + }, + "name": "lookFront" }, - "identifierName": "VIEW_LOGICAL_MAX_TOP" - }, - "name": "VIEW_LOGICAL_MAX_TOP" - }, - "computed": false - } - ] + "arguments": [] + } + } + ], + "directives": [] + }, + "alternate": null } + } + } + ], + "directives": [] + } + }, + { + "type": "FunctionDeclaration", + "start": 10472, + "end": 10611, + "loc": { + "start": { + "line": 400, + "column": 0 + }, + "end": { + "line": 404, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 10481, + "end": 10495, + "loc": { + "start": { + "line": 400, + "column": 9 + }, + "end": { + "line": 400, + "column": 23 + }, + "identifierName": "transformViewX" + }, + "name": "transformViewX" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10496, + "end": 10503, + "loc": { + "start": { + "line": 400, + "column": 24 }, - { - "type": "ExpressionStatement", - "start": 1594, - "end": 1625, - "loc": { - "start": { - "line": 68, - "column": 2 - }, - "end": { - "line": 68, - "column": 33 - } + "end": { + "line": 400, + "column": 31 + }, + "identifierName": "deviceX" + }, + "name": "deviceX" + } + ], + "body": { + "type": "BlockStatement", + "start": 10505, + "end": 10611, + "loc": { + "start": { + "line": 401, + "column": 0 + }, + "end": { + "line": 404, + "column": 1 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 10511, + "end": 10560, + "loc": { + "start": { + "line": 402, + "column": 4 }, - "expression": { - "type": "AssignmentExpression", - "start": 1594, - "end": 1624, + "end": { + "line": 402, + "column": 53 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 10515, + "end": 10559, "loc": { "start": { - "line": 68, - "column": 2 + "line": 402, + "column": 8 }, "end": { - "line": 68, - "column": 32 + "line": 402, + "column": 52 } }, - "operator": "=", - "left": { + "id": { "type": "Identifier", - "start": 1594, - "end": 1604, + "start": 10515, + "end": 10522, "loc": { "start": { - "line": 68, - "column": 2 + "line": 402, + "column": 8 }, "end": { - "line": 68, - "column": 12 - }, - "identifierName": "projMatrix" - }, - "name": "projMatrix" - }, - "right": { - "type": "NewExpression", - "start": 1607, - "end": 1624, - "loc": { - "start": { - "line": 68, + "line": 402, "column": 15 }, - "end": { - "line": 68, - "column": 32 - } - }, - "callee": { - "type": "Identifier", - "start": 1611, - "end": 1622, - "loc": { - "start": { - "line": 68, - "column": 19 - }, - "end": { - "line": 68, - "column": 30 - }, - "identifierName": "L2DMatrix44" - }, - "name": "L2DMatrix44" - }, - "arguments": [] - } - } - }, - { - "type": "ExpressionStatement", - "start": 1628, - "end": 1700, - "loc": { - "start": { - "line": 69, - "column": 2 - }, - "end": { - "line": 69, - "column": 74 - } - }, - "expression": { - "type": "CallExpression", - "start": 1628, - "end": 1699, - "loc": { - "start": { - "line": 69, - "column": 2 + "identifierName": "screenX" }, - "end": { - "line": 69, - "column": 73 - } + "name": "screenX" }, - "callee": { - "type": "MemberExpression", - "start": 1628, - "end": 1648, + "init": { + "type": "CallExpression", + "start": 10525, + "end": 10559, "loc": { "start": { - "line": 69, - "column": 2 + "line": 402, + "column": 18 }, "end": { - "line": 69, - "column": 22 + "line": 402, + "column": 52 } }, - "object": { - "type": "Identifier", - "start": 1628, - "end": 1638, - "loc": { - "start": { - "line": 69, - "column": 2 - }, - "end": { - "line": 69, - "column": 12 - }, - "identifierName": "projMatrix" - }, - "name": "projMatrix" - }, - "property": { - "type": "Identifier", - "start": 1639, - "end": 1648, - "loc": { - "start": { - "line": 69, - "column": 13 - }, - "end": { - "line": 69, - "column": 22 - }, - "identifierName": "multScale" - }, - "name": "multScale" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 1649, - "end": 1650, - "loc": { - "start": { - "line": 69, - "column": 23 - }, - "end": { - "line": 69, - "column": 24 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - { - "type": "BinaryExpression", - "start": 1653, - "end": 1697, + "callee": { + "type": "MemberExpression", + "start": 10525, + "end": 10550, "loc": { "start": { - "line": 69, - "column": 27 + "line": 402, + "column": 18 }, "end": { - "line": 69, - "column": 71 + "line": 402, + "column": 43 } }, - "left": { - "type": "MemberExpression", - "start": 1653, - "end": 1673, + "object": { + "type": "Identifier", + "start": 10525, + "end": 10539, "loc": { "start": { - "line": 69, - "column": 27 + "line": 402, + "column": 18 }, "end": { - "line": 69, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 1653, - "end": 1667, - "loc": { - "start": { - "line": 69, - "column": 27 - }, - "end": { - "line": 69, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 1653, - "end": 1659, - "loc": { - "start": { - "line": 69, - "column": 27 - }, - "end": { - "line": 69, - "column": 33 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1660, - "end": 1667, - "loc": { - "start": { - "line": 69, - "column": 34 - }, - "end": { - "line": 69, - "column": 41 - }, - "identifierName": "display" - }, - "name": "display" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1668, - "end": 1673, - "loc": { - "start": { - "line": 69, - "column": 42 - }, - "end": { - "line": 69, - "column": 47 - }, - "identifierName": "width" + "line": 402, + "column": 32 }, - "name": "width" + "identifierName": "deviceToScreen" }, - "computed": false + "name": "deviceToScreen" }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 1676, - "end": 1697, + "property": { + "type": "Identifier", + "start": 10540, + "end": 10550, "loc": { "start": { - "line": 69, - "column": 50 + "line": 402, + "column": 33 }, "end": { - "line": 69, - "column": 71 - } - }, - "object": { - "type": "MemberExpression", - "start": 1676, - "end": 1690, - "loc": { - "start": { - "line": 69, - "column": 50 - }, - "end": { - "line": 69, - "column": 64 - } - }, - "object": { - "type": "Identifier", - "start": 1676, - "end": 1682, - "loc": { - "start": { - "line": 69, - "column": 50 - }, - "end": { - "line": 69, - "column": 56 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1683, - "end": 1690, - "loc": { - "start": { - "line": 69, - "column": 57 - }, - "end": { - "line": 69, - "column": 64 - }, - "identifierName": "display" - }, - "name": "display" + "line": 402, + "column": 43 }, - "computed": false + "identifierName": "transformX" }, - "property": { - "type": "Identifier", - "start": 1691, - "end": 1697, - "loc": { - "start": { - "line": 69, - "column": 65 - }, - "end": { - "line": 69, - "column": 71 - }, - "identifierName": "height" + "name": "transformX" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 10551, + "end": 10558, + "loc": { + "start": { + "line": 402, + "column": 44 }, - "name": "height" + "end": { + "line": 402, + "column": 51 + }, + "identifierName": "deviceX" }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 1652 + "name": "deviceX" } - } - ] + ] + } + } + ], + "kind": "var" + }, + { + "type": "ReturnStatement", + "start": 10565, + "end": 10609, + "loc": { + "start": { + "line": 403, + "column": 4 + }, + "end": { + "line": 403, + "column": 48 } }, - { - "type": "ExpressionStatement", - "start": 1704, - "end": 1739, + "argument": { + "type": "CallExpression", + "start": 10572, + "end": 10608, "loc": { "start": { - "line": 71, - "column": 2 + "line": 403, + "column": 11 }, "end": { - "line": 71, - "column": 37 + "line": 403, + "column": 47 } }, - "expression": { - "type": "AssignmentExpression", - "start": 1704, - "end": 1738, + "callee": { + "type": "MemberExpression", + "start": 10572, + "end": 10599, "loc": { "start": { - "line": 71, - "column": 2 + "line": 403, + "column": 11 }, "end": { - "line": 71, - "column": 36 + "line": 403, + "column": 38 } }, - "operator": "=", - "left": { + "object": { "type": "Identifier", - "start": 1704, - "end": 1718, + "start": 10572, + "end": 10582, "loc": { "start": { - "line": 71, - "column": 2 + "line": 403, + "column": 11 }, "end": { - "line": 71, - "column": 16 + "line": 403, + "column": 21 }, - "identifierName": "deviceToScreen" + "identifierName": "viewMatrix" }, - "name": "deviceToScreen" + "name": "viewMatrix" }, - "right": { - "type": "NewExpression", - "start": 1721, - "end": 1738, + "property": { + "type": "Identifier", + "start": 10583, + "end": 10599, "loc": { "start": { - "line": 71, - "column": 19 + "line": 403, + "column": 22 }, "end": { - "line": 71, - "column": 36 - } - }, - "callee": { - "type": "Identifier", - "start": 1725, - "end": 1736, - "loc": { - "start": { - "line": 71, - "column": 23 - }, - "end": { - "line": 71, - "column": 34 - }, - "identifierName": "L2DMatrix44" + "line": 403, + "column": 38 }, - "name": "L2DMatrix44" + "identifierName": "invertTransformX" }, - "arguments": [] - } - } - }, - { - "type": "ExpressionStatement", - "start": 1742, - "end": 1830, - "loc": { - "start": { - "line": 72, - "column": 2 + "name": "invertTransformX" }, - "end": { - "line": 72, - "column": 90 - } + "computed": false }, - "expression": { - "type": "CallExpression", - "start": 1742, - "end": 1829, - "loc": { - "start": { - "line": 72, - "column": 2 - }, - "end": { - "line": 72, - "column": 89 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1742, - "end": 1770, + "arguments": [ + { + "type": "Identifier", + "start": 10600, + "end": 10607, "loc": { "start": { - "line": 72, - "column": 2 + "line": 403, + "column": 39 }, "end": { - "line": 72, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 1742, - "end": 1756, - "loc": { - "start": { - "line": 72, - "column": 2 - }, - "end": { - "line": 72, - "column": 16 - }, - "identifierName": "deviceToScreen" - }, - "name": "deviceToScreen" - }, - "property": { - "type": "Identifier", - "start": 1757, - "end": 1770, - "loc": { - "start": { - "line": 72, - "column": 17 - }, - "end": { - "line": 72, - "column": 30 - }, - "identifierName": "multTranslate" + "line": 403, + "column": 46 }, - "name": "multTranslate" + "identifierName": "screenX" }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1771, - "end": 1798, - "loc": { - "start": { - "line": 72, - "column": 31 - }, - "end": { - "line": 72, - "column": 58 - } - }, - "left": { - "type": "UnaryExpression", - "start": 1771, - "end": 1792, - "loc": { - "start": { - "line": 72, - "column": 31 - }, - "end": { - "line": 72, - "column": 52 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 1772, - "end": 1792, - "loc": { - "start": { - "line": 72, - "column": 32 - }, - "end": { - "line": 72, - "column": 52 - } - }, - "object": { - "type": "MemberExpression", - "start": 1772, - "end": 1786, - "loc": { - "start": { - "line": 72, - "column": 32 - }, - "end": { - "line": 72, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 1772, - "end": 1778, - "loc": { - "start": { - "line": 72, - "column": 32 - }, - "end": { - "line": 72, - "column": 38 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1779, - "end": 1786, - "loc": { - "start": { - "line": 72, - "column": 39 - }, - "end": { - "line": 72, - "column": 46 - }, - "identifierName": "display" - }, - "name": "display" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1787, - "end": 1792, - "loc": { - "start": { - "line": 72, - "column": 47 - }, - "end": { - "line": 72, - "column": 52 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } + "name": "screenX" + } + ] + } + } + ], + "directives": [] + } + }, + { + "type": "FunctionDeclaration", + "start": 10614, + "end": 10753, + "loc": { + "start": { + "line": 407, + "column": 0 + }, + "end": { + "line": 411, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 10623, + "end": 10637, + "loc": { + "start": { + "line": 407, + "column": 9 + }, + "end": { + "line": 407, + "column": 23 + }, + "identifierName": "transformViewY" + }, + "name": "transformViewY" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10638, + "end": 10645, + "loc": { + "start": { + "line": 407, + "column": 24 + }, + "end": { + "line": 407, + "column": 31 + }, + "identifierName": "deviceY" + }, + "name": "deviceY" + } + ], + "body": { + "type": "BlockStatement", + "start": 10647, + "end": 10753, + "loc": { + "start": { + "line": 408, + "column": 0 + }, + "end": { + "line": 411, + "column": 1 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 10653, + "end": 10702, + "loc": { + "start": { + "line": 409, + "column": 4 + }, + "end": { + "line": 409, + "column": 53 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 10657, + "end": 10701, + "loc": { + "start": { + "line": 409, + "column": 8 + }, + "end": { + "line": 409, + "column": 52 + } + }, + "id": { + "type": "Identifier", + "start": 10657, + "end": 10664, + "loc": { + "start": { + "line": 409, + "column": 8 }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 1795, - "end": 1798, - "loc": { - "start": { - "line": 72, - "column": 55 - }, - "end": { - "line": 72, - "column": 58 - } - }, - "extra": { - "rawValue": 2, - "raw": "2.0" - }, - "value": 2 + "end": { + "line": 409, + "column": 15 + }, + "identifierName": "screenY" + }, + "name": "screenY" + }, + "init": { + "type": "CallExpression", + "start": 10667, + "end": 10701, + "loc": { + "start": { + "line": 409, + "column": 18 + }, + "end": { + "line": 409, + "column": 52 } }, - { - "type": "BinaryExpression", - "start": 1800, - "end": 1828, + "callee": { + "type": "MemberExpression", + "start": 10667, + "end": 10692, "loc": { "start": { - "line": 72, - "column": 60 + "line": 409, + "column": 18 }, "end": { - "line": 72, - "column": 88 + "line": 409, + "column": 43 } }, - "left": { - "type": "UnaryExpression", - "start": 1800, - "end": 1822, + "object": { + "type": "Identifier", + "start": 10667, + "end": 10681, "loc": { "start": { - "line": 72, - "column": 60 + "line": 409, + "column": 18 }, "end": { - "line": 72, - "column": 82 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 1801, - "end": 1822, - "loc": { - "start": { - "line": 72, - "column": 61 - }, - "end": { - "line": 72, - "column": 82 - } + "line": 409, + "column": 32 }, - "object": { - "type": "MemberExpression", - "start": 1801, - "end": 1815, - "loc": { - "start": { - "line": 72, - "column": 61 - }, - "end": { - "line": 72, - "column": 75 - } - }, - "object": { - "type": "Identifier", - "start": 1801, - "end": 1807, - "loc": { - "start": { - "line": 72, - "column": 61 - }, - "end": { - "line": 72, - "column": 67 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1808, - "end": 1815, - "loc": { - "start": { - "line": 72, - "column": 68 - }, - "end": { - "line": 72, - "column": 75 - }, - "identifierName": "display" - }, - "name": "display" - }, - "computed": false + "identifierName": "deviceToScreen" + }, + "name": "deviceToScreen" + }, + "property": { + "type": "Identifier", + "start": 10682, + "end": 10692, + "loc": { + "start": { + "line": 409, + "column": 33 }, - "property": { - "type": "Identifier", - "start": 1816, - "end": 1822, - "loc": { - "start": { - "line": 72, - "column": 76 - }, - "end": { - "line": 72, - "column": 82 - }, - "identifierName": "height" - }, - "name": "height" + "end": { + "line": 409, + "column": 43 }, - "computed": false + "identifierName": "transformY" }, - "extra": { - "parenthesizedArgument": false - } + "name": "transformY" }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 1825, - "end": 1828, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 10693, + "end": 10700, "loc": { "start": { - "line": 72, - "column": 85 + "line": 409, + "column": 44 }, "end": { - "line": 72, - "column": 88 - } - }, - "extra": { - "rawValue": 2, - "raw": "2.0" + "line": 409, + "column": 51 + }, + "identifierName": "deviceY" }, - "value": 2 + "name": "deviceY" } + ] + } + } + ], + "kind": "var" + }, + { + "type": "ReturnStatement", + "start": 10707, + "end": 10751, + "loc": { + "start": { + "line": 410, + "column": 4 + }, + "end": { + "line": 410, + "column": 48 + } + }, + "argument": { + "type": "CallExpression", + "start": 10714, + "end": 10750, + "loc": { + "start": { + "line": 410, + "column": 11 + }, + "end": { + "line": 410, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10714, + "end": 10741, + "loc": { + "start": { + "line": 410, + "column": 11 + }, + "end": { + "line": 410, + "column": 38 } - ] + }, + "object": { + "type": "Identifier", + "start": 10714, + "end": 10724, + "loc": { + "start": { + "line": 410, + "column": 11 + }, + "end": { + "line": 410, + "column": 21 + }, + "identifierName": "viewMatrix" + }, + "name": "viewMatrix" + }, + "property": { + "type": "Identifier", + "start": 10725, + "end": 10741, + "loc": { + "start": { + "line": 410, + "column": 22 + }, + "end": { + "line": 410, + "column": 38 + }, + "identifierName": "invertTransformY" + }, + "name": "invertTransformY" + }, + "computed": false }, - "trailingComments": [ + "arguments": [ { - "type": "CommentLine", - "value": " #32", - "start": 1832, - "end": 1838, + "type": "Identifier", + "start": 10742, + "end": 10749, "loc": { "start": { - "line": 72, - "column": 92 + "line": 410, + "column": 39 }, "end": { - "line": 72, - "column": 98 - } - } + "line": 410, + "column": 46 + }, + "identifierName": "screenY" + }, + "name": "screenY" } ] + } + } + ], + "directives": [] + } + }, + { + "type": "FunctionDeclaration", + "start": 10756, + "end": 10841, + "loc": { + "start": { + "line": 414, + "column": 0 + }, + "end": { + "line": 417, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 10765, + "end": 10781, + "loc": { + "start": { + "line": 414, + "column": 9 + }, + "end": { + "line": 414, + "column": 25 + }, + "identifierName": "transformScreenX" + }, + "name": "transformScreenX" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10782, + "end": 10789, + "loc": { + "start": { + "line": 414, + "column": 26 }, - { - "type": "ExpressionStatement", - "start": 1841, - "end": 1920, + "end": { + "line": 414, + "column": 33 + }, + "identifierName": "deviceX" + }, + "name": "deviceX" + } + ], + "body": { + "type": "BlockStatement", + "start": 10791, + "end": 10841, + "loc": { + "start": { + "line": 415, + "column": 0 + }, + "end": { + "line": 417, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 10797, + "end": 10839, + "loc": { + "start": { + "line": 416, + "column": 4 + }, + "end": { + "line": 416, + "column": 46 + } + }, + "argument": { + "type": "CallExpression", + "start": 10804, + "end": 10838, "loc": { "start": { - "line": 73, - "column": 2 + "line": 416, + "column": 11 }, "end": { - "line": 73, - "column": 81 + "line": 416, + "column": 45 } }, - "expression": { - "type": "CallExpression", - "start": 1841, - "end": 1919, + "callee": { + "type": "MemberExpression", + "start": 10804, + "end": 10829, "loc": { "start": { - "line": 73, - "column": 2 + "line": 416, + "column": 11 }, "end": { - "line": 73, - "column": 80 + "line": 416, + "column": 36 } }, - "callee": { - "type": "MemberExpression", - "start": 1841, - "end": 1865, + "object": { + "type": "Identifier", + "start": 10804, + "end": 10818, "loc": { "start": { - "line": 73, - "column": 2 + "line": 416, + "column": 11 }, "end": { - "line": 73, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 1841, - "end": 1855, - "loc": { - "start": { - "line": 73, - "column": 2 - }, - "end": { - "line": 73, - "column": 16 - }, - "identifierName": "deviceToScreen" + "line": 416, + "column": 25 }, - "name": "deviceToScreen", - "leadingComments": null + "identifierName": "deviceToScreen" }, - "property": { - "type": "Identifier", - "start": 1856, - "end": 1865, - "loc": { - "start": { - "line": 73, - "column": 17 - }, - "end": { - "line": 73, - "column": 26 - }, - "identifierName": "multScale" + "name": "deviceToScreen" + }, + "property": { + "type": "Identifier", + "start": 10819, + "end": 10829, + "loc": { + "start": { + "line": 416, + "column": 26 }, - "name": "multScale" + "end": { + "line": 416, + "column": 36 + }, + "identifierName": "transformX" }, - "computed": false, - "leadingComments": null + "name": "transformX" }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1866, - "end": 1890, - "loc": { - "start": { - "line": 73, - "column": 27 - }, - "end": { - "line": 73, - "column": 51 - } + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 10830, + "end": 10837, + "loc": { + "start": { + "line": 416, + "column": 37 }, - "left": { - "type": "NumericLiteral", - "start": 1866, - "end": 1867, - "loc": { - "start": { - "line": 73, - "column": 27 - }, - "end": { - "line": 73, - "column": 28 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 + "end": { + "line": 416, + "column": 44 }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 1870, - "end": 1890, - "loc": { - "start": { - "line": 73, - "column": 31 - }, - "end": { - "line": 73, - "column": 51 - } - }, - "object": { - "type": "MemberExpression", - "start": 1870, - "end": 1884, - "loc": { - "start": { - "line": 73, - "column": 31 - }, - "end": { - "line": 73, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 1870, - "end": 1876, - "loc": { - "start": { - "line": 73, - "column": 31 - }, - "end": { - "line": 73, - "column": 37 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1877, - "end": 1884, - "loc": { - "start": { - "line": 73, - "column": 38 - }, - "end": { - "line": 73, - "column": 45 - }, - "identifierName": "display" - }, - "name": "display" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1885, - "end": 1890, - "loc": { - "start": { - "line": 73, - "column": 46 - }, - "end": { - "line": 73, - "column": 51 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } + "identifierName": "deviceX" }, - { - "type": "BinaryExpression", - "start": 1892, - "end": 1918, - "loc": { - "start": { - "line": 73, - "column": 53 - }, - "end": { - "line": 73, - "column": 79 - } + "name": "deviceX" + } + ] + } + } + ], + "directives": [] + } + }, + { + "type": "FunctionDeclaration", + "start": 10844, + "end": 10929, + "loc": { + "start": { + "line": 420, + "column": 0 + }, + "end": { + "line": 423, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 10853, + "end": 10869, + "loc": { + "start": { + "line": 420, + "column": 9 + }, + "end": { + "line": 420, + "column": 25 + }, + "identifierName": "transformScreenY" + }, + "name": "transformScreenY" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10870, + "end": 10877, + "loc": { + "start": { + "line": 420, + "column": 26 + }, + "end": { + "line": 420, + "column": 33 + }, + "identifierName": "deviceY" + }, + "name": "deviceY" + } + ], + "body": { + "type": "BlockStatement", + "start": 10879, + "end": 10929, + "loc": { + "start": { + "line": 421, + "column": 0 + }, + "end": { + "line": 423, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 10885, + "end": 10927, + "loc": { + "start": { + "line": 422, + "column": 4 + }, + "end": { + "line": 422, + "column": 46 + } + }, + "argument": { + "type": "CallExpression", + "start": 10892, + "end": 10926, + "loc": { + "start": { + "line": 422, + "column": 11 + }, + "end": { + "line": 422, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10892, + "end": 10917, + "loc": { + "start": { + "line": 422, + "column": 11 + }, + "end": { + "line": 422, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 10892, + "end": 10906, + "loc": { + "start": { + "line": 422, + "column": 11 }, - "left": { - "type": "UnaryExpression", - "start": 1892, - "end": 1894, - "loc": { - "start": { - "line": 73, - "column": 53 - }, - "end": { - "line": 73, - "column": 55 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 1893, - "end": 1894, - "loc": { - "start": { - "line": 73, - "column": 54 - }, - "end": { - "line": 73, - "column": 55 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesizedArgument": false - } + "end": { + "line": 422, + "column": 25 }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 1897, - "end": 1918, - "loc": { - "start": { - "line": 73, - "column": 58 - }, - "end": { - "line": 73, - "column": 79 - } - }, - "object": { - "type": "MemberExpression", - "start": 1897, - "end": 1911, - "loc": { - "start": { - "line": 73, - "column": 58 - }, - "end": { - "line": 73, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 1897, - "end": 1903, - "loc": { - "start": { - "line": 73, - "column": 58 - }, - "end": { - "line": 73, - "column": 64 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1904, - "end": 1911, - "loc": { - "start": { - "line": 73, - "column": 65 - }, - "end": { - "line": 73, - "column": 72 - }, - "identifierName": "display" - }, - "name": "display" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1912, - "end": 1918, - "loc": { - "start": { - "line": 73, - "column": 73 - }, - "end": { - "line": 73, - "column": 79 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " #32", - "start": 1832, - "end": 1838, + "identifierName": "deviceToScreen" + }, + "name": "deviceToScreen" + }, + "property": { + "type": "Identifier", + "start": 10907, + "end": 10917, "loc": { "start": { - "line": 72, - "column": 92 + "line": 422, + "column": 26 }, "end": { - "line": 72, - "column": 98 - } - } - } - ], - "trailingComments": [ + "line": 422, + "column": 36 + }, + "identifierName": "transformY" + }, + "name": "transformY" + }, + "computed": false + }, + "arguments": [ { - "type": "CommentLine", - "value": " #32", - "start": 1922, - "end": 1928, + "type": "Identifier", + "start": 10918, + "end": 10925, "loc": { "start": { - "line": 73, - "column": 83 + "line": 422, + "column": 37 }, "end": { - "line": 73, - "column": 89 - } - } + "line": 422, + "column": 44 + }, + "identifierName": "deviceY" + }, + "name": "deviceY" } ] + } + } + ], + "directives": [] + } + }, + { + "type": "ExportNamedDeclaration", + "start": 10931, + "end": 10971, + "loc": { + "start": { + "line": 425, + "column": 0 + }, + "end": { + "line": 428, + "column": 1 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 10941, + "end": 10952, + "loc": { + "start": { + "line": 426, + "column": 2 + }, + "end": { + "line": 426, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 10941, + "end": 10952, + "loc": { + "start": { + "line": 426, + "column": 2 + }, + "end": { + "line": 426, + "column": 13 + }, + "identifierName": "theRealInit" + }, + "name": "theRealInit" + }, + "exported": { + "type": "Identifier", + "start": 10941, + "end": 10952, + "loc": { + "start": { + "line": 426, + "column": 2 + }, + "end": { + "line": 426, + "column": 13 + }, + "identifierName": "theRealInit" + }, + "name": "theRealInit" + } + }, + { + "type": "ExportSpecifier", + "start": 10956, + "end": 10968, + "loc": { + "start": { + "line": 427, + "column": 2 + }, + "end": { + "line": 427, + "column": 14 + } + }, + "local": { + "type": "Identifier", + "start": 10956, + "end": 10968, + "loc": { + "start": { + "line": 427, + "column": 2 + }, + "end": { + "line": 427, + "column": 14 + }, + "identifierName": "captureFrame" + }, + "name": "captureFrame" + }, + "exported": { + "type": "Identifier", + "start": 10956, + "end": 10968, + "loc": { + "start": { + "line": 427, + "column": 2 + }, + "end": { + "line": 427, + "column": 14 + }, + "identifierName": "captureFrame" + }, + "name": "captureFrame" + } + } + ], + "source": null + }, + { + "type": "ExportNamedDeclaration", + "start": 10931, + "end": 10971, + "loc": { + "start": { + "line": 425, + "column": 0 + }, + "end": { + "line": 428, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 1097, + "end": 2073, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 84, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1106, + "end": 1117, + "loc": { + "start": { + "line": 49, + "column": 9 + }, + "end": { + "line": 49, + "column": 20 + }, + "identifierName": "theRealInit" + }, + "name": "theRealInit", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1120, + "end": 2073, + "loc": { + "start": { + "line": 49, + "column": 23 }, + "end": { + "line": 84, + "column": 1 + } + }, + "body": [ { "type": "ExpressionStatement", - "start": 1933, - "end": 1957, + "start": 1125, + "end": 1141, "loc": { "start": { - "line": 76, + "line": 51, "column": 2 }, "end": { - "line": 76, - "column": 26 + "line": 51, + "column": 18 } }, "expression": { "type": "CallExpression", - "start": 1933, - "end": 1956, + "start": 1125, + "end": 1140, "loc": { "start": { - "line": 76, + "line": 51, "column": 2 }, "end": { - "line": 76, - "column": 25 + "line": 51, + "column": 17 } }, "callee": { - "type": "MemberExpression", - "start": 1933, - "end": 1945, + "type": "Identifier", + "start": 1125, + "end": 1138, "loc": { "start": { - "line": 76, + "line": 51, "column": 2 }, "end": { - "line": 76, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 1933, - "end": 1939, - "loc": { - "start": { - "line": 76, - "column": 2 - }, - "end": { - "line": 76, - "column": 8 - }, - "identifierName": "Live2D" + "line": 51, + "column": 15 }, - "name": "Live2D", - "leadingComments": null + "identifierName": "createElement" }, - "property": { - "type": "Identifier", - "start": 1940, - "end": 1945, - "loc": { - "start": { - "line": 76, - "column": 9 - }, - "end": { - "line": 76, - "column": 14 - }, - "identifierName": "setGL" - }, - "name": "setGL" - }, - "computed": false, - "leadingComments": null + "name": "createElement" }, - "arguments": [ - { - "type": "Identifier", - "start": 1946, - "end": 1955, - "loc": { - "start": { - "line": 76, - "column": 15 - }, - "end": { - "line": 76, - "column": 24 - }, - "identifierName": "currWebGL" - }, - "name": "currWebGL" - } - ], - "leadingComments": null + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 1144, + "end": 1156, + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 52, + "column": 14 + } }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " #32", - "start": 1922, - "end": 1928, + "expression": { + "type": "CallExpression", + "start": 1144, + "end": 1155, + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 52, + "column": 13 + } + }, + "callee": { + "type": "Identifier", + "start": 1144, + "end": 1153, "loc": { "start": { - "line": 73, - "column": 83 + "line": 52, + "column": 2 }, "end": { - "line": 73, - "column": 89 - } - } - } - ] + "line": 52, + "column": 11 + }, + "identifierName": "initEvent" + }, + "name": "initEvent" + }, + "arguments": [] + } }, { "type": "ExpressionStatement", - "start": 1960, - "end": 2001, + "start": 1160, + "end": 1191, "loc": { "start": { - "line": 77, + "line": 54, "column": 2 }, "end": { - "line": 77, - "column": 43 + "line": 54, + "column": 33 } }, "expression": { - "type": "CallExpression", - "start": 1960, - "end": 2000, + "type": "AssignmentExpression", + "start": 1160, + "end": 1190, "loc": { "start": { - "line": 77, + "line": 54, "column": 2 }, "end": { - "line": 77, - "column": 42 + "line": 54, + "column": 32 } }, - "callee": { - "type": "MemberExpression", - "start": 1960, - "end": 1980, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1160, + "end": 1167, "loc": { "start": { - "line": 77, + "line": 54, "column": 2 }, "end": { - "line": 77, - "column": 22 + "line": 54, + "column": 9 + }, + "identifierName": "dragMgr" + }, + "name": "dragMgr" + }, + "right": { + "type": "NewExpression", + "start": 1170, + "end": 1190, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 32 } }, - "object": { + "callee": { "type": "Identifier", - "start": 1960, - "end": 1969, + "start": 1174, + "end": 1188, "loc": { "start": { - "line": 77, - "column": 2 + "line": 54, + "column": 16 }, "end": { - "line": 77, - "column": 11 + "line": 54, + "column": 30 }, - "identifierName": "currWebGL" + "identifierName": "L2DTargetPoint" }, - "name": "currWebGL" + "name": "L2DTargetPoint" }, - "property": { + "arguments": [] + } + } + }, + { + "type": "VariableDeclaration", + "start": 1194, + "end": 1243, + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 55, + "column": 51 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1198, + "end": 1242, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 50 + } + }, + "id": { "type": "Identifier", - "start": 1970, - "end": 1980, + "start": 1198, + "end": 1203, "loc": { "start": { - "line": 77, - "column": 12 + "line": 55, + "column": 6 }, "end": { - "line": 77, - "column": 22 + "line": 55, + "column": 11 }, - "identifierName": "clearColor" + "identifierName": "ratio" }, - "name": "clearColor" + "name": "ratio" }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 1981, - "end": 1984, + "init": { + "type": "BinaryExpression", + "start": 1206, + "end": 1242, "loc": { "start": { - "line": 77, - "column": 23 + "line": 55, + "column": 14 }, "end": { - "line": 77, - "column": 26 + "line": 55, + "column": 50 } }, - "extra": { - "rawValue": 0, - "raw": "0.0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 1986, - "end": 1989, - "loc": { - "start": { - "line": 77, - "column": 28 + "left": { + "type": "MemberExpression", + "start": 1206, + "end": 1223, + "loc": { + "start": { + "line": 55, + "column": 14 + }, + "end": { + "line": 55, + "column": 31 + } }, - "end": { - "line": 77, - "column": 31 - } + "object": { + "type": "Identifier", + "start": 1206, + "end": 1216, + "loc": { + "start": { + "line": 55, + "column": 14 + }, + "end": { + "line": 55, + "column": 24 + }, + "identifierName": "currCanvas" + }, + "name": "currCanvas" + }, + "property": { + "type": "Identifier", + "start": 1217, + "end": 1223, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 31 + }, + "identifierName": "height" + }, + "name": "height" + }, + "computed": false }, - "extra": { - "rawValue": 0, - "raw": "0.0" + "operator": "/", + "right": { + "type": "MemberExpression", + "start": 1226, + "end": 1242, + "loc": { + "start": { + "line": 55, + "column": 34 + }, + "end": { + "line": 55, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 1226, + "end": 1236, + "loc": { + "start": { + "line": 55, + "column": 34 + }, + "end": { + "line": 55, + "column": 44 + }, + "identifierName": "currCanvas" + }, + "name": "currCanvas" + }, + "property": { + "type": "Identifier", + "start": 1237, + "end": 1242, + "loc": { + "start": { + "line": 55, + "column": 45 + }, + "end": { + "line": 55, + "column": 50 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 1246, + "end": 1283, + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 56, + "column": 39 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1250, + "end": 1282, + "loc": { + "start": { + "line": 56, + "column": 6 }, - "value": 0 + "end": { + "line": 56, + "column": 38 + } }, - { - "type": "NumericLiteral", - "start": 1991, - "end": 1994, + "id": { + "type": "Identifier", + "start": 1250, + "end": 1254, "loc": { "start": { - "line": 77, - "column": 33 + "line": 56, + "column": 6 }, "end": { - "line": 77, - "column": 36 - } - }, - "extra": { - "rawValue": 0, - "raw": "0.0" + "line": 56, + "column": 10 + }, + "identifierName": "left" }, - "value": 0 + "name": "left" }, - { - "type": "NumericLiteral", - "start": 1996, - "end": 1999, + "init": { + "type": "MemberExpression", + "start": 1257, + "end": 1282, "loc": { "start": { - "line": 77, - "column": 38 + "line": 56, + "column": 13 }, "end": { - "line": 77, - "column": 41 + "line": 56, + "column": 38 } }, - "extra": { - "rawValue": 0, - "raw": "0.0" + "object": { + "type": "Identifier", + "start": 1257, + "end": 1264, + "loc": { + "start": { + "line": 56, + "column": 13 + }, + "end": { + "line": 56, + "column": 20 + }, + "identifierName": "cDefine" + }, + "name": "cDefine" }, - "value": 0 + "property": { + "type": "Identifier", + "start": 1265, + "end": 1282, + "loc": { + "start": { + "line": 56, + "column": 21 + }, + "end": { + "line": 56, + "column": 38 + }, + "identifierName": "VIEW_LOGICAL_LEFT" + }, + "name": "VIEW_LOGICAL_LEFT" + }, + "computed": false } - ] - } + } + ], + "kind": "let" }, { - "type": "ExpressionStatement", - "start": 2004, - "end": 2039, + "type": "VariableDeclaration", + "start": 1286, + "end": 1325, "loc": { "start": { - "line": 78, + "line": 57, "column": 2 }, "end": { - "line": 78, - "column": 37 + "line": 57, + "column": 41 } }, - "expression": { - "type": "CallExpression", - "start": 2004, - "end": 2038, - "loc": { - "start": { - "line": 78, - "column": 2 - }, - "end": { - "line": 78, - "column": 36 - } - }, - "callee": { - "type": "Identifier", - "start": 2004, - "end": 2015, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1290, + "end": 1324, "loc": { "start": { - "line": 78, - "column": 2 + "line": 57, + "column": 6 }, "end": { - "line": 78, - "column": 13 + "line": 57, + "column": 40 + } + }, + "id": { + "type": "Identifier", + "start": 1290, + "end": 1295, + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 11 + }, + "identifierName": "right" }, - "identifierName": "changeModel" + "name": "right" }, - "name": "changeModel" - }, - "arguments": [ - { + "init": { "type": "MemberExpression", - "start": 2016, - "end": 2037, + "start": 1298, + "end": 1324, "loc": { "start": { - "line": 78, + "line": 57, "column": 14 }, "end": { - "line": 78, - "column": 35 + "line": 57, + "column": 40 } }, "object": { - "type": "MemberExpression", - "start": 2016, - "end": 2028, + "type": "Identifier", + "start": 1298, + "end": 1305, "loc": { "start": { - "line": 78, + "line": 57, "column": 14 }, "end": { - "line": 78, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 2016, - "end": 2022, - "loc": { - "start": { - "line": 78, - "column": 14 - }, - "end": { - "line": 78, - "column": 20 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 2023, - "end": 2028, - "loc": { - "start": { - "line": 78, - "column": 21 - }, - "end": { - "line": 78, - "column": 26 - }, - "identifierName": "model" + "line": 57, + "column": 21 }, - "name": "model" + "identifierName": "cDefine" }, - "computed": false + "name": "cDefine" }, "property": { "type": "Identifier", - "start": 2029, - "end": 2037, + "start": 1306, + "end": 1324, "loc": { "start": { - "line": 78, - "column": 27 + "line": 57, + "column": 22 }, "end": { - "line": 78, - "column": 35 + "line": 57, + "column": 40 }, - "identifierName": "jsonPath" + "identifierName": "VIEW_LOGICAL_RIGHT" }, - "name": "jsonPath" + "name": "VIEW_LOGICAL_RIGHT" }, "computed": false } - ] - } + } + ], + "kind": "let" }, { - "type": "ExpressionStatement", - "start": 2042, - "end": 2054, + "type": "VariableDeclaration", + "start": 1328, + "end": 1348, "loc": { "start": { - "line": 79, + "line": 58, "column": 2 }, "end": { - "line": 79, - "column": 14 + "line": 58, + "column": 22 } }, - "expression": { - "type": "CallExpression", - "start": 2042, - "end": 2053, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 13 - } - }, - "callee": { - "type": "Identifier", - "start": 2042, - "end": 2051, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1332, + "end": 1347, "loc": { "start": { - "line": 79, - "column": 2 + "line": 58, + "column": 6 }, "end": { - "line": 79, - "column": 11 - }, - "identifierName": "startDraw" + "line": 58, + "column": 21 + } }, - "name": "startDraw" - }, - "arguments": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Main function of live2d-widget\n * @return {null}\n ", - "start": 1004, - "end": 1063, - "loc": { - "start": { - "line": 43, - "column": 0 + "id": { + "type": "Identifier", + "start": 1332, + "end": 1338, + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 12 + }, + "identifierName": "bottom" + }, + "name": "bottom" + }, + "init": { + "type": "UnaryExpression", + "start": 1341, + "end": 1347, + "loc": { + "start": { + "line": 58, + "column": 15 + }, + "end": { + "line": 58, + "column": 21 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 1342, + "end": 1347, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 21 + }, + "identifierName": "ratio" + }, + "name": "ratio" + }, + "extra": { + "parenthesizedArgument": false + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 1351, + "end": 1367, + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 59, + "column": 18 + } }, - "end": { - "line": 46, - "column": 3 + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1355, + "end": 1366, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 17 + } + }, + "id": { + "type": "Identifier", + "start": 1355, + "end": 1358, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 9 + }, + "identifierName": "top" + }, + "name": "top" + }, + "init": { + "type": "Identifier", + "start": 1361, + "end": 1366, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 17 + }, + "identifierName": "ratio" + }, + "name": "ratio" + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 1371, + "end": 1404, + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 61, + "column": 35 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1371, + "end": 1403, + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 61, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1371, + "end": 1381, + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 61, + "column": 12 + }, + "identifierName": "viewMatrix" + }, + "name": "viewMatrix" + }, + "right": { + "type": "NewExpression", + "start": 1384, + "end": 1403, + "loc": { + "start": { + "line": 61, + "column": 15 + }, + "end": { + "line": 61, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 1388, + "end": 1401, + "loc": { + "start": { + "line": 61, + "column": 19 + }, + "end": { + "line": 61, + "column": 32 + }, + "identifierName": "L2DViewMatrix" + }, + "name": "L2DViewMatrix" + }, + "arguments": [] + } } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Return the data URI of current frame, MINE type is image/png.\n * @return {DOMString} Which contains data URI, MINE type is image/png\n * @example\n * You can use codes below to let the user download the current frame\n *\n * let link = document.createElement('a');\n * document.body.appendChild(link);\n * link.setAttribute('type', 'hidden');\n * link.href = L2Dwidget.captureFrame();\n * link.download = 'live2d.png';\n * link.click();\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n * @todo Seems feedback empty image only\n ", - "start": 2058, - "end": 2667, - "loc": { - "start": { - "line": 82, - "column": 0 + }, + { + "type": "ExpressionStatement", + "start": 1408, + "end": 1459, + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 63, + "column": 53 + } }, - "end": { - "line": 97, - "column": 3 + "expression": { + "type": "CallExpression", + "start": 1408, + "end": 1458, + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 63, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1408, + "end": 1432, + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 63, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1408, + "end": 1418, + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 63, + "column": 12 + }, + "identifierName": "viewMatrix" + }, + "name": "viewMatrix" + }, + "property": { + "type": "Identifier", + "start": 1419, + "end": 1432, + "loc": { + "start": { + "line": 63, + "column": 13 + }, + "end": { + "line": 63, + "column": 26 + }, + "identifierName": "setScreenRect" + }, + "name": "setScreenRect" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1433, + "end": 1437, + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 31 + }, + "identifierName": "left" + }, + "name": "left" + }, + { + "type": "Identifier", + "start": 1439, + "end": 1444, + "loc": { + "start": { + "line": 63, + "column": 33 + }, + "end": { + "line": 63, + "column": 38 + }, + "identifierName": "right" + }, + "name": "right" + }, + { + "type": "Identifier", + "start": 1446, + "end": 1452, + "loc": { + "start": { + "line": 63, + "column": 40 + }, + "end": { + "line": 63, + "column": 46 + }, + "identifierName": "bottom" + }, + "name": "bottom" + }, + { + "type": "Identifier", + "start": 1454, + "end": 1457, + "loc": { + "start": { + "line": 63, + "column": 48 + }, + "end": { + "line": 63, + "column": 51 + }, + "identifierName": "top" + }, + "name": "top" + } + ] } - } - } - ] + }, + { + "type": "ExpressionStatement", + "start": 1463, + "end": 1629, + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 68, + "column": 34 + } + }, + "expression": { + "type": "CallExpression", + "start": 1463, + "end": 1628, + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 68, + "column": 33 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1463, + "end": 1490, + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 65, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 1463, + "end": 1473, + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 65, + "column": 12 + }, + "identifierName": "viewMatrix" + }, + "name": "viewMatrix" + }, + "property": { + "type": "Identifier", + "start": 1474, + "end": 1490, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 29 + }, + "identifierName": "setMaxScreenRect" + }, + "name": "setMaxScreenRect" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1491, + "end": 1520, + "loc": { + "start": { + "line": 65, + "column": 30 + }, + "end": { + "line": 65, + "column": 59 + } + }, + "object": { + "type": "Identifier", + "start": 1491, + "end": 1498, + "loc": { + "start": { + "line": 65, + "column": 30 + }, + "end": { + "line": 65, + "column": 37 + }, + "identifierName": "cDefine" + }, + "name": "cDefine" + }, + "property": { + "type": "Identifier", + "start": 1499, + "end": 1520, + "loc": { + "start": { + "line": 65, + "column": 38 + }, + "end": { + "line": 65, + "column": 59 + }, + "identifierName": "VIEW_LOGICAL_MAX_LEFT" + }, + "name": "VIEW_LOGICAL_MAX_LEFT" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1526, + "end": 1556, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 66, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 1526, + "end": 1533, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 66, + "column": 11 + }, + "identifierName": "cDefine" + }, + "name": "cDefine" + }, + "property": { + "type": "Identifier", + "start": 1534, + "end": 1556, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 34 + }, + "identifierName": "VIEW_LOGICAL_MAX_RIGHT" + }, + "name": "VIEW_LOGICAL_MAX_RIGHT" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1562, + "end": 1593, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 1562, + "end": 1569, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 11 + }, + "identifierName": "cDefine" + }, + "name": "cDefine" + }, + "property": { + "type": "Identifier", + "start": 1570, + "end": 1593, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 35 + }, + "identifierName": "VIEW_LOGICAL_MAX_BOTTOM" + }, + "name": "VIEW_LOGICAL_MAX_BOTTOM" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1599, + "end": 1627, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1599, + "end": 1606, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 11 + }, + "identifierName": "cDefine" + }, + "name": "cDefine" + }, + "property": { + "type": "Identifier", + "start": 1607, + "end": 1627, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 32 + }, + "identifierName": "VIEW_LOGICAL_MAX_TOP" + }, + "name": "VIEW_LOGICAL_MAX_TOP" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1633, + "end": 1664, + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 70, + "column": 33 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1633, + "end": 1663, + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 70, + "column": 32 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1633, + "end": 1643, + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 70, + "column": 12 + }, + "identifierName": "projMatrix" + }, + "name": "projMatrix" + }, + "right": { + "type": "NewExpression", + "start": 1646, + "end": 1663, + "loc": { + "start": { + "line": 70, + "column": 15 + }, + "end": { + "line": 70, + "column": 32 + } + }, + "callee": { + "type": "Identifier", + "start": 1650, + "end": 1661, + "loc": { + "start": { + "line": 70, + "column": 19 + }, + "end": { + "line": 70, + "column": 30 + }, + "identifierName": "L2DMatrix44" + }, + "name": "L2DMatrix44" + }, + "arguments": [] + } + } + }, + { + "type": "ExpressionStatement", + "start": 1667, + "end": 1731, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 66 + } + }, + "expression": { + "type": "CallExpression", + "start": 1667, + "end": 1730, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1667, + "end": 1687, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 1667, + "end": 1677, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 12 + }, + "identifierName": "projMatrix" + }, + "name": "projMatrix" + }, + "property": { + "type": "Identifier", + "start": 1678, + "end": 1687, + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 71, + "column": 22 + }, + "identifierName": "multScale" + }, + "name": "multScale" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 1688, + "end": 1689, + "loc": { + "start": { + "line": 71, + "column": 23 + }, + "end": { + "line": 71, + "column": 24 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + { + "type": "BinaryExpression", + "start": 1692, + "end": 1728, + "loc": { + "start": { + "line": 71, + "column": 27 + }, + "end": { + "line": 71, + "column": 63 + } + }, + "left": { + "type": "MemberExpression", + "start": 1692, + "end": 1708, + "loc": { + "start": { + "line": 71, + "column": 27 + }, + "end": { + "line": 71, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 1692, + "end": 1702, + "loc": { + "start": { + "line": 71, + "column": 27 + }, + "end": { + "line": 71, + "column": 37 + }, + "identifierName": "currCanvas" + }, + "name": "currCanvas" + }, + "property": { + "type": "Identifier", + "start": 1703, + "end": 1708, + "loc": { + "start": { + "line": 71, + "column": 38 + }, + "end": { + "line": 71, + "column": 43 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + }, + "operator": "/", + "right": { + "type": "MemberExpression", + "start": 1711, + "end": 1728, + "loc": { + "start": { + "line": 71, + "column": 46 + }, + "end": { + "line": 71, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 1711, + "end": 1721, + "loc": { + "start": { + "line": 71, + "column": 46 + }, + "end": { + "line": 71, + "column": 56 + }, + "identifierName": "currCanvas" + }, + "name": "currCanvas" + }, + "property": { + "type": "Identifier", + "start": 1722, + "end": 1728, + "loc": { + "start": { + "line": 71, + "column": 57 + }, + "end": { + "line": 71, + "column": 63 + }, + "identifierName": "height" + }, + "name": "height" + }, + "computed": false + }, + "extra": { + "parenthesized": true, + "parenStart": 1691 + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1735, + "end": 1770, + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 73, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1735, + "end": 1769, + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 73, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1735, + "end": 1749, + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 73, + "column": 16 + }, + "identifierName": "deviceToScreen" + }, + "name": "deviceToScreen" + }, + "right": { + "type": "NewExpression", + "start": 1752, + "end": 1769, + "loc": { + "start": { + "line": 73, + "column": 19 + }, + "end": { + "line": 73, + "column": 36 + } + }, + "callee": { + "type": "Identifier", + "start": 1756, + "end": 1767, + "loc": { + "start": { + "line": 73, + "column": 23 + }, + "end": { + "line": 73, + "column": 34 + }, + "identifierName": "L2DMatrix44" + }, + "name": "L2DMatrix44" + }, + "arguments": [] + } + } + }, + { + "type": "ExpressionStatement", + "start": 1773, + "end": 1853, + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 74, + "column": 82 + } + }, + "expression": { + "type": "CallExpression", + "start": 1773, + "end": 1852, + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 74, + "column": 81 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1773, + "end": 1801, + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 74, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 1773, + "end": 1787, + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 74, + "column": 16 + }, + "identifierName": "deviceToScreen" + }, + "name": "deviceToScreen" + }, + "property": { + "type": "Identifier", + "start": 1788, + "end": 1801, + "loc": { + "start": { + "line": 74, + "column": 17 + }, + "end": { + "line": 74, + "column": 30 + }, + "identifierName": "multTranslate" + }, + "name": "multTranslate" + }, + "computed": false + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 1802, + "end": 1825, + "loc": { + "start": { + "line": 74, + "column": 31 + }, + "end": { + "line": 74, + "column": 54 + } + }, + "left": { + "type": "UnaryExpression", + "start": 1802, + "end": 1819, + "loc": { + "start": { + "line": 74, + "column": 31 + }, + "end": { + "line": 74, + "column": 48 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 1803, + "end": 1819, + "loc": { + "start": { + "line": 74, + "column": 32 + }, + "end": { + "line": 74, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 1803, + "end": 1813, + "loc": { + "start": { + "line": 74, + "column": 32 + }, + "end": { + "line": 74, + "column": 42 + }, + "identifierName": "currCanvas" + }, + "name": "currCanvas" + }, + "property": { + "type": "Identifier", + "start": 1814, + "end": 1819, + "loc": { + "start": { + "line": 74, + "column": 43 + }, + "end": { + "line": 74, + "column": 48 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 1822, + "end": 1825, + "loc": { + "start": { + "line": 74, + "column": 51 + }, + "end": { + "line": 74, + "column": 54 + } + }, + "extra": { + "rawValue": 2, + "raw": "2.0" + }, + "value": 2 + } + }, + { + "type": "BinaryExpression", + "start": 1827, + "end": 1851, + "loc": { + "start": { + "line": 74, + "column": 56 + }, + "end": { + "line": 74, + "column": 80 + } + }, + "left": { + "type": "UnaryExpression", + "start": 1827, + "end": 1845, + "loc": { + "start": { + "line": 74, + "column": 56 + }, + "end": { + "line": 74, + "column": 74 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 1828, + "end": 1845, + "loc": { + "start": { + "line": 74, + "column": 57 + }, + "end": { + "line": 74, + "column": 74 + } + }, + "object": { + "type": "Identifier", + "start": 1828, + "end": 1838, + "loc": { + "start": { + "line": 74, + "column": 57 + }, + "end": { + "line": 74, + "column": 67 + }, + "identifierName": "currCanvas" + }, + "name": "currCanvas" + }, + "property": { + "type": "Identifier", + "start": 1839, + "end": 1845, + "loc": { + "start": { + "line": 74, + "column": 68 + }, + "end": { + "line": 74, + "column": 74 + }, + "identifierName": "height" + }, + "name": "height" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 1848, + "end": 1851, + "loc": { + "start": { + "line": 74, + "column": 77 + }, + "end": { + "line": 74, + "column": 80 + } + }, + "extra": { + "rawValue": 2, + "raw": "2.0" + }, + "value": 2 + } + } + ] + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " #32", + "start": 1855, + "end": 1861, + "loc": { + "start": { + "line": 74, + "column": 84 + }, + "end": { + "line": 74, + "column": 90 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1864, + "end": 1935, + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 75, + "column": 73 + } + }, + "expression": { + "type": "CallExpression", + "start": 1864, + "end": 1934, + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 75, + "column": 72 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1864, + "end": 1888, + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 75, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1864, + "end": 1878, + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 75, + "column": 16 + }, + "identifierName": "deviceToScreen" + }, + "name": "deviceToScreen", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1879, + "end": 1888, + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 75, + "column": 26 + }, + "identifierName": "multScale" + }, + "name": "multScale" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 1889, + "end": 1909, + "loc": { + "start": { + "line": 75, + "column": 27 + }, + "end": { + "line": 75, + "column": 47 + } + }, + "left": { + "type": "NumericLiteral", + "start": 1889, + "end": 1890, + "loc": { + "start": { + "line": 75, + "column": 27 + }, + "end": { + "line": 75, + "column": 28 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + "operator": "/", + "right": { + "type": "MemberExpression", + "start": 1893, + "end": 1909, + "loc": { + "start": { + "line": 75, + "column": 31 + }, + "end": { + "line": 75, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 1893, + "end": 1903, + "loc": { + "start": { + "line": 75, + "column": 31 + }, + "end": { + "line": 75, + "column": 41 + }, + "identifierName": "currCanvas" + }, + "name": "currCanvas" + }, + "property": { + "type": "Identifier", + "start": 1904, + "end": 1909, + "loc": { + "start": { + "line": 75, + "column": 42 + }, + "end": { + "line": 75, + "column": 47 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + }, + { + "type": "BinaryExpression", + "start": 1911, + "end": 1933, + "loc": { + "start": { + "line": 75, + "column": 49 + }, + "end": { + "line": 75, + "column": 71 + } + }, + "left": { + "type": "UnaryExpression", + "start": 1911, + "end": 1913, + "loc": { + "start": { + "line": 75, + "column": 49 + }, + "end": { + "line": 75, + "column": 51 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "NumericLiteral", + "start": 1912, + "end": 1913, + "loc": { + "start": { + "line": 75, + "column": 50 + }, + "end": { + "line": 75, + "column": 51 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "/", + "right": { + "type": "MemberExpression", + "start": 1916, + "end": 1933, + "loc": { + "start": { + "line": 75, + "column": 54 + }, + "end": { + "line": 75, + "column": 71 + } + }, + "object": { + "type": "Identifier", + "start": 1916, + "end": 1926, + "loc": { + "start": { + "line": 75, + "column": 54 + }, + "end": { + "line": 75, + "column": 64 + }, + "identifierName": "currCanvas" + }, + "name": "currCanvas" + }, + "property": { + "type": "Identifier", + "start": 1927, + "end": 1933, + "loc": { + "start": { + "line": 75, + "column": 65 + }, + "end": { + "line": 75, + "column": 71 + }, + "identifierName": "height" + }, + "name": "height" + }, + "computed": false + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " #32", + "start": 1855, + "end": 1861, + "loc": { + "start": { + "line": 74, + "column": 84 + }, + "end": { + "line": 74, + "column": 90 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " #32", + "start": 1937, + "end": 1943, + "loc": { + "start": { + "line": 75, + "column": 75 + }, + "end": { + "line": 75, + "column": 81 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1948, + "end": 1972, + "loc": { + "start": { + "line": 78, + "column": 2 + }, + "end": { + "line": 78, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 1948, + "end": 1971, + "loc": { + "start": { + "line": 78, + "column": 2 + }, + "end": { + "line": 78, + "column": 25 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1948, + "end": 1960, + "loc": { + "start": { + "line": 78, + "column": 2 + }, + "end": { + "line": 78, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 1948, + "end": 1954, + "loc": { + "start": { + "line": 78, + "column": 2 + }, + "end": { + "line": 78, + "column": 8 + }, + "identifierName": "Live2D" + }, + "name": "Live2D", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1955, + "end": 1960, + "loc": { + "start": { + "line": 78, + "column": 9 + }, + "end": { + "line": 78, + "column": 14 + }, + "identifierName": "setGL" + }, + "name": "setGL" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 1961, + "end": 1970, + "loc": { + "start": { + "line": 78, + "column": 15 + }, + "end": { + "line": 78, + "column": 24 + }, + "identifierName": "currWebGL" + }, + "name": "currWebGL" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " #32", + "start": 1937, + "end": 1943, + "loc": { + "start": { + "line": 75, + "column": 75 + }, + "end": { + "line": 75, + "column": 81 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1975, + "end": 2016, + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 79, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 1975, + "end": 2015, + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 79, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1975, + "end": 1995, + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 79, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 1975, + "end": 1984, + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 79, + "column": 11 + }, + "identifierName": "currWebGL" + }, + "name": "currWebGL" + }, + "property": { + "type": "Identifier", + "start": 1985, + "end": 1995, + "loc": { + "start": { + "line": 79, + "column": 12 + }, + "end": { + "line": 79, + "column": 22 + }, + "identifierName": "clearColor" + }, + "name": "clearColor" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 1996, + "end": 1999, + "loc": { + "start": { + "line": 79, + "column": 23 + }, + "end": { + "line": 79, + "column": 26 + } + }, + "extra": { + "rawValue": 0, + "raw": "0.0" + }, + "value": 0 + }, + { + "type": "NumericLiteral", + "start": 2001, + "end": 2004, + "loc": { + "start": { + "line": 79, + "column": 28 + }, + "end": { + "line": 79, + "column": 31 + } + }, + "extra": { + "rawValue": 0, + "raw": "0.0" + }, + "value": 0 + }, + { + "type": "NumericLiteral", + "start": 2006, + "end": 2009, + "loc": { + "start": { + "line": 79, + "column": 33 + }, + "end": { + "line": 79, + "column": 36 + } + }, + "extra": { + "rawValue": 0, + "raw": "0.0" + }, + "value": 0 + }, + { + "type": "NumericLiteral", + "start": 2011, + "end": 2014, + "loc": { + "start": { + "line": 79, + "column": 38 + }, + "end": { + "line": 79, + "column": 41 + } + }, + "extra": { + "rawValue": 0, + "raw": "0.0" + }, + "value": 0 + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 2019, + "end": 2054, + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 80, + "column": 37 + } + }, + "expression": { + "type": "CallExpression", + "start": 2019, + "end": 2053, + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 80, + "column": 36 + } + }, + "callee": { + "type": "Identifier", + "start": 2019, + "end": 2030, + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 80, + "column": 13 + }, + "identifierName": "changeModel" + }, + "name": "changeModel" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2031, + "end": 2052, + "loc": { + "start": { + "line": 80, + "column": 14 + }, + "end": { + "line": 80, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 2031, + "end": 2043, + "loc": { + "start": { + "line": 80, + "column": 14 + }, + "end": { + "line": 80, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 2031, + "end": 2037, + "loc": { + "start": { + "line": 80, + "column": 14 + }, + "end": { + "line": 80, + "column": 20 + }, + "identifierName": "config" + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 2038, + "end": 2043, + "loc": { + "start": { + "line": 80, + "column": 21 + }, + "end": { + "line": 80, + "column": 26 + }, + "identifierName": "model" + }, + "name": "model" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2044, + "end": 2052, + "loc": { + "start": { + "line": 80, + "column": 27 + }, + "end": { + "line": 80, + "column": 35 + }, + "identifierName": "jsonPath" + }, + "name": "jsonPath" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 2057, + "end": 2069, + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 81, + "column": 14 + } + }, + "expression": { + "type": "CallExpression", + "start": 2057, + "end": 2068, + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 81, + "column": 13 + } + }, + "callee": { + "type": "Identifier", + "start": 2057, + "end": 2066, + "loc": { + "start": { + "line": 81, + "column": 2 + }, + "end": { + "line": 81, + "column": 11 + }, + "identifierName": "startDraw" + }, + "name": "startDraw" + }, + "arguments": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Main function of live2d-widget\n * @return {null}\n ", + "start": 1036, + "end": 1095, + "loc": { + "start": { + "line": 44, + "column": 0 + }, + "end": { + "line": 47, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Capture current frame to png file\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n * @example\n * You can use codes below to let the user download the current frame\n *\n * L2Dwidget.captureFrame(\n * function(e){\n * let link = document.createElement('a');\n * document.body.appendChild(link);\n * link.setAttribute('type', 'hidden');\n * link.href = e;\n * link.download = 'live2d.png';\n * link.click();\n * }\n * );\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n ", + "start": 2075, + "end": 2711, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + } + ] + }, + "specifiers": null, + "source": null, + "leadingComments": null + }, + { + "type": "ExportNamedDeclaration", + "start": 10931, + "end": 10971, + "loc": { + "start": { + "line": 425, + "column": 0 + }, + "end": { + "line": 428, + "column": 1 + } + }, + "declaration": { + "type": "FunctionDeclaration", + "start": 2713, + "end": 2776, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 109, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 2722, + "end": 2734, + "loc": { + "start": { + "line": 107, + "column": 9 + }, + "end": { + "line": 107, + "column": 21 + }, + "identifierName": "captureFrame" + }, + "name": "captureFrame", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2735, + "end": 2743, + "loc": { + "start": { + "line": 107, + "column": 22 + }, + "end": { + "line": 107, + "column": 30 + }, + "identifierName": "callback" + }, + "name": "callback" + } + ], + "body": { + "type": "BlockStatement", + "start": 2744, + "end": 2776, + "loc": { + "start": { + "line": 107, + "column": 31 + }, + "end": { + "line": 109, + "column": 1 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2748, + "end": 2774, + "loc": { + "start": { + "line": 108, + "column": 2 + }, + "end": { + "line": 108, + "column": 28 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2748, + "end": 2773, + "loc": { + "start": { + "line": 108, + "column": 2 + }, + "end": { + "line": 108, + "column": 27 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2748, + "end": 2762, + "loc": { + "start": { + "line": 108, + "column": 2 + }, + "end": { + "line": 108, + "column": 16 + }, + "identifierName": "captureFrameCB" + }, + "name": "captureFrameCB" + }, + "right": { + "type": "Identifier", + "start": 2765, + "end": 2773, + "loc": { + "start": { + "line": 108, + "column": 19 + }, + "end": { + "line": 108, + "column": 27 + }, + "identifierName": "callback" + }, + "name": "callback" + } + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Capture current frame to png file\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n * @example\n * You can use codes below to let the user download the current frame\n *\n * L2Dwidget.captureFrame(\n * function(e){\n * let link = document.createElement('a');\n * document.body.appendChild(link);\n * link.setAttribute('type', 'hidden');\n * link.href = e;\n * link.download = 'live2d.png';\n * link.click();\n * }\n * );\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n ", + "start": 2075, + "end": 2711, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "specifiers": null, + "source": null, + "leadingComments": null + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * @description The main part of live2d-widget\n ", + "start": 0, + "end": 54, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Main function of live2d-widget\n * @return {null}\n ", + "start": 1036, + "end": 1095, + "loc": { + "start": { + "line": 44, + "column": 0 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " #32", + "start": 1855, + "end": 1861, + "loc": { + "start": { + "line": 74, + "column": 84 + }, + "end": { + "line": 74, + "column": 90 + } + } + }, + { + "type": "CommentLine", + "value": " #32", + "start": 1937, + "end": 1943, + "loc": { + "start": { + "line": 75, + "column": 75 + }, + "end": { + "line": 75, + "column": 81 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Capture current frame to png file\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n * @example\n * You can use codes below to let the user download the current frame\n *\n * L2Dwidget.captureFrame(\n * function(e){\n * let link = document.createElement('a');\n * document.body.appendChild(link);\n * link.setAttribute('type', 'hidden');\n * link.href = e;\n * link.download = 'live2d.png';\n * link.click();\n * }\n * );\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n ", + "start": 2075, + "end": 2711, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " 更换模型", + "start": 4442, + "end": 4449, + "loc": { + "start": { + "line": 172, + "column": 31 + }, + "end": { + "line": 172, + "column": 38 + } + } + }, + { + "type": "CommentLine", + "value": " 现在仍有多模型支持,稍后可以精简", + "start": 4507, + "end": 4526, + "loc": { + "start": { + "line": 175, + "column": 23 + }, + "end": { + "line": 175, + "column": 42 + } + } + }, + { + "type": "CommentBlock", + "value": "\nfunction transformRange(center, transform, range)\n{\n let a = {\n x: transform.x - center.x,\n y: transform.y - center.y\n }\n let r = Math.sqrt(Math.pow(a.x,2) + Math.pow(a.y,2));\n if (r > range) {\n a = {\n x: a.x / r * range + center.x,\n y: a.y / r * range + center.y\n };\n return a;\n } else {\n return transform;\n }\n}\n", + "start": 4650, + "end": 5050, + "loc": { + "start": { + "line": 182, + "column": 0 + }, + "end": { + "line": 200, + "column": 2 + } + } + }, + { + "type": "CommentLine", + "value": " log but seems ok", + "start": 8988, + "end": 9007, + "loc": { + "start": { + "line": 340, + "column": 4 + }, + "end": { + "line": 340, + "column": 23 + } + } + }, + { + "type": "CommentLine", + "value": " console.log(\"ecx=\" + event.clientX + \" ecy=\" + event.clientY + \" sx=\" + sx + \" sy=\" + sy);", + "start": 9012, + "end": 9105, + "loc": { + "start": { + "line": 341, + "column": 4 + }, + "end": { + "line": 341, + "column": 97 + } + } + }, + { + "type": "CommentLine", + "value": " seems ok here", + "start": 9139, + "end": 9155, + "loc": { + "start": { + "line": 343, + "column": 32 + }, + "end": { + "line": 343, + "column": 48 + } + } + }, + { + "type": "CommentLine", + "value": "e.preventDefault();", + "start": 9829, + "end": 9850, + "loc": { + "start": { + "line": 374, + "column": 4 + }, + "end": { + "line": 374, + "column": 25 + } + } + }, + { + "type": "CommentLine", + "value": " lookFront();", + "start": 10073, + "end": 10088, + "loc": { + "start": { + "line": 381, + "column": 8 + }, + "end": { + "line": 381, + "column": 23 + } + } + }, + { + "type": "CommentLine", + "value": " onClick(touch);", + "start": 10314, + "end": 10332, + "loc": { + "start": { + "line": 392, + "column": 8 + }, + "end": { + "line": 392, + "column": 26 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * @description The main part of live2d-widget\n ", + "start": 0, + "end": 54, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 57, + "end": 63, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 64, + "end": 65, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 66, + "end": 72, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 15 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 73, + "end": 74, + "loc": { + "start": { + "line": 6, + "column": 16 + }, + "end": { + "line": 6, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 75, + "end": 79, + "loc": { + "start": { + "line": 6, + "column": 18 + }, + "end": { + "line": 6, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./config/configMgr", + "start": 80, + "end": 100, + "loc": { + "start": { + "line": 6, + "column": 23 + }, + "end": { + "line": 6, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 100, + "end": 101, + "loc": { + "start": { + "line": 6, + "column": 43 + }, + "end": { + "line": 6, + "column": 44 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 102, + "end": 108, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 109, + "end": 110, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "createElement", + "start": 111, + "end": 124, + "loc": { + "start": { + "line": 7, + "column": 9 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 124, + "end": 125, + "loc": { + "start": { + "line": 7, + "column": 22 + }, + "end": { + "line": 7, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "currWebGL", + "start": 126, + "end": 135, + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 135, + "end": 136, + "loc": { + "start": { + "line": 7, + "column": 33 + }, + "end": { + "line": 7, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "currCanvas", + "start": 137, + "end": 147, + "loc": { + "start": { + "line": 7, + "column": 35 + }, + "end": { + "line": 7, + "column": 45 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 148, + "end": 149, + "loc": { + "start": { + "line": 7, + "column": 46 + }, + "end": { + "line": 7, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 150, + "end": 154, + "loc": { + "start": { + "line": 7, + "column": 48 + }, + "end": { + "line": 7, + "column": 52 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./elementMgr", + "start": 155, + "end": 169, + "loc": { + "start": { + "line": 7, + "column": 53 + }, + "end": { + "line": 7, + "column": 67 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 169, + "end": 170, + "loc": { + "start": { + "line": 7, + "column": 67 + }, + "end": { + "line": 7, + "column": 68 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 171, + "end": 177, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 178, + "end": 179, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "UtSystem", + "start": 180, + "end": 188, + "loc": { + "start": { + "line": 8, + "column": 9 + }, + "end": { + "line": 8, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 188, + "end": 189, + "loc": { + "start": { + "line": 8, + "column": 17 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "UtDebug", + "start": 199, + "end": 206, + "loc": { + "start": { + "line": 9, + "column": 9 + }, + "end": { + "line": 9, + "column": 16 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 206, + "end": 207, + "loc": { + "start": { + "line": 9, + "column": 16 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "LDTransform", + "start": 217, + "end": 228, + "loc": { + "start": { + "line": 10, + "column": 9 + }, + "end": { + "line": 10, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 228, + "end": 229, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 10, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "LDGL", + "start": 239, + "end": 243, + "loc": { + "start": { + "line": 11, + "column": 9 + }, + "end": { + "line": 11, + "column": 13 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 243, + "end": 244, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Live2D", + "start": 254, + "end": 260, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 15 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 260, + "end": 261, + "loc": { + "start": { + "line": 12, + "column": 15 + }, + "end": { + "line": 12, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Live2DModelWebGL", + "start": 271, + "end": 287, + "loc": { + "start": { + "line": 13, + "column": 9 + }, + "end": { + "line": 13, + "column": 25 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 287, + "end": 288, + "loc": { + "start": { + "line": 13, + "column": 25 + }, + "end": { + "line": 13, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Live2DModelJS", + "start": 298, + "end": 311, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 311, + "end": 312, + "loc": { + "start": { + "line": 14, + "column": 22 + }, + "end": { + "line": 14, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Live2DMotion", + "start": 322, + "end": 334, + "loc": { + "start": { + "line": 15, + "column": 9 + }, + "end": { + "line": 15, + "column": 21 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 334, + "end": 335, + "loc": { + "start": { + "line": 15, + "column": 21 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "MotionQueueManager", + "start": 345, + "end": 363, + "loc": { + "start": { + "line": 16, + "column": 9 + }, + "end": { + "line": 16, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 363, + "end": 364, + "loc": { + "start": { + "line": 16, + "column": 27 + }, + "end": { + "line": 16, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "PhysicsHair", + "start": 374, + "end": 385, + "loc": { + "start": { + "line": 17, + "column": 9 + }, + "end": { + "line": 17, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 385, + "end": 386, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AMotion", + "start": 396, + "end": 403, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 16 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 403, + "end": 404, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "PartsDataID", + "start": 414, + "end": 425, + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 425, + "end": 426, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DrawDataID", + "start": 436, + "end": 446, + "loc": { + "start": { + "line": 20, + "column": 9 + }, + "end": { + "line": 20, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 446, + "end": 447, + "loc": { + "start": { + "line": 20, + "column": 19 + }, + "end": { + "line": 20, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "BaseDataID", + "start": 457, + "end": 467, + "loc": { + "start": { + "line": 21, + "column": 9 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 467, + "end": 468, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ParamID", + "start": 478, + "end": 485, + "loc": { + "start": { + "line": 22, + "column": 9 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 486, + "end": 487, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 488, + "end": 492, + "loc": { + "start": { + "line": 22, + "column": 19 + }, + "end": { + "line": 22, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./lib/live2d.core", + "start": 493, + "end": 512, + "loc": { + "start": { + "line": 22, + "column": 24 + }, + "end": { + "line": 22, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 512, + "end": 513, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 44 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 514, + "end": 520, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 521, + "end": 522, + "loc": { + "start": { + "line": 23, + "column": 7 + }, + "end": { + "line": 23, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "L2DTargetPoint", + "start": 523, + "end": 537, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 537, + "end": 538, + "loc": { + "start": { + "line": 23, + "column": 23 + }, + "end": { + "line": 23, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "L2DViewMatrix", + "start": 539, + "end": 552, + "loc": { + "start": { + "line": 23, + "column": 25 + }, + "end": { + "line": 23, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 552, + "end": 553, + "loc": { + "start": { + "line": 23, + "column": 38 + }, + "end": { + "line": 23, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "L2DMatrix44", + "start": 554, + "end": 565, + "loc": { + "start": { + "line": 23, + "column": 40 + }, + "end": { + "line": 23, + "column": 51 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 566, + "end": 567, + "loc": { + "start": { + "line": 23, + "column": 52 + }, + "end": { + "line": 23, + "column": 53 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 568, + "end": 572, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 58 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./lib/Live2DFramework", + "start": 573, + "end": 596, + "loc": { + "start": { + "line": 23, + "column": 59 }, - "specifiers": null, - "source": null, - "leadingComments": null + "end": { + "line": 23, + "column": 82 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null }, - { - "type": "ExportNamedDeclaration", - "start": 10755, - "end": 10795, - "loc": { - "start": { - "line": 413, - "column": 0 - }, - "end": { - "line": 416, - "column": 1 - } - }, - "declaration": { - "type": "FunctionDeclaration", - "start": 2669, - "end": 2728, - "loc": { - "start": { - "line": 99, - "column": 0 - }, - "end": { - "line": 101, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 2678, - "end": 2690, - "loc": { - "start": { - "line": 99, - "column": 9 - }, - "end": { - "line": 99, - "column": 21 - }, - "identifierName": "captureFrame" - }, - "name": "captureFrame", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 2692, - "end": 2728, - "loc": { - "start": { - "line": 99, - "column": 23 - }, - "end": { - "line": 101, - "column": 1 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2696, - "end": 2726, - "loc": { - "start": { - "line": 100, - "column": 2 - }, - "end": { - "line": 100, - "column": 32 - } - }, - "argument": { - "type": "CallExpression", - "start": 2703, - "end": 2725, - "loc": { - "start": { - "line": 100, - "column": 9 - }, - "end": { - "line": 100, - "column": 31 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2703, - "end": 2723, - "loc": { - "start": { - "line": 100, - "column": 9 - }, - "end": { - "line": 100, - "column": 29 - } - }, - "object": { - "type": "Identifier", - "start": 2703, - "end": 2713, - "loc": { - "start": { - "line": 100, - "column": 9 - }, - "end": { - "line": 100, - "column": 19 - }, - "identifierName": "currCanvas" - }, - "name": "currCanvas" - }, - "property": { - "type": "Identifier", - "start": 2714, - "end": 2723, - "loc": { - "start": { - "line": 100, - "column": 20 - }, - "end": { - "line": 100, - "column": 29 - }, - "identifierName": "toDataURL" - }, - "name": "toDataURL" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Return the data URI of current frame, MINE type is image/png.\n * @return {DOMString} Which contains data URI, MINE type is image/png\n * @example\n * You can use codes below to let the user download the current frame\n *\n * let link = document.createElement('a');\n * document.body.appendChild(link);\n * link.setAttribute('type', 'hidden');\n * link.href = L2Dwidget.captureFrame();\n * link.download = 'live2d.png';\n * link.click();\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n * @todo Seems feedback empty image only\n ", - "start": 2058, - "end": 2667, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 97, - "column": 3 - } - } - } - ], - "trailingComments": [] + "start": 596, + "end": 597, + "loc": { + "start": { + "line": 23, + "column": 82 }, - "specifiers": null, - "source": null, - "leadingComments": null + "end": { + "line": 23, + "column": 83 + } } - ], - "directives": [] - }, - "comments": [ + }, { - "type": "CommentBlock", - "value": "*\n * @description The main part of live2d-widget\n ", - "start": 0, - "end": 54, + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 598, + "end": 604, "loc": { "start": { - "line": 1, + "line": 24, "column": 0 }, "end": { - "line": 3, - "column": 3 + "line": 24, + "column": 6 } } }, { - "type": "CommentBlock", - "value": "*\n * Main function of live2d-widget\n * @return {null}\n ", - "start": 1004, - "end": 1063, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 605, + "end": 606, "loc": { "start": { - "line": 43, - "column": 0 + "line": 24, + "column": 7 }, "end": { - "line": 46, - "column": 3 + "line": 24, + "column": 8 } } }, { - "type": "CommentLine", - "value": " #32", - "start": 1832, - "end": 1838, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cManager", + "start": 607, + "end": 615, "loc": { "start": { - "line": 72, - "column": 92 + "line": 24, + "column": 9 }, "end": { - "line": 72, - "column": 98 + "line": 24, + "column": 17 } } }, { - "type": "CommentLine", - "value": " #32", - "start": 1922, - "end": 1928, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 616, + "end": 617, "loc": { "start": { - "line": 73, - "column": 83 + "line": 24, + "column": 18 }, "end": { - "line": 73, - "column": 89 + "line": 24, + "column": 19 } } }, { - "type": "CommentBlock", - "value": "*\n * Return the data URI of current frame, MINE type is image/png.\n * @return {DOMString} Which contains data URI, MINE type is image/png\n * @example\n * You can use codes below to let the user download the current frame\n *\n * let link = document.createElement('a');\n * document.body.appendChild(link);\n * link.setAttribute('type', 'hidden');\n * link.href = L2Dwidget.captureFrame();\n * link.download = 'live2d.png';\n * link.click();\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n * @todo Seems feedback empty image only\n ", - "start": 2058, - "end": 2667, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 618, + "end": 622, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 24, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./cManager", + "start": 623, + "end": 635, + "loc": { + "start": { + "line": 24, + "column": 25 + }, + "end": { + "line": 24, + "column": 37 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 635, + "end": 636, + "loc": { + "start": { + "line": 24, + "column": 37 + }, + "end": { + "line": 24, + "column": 38 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 637, + "end": 643, "loc": { "start": { - "line": 82, + "line": 25, "column": 0 }, "end": { - "line": 97, - "column": 3 + "line": 25, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 644, + "end": 645, + "loc": { + "start": { + "line": 25, + "column": 7 + }, + "end": { + "line": 25, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "MatrixStack", + "start": 646, + "end": 657, + "loc": { + "start": { + "line": 25, + "column": 9 + }, + "end": { + "line": 25, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 658, + "end": 659, + "loc": { + "start": { + "line": 25, + "column": 21 + }, + "end": { + "line": 25, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 660, + "end": 664, + "loc": { + "start": { + "line": 25, + "column": 23 + }, + "end": { + "line": 25, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./utils/MatrixStack", + "start": 665, + "end": 686, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 49 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 686, + "end": 687, + "loc": { + "start": { + "line": 25, + "column": 49 + }, + "end": { + "line": 25, + "column": 50 } } }, { - "type": "CommentBlock", - "value": "\n if (currCanvas.addEventListener) {\n window.addEventListener(\"click\", mouseEvent);\n window.addEventListener(\"mousedown\", mouseEvent);\n window.addEventListener(\"mousemove\", mouseEvent);\n window.addEventListener(\"mouseup\", mouseEvent);\n document.addEventListener(\"mouseleave\", mouseEvent);\n window.addEventListener(\"touchstart\", touchEvent);\n window.addEventListener(\"touchend\", touchEvent);\n window.addEventListener(\"touchmove\", touchEvent);\n }", - "start": 2751, - "end": 3225, + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 688, + "end": 694, "loc": { "start": { - "line": 103, - "column": 21 + "line": 26, + "column": 0 }, "end": { - "line": 113, - "column": 5 + "line": 26, + "column": 6 } } }, { - "type": "CommentLine", - "value": " 更换模型", - "start": 4266, - "end": 4273, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 695, + "end": 696, "loc": { "start": { - "line": 160, - "column": 31 + "line": 26, + "column": 7 }, "end": { - "line": 160, - "column": 38 + "line": 26, + "column": 8 } } }, { - "type": "CommentLine", - "value": " 现在仍有多模型支持,稍后可以精简", - "start": 4331, - "end": 4350, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cDefine", + "start": 697, + "end": 704, "loc": { "start": { - "line": 163, - "column": 23 + "line": 26, + "column": 9 }, "end": { - "line": 163, - "column": 42 + "line": 26, + "column": 16 } } }, { - "type": "CommentBlock", - "value": "\nfunction transformRange(center, transform, range)\n{\n let a = {\n x: transform.x - center.x,\n y: transform.y - center.y\n }\n let r = Math.sqrt(Math.pow(a.x,2) + Math.pow(a.y,2));\n if (r > range) {\n a = {\n x: a.x / r * range + center.x,\n y: a.y / r * range + center.y\n };\n return a;\n } else {\n return transform;\n }\n}\n", - "start": 4474, - "end": 4874, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 705, + "end": 706, "loc": { "start": { - "line": 170, - "column": 0 + "line": 26, + "column": 17 }, "end": { - "line": 188, - "column": 2 + "line": 26, + "column": 18 } } }, { - "type": "CommentLine", - "value": " log but seems ok", - "start": 8812, - "end": 8831, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 707, + "end": 711, "loc": { "start": { - "line": 328, - "column": 4 + "line": 26, + "column": 19 }, "end": { - "line": 328, + "line": 26, "column": 23 } } }, { - "type": "CommentLine", - "value": " console.log(\"ecx=\" + event.clientX + \" ecy=\" + event.clientY + \" sx=\" + sx + \" sy=\" + sy);", - "start": 8836, - "end": 8929, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./cDefine", + "start": 712, + "end": 723, "loc": { "start": { - "line": 329, - "column": 4 + "line": 26, + "column": 24 }, "end": { - "line": 329, - "column": 97 + "line": 26, + "column": 35 } } }, { - "type": "CommentLine", - "value": " seems ok here", - "start": 8963, - "end": 8979, + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 723, + "end": 724, "loc": { "start": { - "line": 331, - "column": 32 + "line": 26, + "column": 35 }, "end": { - "line": 331, - "column": 48 + "line": 26, + "column": 36 } } }, { - "type": "CommentLine", - "value": "e.preventDefault();", - "start": 9653, - "end": 9674, + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 726, + "end": 729, "loc": { "start": { - "line": 362, - "column": 4 + "line": 28, + "column": 0 }, "end": { - "line": 362, - "column": 25 + "line": 28, + "column": 3 } } }, { - "type": "CommentLine", - "value": " lookFront();", - "start": 9897, - "end": 9912, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "live2DMgr", + "start": 730, + "end": 739, "loc": { "start": { - "line": 369, - "column": 8 + "line": 28, + "column": 4 }, "end": { - "line": 369, - "column": 23 + "line": 28, + "column": 13 } } }, { - "type": "CommentLine", - "value": " onClick(touch);", - "start": 10138, - "end": 10156, + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 740, + "end": 741, "loc": { "start": { - "line": 380, - "column": 8 + "line": 28, + "column": 14 }, "end": { - "line": 380, - "column": 26 + "line": 28, + "column": 15 } } - } - ], - "tokens": [ + }, { - "type": "CommentBlock", - "value": "*\n * @description The main part of live2d-widget\n ", - "start": 0, - "end": 54, + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 742, + "end": 745, "loc": { "start": { - "line": 1, - "column": 0 + "line": 28, + "column": 16 }, "end": { - "line": 3, - "column": 3 + "line": 28, + "column": 19 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31239,26 +34469,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 57, - "end": 63, + "value": "cManager", + "start": 746, + "end": 754, "loc": { "start": { - "line": 6, - "column": 0 + "line": 28, + "column": 20 }, "end": { - "line": 6, - "column": 6 + "line": 28, + "column": 28 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -31268,24 +34497,24 @@ "postfix": false, "binop": null }, - "start": 64, - "end": 65, + "start": 754, + "end": 755, "loc": { "start": { - "line": 6, - "column": 7 + "line": 28, + "column": 28 }, "end": { - "line": 6, - "column": 8 + "line": 28, + "column": 29 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31293,74 +34522,76 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 66, - "end": 72, + "start": 755, + "end": 756, "loc": { "start": { - "line": 6, - "column": 9 + "line": 28, + "column": 29 }, "end": { - "line": 6, - "column": 15 + "line": 28, + "column": 30 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 73, - "end": 74, + "start": 756, + "end": 757, "loc": { "start": { - "line": 6, - "column": 16 + "line": 28, + "column": 30 }, "end": { - "line": 6, - "column": 17 + "line": 28, + "column": 31 } } }, { "type": { - "label": "name", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "from", - "start": 75, - "end": 79, + "value": "let", + "start": 758, + "end": 761, "loc": { "start": { - "line": 6, - "column": 18 + "line": 29, + "column": 0 }, "end": { - "line": 6, - "column": 22 + "line": 29, + "column": 3 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31368,53 +34599,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "./config/configMgr", - "start": 80, - "end": 100, + "value": "captureFrameCB", + "start": 762, + "end": 776, "loc": { "start": { - "line": 6, - "column": 23 + "line": 29, + "column": 4 }, "end": { - "line": 6, - "column": 43 + "line": 29, + "column": 18 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 100, - "end": 101, + "value": "=", + "start": 777, + "end": 778, "loc": { "start": { - "line": 6, - "column": 43 + "line": 29, + "column": 19 }, "end": { - "line": 6, - "column": 44 + "line": 29, + "column": 20 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31422,45 +34652,73 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "value": "undefined", + "start": 779, + "end": 788, + "loc": { + "start": { + "line": 29, + "column": 21 + }, + "end": { + "line": 29, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "value": "import", - "start": 102, - "end": 108, + "start": 788, + "end": 789, "loc": { "start": { - "line": 7, - "column": 0 + "line": 29, + "column": 30 }, "end": { - "line": 7, - "column": 6 + "line": 29, + "column": 31 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 109, - "end": 110, + "value": "let", + "start": 790, + "end": 793, "loc": { "start": { - "line": 7, - "column": 7 + "line": 30, + "column": 0 }, "end": { - "line": 7, - "column": 8 + "line": 30, + "column": 3 } } }, @@ -31476,49 +34734,51 @@ "postfix": false, "binop": null }, - "value": "createElement", - "start": 111, - "end": 124, + "value": "isDrawStart", + "start": 794, + "end": 805, "loc": { "start": { - "line": 7, - "column": 9 + "line": 30, + "column": 4 }, "end": { - "line": 7, - "column": 22 + "line": 30, + "column": 15 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 124, - "end": 125, + "value": "=", + "start": 806, + "end": 807, "loc": { "start": { - "line": 7, - "column": 22 + "line": 30, + "column": 16 }, "end": { - "line": 7, - "column": 23 + "line": 30, + "column": 17 } } }, { "type": { - "label": "name", + "label": "false", + "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31526,25 +34786,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "currWebGL", - "start": 126, - "end": 135, + "value": "false", + "start": 808, + "end": 813, "loc": { "start": { - "line": 7, - "column": 24 + "line": 30, + "column": 18 }, "end": { - "line": 7, - "column": 33 + "line": 30, + "column": 23 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -31555,50 +34816,52 @@ "binop": null, "updateContext": null }, - "start": 135, - "end": 136, + "start": 813, + "end": 814, "loc": { "start": { - "line": 7, - "column": 33 + "line": 30, + "column": 23 }, "end": { - "line": 7, - "column": 34 + "line": 30, + "column": 24 } } }, { "type": { - "label": "name", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "currCanvas", - "start": 137, - "end": 147, + "value": "let", + "start": 815, + "end": 818, "loc": { "start": { - "line": 7, - "column": 35 + "line": 31, + "column": 0 }, "end": { - "line": 7, - "column": 45 + "line": 31, + "column": 3 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31606,48 +34869,51 @@ "postfix": false, "binop": null }, - "start": 148, - "end": 149, + "value": "dragMgr", + "start": 819, + "end": 826, "loc": { "start": { - "line": 7, - "column": 46 + "line": 31, + "column": 4 }, "end": { - "line": 7, - "column": 47 + "line": 31, + "column": 11 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "from", - "start": 150, - "end": 154, + "value": "=", + "start": 827, + "end": 828, "loc": { "start": { - "line": 7, - "column": 48 + "line": 31, + "column": 12 }, "end": { - "line": 7, - "column": 52 + "line": 31, + "column": 13 } } }, { "type": { - "label": "string", + "label": "null", + "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31658,17 +34924,17 @@ "binop": null, "updateContext": null }, - "value": "./elementMgr", - "start": 155, - "end": 169, + "value": "null", + "start": 829, + "end": 833, "loc": { "start": { - "line": 7, - "column": 53 + "line": 31, + "column": 14 }, "end": { - "line": 7, - "column": 67 + "line": 31, + "column": 18 } } }, @@ -31685,25 +34951,25 @@ "binop": null, "updateContext": null }, - "start": 169, - "end": 170, + "start": 833, + "end": 834, "loc": { "start": { - "line": 7, - "column": 67 + "line": 31, + "column": 18 }, "end": { - "line": 7, - "column": 68 + "line": 31, + "column": 19 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31712,24 +34978,24 @@ "binop": null, "updateContext": null }, - "value": "import", - "start": 171, - "end": 177, + "value": "let", + "start": 835, + "end": 838, "loc": { "start": { - "line": 8, + "line": 32, "column": 0 }, "end": { - "line": 8, - "column": 6 + "line": 32, + "column": 3 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -31738,50 +35004,53 @@ "postfix": false, "binop": null }, - "start": 178, - "end": 179, + "value": "viewMatrix", + "start": 839, + "end": 849, "loc": { "start": { - "line": 8, - "column": 7 + "line": 32, + "column": 4 }, "end": { - "line": 8, - "column": 8 + "line": 32, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "UtSystem", - "start": 180, - "end": 188, + "value": "=", + "start": 850, + "end": 851, "loc": { "start": { - "line": 8, - "column": 9 + "line": 32, + "column": 15 }, "end": { - "line": 8, - "column": 17 + "line": 32, + "column": 16 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31790,49 +35059,51 @@ "binop": null, "updateContext": null }, - "start": 188, - "end": 189, + "value": "null", + "start": 852, + "end": 856, "loc": { "start": { - "line": 8, + "line": 32, "column": 17 }, "end": { - "line": 8, - "column": 18 + "line": 32, + "column": 21 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "UtDebug", - "start": 199, - "end": 206, + "start": 856, + "end": 857, "loc": { "start": { - "line": 9, - "column": 9 + "line": 32, + "column": 21 }, "end": { - "line": 9, - "column": 16 + "line": 32, + "column": 22 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -31842,16 +35113,17 @@ "binop": null, "updateContext": null }, - "start": 206, - "end": 207, + "value": "let", + "start": 858, + "end": 861, "loc": { "start": { - "line": 9, - "column": 16 + "line": 33, + "column": 0 }, "end": { - "line": 9, - "column": 17 + "line": 33, + "column": 3 } } }, @@ -31867,49 +35139,51 @@ "postfix": false, "binop": null }, - "value": "LDTransform", - "start": 217, - "end": 228, + "value": "projMatrix", + "start": 862, + "end": 872, "loc": { "start": { - "line": 10, - "column": 9 + "line": 33, + "column": 4 }, "end": { - "line": 10, - "column": 20 + "line": 33, + "column": 14 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 228, - "end": 229, + "value": "=", + "start": 873, + "end": 874, "loc": { "start": { - "line": 10, - "column": 20 + "line": 33, + "column": 15 }, "end": { - "line": 10, - "column": 21 + "line": 33, + "column": 16 } } }, { "type": { - "label": "name", + "label": "null", + "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31917,25 +35191,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "LDGL", - "start": 239, - "end": 243, + "value": "null", + "start": 875, + "end": 879, "loc": { "start": { - "line": 11, - "column": 9 + "line": 33, + "column": 17 }, "end": { - "line": 11, - "column": 13 + "line": 33, + "column": 21 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -31946,102 +35221,106 @@ "binop": null, "updateContext": null }, - "start": 243, - "end": 244, + "start": 879, + "end": 880, "loc": { "start": { - "line": 11, - "column": 13 + "line": 33, + "column": 21 }, "end": { - "line": 11, - "column": 14 + "line": 33, + "column": 22 } } }, { "type": { - "label": "name", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Live2D", - "start": 254, - "end": 260, + "value": "let", + "start": 881, + "end": 884, "loc": { "start": { - "line": 12, - "column": 9 + "line": 34, + "column": 0 }, "end": { - "line": 12, - "column": 15 + "line": 34, + "column": 3 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 260, - "end": 261, + "value": "deviceToScreen", + "start": 885, + "end": 899, "loc": { "start": { - "line": 12, - "column": 15 + "line": 34, + "column": 4 }, "end": { - "line": 12, - "column": 16 + "line": 34, + "column": 18 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Live2DModelWebGL", - "start": 271, - "end": 287, + "value": "=", + "start": 900, + "end": 901, "loc": { "start": { - "line": 13, - "column": 9 + "line": 34, + "column": 19 }, "end": { - "line": 13, - "column": 25 + "line": 34, + "column": 20 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32050,49 +35329,51 @@ "binop": null, "updateContext": null }, - "start": 287, - "end": 288, + "value": "null", + "start": 902, + "end": 906, "loc": { "start": { - "line": 13, - "column": 25 + "line": 34, + "column": 21 }, "end": { - "line": 13, - "column": 26 + "line": 34, + "column": 25 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Live2DModelJS", - "start": 298, - "end": 311, + "start": 906, + "end": 907, "loc": { "start": { - "line": 14, - "column": 9 + "line": 34, + "column": 25 }, "end": { - "line": 14, - "column": 22 + "line": 34, + "column": 26 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -32102,16 +35383,17 @@ "binop": null, "updateContext": null }, - "start": 311, - "end": 312, + "value": "let", + "start": 908, + "end": 911, "loc": { "start": { - "line": 14, - "column": 22 + "line": 35, + "column": 0 }, "end": { - "line": 14, - "column": 23 + "line": 35, + "column": 3 } } }, @@ -32127,49 +35409,51 @@ "postfix": false, "binop": null }, - "value": "Live2DMotion", - "start": 322, - "end": 334, + "value": "drag", + "start": 912, + "end": 916, "loc": { "start": { - "line": 15, - "column": 9 + "line": 35, + "column": 4 }, "end": { - "line": 15, - "column": 21 + "line": 35, + "column": 8 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 334, - "end": 335, + "value": "=", + "start": 917, + "end": 918, "loc": { "start": { - "line": 15, - "column": 21 + "line": 35, + "column": 9 }, "end": { - "line": 15, - "column": 22 + "line": 35, + "column": 10 } } }, { "type": { - "label": "name", + "label": "false", + "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32177,25 +35461,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "MotionQueueManager", - "start": 345, - "end": 363, + "value": "false", + "start": 919, + "end": 924, "loc": { "start": { - "line": 16, - "column": 9 + "line": 35, + "column": 11 }, "end": { - "line": 16, - "column": 27 + "line": 35, + "column": 16 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -32206,102 +35491,105 @@ "binop": null, "updateContext": null }, - "start": 363, - "end": 364, + "start": 924, + "end": 925, "loc": { "start": { - "line": 16, - "column": 27 + "line": 35, + "column": 16 }, "end": { - "line": 16, - "column": 28 + "line": 35, + "column": 17 } } }, { "type": { - "label": "name", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "PhysicsHair", - "start": 374, - "end": 385, + "value": "let", + "start": 926, + "end": 929, "loc": { "start": { - "line": 17, - "column": 9 + "line": 36, + "column": 0 }, "end": { - "line": 17, - "column": 20 + "line": 36, + "column": 3 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 385, - "end": 386, + "value": "lastMouseX", + "start": 930, + "end": 940, "loc": { "start": { - "line": 17, - "column": 20 + "line": 36, + "column": 4 }, "end": { - "line": 17, - "column": 21 + "line": 36, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "AMotion", - "start": 396, - "end": 403, + "value": "=", + "start": 941, + "end": 942, "loc": { "start": { - "line": 18, - "column": 9 + "line": 36, + "column": 15 }, "end": { - "line": 18, + "line": 36, "column": 16 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "num", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32310,49 +35598,51 @@ "binop": null, "updateContext": null }, - "start": 403, - "end": 404, + "value": 0, + "start": 943, + "end": 944, "loc": { "start": { - "line": 18, - "column": 16 + "line": 36, + "column": 17 }, "end": { - "line": 18, - "column": 17 + "line": 36, + "column": 18 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "PartsDataID", - "start": 414, - "end": 425, + "start": 944, + "end": 945, "loc": { "start": { - "line": 19, - "column": 9 + "line": 36, + "column": 18 }, "end": { - "line": 19, - "column": 20 + "line": 36, + "column": 19 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -32362,16 +35652,17 @@ "binop": null, "updateContext": null }, - "start": 425, - "end": 426, + "value": "let", + "start": 946, + "end": 949, "loc": { "start": { - "line": 19, - "column": 20 + "line": 37, + "column": 0 }, "end": { - "line": 19, - "column": 21 + "line": 37, + "column": 3 } } }, @@ -32387,49 +35678,50 @@ "postfix": false, "binop": null }, - "value": "DrawDataID", - "start": 436, - "end": 446, + "value": "lastMouseY", + "start": 950, + "end": 960, "loc": { "start": { - "line": 20, - "column": 9 + "line": 37, + "column": 4 }, "end": { - "line": 20, - "column": 19 + "line": 37, + "column": 14 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 446, - "end": 447, + "value": "=", + "start": 961, + "end": 962, "loc": { "start": { - "line": 20, - "column": 19 + "line": 37, + "column": 15 }, "end": { - "line": 20, - "column": 20 + "line": 37, + "column": 16 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32437,25 +35729,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "BaseDataID", - "start": 457, - "end": 467, + "value": 0, + "start": 963, + "end": 964, "loc": { "start": { - "line": 21, - "column": 9 + "line": 37, + "column": 17 }, "end": { - "line": 21, - "column": 19 + "line": 37, + "column": 18 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -32466,50 +35759,52 @@ "binop": null, "updateContext": null }, - "start": 467, - "end": 468, + "start": 964, + "end": 965, "loc": { "start": { - "line": 21, - "column": 19 + "line": 37, + "column": 18 }, "end": { - "line": 21, - "column": 20 + "line": 37, + "column": 19 } } }, { "type": { - "label": "name", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "ParamID", - "start": 478, - "end": 485, + "value": "let", + "start": 966, + "end": 969, "loc": { "start": { - "line": 22, - "column": 9 + "line": 38, + "column": 0 }, "end": { - "line": 22, - "column": 16 + "line": 38, + "column": 3 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32517,48 +35812,50 @@ "postfix": false, "binop": null }, - "start": 486, - "end": 487, + "value": "headPos", + "start": 970, + "end": 977, "loc": { "start": { - "line": 22, - "column": 17 + "line": 38, + "column": 4 }, "end": { - "line": 22, - "column": 18 + "line": 38, + "column": 11 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "from", - "start": 488, - "end": 492, + "value": "=", + "start": 978, + "end": 979, "loc": { "start": { - "line": 22, - "column": 19 + "line": 38, + "column": 12 }, "end": { - "line": 22, - "column": 23 + "line": 38, + "column": 13 } } }, { "type": { - "label": "string", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32569,17 +35866,17 @@ "binop": null, "updateContext": null }, - "value": "./lib/live2d.core", - "start": 493, - "end": 512, + "value": 0.5, + "start": 980, + "end": 983, "loc": { "start": { - "line": 22, - "column": 24 + "line": 38, + "column": 14 }, "end": { - "line": 22, - "column": 43 + "line": 38, + "column": 17 } } }, @@ -32596,25 +35893,25 @@ "binop": null, "updateContext": null }, - "start": 512, - "end": 513, + "start": 983, + "end": 984, "loc": { "start": { - "line": 22, - "column": 43 + "line": 38, + "column": 17 }, "end": { - "line": 22, - "column": 44 + "line": 38, + "column": 18 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32623,42 +35920,17 @@ "binop": null, "updateContext": null }, - "value": "import", - "start": 514, - "end": 520, + "value": "let", + "start": 985, + "end": 988, "loc": { "start": { - "line": 23, + "line": 39, "column": 0 }, "end": { - "line": 23, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 521, - "end": 522, - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 8 + "line": 39, + "column": 3 } } }, @@ -32674,49 +35946,50 @@ "postfix": false, "binop": null }, - "value": "L2DTargetPoint", - "start": 523, - "end": 537, + "value": "opacityDefault", + "start": 989, + "end": 1003, "loc": { "start": { - "line": 23, - "column": 9 + "line": 39, + "column": 4 }, "end": { - "line": 23, - "column": 23 + "line": 39, + "column": 18 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 537, - "end": 538, + "value": "=", + "start": 1004, + "end": 1005, "loc": { "start": { - "line": 23, - "column": 23 + "line": 39, + "column": 19 }, "end": { - "line": 23, - "column": 24 + "line": 39, + "column": 20 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32724,25 +35997,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "L2DViewMatrix", - "start": 539, - "end": 552, + "value": 0.7, + "start": 1006, + "end": 1009, "loc": { "start": { - "line": 23, - "column": 25 + "line": 39, + "column": 21 }, "end": { - "line": 23, - "column": 38 + "line": 39, + "column": 24 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -32753,50 +36027,52 @@ "binop": null, "updateContext": null }, - "start": 552, - "end": 553, + "start": 1009, + "end": 1010, "loc": { "start": { - "line": 23, - "column": 38 + "line": 39, + "column": 24 }, "end": { - "line": 23, - "column": 39 + "line": 39, + "column": 25 } } }, { "type": { - "label": "name", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "L2DMatrix44", - "start": 554, - "end": 565, + "value": "let", + "start": 1011, + "end": 1014, "loc": { "start": { - "line": 23, - "column": 40 + "line": 40, + "column": 0 }, "end": { - "line": 23, - "column": 51 + "line": 40, + "column": 3 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32804,48 +36080,50 @@ "postfix": false, "binop": null }, - "start": 566, - "end": 567, + "value": "opacityHover", + "start": 1015, + "end": 1027, "loc": { "start": { - "line": 23, - "column": 52 + "line": 40, + "column": 4 }, "end": { - "line": 23, - "column": 53 + "line": 40, + "column": 16 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "from", - "start": 568, - "end": 572, + "value": "=", + "start": 1028, + "end": 1029, "loc": { "start": { - "line": 23, - "column": 54 + "line": 40, + "column": 17 }, "end": { - "line": 23, - "column": 58 + "line": 40, + "column": 18 } } }, { "type": { - "label": "string", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32856,17 +36134,17 @@ "binop": null, "updateContext": null }, - "value": "./lib/Live2DFramework", - "start": 573, - "end": 596, + "value": 1, + "start": 1030, + "end": 1031, "loc": { "start": { - "line": 23, - "column": 59 + "line": 40, + "column": 19 }, "end": { - "line": 23, - "column": 82 + "line": 40, + "column": 20 } } }, @@ -32883,51 +36161,40 @@ "binop": null, "updateContext": null }, - "start": 596, - "end": 597, + "start": 1031, + "end": 1032, "loc": { "start": { - "line": 23, - "column": 82 + "line": 40, + "column": 20 }, "end": { - "line": 23, - "column": 83 + "line": 40, + "column": 21 } } }, { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 598, - "end": 604, + "type": "CommentBlock", + "value": "*\n * Main function of live2d-widget\n * @return {null}\n ", + "start": 1036, + "end": 1095, "loc": { "start": { - "line": 24, + "line": 44, "column": 0 }, "end": { - "line": 24, - "column": 6 + "line": 47, + "column": 3 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "function", + "keyword": "function", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -32936,15 +36203,16 @@ "postfix": false, "binop": null }, - "start": 605, - "end": 606, + "value": "function", + "start": 1097, + "end": 1105, "loc": { "start": { - "line": 24, - "column": 7 + "line": 49, + "column": 0 }, "end": { - "line": 24, + "line": 49, "column": 8 } } @@ -32961,25 +36229,25 @@ "postfix": false, "binop": null }, - "value": "cManager", - "start": 607, - "end": 615, + "value": "theRealInit", + "start": 1106, + "end": 1117, "loc": { "start": { - "line": 24, + "line": 49, "column": 9 }, "end": { - "line": 24, - "column": 17 + "line": 49, + "column": 20 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32987,24 +36255,24 @@ "postfix": false, "binop": null }, - "start": 616, - "end": 617, + "start": 1118, + "end": 1119, "loc": { "start": { - "line": 24, - "column": 18 + "line": 49, + "column": 21 }, "end": { - "line": 24, - "column": 19 + "line": 49, + "column": 22 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33012,106 +36280,100 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 618, - "end": 622, + "start": 1119, + "end": 1120, "loc": { "start": { - "line": 24, - "column": 20 + "line": 49, + "column": 22 }, "end": { - "line": 24, - "column": 24 + "line": 49, + "column": 23 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "./cManager", - "start": 623, - "end": 635, + "start": 1120, + "end": 1121, "loc": { "start": { - "line": 24, - "column": 25 + "line": 49, + "column": 23 }, "end": { - "line": 24, - "column": 37 + "line": 49, + "column": 24 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 635, - "end": 636, + "value": "createElement", + "start": 1125, + "end": 1138, "loc": { "start": { - "line": 24, - "column": 37 + "line": 51, + "column": 2 }, "end": { - "line": 24, - "column": 38 + "line": 51, + "column": 15 } } }, { "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 637, - "end": 643, + "start": 1138, + "end": 1139, "loc": { "start": { - "line": 25, - "column": 0 + "line": 51, + "column": 15 }, "end": { - "line": 25, - "column": 6 + "line": 51, + "column": 16 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33119,50 +36381,50 @@ "postfix": false, "binop": null }, - "start": 644, - "end": 645, + "start": 1139, + "end": 1140, "loc": { "start": { - "line": 25, - "column": 7 + "line": 51, + "column": 16 }, "end": { - "line": 25, - "column": 8 + "line": 51, + "column": 17 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "MatrixStack", - "start": 646, - "end": 657, + "start": 1140, + "end": 1141, "loc": { "start": { - "line": 25, - "column": 9 + "line": 51, + "column": 17 }, "end": { - "line": 25, - "column": 20 + "line": 51, + "column": 18 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33170,23 +36432,24 @@ "postfix": false, "binop": null }, - "start": 658, - "end": 659, + "value": "initEvent", + "start": 1144, + "end": 1153, "loc": { "start": { - "line": 25, - "column": 21 + "line": 52, + "column": 2 }, "end": { - "line": 25, - "column": 22 + "line": 52, + "column": 11 } } }, { - "type": { - "label": "name", - "beforeExpr": false, + "type": { + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -33195,44 +36458,41 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 660, - "end": 664, + "start": 1153, + "end": 1154, "loc": { "start": { - "line": 25, - "column": 23 + "line": 52, + "column": 11 }, "end": { - "line": 25, - "column": 27 + "line": 52, + "column": 12 } } }, { "type": { - "label": "string", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "./utils/MatrixStack", - "start": 665, - "end": 686, + "start": 1154, + "end": 1155, "loc": { "start": { - "line": 25, - "column": 28 + "line": 52, + "column": 12 }, "end": { - "line": 25, - "column": 49 + "line": 52, + "column": 13 } } }, @@ -33249,23 +36509,22 @@ "binop": null, "updateContext": null }, - "start": 686, - "end": 687, + "start": 1155, + "end": 1156, "loc": { "start": { - "line": 25, - "column": 49 + "line": 52, + "column": 13 }, "end": { - "line": 25, - "column": 50 + "line": 52, + "column": 14 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -33273,79 +36532,82 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 688, - "end": 694, + "value": "dragMgr", + "start": 1160, + "end": 1167, "loc": { "start": { - "line": 26, - "column": 0 + "line": 54, + "column": 2 }, "end": { - "line": 26, - "column": 6 + "line": 54, + "column": 9 } } }, { "type": { - "label": "{", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 695, - "end": 696, + "value": "=", + "start": 1168, + "end": 1169, "loc": { "start": { - "line": 26, - "column": 7 + "line": 54, + "column": 10 }, "end": { - "line": 26, - "column": 8 + "line": 54, + "column": 11 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "new", + "keyword": "new", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "cDefine", - "start": 697, - "end": 704, + "value": "new", + "start": 1170, + "end": 1173, "loc": { "start": { - "line": 26, - "column": 9 + "line": 54, + "column": 12 }, "end": { - "line": 26, - "column": 16 + "line": 54, + "column": 15 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33353,23 +36615,24 @@ "postfix": false, "binop": null }, - "start": 705, - "end": 706, + "value": "L2DTargetPoint", + "start": 1174, + "end": 1188, "loc": { "start": { - "line": 26, - "column": 17 + "line": 54, + "column": 16 }, "end": { - "line": 26, - "column": 18 + "line": 54, + "column": 30 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -33378,44 +36641,41 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 707, - "end": 711, + "start": 1188, + "end": 1189, "loc": { "start": { - "line": 26, - "column": 19 + "line": 54, + "column": 30 }, "end": { - "line": 26, - "column": 23 + "line": 54, + "column": 31 } } }, { "type": { - "label": "string", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "./cDefine", - "start": 712, - "end": 723, + "start": 1189, + "end": 1190, "loc": { "start": { - "line": 26, - "column": 24 + "line": 54, + "column": 31 }, "end": { - "line": 26, - "column": 35 + "line": 54, + "column": 32 } } }, @@ -33432,16 +36692,16 @@ "binop": null, "updateContext": null }, - "start": 723, - "end": 724, + "start": 1190, + "end": 1191, "loc": { "start": { - "line": 26, - "column": 35 + "line": 54, + "column": 32 }, "end": { - "line": 26, - "column": 36 + "line": 54, + "column": 33 } } }, @@ -33460,16 +36720,16 @@ "updateContext": null }, "value": "let", - "start": 726, - "end": 729, + "start": 1194, + "end": 1197, "loc": { "start": { - "line": 28, - "column": 0 + "line": 55, + "column": 2 }, "end": { - "line": 28, - "column": 3 + "line": 55, + "column": 5 } } }, @@ -33485,17 +36745,17 @@ "postfix": false, "binop": null }, - "value": "live2DMgr", - "start": 730, - "end": 739, + "value": "ratio", + "start": 1198, + "end": 1203, "loc": { "start": { - "line": 28, - "column": 4 + "line": 55, + "column": 6 }, "end": { - "line": 28, - "column": 13 + "line": 55, + "column": 11 } } }, @@ -33513,77 +36773,75 @@ "updateContext": null }, "value": "=", - "start": 740, - "end": 741, + "start": 1204, + "end": 1205, "loc": { "start": { - "line": 28, - "column": 14 + "line": 55, + "column": 12 }, "end": { - "line": 28, - "column": 15 + "line": 55, + "column": 13 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "new", - "start": 742, - "end": 745, + "value": "currCanvas", + "start": 1206, + "end": 1216, "loc": { "start": { - "line": 28, - "column": 16 + "line": 55, + "column": 14 }, "end": { - "line": 28, - "column": 19 + "line": 55, + "column": 24 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "cManager", - "start": 746, - "end": 754, + "start": 1216, + "end": 1217, "loc": { "start": { - "line": 28, - "column": 20 + "line": 55, + "column": 24 }, "end": { - "line": 28, - "column": 28 + "line": 55, + "column": 25 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -33592,74 +36850,76 @@ "postfix": false, "binop": null }, - "start": 754, - "end": 755, + "value": "height", + "start": 1217, + "end": 1223, "loc": { "start": { - "line": 28, - "column": 28 + "line": 55, + "column": 25 }, "end": { - "line": 28, - "column": 29 + "line": 55, + "column": 31 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "/", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 10, + "updateContext": null }, - "start": 755, - "end": 756, + "value": "/", + "start": 1224, + "end": 1225, "loc": { "start": { - "line": 28, - "column": 29 + "line": 55, + "column": 32 }, "end": { - "line": 28, - "column": 30 + "line": 55, + "column": 33 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 756, - "end": 757, + "value": "currCanvas", + "start": 1226, + "end": 1236, "loc": { "start": { - "line": 28, - "column": 30 + "line": 55, + "column": 34 }, "end": { - "line": 28, - "column": 31 + "line": 55, + "column": 44 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -33670,17 +36930,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 758, - "end": 761, + "start": 1236, + "end": 1237, "loc": { "start": { - "line": 29, - "column": 0 + "line": 55, + "column": 44 }, "end": { - "line": 29, - "column": 3 + "line": 55, + "column": 45 } } }, @@ -33696,53 +36955,52 @@ "postfix": false, "binop": null }, - "value": "isDrawStart", - "start": 762, - "end": 773, + "value": "width", + "start": 1237, + "end": 1242, "loc": { "start": { - "line": 29, - "column": 4 + "line": 55, + "column": 45 }, "end": { - "line": 29, - "column": 15 + "line": 55, + "column": 50 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 774, - "end": 775, + "start": 1242, + "end": 1243, "loc": { "start": { - "line": 29, - "column": 16 + "line": 55, + "column": 50 }, "end": { - "line": 29, - "column": 17 + "line": 55, + "column": 51 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33751,71 +37009,70 @@ "binop": null, "updateContext": null }, - "value": "false", - "start": 776, - "end": 781, + "value": "let", + "start": 1246, + "end": 1249, "loc": { "start": { - "line": 29, - "column": 18 + "line": 56, + "column": 2 }, "end": { - "line": 29, - "column": 23 + "line": 56, + "column": 5 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 781, - "end": 782, + "value": "left", + "start": 1250, + "end": 1254, "loc": { "start": { - "line": 29, - "column": 23 + "line": 56, + "column": 6 }, "end": { - "line": 29, - "column": 24 + "line": 56, + "column": 10 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "let", - "start": 783, - "end": 786, + "value": "=", + "start": 1255, + "end": 1256, "loc": { "start": { - "line": 30, - "column": 0 + "line": 56, + "column": 11 }, "end": { - "line": 30, - "column": 3 + "line": 56, + "column": 12 } } }, @@ -33831,51 +37088,49 @@ "postfix": false, "binop": null }, - "value": "dragMgr", - "start": 787, - "end": 794, + "value": "cDefine", + "start": 1257, + "end": 1264, "loc": { "start": { - "line": 30, - "column": 4 + "line": 56, + "column": 13 }, "end": { - "line": 30, - "column": 11 + "line": 56, + "column": 20 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 795, - "end": 796, + "start": 1264, + "end": 1265, "loc": { "start": { - "line": 30, - "column": 12 + "line": 56, + "column": 20 }, "end": { - "line": 30, - "column": 13 + "line": 56, + "column": 21 } } }, { "type": { - "label": "null", - "keyword": "null", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -33883,20 +37138,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "null", - "start": 797, - "end": 801, + "value": "VIEW_LOGICAL_LEFT", + "start": 1265, + "end": 1282, "loc": { "start": { - "line": 30, - "column": 14 + "line": 56, + "column": 21 }, "end": { - "line": 30, - "column": 18 + "line": 56, + "column": 38 } } }, @@ -33913,16 +37167,16 @@ "binop": null, "updateContext": null }, - "start": 801, - "end": 802, + "start": 1282, + "end": 1283, "loc": { "start": { - "line": 30, - "column": 18 + "line": 56, + "column": 38 }, "end": { - "line": 30, - "column": 19 + "line": 56, + "column": 39 } } }, @@ -33941,16 +37195,16 @@ "updateContext": null }, "value": "let", - "start": 803, - "end": 806, + "start": 1286, + "end": 1289, "loc": { "start": { - "line": 31, - "column": 0 + "line": 57, + "column": 2 }, "end": { - "line": 31, - "column": 3 + "line": 57, + "column": 5 } } }, @@ -33966,17 +37220,17 @@ "postfix": false, "binop": null }, - "value": "viewMatrix", - "start": 807, - "end": 817, + "value": "right", + "start": 1290, + "end": 1295, "loc": { "start": { - "line": 31, - "column": 4 + "line": 57, + "column": 6 }, "end": { - "line": 31, - "column": 14 + "line": 57, + "column": 11 } } }, @@ -33994,23 +37248,22 @@ "updateContext": null }, "value": "=", - "start": 818, - "end": 819, + "start": 1296, + "end": 1297, "loc": { "start": { - "line": 31, - "column": 15 + "line": 57, + "column": 12 }, "end": { - "line": 31, - "column": 16 + "line": 57, + "column": 13 } } }, { "type": { - "label": "null", - "keyword": "null", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34018,20 +37271,71 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "value": "cDefine", + "start": 1298, + "end": 1305, + "loc": { + "start": { + "line": 57, + "column": 14 + }, + "end": { + "line": 57, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "value": "null", - "start": 820, - "end": 824, + "start": 1305, + "end": 1306, + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "VIEW_LOGICAL_RIGHT", + "start": 1306, + "end": 1324, "loc": { "start": { - "line": 31, - "column": 17 + "line": 57, + "column": 22 }, "end": { - "line": 31, - "column": 21 + "line": 57, + "column": 40 } } }, @@ -34048,16 +37352,16 @@ "binop": null, "updateContext": null }, - "start": 824, - "end": 825, + "start": 1324, + "end": 1325, "loc": { "start": { - "line": 31, - "column": 21 + "line": 57, + "column": 40 }, "end": { - "line": 31, - "column": 22 + "line": 57, + "column": 41 } } }, @@ -34076,16 +37380,16 @@ "updateContext": null }, "value": "let", - "start": 826, - "end": 829, + "start": 1328, + "end": 1331, "loc": { "start": { - "line": 32, - "column": 0 + "line": 58, + "column": 2 }, "end": { - "line": 32, - "column": 3 + "line": 58, + "column": 5 } } }, @@ -34101,17 +37405,17 @@ "postfix": false, "binop": null }, - "value": "projMatrix", - "start": 830, - "end": 840, + "value": "bottom", + "start": 1332, + "end": 1338, "loc": { "start": { - "line": 32, - "column": 4 + "line": 58, + "column": 6 }, "end": { - "line": 32, - "column": 14 + "line": 58, + "column": 12 } } }, @@ -34129,23 +37433,49 @@ "updateContext": null }, "value": "=", - "start": 841, - "end": 842, + "start": 1339, + "end": 1340, "loc": { "start": { - "line": 32, + "line": 58, + "column": 13 + }, + "end": { + "line": 58, + "column": 14 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 1341, + "end": 1342, + "loc": { + "start": { + "line": 58, "column": 15 }, "end": { - "line": 32, + "line": 58, "column": 16 } } }, { "type": { - "label": "null", - "keyword": "null", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34153,19 +37483,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "null", - "start": 843, - "end": 847, + "value": "ratio", + "start": 1342, + "end": 1347, "loc": { "start": { - "line": 32, - "column": 17 + "line": 58, + "column": 16 }, "end": { - "line": 32, + "line": 58, "column": 21 } } @@ -34183,15 +37512,15 @@ "binop": null, "updateContext": null }, - "start": 847, - "end": 848, + "start": 1347, + "end": 1348, "loc": { "start": { - "line": 32, + "line": 58, "column": 21 }, "end": { - "line": 32, + "line": 58, "column": 22 } } @@ -34211,16 +37540,16 @@ "updateContext": null }, "value": "let", - "start": 849, - "end": 852, + "start": 1351, + "end": 1354, "loc": { "start": { - "line": 33, - "column": 0 + "line": 59, + "column": 2 }, "end": { - "line": 33, - "column": 3 + "line": 59, + "column": 5 } } }, @@ -34236,17 +37565,17 @@ "postfix": false, "binop": null }, - "value": "deviceToScreen", - "start": 853, - "end": 867, + "value": "top", + "start": 1355, + "end": 1358, "loc": { "start": { - "line": 33, - "column": 4 + "line": 59, + "column": 6 }, "end": { - "line": 33, - "column": 18 + "line": 59, + "column": 9 } } }, @@ -34264,23 +37593,22 @@ "updateContext": null }, "value": "=", - "start": 868, - "end": 869, + "start": 1359, + "end": 1360, "loc": { "start": { - "line": 33, - "column": 19 + "line": 59, + "column": 10 }, "end": { - "line": 33, - "column": 20 + "line": 59, + "column": 11 } } }, { "type": { - "label": "null", - "keyword": "null", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34288,20 +37616,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "null", - "start": 870, - "end": 874, + "value": "ratio", + "start": 1361, + "end": 1366, "loc": { "start": { - "line": 33, - "column": 21 + "line": 59, + "column": 12 }, "end": { - "line": 33, - "column": 25 + "line": 59, + "column": 17 } } }, @@ -34318,104 +37645,103 @@ "binop": null, "updateContext": null }, - "start": 874, - "end": 875, + "start": 1366, + "end": 1367, "loc": { "start": { - "line": 33, - "column": 25 + "line": 59, + "column": 17 }, "end": { - "line": 33, - "column": 26 + "line": 59, + "column": 18 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 876, - "end": 879, + "value": "viewMatrix", + "start": 1371, + "end": 1381, "loc": { "start": { - "line": 34, - "column": 0 + "line": 61, + "column": 2 }, "end": { - "line": 34, - "column": 3 + "line": 61, + "column": 12 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "drag", - "start": 880, - "end": 884, + "value": "=", + "start": 1382, + "end": 1383, "loc": { "start": { - "line": 34, - "column": 4 + "line": 61, + "column": 13 }, "end": { - "line": 34, - "column": 8 + "line": 61, + "column": 14 } } }, { "type": { - "label": "=", + "label": "new", + "keyword": "new", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 885, - "end": 886, + "value": "new", + "start": 1384, + "end": 1387, "loc": { "start": { - "line": 34, - "column": 9 + "line": 61, + "column": 15 }, "end": { - "line": 34, - "column": 10 + "line": 61, + "column": 18 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34423,53 +37749,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "false", - "start": 887, - "end": 892, + "value": "L2DViewMatrix", + "start": 1388, + "end": 1401, "loc": { "start": { - "line": 34, - "column": 11 + "line": 61, + "column": 19 }, "end": { - "line": 34, - "column": 16 + "line": 61, + "column": 32 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 892, - "end": 893, + "start": 1401, + "end": 1402, "loc": { "start": { - "line": 34, - "column": 16 + "line": 61, + "column": 32 }, "end": { - "line": 34, - "column": 17 + "line": 61, + "column": 33 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -34477,20 +37800,44 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 1402, + "end": 1403, + "loc": { + "start": { + "line": 61, + "column": 33 + }, + "end": { + "line": 61, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "value": "let", - "start": 894, - "end": 897, + "start": 1403, + "end": 1404, "loc": { "start": { - "line": 35, - "column": 0 + "line": 61, + "column": 34 }, "end": { - "line": 35, - "column": 3 + "line": 61, + "column": 35 } } }, @@ -34506,50 +37853,49 @@ "postfix": false, "binop": null }, - "value": "lastMouseX", - "start": 898, - "end": 908, + "value": "viewMatrix", + "start": 1408, + "end": 1418, "loc": { "start": { - "line": 35, - "column": 4 + "line": 63, + "column": 2 }, "end": { - "line": 35, - "column": 14 + "line": 63, + "column": 12 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 909, - "end": 910, + "start": 1418, + "end": 1419, "loc": { "start": { - "line": 35, - "column": 15 + "line": 63, + "column": 12 }, "end": { - "line": 35, - "column": 16 + "line": 63, + "column": 13 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34557,54 +37903,77 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 911, - "end": 912, + "value": "setScreenRect", + "start": 1419, + "end": 1432, "loc": { "start": { - "line": 35, - "column": 17 + "line": 63, + "column": 13 }, "end": { - "line": 35, - "column": 18 + "line": 63, + "column": 26 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 912, - "end": 913, + "start": 1432, + "end": 1433, "loc": { "start": { - "line": 35, - "column": 18 + "line": 63, + "column": 26 }, "end": { - "line": 35, - "column": 19 + "line": 63, + "column": 27 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "name", "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "left", + "start": 1433, + "end": 1437, + "loc": { + "start": { + "line": 63, + "column": 27 + }, + "end": { + "line": 63, + "column": 31 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -34614,17 +37983,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 914, - "end": 917, + "start": 1437, + "end": 1438, "loc": { "start": { - "line": 36, - "column": 0 + "line": 63, + "column": 31 }, "end": { - "line": 36, - "column": 3 + "line": 63, + "column": 32 } } }, @@ -34640,50 +38008,49 @@ "postfix": false, "binop": null }, - "value": "lastMouseY", - "start": 918, - "end": 928, + "value": "right", + "start": 1439, + "end": 1444, "loc": { "start": { - "line": 36, - "column": 4 + "line": 63, + "column": 33 }, "end": { - "line": 36, - "column": 14 + "line": 63, + "column": 38 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 929, - "end": 930, + "start": 1444, + "end": 1445, "loc": { "start": { - "line": 36, - "column": 15 + "line": 63, + "column": 38 }, "end": { - "line": 36, - "column": 16 + "line": 63, + "column": 39 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34691,26 +38058,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 931, - "end": 932, + "value": "bottom", + "start": 1446, + "end": 1452, "loc": { "start": { - "line": 36, - "column": 17 + "line": 63, + "column": 40 }, "end": { - "line": 36, - "column": 18 + "line": 63, + "column": 46 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -34721,52 +38087,50 @@ "binop": null, "updateContext": null }, - "start": 932, - "end": 933, + "start": 1452, + "end": 1453, "loc": { "start": { - "line": 36, - "column": 18 + "line": 63, + "column": 46 }, "end": { - "line": 36, - "column": 19 + "line": 63, + "column": 47 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 934, - "end": 937, + "value": "top", + "start": 1454, + "end": 1457, "loc": { "start": { - "line": 37, - "column": 0 + "line": 63, + "column": 48 }, "end": { - "line": 37, - "column": 3 + "line": 63, + "column": 51 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34774,50 +38138,48 @@ "postfix": false, "binop": null }, - "value": "headPos", - "start": 938, - "end": 945, + "start": 1457, + "end": 1458, "loc": { "start": { - "line": 37, - "column": 4 + "line": 63, + "column": 51 }, "end": { - "line": 37, - "column": 11 + "line": 63, + "column": 52 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 946, - "end": 947, + "start": 1458, + "end": 1459, "loc": { "start": { - "line": 37, - "column": 12 + "line": 63, + "column": 52 }, "end": { - "line": 37, - "column": 13 + "line": 63, + "column": 53 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -34825,27 +38187,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0.5, - "start": 948, - "end": 951, + "value": "viewMatrix", + "start": 1463, + "end": 1473, "loc": { "start": { - "line": 37, - "column": 14 + "line": 65, + "column": 2 }, "end": { - "line": 37, - "column": 17 + "line": 65, + "column": 12 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -34855,51 +38216,49 @@ "binop": null, "updateContext": null }, - "start": 951, - "end": 952, + "start": 1473, + "end": 1474, "loc": { "start": { - "line": 37, - "column": 17 + "line": 65, + "column": 12 }, "end": { - "line": 37, - "column": 18 + "line": 65, + "column": 13 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 953, - "end": 956, + "value": "setMaxScreenRect", + "start": 1474, + "end": 1490, "loc": { "start": { - "line": 38, - "column": 0 + "line": 65, + "column": 13 }, "end": { - "line": 38, - "column": 3 + "line": 65, + "column": 29 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -34908,52 +38267,50 @@ "postfix": false, "binop": null }, - "value": "opacityDefault", - "start": 957, - "end": 971, + "start": 1490, + "end": 1491, "loc": { "start": { - "line": 38, - "column": 4 + "line": 65, + "column": 29 }, "end": { - "line": 38, - "column": 18 + "line": 65, + "column": 30 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null + "postfix": false, + "binop": null }, - "value": "=", - "start": 972, - "end": 973, + "value": "cDefine", + "start": 1491, + "end": 1498, "loc": { "start": { - "line": 38, - "column": 19 + "line": 65, + "column": 30 }, "end": { - "line": 38, - "column": 20 + "line": 65, + "column": 37 } } }, { "type": { - "label": "num", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34962,51 +38319,49 @@ "binop": null, "updateContext": null }, - "value": 0.7, - "start": 974, - "end": 977, + "start": 1498, + "end": 1499, "loc": { "start": { - "line": 38, - "column": 21 + "line": 65, + "column": 37 }, "end": { - "line": 38, - "column": 24 + "line": 65, + "column": 38 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 977, - "end": 978, + "value": "VIEW_LOGICAL_MAX_LEFT", + "start": 1499, + "end": 1520, "loc": { "start": { - "line": 38, - "column": 24 + "line": 65, + "column": 38 }, "end": { - "line": 38, - "column": 25 + "line": 65, + "column": 59 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -35016,17 +38371,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 979, - "end": 982, + "start": 1520, + "end": 1521, "loc": { "start": { - "line": 39, - "column": 0 + "line": 65, + "column": 59 }, "end": { - "line": 39, - "column": 3 + "line": 65, + "column": 60 } } }, @@ -35042,50 +38396,49 @@ "postfix": false, "binop": null }, - "value": "opacityHover", - "start": 983, - "end": 995, + "value": "cDefine", + "start": 1526, + "end": 1533, "loc": { "start": { - "line": 39, + "line": 66, "column": 4 }, "end": { - "line": 39, - "column": 16 + "line": 66, + "column": 11 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 996, - "end": 997, + "start": 1533, + "end": 1534, "loc": { "start": { - "line": 39, - "column": 17 + "line": 66, + "column": 11 }, "end": { - "line": 39, - "column": 18 + "line": 66, + "column": 12 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -35093,26 +38446,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 1, - "start": 998, - "end": 999, + "value": "VIEW_LOGICAL_MAX_RIGHT", + "start": 1534, + "end": 1556, "loc": { "start": { - "line": 39, - "column": 19 + "line": 66, + "column": 12 }, "end": { - "line": 39, - "column": 20 + "line": 66, + "column": 34 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -35123,39 +38475,22 @@ "binop": null, "updateContext": null }, - "start": 999, - "end": 1000, - "loc": { - "start": { - "line": 39, - "column": 20 - }, - "end": { - "line": 39, - "column": 21 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Main function of live2d-widget\n * @return {null}\n ", - "start": 1004, - "end": 1063, + "start": 1556, + "end": 1557, "loc": { "start": { - "line": 43, - "column": 0 + "line": 66, + "column": 34 }, "end": { - "line": 46, - "column": 3 + "line": 66, + "column": 35 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -35165,50 +38500,50 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 1065, - "end": 1073, + "value": "cDefine", + "start": 1562, + "end": 1569, "loc": { "start": { - "line": 48, - "column": 0 + "line": 67, + "column": 4 }, "end": { - "line": 48, - "column": 8 + "line": 67, + "column": 11 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "theRealInit", - "start": 1074, - "end": 1085, + "start": 1569, + "end": 1570, "loc": { "start": { - "line": 48, - "column": 9 + "line": 67, + "column": 11 }, "end": { - "line": 48, - "column": 20 + "line": 67, + "column": 12 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -35217,48 +38552,50 @@ "postfix": false, "binop": null }, - "start": 1086, - "end": 1087, + "value": "VIEW_LOGICAL_MAX_BOTTOM", + "start": 1570, + "end": 1593, "loc": { "start": { - "line": 48, - "column": 21 + "line": 67, + "column": 12 }, "end": { - "line": 48, - "column": 22 + "line": 67, + "column": 35 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1087, - "end": 1088, + "start": 1593, + "end": 1594, "loc": { "start": { - "line": 48, - "column": 22 + "line": 67, + "column": 35 }, "end": { - "line": 48, - "column": 23 + "line": 67, + "column": 36 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -35267,49 +38604,50 @@ "postfix": false, "binop": null }, - "start": 1088, - "end": 1089, + "value": "cDefine", + "start": 1599, + "end": 1606, "loc": { "start": { - "line": 48, - "column": 23 + "line": 68, + "column": 4 }, "end": { - "line": 48, - "column": 24 + "line": 68, + "column": 11 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "createElement", - "start": 1093, - "end": 1106, + "start": 1606, + "end": 1607, "loc": { "start": { - "line": 50, - "column": 2 + "line": 68, + "column": 11 }, "end": { - "line": 50, - "column": 15 + "line": 68, + "column": 12 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -35318,16 +38656,17 @@ "postfix": false, "binop": null }, - "start": 1106, - "end": 1107, + "value": "VIEW_LOGICAL_MAX_TOP", + "start": 1607, + "end": 1627, "loc": { "start": { - "line": 50, - "column": 15 + "line": 68, + "column": 12 }, "end": { - "line": 50, - "column": 16 + "line": 68, + "column": 32 } } }, @@ -35343,16 +38682,16 @@ "postfix": false, "binop": null }, - "start": 1107, - "end": 1108, + "start": 1627, + "end": 1628, "loc": { "start": { - "line": 50, - "column": 16 + "line": 68, + "column": 32 }, "end": { - "line": 50, - "column": 17 + "line": 68, + "column": 33 } } }, @@ -35369,16 +38708,16 @@ "binop": null, "updateContext": null }, - "start": 1108, - "end": 1109, + "start": 1628, + "end": 1629, "loc": { "start": { - "line": 50, - "column": 17 + "line": 68, + "column": 33 }, "end": { - "line": 50, - "column": 18 + "line": 68, + "column": 34 } } }, @@ -35394,17 +38733,17 @@ "postfix": false, "binop": null }, - "value": "dragMgr", - "start": 1113, - "end": 1120, + "value": "projMatrix", + "start": 1633, + "end": 1643, "loc": { "start": { - "line": 52, + "line": 70, "column": 2 }, "end": { - "line": 52, - "column": 9 + "line": 70, + "column": 12 } } }, @@ -35422,16 +38761,16 @@ "updateContext": null }, "value": "=", - "start": 1121, - "end": 1122, + "start": 1644, + "end": 1645, "loc": { "start": { - "line": 52, - "column": 10 + "line": 70, + "column": 13 }, "end": { - "line": 52, - "column": 11 + "line": 70, + "column": 14 } } }, @@ -35450,16 +38789,16 @@ "updateContext": null }, "value": "new", - "start": 1123, - "end": 1126, + "start": 1646, + "end": 1649, "loc": { "start": { - "line": 52, - "column": 12 + "line": 70, + "column": 15 }, "end": { - "line": 52, - "column": 15 + "line": 70, + "column": 18 } } }, @@ -35475,16 +38814,16 @@ "postfix": false, "binop": null }, - "value": "L2DTargetPoint", - "start": 1127, - "end": 1141, + "value": "L2DMatrix44", + "start": 1650, + "end": 1661, "loc": { "start": { - "line": 52, - "column": 16 + "line": 70, + "column": 19 }, "end": { - "line": 52, + "line": 70, "column": 30 } } @@ -35501,15 +38840,15 @@ "postfix": false, "binop": null }, - "start": 1141, - "end": 1142, + "start": 1661, + "end": 1662, "loc": { "start": { - "line": 52, + "line": 70, "column": 30 }, "end": { - "line": 52, + "line": 70, "column": 31 } } @@ -35526,15 +38865,15 @@ "postfix": false, "binop": null }, - "start": 1142, - "end": 1143, + "start": 1662, + "end": 1663, "loc": { "start": { - "line": 52, + "line": 70, "column": 31 }, "end": { - "line": 52, + "line": 70, "column": 32 } } @@ -35552,47 +38891,19 @@ "binop": null, "updateContext": null }, - "start": 1143, - "end": 1144, + "start": 1663, + "end": 1664, "loc": { "start": { - "line": 52, + "line": 70, "column": 32 }, "end": { - "line": 52, + "line": 70, "column": 33 } } }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 1147, - "end": 1150, - "loc": { - "start": { - "line": 53, - "column": 2 - }, - "end": { - "line": 53, - "column": 5 - } - } - }, { "type": { "label": "name", @@ -35605,43 +38916,42 @@ "postfix": false, "binop": null }, - "value": "ratio", - "start": 1151, - "end": 1156, + "value": "projMatrix", + "start": 1667, + "end": 1677, "loc": { "start": { - "line": 53, - "column": 6 + "line": 71, + "column": 2 }, "end": { - "line": 53, - "column": 11 + "line": 71, + "column": 12 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1157, - "end": 1158, + "start": 1677, + "end": 1678, "loc": { "start": { - "line": 53, + "line": 71, "column": 12 }, "end": { - "line": 53, + "line": 71, "column": 13 } } @@ -35658,49 +38968,48 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1159, - "end": 1165, + "value": "multScale", + "start": 1678, + "end": 1687, "loc": { "start": { - "line": 53, - "column": 14 + "line": 71, + "column": 13 }, "end": { - "line": 53, - "column": 20 + "line": 71, + "column": 22 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1165, - "end": 1166, + "start": 1687, + "end": 1688, "loc": { "start": { - "line": 53, - "column": 20 + "line": 71, + "column": 22 }, "end": { - "line": 53, - "column": 21 + "line": 71, + "column": 23 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -35708,26 +39017,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "display", - "start": 1166, - "end": 1173, + "value": 1, + "start": 1688, + "end": 1689, "loc": { "start": { - "line": 53, - "column": 21 + "line": 71, + "column": 23 }, "end": { - "line": 53, - "column": 28 + "line": 71, + "column": 24 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -35737,23 +39047,23 @@ "binop": null, "updateContext": null }, - "start": 1173, - "end": 1174, + "start": 1689, + "end": 1690, "loc": { "start": { - "line": 53, - "column": 28 + "line": 71, + "column": 24 }, "end": { - "line": 53, - "column": 29 + "line": 71, + "column": 25 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -35762,44 +39072,16 @@ "postfix": false, "binop": null }, - "value": "height", - "start": 1174, - "end": 1180, - "loc": { - "start": { - "line": 53, - "column": 29 - }, - "end": { - "line": 53, - "column": 35 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 1181, - "end": 1182, + "start": 1691, + "end": 1692, "loc": { "start": { - "line": 53, - "column": 36 + "line": 71, + "column": 26 }, "end": { - "line": 53, - "column": 37 + "line": 71, + "column": 27 } } }, @@ -35815,17 +39097,17 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1183, - "end": 1189, + "value": "currCanvas", + "start": 1692, + "end": 1702, "loc": { "start": { - "line": 53, - "column": 38 + "line": 71, + "column": 27 }, "end": { - "line": 53, - "column": 44 + "line": 71, + "column": 37 } } }, @@ -35842,16 +39124,16 @@ "binop": null, "updateContext": null }, - "start": 1189, - "end": 1190, + "start": 1702, + "end": 1703, "loc": { "start": { - "line": 53, - "column": 44 + "line": 71, + "column": 37 }, "end": { - "line": 53, - "column": 45 + "line": 71, + "column": 38 } } }, @@ -35867,43 +39149,44 @@ "postfix": false, "binop": null }, - "value": "display", - "start": 1190, - "end": 1197, + "value": "width", + "start": 1703, + "end": 1708, "loc": { "start": { - "line": 53, - "column": 45 + "line": 71, + "column": 38 }, "end": { - "line": 53, - "column": 52 + "line": 71, + "column": 43 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "/", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 1197, - "end": 1198, + "value": "/", + "start": 1709, + "end": 1710, "loc": { "start": { - "line": 53, - "column": 52 + "line": 71, + "column": 44 }, "end": { - "line": 53, - "column": 53 + "line": 71, + "column": 45 } } }, @@ -35919,50 +39202,23 @@ "postfix": false, "binop": null }, - "value": "width", - "start": 1198, - "end": 1203, - "loc": { - "start": { - "line": 53, - "column": 53 - }, - "end": { - "line": 53, - "column": 58 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1203, - "end": 1204, + "value": "currCanvas", + "start": 1711, + "end": 1721, "loc": { "start": { - "line": 53, - "column": 58 + "line": 71, + "column": 46 }, "end": { - "line": 53, - "column": 59 + "line": 71, + "column": 56 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -35973,17 +39229,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 1207, - "end": 1210, + "start": 1721, + "end": 1722, "loc": { "start": { - "line": 54, - "column": 2 + "line": 71, + "column": 56 }, "end": { - "line": 54, - "column": 5 + "line": 71, + "column": 57 } } }, @@ -35999,52 +39254,50 @@ "postfix": false, "binop": null }, - "value": "left", - "start": 1211, - "end": 1215, + "value": "height", + "start": 1722, + "end": 1728, "loc": { "start": { - "line": 54, - "column": 6 + "line": 71, + "column": 57 }, "end": { - "line": 54, - "column": 10 + "line": 71, + "column": 63 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 1216, - "end": 1217, + "start": 1728, + "end": 1729, "loc": { "start": { - "line": 54, - "column": 11 + "line": 71, + "column": 63 }, "end": { - "line": 54, - "column": 12 + "line": 71, + "column": 64 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36052,24 +39305,23 @@ "postfix": false, "binop": null }, - "value": "cDefine", - "start": 1218, - "end": 1225, + "start": 1729, + "end": 1730, "loc": { "start": { - "line": 54, - "column": 13 + "line": 71, + "column": 64 }, "end": { - "line": 54, - "column": 20 + "line": 71, + "column": 65 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -36079,16 +39331,16 @@ "binop": null, "updateContext": null }, - "start": 1225, - "end": 1226, + "start": 1730, + "end": 1731, "loc": { "start": { - "line": 54, - "column": 20 + "line": 71, + "column": 65 }, - "end": { - "line": 54, - "column": 21 + "end": { + "line": 71, + "column": 66 } } }, @@ -36104,52 +39356,53 @@ "postfix": false, "binop": null }, - "value": "VIEW_LOGICAL_LEFT", - "start": 1226, - "end": 1243, + "value": "deviceToScreen", + "start": 1735, + "end": 1749, "loc": { "start": { - "line": 54, - "column": 21 + "line": 73, + "column": 2 }, "end": { - "line": 54, - "column": 38 + "line": 73, + "column": 16 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 1243, - "end": 1244, + "value": "=", + "start": 1750, + "end": 1751, "loc": { "start": { - "line": 54, - "column": 38 + "line": 73, + "column": 17 }, "end": { - "line": 54, - "column": 39 + "line": 73, + "column": 18 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36158,17 +39411,17 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 1247, - "end": 1250, + "value": "new", + "start": 1752, + "end": 1755, "loc": { "start": { - "line": 55, - "column": 2 + "line": 73, + "column": 19 }, "end": { - "line": 55, - "column": 5 + "line": 73, + "column": 22 } } }, @@ -36184,52 +39437,50 @@ "postfix": false, "binop": null }, - "value": "right", - "start": 1251, - "end": 1256, + "value": "L2DMatrix44", + "start": 1756, + "end": 1767, "loc": { "start": { - "line": 55, - "column": 6 + "line": 73, + "column": 23 }, "end": { - "line": 55, - "column": 11 + "line": 73, + "column": 34 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 1257, - "end": 1258, + "start": 1767, + "end": 1768, "loc": { "start": { - "line": 55, - "column": 12 + "line": 73, + "column": 34 }, "end": { - "line": 55, - "column": 13 + "line": 73, + "column": 35 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36237,24 +39488,23 @@ "postfix": false, "binop": null }, - "value": "cDefine", - "start": 1259, - "end": 1266, + "start": 1768, + "end": 1769, "loc": { "start": { - "line": 55, - "column": 14 + "line": 73, + "column": 35 }, "end": { - "line": 55, - "column": 21 + "line": 73, + "column": 36 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -36264,16 +39514,16 @@ "binop": null, "updateContext": null }, - "start": 1266, - "end": 1267, + "start": 1769, + "end": 1770, "loc": { "start": { - "line": 55, - "column": 21 + "line": 73, + "column": 36 }, "end": { - "line": 55, - "column": 22 + "line": 73, + "column": 37 } } }, @@ -36289,50 +39539,23 @@ "postfix": false, "binop": null }, - "value": "VIEW_LOGICAL_RIGHT", - "start": 1267, - "end": 1285, - "loc": { - "start": { - "line": 55, - "column": 22 - }, - "end": { - "line": 55, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1285, - "end": 1286, + "value": "deviceToScreen", + "start": 1773, + "end": 1787, "loc": { "start": { - "line": 55, - "column": 40 + "line": 74, + "column": 2 }, "end": { - "line": 55, - "column": 41 + "line": 74, + "column": 16 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -36343,17 +39566,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 1289, - "end": 1292, + "start": 1787, + "end": 1788, "loc": { "start": { - "line": 56, - "column": 2 + "line": 74, + "column": 16 }, "end": { - "line": 56, - "column": 5 + "line": 74, + "column": 17 } } }, @@ -36369,44 +39591,42 @@ "postfix": false, "binop": null }, - "value": "bottom", - "start": 1293, - "end": 1299, + "value": "multTranslate", + "start": 1788, + "end": 1801, "loc": { "start": { - "line": 56, - "column": 6 + "line": 74, + "column": 17 }, "end": { - "line": 56, - "column": 12 + "line": 74, + "column": 30 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 1300, - "end": 1301, + "start": 1801, + "end": 1802, "loc": { "start": { - "line": 56, - "column": 13 + "line": 74, + "column": 30 }, "end": { - "line": 56, - "column": 14 + "line": 74, + "column": 31 } } }, @@ -36424,16 +39644,16 @@ "updateContext": null }, "value": "-", - "start": 1302, - "end": 1303, + "start": 1802, + "end": 1803, "loc": { "start": { - "line": 56, - "column": 15 + "line": 74, + "column": 31 }, "end": { - "line": 56, - "column": 16 + "line": 74, + "column": 32 } } }, @@ -36449,24 +39669,24 @@ "postfix": false, "binop": null }, - "value": "ratio", - "start": 1303, - "end": 1308, + "value": "currCanvas", + "start": 1803, + "end": 1813, "loc": { "start": { - "line": 56, - "column": 16 + "line": 74, + "column": 32 }, "end": { - "line": 56, - "column": 21 + "line": 74, + "column": 42 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -36476,149 +39696,149 @@ "binop": null, "updateContext": null }, - "start": 1308, - "end": 1309, + "start": 1813, + "end": 1814, "loc": { "start": { - "line": 56, - "column": 21 + "line": 74, + "column": 42 }, "end": { - "line": 56, - "column": 22 + "line": 74, + "column": 43 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 1312, - "end": 1315, + "value": "width", + "start": 1814, + "end": 1819, "loc": { "start": { - "line": 57, - "column": 2 + "line": 74, + "column": 43 }, "end": { - "line": 57, - "column": 5 + "line": 74, + "column": 48 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "/", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 10, + "updateContext": null }, - "value": "top", - "start": 1316, - "end": 1319, + "value": "/", + "start": 1820, + "end": 1821, "loc": { "start": { - "line": 57, - "column": 6 + "line": 74, + "column": 49 }, "end": { - "line": 57, - "column": 9 + "line": 74, + "column": 50 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "num", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1320, - "end": 1321, + "value": 2, + "start": 1822, + "end": 1825, "loc": { "start": { - "line": 57, - "column": 10 + "line": 74, + "column": 51 }, "end": { - "line": 57, - "column": 11 + "line": 74, + "column": 54 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "ratio", - "start": 1322, - "end": 1327, + "start": 1825, + "end": 1826, "loc": { "start": { - "line": 57, - "column": 12 + "line": 74, + "column": 54 }, "end": { - "line": 57, - "column": 17 + "line": 74, + "column": 55 } } }, { "type": { - "label": ";", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 1327, - "end": 1328, + "value": "-", + "start": 1827, + "end": 1828, "loc": { "start": { - "line": 57, - "column": 17 + "line": 74, + "column": 56 }, "end": { - "line": 57, - "column": 18 + "line": 74, + "column": 57 } } }, @@ -36634,123 +39854,123 @@ "postfix": false, "binop": null }, - "value": "viewMatrix", - "start": 1332, - "end": 1342, + "value": "currCanvas", + "start": 1828, + "end": 1838, "loc": { "start": { - "line": 59, - "column": 2 + "line": 74, + "column": 57 }, "end": { - "line": 59, - "column": 12 + "line": 74, + "column": 67 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1343, - "end": 1344, + "start": 1838, + "end": 1839, "loc": { "start": { - "line": 59, - "column": 13 + "line": 74, + "column": 67 }, "end": { - "line": 59, - "column": 14 + "line": 74, + "column": 68 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "new", - "start": 1345, - "end": 1348, + "value": "height", + "start": 1839, + "end": 1845, "loc": { "start": { - "line": 59, - "column": 15 + "line": 74, + "column": 68 }, "end": { - "line": 59, - "column": 18 + "line": 74, + "column": 74 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "/", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 10, + "updateContext": null }, - "value": "L2DViewMatrix", - "start": 1349, - "end": 1362, + "value": "/", + "start": 1846, + "end": 1847, "loc": { "start": { - "line": 59, - "column": 19 + "line": 74, + "column": 75 }, "end": { - "line": 59, - "column": 32 + "line": 74, + "column": 76 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "num", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1362, - "end": 1363, + "value": 2, + "start": 1848, + "end": 1851, "loc": { "start": { - "line": 59, - "column": 32 + "line": 74, + "column": 77 }, "end": { - "line": 59, - "column": 33 + "line": 74, + "column": 80 } } }, @@ -36766,16 +39986,16 @@ "postfix": false, "binop": null }, - "start": 1363, - "end": 1364, + "start": 1851, + "end": 1852, "loc": { "start": { - "line": 59, - "column": 33 + "line": 74, + "column": 80 }, "end": { - "line": 59, - "column": 34 + "line": 74, + "column": 81 } } }, @@ -36792,16 +40012,32 @@ "binop": null, "updateContext": null }, - "start": 1364, - "end": 1365, + "start": 1852, + "end": 1853, "loc": { "start": { - "line": 59, - "column": 34 + "line": 74, + "column": 81 }, "end": { - "line": 59, - "column": 35 + "line": 74, + "column": 82 + } + } + }, + { + "type": "CommentLine", + "value": " #32", + "start": 1855, + "end": 1861, + "loc": { + "start": { + "line": 74, + "column": 84 + }, + "end": { + "line": 74, + "column": 90 } } }, @@ -36817,17 +40053,17 @@ "postfix": false, "binop": null }, - "value": "viewMatrix", - "start": 1369, - "end": 1379, + "value": "deviceToScreen", + "start": 1864, + "end": 1878, "loc": { "start": { - "line": 61, + "line": 75, "column": 2 }, "end": { - "line": 61, - "column": 12 + "line": 75, + "column": 16 } } }, @@ -36844,16 +40080,16 @@ "binop": null, "updateContext": null }, - "start": 1379, - "end": 1380, + "start": 1878, + "end": 1879, "loc": { "start": { - "line": 61, - "column": 12 + "line": 75, + "column": 16 }, "end": { - "line": 61, - "column": 13 + "line": 75, + "column": 17 } } }, @@ -36869,16 +40105,16 @@ "postfix": false, "binop": null }, - "value": "setScreenRect", - "start": 1380, - "end": 1393, + "value": "multScale", + "start": 1879, + "end": 1888, "loc": { "start": { - "line": 61, - "column": 13 + "line": 75, + "column": 17 }, "end": { - "line": 61, + "line": 75, "column": 26 } } @@ -36895,22 +40131,22 @@ "postfix": false, "binop": null }, - "start": 1393, - "end": 1394, + "start": 1888, + "end": 1889, "loc": { "start": { - "line": 61, + "line": 75, "column": 26 }, "end": { - "line": 61, + "line": 75, "column": 27 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -36918,25 +40154,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "left", - "start": 1394, - "end": 1398, + "value": 2, + "start": 1889, + "end": 1890, "loc": { "start": { - "line": 61, + "line": 75, "column": 27 }, "end": { - "line": 61, - "column": 31 + "line": 75, + "column": 28 } } }, { "type": { - "label": ",", + "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -36944,19 +40181,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 1398, - "end": 1399, + "value": "/", + "start": 1891, + "end": 1892, "loc": { "start": { - "line": 61, - "column": 31 + "line": 75, + "column": 29 }, "end": { - "line": 61, - "column": 32 + "line": 75, + "column": 30 } } }, @@ -36972,24 +40210,24 @@ "postfix": false, "binop": null }, - "value": "right", - "start": 1400, - "end": 1405, + "value": "currCanvas", + "start": 1893, + "end": 1903, "loc": { "start": { - "line": 61, - "column": 33 + "line": 75, + "column": 31 }, "end": { - "line": 61, - "column": 38 + "line": 75, + "column": 41 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -36999,16 +40237,16 @@ "binop": null, "updateContext": null }, - "start": 1405, - "end": 1406, + "start": 1903, + "end": 1904, "loc": { "start": { - "line": 61, - "column": 38 + "line": 75, + "column": 41 }, "end": { - "line": 61, - "column": 39 + "line": 75, + "column": 42 } } }, @@ -37024,17 +40262,17 @@ "postfix": false, "binop": null }, - "value": "bottom", - "start": 1407, - "end": 1413, + "value": "width", + "start": 1904, + "end": 1909, "loc": { "start": { - "line": 61, - "column": 40 + "line": 75, + "column": 42 }, "end": { - "line": 61, - "column": 46 + "line": 75, + "column": 47 } } }, @@ -37051,99 +40289,49 @@ "binop": null, "updateContext": null }, - "start": 1413, - "end": 1414, + "start": 1909, + "end": 1910, "loc": { "start": { - "line": 61, - "column": 46 - }, - "end": { - "line": 61, + "line": 75, "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "top", - "start": 1415, - "end": 1418, - "loc": { - "start": { - "line": 61, - "column": 48 - }, - "end": { - "line": 61, - "column": 51 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1418, - "end": 1419, - "loc": { - "start": { - "line": 61, - "column": 51 }, "end": { - "line": 61, - "column": 52 + "line": 75, + "column": 48 } } }, { "type": { - "label": ";", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 1419, - "end": 1420, + "value": "-", + "start": 1911, + "end": 1912, "loc": { "start": { - "line": 61, - "column": 52 + "line": 75, + "column": 49 }, "end": { - "line": 61, - "column": 53 + "line": 75, + "column": 50 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -37151,45 +40339,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "viewMatrix", - "start": 1424, - "end": 1434, + "value": 2, + "start": 1912, + "end": 1913, "loc": { "start": { - "line": 63, - "column": 2 + "line": 75, + "column": 50 }, "end": { - "line": 63, - "column": 12 + "line": 75, + "column": 51 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "/", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 1434, - "end": 1435, + "value": "/", + "start": 1914, + "end": 1915, "loc": { "start": { - "line": 63, - "column": 12 + "line": 75, + "column": 52 }, "end": { - "line": 63, - "column": 13 + "line": 75, + "column": 53 } } }, @@ -37205,42 +40395,43 @@ "postfix": false, "binop": null }, - "value": "setMaxScreenRect", - "start": 1435, - "end": 1451, + "value": "currCanvas", + "start": 1916, + "end": 1926, "loc": { "start": { - "line": 63, - "column": 13 + "line": 75, + "column": 54 }, "end": { - "line": 63, - "column": 29 + "line": 75, + "column": 64 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1451, - "end": 1452, + "start": 1926, + "end": 1927, "loc": { "start": { - "line": 63, - "column": 29 + "line": 75, + "column": 64 }, "end": { - "line": 63, - "column": 30 + "line": 75, + "column": 65 } } }, @@ -37256,23 +40447,23 @@ "postfix": false, "binop": null }, - "value": "cDefine", - "start": 1452, - "end": 1459, + "value": "height", + "start": 1927, + "end": 1933, "loc": { "start": { - "line": 63, - "column": 30 + "line": 75, + "column": 65 }, "end": { - "line": 63, - "column": 37 + "line": 75, + "column": 71 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -37280,71 +40471,60 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1459, - "end": 1460, + "start": 1933, + "end": 1934, "loc": { "start": { - "line": 63, - "column": 37 + "line": 75, + "column": 71 }, "end": { - "line": 63, - "column": 38 + "line": 75, + "column": 72 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "VIEW_LOGICAL_MAX_LEFT", - "start": 1460, - "end": 1481, + "start": 1934, + "end": 1935, "loc": { "start": { - "line": 63, - "column": 38 + "line": 75, + "column": 72 }, "end": { - "line": 63, - "column": 59 + "line": 75, + "column": 73 } } }, { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1481, - "end": 1482, + "type": "CommentLine", + "value": " #32", + "start": 1937, + "end": 1943, "loc": { "start": { - "line": 63, - "column": 59 + "line": 75, + "column": 75 }, "end": { - "line": 63, - "column": 60 + "line": 75, + "column": 81 } } }, @@ -37360,17 +40540,17 @@ "postfix": false, "binop": null }, - "value": "cDefine", - "start": 1487, - "end": 1494, + "value": "Live2D", + "start": 1948, + "end": 1954, "loc": { "start": { - "line": 64, - "column": 4 + "line": 78, + "column": 2 }, "end": { - "line": 64, - "column": 11 + "line": 78, + "column": 8 } } }, @@ -37387,16 +40567,16 @@ "binop": null, "updateContext": null }, - "start": 1494, - "end": 1495, + "start": 1954, + "end": 1955, "loc": { "start": { - "line": 64, - "column": 11 + "line": 78, + "column": 8 }, "end": { - "line": 64, - "column": 12 + "line": 78, + "column": 9 } } }, @@ -37412,43 +40592,42 @@ "postfix": false, "binop": null }, - "value": "VIEW_LOGICAL_MAX_RIGHT", - "start": 1495, - "end": 1517, + "value": "setGL", + "start": 1955, + "end": 1960, "loc": { "start": { - "line": 64, - "column": 12 + "line": 78, + "column": 9 }, "end": { - "line": 64, - "column": 34 + "line": 78, + "column": 14 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1517, - "end": 1518, + "start": 1960, + "end": 1961, "loc": { "start": { - "line": 64, - "column": 34 + "line": 78, + "column": 14 }, "end": { - "line": 64, - "column": 35 + "line": 78, + "column": 15 } } }, @@ -37464,23 +40643,23 @@ "postfix": false, "binop": null }, - "value": "cDefine", - "start": 1523, - "end": 1530, + "value": "currWebGL", + "start": 1961, + "end": 1970, "loc": { "start": { - "line": 65, - "column": 4 + "line": 78, + "column": 15 }, "end": { - "line": 65, - "column": 11 + "line": 78, + "column": 24 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -37488,51 +40667,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1530, - "end": 1531, - "loc": { - "start": { - "line": 65, - "column": 11 - }, - "end": { - "line": 65, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null }, - "value": "VIEW_LOGICAL_MAX_BOTTOM", - "start": 1531, - "end": 1554, + "start": 1970, + "end": 1971, "loc": { "start": { - "line": 65, - "column": 12 + "line": 78, + "column": 24 }, "end": { - "line": 65, - "column": 35 + "line": 78, + "column": 25 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -37543,16 +40695,16 @@ "binop": null, "updateContext": null }, - "start": 1554, - "end": 1555, + "start": 1971, + "end": 1972, "loc": { "start": { - "line": 65, - "column": 35 + "line": 78, + "column": 25 }, "end": { - "line": 65, - "column": 36 + "line": 78, + "column": 26 } } }, @@ -37568,16 +40720,16 @@ "postfix": false, "binop": null }, - "value": "cDefine", - "start": 1560, - "end": 1567, + "value": "currWebGL", + "start": 1975, + "end": 1984, "loc": { "start": { - "line": 66, - "column": 4 + "line": 79, + "column": 2 }, "end": { - "line": 66, + "line": 79, "column": 11 } } @@ -37595,15 +40747,15 @@ "binop": null, "updateContext": null }, - "start": 1567, - "end": 1568, + "start": 1984, + "end": 1985, "loc": { "start": { - "line": 66, + "line": 79, "column": 11 }, "end": { - "line": 66, + "line": 79, "column": 12 } } @@ -37620,25 +40772,25 @@ "postfix": false, "binop": null }, - "value": "VIEW_LOGICAL_MAX_TOP", - "start": 1568, - "end": 1588, + "value": "clearColor", + "start": 1985, + "end": 1995, "loc": { "start": { - "line": 66, + "line": 79, "column": 12 }, "end": { - "line": 66, - "column": 32 + "line": 79, + "column": 22 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -37646,22 +40798,49 @@ "postfix": false, "binop": null }, - "start": 1588, - "end": 1589, + "start": 1995, + "end": 1996, "loc": { "start": { - "line": 66, - "column": 32 + "line": 79, + "column": 22 }, "end": { - "line": 66, - "column": 33 + "line": 79, + "column": 23 } } }, { "type": { - "label": ";", + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 1996, + "end": 1999, + "loc": { + "start": { + "line": 79, + "column": 23 + }, + "end": { + "line": 79, + "column": 26 + } + } + }, + { + "type": { + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -37672,22 +40851,22 @@ "binop": null, "updateContext": null }, - "start": 1589, - "end": 1590, + "start": 1999, + "end": 2000, "loc": { "start": { - "line": 66, - "column": 33 + "line": 79, + "column": 26 }, "end": { - "line": 66, - "column": 34 + "line": 79, + "column": 27 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -37695,54 +40874,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "projMatrix", - "start": 1594, - "end": 1604, + "value": 0, + "start": 2001, + "end": 2004, "loc": { "start": { - "line": 68, - "column": 2 + "line": 79, + "column": 28 }, "end": { - "line": 68, - "column": 12 + "line": 79, + "column": 31 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1605, - "end": 1606, + "start": 2004, + "end": 2005, "loc": { "start": { - "line": 68, - "column": 13 + "line": 79, + "column": 31 }, "end": { - "line": 68, - "column": 14 + "line": 79, + "column": 32 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, + "label": "num", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -37752,68 +40930,70 @@ "binop": null, "updateContext": null }, - "value": "new", - "start": 1607, - "end": 1610, + "value": 0, + "start": 2006, + "end": 2009, "loc": { "start": { - "line": 68, - "column": 15 + "line": 79, + "column": 33 }, "end": { - "line": 68, - "column": 18 + "line": 79, + "column": 36 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "L2DMatrix44", - "start": 1611, - "end": 1622, + "start": 2009, + "end": 2010, "loc": { "start": { - "line": 68, - "column": 19 + "line": 79, + "column": 36 }, "end": { - "line": 68, - "column": 30 + "line": 79, + "column": 37 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "num", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1622, - "end": 1623, + "value": 0, + "start": 2011, + "end": 2014, "loc": { "start": { - "line": 68, - "column": 30 + "line": 79, + "column": 38 }, "end": { - "line": 68, - "column": 31 + "line": 79, + "column": 41 } } }, @@ -37829,16 +41009,16 @@ "postfix": false, "binop": null }, - "start": 1623, - "end": 1624, + "start": 2014, + "end": 2015, "loc": { "start": { - "line": 68, - "column": 31 + "line": 79, + "column": 41 }, "end": { - "line": 68, - "column": 32 + "line": 79, + "column": 42 } } }, @@ -37855,16 +41035,16 @@ "binop": null, "updateContext": null }, - "start": 1624, - "end": 1625, + "start": 2015, + "end": 2016, "loc": { "start": { - "line": 68, - "column": 32 + "line": 79, + "column": 42 }, "end": { - "line": 68, - "column": 33 + "line": 79, + "column": 43 } } }, @@ -37880,43 +41060,42 @@ "postfix": false, "binop": null }, - "value": "projMatrix", - "start": 1628, - "end": 1638, + "value": "changeModel", + "start": 2019, + "end": 2030, "loc": { "start": { - "line": 69, + "line": 80, "column": 2 }, "end": { - "line": 69, - "column": 12 + "line": 80, + "column": 13 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1638, - "end": 1639, + "start": 2030, + "end": 2031, "loc": { "start": { - "line": 69, - "column": 12 + "line": 80, + "column": 13 }, "end": { - "line": 69, - "column": 13 + "line": 80, + "column": 14 } } }, @@ -37932,48 +41111,49 @@ "postfix": false, "binop": null }, - "value": "multScale", - "start": 1639, - "end": 1648, + "value": "config", + "start": 2031, + "end": 2037, "loc": { "start": { - "line": 69, - "column": 13 + "line": 80, + "column": 14 }, "end": { - "line": 69, - "column": 22 + "line": 80, + "column": 20 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1648, - "end": 1649, + "start": 2037, + "end": 2038, "loc": { "start": { - "line": 69, - "column": 22 + "line": 80, + "column": 20 }, "end": { - "line": 69, - "column": 23 + "line": 80, + "column": 21 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -37981,27 +41161,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 1, - "start": 1649, - "end": 1650, + "value": "model", + "start": 2038, + "end": 2043, "loc": { "start": { - "line": 69, - "column": 23 + "line": 80, + "column": 21 }, "end": { - "line": 69, - "column": 24 + "line": 80, + "column": 26 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -38011,23 +41190,23 @@ "binop": null, "updateContext": null }, - "start": 1650, - "end": 1651, + "start": 2043, + "end": 2044, "loc": { "start": { - "line": 69, - "column": 24 + "line": 80, + "column": 26 }, "end": { - "line": 69, - "column": 25 + "line": 80, + "column": 27 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -38036,24 +41215,25 @@ "postfix": false, "binop": null }, - "start": 1652, - "end": 1653, + "value": "jsonPath", + "start": 2044, + "end": 2052, "loc": { "start": { - "line": 69, - "column": 26 + "line": 80, + "column": 27 }, "end": { - "line": 69, - "column": 27 + "line": 80, + "column": 35 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38061,24 +41241,23 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1653, - "end": 1659, + "start": 2052, + "end": 2053, "loc": { "start": { - "line": 69, - "column": 27 + "line": 80, + "column": 35 }, "end": { - "line": 69, - "column": 33 + "line": 80, + "column": 36 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -38088,16 +41267,16 @@ "binop": null, "updateContext": null }, - "start": 1659, - "end": 1660, + "start": 2053, + "end": 2054, "loc": { "start": { - "line": 69, - "column": 33 + "line": 80, + "column": 36 }, "end": { - "line": 69, - "column": 34 + "line": 80, + "column": 37 } } }, @@ -38113,51 +41292,50 @@ "postfix": false, "binop": null }, - "value": "display", - "start": 1660, - "end": 1667, + "value": "startDraw", + "start": 2057, + "end": 2066, "loc": { "start": { - "line": 69, - "column": 34 + "line": 81, + "column": 2 }, "end": { - "line": 69, - "column": 41 + "line": 81, + "column": 11 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1667, - "end": 1668, + "start": 2066, + "end": 2067, "loc": { "start": { - "line": 69, - "column": 41 + "line": 81, + "column": 11 }, "end": { - "line": 69, - "column": 42 + "line": 81, + "column": 12 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38165,23 +41343,22 @@ "postfix": false, "binop": null }, - "value": "width", - "start": 1668, - "end": 1673, + "start": 2067, + "end": 2068, "loc": { "start": { - "line": 69, - "column": 42 + "line": 81, + "column": 12 }, "end": { - "line": 69, - "column": 47 + "line": 81, + "column": 13 } } }, { "type": { - "label": "/", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -38189,28 +41366,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "/", - "start": 1674, - "end": 1675, + "start": 2068, + "end": 2069, "loc": { "start": { - "line": 69, - "column": 48 + "line": 81, + "column": 13 }, "end": { - "line": 69, - "column": 49 + "line": 81, + "column": 14 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38218,49 +41394,39 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1676, - "end": 1682, + "start": 2072, + "end": 2073, "loc": { "start": { - "line": 69, - "column": 50 + "line": 84, + "column": 0 }, "end": { - "line": 69, - "column": 56 + "line": 84, + "column": 1 } } }, { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1682, - "end": 1683, + "type": "CommentBlock", + "value": "*\n * Capture current frame to png file\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n * @example\n * You can use codes below to let the user download the current frame\n *\n * L2Dwidget.captureFrame(\n * function(e){\n * let link = document.createElement('a');\n * document.body.appendChild(link);\n * link.setAttribute('type', 'hidden');\n * link.href = e;\n * link.download = 'live2d.png';\n * link.click();\n * }\n * );\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n ", + "start": 2075, + "end": 2711, "loc": { "start": { - "line": 69, - "column": 56 + "line": 86, + "column": 0 }, "end": { - "line": 69, - "column": 57 + "line": 105, + "column": 3 } } }, { "type": { - "label": "name", + "label": "function", + "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -38270,50 +41436,50 @@ "postfix": false, "binop": null }, - "value": "display", - "start": 1683, - "end": 1690, + "value": "function", + "start": 2713, + "end": 2721, "loc": { "start": { - "line": 69, - "column": 57 + "line": 107, + "column": 0 }, "end": { - "line": 69, - "column": 64 + "line": 107, + "column": 8 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1690, - "end": 1691, + "value": "captureFrame", + "start": 2722, + "end": 2734, "loc": { "start": { - "line": 69, - "column": 64 + "line": 107, + "column": 9 }, "end": { - "line": 69, - "column": 65 + "line": 107, + "column": 21 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -38322,25 +41488,24 @@ "postfix": false, "binop": null }, - "value": "height", - "start": 1691, - "end": 1697, + "start": 2734, + "end": 2735, "loc": { "start": { - "line": 69, - "column": 65 + "line": 107, + "column": 21 }, "end": { - "line": 69, - "column": 71 + "line": 107, + "column": 22 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38348,16 +41513,17 @@ "postfix": false, "binop": null }, - "start": 1697, - "end": 1698, + "value": "callback", + "start": 2735, + "end": 2743, "loc": { "start": { - "line": 69, - "column": 71 + "line": 107, + "column": 22 }, "end": { - "line": 69, - "column": 72 + "line": 107, + "column": 30 } } }, @@ -38373,42 +41539,41 @@ "postfix": false, "binop": null }, - "start": 1698, - "end": 1699, + "start": 2743, + "end": 2744, "loc": { "start": { - "line": 69, - "column": 72 + "line": 107, + "column": 30 }, "end": { - "line": 69, - "column": 73 + "line": 107, + "column": 31 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1699, - "end": 1700, + "start": 2744, + "end": 2745, "loc": { "start": { - "line": 69, - "column": 73 + "line": 107, + "column": 31 }, "end": { - "line": 69, - "column": 74 + "line": 107, + "column": 32 } } }, @@ -38424,16 +41589,16 @@ "postfix": false, "binop": null }, - "value": "deviceToScreen", - "start": 1704, - "end": 1718, + "value": "captureFrameCB", + "start": 2748, + "end": 2762, "loc": { "start": { - "line": 71, + "line": 108, "column": 2 }, "end": { - "line": 71, + "line": 108, "column": 16 } } @@ -38452,78 +41617,76 @@ "updateContext": null }, "value": "=", - "start": 1719, - "end": 1720, + "start": 2763, + "end": 2764, "loc": { "start": { - "line": 71, + "line": 108, "column": 17 }, "end": { - "line": 71, + "line": 108, "column": 18 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "new", - "start": 1721, - "end": 1724, + "value": "callback", + "start": 2765, + "end": 2773, "loc": { "start": { - "line": 71, + "line": 108, "column": 19 }, "end": { - "line": 71, - "column": 22 + "line": 108, + "column": 27 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "L2DMatrix44", - "start": 1725, - "end": 1736, + "start": 2773, + "end": 2774, "loc": { "start": { - "line": 71, - "column": 23 + "line": 108, + "column": 27 }, "end": { - "line": 71, - "column": 34 + "line": 108, + "column": 28 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38531,24 +41694,25 @@ "postfix": false, "binop": null }, - "start": 1736, - "end": 1737, + "start": 2775, + "end": 2776, "loc": { "start": { - "line": 71, - "column": 34 + "line": 109, + "column": 0 }, "end": { - "line": 71, - "column": 35 + "line": 109, + "column": 1 } } }, { "type": { - "label": ")", + "label": "function", + "keyword": "function", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38556,49 +41720,50 @@ "postfix": false, "binop": null }, - "start": 1737, - "end": 1738, + "value": "function", + "start": 2778, + "end": 2786, "loc": { "start": { - "line": 71, - "column": 35 + "line": 111, + "column": 0 }, "end": { - "line": 71, - "column": 36 + "line": 111, + "column": 8 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1738, - "end": 1739, + "value": "initEvent", + "start": 2787, + "end": 2796, "loc": { "start": { - "line": 71, - "column": 36 + "line": 111, + "column": 9 }, "end": { - "line": 71, - "column": 37 + "line": 111, + "column": 18 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -38607,23 +41772,22 @@ "postfix": false, "binop": null }, - "value": "deviceToScreen", - "start": 1742, - "end": 1756, + "start": 2796, + "end": 2797, "loc": { "start": { - "line": 72, - "column": 2 + "line": 111, + "column": 18 }, "end": { - "line": 72, - "column": 16 + "line": 111, + "column": 19 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -38631,26 +41795,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1756, - "end": 1757, + "start": 2797, + "end": 2798, "loc": { "start": { - "line": 72, - "column": 16 + "line": 111, + "column": 19 }, "end": { - "line": 72, - "column": 17 + "line": 111, + "column": 20 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -38659,69 +41822,69 @@ "postfix": false, "binop": null }, - "value": "multTranslate", - "start": 1757, - "end": 1770, + "start": 2798, + "end": 2799, "loc": { "start": { - "line": 72, - "column": 17 + "line": 111, + "column": 20 }, "end": { - "line": 72, - "column": 30 + "line": 111, + "column": 21 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1770, - "end": 1771, + "value": "if", + "start": 2802, + "end": 2804, "loc": { "start": { - "line": 72, - "column": 30 + "line": 112, + "column": 2 }, "end": { - "line": 72, - "column": 31 + "line": 112, + "column": 4 } } }, { "type": { - "label": "+/-", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "-", - "start": 1771, - "end": 1772, + "start": 2805, + "end": 2806, "loc": { "start": { - "line": 72, - "column": 31 + "line": 112, + "column": 5 }, "end": { - "line": 72, - "column": 32 + "line": 112, + "column": 6 } } }, @@ -38737,17 +41900,17 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1772, - "end": 1778, + "value": "currCanvas", + "start": 2806, + "end": 2816, "loc": { "start": { - "line": 72, - "column": 32 + "line": 112, + "column": 6 }, "end": { - "line": 72, - "column": 38 + "line": 112, + "column": 16 } } }, @@ -38764,16 +41927,16 @@ "binop": null, "updateContext": null }, - "start": 1778, - "end": 1779, + "start": 2816, + "end": 2817, "loc": { "start": { - "line": 72, - "column": 38 + "line": 112, + "column": 16 }, "end": { - "line": 72, - "column": 39 + "line": 112, + "column": 17 } } }, @@ -38789,23 +41952,23 @@ "postfix": false, "binop": null }, - "value": "display", - "start": 1779, - "end": 1786, + "value": "addEventListener", + "start": 2817, + "end": 2833, "loc": { "start": { - "line": 72, - "column": 39 + "line": 112, + "column": 17 }, "end": { - "line": 72, - "column": 46 + "line": 112, + "column": 33 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -38813,26 +41976,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1786, - "end": 1787, + "start": 2833, + "end": 2834, "loc": { "start": { - "line": 72, - "column": 46 + "line": 112, + "column": 33 }, "end": { - "line": 72, - "column": 47 + "line": 112, + "column": 34 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -38841,52 +42003,50 @@ "postfix": false, "binop": null }, - "value": "width", - "start": 1787, - "end": 1792, + "start": 2835, + "end": 2836, "loc": { "start": { - "line": 72, - "column": 47 + "line": 112, + "column": 35 }, "end": { - "line": 72, - "column": 52 + "line": 112, + "column": 36 } } }, { "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, - "updateContext": null + "binop": null }, - "value": "/", - "start": 1793, - "end": 1794, + "value": "window", + "start": 2841, + "end": 2847, "loc": { "start": { - "line": 72, - "column": 53 + "line": 113, + "column": 4 }, "end": { - "line": 72, - "column": 54 + "line": 113, + "column": 10 } } }, { "type": { - "label": "num", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38895,76 +42055,73 @@ "binop": null, "updateContext": null }, - "value": 2, - "start": 1795, - "end": 1798, + "start": 2847, + "end": 2848, "loc": { "start": { - "line": 72, - "column": 55 + "line": 113, + "column": 10 }, "end": { - "line": 72, - "column": 58 + "line": 113, + "column": 11 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1798, - "end": 1799, + "value": "addEventListener", + "start": 2848, + "end": 2864, "loc": { "start": { - "line": 72, - "column": 58 + "line": 113, + "column": 11 }, "end": { - "line": 72, - "column": 59 + "line": 113, + "column": 27 } } }, { "type": { - "label": "+/-", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "-", - "start": 1800, - "end": 1801, + "start": 2864, + "end": 2865, "loc": { "start": { - "line": 72, - "column": 60 + "line": 113, + "column": 27 }, "end": { - "line": 72, - "column": 61 + "line": 113, + "column": 28 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -38972,26 +42129,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "config", - "start": 1801, - "end": 1807, + "value": "click", + "start": 2865, + "end": 2872, "loc": { "start": { - "line": 72, - "column": 61 + "line": 113, + "column": 28 }, "end": { - "line": 72, - "column": 67 + "line": 113, + "column": 35 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -39001,16 +42159,16 @@ "binop": null, "updateContext": null }, - "start": 1807, - "end": 1808, + "start": 2872, + "end": 2873, "loc": { "start": { - "line": 72, - "column": 67 + "line": 113, + "column": 35 }, "end": { - "line": 72, - "column": 68 + "line": 113, + "column": 36 } } }, @@ -39026,23 +42184,23 @@ "postfix": false, "binop": null }, - "value": "display", - "start": 1808, - "end": 1815, + "value": "mouseEvent", + "start": 2874, + "end": 2884, "loc": { "start": { - "line": 72, - "column": 68 + "line": 113, + "column": 37 }, "end": { - "line": 72, - "column": 75 + "line": 113, + "column": 47 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -39050,80 +42208,78 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1815, - "end": 1816, + "start": 2884, + "end": 2885, "loc": { "start": { - "line": 72, - "column": 75 + "line": 113, + "column": 47 }, "end": { - "line": 72, - "column": 76 + "line": 113, + "column": 48 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "height", - "start": 1816, - "end": 1822, + "start": 2885, + "end": 2886, "loc": { "start": { - "line": 72, - "column": 76 + "line": 113, + "column": 48 }, "end": { - "line": 72, - "column": 82 + "line": 113, + "column": 49 } } }, { "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, - "updateContext": null + "binop": null }, - "value": "/", - "start": 1823, - "end": 1824, + "value": "window", + "start": 2891, + "end": 2897, "loc": { "start": { - "line": 72, - "column": 83 + "line": 114, + "column": 4 }, "end": { - "line": 72, - "column": 84 + "line": 114, + "column": 10 } } }, { "type": { - "label": "num", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -39132,25 +42288,24 @@ "binop": null, "updateContext": null }, - "value": 2, - "start": 1825, - "end": 1828, + "start": 2897, + "end": 2898, "loc": { "start": { - "line": 72, - "column": 85 + "line": 114, + "column": 10 }, "end": { - "line": 72, - "column": 88 + "line": 114, + "column": 11 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -39158,118 +42313,129 @@ "postfix": false, "binop": null }, - "start": 1828, - "end": 1829, + "value": "addEventListener", + "start": 2898, + "end": 2914, "loc": { "start": { - "line": 72, - "column": 88 + "line": 114, + "column": 11 }, "end": { - "line": 72, - "column": 89 + "line": 114, + "column": 27 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1829, - "end": 1830, + "start": 2914, + "end": 2915, "loc": { "start": { - "line": 72, - "column": 89 + "line": 114, + "column": 27 }, "end": { - "line": 72, - "column": 90 + "line": 114, + "column": 28 } } }, { - "type": "CommentLine", - "value": " #32", - "start": 1832, - "end": 1838, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "mousedown", + "start": 2915, + "end": 2926, "loc": { "start": { - "line": 72, - "column": 92 + "line": 114, + "column": 28 }, "end": { - "line": 72, - "column": 98 + "line": 114, + "column": 39 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "deviceToScreen", - "start": 1841, - "end": 1855, + "start": 2926, + "end": 2927, "loc": { "start": { - "line": 73, - "column": 2 + "line": 114, + "column": 39 }, "end": { - "line": 73, - "column": 16 + "line": 114, + "column": 40 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1855, - "end": 1856, + "value": "mouseEvent", + "start": 2928, + "end": 2938, "loc": { "start": { - "line": 73, - "column": 16 + "line": 114, + "column": 41 }, "end": { - "line": 73, - "column": 17 + "line": 114, + "column": 51 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -39277,48 +42443,48 @@ "postfix": false, "binop": null }, - "value": "multScale", - "start": 1856, - "end": 1865, + "start": 2938, + "end": 2939, "loc": { "start": { - "line": 73, - "column": 17 + "line": 114, + "column": 51 }, "end": { - "line": 73, - "column": 26 + "line": 114, + "column": 52 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1865, - "end": 1866, + "start": 2939, + "end": 2940, "loc": { "start": { - "line": 73, - "column": 26 + "line": 114, + "column": 52 }, "end": { - "line": 73, - "column": 27 + "line": 114, + "column": 53 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -39326,47 +42492,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 2, - "start": 1866, - "end": 1867, + "value": "window", + "start": 2945, + "end": 2951, "loc": { "start": { - "line": 73, - "column": 27 + "line": 115, + "column": 4 }, "end": { - "line": 73, - "column": 28 + "line": 115, + "column": 10 } } }, { "type": { - "label": "/", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "/", - "start": 1868, - "end": 1869, + "start": 2951, + "end": 2952, "loc": { "start": { - "line": 73, - "column": 29 + "line": 115, + "column": 10 }, "end": { - "line": 73, - "column": 30 + "line": 115, + "column": 11 } } }, @@ -39382,49 +42546,48 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1870, - "end": 1876, + "value": "addEventListener", + "start": 2952, + "end": 2968, "loc": { "start": { - "line": 73, - "column": 31 + "line": 115, + "column": 11 }, "end": { - "line": 73, - "column": 37 + "line": 115, + "column": 27 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1876, - "end": 1877, + "start": 2968, + "end": 2969, "loc": { "start": { - "line": 73, - "column": 37 + "line": 115, + "column": 27 }, "end": { - "line": 73, - "column": 38 + "line": 115, + "column": 28 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -39432,26 +42595,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "display", - "start": 1877, - "end": 1884, + "value": "mousemove", + "start": 2969, + "end": 2980, "loc": { "start": { - "line": 73, - "column": 38 + "line": 115, + "column": 28 }, "end": { - "line": 73, - "column": 45 + "line": 115, + "column": 39 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -39461,16 +42625,16 @@ "binop": null, "updateContext": null }, - "start": 1884, - "end": 1885, + "start": 2980, + "end": 2981, "loc": { "start": { - "line": 73, - "column": 45 + "line": 115, + "column": 39 }, "end": { - "line": 73, - "column": 46 + "line": 115, + "column": 40 } } }, @@ -39486,76 +42650,74 @@ "postfix": false, "binop": null }, - "value": "width", - "start": 1885, - "end": 1890, + "value": "mouseEvent", + "start": 2982, + "end": 2992, "loc": { "start": { - "line": 73, - "column": 46 + "line": 115, + "column": 41 }, "end": { - "line": 73, + "line": 115, "column": 51 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1890, - "end": 1891, + "start": 2992, + "end": 2993, "loc": { "start": { - "line": 73, + "line": 115, "column": 51 }, "end": { - "line": 73, + "line": 115, "column": 52 } } }, { "type": { - "label": "+/-", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 1892, - "end": 1893, + "start": 2993, + "end": 2994, "loc": { "start": { - "line": 73, - "column": 53 + "line": 115, + "column": 52 }, "end": { - "line": 73, - "column": 54 + "line": 115, + "column": 53 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -39563,47 +42725,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 2, - "start": 1893, - "end": 1894, + "value": "window", + "start": 2999, + "end": 3005, "loc": { "start": { - "line": 73, - "column": 54 + "line": 116, + "column": 4 }, "end": { - "line": 73, - "column": 55 + "line": 116, + "column": 10 } } }, { "type": { - "label": "/", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "/", - "start": 1895, - "end": 1896, + "start": 3005, + "end": 3006, "loc": { "start": { - "line": 73, - "column": 56 + "line": 116, + "column": 10 }, "end": { - "line": 73, - "column": 57 + "line": 116, + "column": 11 } } }, @@ -39619,49 +42779,48 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1897, - "end": 1903, + "value": "addEventListener", + "start": 3006, + "end": 3022, "loc": { "start": { - "line": 73, - "column": 58 + "line": 116, + "column": 11 }, "end": { - "line": 73, - "column": 64 + "line": 116, + "column": 27 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1903, - "end": 1904, + "start": 3022, + "end": 3023, "loc": { "start": { - "line": 73, - "column": 64 + "line": 116, + "column": 27 }, "end": { - "line": 73, - "column": 65 + "line": 116, + "column": 28 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -39669,26 +42828,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "display", - "start": 1904, - "end": 1911, + "value": "mouseup", + "start": 3023, + "end": 3032, "loc": { "start": { - "line": 73, - "column": 65 + "line": 116, + "column": 28 }, "end": { - "line": 73, - "column": 72 + "line": 116, + "column": 37 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -39698,16 +42858,16 @@ "binop": null, "updateContext": null }, - "start": 1911, - "end": 1912, + "start": 3032, + "end": 3033, "loc": { "start": { - "line": 73, - "column": 72 + "line": 116, + "column": 37 }, "end": { - "line": 73, - "column": 73 + "line": 116, + "column": 38 } } }, @@ -39723,17 +42883,17 @@ "postfix": false, "binop": null }, - "value": "height", - "start": 1912, - "end": 1918, + "value": "mouseEvent", + "start": 3034, + "end": 3044, "loc": { "start": { - "line": 73, - "column": 73 + "line": 116, + "column": 39 }, "end": { - "line": 73, - "column": 79 + "line": 116, + "column": 49 } } }, @@ -39749,16 +42909,16 @@ "postfix": false, "binop": null }, - "start": 1918, - "end": 1919, + "start": 3044, + "end": 3045, "loc": { "start": { - "line": 73, - "column": 79 + "line": 116, + "column": 49 }, "end": { - "line": 73, - "column": 80 + "line": 116, + "column": 50 } } }, @@ -39775,32 +42935,16 @@ "binop": null, "updateContext": null }, - "start": 1919, - "end": 1920, - "loc": { - "start": { - "line": 73, - "column": 80 - }, - "end": { - "line": 73, - "column": 81 - } - } - }, - { - "type": "CommentLine", - "value": " #32", - "start": 1922, - "end": 1928, + "start": 3045, + "end": 3046, "loc": { "start": { - "line": 73, - "column": 83 + "line": 116, + "column": 50 }, "end": { - "line": 73, - "column": 89 + "line": 116, + "column": 51 } } }, @@ -39816,17 +42960,17 @@ "postfix": false, "binop": null }, - "value": "Live2D", - "start": 1933, - "end": 1939, + "value": "document", + "start": 3051, + "end": 3059, "loc": { "start": { - "line": 76, - "column": 2 + "line": 117, + "column": 4 }, "end": { - "line": 76, - "column": 8 + "line": 117, + "column": 12 } } }, @@ -39843,16 +42987,16 @@ "binop": null, "updateContext": null }, - "start": 1939, - "end": 1940, + "start": 3059, + "end": 3060, "loc": { "start": { - "line": 76, - "column": 8 + "line": 117, + "column": 12 }, "end": { - "line": 76, - "column": 9 + "line": 117, + "column": 13 } } }, @@ -39868,17 +43012,17 @@ "postfix": false, "binop": null }, - "value": "setGL", - "start": 1940, - "end": 1945, + "value": "addEventListener", + "start": 3060, + "end": 3076, "loc": { "start": { - "line": 76, - "column": 9 + "line": 117, + "column": 13 }, "end": { - "line": 76, - "column": 14 + "line": 117, + "column": 29 } } }, @@ -39894,16 +43038,69 @@ "postfix": false, "binop": null }, - "start": 1945, - "end": 1946, + "start": 3076, + "end": 3077, "loc": { "start": { - "line": 76, - "column": 14 + "line": 117, + "column": 29 }, "end": { - "line": 76, - "column": 15 + "line": 117, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "mouseleave", + "start": 3077, + "end": 3089, + "loc": { + "start": { + "line": 117, + "column": 30 + }, + "end": { + "line": 117, + "column": 42 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3089, + "end": 3090, + "loc": { + "start": { + "line": 117, + "column": 42 + }, + "end": { + "line": 117, + "column": 43 } } }, @@ -39919,17 +43116,17 @@ "postfix": false, "binop": null }, - "value": "currWebGL", - "start": 1946, - "end": 1955, + "value": "mouseEvent", + "start": 3091, + "end": 3101, "loc": { "start": { - "line": 76, - "column": 15 + "line": 117, + "column": 44 }, "end": { - "line": 76, - "column": 24 + "line": 117, + "column": 54 } } }, @@ -39945,16 +43142,16 @@ "postfix": false, "binop": null }, - "start": 1955, - "end": 1956, + "start": 3101, + "end": 3102, "loc": { "start": { - "line": 76, - "column": 24 + "line": 117, + "column": 54 }, "end": { - "line": 76, - "column": 25 + "line": 117, + "column": 55 } } }, @@ -39971,16 +43168,16 @@ "binop": null, "updateContext": null }, - "start": 1956, - "end": 1957, + "start": 3102, + "end": 3103, "loc": { "start": { - "line": 76, - "column": 25 + "line": 117, + "column": 55 }, "end": { - "line": 76, - "column": 26 + "line": 117, + "column": 56 } } }, @@ -39996,17 +43193,17 @@ "postfix": false, "binop": null }, - "value": "currWebGL", - "start": 1960, - "end": 1969, + "value": "window", + "start": 3108, + "end": 3114, "loc": { "start": { - "line": 77, - "column": 2 + "line": 118, + "column": 4 }, "end": { - "line": 77, - "column": 11 + "line": 118, + "column": 10 } } }, @@ -40023,16 +43220,16 @@ "binop": null, "updateContext": null }, - "start": 1969, - "end": 1970, + "start": 3114, + "end": 3115, "loc": { "start": { - "line": 77, - "column": 11 + "line": 118, + "column": 10 }, "end": { - "line": 77, - "column": 12 + "line": 118, + "column": 11 } } }, @@ -40048,17 +43245,17 @@ "postfix": false, "binop": null }, - "value": "clearColor", - "start": 1970, - "end": 1980, + "value": "addEventListener", + "start": 3115, + "end": 3131, "loc": { "start": { - "line": 77, - "column": 12 + "line": 118, + "column": 11 }, "end": { - "line": 77, - "column": 22 + "line": 118, + "column": 27 } } }, @@ -40074,22 +43271,22 @@ "postfix": false, "binop": null }, - "start": 1980, - "end": 1981, + "start": 3131, + "end": 3132, "loc": { "start": { - "line": 77, - "column": 22 + "line": 118, + "column": 27 }, "end": { - "line": 77, - "column": 23 + "line": 118, + "column": 28 } } }, { "type": { - "label": "num", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40100,17 +43297,17 @@ "binop": null, "updateContext": null }, - "value": 0, - "start": 1981, - "end": 1984, + "value": "touchstart", + "start": 3132, + "end": 3144, "loc": { "start": { - "line": 77, - "column": 23 + "line": 118, + "column": 28 }, "end": { - "line": 77, - "column": 26 + "line": 118, + "column": 40 } } }, @@ -40127,22 +43324,22 @@ "binop": null, "updateContext": null }, - "start": 1984, - "end": 1985, + "start": 3144, + "end": 3145, "loc": { "start": { - "line": 77, - "column": 26 + "line": 118, + "column": 40 }, "end": { - "line": 77, - "column": 27 + "line": 118, + "column": 41 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40150,26 +43347,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 1986, - "end": 1989, + "value": "touchEvent", + "start": 3146, + "end": 3156, "loc": { "start": { - "line": 77, - "column": 28 + "line": 118, + "column": 42 }, "end": { - "line": 77, - "column": 31 + "line": 118, + "column": 52 } } }, { "type": { - "label": ",", + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3156, + "end": 3157, + "loc": { + "start": { + "line": 118, + "column": 52 + }, + "end": { + "line": 118, + "column": 53 + } + } + }, + { + "type": { + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -40180,22 +43401,22 @@ "binop": null, "updateContext": null }, - "start": 1989, - "end": 1990, + "start": 3157, + "end": 3158, "loc": { "start": { - "line": 77, - "column": 31 + "line": 118, + "column": 53 }, "end": { - "line": 77, - "column": 32 + "line": 118, + "column": 54 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40203,27 +43424,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 1991, - "end": 1994, + "value": "window", + "start": 3163, + "end": 3169, "loc": { "start": { - "line": 77, - "column": 33 + "line": 119, + "column": 4 }, "end": { - "line": 77, - "column": 36 + "line": 119, + "column": 10 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -40233,22 +43453,22 @@ "binop": null, "updateContext": null }, - "start": 1994, - "end": 1995, + "start": 3169, + "end": 3170, "loc": { "start": { - "line": 77, - "column": 36 + "line": 119, + "column": 10 }, "end": { - "line": 77, - "column": 37 + "line": 119, + "column": 11 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40256,28 +43476,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 1996, - "end": 1999, + "value": "addEventListener", + "start": 3170, + "end": 3186, "loc": { "start": { - "line": 77, - "column": 38 + "line": 119, + "column": 11 }, "end": { - "line": 77, - "column": 41 + "line": 119, + "column": 27 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40285,24 +43504,24 @@ "postfix": false, "binop": null }, - "start": 1999, - "end": 2000, + "start": 3186, + "end": 3187, "loc": { "start": { - "line": 77, - "column": 41 + "line": 119, + "column": 27 }, "end": { - "line": 77, - "column": 42 + "line": 119, + "column": 28 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40311,49 +43530,50 @@ "binop": null, "updateContext": null }, - "start": 2000, - "end": 2001, + "value": "touchend", + "start": 3187, + "end": 3197, "loc": { "start": { - "line": 77, - "column": 42 + "line": 119, + "column": 28 }, "end": { - "line": 77, - "column": 43 + "line": 119, + "column": 38 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "changeModel", - "start": 2004, - "end": 2015, + "start": 3197, + "end": 3198, "loc": { "start": { - "line": 78, - "column": 2 + "line": 119, + "column": 38 }, "end": { - "line": 78, - "column": 13 + "line": 119, + "column": 39 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -40362,24 +43582,25 @@ "postfix": false, "binop": null }, - "start": 2015, - "end": 2016, + "value": "touchEvent", + "start": 3199, + "end": 3209, "loc": { "start": { - "line": 78, - "column": 13 + "line": 119, + "column": 40 }, "end": { - "line": 78, - "column": 14 + "line": 119, + "column": 50 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40387,24 +43608,23 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 2016, - "end": 2022, + "start": 3209, + "end": 3210, "loc": { "start": { - "line": 78, - "column": 14 + "line": 119, + "column": 50 }, "end": { - "line": 78, - "column": 20 + "line": 119, + "column": 51 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -40414,16 +43634,16 @@ "binop": null, "updateContext": null }, - "start": 2022, - "end": 2023, + "start": 3210, + "end": 3211, "loc": { "start": { - "line": 78, - "column": 20 + "line": 119, + "column": 51 }, "end": { - "line": 78, - "column": 21 + "line": 119, + "column": 52 } } }, @@ -40439,17 +43659,17 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 2023, - "end": 2028, + "value": "window", + "start": 3216, + "end": 3222, "loc": { "start": { - "line": 78, - "column": 21 + "line": 120, + "column": 4 }, "end": { - "line": 78, - "column": 26 + "line": 120, + "column": 10 } } }, @@ -40466,16 +43686,16 @@ "binop": null, "updateContext": null }, - "start": 2028, - "end": 2029, + "start": 3222, + "end": 3223, "loc": { "start": { - "line": 78, - "column": 26 + "line": 120, + "column": 10 }, "end": { - "line": 78, - "column": 27 + "line": 120, + "column": 11 } } }, @@ -40491,25 +43711,25 @@ "postfix": false, "binop": null }, - "value": "jsonPath", - "start": 2029, - "end": 2037, + "value": "addEventListener", + "start": 3223, + "end": 3239, "loc": { "start": { - "line": 78, - "column": 27 + "line": 120, + "column": 11 }, "end": { - "line": 78, - "column": 35 + "line": 120, + "column": 27 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40517,24 +43737,24 @@ "postfix": false, "binop": null }, - "start": 2037, - "end": 2038, + "start": 3239, + "end": 3240, "loc": { "start": { - "line": 78, - "column": 35 + "line": 120, + "column": 27 }, "end": { - "line": 78, - "column": 36 + "line": 120, + "column": 28 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40543,49 +43763,50 @@ "binop": null, "updateContext": null }, - "start": 2038, - "end": 2039, + "value": "touchmove", + "start": 3240, + "end": 3251, "loc": { "start": { - "line": 78, - "column": 36 + "line": 120, + "column": 28 }, "end": { - "line": 78, - "column": 37 + "line": 120, + "column": 39 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "startDraw", - "start": 2042, - "end": 2051, + "start": 3251, + "end": 3252, "loc": { "start": { - "line": 79, - "column": 2 + "line": 120, + "column": 39 }, "end": { - "line": 79, - "column": 11 + "line": 120, + "column": 40 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -40594,16 +43815,17 @@ "postfix": false, "binop": null }, - "start": 2051, - "end": 2052, + "value": "touchEvent", + "start": 3253, + "end": 3263, "loc": { "start": { - "line": 79, - "column": 11 + "line": 120, + "column": 41 }, "end": { - "line": 79, - "column": 12 + "line": 120, + "column": 51 } } }, @@ -40619,16 +43841,16 @@ "postfix": false, "binop": null }, - "start": 2052, - "end": 2053, + "start": 3263, + "end": 3264, "loc": { "start": { - "line": 79, - "column": 12 + "line": 120, + "column": 51 }, "end": { - "line": 79, - "column": 13 + "line": 120, + "column": 52 } } }, @@ -40645,16 +43867,16 @@ "binop": null, "updateContext": null }, - "start": 2053, - "end": 2054, + "start": 3264, + "end": 3265, "loc": { "start": { - "line": 79, - "column": 13 + "line": 120, + "column": 52 }, "end": { - "line": 79, - "column": 14 + "line": 120, + "column": 53 } } }, @@ -40670,32 +43892,41 @@ "postfix": false, "binop": null }, - "start": 2056, - "end": 2057, + "start": 3268, + "end": 3269, "loc": { "start": { - "line": 81, - "column": 0 + "line": 121, + "column": 2 }, "end": { - "line": 81, - "column": 1 + "line": 121, + "column": 3 } } }, { - "type": "CommentBlock", - "value": "*\n * Return the data URI of current frame, MINE type is image/png.\n * @return {DOMString} Which contains data URI, MINE type is image/png\n * @example\n * You can use codes below to let the user download the current frame\n *\n * let link = document.createElement('a');\n * document.body.appendChild(link);\n * link.setAttribute('type', 'hidden');\n * link.href = L2Dwidget.captureFrame();\n * link.download = 'live2d.png';\n * link.click();\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n * @todo Seems feedback empty image only\n ", - "start": 2058, - "end": 2667, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3270, + "end": 3271, "loc": { "start": { - "line": 82, + "line": 122, "column": 0 }, "end": { - "line": 97, - "column": 3 + "line": 122, + "column": 1 } } }, @@ -40713,15 +43944,15 @@ "binop": null }, "value": "function", - "start": 2669, - "end": 2677, + "start": 3273, + "end": 3281, "loc": { "start": { - "line": 99, + "line": 124, "column": 0 }, "end": { - "line": 99, + "line": 124, "column": 8 } } @@ -40738,17 +43969,17 @@ "postfix": false, "binop": null }, - "value": "captureFrame", - "start": 2678, - "end": 2690, + "value": "startDraw", + "start": 3282, + "end": 3291, "loc": { "start": { - "line": 99, + "line": 124, "column": 9 }, "end": { - "line": 99, - "column": 21 + "line": 124, + "column": 18 } } }, @@ -40764,16 +43995,16 @@ "postfix": false, "binop": null }, - "start": 2690, - "end": 2691, + "start": 3291, + "end": 3292, "loc": { "start": { - "line": 99, - "column": 21 + "line": 124, + "column": 18 }, "end": { - "line": 99, - "column": 22 + "line": 124, + "column": 19 } } }, @@ -40789,16 +44020,16 @@ "postfix": false, "binop": null }, - "start": 2691, - "end": 2692, + "start": 3292, + "end": 3293, "loc": { "start": { - "line": 99, - "column": 22 + "line": 124, + "column": 19 }, "end": { - "line": 99, - "column": 23 + "line": 124, + "column": 20 } } }, @@ -40814,24 +44045,24 @@ "postfix": false, "binop": null }, - "start": 2692, - "end": 2693, + "start": 3294, + "end": 3295, "loc": { "start": { - "line": 99, - "column": 23 + "line": 124, + "column": 21 }, "end": { - "line": 99, - "column": 24 + "line": 124, + "column": 22 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -40841,24 +44072,24 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 2696, - "end": 2702, + "value": "if", + "start": 3298, + "end": 3300, "loc": { "start": { - "line": 100, + "line": 125, "column": 2 }, "end": { - "line": 100, - "column": 8 + "line": 125, + "column": 4 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -40867,43 +44098,43 @@ "postfix": false, "binop": null }, - "value": "currCanvas", - "start": 2703, - "end": 2713, + "start": 3301, + "end": 3302, "loc": { "start": { - "line": 100, - "column": 9 + "line": 125, + "column": 5 }, "end": { - "line": 100, - "column": 19 + "line": 125, + "column": 6 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "start": 2713, - "end": 2714, + "value": "!", + "start": 3302, + "end": 3303, "loc": { "start": { - "line": 100, - "column": 19 + "line": 125, + "column": 6 }, "end": { - "line": 100, - "column": 20 + "line": 125, + "column": 7 } } }, @@ -40919,23 +44150,48 @@ "postfix": false, "binop": null }, - "value": "toDataURL", - "start": 2714, - "end": 2723, + "value": "isDrawStart", + "start": 3303, + "end": 3314, "loc": { "start": { - "line": 100, - "column": 20 + "line": 125, + "column": 7 }, "end": { - "line": 100, - "column": 29 + "line": 125, + "column": 18 } } }, { "type": { - "label": "(", + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3314, + "end": 3315, + "loc": { + "start": { + "line": 125, + "column": 18 + }, + "end": { + "line": 125, + "column": 19 + } + } + }, + { + "type": { + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -40945,24 +44201,24 @@ "postfix": false, "binop": null }, - "start": 2723, - "end": 2724, + "start": 3316, + "end": 3317, "loc": { "start": { - "line": 100, - "column": 29 + "line": 125, + "column": 20 }, "end": { - "line": 100, - "column": 30 + "line": 125, + "column": 21 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40970,67 +44226,123 @@ "postfix": false, "binop": null }, - "start": 2724, - "end": 2725, + "value": "isDrawStart", + "start": 3322, + "end": 3333, "loc": { "start": { - "line": 100, - "column": 30 + "line": 126, + "column": 4 }, "end": { - "line": 100, - "column": 31 + "line": 126, + "column": 15 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 2725, - "end": 2726, + "value": "=", + "start": 3334, + "end": 3335, "loc": { "start": { - "line": 100, - "column": 31 + "line": 126, + "column": 16 }, "end": { - "line": 100, - "column": 32 + "line": 126, + "column": 17 } } }, { "type": { - "label": "}", + "label": "true", + "keyword": "true", "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 3336, + "end": 3340, + "loc": { + "start": { + "line": 126, + "column": 18 + }, + "end": { + "line": 126, + "column": 22 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3340, + "end": 3341, + "loc": { + "start": { + "line": 126, + "column": 22 + }, + "end": { + "line": 126, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null }, - "start": 2727, - "end": 2728, + "start": 3346, + "end": 3347, "loc": { "start": { - "line": 101, - "column": 0 + "line": 127, + "column": 4 }, "end": { - "line": 101, - "column": 1 + "line": 127, + "column": 5 } } }, @@ -41048,16 +44360,16 @@ "binop": null }, "value": "function", - "start": 2730, - "end": 2738, + "start": 3347, + "end": 3355, "loc": { "start": { - "line": 103, - "column": 0 + "line": 127, + "column": 5 }, "end": { - "line": 103, - "column": 8 + "line": 127, + "column": 13 } } }, @@ -41073,16 +44385,16 @@ "postfix": false, "binop": null }, - "value": "initEvent", - "start": 2739, - "end": 2748, + "value": "tick", + "start": 3356, + "end": 3360, "loc": { "start": { - "line": 103, - "column": 9 + "line": 127, + "column": 14 }, "end": { - "line": 103, + "line": 127, "column": 18 } } @@ -41099,15 +44411,15 @@ "postfix": false, "binop": null }, - "start": 2748, - "end": 2749, + "start": 3360, + "end": 3361, "loc": { "start": { - "line": 103, + "line": 127, "column": 18 }, "end": { - "line": 103, + "line": 127, "column": 19 } } @@ -41124,15 +44436,15 @@ "postfix": false, "binop": null }, - "start": 2749, - "end": 2750, + "start": 3361, + "end": 3362, "loc": { "start": { - "line": 103, + "line": 127, "column": 19 }, "end": { - "line": 103, + "line": 127, "column": 20 } } @@ -41149,40 +44461,50 @@ "postfix": false, "binop": null }, - "start": 2750, - "end": 2751, + "start": 3363, + "end": 3364, "loc": { "start": { - "line": 103, - "column": 20 + "line": 127, + "column": 21 }, "end": { - "line": 103, - "column": 21 + "line": 127, + "column": 22 } } }, { - "type": "CommentBlock", - "value": "\n if (currCanvas.addEventListener) {\n window.addEventListener(\"click\", mouseEvent);\n window.addEventListener(\"mousedown\", mouseEvent);\n window.addEventListener(\"mousemove\", mouseEvent);\n window.addEventListener(\"mouseup\", mouseEvent);\n document.addEventListener(\"mouseleave\", mouseEvent);\n window.addEventListener(\"touchstart\", touchEvent);\n window.addEventListener(\"touchend\", touchEvent);\n window.addEventListener(\"touchmove\", touchEvent);\n }", - "start": 2751, - "end": 3225, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "draw", + "start": 3371, + "end": 3375, "loc": { "start": { - "line": 103, - "column": 21 + "line": 128, + "column": 6 }, "end": { - "line": 113, - "column": 5 + "line": 128, + "column": 10 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -41190,25 +44512,24 @@ "postfix": false, "binop": null }, - "start": 3226, - "end": 3227, + "start": 3375, + "end": 3376, "loc": { "start": { - "line": 114, - "column": 0 + "line": 128, + "column": 10 }, "end": { - "line": 114, - "column": 1 + "line": 128, + "column": 11 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -41216,76 +44537,78 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 3229, - "end": 3237, + "start": 3376, + "end": 3377, "loc": { "start": { - "line": 116, - "column": 0 + "line": 128, + "column": 11 }, "end": { - "line": 116, - "column": 8 + "line": 128, + "column": 12 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "startDraw", - "start": 3238, - "end": 3247, + "start": 3377, + "end": 3378, "loc": { "start": { - "line": 116, - "column": 9 + "line": 128, + "column": 12 }, "end": { - "line": 116, - "column": 18 + "line": 128, + "column": 13 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3247, - "end": 3248, + "value": "let", + "start": 3385, + "end": 3388, "loc": { "start": { - "line": 116, - "column": 18 + "line": 129, + "column": 6 }, "end": { - "line": 116, - "column": 19 + "line": 129, + "column": 9 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -41293,23 +44616,51 @@ "postfix": false, "binop": null }, - "start": 3248, - "end": 3249, + "value": "requestAnimationFrame", + "start": 3389, + "end": 3410, "loc": { "start": { - "line": 116, - "column": 19 + "line": 129, + "column": 10 }, "end": { - "line": 116, - "column": 20 + "line": 129, + "column": 31 } } }, { "type": { - "label": "{", + "label": "=", "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3411, + "end": 3412, + "loc": { + "start": { + "line": 129, + "column": 32 + }, + "end": { + "line": 129, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -41318,23 +44669,23 @@ "postfix": false, "binop": null }, - "start": 3250, - "end": 3251, + "value": "window", + "start": 3421, + "end": 3427, "loc": { "start": { - "line": 116, - "column": 21 + "line": 130, + "column": 8 }, "end": { - "line": 116, - "column": 22 + "line": 130, + "column": 14 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -41345,24 +44696,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 3254, - "end": 3256, + "start": 3427, + "end": 3428, "loc": { "start": { - "line": 117, - "column": 2 + "line": 130, + "column": 14 }, "end": { - "line": 117, - "column": 4 + "line": 130, + "column": 15 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -41371,43 +44721,44 @@ "postfix": false, "binop": null }, - "start": 3257, - "end": 3258, + "value": "requestAnimationFrame", + "start": 3428, + "end": 3449, "loc": { "start": { - "line": 117, - "column": 5 + "line": 130, + "column": 15 }, "end": { - "line": 117, - "column": 6 + "line": 130, + "column": 36 } } }, { "type": { - "label": "prefix", + "label": "||", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": null, + "binop": 1, "updateContext": null }, - "value": "!", - "start": 3258, - "end": 3259, + "value": "||", + "start": 3450, + "end": 3452, "loc": { "start": { - "line": 117, - "column": 6 + "line": 130, + "column": 37 }, "end": { - "line": 117, - "column": 7 + "line": 130, + "column": 39 } } }, @@ -41423,23 +44774,23 @@ "postfix": false, "binop": null }, - "value": "isDrawStart", - "start": 3259, - "end": 3270, + "value": "window", + "start": 3461, + "end": 3467, "loc": { "start": { - "line": 117, - "column": 7 + "line": 131, + "column": 8 }, "end": { - "line": 117, - "column": 18 + "line": 131, + "column": 14 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -41447,43 +44798,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 3270, - "end": 3271, - "loc": { - "start": { - "line": 117, - "column": 18 - }, - "end": { - "line": 117, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3272, - "end": 3273, + "start": 3467, + "end": 3468, "loc": { "start": { - "line": 117, - "column": 20 + "line": 131, + "column": 14 }, "end": { - "line": 117, - "column": 21 + "line": 131, + "column": 15 } } }, @@ -41499,51 +44826,50 @@ "postfix": false, "binop": null }, - "value": "isDrawStart", - "start": 3278, - "end": 3289, + "value": "mozRequestAnimationFrame", + "start": 3468, + "end": 3492, "loc": { "start": { - "line": 118, - "column": 4 + "line": 131, + "column": 15 }, "end": { - "line": 118, - "column": 15 + "line": 131, + "column": 39 } } }, { "type": { - "label": "=", + "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 1, "updateContext": null }, - "value": "=", - "start": 3290, - "end": 3291, + "value": "||", + "start": 3493, + "end": 3495, "loc": { "start": { - "line": 118, - "column": 16 + "line": 131, + "column": 40 }, "end": { - "line": 118, - "column": 17 + "line": 131, + "column": 42 } } }, { "type": { - "label": "true", - "keyword": "true", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -41551,27 +44877,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "true", - "start": 3292, - "end": 3296, + "value": "window", + "start": 3504, + "end": 3510, "loc": { "start": { - "line": 118, - "column": 18 + "line": 132, + "column": 8 }, "end": { - "line": 118, - "column": 22 + "line": 132, + "column": 14 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -41581,23 +44906,23 @@ "binop": null, "updateContext": null }, - "start": 3296, - "end": 3297, + "start": 3510, + "end": 3511, "loc": { "start": { - "line": 118, - "column": 22 + "line": 132, + "column": 14 }, "end": { - "line": 118, - "column": 23 + "line": 132, + "column": 15 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -41606,43 +44931,44 @@ "postfix": false, "binop": null }, - "start": 3302, - "end": 3303, + "value": "webkitRequestAnimationFrame", + "start": 3511, + "end": 3538, "loc": { "start": { - "line": 119, - "column": 4 + "line": 132, + "column": 15 }, "end": { - "line": 119, - "column": 5 + "line": 132, + "column": 42 } } }, { "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, + "label": "||", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 1, + "updateContext": null }, - "value": "function", - "start": 3303, - "end": 3311, + "value": "||", + "start": 3539, + "end": 3541, "loc": { "start": { - "line": 119, - "column": 5 + "line": 132, + "column": 43 }, "end": { - "line": 119, - "column": 13 + "line": 132, + "column": 45 } } }, @@ -41658,50 +44984,51 @@ "postfix": false, "binop": null }, - "value": "tick", - "start": 3312, - "end": 3316, + "value": "window", + "start": 3550, + "end": 3556, "loc": { "start": { - "line": 119, - "column": 14 + "line": 133, + "column": 8 }, "end": { - "line": 119, - "column": 18 + "line": 133, + "column": 14 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3316, - "end": 3317, + "start": 3556, + "end": 3557, "loc": { "start": { - "line": 119, - "column": 18 + "line": 133, + "column": 14 }, "end": { - "line": 119, - "column": 19 + "line": 133, + "column": 15 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -41709,41 +45036,43 @@ "postfix": false, "binop": null }, - "start": 3317, - "end": 3318, + "value": "msRequestAnimationFrame", + "start": 3557, + "end": 3580, "loc": { "start": { - "line": 119, - "column": 19 + "line": 133, + "column": 15 }, "end": { - "line": 119, - "column": 20 + "line": 133, + "column": 38 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3319, - "end": 3320, + "start": 3580, + "end": 3581, "loc": { "start": { - "line": 119, - "column": 21 + "line": 133, + "column": 38 }, "end": { - "line": 119, - "column": 22 + "line": 133, + "column": 39 } } }, @@ -41759,17 +45088,17 @@ "postfix": false, "binop": null }, - "value": "draw", - "start": 3327, - "end": 3331, + "value": "requestAnimationFrame", + "start": 3589, + "end": 3610, "loc": { "start": { - "line": 120, + "line": 135, "column": 6 }, "end": { - "line": 120, - "column": 10 + "line": 135, + "column": 27 } } }, @@ -41785,24 +45114,24 @@ "postfix": false, "binop": null }, - "start": 3331, - "end": 3332, + "start": 3610, + "end": 3611, "loc": { "start": { - "line": 120, - "column": 10 + "line": 135, + "column": 27 }, "end": { - "line": 120, - "column": 11 + "line": 135, + "column": 28 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -41810,22 +45139,23 @@ "postfix": false, "binop": null }, - "start": 3332, - "end": 3333, + "value": "tick", + "start": 3611, + "end": 3615, "loc": { "start": { - "line": 120, - "column": 11 + "line": 135, + "column": 28 }, "end": { - "line": 120, - "column": 12 + "line": 135, + "column": 32 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -41836,52 +45166,50 @@ "binop": null, "updateContext": null }, - "start": 3333, - "end": 3334, + "start": 3615, + "end": 3616, "loc": { "start": { - "line": 120, - "column": 12 + "line": 135, + "column": 32 }, "end": { - "line": 120, - "column": 13 + "line": 135, + "column": 33 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 3341, - "end": 3344, + "value": "currCanvas", + "start": 3617, + "end": 3627, "loc": { "start": { - "line": 121, - "column": 6 + "line": 135, + "column": 34 }, "end": { - "line": 121, - "column": 9 + "line": 135, + "column": 44 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -41889,96 +45217,95 @@ "postfix": false, "binop": null }, - "value": "requestAnimationFrame", - "start": 3345, - "end": 3366, + "start": 3627, + "end": 3628, "loc": { "start": { - "line": 121, - "column": 10 + "line": 135, + "column": 44 }, "end": { - "line": 121, - "column": 31 + "line": 135, + "column": 45 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 3367, - "end": 3368, + "start": 3628, + "end": 3629, "loc": { "start": { - "line": 121, - "column": 32 + "line": 135, + "column": 45 }, "end": { - "line": 121, - "column": 33 + "line": 135, + "column": 46 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "window", - "start": 3377, - "end": 3383, + "value": "if", + "start": 3636, + "end": 3638, "loc": { "start": { - "line": 122, - "column": 8 + "line": 136, + "column": 6 }, "end": { - "line": 122, - "column": 14 + "line": 136, + "column": 8 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3383, - "end": 3384, + "start": 3638, + "end": 3639, "loc": { "start": { - "line": 122, - "column": 14 + "line": 136, + "column": 8 }, "end": { - "line": 122, - "column": 15 + "line": 136, + "column": 9 } } }, @@ -41994,23 +45321,23 @@ "postfix": false, "binop": null }, - "value": "requestAnimationFrame", - "start": 3384, - "end": 3405, + "value": "captureFrameCB", + "start": 3639, + "end": 3653, "loc": { "start": { - "line": 122, - "column": 15 + "line": 136, + "column": 9 }, "end": { - "line": 122, - "column": 36 + "line": 136, + "column": 23 } } }, { "type": { - "label": "||", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -42018,20 +45345,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, + "binop": 6, "updateContext": null }, - "value": "||", - "start": 3406, - "end": 3408, + "value": "!==", + "start": 3654, + "end": 3657, "loc": { "start": { - "line": 122, - "column": 37 + "line": 136, + "column": 24 }, "end": { - "line": 122, - "column": 39 + "line": 136, + "column": 27 } } }, @@ -42047,23 +45374,23 @@ "postfix": false, "binop": null }, - "value": "window", - "start": 3417, - "end": 3423, + "value": "undefined", + "start": 3658, + "end": 3667, "loc": { "start": { - "line": 123, - "column": 8 + "line": 136, + "column": 28 }, "end": { - "line": 123, - "column": 14 + "line": 136, + "column": 37 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -42071,26 +45398,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3423, - "end": 3424, + "start": 3667, + "end": 3668, "loc": { "start": { - "line": 123, - "column": 14 + "line": 136, + "column": 37 }, "end": { - "line": 123, - "column": 15 + "line": 136, + "column": 38 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -42099,47 +45425,19 @@ "postfix": false, "binop": null }, - "value": "mozRequestAnimationFrame", - "start": 3424, - "end": 3448, + "start": 3668, + "end": 3669, "loc": { "start": { - "line": 123, - "column": 15 + "line": 136, + "column": 38 }, "end": { - "line": 123, + "line": 136, "column": 39 } } }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 3449, - "end": 3451, - "loc": { - "start": { - "line": 123, - "column": 40 - }, - "end": { - "line": 123, - "column": 42 - } - } - }, { "type": { "label": "name", @@ -42152,43 +45450,42 @@ "postfix": false, "binop": null }, - "value": "window", - "start": 3460, - "end": 3466, + "value": "captureFrameCB", + "start": 3678, + "end": 3692, "loc": { "start": { - "line": 124, + "line": 137, "column": 8 }, "end": { - "line": 124, - "column": 14 + "line": 137, + "column": 22 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3466, - "end": 3467, + "start": 3692, + "end": 3693, "loc": { "start": { - "line": 124, - "column": 14 + "line": 137, + "column": 22 }, "end": { - "line": 124, - "column": 15 + "line": 137, + "column": 23 } } }, @@ -42204,103 +45501,76 @@ "postfix": false, "binop": null }, - "value": "webkitRequestAnimationFrame", - "start": 3467, - "end": 3494, + "value": "currCanvas", + "start": 3693, + "end": 3703, "loc": { "start": { - "line": 124, - "column": 15 + "line": 137, + "column": 23 }, "end": { - "line": 124, - "column": 42 + "line": 137, + "column": 33 } } }, { "type": { - "label": "||", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, + "binop": null, "updateContext": null }, - "value": "||", - "start": 3495, - "end": 3497, - "loc": { - "start": { - "line": 124, - "column": 43 - }, - "end": { - "line": 124, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "window", - "start": 3506, - "end": 3512, + "start": 3703, + "end": 3704, "loc": { "start": { - "line": 125, - "column": 8 + "line": 137, + "column": 33 }, "end": { - "line": 125, - "column": 14 + "line": 137, + "column": 34 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3512, - "end": 3513, + "value": "toDataURL", + "start": 3704, + "end": 3713, "loc": { "start": { - "line": 125, - "column": 14 + "line": 137, + "column": 34 }, "end": { - "line": 125, - "column": 15 + "line": 137, + "column": 43 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -42309,51 +45579,49 @@ "postfix": false, "binop": null }, - "value": "msRequestAnimationFrame", - "start": 3513, - "end": 3536, + "start": 3713, + "end": 3714, "loc": { "start": { - "line": 125, - "column": 15 + "line": 137, + "column": 43 }, "end": { - "line": 125, - "column": 38 + "line": 137, + "column": 44 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3536, - "end": 3537, + "start": 3714, + "end": 3715, "loc": { "start": { - "line": 125, - "column": 38 + "line": 137, + "column": 44 }, "end": { - "line": 125, - "column": 39 + "line": 137, + "column": 45 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -42361,42 +45629,42 @@ "postfix": false, "binop": null }, - "value": "requestAnimationFrame", - "start": 3545, - "end": 3566, + "start": 3715, + "end": 3716, "loc": { "start": { - "line": 127, - "column": 6 + "line": 137, + "column": 45 }, "end": { - "line": 127, - "column": 27 + "line": 137, + "column": 46 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3566, - "end": 3567, + "start": 3716, + "end": 3717, "loc": { "start": { - "line": 127, - "column": 27 + "line": 137, + "column": 46 }, "end": { - "line": 127, - "column": 28 + "line": 137, + "column": 47 } } }, @@ -42412,43 +45680,44 @@ "postfix": false, "binop": null }, - "value": "tick", - "start": 3567, - "end": 3571, + "value": "captureFrameCB", + "start": 3726, + "end": 3740, "loc": { "start": { - "line": 127, - "column": 28 + "line": 138, + "column": 8 }, "end": { - "line": 127, - "column": 32 + "line": 138, + "column": 22 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 3571, - "end": 3572, + "value": "=", + "start": 3741, + "end": 3742, "loc": { "start": { - "line": 127, - "column": 32 + "line": 138, + "column": 23 }, "end": { - "line": 127, - "column": 33 + "line": 138, + "column": 24 } } }, @@ -42464,68 +45733,68 @@ "postfix": false, "binop": null }, - "value": "currCanvas", - "start": 3573, - "end": 3583, + "value": "undefined", + "start": 3743, + "end": 3752, "loc": { "start": { - "line": 127, - "column": 34 + "line": 138, + "column": 25 }, "end": { - "line": 127, - "column": 44 + "line": 138, + "column": 34 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3583, - "end": 3584, + "start": 3752, + "end": 3753, "loc": { "start": { - "line": 127, - "column": 44 + "line": 138, + "column": 34 }, "end": { - "line": 127, - "column": 45 + "line": 138, + "column": 35 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3584, - "end": 3585, + "start": 3760, + "end": 3761, "loc": { "start": { - "line": 127, - "column": 45 + "line": 139, + "column": 6 }, "end": { - "line": 127, - "column": 46 + "line": 139, + "column": 7 } } }, @@ -42541,15 +45810,15 @@ "postfix": false, "binop": null }, - "start": 3590, - "end": 3591, + "start": 3766, + "end": 3767, "loc": { "start": { - "line": 128, + "line": 140, "column": 4 }, "end": { - "line": 128, + "line": 140, "column": 5 } } @@ -42566,15 +45835,15 @@ "postfix": false, "binop": null }, - "start": 3591, - "end": 3592, + "start": 3767, + "end": 3768, "loc": { "start": { - "line": 128, + "line": 140, "column": 5 }, "end": { - "line": 128, + "line": 140, "column": 6 } } @@ -42591,15 +45860,15 @@ "postfix": false, "binop": null }, - "start": 3592, - "end": 3593, + "start": 3768, + "end": 3769, "loc": { "start": { - "line": 128, + "line": 140, "column": 6 }, "end": { - "line": 128, + "line": 140, "column": 7 } } @@ -42616,15 +45885,15 @@ "postfix": false, "binop": null }, - "start": 3593, - "end": 3594, + "start": 3769, + "end": 3770, "loc": { "start": { - "line": 128, + "line": 140, "column": 7 }, "end": { - "line": 128, + "line": 140, "column": 8 } } @@ -42642,15 +45911,15 @@ "binop": null, "updateContext": null }, - "start": 3594, - "end": 3595, + "start": 3770, + "end": 3771, "loc": { "start": { - "line": 128, + "line": 140, "column": 8 }, "end": { - "line": 128, + "line": 140, "column": 9 } } @@ -42667,15 +45936,15 @@ "postfix": false, "binop": null }, - "start": 3598, - "end": 3599, + "start": 3774, + "end": 3775, "loc": { "start": { - "line": 129, + "line": 141, "column": 2 }, "end": { - "line": 129, + "line": 141, "column": 3 } } @@ -42692,15 +45961,15 @@ "postfix": false, "binop": null }, - "start": 3600, - "end": 3601, + "start": 3776, + "end": 3777, "loc": { "start": { - "line": 130, + "line": 142, "column": 0 }, "end": { - "line": 130, + "line": 142, "column": 1 } } @@ -42719,15 +45988,15 @@ "binop": null }, "value": "function", - "start": 3603, - "end": 3611, + "start": 3779, + "end": 3787, "loc": { "start": { - "line": 132, + "line": 144, "column": 0 }, "end": { - "line": 132, + "line": 144, "column": 8 } } @@ -42745,15 +46014,15 @@ "binop": null }, "value": "draw", - "start": 3612, - "end": 3616, + "start": 3788, + "end": 3792, "loc": { "start": { - "line": 132, + "line": 144, "column": 9 }, "end": { - "line": 132, + "line": 144, "column": 13 } } @@ -42770,15 +46039,15 @@ "postfix": false, "binop": null }, - "start": 3616, - "end": 3617, + "start": 3792, + "end": 3793, "loc": { "start": { - "line": 132, + "line": 144, "column": 13 }, "end": { - "line": 132, + "line": 144, "column": 14 } } @@ -42795,15 +46064,15 @@ "postfix": false, "binop": null }, - "start": 3617, - "end": 3618, + "start": 3793, + "end": 3794, "loc": { "start": { - "line": 132, + "line": 144, "column": 14 }, "end": { - "line": 132, + "line": 144, "column": 15 } } @@ -42820,15 +46089,15 @@ "postfix": false, "binop": null }, - "start": 3619, - "end": 3620, + "start": 3795, + "end": 3796, "loc": { "start": { - "line": 133, + "line": 145, "column": 0 }, "end": { - "line": 133, + "line": 145, "column": 1 } } @@ -42846,15 +46115,15 @@ "binop": null }, "value": "MatrixStack", - "start": 3625, - "end": 3636, + "start": 3801, + "end": 3812, "loc": { "start": { - "line": 134, + "line": 146, "column": 4 }, "end": { - "line": 134, + "line": 146, "column": 15 } } @@ -42872,15 +46141,15 @@ "binop": null, "updateContext": null }, - "start": 3636, - "end": 3637, + "start": 3812, + "end": 3813, "loc": { "start": { - "line": 134, + "line": 146, "column": 15 }, "end": { - "line": 134, + "line": 146, "column": 16 } } @@ -42898,15 +46167,15 @@ "binop": null }, "value": "reset", - "start": 3637, - "end": 3642, + "start": 3813, + "end": 3818, "loc": { "start": { - "line": 134, + "line": 146, "column": 16 }, "end": { - "line": 134, + "line": 146, "column": 21 } } @@ -42923,15 +46192,15 @@ "postfix": false, "binop": null }, - "start": 3642, - "end": 3643, + "start": 3818, + "end": 3819, "loc": { "start": { - "line": 134, + "line": 146, "column": 21 }, "end": { - "line": 134, + "line": 146, "column": 22 } } @@ -42948,15 +46217,15 @@ "postfix": false, "binop": null }, - "start": 3643, - "end": 3644, + "start": 3819, + "end": 3820, "loc": { "start": { - "line": 134, + "line": 146, "column": 22 }, "end": { - "line": 134, + "line": 146, "column": 23 } } @@ -42974,15 +46243,15 @@ "binop": null, "updateContext": null }, - "start": 3644, - "end": 3645, + "start": 3820, + "end": 3821, "loc": { "start": { - "line": 134, + "line": 146, "column": 23 }, "end": { - "line": 134, + "line": 146, "column": 24 } } @@ -43000,15 +46269,15 @@ "binop": null }, "value": "MatrixStack", - "start": 3650, - "end": 3661, + "start": 3826, + "end": 3837, "loc": { "start": { - "line": 135, + "line": 147, "column": 4 }, "end": { - "line": 135, + "line": 147, "column": 15 } } @@ -43026,15 +46295,15 @@ "binop": null, "updateContext": null }, - "start": 3661, - "end": 3662, + "start": 3837, + "end": 3838, "loc": { "start": { - "line": 135, + "line": 147, "column": 15 }, "end": { - "line": 135, + "line": 147, "column": 16 } } @@ -43052,15 +46321,15 @@ "binop": null }, "value": "loadIdentity", - "start": 3662, - "end": 3674, + "start": 3838, + "end": 3850, "loc": { "start": { - "line": 135, + "line": 147, "column": 16 }, "end": { - "line": 135, + "line": 147, "column": 28 } } @@ -43077,15 +46346,15 @@ "postfix": false, "binop": null }, - "start": 3674, - "end": 3675, + "start": 3850, + "end": 3851, "loc": { "start": { - "line": 135, + "line": 147, "column": 28 }, "end": { - "line": 135, + "line": 147, "column": 29 } } @@ -43102,15 +46371,15 @@ "postfix": false, "binop": null }, - "start": 3675, - "end": 3676, + "start": 3851, + "end": 3852, "loc": { "start": { - "line": 135, + "line": 147, "column": 29 }, "end": { - "line": 135, + "line": 147, "column": 30 } } @@ -43128,15 +46397,15 @@ "binop": null, "updateContext": null }, - "start": 3676, - "end": 3677, + "start": 3852, + "end": 3853, "loc": { "start": { - "line": 135, + "line": 147, "column": 30 }, "end": { - "line": 135, + "line": 147, "column": 31 } } @@ -43154,15 +46423,15 @@ "binop": null }, "value": "dragMgr", - "start": 3682, - "end": 3689, + "start": 3858, + "end": 3865, "loc": { "start": { - "line": 136, + "line": 148, "column": 4 }, "end": { - "line": 136, + "line": 148, "column": 11 } } @@ -43180,15 +46449,15 @@ "binop": null, "updateContext": null }, - "start": 3689, - "end": 3690, + "start": 3865, + "end": 3866, "loc": { "start": { - "line": 136, + "line": 148, "column": 11 }, "end": { - "line": 136, + "line": 148, "column": 12 } } @@ -43206,15 +46475,15 @@ "binop": null }, "value": "update", - "start": 3690, - "end": 3696, + "start": 3866, + "end": 3872, "loc": { "start": { - "line": 136, + "line": 148, "column": 12 }, "end": { - "line": 136, + "line": 148, "column": 18 } } @@ -43231,15 +46500,15 @@ "postfix": false, "binop": null }, - "start": 3696, - "end": 3697, + "start": 3872, + "end": 3873, "loc": { "start": { - "line": 136, + "line": 148, "column": 18 }, "end": { - "line": 136, + "line": 148, "column": 19 } } @@ -43256,15 +46525,15 @@ "postfix": false, "binop": null }, - "start": 3697, - "end": 3698, + "start": 3873, + "end": 3874, "loc": { "start": { - "line": 136, + "line": 148, "column": 19 }, "end": { - "line": 136, + "line": 148, "column": 20 } } @@ -43282,15 +46551,15 @@ "binop": null, "updateContext": null }, - "start": 3698, - "end": 3699, + "start": 3874, + "end": 3875, "loc": { "start": { - "line": 136, + "line": 148, "column": 20 }, "end": { - "line": 136, + "line": 148, "column": 21 } } @@ -43308,15 +46577,15 @@ "binop": null }, "value": "live2DMgr", - "start": 3704, - "end": 3713, + "start": 3880, + "end": 3889, "loc": { "start": { - "line": 137, + "line": 149, "column": 4 }, "end": { - "line": 137, + "line": 149, "column": 13 } } @@ -43334,15 +46603,15 @@ "binop": null, "updateContext": null }, - "start": 3713, - "end": 3714, + "start": 3889, + "end": 3890, "loc": { "start": { - "line": 137, + "line": 149, "column": 13 }, "end": { - "line": 137, + "line": 149, "column": 14 } } @@ -43360,15 +46629,15 @@ "binop": null }, "value": "setDrag", - "start": 3714, - "end": 3721, + "start": 3890, + "end": 3897, "loc": { "start": { - "line": 137, + "line": 149, "column": 14 }, "end": { - "line": 137, + "line": 149, "column": 21 } } @@ -43385,15 +46654,15 @@ "postfix": false, "binop": null }, - "start": 3721, - "end": 3722, + "start": 3897, + "end": 3898, "loc": { "start": { - "line": 137, + "line": 149, "column": 21 }, "end": { - "line": 137, + "line": 149, "column": 22 } } @@ -43411,15 +46680,15 @@ "binop": null }, "value": "dragMgr", - "start": 3722, - "end": 3729, + "start": 3898, + "end": 3905, "loc": { "start": { - "line": 137, + "line": 149, "column": 22 }, "end": { - "line": 137, + "line": 149, "column": 29 } } @@ -43437,15 +46706,15 @@ "binop": null, "updateContext": null }, - "start": 3729, - "end": 3730, + "start": 3905, + "end": 3906, "loc": { "start": { - "line": 137, + "line": 149, "column": 29 }, "end": { - "line": 137, + "line": 149, "column": 30 } } @@ -43463,15 +46732,15 @@ "binop": null }, "value": "getX", - "start": 3730, - "end": 3734, + "start": 3906, + "end": 3910, "loc": { "start": { - "line": 137, + "line": 149, "column": 30 }, "end": { - "line": 137, + "line": 149, "column": 34 } } @@ -43488,15 +46757,15 @@ "postfix": false, "binop": null }, - "start": 3734, - "end": 3735, + "start": 3910, + "end": 3911, "loc": { "start": { - "line": 137, + "line": 149, "column": 34 }, "end": { - "line": 137, + "line": 149, "column": 35 } } @@ -43513,15 +46782,15 @@ "postfix": false, "binop": null }, - "start": 3735, - "end": 3736, + "start": 3911, + "end": 3912, "loc": { "start": { - "line": 137, + "line": 149, "column": 35 }, "end": { - "line": 137, + "line": 149, "column": 36 } } @@ -43539,15 +46808,15 @@ "binop": null, "updateContext": null }, - "start": 3736, - "end": 3737, + "start": 3912, + "end": 3913, "loc": { "start": { - "line": 137, + "line": 149, "column": 36 }, "end": { - "line": 137, + "line": 149, "column": 37 } } @@ -43565,15 +46834,15 @@ "binop": null }, "value": "dragMgr", - "start": 3738, - "end": 3745, + "start": 3914, + "end": 3921, "loc": { "start": { - "line": 137, + "line": 149, "column": 38 }, "end": { - "line": 137, + "line": 149, "column": 45 } } @@ -43591,15 +46860,15 @@ "binop": null, "updateContext": null }, - "start": 3745, - "end": 3746, + "start": 3921, + "end": 3922, "loc": { "start": { - "line": 137, + "line": 149, "column": 45 }, "end": { - "line": 137, + "line": 149, "column": 46 } } @@ -43617,15 +46886,15 @@ "binop": null }, "value": "getY", - "start": 3746, - "end": 3750, + "start": 3922, + "end": 3926, "loc": { "start": { - "line": 137, + "line": 149, "column": 46 }, "end": { - "line": 137, + "line": 149, "column": 50 } } @@ -43642,15 +46911,15 @@ "postfix": false, "binop": null }, - "start": 3750, - "end": 3751, + "start": 3926, + "end": 3927, "loc": { "start": { - "line": 137, + "line": 149, "column": 50 }, "end": { - "line": 137, + "line": 149, "column": 51 } } @@ -43667,15 +46936,15 @@ "postfix": false, "binop": null }, - "start": 3751, - "end": 3752, + "start": 3927, + "end": 3928, "loc": { "start": { - "line": 137, + "line": 149, "column": 51 }, "end": { - "line": 137, + "line": 149, "column": 52 } } @@ -43692,15 +46961,15 @@ "postfix": false, "binop": null }, - "start": 3752, - "end": 3753, + "start": 3928, + "end": 3929, "loc": { "start": { - "line": 137, + "line": 149, "column": 52 }, "end": { - "line": 137, + "line": 149, "column": 53 } } @@ -43718,15 +46987,15 @@ "binop": null, "updateContext": null }, - "start": 3753, - "end": 3754, + "start": 3929, + "end": 3930, "loc": { "start": { - "line": 137, + "line": 149, "column": 53 }, "end": { - "line": 137, + "line": 149, "column": 54 } } @@ -43744,15 +47013,15 @@ "binop": null }, "value": "currWebGL", - "start": 3760, - "end": 3769, + "start": 3936, + "end": 3945, "loc": { "start": { - "line": 139, + "line": 151, "column": 4 }, "end": { - "line": 139, + "line": 151, "column": 13 } } @@ -43770,15 +47039,15 @@ "binop": null, "updateContext": null }, - "start": 3769, - "end": 3770, + "start": 3945, + "end": 3946, "loc": { "start": { - "line": 139, + "line": 151, "column": 13 }, "end": { - "line": 139, + "line": 151, "column": 14 } } @@ -43796,15 +47065,15 @@ "binop": null }, "value": "clear", - "start": 3770, - "end": 3775, + "start": 3946, + "end": 3951, "loc": { "start": { - "line": 139, + "line": 151, "column": 14 }, "end": { - "line": 139, + "line": 151, "column": 19 } } @@ -43821,15 +47090,15 @@ "postfix": false, "binop": null }, - "start": 3775, - "end": 3776, + "start": 3951, + "end": 3952, "loc": { "start": { - "line": 139, + "line": 151, "column": 19 }, "end": { - "line": 139, + "line": 151, "column": 20 } } @@ -43847,15 +47116,15 @@ "binop": null }, "value": "currWebGL", - "start": 3776, - "end": 3785, + "start": 3952, + "end": 3961, "loc": { "start": { - "line": 139, + "line": 151, "column": 20 }, "end": { - "line": 139, + "line": 151, "column": 29 } } @@ -43873,15 +47142,15 @@ "binop": null, "updateContext": null }, - "start": 3785, - "end": 3786, + "start": 3961, + "end": 3962, "loc": { "start": { - "line": 139, + "line": 151, "column": 29 }, "end": { - "line": 139, + "line": 151, "column": 30 } } @@ -43899,15 +47168,15 @@ "binop": null }, "value": "COLOR_BUFFER_BIT", - "start": 3786, - "end": 3802, + "start": 3962, + "end": 3978, "loc": { "start": { - "line": 139, + "line": 151, "column": 30 }, "end": { - "line": 139, + "line": 151, "column": 46 } } @@ -43924,15 +47193,15 @@ "postfix": false, "binop": null }, - "start": 3802, - "end": 3803, + "start": 3978, + "end": 3979, "loc": { "start": { - "line": 139, + "line": 151, "column": 46 }, "end": { - "line": 139, + "line": 151, "column": 47 } } @@ -43950,15 +47219,15 @@ "binop": null, "updateContext": null }, - "start": 3803, - "end": 3804, + "start": 3979, + "end": 3980, "loc": { "start": { - "line": 139, + "line": 151, "column": 47 }, "end": { - "line": 139, + "line": 151, "column": 48 } } @@ -43976,15 +47245,15 @@ "binop": null }, "value": "MatrixStack", - "start": 3810, - "end": 3821, + "start": 3986, + "end": 3997, "loc": { "start": { - "line": 141, + "line": 153, "column": 4 }, "end": { - "line": 141, + "line": 153, "column": 15 } } @@ -44002,15 +47271,15 @@ "binop": null, "updateContext": null }, - "start": 3821, - "end": 3822, + "start": 3997, + "end": 3998, "loc": { "start": { - "line": 141, + "line": 153, "column": 15 }, "end": { - "line": 141, + "line": 153, "column": 16 } } @@ -44028,15 +47297,15 @@ "binop": null }, "value": "multMatrix", - "start": 3822, - "end": 3832, + "start": 3998, + "end": 4008, "loc": { "start": { - "line": 141, + "line": 153, "column": 16 }, "end": { - "line": 141, + "line": 153, "column": 26 } } @@ -44053,15 +47322,15 @@ "postfix": false, "binop": null }, - "start": 3832, - "end": 3833, + "start": 4008, + "end": 4009, "loc": { "start": { - "line": 141, + "line": 153, "column": 26 }, "end": { - "line": 141, + "line": 153, "column": 27 } } @@ -44079,15 +47348,15 @@ "binop": null }, "value": "projMatrix", - "start": 3833, - "end": 3843, + "start": 4009, + "end": 4019, "loc": { "start": { - "line": 141, + "line": 153, "column": 27 }, "end": { - "line": 141, + "line": 153, "column": 37 } } @@ -44105,15 +47374,15 @@ "binop": null, "updateContext": null }, - "start": 3843, - "end": 3844, + "start": 4019, + "end": 4020, "loc": { "start": { - "line": 141, + "line": 153, "column": 37 }, "end": { - "line": 141, + "line": 153, "column": 38 } } @@ -44131,15 +47400,15 @@ "binop": null }, "value": "getArray", - "start": 3844, - "end": 3852, + "start": 4020, + "end": 4028, "loc": { "start": { - "line": 141, + "line": 153, "column": 38 }, "end": { - "line": 141, + "line": 153, "column": 46 } } @@ -44156,15 +47425,15 @@ "postfix": false, "binop": null }, - "start": 3852, - "end": 3853, + "start": 4028, + "end": 4029, "loc": { "start": { - "line": 141, + "line": 153, "column": 46 }, "end": { - "line": 141, + "line": 153, "column": 47 } } @@ -44181,15 +47450,15 @@ "postfix": false, "binop": null }, - "start": 3853, - "end": 3854, + "start": 4029, + "end": 4030, "loc": { "start": { - "line": 141, + "line": 153, "column": 47 }, "end": { - "line": 141, + "line": 153, "column": 48 } } @@ -44206,15 +47475,15 @@ "postfix": false, "binop": null }, - "start": 3854, - "end": 3855, + "start": 4030, + "end": 4031, "loc": { "start": { - "line": 141, + "line": 153, "column": 48 }, "end": { - "line": 141, + "line": 153, "column": 49 } } @@ -44232,15 +47501,15 @@ "binop": null, "updateContext": null }, - "start": 3855, - "end": 3856, + "start": 4031, + "end": 4032, "loc": { "start": { - "line": 141, + "line": 153, "column": 49 }, "end": { - "line": 141, + "line": 153, "column": 50 } } @@ -44258,15 +47527,15 @@ "binop": null }, "value": "MatrixStack", - "start": 3861, - "end": 3872, + "start": 4037, + "end": 4048, "loc": { "start": { - "line": 142, + "line": 154, "column": 4 }, "end": { - "line": 142, + "line": 154, "column": 15 } } @@ -44284,15 +47553,15 @@ "binop": null, "updateContext": null }, - "start": 3872, - "end": 3873, + "start": 4048, + "end": 4049, "loc": { "start": { - "line": 142, + "line": 154, "column": 15 }, "end": { - "line": 142, + "line": 154, "column": 16 } } @@ -44310,15 +47579,15 @@ "binop": null }, "value": "multMatrix", - "start": 3873, - "end": 3883, + "start": 4049, + "end": 4059, "loc": { "start": { - "line": 142, + "line": 154, "column": 16 }, "end": { - "line": 142, + "line": 154, "column": 26 } } @@ -44335,15 +47604,15 @@ "postfix": false, "binop": null }, - "start": 3883, - "end": 3884, + "start": 4059, + "end": 4060, "loc": { "start": { - "line": 142, + "line": 154, "column": 26 }, "end": { - "line": 142, + "line": 154, "column": 27 } } @@ -44361,15 +47630,15 @@ "binop": null }, "value": "viewMatrix", - "start": 3884, - "end": 3894, + "start": 4060, + "end": 4070, "loc": { "start": { - "line": 142, + "line": 154, "column": 27 }, "end": { - "line": 142, + "line": 154, "column": 37 } } @@ -44387,15 +47656,15 @@ "binop": null, "updateContext": null }, - "start": 3894, - "end": 3895, + "start": 4070, + "end": 4071, "loc": { "start": { - "line": 142, + "line": 154, "column": 37 }, "end": { - "line": 142, + "line": 154, "column": 38 } } @@ -44413,15 +47682,15 @@ "binop": null }, "value": "getArray", - "start": 3895, - "end": 3903, + "start": 4071, + "end": 4079, "loc": { "start": { - "line": 142, + "line": 154, "column": 38 }, "end": { - "line": 142, + "line": 154, "column": 46 } } @@ -44438,15 +47707,15 @@ "postfix": false, "binop": null }, - "start": 3903, - "end": 3904, + "start": 4079, + "end": 4080, "loc": { "start": { - "line": 142, + "line": 154, "column": 46 }, "end": { - "line": 142, + "line": 154, "column": 47 } } @@ -44463,15 +47732,15 @@ "postfix": false, "binop": null }, - "start": 3904, - "end": 3905, + "start": 4080, + "end": 4081, "loc": { "start": { - "line": 142, + "line": 154, "column": 47 }, "end": { - "line": 142, + "line": 154, "column": 48 } } @@ -44488,15 +47757,15 @@ "postfix": false, "binop": null }, - "start": 3905, - "end": 3906, + "start": 4081, + "end": 4082, "loc": { "start": { - "line": 142, + "line": 154, "column": 48 }, "end": { - "line": 142, + "line": 154, "column": 49 } } @@ -44514,15 +47783,15 @@ "binop": null, "updateContext": null }, - "start": 3906, - "end": 3907, + "start": 4082, + "end": 4083, "loc": { "start": { - "line": 142, + "line": 154, "column": 49 }, "end": { - "line": 142, + "line": 154, "column": 50 } } @@ -44540,15 +47809,15 @@ "binop": null }, "value": "MatrixStack", - "start": 3912, - "end": 3923, + "start": 4088, + "end": 4099, "loc": { "start": { - "line": 143, + "line": 155, "column": 4 }, "end": { - "line": 143, + "line": 155, "column": 15 } } @@ -44566,15 +47835,15 @@ "binop": null, "updateContext": null }, - "start": 3923, - "end": 3924, + "start": 4099, + "end": 4100, "loc": { "start": { - "line": 143, + "line": 155, "column": 15 }, "end": { - "line": 143, + "line": 155, "column": 16 } } @@ -44592,15 +47861,15 @@ "binop": null }, "value": "push", - "start": 3924, - "end": 3928, + "start": 4100, + "end": 4104, "loc": { "start": { - "line": 143, + "line": 155, "column": 16 }, "end": { - "line": 143, + "line": 155, "column": 20 } } @@ -44617,15 +47886,15 @@ "postfix": false, "binop": null }, - "start": 3928, - "end": 3929, + "start": 4104, + "end": 4105, "loc": { "start": { - "line": 143, + "line": 155, "column": 20 }, "end": { - "line": 143, + "line": 155, "column": 21 } } @@ -44642,15 +47911,15 @@ "postfix": false, "binop": null }, - "start": 3929, - "end": 3930, + "start": 4105, + "end": 4106, "loc": { "start": { - "line": 143, + "line": 155, "column": 21 }, "end": { - "line": 143, + "line": 155, "column": 22 } } @@ -44668,15 +47937,15 @@ "binop": null, "updateContext": null }, - "start": 3930, - "end": 3931, + "start": 4106, + "end": 4107, "loc": { "start": { - "line": 143, + "line": 155, "column": 22 }, "end": { - "line": 143, + "line": 155, "column": 23 } } @@ -44696,15 +47965,15 @@ "updateContext": null }, "value": "for", - "start": 3937, - "end": 3940, + "start": 4113, + "end": 4116, "loc": { "start": { - "line": 145, + "line": 157, "column": 4 }, "end": { - "line": 145, + "line": 157, "column": 7 } } @@ -44721,15 +47990,15 @@ "postfix": false, "binop": null }, - "start": 3941, - "end": 3942, + "start": 4117, + "end": 4118, "loc": { "start": { - "line": 145, + "line": 157, "column": 8 }, "end": { - "line": 145, + "line": 157, "column": 9 } } @@ -44749,15 +48018,15 @@ "updateContext": null }, "value": "let", - "start": 3942, - "end": 3945, + "start": 4118, + "end": 4121, "loc": { "start": { - "line": 145, + "line": 157, "column": 9 }, "end": { - "line": 145, + "line": 157, "column": 12 } } @@ -44775,15 +48044,15 @@ "binop": null }, "value": "i", - "start": 3946, - "end": 3947, + "start": 4122, + "end": 4123, "loc": { "start": { - "line": 145, + "line": 157, "column": 13 }, "end": { - "line": 145, + "line": 157, "column": 14 } } @@ -44802,15 +48071,15 @@ "updateContext": null }, "value": "=", - "start": 3948, - "end": 3949, + "start": 4124, + "end": 4125, "loc": { "start": { - "line": 145, + "line": 157, "column": 15 }, "end": { - "line": 145, + "line": 157, "column": 16 } } @@ -44829,15 +48098,15 @@ "updateContext": null }, "value": 0, - "start": 3950, - "end": 3951, + "start": 4126, + "end": 4127, "loc": { "start": { - "line": 145, + "line": 157, "column": 17 }, "end": { - "line": 145, + "line": 157, "column": 18 } } @@ -44855,15 +48124,15 @@ "binop": null, "updateContext": null }, - "start": 3951, - "end": 3952, + "start": 4127, + "end": 4128, "loc": { "start": { - "line": 145, + "line": 157, "column": 18 }, "end": { - "line": 145, + "line": 157, "column": 19 } } @@ -44881,15 +48150,15 @@ "binop": null }, "value": "i", - "start": 3953, - "end": 3954, + "start": 4129, + "end": 4130, "loc": { "start": { - "line": 145, + "line": 157, "column": 20 }, "end": { - "line": 145, + "line": 157, "column": 21 } } @@ -44908,15 +48177,15 @@ "updateContext": null }, "value": "<", - "start": 3955, - "end": 3956, + "start": 4131, + "end": 4132, "loc": { "start": { - "line": 145, + "line": 157, "column": 22 }, "end": { - "line": 145, + "line": 157, "column": 23 } } @@ -44934,15 +48203,15 @@ "binop": null }, "value": "live2DMgr", - "start": 3957, - "end": 3966, + "start": 4133, + "end": 4142, "loc": { "start": { - "line": 145, + "line": 157, "column": 24 }, "end": { - "line": 145, + "line": 157, "column": 33 } } @@ -44960,15 +48229,15 @@ "binop": null, "updateContext": null }, - "start": 3966, - "end": 3967, + "start": 4142, + "end": 4143, "loc": { "start": { - "line": 145, + "line": 157, "column": 33 }, "end": { - "line": 145, + "line": 157, "column": 34 } } @@ -44986,15 +48255,15 @@ "binop": null }, "value": "numModels", - "start": 3967, - "end": 3976, + "start": 4143, + "end": 4152, "loc": { "start": { - "line": 145, + "line": 157, "column": 34 }, "end": { - "line": 145, + "line": 157, "column": 43 } } @@ -45011,15 +48280,15 @@ "postfix": false, "binop": null }, - "start": 3976, - "end": 3977, + "start": 4152, + "end": 4153, "loc": { "start": { - "line": 145, + "line": 157, "column": 43 }, "end": { - "line": 145, + "line": 157, "column": 44 } } @@ -45036,15 +48305,15 @@ "postfix": false, "binop": null }, - "start": 3977, - "end": 3978, + "start": 4153, + "end": 4154, "loc": { "start": { - "line": 145, + "line": 157, "column": 44 }, "end": { - "line": 145, + "line": 157, "column": 45 } } @@ -45062,15 +48331,15 @@ "binop": null, "updateContext": null }, - "start": 3978, - "end": 3979, + "start": 4154, + "end": 4155, "loc": { "start": { - "line": 145, + "line": 157, "column": 45 }, "end": { - "line": 145, + "line": 157, "column": 46 } } @@ -45088,15 +48357,15 @@ "binop": null }, "value": "i", - "start": 3980, - "end": 3981, + "start": 4156, + "end": 4157, "loc": { "start": { - "line": 145, + "line": 157, "column": 47 }, "end": { - "line": 145, + "line": 157, "column": 48 } } @@ -45114,15 +48383,15 @@ "binop": null }, "value": "++", - "start": 3981, - "end": 3983, + "start": 4157, + "end": 4159, "loc": { "start": { - "line": 145, + "line": 157, "column": 48 }, "end": { - "line": 145, + "line": 157, "column": 50 } } @@ -45139,15 +48408,15 @@ "postfix": false, "binop": null }, - "start": 3983, - "end": 3984, + "start": 4159, + "end": 4160, "loc": { "start": { - "line": 145, + "line": 157, "column": 50 }, "end": { - "line": 145, + "line": 157, "column": 51 } } @@ -45164,15 +48433,15 @@ "postfix": false, "binop": null }, - "start": 3989, - "end": 3990, + "start": 4165, + "end": 4166, "loc": { "start": { - "line": 146, + "line": 158, "column": 4 }, "end": { - "line": 146, + "line": 158, "column": 5 } } @@ -45192,15 +48461,15 @@ "updateContext": null }, "value": "let", - "start": 3999, - "end": 4002, + "start": 4175, + "end": 4178, "loc": { "start": { - "line": 147, + "line": 159, "column": 8 }, "end": { - "line": 147, + "line": 159, "column": 11 } } @@ -45218,15 +48487,15 @@ "binop": null }, "value": "model", - "start": 4003, - "end": 4008, + "start": 4179, + "end": 4184, "loc": { "start": { - "line": 147, + "line": 159, "column": 12 }, "end": { - "line": 147, + "line": 159, "column": 17 } } @@ -45245,15 +48514,15 @@ "updateContext": null }, "value": "=", - "start": 4009, - "end": 4010, + "start": 4185, + "end": 4186, "loc": { "start": { - "line": 147, + "line": 159, "column": 18 }, "end": { - "line": 147, + "line": 159, "column": 19 } } @@ -45271,15 +48540,15 @@ "binop": null }, "value": "live2DMgr", - "start": 4011, - "end": 4020, + "start": 4187, + "end": 4196, "loc": { "start": { - "line": 147, + "line": 159, "column": 20 }, "end": { - "line": 147, + "line": 159, "column": 29 } } @@ -45297,15 +48566,15 @@ "binop": null, "updateContext": null }, - "start": 4020, - "end": 4021, + "start": 4196, + "end": 4197, "loc": { "start": { - "line": 147, + "line": 159, "column": 29 }, "end": { - "line": 147, + "line": 159, "column": 30 } } @@ -45323,15 +48592,15 @@ "binop": null }, "value": "getModel", - "start": 4021, - "end": 4029, + "start": 4197, + "end": 4205, "loc": { "start": { - "line": 147, + "line": 159, "column": 30 }, "end": { - "line": 147, + "line": 159, "column": 38 } } @@ -45348,15 +48617,15 @@ "postfix": false, "binop": null }, - "start": 4029, - "end": 4030, + "start": 4205, + "end": 4206, "loc": { "start": { - "line": 147, + "line": 159, "column": 38 }, "end": { - "line": 147, + "line": 159, "column": 39 } } @@ -45374,15 +48643,15 @@ "binop": null }, "value": "i", - "start": 4030, - "end": 4031, + "start": 4206, + "end": 4207, "loc": { "start": { - "line": 147, + "line": 159, "column": 39 }, "end": { - "line": 147, + "line": 159, "column": 40 } } @@ -45399,15 +48668,15 @@ "postfix": false, "binop": null }, - "start": 4031, - "end": 4032, + "start": 4207, + "end": 4208, "loc": { "start": { - "line": 147, + "line": 159, "column": 40 }, "end": { - "line": 147, + "line": 159, "column": 41 } } @@ -45425,15 +48694,15 @@ "binop": null, "updateContext": null }, - "start": 4032, - "end": 4033, + "start": 4208, + "end": 4209, "loc": { "start": { - "line": 147, + "line": 159, "column": 41 }, "end": { - "line": 147, + "line": 159, "column": 42 } } @@ -45453,15 +48722,15 @@ "updateContext": null }, "value": "if", - "start": 4043, - "end": 4045, + "start": 4219, + "end": 4221, "loc": { "start": { - "line": 149, + "line": 161, "column": 8 }, "end": { - "line": 149, + "line": 161, "column": 10 } } @@ -45478,15 +48747,15 @@ "postfix": false, "binop": null }, - "start": 4045, - "end": 4046, + "start": 4221, + "end": 4222, "loc": { "start": { - "line": 149, + "line": 161, "column": 10 }, "end": { - "line": 149, + "line": 161, "column": 11 } } @@ -45504,15 +48773,15 @@ "binop": null }, "value": "model", - "start": 4046, - "end": 4051, + "start": 4222, + "end": 4227, "loc": { "start": { - "line": 149, + "line": 161, "column": 11 }, "end": { - "line": 149, + "line": 161, "column": 16 } } @@ -45531,15 +48800,15 @@ "updateContext": null }, "value": "==", - "start": 4052, - "end": 4054, + "start": 4228, + "end": 4230, "loc": { "start": { - "line": 149, + "line": 161, "column": 17 }, "end": { - "line": 149, + "line": 161, "column": 19 } } @@ -45559,15 +48828,15 @@ "updateContext": null }, "value": "null", - "start": 4055, - "end": 4059, + "start": 4231, + "end": 4235, "loc": { "start": { - "line": 149, + "line": 161, "column": 20 }, "end": { - "line": 149, + "line": 161, "column": 24 } } @@ -45584,15 +48853,15 @@ "postfix": false, "binop": null }, - "start": 4059, - "end": 4060, + "start": 4235, + "end": 4236, "loc": { "start": { - "line": 149, + "line": 161, "column": 24 }, "end": { - "line": 149, + "line": 161, "column": 25 } } @@ -45612,15 +48881,15 @@ "updateContext": null }, "value": "return", - "start": 4061, - "end": 4067, + "start": 4237, + "end": 4243, "loc": { "start": { - "line": 149, + "line": 161, "column": 26 }, "end": { - "line": 149, + "line": 161, "column": 32 } } @@ -45638,15 +48907,15 @@ "binop": null, "updateContext": null }, - "start": 4067, - "end": 4068, + "start": 4243, + "end": 4244, "loc": { "start": { - "line": 149, + "line": 161, "column": 32 }, "end": { - "line": 149, + "line": 161, "column": 33 } } @@ -45666,15 +48935,15 @@ "updateContext": null }, "value": "if", - "start": 4078, - "end": 4080, + "start": 4254, + "end": 4256, "loc": { "start": { - "line": 151, + "line": 163, "column": 8 }, "end": { - "line": 151, + "line": 163, "column": 10 } } @@ -45691,15 +48960,15 @@ "postfix": false, "binop": null }, - "start": 4081, - "end": 4082, + "start": 4257, + "end": 4258, "loc": { "start": { - "line": 151, + "line": 163, "column": 11 }, "end": { - "line": 151, + "line": 163, "column": 12 } } @@ -45717,15 +48986,15 @@ "binop": null }, "value": "model", - "start": 4082, - "end": 4087, + "start": 4258, + "end": 4263, "loc": { "start": { - "line": 151, + "line": 163, "column": 12 }, "end": { - "line": 151, + "line": 163, "column": 17 } } @@ -45743,15 +49012,15 @@ "binop": null, "updateContext": null }, - "start": 4087, - "end": 4088, + "start": 4263, + "end": 4264, "loc": { "start": { - "line": 151, + "line": 163, "column": 17 }, "end": { - "line": 151, + "line": 163, "column": 18 } } @@ -45769,15 +49038,15 @@ "binop": null }, "value": "initialized", - "start": 4088, - "end": 4099, + "start": 4264, + "end": 4275, "loc": { "start": { - "line": 151, + "line": 163, "column": 18 }, "end": { - "line": 151, + "line": 163, "column": 29 } } @@ -45796,15 +49065,15 @@ "updateContext": null }, "value": "&&", - "start": 4100, - "end": 4102, + "start": 4276, + "end": 4278, "loc": { "start": { - "line": 151, + "line": 163, "column": 30 }, "end": { - "line": 151, + "line": 163, "column": 32 } } @@ -45823,15 +49092,15 @@ "updateContext": null }, "value": "!", - "start": 4103, - "end": 4104, + "start": 4279, + "end": 4280, "loc": { "start": { - "line": 151, + "line": 163, "column": 33 }, "end": { - "line": 151, + "line": 163, "column": 34 } } @@ -45849,15 +49118,15 @@ "binop": null }, "value": "model", - "start": 4104, - "end": 4109, + "start": 4280, + "end": 4285, "loc": { "start": { - "line": 151, + "line": 163, "column": 34 }, "end": { - "line": 151, + "line": 163, "column": 39 } } @@ -45875,15 +49144,15 @@ "binop": null, "updateContext": null }, - "start": 4109, - "end": 4110, + "start": 4285, + "end": 4286, "loc": { "start": { - "line": 151, + "line": 163, "column": 39 }, "end": { - "line": 151, + "line": 163, "column": 40 } } @@ -45901,15 +49170,15 @@ "binop": null }, "value": "updating", - "start": 4110, - "end": 4118, + "start": 4286, + "end": 4294, "loc": { "start": { - "line": 151, + "line": 163, "column": 40 }, "end": { - "line": 151, + "line": 163, "column": 48 } } @@ -45926,15 +49195,15 @@ "postfix": false, "binop": null }, - "start": 4118, - "end": 4119, + "start": 4294, + "end": 4295, "loc": { "start": { - "line": 151, + "line": 163, "column": 48 }, "end": { - "line": 151, + "line": 163, "column": 49 } } @@ -45951,15 +49220,15 @@ "postfix": false, "binop": null }, - "start": 4128, - "end": 4129, + "start": 4304, + "end": 4305, "loc": { "start": { - "line": 152, + "line": 164, "column": 8 }, "end": { - "line": 152, + "line": 164, "column": 9 } } @@ -45977,15 +49246,15 @@ "binop": null }, "value": "model", - "start": 4142, - "end": 4147, + "start": 4318, + "end": 4323, "loc": { "start": { - "line": 153, + "line": 165, "column": 12 }, "end": { - "line": 153, + "line": 165, "column": 17 } } @@ -46003,15 +49272,15 @@ "binop": null, "updateContext": null }, - "start": 4147, - "end": 4148, + "start": 4323, + "end": 4324, "loc": { "start": { - "line": 153, + "line": 165, "column": 17 }, "end": { - "line": 153, + "line": 165, "column": 18 } } @@ -46029,15 +49298,15 @@ "binop": null }, "value": "update", - "start": 4148, - "end": 4154, + "start": 4324, + "end": 4330, "loc": { "start": { - "line": 153, + "line": 165, "column": 18 }, "end": { - "line": 153, + "line": 165, "column": 24 } } @@ -46054,15 +49323,15 @@ "postfix": false, "binop": null }, - "start": 4154, - "end": 4155, + "start": 4330, + "end": 4331, "loc": { "start": { - "line": 153, + "line": 165, "column": 24 }, "end": { - "line": 153, + "line": 165, "column": 25 } } @@ -46079,15 +49348,15 @@ "postfix": false, "binop": null }, - "start": 4155, - "end": 4156, + "start": 4331, + "end": 4332, "loc": { "start": { - "line": 153, + "line": 165, "column": 25 }, "end": { - "line": 153, + "line": 165, "column": 26 } } @@ -46105,15 +49374,15 @@ "binop": null, "updateContext": null }, - "start": 4156, - "end": 4157, + "start": 4332, + "end": 4333, "loc": { "start": { - "line": 153, + "line": 165, "column": 26 }, "end": { - "line": 153, + "line": 165, "column": 27 } } @@ -46131,15 +49400,15 @@ "binop": null }, "value": "model", - "start": 4170, - "end": 4175, + "start": 4346, + "end": 4351, "loc": { "start": { - "line": 154, + "line": 166, "column": 12 }, "end": { - "line": 154, + "line": 166, "column": 17 } } @@ -46157,15 +49426,15 @@ "binop": null, "updateContext": null }, - "start": 4175, - "end": 4176, + "start": 4351, + "end": 4352, "loc": { "start": { - "line": 154, + "line": 166, "column": 17 }, "end": { - "line": 154, + "line": 166, "column": 18 } } @@ -46183,15 +49452,15 @@ "binop": null }, "value": "draw", - "start": 4176, - "end": 4180, + "start": 4352, + "end": 4356, "loc": { "start": { - "line": 154, + "line": 166, "column": 18 }, "end": { - "line": 154, + "line": 166, "column": 22 } } @@ -46208,15 +49477,15 @@ "postfix": false, "binop": null }, - "start": 4180, - "end": 4181, + "start": 4356, + "end": 4357, "loc": { "start": { - "line": 154, + "line": 166, "column": 22 }, "end": { - "line": 154, + "line": 166, "column": 23 } } @@ -46234,15 +49503,15 @@ "binop": null }, "value": "currWebGL", - "start": 4181, - "end": 4190, + "start": 4357, + "end": 4366, "loc": { "start": { - "line": 154, + "line": 166, "column": 23 }, "end": { - "line": 154, + "line": 166, "column": 32 } } @@ -46259,15 +49528,15 @@ "postfix": false, "binop": null }, - "start": 4190, - "end": 4191, + "start": 4366, + "end": 4367, "loc": { "start": { - "line": 154, + "line": 166, "column": 32 }, "end": { - "line": 154, + "line": 166, "column": 33 } } @@ -46285,15 +49554,15 @@ "binop": null, "updateContext": null }, - "start": 4191, - "end": 4192, + "start": 4367, + "end": 4368, "loc": { "start": { - "line": 154, + "line": 166, "column": 33 }, "end": { - "line": 154, + "line": 166, "column": 34 } } @@ -46310,15 +49579,15 @@ "postfix": false, "binop": null }, - "start": 4201, - "end": 4202, + "start": 4377, + "end": 4378, "loc": { "start": { - "line": 155, + "line": 167, "column": 8 }, "end": { - "line": 155, + "line": 167, "column": 9 } } @@ -46335,15 +49604,15 @@ "postfix": false, "binop": null }, - "start": 4207, - "end": 4208, + "start": 4383, + "end": 4384, "loc": { "start": { - "line": 156, + "line": 168, "column": 4 }, "end": { - "line": 156, + "line": 168, "column": 5 } } @@ -46361,15 +49630,15 @@ "binop": null }, "value": "MatrixStack", - "start": 4213, - "end": 4224, + "start": 4389, + "end": 4400, "loc": { "start": { - "line": 157, + "line": 169, "column": 4 }, "end": { - "line": 157, + "line": 169, "column": 15 } } @@ -46387,15 +49656,15 @@ "binop": null, "updateContext": null }, - "start": 4224, - "end": 4225, + "start": 4400, + "end": 4401, "loc": { "start": { - "line": 157, + "line": 169, "column": 15 }, "end": { - "line": 157, + "line": 169, "column": 16 } } @@ -46413,15 +49682,15 @@ "binop": null }, "value": "pop", - "start": 4225, - "end": 4228, + "start": 4401, + "end": 4404, "loc": { "start": { - "line": 157, + "line": 169, "column": 16 }, "end": { - "line": 157, + "line": 169, "column": 19 } } @@ -46438,15 +49707,15 @@ "postfix": false, "binop": null }, - "start": 4228, - "end": 4229, + "start": 4404, + "end": 4405, "loc": { "start": { - "line": 157, + "line": 169, "column": 19 }, "end": { - "line": 157, + "line": 169, "column": 20 } } @@ -46463,15 +49732,15 @@ "postfix": false, "binop": null }, - "start": 4229, - "end": 4230, + "start": 4405, + "end": 4406, "loc": { "start": { - "line": 157, + "line": 169, "column": 20 }, "end": { - "line": 157, + "line": 169, "column": 21 } } @@ -46489,15 +49758,15 @@ "binop": null, "updateContext": null }, - "start": 4230, - "end": 4231, + "start": 4406, + "end": 4407, "loc": { "start": { - "line": 157, + "line": 169, "column": 21 }, "end": { - "line": 157, + "line": 169, "column": 22 } } @@ -46514,15 +49783,15 @@ "postfix": false, "binop": null }, - "start": 4232, - "end": 4233, + "start": 4408, + "end": 4409, "loc": { "start": { - "line": 158, + "line": 170, "column": 0 }, "end": { - "line": 158, + "line": 170, "column": 1 } } @@ -46541,15 +49810,15 @@ "binop": null }, "value": "function", - "start": 4235, - "end": 4243, + "start": 4411, + "end": 4419, "loc": { "start": { - "line": 160, + "line": 172, "column": 0 }, "end": { - "line": 160, + "line": 172, "column": 8 } } @@ -46567,15 +49836,15 @@ "binop": null }, "value": "changeModel", - "start": 4244, - "end": 4255, + "start": 4420, + "end": 4431, "loc": { "start": { - "line": 160, + "line": 172, "column": 9 }, "end": { - "line": 160, + "line": 172, "column": 20 } } @@ -46592,15 +49861,15 @@ "postfix": false, "binop": null }, - "start": 4255, - "end": 4256, + "start": 4431, + "end": 4432, "loc": { "start": { - "line": 160, + "line": 172, "column": 20 }, "end": { - "line": 160, + "line": 172, "column": 21 } } @@ -46618,15 +49887,15 @@ "binop": null }, "value": "modelurl", - "start": 4256, - "end": 4264, + "start": 4432, + "end": 4440, "loc": { "start": { - "line": 160, + "line": 172, "column": 21 }, "end": { - "line": 160, + "line": 172, "column": 29 } } @@ -46643,15 +49912,15 @@ "postfix": false, "binop": null }, - "start": 4264, - "end": 4265, + "start": 4440, + "end": 4441, "loc": { "start": { - "line": 160, + "line": 172, "column": 29 }, "end": { - "line": 160, + "line": 172, "column": 30 } } @@ -46659,15 +49928,15 @@ { "type": "CommentLine", "value": " 更换模型", - "start": 4266, - "end": 4273, + "start": 4442, + "end": 4449, "loc": { "start": { - "line": 160, + "line": 172, "column": 31 }, "end": { - "line": 160, + "line": 172, "column": 38 } } @@ -46684,15 +49953,15 @@ "postfix": false, "binop": null }, - "start": 4274, - "end": 4275, + "start": 4450, + "end": 4451, "loc": { "start": { - "line": 161, + "line": 173, "column": 0 }, "end": { - "line": 161, + "line": 173, "column": 1 } } @@ -46710,15 +49979,15 @@ "binop": null }, "value": "live2DMgr", - "start": 4280, - "end": 4289, + "start": 4456, + "end": 4465, "loc": { "start": { - "line": 162, + "line": 174, "column": 4 }, "end": { - "line": 162, + "line": 174, "column": 13 } } @@ -46736,15 +50005,15 @@ "binop": null, "updateContext": null }, - "start": 4289, - "end": 4290, + "start": 4465, + "end": 4466, "loc": { "start": { - "line": 162, + "line": 174, "column": 13 }, "end": { - "line": 162, + "line": 174, "column": 14 } } @@ -46762,15 +50031,15 @@ "binop": null }, "value": "reloadFlg", - "start": 4290, - "end": 4299, + "start": 4466, + "end": 4475, "loc": { "start": { - "line": 162, + "line": 174, "column": 14 }, "end": { - "line": 162, + "line": 174, "column": 23 } } @@ -46789,15 +50058,15 @@ "updateContext": null }, "value": "=", - "start": 4300, - "end": 4301, + "start": 4476, + "end": 4477, "loc": { "start": { - "line": 162, + "line": 174, "column": 24 }, "end": { - "line": 162, + "line": 174, "column": 25 } } @@ -46817,15 +50086,15 @@ "updateContext": null }, "value": "true", - "start": 4302, - "end": 4306, + "start": 4478, + "end": 4482, "loc": { "start": { - "line": 162, + "line": 174, "column": 26 }, "end": { - "line": 162, + "line": 174, "column": 30 } } @@ -46843,15 +50112,15 @@ "binop": null, "updateContext": null }, - "start": 4306, - "end": 4307, + "start": 4482, + "end": 4483, "loc": { "start": { - "line": 162, + "line": 174, "column": 30 }, "end": { - "line": 162, + "line": 174, "column": 31 } } @@ -46869,15 +50138,15 @@ "binop": null }, "value": "live2DMgr", - "start": 4312, - "end": 4321, + "start": 4488, + "end": 4497, "loc": { "start": { - "line": 163, + "line": 175, "column": 4 }, "end": { - "line": 163, + "line": 175, "column": 13 } } @@ -46895,15 +50164,15 @@ "binop": null, "updateContext": null }, - "start": 4321, - "end": 4322, + "start": 4497, + "end": 4498, "loc": { "start": { - "line": 163, + "line": 175, "column": 13 }, "end": { - "line": 163, + "line": 175, "column": 14 } } @@ -46921,15 +50190,15 @@ "binop": null }, "value": "count", - "start": 4322, - "end": 4327, + "start": 4498, + "end": 4503, "loc": { "start": { - "line": 163, + "line": 175, "column": 14 }, "end": { - "line": 163, + "line": 175, "column": 19 } } @@ -46947,15 +50216,15 @@ "binop": null }, "value": "++", - "start": 4327, - "end": 4329, + "start": 4503, + "end": 4505, "loc": { "start": { - "line": 163, + "line": 175, "column": 19 }, "end": { - "line": 163, + "line": 175, "column": 21 } } @@ -46973,15 +50242,15 @@ "binop": null, "updateContext": null }, - "start": 4329, - "end": 4330, + "start": 4505, + "end": 4506, "loc": { "start": { - "line": 163, + "line": 175, "column": 21 }, "end": { - "line": 163, + "line": 175, "column": 22 } } @@ -46989,15 +50258,15 @@ { "type": "CommentLine", "value": " 现在仍有多模型支持,稍后可以精简", - "start": 4331, - "end": 4350, + "start": 4507, + "end": 4526, "loc": { "start": { - "line": 163, + "line": 175, "column": 23 }, "end": { - "line": 163, + "line": 175, "column": 42 } } @@ -47015,15 +50284,15 @@ "binop": null }, "value": "live2DMgr", - "start": 4355, - "end": 4364, + "start": 4531, + "end": 4540, "loc": { "start": { - "line": 164, + "line": 176, "column": 4 }, "end": { - "line": 164, + "line": 176, "column": 13 } } @@ -47041,15 +50310,15 @@ "binop": null, "updateContext": null }, - "start": 4364, - "end": 4365, + "start": 4540, + "end": 4541, "loc": { "start": { - "line": 164, + "line": 176, "column": 13 }, "end": { - "line": 164, + "line": 176, "column": 14 } } @@ -47067,15 +50336,15 @@ "binop": null }, "value": "changeModel", - "start": 4365, - "end": 4376, + "start": 4541, + "end": 4552, "loc": { "start": { - "line": 164, + "line": 176, "column": 14 }, "end": { - "line": 164, + "line": 176, "column": 25 } } @@ -47092,15 +50361,15 @@ "postfix": false, "binop": null }, - "start": 4376, - "end": 4377, + "start": 4552, + "end": 4553, "loc": { "start": { - "line": 164, + "line": 176, "column": 25 }, "end": { - "line": 164, + "line": 176, "column": 26 } } @@ -47118,15 +50387,15 @@ "binop": null }, "value": "currWebGL", - "start": 4377, - "end": 4386, + "start": 4553, + "end": 4562, "loc": { "start": { - "line": 164, + "line": 176, "column": 26 }, "end": { - "line": 164, + "line": 176, "column": 35 } } @@ -47144,15 +50413,15 @@ "binop": null, "updateContext": null }, - "start": 4386, - "end": 4387, + "start": 4562, + "end": 4563, "loc": { "start": { - "line": 164, + "line": 176, "column": 35 }, "end": { - "line": 164, + "line": 176, "column": 36 } } @@ -47170,15 +50439,15 @@ "binop": null }, "value": "modelurl", - "start": 4388, - "end": 4396, + "start": 4564, + "end": 4572, "loc": { "start": { - "line": 164, + "line": 176, "column": 37 }, "end": { - "line": 164, + "line": 176, "column": 45 } } @@ -47195,15 +50464,15 @@ "postfix": false, "binop": null }, - "start": 4396, - "end": 4397, + "start": 4572, + "end": 4573, "loc": { "start": { - "line": 164, + "line": 176, "column": 45 }, "end": { - "line": 164, + "line": 176, "column": 46 } } @@ -47221,15 +50490,15 @@ "binop": null, "updateContext": null }, - "start": 4397, - "end": 4398, + "start": 4573, + "end": 4574, "loc": { "start": { - "line": 164, + "line": 176, "column": 46 }, "end": { - "line": 164, + "line": 176, "column": 47 } } @@ -47246,15 +50515,15 @@ "postfix": false, "binop": null }, - "start": 4399, - "end": 4400, + "start": 4575, + "end": 4576, "loc": { "start": { - "line": 165, + "line": 177, "column": 0 }, "end": { - "line": 165, + "line": 177, "column": 1 } } @@ -47273,15 +50542,15 @@ "binop": null }, "value": "function", - "start": 4402, - "end": 4410, + "start": 4578, + "end": 4586, "loc": { "start": { - "line": 167, + "line": 179, "column": 0 }, "end": { - "line": 167, + "line": 179, "column": 8 } } @@ -47299,15 +50568,15 @@ "binop": null }, "value": "modelScaling", - "start": 4411, - "end": 4423, + "start": 4587, + "end": 4599, "loc": { "start": { - "line": 167, + "line": 179, "column": 9 }, "end": { - "line": 167, + "line": 179, "column": 21 } } @@ -47324,15 +50593,15 @@ "postfix": false, "binop": null }, - "start": 4423, - "end": 4424, + "start": 4599, + "end": 4600, "loc": { "start": { - "line": 167, + "line": 179, "column": 21 }, "end": { - "line": 167, + "line": 179, "column": 22 } } @@ -47350,15 +50619,15 @@ "binop": null }, "value": "scale", - "start": 4424, - "end": 4429, + "start": 4600, + "end": 4605, "loc": { "start": { - "line": 167, + "line": 179, "column": 22 }, "end": { - "line": 167, + "line": 179, "column": 27 } } @@ -47375,15 +50644,15 @@ "postfix": false, "binop": null }, - "start": 4429, - "end": 4430, + "start": 4605, + "end": 4606, "loc": { "start": { - "line": 167, + "line": 179, "column": 27 }, "end": { - "line": 167, + "line": 179, "column": 28 } } @@ -47400,15 +50669,15 @@ "postfix": false, "binop": null }, - "start": 4431, - "end": 4432, + "start": 4607, + "end": 4608, "loc": { "start": { - "line": 167, + "line": 179, "column": 29 }, "end": { - "line": 167, + "line": 179, "column": 30 } } @@ -47426,15 +50695,15 @@ "binop": null }, "value": "viewMatrix", - "start": 4435, - "end": 4445, + "start": 4611, + "end": 4621, "loc": { "start": { - "line": 168, + "line": 180, "column": 2 }, "end": { - "line": 168, + "line": 180, "column": 12 } } @@ -47452,15 +50721,15 @@ "binop": null, "updateContext": null }, - "start": 4445, - "end": 4446, + "start": 4621, + "end": 4622, "loc": { "start": { - "line": 168, + "line": 180, "column": 12 }, "end": { - "line": 168, + "line": 180, "column": 13 } } @@ -47478,15 +50747,15 @@ "binop": null }, "value": "adjustScale", - "start": 4446, - "end": 4457, + "start": 4622, + "end": 4633, "loc": { "start": { - "line": 168, + "line": 180, "column": 13 }, "end": { - "line": 168, + "line": 180, "column": 24 } } @@ -47503,15 +50772,15 @@ "postfix": false, "binop": null }, - "start": 4457, - "end": 4458, + "start": 4633, + "end": 4634, "loc": { "start": { - "line": 168, + "line": 180, "column": 24 }, "end": { - "line": 168, + "line": 180, "column": 25 } } @@ -47530,15 +50799,15 @@ "updateContext": null }, "value": 0, - "start": 4458, - "end": 4459, + "start": 4634, + "end": 4635, "loc": { "start": { - "line": 168, + "line": 180, "column": 25 }, "end": { - "line": 168, + "line": 180, "column": 26 } } @@ -47556,15 +50825,15 @@ "binop": null, "updateContext": null }, - "start": 4459, - "end": 4460, + "start": 4635, + "end": 4636, "loc": { "start": { - "line": 168, + "line": 180, "column": 26 }, "end": { - "line": 168, + "line": 180, "column": 27 } } @@ -47583,15 +50852,15 @@ "updateContext": null }, "value": 0, - "start": 4461, - "end": 4462, + "start": 4637, + "end": 4638, "loc": { "start": { - "line": 168, + "line": 180, "column": 28 }, "end": { - "line": 168, + "line": 180, "column": 29 } } @@ -47609,15 +50878,15 @@ "binop": null, "updateContext": null }, - "start": 4462, - "end": 4463, + "start": 4638, + "end": 4639, "loc": { "start": { - "line": 168, + "line": 180, "column": 29 }, "end": { - "line": 168, + "line": 180, "column": 30 } } @@ -47635,15 +50904,15 @@ "binop": null }, "value": "scale", - "start": 4464, - "end": 4469, + "start": 4640, + "end": 4645, "loc": { "start": { - "line": 168, + "line": 180, "column": 31 }, "end": { - "line": 168, + "line": 180, "column": 36 } } @@ -47660,15 +50929,15 @@ "postfix": false, "binop": null }, - "start": 4469, - "end": 4470, + "start": 4645, + "end": 4646, "loc": { "start": { - "line": 168, + "line": 180, "column": 36 }, "end": { - "line": 168, + "line": 180, "column": 37 } } @@ -47686,15 +50955,15 @@ "binop": null, "updateContext": null }, - "start": 4470, - "end": 4471, + "start": 4646, + "end": 4647, "loc": { "start": { - "line": 168, + "line": 180, "column": 37 }, "end": { - "line": 168, + "line": 180, "column": 38 } } @@ -47711,15 +50980,15 @@ "postfix": false, "binop": null }, - "start": 4472, - "end": 4473, + "start": 4648, + "end": 4649, "loc": { "start": { - "line": 169, + "line": 181, "column": 0 }, "end": { - "line": 169, + "line": 181, "column": 1 } } @@ -47727,15 +50996,15 @@ { "type": "CommentBlock", "value": "\nfunction transformRange(center, transform, range)\n{\n let a = {\n x: transform.x - center.x,\n y: transform.y - center.y\n }\n let r = Math.sqrt(Math.pow(a.x,2) + Math.pow(a.y,2));\n if (r > range) {\n a = {\n x: a.x / r * range + center.x,\n y: a.y / r * range + center.y\n };\n return a;\n } else {\n return transform;\n }\n}\n", - "start": 4474, - "end": 4874, + "start": 4650, + "end": 5050, "loc": { "start": { - "line": 170, + "line": 182, "column": 0 }, "end": { - "line": 188, + "line": 200, "column": 2 } } @@ -47754,15 +51023,15 @@ "binop": null }, "value": "function", - "start": 4875, - "end": 4883, + "start": 5051, + "end": 5059, "loc": { "start": { - "line": 189, + "line": 201, "column": 0 }, "end": { - "line": 189, + "line": 201, "column": 8 } } @@ -47780,15 +51049,15 @@ "binop": null }, "value": "dot", - "start": 4884, - "end": 4887, + "start": 5060, + "end": 5063, "loc": { "start": { - "line": 189, + "line": 201, "column": 9 }, "end": { - "line": 189, + "line": 201, "column": 12 } } @@ -47805,15 +51074,15 @@ "postfix": false, "binop": null }, - "start": 4887, - "end": 4888, + "start": 5063, + "end": 5064, "loc": { "start": { - "line": 189, + "line": 201, "column": 12 }, "end": { - "line": 189, + "line": 201, "column": 13 } } @@ -47831,15 +51100,15 @@ "binop": null }, "value": "A", - "start": 4888, - "end": 4889, + "start": 5064, + "end": 5065, "loc": { "start": { - "line": 189, + "line": 201, "column": 13 }, "end": { - "line": 189, + "line": 201, "column": 14 } } @@ -47857,15 +51126,15 @@ "binop": null, "updateContext": null }, - "start": 4889, - "end": 4890, + "start": 5065, + "end": 5066, "loc": { "start": { - "line": 189, + "line": 201, "column": 14 }, "end": { - "line": 189, + "line": 201, "column": 15 } } @@ -47883,15 +51152,15 @@ "binop": null }, "value": "B", - "start": 4890, - "end": 4891, + "start": 5066, + "end": 5067, "loc": { "start": { - "line": 189, + "line": 201, "column": 15 }, "end": { - "line": 189, + "line": 201, "column": 16 } } @@ -47908,15 +51177,15 @@ "postfix": false, "binop": null }, - "start": 4891, - "end": 4892, + "start": 5067, + "end": 5068, "loc": { "start": { - "line": 189, + "line": 201, "column": 16 }, "end": { - "line": 189, + "line": 201, "column": 17 } } @@ -47933,15 +51202,15 @@ "postfix": false, "binop": null }, - "start": 4893, - "end": 4894, + "start": 5069, + "end": 5070, "loc": { "start": { - "line": 190, + "line": 202, "column": 0 }, "end": { - "line": 190, + "line": 202, "column": 1 } } @@ -47961,15 +51230,15 @@ "updateContext": null }, "value": "return", - "start": 4899, - "end": 4905, + "start": 5075, + "end": 5081, "loc": { "start": { - "line": 191, + "line": 203, "column": 4 }, "end": { - "line": 191, + "line": 203, "column": 10 } } @@ -47987,15 +51256,15 @@ "binop": null }, "value": "A", - "start": 4906, - "end": 4907, + "start": 5082, + "end": 5083, "loc": { "start": { - "line": 191, + "line": 203, "column": 11 }, "end": { - "line": 191, + "line": 203, "column": 12 } } @@ -48013,15 +51282,15 @@ "binop": null, "updateContext": null }, - "start": 4907, - "end": 4908, + "start": 5083, + "end": 5084, "loc": { "start": { - "line": 191, + "line": 203, "column": 12 }, "end": { - "line": 191, + "line": 203, "column": 13 } } @@ -48039,15 +51308,15 @@ "binop": null }, "value": "x", - "start": 4908, - "end": 4909, + "start": 5084, + "end": 5085, "loc": { "start": { - "line": 191, + "line": 203, "column": 13 }, "end": { - "line": 191, + "line": 203, "column": 14 } } @@ -48066,15 +51335,15 @@ "updateContext": null }, "value": "*", - "start": 4910, - "end": 4911, + "start": 5086, + "end": 5087, "loc": { "start": { - "line": 191, + "line": 203, "column": 15 }, "end": { - "line": 191, + "line": 203, "column": 16 } } @@ -48092,15 +51361,15 @@ "binop": null }, "value": "B", - "start": 4912, - "end": 4913, + "start": 5088, + "end": 5089, "loc": { "start": { - "line": 191, + "line": 203, "column": 17 }, "end": { - "line": 191, + "line": 203, "column": 18 } } @@ -48118,15 +51387,15 @@ "binop": null, "updateContext": null }, - "start": 4913, - "end": 4914, + "start": 5089, + "end": 5090, "loc": { "start": { - "line": 191, + "line": 203, "column": 18 }, "end": { - "line": 191, + "line": 203, "column": 19 } } @@ -48144,15 +51413,15 @@ "binop": null }, "value": "x", - "start": 4914, - "end": 4915, + "start": 5090, + "end": 5091, "loc": { "start": { - "line": 191, + "line": 203, "column": 19 }, "end": { - "line": 191, + "line": 203, "column": 20 } } @@ -48171,15 +51440,15 @@ "updateContext": null }, "value": "+", - "start": 4916, - "end": 4917, + "start": 5092, + "end": 5093, "loc": { "start": { - "line": 191, + "line": 203, "column": 21 }, "end": { - "line": 191, + "line": 203, "column": 22 } } @@ -48197,15 +51466,15 @@ "binop": null }, "value": "A", - "start": 4918, - "end": 4919, + "start": 5094, + "end": 5095, "loc": { "start": { - "line": 191, + "line": 203, "column": 23 }, "end": { - "line": 191, + "line": 203, "column": 24 } } @@ -48223,15 +51492,15 @@ "binop": null, "updateContext": null }, - "start": 4919, - "end": 4920, + "start": 5095, + "end": 5096, "loc": { "start": { - "line": 191, + "line": 203, "column": 24 }, "end": { - "line": 191, + "line": 203, "column": 25 } } @@ -48249,15 +51518,15 @@ "binop": null }, "value": "y", - "start": 4920, - "end": 4921, + "start": 5096, + "end": 5097, "loc": { "start": { - "line": 191, + "line": 203, "column": 25 }, "end": { - "line": 191, + "line": 203, "column": 26 } } @@ -48276,15 +51545,15 @@ "updateContext": null }, "value": "*", - "start": 4922, - "end": 4923, + "start": 5098, + "end": 5099, "loc": { "start": { - "line": 191, + "line": 203, "column": 27 }, "end": { - "line": 191, + "line": 203, "column": 28 } } @@ -48302,15 +51571,15 @@ "binop": null }, "value": "B", - "start": 4924, - "end": 4925, + "start": 5100, + "end": 5101, "loc": { "start": { - "line": 191, + "line": 203, "column": 29 }, "end": { - "line": 191, + "line": 203, "column": 30 } } @@ -48328,15 +51597,15 @@ "binop": null, "updateContext": null }, - "start": 4925, - "end": 4926, + "start": 5101, + "end": 5102, "loc": { "start": { - "line": 191, + "line": 203, "column": 30 }, "end": { - "line": 191, + "line": 203, "column": 31 } } @@ -48354,15 +51623,15 @@ "binop": null }, "value": "y", - "start": 4926, - "end": 4927, + "start": 5102, + "end": 5103, "loc": { "start": { - "line": 191, + "line": 203, "column": 31 }, "end": { - "line": 191, + "line": 203, "column": 32 } } @@ -48380,15 +51649,15 @@ "binop": null, "updateContext": null }, - "start": 4927, - "end": 4928, + "start": 5103, + "end": 5104, "loc": { "start": { - "line": 191, + "line": 203, "column": 32 }, "end": { - "line": 191, + "line": 203, "column": 33 } } @@ -48405,15 +51674,15 @@ "postfix": false, "binop": null }, - "start": 4929, - "end": 4930, + "start": 5105, + "end": 5106, "loc": { "start": { - "line": 192, + "line": 204, "column": 0 }, "end": { - "line": 192, + "line": 204, "column": 1 } } @@ -48432,15 +51701,15 @@ "binop": null }, "value": "function", - "start": 4932, - "end": 4940, + "start": 5108, + "end": 5116, "loc": { "start": { - "line": 194, + "line": 206, "column": 0 }, "end": { - "line": 194, + "line": 206, "column": 8 } } @@ -48458,15 +51727,15 @@ "binop": null }, "value": "normalize", - "start": 4941, - "end": 4950, + "start": 5117, + "end": 5126, "loc": { "start": { - "line": 194, + "line": 206, "column": 9 }, "end": { - "line": 194, + "line": 206, "column": 18 } } @@ -48483,15 +51752,15 @@ "postfix": false, "binop": null }, - "start": 4950, - "end": 4951, + "start": 5126, + "end": 5127, "loc": { "start": { - "line": 194, + "line": 206, "column": 18 }, "end": { - "line": 194, + "line": 206, "column": 19 } } @@ -48509,15 +51778,15 @@ "binop": null }, "value": "x", - "start": 4951, - "end": 4952, + "start": 5127, + "end": 5128, "loc": { "start": { - "line": 194, + "line": 206, "column": 19 }, "end": { - "line": 194, + "line": 206, "column": 20 } } @@ -48535,15 +51804,15 @@ "binop": null, "updateContext": null }, - "start": 4952, - "end": 4953, + "start": 5128, + "end": 5129, "loc": { "start": { - "line": 194, + "line": 206, "column": 20 }, "end": { - "line": 194, + "line": 206, "column": 21 } } @@ -48561,15 +51830,15 @@ "binop": null }, "value": "y", - "start": 4953, - "end": 4954, + "start": 5129, + "end": 5130, "loc": { "start": { - "line": 194, + "line": 206, "column": 21 }, "end": { - "line": 194, + "line": 206, "column": 22 } } @@ -48586,15 +51855,15 @@ "postfix": false, "binop": null }, - "start": 4954, - "end": 4955, + "start": 5130, + "end": 5131, "loc": { "start": { - "line": 194, + "line": 206, "column": 22 }, "end": { - "line": 194, + "line": 206, "column": 23 } } @@ -48611,15 +51880,15 @@ "postfix": false, "binop": null }, - "start": 4956, - "end": 4957, + "start": 5132, + "end": 5133, "loc": { "start": { - "line": 195, + "line": 207, "column": 0 }, "end": { - "line": 195, + "line": 207, "column": 1 } } @@ -48639,15 +51908,15 @@ "updateContext": null }, "value": "let", - "start": 4962, - "end": 4965, + "start": 5138, + "end": 5141, "loc": { "start": { - "line": 196, + "line": 208, "column": 4 }, "end": { - "line": 196, + "line": 208, "column": 7 } } @@ -48665,15 +51934,15 @@ "binop": null }, "value": "length", - "start": 4966, - "end": 4972, + "start": 5142, + "end": 5148, "loc": { "start": { - "line": 196, + "line": 208, "column": 8 }, "end": { - "line": 196, + "line": 208, "column": 14 } } @@ -48692,15 +51961,15 @@ "updateContext": null }, "value": "=", - "start": 4973, - "end": 4974, + "start": 5149, + "end": 5150, "loc": { "start": { - "line": 196, + "line": 208, "column": 15 }, "end": { - "line": 196, + "line": 208, "column": 16 } } @@ -48718,15 +51987,15 @@ "binop": null }, "value": "Math", - "start": 4975, - "end": 4979, + "start": 5151, + "end": 5155, "loc": { "start": { - "line": 196, + "line": 208, "column": 17 }, "end": { - "line": 196, + "line": 208, "column": 21 } } @@ -48744,15 +52013,15 @@ "binop": null, "updateContext": null }, - "start": 4979, - "end": 4980, + "start": 5155, + "end": 5156, "loc": { "start": { - "line": 196, + "line": 208, "column": 21 }, "end": { - "line": 196, + "line": 208, "column": 22 } } @@ -48770,15 +52039,15 @@ "binop": null }, "value": "sqrt", - "start": 4980, - "end": 4984, + "start": 5156, + "end": 5160, "loc": { "start": { - "line": 196, + "line": 208, "column": 22 }, "end": { - "line": 196, + "line": 208, "column": 26 } } @@ -48795,15 +52064,15 @@ "postfix": false, "binop": null }, - "start": 4984, - "end": 4985, + "start": 5160, + "end": 5161, "loc": { "start": { - "line": 196, + "line": 208, "column": 26 }, "end": { - "line": 196, + "line": 208, "column": 27 } } @@ -48821,15 +52090,15 @@ "binop": null }, "value": "x", - "start": 4985, - "end": 4986, + "start": 5161, + "end": 5162, "loc": { "start": { - "line": 196, + "line": 208, "column": 27 }, "end": { - "line": 196, + "line": 208, "column": 28 } } @@ -48848,15 +52117,15 @@ "updateContext": null }, "value": "*", - "start": 4987, - "end": 4988, + "start": 5163, + "end": 5164, "loc": { "start": { - "line": 196, + "line": 208, "column": 29 }, "end": { - "line": 196, + "line": 208, "column": 30 } } @@ -48874,15 +52143,15 @@ "binop": null }, "value": "x", - "start": 4989, - "end": 4990, + "start": 5165, + "end": 5166, "loc": { "start": { - "line": 196, + "line": 208, "column": 31 }, "end": { - "line": 196, + "line": 208, "column": 32 } } @@ -48901,15 +52170,15 @@ "updateContext": null }, "value": "+", - "start": 4991, - "end": 4992, + "start": 5167, + "end": 5168, "loc": { "start": { - "line": 196, + "line": 208, "column": 33 }, "end": { - "line": 196, + "line": 208, "column": 34 } } @@ -48927,15 +52196,15 @@ "binop": null }, "value": "y", - "start": 4993, - "end": 4994, + "start": 5169, + "end": 5170, "loc": { "start": { - "line": 196, + "line": 208, "column": 35 }, "end": { - "line": 196, + "line": 208, "column": 36 } } @@ -48954,15 +52223,15 @@ "updateContext": null }, "value": "*", - "start": 4995, - "end": 4996, + "start": 5171, + "end": 5172, "loc": { "start": { - "line": 196, + "line": 208, "column": 37 }, "end": { - "line": 196, + "line": 208, "column": 38 } } @@ -48980,15 +52249,15 @@ "binop": null }, "value": "y", - "start": 4997, - "end": 4998, + "start": 5173, + "end": 5174, "loc": { "start": { - "line": 196, + "line": 208, "column": 39 }, "end": { - "line": 196, + "line": 208, "column": 40 } } @@ -49005,15 +52274,15 @@ "postfix": false, "binop": null }, - "start": 4998, - "end": 4999, + "start": 5174, + "end": 5175, "loc": { "start": { - "line": 196, + "line": 208, "column": 40 }, "end": { - "line": 196, + "line": 208, "column": 41 } } @@ -49033,15 +52302,15 @@ "updateContext": null }, "value": "return", - "start": 5004, - "end": 5010, + "start": 5180, + "end": 5186, "loc": { "start": { - "line": 197, + "line": 209, "column": 4 }, "end": { - "line": 197, + "line": 209, "column": 10 } } @@ -49058,15 +52327,15 @@ "postfix": false, "binop": null }, - "start": 5011, - "end": 5012, + "start": 5187, + "end": 5188, "loc": { "start": { - "line": 197, + "line": 209, "column": 11 }, "end": { - "line": 197, + "line": 209, "column": 12 } } @@ -49084,15 +52353,15 @@ "binop": null }, "value": "x", - "start": 5021, - "end": 5022, + "start": 5197, + "end": 5198, "loc": { "start": { - "line": 198, + "line": 210, "column": 8 }, "end": { - "line": 198, + "line": 210, "column": 9 } } @@ -49110,15 +52379,15 @@ "binop": null, "updateContext": null }, - "start": 5022, - "end": 5023, + "start": 5198, + "end": 5199, "loc": { "start": { - "line": 198, + "line": 210, "column": 9 }, "end": { - "line": 198, + "line": 210, "column": 10 } } @@ -49136,15 +52405,15 @@ "binop": null }, "value": "x", - "start": 5024, - "end": 5025, + "start": 5200, + "end": 5201, "loc": { "start": { - "line": 198, + "line": 210, "column": 11 }, "end": { - "line": 198, + "line": 210, "column": 12 } } @@ -49163,15 +52432,15 @@ "updateContext": null }, "value": "/", - "start": 5026, - "end": 5027, + "start": 5202, + "end": 5203, "loc": { "start": { - "line": 198, + "line": 210, "column": 13 }, "end": { - "line": 198, + "line": 210, "column": 14 } } @@ -49189,15 +52458,15 @@ "binop": null }, "value": "length", - "start": 5028, - "end": 5034, + "start": 5204, + "end": 5210, "loc": { "start": { - "line": 198, + "line": 210, "column": 15 }, "end": { - "line": 198, + "line": 210, "column": 21 } } @@ -49215,15 +52484,15 @@ "binop": null, "updateContext": null }, - "start": 5034, - "end": 5035, + "start": 5210, + "end": 5211, "loc": { "start": { - "line": 198, + "line": 210, "column": 21 }, "end": { - "line": 198, + "line": 210, "column": 22 } } @@ -49241,15 +52510,15 @@ "binop": null }, "value": "y", - "start": 5044, - "end": 5045, + "start": 5220, + "end": 5221, "loc": { "start": { - "line": 199, + "line": 211, "column": 8 }, "end": { - "line": 199, + "line": 211, "column": 9 } } @@ -49267,15 +52536,15 @@ "binop": null, "updateContext": null }, - "start": 5045, - "end": 5046, + "start": 5221, + "end": 5222, "loc": { "start": { - "line": 199, + "line": 211, "column": 9 }, "end": { - "line": 199, + "line": 211, "column": 10 } } @@ -49293,15 +52562,15 @@ "binop": null }, "value": "y", - "start": 5047, - "end": 5048, + "start": 5223, + "end": 5224, "loc": { "start": { - "line": 199, + "line": 211, "column": 11 }, "end": { - "line": 199, + "line": 211, "column": 12 } } @@ -49320,15 +52589,15 @@ "updateContext": null }, "value": "/", - "start": 5049, - "end": 5050, + "start": 5225, + "end": 5226, "loc": { "start": { - "line": 199, + "line": 211, "column": 13 }, "end": { - "line": 199, + "line": 211, "column": 14 } } @@ -49346,15 +52615,15 @@ "binop": null }, "value": "length", - "start": 5051, - "end": 5057, + "start": 5227, + "end": 5233, "loc": { "start": { - "line": 199, + "line": 211, "column": 15 }, "end": { - "line": 199, + "line": 211, "column": 21 } } @@ -49371,15 +52640,15 @@ "postfix": false, "binop": null }, - "start": 5062, - "end": 5063, + "start": 5238, + "end": 5239, "loc": { "start": { - "line": 200, + "line": 212, "column": 4 }, "end": { - "line": 200, + "line": 212, "column": 5 } } @@ -49396,15 +52665,15 @@ "postfix": false, "binop": null }, - "start": 5064, - "end": 5065, + "start": 5240, + "end": 5241, "loc": { "start": { - "line": 201, + "line": 213, "column": 0 }, "end": { - "line": 201, + "line": 213, "column": 1 } } @@ -49423,15 +52692,15 @@ "binop": null }, "value": "function", - "start": 5067, - "end": 5075, + "start": 5243, + "end": 5251, "loc": { "start": { - "line": 203, + "line": 215, "column": 0 }, "end": { - "line": 203, + "line": 215, "column": 8 } } @@ -49449,15 +52718,15 @@ "binop": null }, "value": "transformRect", - "start": 5076, - "end": 5089, + "start": 5252, + "end": 5265, "loc": { "start": { - "line": 203, + "line": 215, "column": 9 }, "end": { - "line": 203, + "line": 215, "column": 22 } } @@ -49474,15 +52743,15 @@ "postfix": false, "binop": null }, - "start": 5089, - "end": 5090, + "start": 5265, + "end": 5266, "loc": { "start": { - "line": 203, + "line": 215, "column": 22 }, "end": { - "line": 203, + "line": 215, "column": 23 } } @@ -49500,15 +52769,15 @@ "binop": null }, "value": "center", - "start": 5090, - "end": 5096, + "start": 5266, + "end": 5272, "loc": { "start": { - "line": 203, + "line": 215, "column": 23 }, "end": { - "line": 203, + "line": 215, "column": 29 } } @@ -49526,15 +52795,15 @@ "binop": null, "updateContext": null }, - "start": 5096, - "end": 5097, + "start": 5272, + "end": 5273, "loc": { "start": { - "line": 203, + "line": 215, "column": 29 }, "end": { - "line": 203, + "line": 215, "column": 30 } } @@ -49552,15 +52821,15 @@ "binop": null }, "value": "transform", - "start": 5098, - "end": 5107, + "start": 5274, + "end": 5283, "loc": { "start": { - "line": 203, + "line": 215, "column": 31 }, "end": { - "line": 203, + "line": 215, "column": 40 } } @@ -49578,15 +52847,15 @@ "binop": null, "updateContext": null }, - "start": 5107, - "end": 5108, + "start": 5283, + "end": 5284, "loc": { "start": { - "line": 203, + "line": 215, "column": 40 }, "end": { - "line": 203, + "line": 215, "column": 41 } } @@ -49604,15 +52873,15 @@ "binop": null }, "value": "rect", - "start": 5109, - "end": 5113, + "start": 5285, + "end": 5289, "loc": { "start": { - "line": 203, + "line": 215, "column": 42 }, "end": { - "line": 203, + "line": 215, "column": 46 } } @@ -49629,15 +52898,15 @@ "postfix": false, "binop": null }, - "start": 5113, - "end": 5114, + "start": 5289, + "end": 5290, "loc": { "start": { - "line": 203, + "line": 215, "column": 46 }, "end": { - "line": 203, + "line": 215, "column": 47 } } @@ -49654,15 +52923,15 @@ "postfix": false, "binop": null }, - "start": 5115, - "end": 5116, + "start": 5291, + "end": 5292, "loc": { "start": { - "line": 204, + "line": 216, "column": 0 }, "end": { - "line": 204, + "line": 216, "column": 1 } } @@ -49682,15 +52951,15 @@ "updateContext": null }, "value": "if", - "start": 5121, - "end": 5123, + "start": 5297, + "end": 5299, "loc": { "start": { - "line": 205, + "line": 217, "column": 4 }, "end": { - "line": 205, + "line": 217, "column": 6 } } @@ -49707,15 +52976,15 @@ "postfix": false, "binop": null }, - "start": 5124, - "end": 5125, + "start": 5300, + "end": 5301, "loc": { "start": { - "line": 205, + "line": 217, "column": 7 }, "end": { - "line": 205, + "line": 217, "column": 8 } } @@ -49733,15 +53002,15 @@ "binop": null }, "value": "transform", - "start": 5125, - "end": 5134, + "start": 5301, + "end": 5310, "loc": { "start": { - "line": 205, + "line": 217, "column": 8 }, "end": { - "line": 205, + "line": 217, "column": 17 } } @@ -49759,15 +53028,15 @@ "binop": null, "updateContext": null }, - "start": 5134, - "end": 5135, + "start": 5310, + "end": 5311, "loc": { "start": { - "line": 205, + "line": 217, "column": 17 }, "end": { - "line": 205, + "line": 217, "column": 18 } } @@ -49785,15 +53054,15 @@ "binop": null }, "value": "x", - "start": 5135, - "end": 5136, + "start": 5311, + "end": 5312, "loc": { "start": { - "line": 205, + "line": 217, "column": 18 }, "end": { - "line": 205, + "line": 217, "column": 19 } } @@ -49812,15 +53081,15 @@ "updateContext": null }, "value": "<", - "start": 5137, - "end": 5138, + "start": 5313, + "end": 5314, "loc": { "start": { - "line": 205, + "line": 217, "column": 20 }, "end": { - "line": 205, + "line": 217, "column": 21 } } @@ -49838,15 +53107,15 @@ "binop": null }, "value": "rect", - "start": 5139, - "end": 5143, + "start": 5315, + "end": 5319, "loc": { "start": { - "line": 205, + "line": 217, "column": 22 }, "end": { - "line": 205, + "line": 217, "column": 26 } } @@ -49864,15 +53133,15 @@ "binop": null, "updateContext": null }, - "start": 5143, - "end": 5144, + "start": 5319, + "end": 5320, "loc": { "start": { - "line": 205, + "line": 217, "column": 26 }, "end": { - "line": 205, + "line": 217, "column": 27 } } @@ -49890,15 +53159,15 @@ "binop": null }, "value": "left", - "start": 5144, - "end": 5148, + "start": 5320, + "end": 5324, "loc": { "start": { - "line": 205, + "line": 217, "column": 27 }, "end": { - "line": 205, + "line": 217, "column": 31 } } @@ -49917,15 +53186,15 @@ "updateContext": null }, "value": "+", - "start": 5149, - "end": 5150, + "start": 5325, + "end": 5326, "loc": { "start": { - "line": 205, + "line": 217, "column": 32 }, "end": { - "line": 205, + "line": 217, "column": 33 } } @@ -49943,15 +53212,15 @@ "binop": null }, "value": "rect", - "start": 5151, - "end": 5155, + "start": 5327, + "end": 5331, "loc": { "start": { - "line": 205, + "line": 217, "column": 34 }, "end": { - "line": 205, + "line": 217, "column": 38 } } @@ -49969,15 +53238,15 @@ "binop": null, "updateContext": null }, - "start": 5155, - "end": 5156, + "start": 5331, + "end": 5332, "loc": { "start": { - "line": 205, + "line": 217, "column": 38 }, "end": { - "line": 205, + "line": 217, "column": 39 } } @@ -49995,15 +53264,15 @@ "binop": null }, "value": "width", - "start": 5156, - "end": 5161, + "start": 5332, + "end": 5337, "loc": { "start": { - "line": 205, + "line": 217, "column": 39 }, "end": { - "line": 205, + "line": 217, "column": 44 } } @@ -50022,15 +53291,15 @@ "updateContext": null }, "value": "&&", - "start": 5162, - "end": 5164, + "start": 5338, + "end": 5340, "loc": { "start": { - "line": 205, + "line": 217, "column": 45 }, "end": { - "line": 205, + "line": 217, "column": 47 } } @@ -50048,15 +53317,15 @@ "binop": null }, "value": "transform", - "start": 5165, - "end": 5174, + "start": 5341, + "end": 5350, "loc": { "start": { - "line": 205, + "line": 217, "column": 48 }, "end": { - "line": 205, + "line": 217, "column": 57 } } @@ -50074,15 +53343,15 @@ "binop": null, "updateContext": null }, - "start": 5174, - "end": 5175, + "start": 5350, + "end": 5351, "loc": { "start": { - "line": 205, + "line": 217, "column": 57 }, "end": { - "line": 205, + "line": 217, "column": 58 } } @@ -50100,15 +53369,15 @@ "binop": null }, "value": "y", - "start": 5175, - "end": 5176, + "start": 5351, + "end": 5352, "loc": { "start": { - "line": 205, + "line": 217, "column": 58 }, "end": { - "line": 205, + "line": 217, "column": 59 } } @@ -50127,15 +53396,15 @@ "updateContext": null }, "value": "<", - "start": 5177, - "end": 5178, + "start": 5353, + "end": 5354, "loc": { "start": { - "line": 205, + "line": 217, "column": 60 }, "end": { - "line": 205, + "line": 217, "column": 61 } } @@ -50153,15 +53422,15 @@ "binop": null }, "value": "rect", - "start": 5179, - "end": 5183, + "start": 5355, + "end": 5359, "loc": { "start": { - "line": 205, + "line": 217, "column": 62 }, "end": { - "line": 205, + "line": 217, "column": 66 } } @@ -50179,15 +53448,15 @@ "binop": null, "updateContext": null }, - "start": 5183, - "end": 5184, + "start": 5359, + "end": 5360, "loc": { "start": { - "line": 205, + "line": 217, "column": 66 }, "end": { - "line": 205, + "line": 217, "column": 67 } } @@ -50205,15 +53474,15 @@ "binop": null }, "value": "top", - "start": 5184, - "end": 5187, + "start": 5360, + "end": 5363, "loc": { "start": { - "line": 205, + "line": 217, "column": 67 }, "end": { - "line": 205, + "line": 217, "column": 70 } } @@ -50232,15 +53501,15 @@ "updateContext": null }, "value": "+", - "start": 5188, - "end": 5189, + "start": 5364, + "end": 5365, "loc": { "start": { - "line": 205, + "line": 217, "column": 71 }, "end": { - "line": 205, + "line": 217, "column": 72 } } @@ -50258,15 +53527,15 @@ "binop": null }, "value": "rect", - "start": 5190, - "end": 5194, + "start": 5366, + "end": 5370, "loc": { "start": { - "line": 205, + "line": 217, "column": 73 }, "end": { - "line": 205, + "line": 217, "column": 77 } } @@ -50284,15 +53553,15 @@ "binop": null, "updateContext": null }, - "start": 5194, - "end": 5195, + "start": 5370, + "end": 5371, "loc": { "start": { - "line": 205, + "line": 217, "column": 77 }, "end": { - "line": 205, + "line": 217, "column": 78 } } @@ -50310,15 +53579,15 @@ "binop": null }, "value": "height", - "start": 5195, - "end": 5201, + "start": 5371, + "end": 5377, "loc": { "start": { - "line": 205, + "line": 217, "column": 78 }, "end": { - "line": 205, + "line": 217, "column": 84 } } @@ -50337,15 +53606,15 @@ "updateContext": null }, "value": "&&", - "start": 5202, - "end": 5204, + "start": 5378, + "end": 5380, "loc": { "start": { - "line": 205, + "line": 217, "column": 85 }, "end": { - "line": 205, + "line": 217, "column": 87 } } @@ -50363,15 +53632,15 @@ "binop": null }, "value": "transform", - "start": 5213, - "end": 5222, + "start": 5389, + "end": 5398, "loc": { "start": { - "line": 206, + "line": 218, "column": 8 }, "end": { - "line": 206, + "line": 218, "column": 17 } } @@ -50389,15 +53658,15 @@ "binop": null, "updateContext": null }, - "start": 5222, - "end": 5223, + "start": 5398, + "end": 5399, "loc": { "start": { - "line": 206, + "line": 218, "column": 17 }, "end": { - "line": 206, + "line": 218, "column": 18 } } @@ -50415,15 +53684,15 @@ "binop": null }, "value": "x", - "start": 5223, - "end": 5224, + "start": 5399, + "end": 5400, "loc": { "start": { - "line": 206, + "line": 218, "column": 18 }, "end": { - "line": 206, + "line": 218, "column": 19 } } @@ -50442,15 +53711,15 @@ "updateContext": null }, "value": ">", - "start": 5225, - "end": 5226, + "start": 5401, + "end": 5402, "loc": { "start": { - "line": 206, + "line": 218, "column": 20 }, "end": { - "line": 206, + "line": 218, "column": 21 } } @@ -50468,15 +53737,15 @@ "binop": null }, "value": "rect", - "start": 5227, - "end": 5231, + "start": 5403, + "end": 5407, "loc": { "start": { - "line": 206, + "line": 218, "column": 22 }, "end": { - "line": 206, + "line": 218, "column": 26 } } @@ -50494,15 +53763,15 @@ "binop": null, "updateContext": null }, - "start": 5231, - "end": 5232, + "start": 5407, + "end": 5408, "loc": { "start": { - "line": 206, + "line": 218, "column": 26 }, "end": { - "line": 206, + "line": 218, "column": 27 } } @@ -50520,15 +53789,15 @@ "binop": null }, "value": "left", - "start": 5232, - "end": 5236, + "start": 5408, + "end": 5412, "loc": { "start": { - "line": 206, + "line": 218, "column": 27 }, "end": { - "line": 206, + "line": 218, "column": 31 } } @@ -50547,15 +53816,15 @@ "updateContext": null }, "value": "&&", - "start": 5237, - "end": 5239, + "start": 5413, + "end": 5415, "loc": { "start": { - "line": 206, + "line": 218, "column": 32 }, "end": { - "line": 206, + "line": 218, "column": 34 } } @@ -50573,15 +53842,15 @@ "binop": null }, "value": "transform", - "start": 5240, - "end": 5249, + "start": 5416, + "end": 5425, "loc": { "start": { - "line": 206, + "line": 218, "column": 35 }, "end": { - "line": 206, + "line": 218, "column": 44 } } @@ -50599,15 +53868,15 @@ "binop": null, "updateContext": null }, - "start": 5249, - "end": 5250, + "start": 5425, + "end": 5426, "loc": { "start": { - "line": 206, + "line": 218, "column": 44 }, "end": { - "line": 206, + "line": 218, "column": 45 } } @@ -50625,15 +53894,15 @@ "binop": null }, "value": "y", - "start": 5250, - "end": 5251, + "start": 5426, + "end": 5427, "loc": { "start": { - "line": 206, + "line": 218, "column": 45 }, "end": { - "line": 206, + "line": 218, "column": 46 } } @@ -50652,15 +53921,15 @@ "updateContext": null }, "value": ">", - "start": 5252, - "end": 5253, + "start": 5428, + "end": 5429, "loc": { "start": { - "line": 206, + "line": 218, "column": 47 }, "end": { - "line": 206, + "line": 218, "column": 48 } } @@ -50678,15 +53947,15 @@ "binop": null }, "value": "rect", - "start": 5254, - "end": 5258, + "start": 5430, + "end": 5434, "loc": { "start": { - "line": 206, + "line": 218, "column": 49 }, "end": { - "line": 206, + "line": 218, "column": 53 } } @@ -50704,15 +53973,15 @@ "binop": null, "updateContext": null }, - "start": 5258, - "end": 5259, + "start": 5434, + "end": 5435, "loc": { "start": { - "line": 206, + "line": 218, "column": 53 }, "end": { - "line": 206, + "line": 218, "column": 54 } } @@ -50730,15 +53999,15 @@ "binop": null }, "value": "top", - "start": 5259, - "end": 5262, + "start": 5435, + "end": 5438, "loc": { "start": { - "line": 206, + "line": 218, "column": 54 }, "end": { - "line": 206, + "line": 218, "column": 57 } } @@ -50755,15 +54024,15 @@ "postfix": false, "binop": null }, - "start": 5262, - "end": 5263, + "start": 5438, + "end": 5439, "loc": { "start": { - "line": 206, + "line": 218, "column": 57 }, "end": { - "line": 206, + "line": 218, "column": 58 } } @@ -50783,15 +54052,15 @@ "updateContext": null }, "value": "return", - "start": 5264, - "end": 5270, + "start": 5440, + "end": 5446, "loc": { "start": { - "line": 206, + "line": 218, "column": 59 }, "end": { - "line": 206, + "line": 218, "column": 65 } } @@ -50809,15 +54078,15 @@ "binop": null }, "value": "transform", - "start": 5271, - "end": 5280, + "start": 5447, + "end": 5456, "loc": { "start": { - "line": 206, + "line": 218, "column": 66 }, "end": { - "line": 206, + "line": 218, "column": 75 } } @@ -50835,15 +54104,15 @@ "binop": null, "updateContext": null }, - "start": 5280, - "end": 5281, + "start": 5456, + "end": 5457, "loc": { "start": { - "line": 206, + "line": 218, "column": 75 }, "end": { - "line": 206, + "line": 218, "column": 76 } } @@ -50863,15 +54132,15 @@ "updateContext": null }, "value": "let", - "start": 5286, - "end": 5289, + "start": 5462, + "end": 5465, "loc": { "start": { - "line": 207, + "line": 219, "column": 4 }, "end": { - "line": 207, + "line": 219, "column": 7 } } @@ -50889,15 +54158,15 @@ "binop": null }, "value": "Len_X", - "start": 5290, - "end": 5295, + "start": 5466, + "end": 5471, "loc": { "start": { - "line": 207, + "line": 219, "column": 8 }, "end": { - "line": 207, + "line": 219, "column": 13 } } @@ -50916,15 +54185,15 @@ "updateContext": null }, "value": "=", - "start": 5296, - "end": 5297, + "start": 5472, + "end": 5473, "loc": { "start": { - "line": 207, + "line": 219, "column": 14 }, "end": { - "line": 207, + "line": 219, "column": 15 } } @@ -50942,15 +54211,15 @@ "binop": null }, "value": "center", - "start": 5298, - "end": 5304, + "start": 5474, + "end": 5480, "loc": { "start": { - "line": 207, + "line": 219, "column": 16 }, "end": { - "line": 207, + "line": 219, "column": 22 } } @@ -50968,15 +54237,15 @@ "binop": null, "updateContext": null }, - "start": 5304, - "end": 5305, + "start": 5480, + "end": 5481, "loc": { "start": { - "line": 207, + "line": 219, "column": 22 }, "end": { - "line": 207, + "line": 219, "column": 23 } } @@ -50994,15 +54263,15 @@ "binop": null }, "value": "x", - "start": 5305, - "end": 5306, + "start": 5481, + "end": 5482, "loc": { "start": { - "line": 207, + "line": 219, "column": 23 }, "end": { - "line": 207, + "line": 219, "column": 24 } } @@ -51021,15 +54290,15 @@ "updateContext": null }, "value": "-", - "start": 5307, - "end": 5308, + "start": 5483, + "end": 5484, "loc": { "start": { - "line": 207, + "line": 219, "column": 25 }, "end": { - "line": 207, + "line": 219, "column": 26 } } @@ -51047,15 +54316,15 @@ "binop": null }, "value": "transform", - "start": 5309, - "end": 5318, + "start": 5485, + "end": 5494, "loc": { "start": { - "line": 207, + "line": 219, "column": 27 }, "end": { - "line": 207, + "line": 219, "column": 36 } } @@ -51073,15 +54342,15 @@ "binop": null, "updateContext": null }, - "start": 5318, - "end": 5319, + "start": 5494, + "end": 5495, "loc": { "start": { - "line": 207, + "line": 219, "column": 36 }, "end": { - "line": 207, + "line": 219, "column": 37 } } @@ -51099,15 +54368,15 @@ "binop": null }, "value": "x", - "start": 5319, - "end": 5320, + "start": 5495, + "end": 5496, "loc": { "start": { - "line": 207, + "line": 219, "column": 37 }, "end": { - "line": 207, + "line": 219, "column": 38 } } @@ -51125,15 +54394,15 @@ "binop": null, "updateContext": null }, - "start": 5320, - "end": 5321, + "start": 5496, + "end": 5497, "loc": { "start": { - "line": 207, + "line": 219, "column": 38 }, "end": { - "line": 207, + "line": 219, "column": 39 } } @@ -51153,15 +54422,15 @@ "updateContext": null }, "value": "let", - "start": 5326, - "end": 5329, + "start": 5502, + "end": 5505, "loc": { "start": { - "line": 208, + "line": 220, "column": 4 }, "end": { - "line": 208, + "line": 220, "column": 7 } } @@ -51179,15 +54448,15 @@ "binop": null }, "value": "Len_Y", - "start": 5330, - "end": 5335, + "start": 5506, + "end": 5511, "loc": { "start": { - "line": 208, + "line": 220, "column": 8 }, "end": { - "line": 208, + "line": 220, "column": 13 } } @@ -51206,15 +54475,15 @@ "updateContext": null }, "value": "=", - "start": 5336, - "end": 5337, + "start": 5512, + "end": 5513, "loc": { "start": { - "line": 208, + "line": 220, "column": 14 }, "end": { - "line": 208, + "line": 220, "column": 15 } } @@ -51232,15 +54501,15 @@ "binop": null }, "value": "center", - "start": 5338, - "end": 5344, + "start": 5514, + "end": 5520, "loc": { "start": { - "line": 208, + "line": 220, "column": 16 }, "end": { - "line": 208, + "line": 220, "column": 22 } } @@ -51258,15 +54527,15 @@ "binop": null, "updateContext": null }, - "start": 5344, - "end": 5345, + "start": 5520, + "end": 5521, "loc": { "start": { - "line": 208, + "line": 220, "column": 22 }, "end": { - "line": 208, + "line": 220, "column": 23 } } @@ -51284,15 +54553,15 @@ "binop": null }, "value": "y", - "start": 5345, - "end": 5346, + "start": 5521, + "end": 5522, "loc": { "start": { - "line": 208, + "line": 220, "column": 23 }, "end": { - "line": 208, + "line": 220, "column": 24 } } @@ -51311,15 +54580,15 @@ "updateContext": null }, "value": "-", - "start": 5347, - "end": 5348, + "start": 5523, + "end": 5524, "loc": { "start": { - "line": 208, + "line": 220, "column": 25 }, "end": { - "line": 208, + "line": 220, "column": 26 } } @@ -51337,15 +54606,15 @@ "binop": null }, "value": "transform", - "start": 5349, - "end": 5358, + "start": 5525, + "end": 5534, "loc": { "start": { - "line": 208, + "line": 220, "column": 27 }, "end": { - "line": 208, + "line": 220, "column": 36 } } @@ -51363,15 +54632,15 @@ "binop": null, "updateContext": null }, - "start": 5358, - "end": 5359, + "start": 5534, + "end": 5535, "loc": { "start": { - "line": 208, + "line": 220, "column": 36 }, "end": { - "line": 208, + "line": 220, "column": 37 } } @@ -51389,15 +54658,15 @@ "binop": null }, "value": "y", - "start": 5359, - "end": 5360, + "start": 5535, + "end": 5536, "loc": { "start": { - "line": 208, + "line": 220, "column": 37 }, "end": { - "line": 208, + "line": 220, "column": 38 } } @@ -51415,15 +54684,15 @@ "binop": null, "updateContext": null }, - "start": 5360, - "end": 5361, + "start": 5536, + "end": 5537, "loc": { "start": { - "line": 208, + "line": 220, "column": 38 }, "end": { - "line": 208, + "line": 220, "column": 39 } } @@ -51442,15 +54711,15 @@ "binop": null }, "value": "function", - "start": 5367, - "end": 5375, + "start": 5543, + "end": 5551, "loc": { "start": { - "line": 210, + "line": 222, "column": 4 }, "end": { - "line": 210, + "line": 222, "column": 12 } } @@ -51468,15 +54737,15 @@ "binop": null }, "value": "angle", - "start": 5376, - "end": 5381, + "start": 5552, + "end": 5557, "loc": { "start": { - "line": 210, + "line": 222, "column": 13 }, "end": { - "line": 210, + "line": 222, "column": 18 } } @@ -51493,15 +54762,15 @@ "postfix": false, "binop": null }, - "start": 5381, - "end": 5382, + "start": 5557, + "end": 5558, "loc": { "start": { - "line": 210, + "line": 222, "column": 18 }, "end": { - "line": 210, + "line": 222, "column": 19 } } @@ -51519,15 +54788,15 @@ "binop": null }, "value": "Len_X", - "start": 5382, - "end": 5387, + "start": 5558, + "end": 5563, "loc": { "start": { - "line": 210, + "line": 222, "column": 19 }, "end": { - "line": 210, + "line": 222, "column": 24 } } @@ -51545,15 +54814,15 @@ "binop": null, "updateContext": null }, - "start": 5387, - "end": 5388, + "start": 5563, + "end": 5564, "loc": { "start": { - "line": 210, + "line": 222, "column": 24 }, "end": { - "line": 210, + "line": 222, "column": 25 } } @@ -51571,15 +54840,15 @@ "binop": null }, "value": "Len_Y", - "start": 5389, - "end": 5394, + "start": 5565, + "end": 5570, "loc": { "start": { - "line": 210, + "line": 222, "column": 26 }, "end": { - "line": 210, + "line": 222, "column": 31 } } @@ -51596,15 +54865,15 @@ "postfix": false, "binop": null }, - "start": 5394, - "end": 5395, + "start": 5570, + "end": 5571, "loc": { "start": { - "line": 210, + "line": 222, "column": 31 }, "end": { - "line": 210, + "line": 222, "column": 32 } } @@ -51621,15 +54890,15 @@ "postfix": false, "binop": null }, - "start": 5400, - "end": 5401, + "start": 5576, + "end": 5577, "loc": { "start": { - "line": 211, + "line": 223, "column": 4 }, "end": { - "line": 211, + "line": 223, "column": 5 } } @@ -51649,15 +54918,15 @@ "updateContext": null }, "value": "return", - "start": 5410, - "end": 5416, + "start": 5586, + "end": 5592, "loc": { "start": { - "line": 212, + "line": 224, "column": 8 }, "end": { - "line": 212, + "line": 224, "column": 14 } } @@ -51675,15 +54944,15 @@ "binop": null }, "value": "Math", - "start": 5417, - "end": 5421, + "start": 5593, + "end": 5597, "loc": { "start": { - "line": 212, + "line": 224, "column": 15 }, "end": { - "line": 212, + "line": 224, "column": 19 } } @@ -51701,15 +54970,15 @@ "binop": null, "updateContext": null }, - "start": 5421, - "end": 5422, + "start": 5597, + "end": 5598, "loc": { "start": { - "line": 212, + "line": 224, "column": 19 }, "end": { - "line": 212, + "line": 224, "column": 20 } } @@ -51727,15 +54996,15 @@ "binop": null }, "value": "acos", - "start": 5422, - "end": 5426, + "start": 5598, + "end": 5602, "loc": { "start": { - "line": 212, + "line": 224, "column": 20 }, "end": { - "line": 212, + "line": 224, "column": 24 } } @@ -51752,15 +55021,15 @@ "postfix": false, "binop": null }, - "start": 5426, - "end": 5427, + "start": 5602, + "end": 5603, "loc": { "start": { - "line": 212, + "line": 224, "column": 24 }, "end": { - "line": 212, + "line": 224, "column": 25 } } @@ -51778,15 +55047,15 @@ "binop": null }, "value": "dot", - "start": 5427, - "end": 5430, + "start": 5603, + "end": 5606, "loc": { "start": { - "line": 212, + "line": 224, "column": 25 }, "end": { - "line": 212, + "line": 224, "column": 28 } } @@ -51803,15 +55072,15 @@ "postfix": false, "binop": null }, - "start": 5430, - "end": 5431, + "start": 5606, + "end": 5607, "loc": { "start": { - "line": 212, + "line": 224, "column": 28 }, "end": { - "line": 212, + "line": 224, "column": 29 } } @@ -51828,15 +55097,15 @@ "postfix": false, "binop": null }, - "start": 5431, - "end": 5432, + "start": 5607, + "end": 5608, "loc": { "start": { - "line": 212, + "line": 224, "column": 29 }, "end": { - "line": 212, + "line": 224, "column": 30 } } @@ -51854,15 +55123,15 @@ "binop": null }, "value": "x", - "start": 5445, - "end": 5446, + "start": 5621, + "end": 5622, "loc": { "start": { - "line": 213, + "line": 225, "column": 12 }, "end": { - "line": 213, + "line": 225, "column": 13 } } @@ -51880,15 +55149,15 @@ "binop": null, "updateContext": null }, - "start": 5446, - "end": 5447, + "start": 5622, + "end": 5623, "loc": { "start": { - "line": 213, + "line": 225, "column": 13 }, "end": { - "line": 213, + "line": 225, "column": 14 } } @@ -51907,15 +55176,15 @@ "updateContext": null }, "value": 0, - "start": 5448, - "end": 5449, + "start": 5624, + "end": 5625, "loc": { "start": { - "line": 213, + "line": 225, "column": 15 }, "end": { - "line": 213, + "line": 225, "column": 16 } } @@ -51933,15 +55202,15 @@ "binop": null, "updateContext": null }, - "start": 5449, - "end": 5450, + "start": 5625, + "end": 5626, "loc": { "start": { - "line": 213, + "line": 225, "column": 16 }, "end": { - "line": 213, + "line": 225, "column": 17 } } @@ -51959,15 +55228,15 @@ "binop": null }, "value": "y", - "start": 5463, - "end": 5464, + "start": 5639, + "end": 5640, "loc": { "start": { - "line": 214, + "line": 226, "column": 12 }, "end": { - "line": 214, + "line": 226, "column": 13 } } @@ -51985,15 +55254,15 @@ "binop": null, "updateContext": null }, - "start": 5464, - "end": 5465, + "start": 5640, + "end": 5641, "loc": { "start": { - "line": 214, + "line": 226, "column": 13 }, "end": { - "line": 214, + "line": 226, "column": 14 } } @@ -52012,15 +55281,15 @@ "updateContext": null }, "value": 1, - "start": 5466, - "end": 5467, + "start": 5642, + "end": 5643, "loc": { "start": { - "line": 214, + "line": 226, "column": 15 }, "end": { - "line": 214, + "line": 226, "column": 16 } } @@ -52037,15 +55306,15 @@ "postfix": false, "binop": null }, - "start": 5476, - "end": 5477, + "start": 5652, + "end": 5653, "loc": { "start": { - "line": 215, + "line": 227, "column": 8 }, "end": { - "line": 215, + "line": 227, "column": 9 } } @@ -52063,15 +55332,15 @@ "binop": null, "updateContext": null }, - "start": 5477, - "end": 5478, + "start": 5653, + "end": 5654, "loc": { "start": { - "line": 215, + "line": 227, "column": 9 }, "end": { - "line": 215, + "line": 227, "column": 10 } } @@ -52089,15 +55358,15 @@ "binop": null }, "value": "normalize", - "start": 5479, - "end": 5488, + "start": 5655, + "end": 5664, "loc": { "start": { - "line": 215, + "line": 227, "column": 11 }, "end": { - "line": 215, + "line": 227, "column": 20 } } @@ -52114,15 +55383,15 @@ "postfix": false, "binop": null }, - "start": 5488, - "end": 5489, + "start": 5664, + "end": 5665, "loc": { "start": { - "line": 215, + "line": 227, "column": 20 }, "end": { - "line": 215, + "line": 227, "column": 21 } } @@ -52140,15 +55409,15 @@ "binop": null }, "value": "Len_X", - "start": 5489, - "end": 5494, + "start": 5665, + "end": 5670, "loc": { "start": { - "line": 215, + "line": 227, "column": 21 }, "end": { - "line": 215, + "line": 227, "column": 26 } } @@ -52166,15 +55435,15 @@ "binop": null, "updateContext": null }, - "start": 5494, - "end": 5495, + "start": 5670, + "end": 5671, "loc": { "start": { - "line": 215, + "line": 227, "column": 26 }, "end": { - "line": 215, + "line": 227, "column": 27 } } @@ -52192,15 +55461,15 @@ "binop": null }, "value": "Len_Y", - "start": 5496, - "end": 5501, + "start": 5672, + "end": 5677, "loc": { "start": { - "line": 215, + "line": 227, "column": 28 }, "end": { - "line": 215, + "line": 227, "column": 33 } } @@ -52217,15 +55486,15 @@ "postfix": false, "binop": null }, - "start": 5501, - "end": 5502, + "start": 5677, + "end": 5678, "loc": { "start": { - "line": 215, + "line": 227, "column": 33 }, "end": { - "line": 215, + "line": 227, "column": 34 } } @@ -52242,15 +55511,15 @@ "postfix": false, "binop": null }, - "start": 5502, - "end": 5503, + "start": 5678, + "end": 5679, "loc": { "start": { - "line": 215, + "line": 227, "column": 34 }, "end": { - "line": 215, + "line": 227, "column": 35 } } @@ -52267,15 +55536,15 @@ "postfix": false, "binop": null }, - "start": 5503, - "end": 5504, + "start": 5679, + "end": 5680, "loc": { "start": { - "line": 215, + "line": 227, "column": 35 }, "end": { - "line": 215, + "line": 227, "column": 36 } } @@ -52294,15 +55563,15 @@ "updateContext": null }, "value": "*", - "start": 5505, - "end": 5506, + "start": 5681, + "end": 5682, "loc": { "start": { - "line": 215, + "line": 227, "column": 37 }, "end": { - "line": 215, + "line": 227, "column": 38 } } @@ -52321,15 +55590,15 @@ "updateContext": null }, "value": 180, - "start": 5507, - "end": 5510, + "start": 5683, + "end": 5686, "loc": { "start": { - "line": 215, + "line": 227, "column": 39 }, "end": { - "line": 215, + "line": 227, "column": 42 } } @@ -52348,15 +55617,15 @@ "updateContext": null }, "value": "/", - "start": 5511, - "end": 5512, + "start": 5687, + "end": 5688, "loc": { "start": { - "line": 215, + "line": 227, "column": 43 }, "end": { - "line": 215, + "line": 227, "column": 44 } } @@ -52374,15 +55643,15 @@ "binop": null }, "value": "Math", - "start": 5513, - "end": 5517, + "start": 5689, + "end": 5693, "loc": { "start": { - "line": 215, + "line": 227, "column": 45 }, "end": { - "line": 215, + "line": 227, "column": 49 } } @@ -52400,15 +55669,15 @@ "binop": null, "updateContext": null }, - "start": 5517, - "end": 5518, + "start": 5693, + "end": 5694, "loc": { "start": { - "line": 215, + "line": 227, "column": 49 }, "end": { - "line": 215, + "line": 227, "column": 50 } } @@ -52426,15 +55695,15 @@ "binop": null }, "value": "PI", - "start": 5518, - "end": 5520, + "start": 5694, + "end": 5696, "loc": { "start": { - "line": 215, + "line": 227, "column": 50 }, "end": { - "line": 215, + "line": 227, "column": 52 } } @@ -52451,15 +55720,15 @@ "postfix": false, "binop": null }, - "start": 5525, - "end": 5526, + "start": 5701, + "end": 5702, "loc": { "start": { - "line": 216, + "line": 228, "column": 4 }, "end": { - "line": 216, + "line": 228, "column": 5 } } @@ -52479,15 +55748,15 @@ "updateContext": null }, "value": "let", - "start": 5532, - "end": 5535, + "start": 5708, + "end": 5711, "loc": { "start": { - "line": 218, + "line": 230, "column": 4 }, "end": { - "line": 218, + "line": 230, "column": 7 } } @@ -52505,15 +55774,15 @@ "binop": null }, "value": "angleTarget", - "start": 5536, - "end": 5547, + "start": 5712, + "end": 5723, "loc": { "start": { - "line": 218, + "line": 230, "column": 8 }, "end": { - "line": 218, + "line": 230, "column": 19 } } @@ -52532,15 +55801,15 @@ "updateContext": null }, "value": "=", - "start": 5548, - "end": 5549, + "start": 5724, + "end": 5725, "loc": { "start": { - "line": 218, + "line": 230, "column": 20 }, "end": { - "line": 218, + "line": 230, "column": 21 } } @@ -52558,15 +55827,15 @@ "binop": null }, "value": "angle", - "start": 5550, - "end": 5555, + "start": 5726, + "end": 5731, "loc": { "start": { - "line": 218, + "line": 230, "column": 22 }, "end": { - "line": 218, + "line": 230, "column": 27 } } @@ -52583,15 +55852,15 @@ "postfix": false, "binop": null }, - "start": 5555, - "end": 5556, + "start": 5731, + "end": 5732, "loc": { "start": { - "line": 218, + "line": 230, "column": 27 }, "end": { - "line": 218, + "line": 230, "column": 28 } } @@ -52609,15 +55878,15 @@ "binop": null }, "value": "Len_X", - "start": 5556, - "end": 5561, + "start": 5732, + "end": 5737, "loc": { "start": { - "line": 218, + "line": 230, "column": 28 }, "end": { - "line": 218, + "line": 230, "column": 33 } } @@ -52635,15 +55904,15 @@ "binop": null, "updateContext": null }, - "start": 5561, - "end": 5562, + "start": 5737, + "end": 5738, "loc": { "start": { - "line": 218, + "line": 230, "column": 33 }, "end": { - "line": 218, + "line": 230, "column": 34 } } @@ -52661,15 +55930,15 @@ "binop": null }, "value": "Len_Y", - "start": 5563, - "end": 5568, + "start": 5739, + "end": 5744, "loc": { "start": { - "line": 218, + "line": 230, "column": 35 }, "end": { - "line": 218, + "line": 230, "column": 40 } } @@ -52686,15 +55955,15 @@ "postfix": false, "binop": null }, - "start": 5568, - "end": 5569, + "start": 5744, + "end": 5745, "loc": { "start": { - "line": 218, + "line": 230, "column": 40 }, "end": { - "line": 218, + "line": 230, "column": 41 } } @@ -52712,15 +55981,15 @@ "binop": null, "updateContext": null }, - "start": 5569, - "end": 5570, + "start": 5745, + "end": 5746, "loc": { "start": { - "line": 218, + "line": 230, "column": 41 }, "end": { - "line": 218, + "line": 230, "column": 42 } } @@ -52740,15 +56009,15 @@ "updateContext": null }, "value": "if", - "start": 5575, - "end": 5577, + "start": 5751, + "end": 5753, "loc": { "start": { - "line": 219, + "line": 231, "column": 4 }, "end": { - "line": 219, + "line": 231, "column": 6 } } @@ -52765,15 +56034,15 @@ "postfix": false, "binop": null }, - "start": 5578, - "end": 5579, + "start": 5754, + "end": 5755, "loc": { "start": { - "line": 219, + "line": 231, "column": 7 }, "end": { - "line": 219, + "line": 231, "column": 8 } } @@ -52791,15 +56060,15 @@ "binop": null }, "value": "transform", - "start": 5579, - "end": 5588, + "start": 5755, + "end": 5764, "loc": { "start": { - "line": 219, + "line": 231, "column": 8 }, "end": { - "line": 219, + "line": 231, "column": 17 } } @@ -52817,15 +56086,15 @@ "binop": null, "updateContext": null }, - "start": 5588, - "end": 5589, + "start": 5764, + "end": 5765, "loc": { "start": { - "line": 219, + "line": 231, "column": 17 }, "end": { - "line": 219, + "line": 231, "column": 18 } } @@ -52843,15 +56112,15 @@ "binop": null }, "value": "x", - "start": 5589, - "end": 5590, + "start": 5765, + "end": 5766, "loc": { "start": { - "line": 219, + "line": 231, "column": 18 }, "end": { - "line": 219, + "line": 231, "column": 19 } } @@ -52870,15 +56139,15 @@ "updateContext": null }, "value": "<", - "start": 5591, - "end": 5592, + "start": 5767, + "end": 5768, "loc": { "start": { - "line": 219, + "line": 231, "column": 20 }, "end": { - "line": 219, + "line": 231, "column": 21 } } @@ -52896,15 +56165,15 @@ "binop": null }, "value": "center", - "start": 5593, - "end": 5599, + "start": 5769, + "end": 5775, "loc": { "start": { - "line": 219, + "line": 231, "column": 22 }, "end": { - "line": 219, + "line": 231, "column": 28 } } @@ -52922,15 +56191,15 @@ "binop": null, "updateContext": null }, - "start": 5599, - "end": 5600, + "start": 5775, + "end": 5776, "loc": { "start": { - "line": 219, + "line": 231, "column": 28 }, "end": { - "line": 219, + "line": 231, "column": 29 } } @@ -52948,15 +56217,15 @@ "binop": null }, "value": "x", - "start": 5600, - "end": 5601, + "start": 5776, + "end": 5777, "loc": { "start": { - "line": 219, + "line": 231, "column": 29 }, "end": { - "line": 219, + "line": 231, "column": 30 } } @@ -52973,15 +56242,15 @@ "postfix": false, "binop": null }, - "start": 5601, - "end": 5602, + "start": 5777, + "end": 5778, "loc": { "start": { - "line": 219, + "line": 231, "column": 30 }, "end": { - "line": 219, + "line": 231, "column": 31 } } @@ -52999,15 +56268,15 @@ "binop": null }, "value": "angleTarget", - "start": 5603, - "end": 5614, + "start": 5779, + "end": 5790, "loc": { "start": { - "line": 219, + "line": 231, "column": 32 }, "end": { - "line": 219, + "line": 231, "column": 43 } } @@ -53026,15 +56295,15 @@ "updateContext": null }, "value": "=", - "start": 5615, - "end": 5616, + "start": 5791, + "end": 5792, "loc": { "start": { - "line": 219, + "line": 231, "column": 44 }, "end": { - "line": 219, + "line": 231, "column": 45 } } @@ -53053,15 +56322,15 @@ "updateContext": null }, "value": 360, - "start": 5617, - "end": 5620, + "start": 5793, + "end": 5796, "loc": { "start": { - "line": 219, + "line": 231, "column": 46 }, "end": { - "line": 219, + "line": 231, "column": 49 } } @@ -53080,15 +56349,15 @@ "updateContext": null }, "value": "-", - "start": 5621, - "end": 5622, + "start": 5797, + "end": 5798, "loc": { "start": { - "line": 219, + "line": 231, "column": 50 }, "end": { - "line": 219, + "line": 231, "column": 51 } } @@ -53106,15 +56375,15 @@ "binop": null }, "value": "angleTarget", - "start": 5623, - "end": 5634, + "start": 5799, + "end": 5810, "loc": { "start": { - "line": 219, + "line": 231, "column": 52 }, "end": { - "line": 219, + "line": 231, "column": 63 } } @@ -53132,15 +56401,15 @@ "binop": null, "updateContext": null }, - "start": 5634, - "end": 5635, + "start": 5810, + "end": 5811, "loc": { "start": { - "line": 219, + "line": 231, "column": 63 }, "end": { - "line": 219, + "line": 231, "column": 64 } } @@ -53160,15 +56429,15 @@ "updateContext": null }, "value": "let", - "start": 5640, - "end": 5643, + "start": 5816, + "end": 5819, "loc": { "start": { - "line": 220, + "line": 232, "column": 4 }, "end": { - "line": 220, + "line": 232, "column": 7 } } @@ -53186,15 +56455,15 @@ "binop": null }, "value": "angleLeftTop", - "start": 5644, - "end": 5656, + "start": 5820, + "end": 5832, "loc": { "start": { - "line": 220, + "line": 232, "column": 8 }, "end": { - "line": 220, + "line": 232, "column": 20 } } @@ -53213,15 +56482,15 @@ "updateContext": null }, "value": "=", - "start": 5657, - "end": 5658, + "start": 5833, + "end": 5834, "loc": { "start": { - "line": 220, + "line": 232, "column": 21 }, "end": { - "line": 220, + "line": 232, "column": 22 } } @@ -53240,15 +56509,15 @@ "updateContext": null }, "value": 360, - "start": 5659, - "end": 5662, + "start": 5835, + "end": 5838, "loc": { "start": { - "line": 220, + "line": 232, "column": 23 }, "end": { - "line": 220, + "line": 232, "column": 26 } } @@ -53267,15 +56536,15 @@ "updateContext": null }, "value": "-", - "start": 5663, - "end": 5664, + "start": 5839, + "end": 5840, "loc": { "start": { - "line": 220, + "line": 232, "column": 27 }, "end": { - "line": 220, + "line": 232, "column": 28 } } @@ -53293,15 +56562,15 @@ "binop": null }, "value": "angle", - "start": 5665, - "end": 5670, + "start": 5841, + "end": 5846, "loc": { "start": { - "line": 220, + "line": 232, "column": 29 }, "end": { - "line": 220, + "line": 232, "column": 34 } } @@ -53318,15 +56587,15 @@ "postfix": false, "binop": null }, - "start": 5670, - "end": 5671, + "start": 5846, + "end": 5847, "loc": { "start": { - "line": 220, + "line": 232, "column": 34 }, "end": { - "line": 220, + "line": 232, "column": 35 } } @@ -53344,15 +56613,15 @@ "binop": null }, "value": "rect", - "start": 5671, - "end": 5675, + "start": 5847, + "end": 5851, "loc": { "start": { - "line": 220, + "line": 232, "column": 35 }, "end": { - "line": 220, + "line": 232, "column": 39 } } @@ -53370,15 +56639,15 @@ "binop": null, "updateContext": null }, - "start": 5675, - "end": 5676, + "start": 5851, + "end": 5852, "loc": { "start": { - "line": 220, + "line": 232, "column": 39 }, "end": { - "line": 220, + "line": 232, "column": 40 } } @@ -53396,15 +56665,15 @@ "binop": null }, "value": "left", - "start": 5676, - "end": 5680, + "start": 5852, + "end": 5856, "loc": { "start": { - "line": 220, + "line": 232, "column": 40 }, "end": { - "line": 220, + "line": 232, "column": 44 } } @@ -53423,15 +56692,15 @@ "updateContext": null }, "value": "-", - "start": 5681, - "end": 5682, + "start": 5857, + "end": 5858, "loc": { "start": { - "line": 220, + "line": 232, "column": 45 }, "end": { - "line": 220, + "line": 232, "column": 46 } } @@ -53449,15 +56718,15 @@ "binop": null }, "value": "center", - "start": 5683, - "end": 5689, + "start": 5859, + "end": 5865, "loc": { "start": { - "line": 220, + "line": 232, "column": 47 }, "end": { - "line": 220, + "line": 232, "column": 53 } } @@ -53475,15 +56744,15 @@ "binop": null, "updateContext": null }, - "start": 5689, - "end": 5690, + "start": 5865, + "end": 5866, "loc": { "start": { - "line": 220, + "line": 232, "column": 53 }, "end": { - "line": 220, + "line": 232, "column": 54 } } @@ -53501,15 +56770,15 @@ "binop": null }, "value": "x", - "start": 5690, - "end": 5691, + "start": 5866, + "end": 5867, "loc": { "start": { - "line": 220, + "line": 232, "column": 54 }, "end": { - "line": 220, + "line": 232, "column": 55 } } @@ -53527,15 +56796,15 @@ "binop": null, "updateContext": null }, - "start": 5691, - "end": 5692, + "start": 5867, + "end": 5868, "loc": { "start": { - "line": 220, + "line": 232, "column": 55 }, "end": { - "line": 220, + "line": 232, "column": 56 } } @@ -53552,15 +56821,15 @@ "postfix": false, "binop": null }, - "start": 5693, - "end": 5694, + "start": 5869, + "end": 5870, "loc": { "start": { - "line": 220, + "line": 232, "column": 57 }, "end": { - "line": 220, + "line": 232, "column": 58 } } @@ -53578,15 +56847,15 @@ "binop": null }, "value": "rect", - "start": 5694, - "end": 5698, + "start": 5870, + "end": 5874, "loc": { "start": { - "line": 220, + "line": 232, "column": 58 }, "end": { - "line": 220, + "line": 232, "column": 62 } } @@ -53604,15 +56873,15 @@ "binop": null, "updateContext": null }, - "start": 5698, - "end": 5699, + "start": 5874, + "end": 5875, "loc": { "start": { - "line": 220, + "line": 232, "column": 62 }, "end": { - "line": 220, + "line": 232, "column": 63 } } @@ -53630,15 +56899,15 @@ "binop": null }, "value": "top", - "start": 5699, - "end": 5702, + "start": 5875, + "end": 5878, "loc": { "start": { - "line": 220, + "line": 232, "column": 63 }, "end": { - "line": 220, + "line": 232, "column": 66 } } @@ -53657,15 +56926,15 @@ "updateContext": null }, "value": "-", - "start": 5703, - "end": 5704, + "start": 5879, + "end": 5880, "loc": { "start": { - "line": 220, + "line": 232, "column": 67 }, "end": { - "line": 220, + "line": 232, "column": 68 } } @@ -53683,15 +56952,15 @@ "binop": null }, "value": "center", - "start": 5705, - "end": 5711, + "start": 5881, + "end": 5887, "loc": { "start": { - "line": 220, + "line": 232, "column": 69 }, "end": { - "line": 220, + "line": 232, "column": 75 } } @@ -53709,15 +56978,15 @@ "binop": null, "updateContext": null }, - "start": 5711, - "end": 5712, + "start": 5887, + "end": 5888, "loc": { "start": { - "line": 220, + "line": 232, "column": 75 }, "end": { - "line": 220, + "line": 232, "column": 76 } } @@ -53735,15 +57004,15 @@ "binop": null }, "value": "y", - "start": 5712, - "end": 5713, + "start": 5888, + "end": 5889, "loc": { "start": { - "line": 220, + "line": 232, "column": 76 }, "end": { - "line": 220, + "line": 232, "column": 77 } } @@ -53760,15 +57029,15 @@ "postfix": false, "binop": null }, - "start": 5713, - "end": 5714, + "start": 5889, + "end": 5890, "loc": { "start": { - "line": 220, + "line": 232, "column": 77 }, "end": { - "line": 220, + "line": 232, "column": 78 } } @@ -53787,15 +57056,15 @@ "updateContext": null }, "value": "*", - "start": 5715, - "end": 5716, + "start": 5891, + "end": 5892, "loc": { "start": { - "line": 220, + "line": 232, "column": 79 }, "end": { - "line": 220, + "line": 232, "column": 80 } } @@ -53814,15 +57083,15 @@ "updateContext": null }, "value": "-", - "start": 5717, - "end": 5718, + "start": 5893, + "end": 5894, "loc": { "start": { - "line": 220, + "line": 232, "column": 81 }, "end": { - "line": 220, + "line": 232, "column": 82 } } @@ -53841,15 +57110,15 @@ "updateContext": null }, "value": 1, - "start": 5718, - "end": 5719, + "start": 5894, + "end": 5895, "loc": { "start": { - "line": 220, + "line": 232, "column": 82 }, "end": { - "line": 220, + "line": 232, "column": 83 } } @@ -53866,15 +57135,15 @@ "postfix": false, "binop": null }, - "start": 5719, - "end": 5720, + "start": 5895, + "end": 5896, "loc": { "start": { - "line": 220, + "line": 232, "column": 83 }, "end": { - "line": 220, + "line": 232, "column": 84 } } @@ -53892,15 +57161,15 @@ "binop": null, "updateContext": null }, - "start": 5720, - "end": 5721, + "start": 5896, + "end": 5897, "loc": { "start": { - "line": 220, + "line": 232, "column": 84 }, "end": { - "line": 220, + "line": 232, "column": 85 } } @@ -53920,15 +57189,15 @@ "updateContext": null }, "value": "let", - "start": 5726, - "end": 5729, + "start": 5902, + "end": 5905, "loc": { "start": { - "line": 221, + "line": 233, "column": 4 }, "end": { - "line": 221, + "line": 233, "column": 7 } } @@ -53946,15 +57215,15 @@ "binop": null }, "value": "angleLeftBottom", - "start": 5730, - "end": 5745, + "start": 5906, + "end": 5921, "loc": { "start": { - "line": 221, + "line": 233, "column": 8 }, "end": { - "line": 221, + "line": 233, "column": 23 } } @@ -53973,15 +57242,15 @@ "updateContext": null }, "value": "=", - "start": 5746, - "end": 5747, + "start": 5922, + "end": 5923, "loc": { "start": { - "line": 221, + "line": 233, "column": 24 }, "end": { - "line": 221, + "line": 233, "column": 25 } } @@ -54000,15 +57269,15 @@ "updateContext": null }, "value": 360, - "start": 5748, - "end": 5751, + "start": 5924, + "end": 5927, "loc": { "start": { - "line": 221, + "line": 233, "column": 26 }, "end": { - "line": 221, + "line": 233, "column": 29 } } @@ -54027,15 +57296,15 @@ "updateContext": null }, "value": "-", - "start": 5752, - "end": 5753, + "start": 5928, + "end": 5929, "loc": { "start": { - "line": 221, + "line": 233, "column": 30 }, "end": { - "line": 221, + "line": 233, "column": 31 } } @@ -54053,15 +57322,15 @@ "binop": null }, "value": "angle", - "start": 5754, - "end": 5759, + "start": 5930, + "end": 5935, "loc": { "start": { - "line": 221, + "line": 233, "column": 32 }, "end": { - "line": 221, + "line": 233, "column": 37 } } @@ -54078,15 +57347,15 @@ "postfix": false, "binop": null }, - "start": 5759, - "end": 5760, + "start": 5935, + "end": 5936, "loc": { "start": { - "line": 221, + "line": 233, "column": 37 }, "end": { - "line": 221, + "line": 233, "column": 38 } } @@ -54104,15 +57373,15 @@ "binop": null }, "value": "rect", - "start": 5760, - "end": 5764, + "start": 5936, + "end": 5940, "loc": { "start": { - "line": 221, + "line": 233, "column": 38 }, "end": { - "line": 221, + "line": 233, "column": 42 } } @@ -54130,15 +57399,15 @@ "binop": null, "updateContext": null }, - "start": 5764, - "end": 5765, + "start": 5940, + "end": 5941, "loc": { "start": { - "line": 221, + "line": 233, "column": 42 }, "end": { - "line": 221, + "line": 233, "column": 43 } } @@ -54156,15 +57425,15 @@ "binop": null }, "value": "left", - "start": 5765, - "end": 5769, + "start": 5941, + "end": 5945, "loc": { "start": { - "line": 221, + "line": 233, "column": 43 }, "end": { - "line": 221, + "line": 233, "column": 47 } } @@ -54183,15 +57452,15 @@ "updateContext": null }, "value": "-", - "start": 5770, - "end": 5771, + "start": 5946, + "end": 5947, "loc": { "start": { - "line": 221, + "line": 233, "column": 48 }, "end": { - "line": 221, + "line": 233, "column": 49 } } @@ -54209,15 +57478,15 @@ "binop": null }, "value": "center", - "start": 5772, - "end": 5778, + "start": 5948, + "end": 5954, "loc": { "start": { - "line": 221, + "line": 233, "column": 50 }, "end": { - "line": 221, + "line": 233, "column": 56 } } @@ -54235,15 +57504,15 @@ "binop": null, "updateContext": null }, - "start": 5778, - "end": 5779, + "start": 5954, + "end": 5955, "loc": { "start": { - "line": 221, + "line": 233, "column": 56 }, "end": { - "line": 221, + "line": 233, "column": 57 } } @@ -54261,15 +57530,15 @@ "binop": null }, "value": "x", - "start": 5779, - "end": 5780, + "start": 5955, + "end": 5956, "loc": { "start": { - "line": 221, + "line": 233, "column": 57 }, "end": { - "line": 221, + "line": 233, "column": 58 } } @@ -54287,15 +57556,15 @@ "binop": null, "updateContext": null }, - "start": 5780, - "end": 5781, + "start": 5956, + "end": 5957, "loc": { "start": { - "line": 221, + "line": 233, "column": 58 }, "end": { - "line": 221, + "line": 233, "column": 59 } } @@ -54312,15 +57581,15 @@ "postfix": false, "binop": null }, - "start": 5782, - "end": 5783, + "start": 5958, + "end": 5959, "loc": { "start": { - "line": 221, + "line": 233, "column": 60 }, "end": { - "line": 221, + "line": 233, "column": 61 } } @@ -54338,15 +57607,15 @@ "binop": null }, "value": "rect", - "start": 5783, - "end": 5787, + "start": 5959, + "end": 5963, "loc": { "start": { - "line": 221, + "line": 233, "column": 61 }, "end": { - "line": 221, + "line": 233, "column": 65 } } @@ -54364,15 +57633,15 @@ "binop": null, "updateContext": null }, - "start": 5787, - "end": 5788, + "start": 5963, + "end": 5964, "loc": { "start": { - "line": 221, + "line": 233, "column": 65 }, "end": { - "line": 221, + "line": 233, "column": 66 } } @@ -54390,15 +57659,15 @@ "binop": null }, "value": "top", - "start": 5788, - "end": 5791, + "start": 5964, + "end": 5967, "loc": { "start": { - "line": 221, + "line": 233, "column": 66 }, "end": { - "line": 221, + "line": 233, "column": 69 } } @@ -54417,15 +57686,15 @@ "updateContext": null }, "value": "+", - "start": 5792, - "end": 5793, + "start": 5968, + "end": 5969, "loc": { "start": { - "line": 221, + "line": 233, "column": 70 }, "end": { - "line": 221, + "line": 233, "column": 71 } } @@ -54443,15 +57712,15 @@ "binop": null }, "value": "rect", - "start": 5794, - "end": 5798, + "start": 5970, + "end": 5974, "loc": { "start": { - "line": 221, + "line": 233, "column": 72 }, "end": { - "line": 221, + "line": 233, "column": 76 } } @@ -54469,15 +57738,15 @@ "binop": null, "updateContext": null }, - "start": 5798, - "end": 5799, + "start": 5974, + "end": 5975, "loc": { "start": { - "line": 221, + "line": 233, "column": 76 }, "end": { - "line": 221, + "line": 233, "column": 77 } } @@ -54495,15 +57764,15 @@ "binop": null }, "value": "height", - "start": 5799, - "end": 5805, + "start": 5975, + "end": 5981, "loc": { "start": { - "line": 221, + "line": 233, "column": 77 }, "end": { - "line": 221, + "line": 233, "column": 83 } } @@ -54522,15 +57791,15 @@ "updateContext": null }, "value": "-", - "start": 5806, - "end": 5807, + "start": 5982, + "end": 5983, "loc": { "start": { - "line": 221, + "line": 233, "column": 84 }, "end": { - "line": 221, + "line": 233, "column": 85 } } @@ -54548,15 +57817,15 @@ "binop": null }, "value": "center", - "start": 5808, - "end": 5814, + "start": 5984, + "end": 5990, "loc": { "start": { - "line": 221, + "line": 233, "column": 86 }, "end": { - "line": 221, + "line": 233, "column": 92 } } @@ -54574,15 +57843,15 @@ "binop": null, "updateContext": null }, - "start": 5814, - "end": 5815, + "start": 5990, + "end": 5991, "loc": { "start": { - "line": 221, + "line": 233, "column": 92 }, "end": { - "line": 221, + "line": 233, "column": 93 } } @@ -54600,15 +57869,15 @@ "binop": null }, "value": "y", - "start": 5815, - "end": 5816, + "start": 5991, + "end": 5992, "loc": { "start": { - "line": 221, + "line": 233, "column": 93 }, "end": { - "line": 221, + "line": 233, "column": 94 } } @@ -54625,15 +57894,15 @@ "postfix": false, "binop": null }, - "start": 5816, - "end": 5817, + "start": 5992, + "end": 5993, "loc": { "start": { - "line": 221, + "line": 233, "column": 94 }, "end": { - "line": 221, + "line": 233, "column": 95 } } @@ -54652,15 +57921,15 @@ "updateContext": null }, "value": "*", - "start": 5818, - "end": 5819, + "start": 5994, + "end": 5995, "loc": { "start": { - "line": 221, + "line": 233, "column": 96 }, "end": { - "line": 221, + "line": 233, "column": 97 } } @@ -54679,15 +57948,15 @@ "updateContext": null }, "value": "-", - "start": 5820, - "end": 5821, + "start": 5996, + "end": 5997, "loc": { "start": { - "line": 221, + "line": 233, "column": 98 }, "end": { - "line": 221, + "line": 233, "column": 99 } } @@ -54706,15 +57975,15 @@ "updateContext": null }, "value": 1, - "start": 5821, - "end": 5822, + "start": 5997, + "end": 5998, "loc": { "start": { - "line": 221, + "line": 233, "column": 99 }, "end": { - "line": 221, + "line": 233, "column": 100 } } @@ -54731,15 +58000,15 @@ "postfix": false, "binop": null }, - "start": 5822, - "end": 5823, + "start": 5998, + "end": 5999, "loc": { "start": { - "line": 221, + "line": 233, "column": 100 }, "end": { - "line": 221, + "line": 233, "column": 101 } } @@ -54757,15 +58026,15 @@ "binop": null, "updateContext": null }, - "start": 5823, - "end": 5824, + "start": 5999, + "end": 6000, "loc": { "start": { - "line": 221, + "line": 233, "column": 101 }, "end": { - "line": 221, + "line": 233, "column": 102 } } @@ -54785,15 +58054,15 @@ "updateContext": null }, "value": "let", - "start": 5829, - "end": 5832, + "start": 6005, + "end": 6008, "loc": { "start": { - "line": 222, + "line": 234, "column": 4 }, "end": { - "line": 222, + "line": 234, "column": 7 } } @@ -54811,15 +58080,15 @@ "binop": null }, "value": "angleRightTop", - "start": 5833, - "end": 5846, + "start": 6009, + "end": 6022, "loc": { "start": { - "line": 222, + "line": 234, "column": 8 }, "end": { - "line": 222, + "line": 234, "column": 21 } } @@ -54838,15 +58107,15 @@ "updateContext": null }, "value": "=", - "start": 5847, - "end": 5848, + "start": 6023, + "end": 6024, "loc": { "start": { - "line": 222, + "line": 234, "column": 22 }, "end": { - "line": 222, + "line": 234, "column": 23 } } @@ -54864,15 +58133,15 @@ "binop": null }, "value": "angle", - "start": 5849, - "end": 5854, + "start": 6025, + "end": 6030, "loc": { "start": { - "line": 222, + "line": 234, "column": 24 }, "end": { - "line": 222, + "line": 234, "column": 29 } } @@ -54889,15 +58158,15 @@ "postfix": false, "binop": null }, - "start": 5854, - "end": 5855, + "start": 6030, + "end": 6031, "loc": { "start": { - "line": 222, + "line": 234, "column": 29 }, "end": { - "line": 222, + "line": 234, "column": 30 } } @@ -54915,15 +58184,15 @@ "binop": null }, "value": "rect", - "start": 5855, - "end": 5859, + "start": 6031, + "end": 6035, "loc": { "start": { - "line": 222, + "line": 234, "column": 30 }, "end": { - "line": 222, + "line": 234, "column": 34 } } @@ -54941,15 +58210,15 @@ "binop": null, "updateContext": null }, - "start": 5859, - "end": 5860, + "start": 6035, + "end": 6036, "loc": { "start": { - "line": 222, + "line": 234, "column": 34 }, "end": { - "line": 222, + "line": 234, "column": 35 } } @@ -54967,15 +58236,15 @@ "binop": null }, "value": "left", - "start": 5860, - "end": 5864, + "start": 6036, + "end": 6040, "loc": { "start": { - "line": 222, + "line": 234, "column": 35 }, "end": { - "line": 222, + "line": 234, "column": 39 } } @@ -54994,15 +58263,15 @@ "updateContext": null }, "value": "+", - "start": 5865, - "end": 5866, + "start": 6041, + "end": 6042, "loc": { "start": { - "line": 222, + "line": 234, "column": 40 }, "end": { - "line": 222, + "line": 234, "column": 41 } } @@ -55020,15 +58289,15 @@ "binop": null }, "value": "rect", - "start": 5867, - "end": 5871, + "start": 6043, + "end": 6047, "loc": { "start": { - "line": 222, + "line": 234, "column": 42 }, "end": { - "line": 222, + "line": 234, "column": 46 } } @@ -55046,15 +58315,15 @@ "binop": null, "updateContext": null }, - "start": 5871, - "end": 5872, + "start": 6047, + "end": 6048, "loc": { "start": { - "line": 222, + "line": 234, "column": 46 }, "end": { - "line": 222, + "line": 234, "column": 47 } } @@ -55072,15 +58341,15 @@ "binop": null }, "value": "width", - "start": 5872, - "end": 5877, + "start": 6048, + "end": 6053, "loc": { "start": { - "line": 222, + "line": 234, "column": 47 }, "end": { - "line": 222, + "line": 234, "column": 52 } } @@ -55099,15 +58368,15 @@ "updateContext": null }, "value": "-", - "start": 5878, - "end": 5879, + "start": 6054, + "end": 6055, "loc": { "start": { - "line": 222, + "line": 234, "column": 53 }, "end": { - "line": 222, + "line": 234, "column": 54 } } @@ -55125,15 +58394,15 @@ "binop": null }, "value": "center", - "start": 5880, - "end": 5886, + "start": 6056, + "end": 6062, "loc": { "start": { - "line": 222, + "line": 234, "column": 55 }, "end": { - "line": 222, + "line": 234, "column": 61 } } @@ -55151,15 +58420,15 @@ "binop": null, "updateContext": null }, - "start": 5886, - "end": 5887, + "start": 6062, + "end": 6063, "loc": { "start": { - "line": 222, + "line": 234, "column": 61 }, "end": { - "line": 222, + "line": 234, "column": 62 } } @@ -55177,15 +58446,15 @@ "binop": null }, "value": "x", - "start": 5887, - "end": 5888, + "start": 6063, + "end": 6064, "loc": { "start": { - "line": 222, + "line": 234, "column": 62 }, "end": { - "line": 222, + "line": 234, "column": 63 } } @@ -55203,15 +58472,15 @@ "binop": null, "updateContext": null }, - "start": 5888, - "end": 5889, + "start": 6064, + "end": 6065, "loc": { "start": { - "line": 222, + "line": 234, "column": 63 }, "end": { - "line": 222, + "line": 234, "column": 64 } } @@ -55228,15 +58497,15 @@ "postfix": false, "binop": null }, - "start": 5890, - "end": 5891, + "start": 6066, + "end": 6067, "loc": { "start": { - "line": 222, + "line": 234, "column": 65 }, "end": { - "line": 222, + "line": 234, "column": 66 } } @@ -55254,15 +58523,15 @@ "binop": null }, "value": "rect", - "start": 5891, - "end": 5895, + "start": 6067, + "end": 6071, "loc": { "start": { - "line": 222, + "line": 234, "column": 66 }, "end": { - "line": 222, + "line": 234, "column": 70 } } @@ -55280,15 +58549,15 @@ "binop": null, "updateContext": null }, - "start": 5895, - "end": 5896, + "start": 6071, + "end": 6072, "loc": { "start": { - "line": 222, + "line": 234, "column": 70 }, "end": { - "line": 222, + "line": 234, "column": 71 } } @@ -55306,15 +58575,15 @@ "binop": null }, "value": "top", - "start": 5896, - "end": 5899, + "start": 6072, + "end": 6075, "loc": { "start": { - "line": 222, + "line": 234, "column": 71 }, "end": { - "line": 222, + "line": 234, "column": 74 } } @@ -55333,15 +58602,15 @@ "updateContext": null }, "value": "-", - "start": 5900, - "end": 5901, + "start": 6076, + "end": 6077, "loc": { "start": { - "line": 222, + "line": 234, "column": 75 }, "end": { - "line": 222, + "line": 234, "column": 76 } } @@ -55359,15 +58628,15 @@ "binop": null }, "value": "center", - "start": 5902, - "end": 5908, + "start": 6078, + "end": 6084, "loc": { "start": { - "line": 222, + "line": 234, "column": 77 }, "end": { - "line": 222, + "line": 234, "column": 83 } } @@ -55385,15 +58654,15 @@ "binop": null, "updateContext": null }, - "start": 5908, - "end": 5909, + "start": 6084, + "end": 6085, "loc": { "start": { - "line": 222, + "line": 234, "column": 83 }, "end": { - "line": 222, + "line": 234, "column": 84 } } @@ -55411,15 +58680,15 @@ "binop": null }, "value": "y", - "start": 5909, - "end": 5910, + "start": 6085, + "end": 6086, "loc": { "start": { - "line": 222, + "line": 234, "column": 84 }, "end": { - "line": 222, + "line": 234, "column": 85 } } @@ -55436,15 +58705,15 @@ "postfix": false, "binop": null }, - "start": 5910, - "end": 5911, + "start": 6086, + "end": 6087, "loc": { "start": { - "line": 222, + "line": 234, "column": 85 }, "end": { - "line": 222, + "line": 234, "column": 86 } } @@ -55463,15 +58732,15 @@ "updateContext": null }, "value": "*", - "start": 5912, - "end": 5913, + "start": 6088, + "end": 6089, "loc": { "start": { - "line": 222, + "line": 234, "column": 87 }, "end": { - "line": 222, + "line": 234, "column": 88 } } @@ -55490,15 +58759,15 @@ "updateContext": null }, "value": "-", - "start": 5914, - "end": 5915, + "start": 6090, + "end": 6091, "loc": { "start": { - "line": 222, + "line": 234, "column": 89 }, "end": { - "line": 222, + "line": 234, "column": 90 } } @@ -55517,15 +58786,15 @@ "updateContext": null }, "value": 1, - "start": 5915, - "end": 5916, + "start": 6091, + "end": 6092, "loc": { "start": { - "line": 222, + "line": 234, "column": 90 }, "end": { - "line": 222, + "line": 234, "column": 91 } } @@ -55542,15 +58811,15 @@ "postfix": false, "binop": null }, - "start": 5916, - "end": 5917, + "start": 6092, + "end": 6093, "loc": { "start": { - "line": 222, + "line": 234, "column": 91 }, "end": { - "line": 222, + "line": 234, "column": 92 } } @@ -55568,15 +58837,15 @@ "binop": null, "updateContext": null }, - "start": 5917, - "end": 5918, + "start": 6093, + "end": 6094, "loc": { "start": { - "line": 222, + "line": 234, "column": 92 }, "end": { - "line": 222, + "line": 234, "column": 93 } } @@ -55596,15 +58865,15 @@ "updateContext": null }, "value": "let", - "start": 5923, - "end": 5926, + "start": 6099, + "end": 6102, "loc": { "start": { - "line": 223, + "line": 235, "column": 4 }, "end": { - "line": 223, + "line": 235, "column": 7 } } @@ -55622,15 +58891,15 @@ "binop": null }, "value": "angleRightBottom", - "start": 5927, - "end": 5943, + "start": 6103, + "end": 6119, "loc": { "start": { - "line": 223, + "line": 235, "column": 8 }, "end": { - "line": 223, + "line": 235, "column": 24 } } @@ -55649,15 +58918,15 @@ "updateContext": null }, "value": "=", - "start": 5944, - "end": 5945, + "start": 6120, + "end": 6121, "loc": { "start": { - "line": 223, + "line": 235, "column": 25 }, "end": { - "line": 223, + "line": 235, "column": 26 } } @@ -55675,15 +58944,15 @@ "binop": null }, "value": "angle", - "start": 5946, - "end": 5951, + "start": 6122, + "end": 6127, "loc": { "start": { - "line": 223, + "line": 235, "column": 27 }, "end": { - "line": 223, + "line": 235, "column": 32 } } @@ -55700,15 +58969,15 @@ "postfix": false, "binop": null }, - "start": 5951, - "end": 5952, + "start": 6127, + "end": 6128, "loc": { "start": { - "line": 223, + "line": 235, "column": 32 }, "end": { - "line": 223, + "line": 235, "column": 33 } } @@ -55726,15 +58995,15 @@ "binop": null }, "value": "rect", - "start": 5952, - "end": 5956, + "start": 6128, + "end": 6132, "loc": { "start": { - "line": 223, + "line": 235, "column": 33 }, "end": { - "line": 223, + "line": 235, "column": 37 } } @@ -55752,15 +59021,15 @@ "binop": null, "updateContext": null }, - "start": 5956, - "end": 5957, + "start": 6132, + "end": 6133, "loc": { "start": { - "line": 223, + "line": 235, "column": 37 }, "end": { - "line": 223, + "line": 235, "column": 38 } } @@ -55778,15 +59047,15 @@ "binop": null }, "value": "left", - "start": 5957, - "end": 5961, + "start": 6133, + "end": 6137, "loc": { "start": { - "line": 223, + "line": 235, "column": 38 }, "end": { - "line": 223, + "line": 235, "column": 42 } } @@ -55805,15 +59074,15 @@ "updateContext": null }, "value": "+", - "start": 5962, - "end": 5963, + "start": 6138, + "end": 6139, "loc": { "start": { - "line": 223, + "line": 235, "column": 43 }, "end": { - "line": 223, + "line": 235, "column": 44 } } @@ -55831,15 +59100,15 @@ "binop": null }, "value": "rect", - "start": 5964, - "end": 5968, + "start": 6140, + "end": 6144, "loc": { "start": { - "line": 223, + "line": 235, "column": 45 }, "end": { - "line": 223, + "line": 235, "column": 49 } } @@ -55857,15 +59126,15 @@ "binop": null, "updateContext": null }, - "start": 5968, - "end": 5969, + "start": 6144, + "end": 6145, "loc": { "start": { - "line": 223, + "line": 235, "column": 49 }, "end": { - "line": 223, + "line": 235, "column": 50 } } @@ -55883,15 +59152,15 @@ "binop": null }, "value": "width", - "start": 5969, - "end": 5974, + "start": 6145, + "end": 6150, "loc": { "start": { - "line": 223, + "line": 235, "column": 50 }, "end": { - "line": 223, + "line": 235, "column": 55 } } @@ -55910,15 +59179,15 @@ "updateContext": null }, "value": "-", - "start": 5975, - "end": 5976, + "start": 6151, + "end": 6152, "loc": { "start": { - "line": 223, + "line": 235, "column": 56 }, "end": { - "line": 223, + "line": 235, "column": 57 } } @@ -55936,15 +59205,15 @@ "binop": null }, "value": "center", - "start": 5977, - "end": 5983, + "start": 6153, + "end": 6159, "loc": { "start": { - "line": 223, + "line": 235, "column": 58 }, "end": { - "line": 223, + "line": 235, "column": 64 } } @@ -55962,15 +59231,15 @@ "binop": null, "updateContext": null }, - "start": 5983, - "end": 5984, + "start": 6159, + "end": 6160, "loc": { "start": { - "line": 223, + "line": 235, "column": 64 }, "end": { - "line": 223, + "line": 235, "column": 65 } } @@ -55988,15 +59257,15 @@ "binop": null }, "value": "x", - "start": 5984, - "end": 5985, + "start": 6160, + "end": 6161, "loc": { "start": { - "line": 223, + "line": 235, "column": 65 }, "end": { - "line": 223, + "line": 235, "column": 66 } } @@ -56014,15 +59283,15 @@ "binop": null, "updateContext": null }, - "start": 5985, - "end": 5986, + "start": 6161, + "end": 6162, "loc": { "start": { - "line": 223, + "line": 235, "column": 66 }, "end": { - "line": 223, + "line": 235, "column": 67 } } @@ -56039,15 +59308,15 @@ "postfix": false, "binop": null }, - "start": 5987, - "end": 5988, + "start": 6163, + "end": 6164, "loc": { "start": { - "line": 223, + "line": 235, "column": 68 }, "end": { - "line": 223, + "line": 235, "column": 69 } } @@ -56065,15 +59334,15 @@ "binop": null }, "value": "rect", - "start": 5988, - "end": 5992, + "start": 6164, + "end": 6168, "loc": { "start": { - "line": 223, + "line": 235, "column": 69 }, "end": { - "line": 223, + "line": 235, "column": 73 } } @@ -56091,15 +59360,15 @@ "binop": null, "updateContext": null }, - "start": 5992, - "end": 5993, + "start": 6168, + "end": 6169, "loc": { "start": { - "line": 223, + "line": 235, "column": 73 }, "end": { - "line": 223, + "line": 235, "column": 74 } } @@ -56117,15 +59386,15 @@ "binop": null }, "value": "top", - "start": 5993, - "end": 5996, + "start": 6169, + "end": 6172, "loc": { "start": { - "line": 223, + "line": 235, "column": 74 }, "end": { - "line": 223, + "line": 235, "column": 77 } } @@ -56144,15 +59413,15 @@ "updateContext": null }, "value": "+", - "start": 5997, - "end": 5998, + "start": 6173, + "end": 6174, "loc": { "start": { - "line": 223, + "line": 235, "column": 78 }, "end": { - "line": 223, + "line": 235, "column": 79 } } @@ -56170,15 +59439,15 @@ "binop": null }, "value": "rect", - "start": 5999, - "end": 6003, + "start": 6175, + "end": 6179, "loc": { "start": { - "line": 223, + "line": 235, "column": 80 }, "end": { - "line": 223, + "line": 235, "column": 84 } } @@ -56196,15 +59465,15 @@ "binop": null, "updateContext": null }, - "start": 6003, - "end": 6004, + "start": 6179, + "end": 6180, "loc": { "start": { - "line": 223, + "line": 235, "column": 84 }, "end": { - "line": 223, + "line": 235, "column": 85 } } @@ -56222,15 +59491,15 @@ "binop": null }, "value": "height", - "start": 6004, - "end": 6010, + "start": 6180, + "end": 6186, "loc": { "start": { - "line": 223, + "line": 235, "column": 85 }, "end": { - "line": 223, + "line": 235, "column": 91 } } @@ -56249,15 +59518,15 @@ "updateContext": null }, "value": "-", - "start": 6011, - "end": 6012, + "start": 6187, + "end": 6188, "loc": { "start": { - "line": 223, + "line": 235, "column": 92 }, "end": { - "line": 223, + "line": 235, "column": 93 } } @@ -56275,15 +59544,15 @@ "binop": null }, "value": "center", - "start": 6013, - "end": 6019, + "start": 6189, + "end": 6195, "loc": { "start": { - "line": 223, + "line": 235, "column": 94 }, "end": { - "line": 223, + "line": 235, "column": 100 } } @@ -56301,15 +59570,15 @@ "binop": null, "updateContext": null }, - "start": 6019, - "end": 6020, + "start": 6195, + "end": 6196, "loc": { "start": { - "line": 223, + "line": 235, "column": 100 }, "end": { - "line": 223, + "line": 235, "column": 101 } } @@ -56327,15 +59596,15 @@ "binop": null }, "value": "y", - "start": 6020, - "end": 6021, + "start": 6196, + "end": 6197, "loc": { "start": { - "line": 223, + "line": 235, "column": 101 }, "end": { - "line": 223, + "line": 235, "column": 102 } } @@ -56352,15 +59621,15 @@ "postfix": false, "binop": null }, - "start": 6021, - "end": 6022, + "start": 6197, + "end": 6198, "loc": { "start": { - "line": 223, + "line": 235, "column": 102 }, "end": { - "line": 223, + "line": 235, "column": 103 } } @@ -56379,15 +59648,15 @@ "updateContext": null }, "value": "*", - "start": 6023, - "end": 6024, + "start": 6199, + "end": 6200, "loc": { "start": { - "line": 223, + "line": 235, "column": 104 }, "end": { - "line": 223, + "line": 235, "column": 105 } } @@ -56406,15 +59675,15 @@ "updateContext": null }, "value": "-", - "start": 6025, - "end": 6026, + "start": 6201, + "end": 6202, "loc": { "start": { - "line": 223, + "line": 235, "column": 106 }, "end": { - "line": 223, + "line": 235, "column": 107 } } @@ -56433,15 +59702,15 @@ "updateContext": null }, "value": 1, - "start": 6026, - "end": 6027, + "start": 6202, + "end": 6203, "loc": { "start": { - "line": 223, + "line": 235, "column": 107 }, "end": { - "line": 223, + "line": 235, "column": 108 } } @@ -56458,15 +59727,15 @@ "postfix": false, "binop": null }, - "start": 6027, - "end": 6028, + "start": 6203, + "end": 6204, "loc": { "start": { - "line": 223, + "line": 235, "column": 108 }, "end": { - "line": 223, + "line": 235, "column": 109 } } @@ -56484,15 +59753,15 @@ "binop": null, "updateContext": null }, - "start": 6028, - "end": 6029, + "start": 6204, + "end": 6205, "loc": { "start": { - "line": 223, + "line": 235, "column": 109 }, "end": { - "line": 223, + "line": 235, "column": 110 } } @@ -56512,15 +59781,15 @@ "updateContext": null }, "value": "let", - "start": 6034, - "end": 6037, + "start": 6210, + "end": 6213, "loc": { "start": { - "line": 224, + "line": 236, "column": 4 }, "end": { - "line": 224, + "line": 236, "column": 7 } } @@ -56538,15 +59807,15 @@ "binop": null }, "value": "scale", - "start": 6038, - "end": 6043, + "start": 6214, + "end": 6219, "loc": { "start": { - "line": 224, + "line": 236, "column": 8 }, "end": { - "line": 224, + "line": 236, "column": 13 } } @@ -56565,15 +59834,15 @@ "updateContext": null }, "value": "=", - "start": 6044, - "end": 6045, + "start": 6220, + "end": 6221, "loc": { "start": { - "line": 224, + "line": 236, "column": 14 }, "end": { - "line": 224, + "line": 236, "column": 15 } } @@ -56591,15 +59860,15 @@ "binop": null }, "value": "Len_Y", - "start": 6046, - "end": 6051, + "start": 6222, + "end": 6227, "loc": { "start": { - "line": 224, + "line": 236, "column": 16 }, "end": { - "line": 224, + "line": 236, "column": 21 } } @@ -56618,15 +59887,15 @@ "updateContext": null }, "value": "/", - "start": 6052, - "end": 6053, + "start": 6228, + "end": 6229, "loc": { "start": { - "line": 224, + "line": 236, "column": 22 }, "end": { - "line": 224, + "line": 236, "column": 23 } } @@ -56644,15 +59913,15 @@ "binop": null }, "value": "Len_X", - "start": 6054, - "end": 6059, + "start": 6230, + "end": 6235, "loc": { "start": { - "line": 224, + "line": 236, "column": 24 }, "end": { - "line": 224, + "line": 236, "column": 29 } } @@ -56670,15 +59939,15 @@ "binop": null, "updateContext": null }, - "start": 6059, - "end": 6060, + "start": 6235, + "end": 6236, "loc": { "start": { - "line": 224, + "line": 236, "column": 29 }, "end": { - "line": 224, + "line": 236, "column": 30 } } @@ -56698,15 +59967,15 @@ "updateContext": null }, "value": "let", - "start": 6065, - "end": 6068, + "start": 6241, + "end": 6244, "loc": { "start": { - "line": 225, + "line": 237, "column": 4 }, "end": { - "line": 225, + "line": 237, "column": 7 } } @@ -56724,15 +59993,15 @@ "binop": null }, "value": "res", - "start": 6069, - "end": 6072, + "start": 6245, + "end": 6248, "loc": { "start": { - "line": 225, + "line": 237, "column": 8 }, "end": { - "line": 225, + "line": 237, "column": 11 } } @@ -56751,15 +60020,15 @@ "updateContext": null }, "value": "=", - "start": 6073, - "end": 6074, + "start": 6249, + "end": 6250, "loc": { "start": { - "line": 225, + "line": 237, "column": 12 }, "end": { - "line": 225, + "line": 237, "column": 13 } } @@ -56776,15 +60045,15 @@ "postfix": false, "binop": null }, - "start": 6075, - "end": 6076, + "start": 6251, + "end": 6252, "loc": { "start": { - "line": 225, + "line": 237, "column": 14 }, "end": { - "line": 225, + "line": 237, "column": 15 } } @@ -56801,15 +60070,15 @@ "postfix": false, "binop": null }, - "start": 6076, - "end": 6077, + "start": 6252, + "end": 6253, "loc": { "start": { - "line": 225, + "line": 237, "column": 15 }, "end": { - "line": 225, + "line": 237, "column": 16 } } @@ -56827,15 +60096,15 @@ "binop": null, "updateContext": null }, - "start": 6077, - "end": 6078, + "start": 6253, + "end": 6254, "loc": { "start": { - "line": 225, + "line": 237, "column": 16 }, "end": { - "line": 225, + "line": 237, "column": 17 } } @@ -56855,15 +60124,15 @@ "updateContext": null }, "value": "if", - "start": 6084, - "end": 6086, + "start": 6260, + "end": 6262, "loc": { "start": { - "line": 227, + "line": 239, "column": 4 }, "end": { - "line": 227, + "line": 239, "column": 6 } } @@ -56880,15 +60149,15 @@ "postfix": false, "binop": null }, - "start": 6087, - "end": 6088, + "start": 6263, + "end": 6264, "loc": { "start": { - "line": 227, + "line": 239, "column": 7 }, "end": { - "line": 227, + "line": 239, "column": 8 } } @@ -56906,15 +60175,15 @@ "binop": null }, "value": "angleTarget", - "start": 6088, - "end": 6099, + "start": 6264, + "end": 6275, "loc": { "start": { - "line": 227, + "line": 239, "column": 8 }, "end": { - "line": 227, + "line": 239, "column": 19 } } @@ -56933,15 +60202,15 @@ "updateContext": null }, "value": "<", - "start": 6100, - "end": 6101, + "start": 6276, + "end": 6277, "loc": { "start": { - "line": 227, + "line": 239, "column": 20 }, "end": { - "line": 227, + "line": 239, "column": 21 } } @@ -56959,15 +60228,15 @@ "binop": null }, "value": "angleRightTop", - "start": 6102, - "end": 6115, + "start": 6278, + "end": 6291, "loc": { "start": { - "line": 227, + "line": 239, "column": 22 }, "end": { - "line": 227, + "line": 239, "column": 35 } } @@ -56984,15 +60253,15 @@ "postfix": false, "binop": null }, - "start": 6115, - "end": 6116, + "start": 6291, + "end": 6292, "loc": { "start": { - "line": 227, + "line": 239, "column": 35 }, "end": { - "line": 227, + "line": 239, "column": 36 } } @@ -57009,15 +60278,15 @@ "postfix": false, "binop": null }, - "start": 6117, - "end": 6118, + "start": 6293, + "end": 6294, "loc": { "start": { - "line": 227, + "line": 239, "column": 37 }, "end": { - "line": 227, + "line": 239, "column": 38 } } @@ -57037,15 +60306,15 @@ "updateContext": null }, "value": "let", - "start": 6127, - "end": 6130, + "start": 6303, + "end": 6306, "loc": { "start": { - "line": 228, + "line": 240, "column": 8 }, "end": { - "line": 228, + "line": 240, "column": 11 } } @@ -57063,15 +60332,15 @@ "binop": null }, "value": "y3", - "start": 6131, - "end": 6133, + "start": 6307, + "end": 6309, "loc": { "start": { - "line": 228, + "line": 240, "column": 12 }, "end": { - "line": 228, + "line": 240, "column": 14 } } @@ -57090,15 +60359,15 @@ "updateContext": null }, "value": "=", - "start": 6134, - "end": 6135, + "start": 6310, + "end": 6311, "loc": { "start": { - "line": 228, + "line": 240, "column": 15 }, "end": { - "line": 228, + "line": 240, "column": 16 } } @@ -57116,15 +60385,15 @@ "binop": null }, "value": "rect", - "start": 6136, - "end": 6140, + "start": 6312, + "end": 6316, "loc": { "start": { - "line": 228, + "line": 240, "column": 17 }, "end": { - "line": 228, + "line": 240, "column": 21 } } @@ -57142,15 +60411,15 @@ "binop": null, "updateContext": null }, - "start": 6140, - "end": 6141, + "start": 6316, + "end": 6317, "loc": { "start": { - "line": 228, + "line": 240, "column": 21 }, "end": { - "line": 228, + "line": 240, "column": 22 } } @@ -57168,15 +60437,15 @@ "binop": null }, "value": "top", - "start": 6141, - "end": 6144, + "start": 6317, + "end": 6320, "loc": { "start": { - "line": 228, + "line": 240, "column": 22 }, "end": { - "line": 228, + "line": 240, "column": 25 } } @@ -57195,15 +60464,15 @@ "updateContext": null }, "value": "-", - "start": 6145, - "end": 6146, + "start": 6321, + "end": 6322, "loc": { "start": { - "line": 228, + "line": 240, "column": 26 }, "end": { - "line": 228, + "line": 240, "column": 27 } } @@ -57221,15 +60490,15 @@ "binop": null }, "value": "center", - "start": 6147, - "end": 6153, + "start": 6323, + "end": 6329, "loc": { "start": { - "line": 228, + "line": 240, "column": 28 }, "end": { - "line": 228, + "line": 240, "column": 34 } } @@ -57247,15 +60516,15 @@ "binop": null, "updateContext": null }, - "start": 6153, - "end": 6154, + "start": 6329, + "end": 6330, "loc": { "start": { - "line": 228, + "line": 240, "column": 34 }, "end": { - "line": 228, + "line": 240, "column": 35 } } @@ -57273,15 +60542,15 @@ "binop": null }, "value": "y", - "start": 6154, - "end": 6155, + "start": 6330, + "end": 6331, "loc": { "start": { - "line": 228, + "line": 240, "column": 35 }, "end": { - "line": 228, + "line": 240, "column": 36 } } @@ -57299,15 +60568,15 @@ "binop": null, "updateContext": null }, - "start": 6155, - "end": 6156, + "start": 6331, + "end": 6332, "loc": { "start": { - "line": 228, + "line": 240, "column": 36 }, "end": { - "line": 228, + "line": 240, "column": 37 } } @@ -57327,15 +60596,15 @@ "updateContext": null }, "value": "let", - "start": 6165, - "end": 6168, + "start": 6341, + "end": 6344, "loc": { "start": { - "line": 229, + "line": 241, "column": 8 }, "end": { - "line": 229, + "line": 241, "column": 11 } } @@ -57353,15 +60622,15 @@ "binop": null }, "value": "x3", - "start": 6169, - "end": 6171, + "start": 6345, + "end": 6347, "loc": { "start": { - "line": 229, + "line": 241, "column": 12 }, "end": { - "line": 229, + "line": 241, "column": 14 } } @@ -57380,15 +60649,15 @@ "updateContext": null }, "value": "=", - "start": 6172, - "end": 6173, + "start": 6348, + "end": 6349, "loc": { "start": { - "line": 229, + "line": 241, "column": 15 }, "end": { - "line": 229, + "line": 241, "column": 16 } } @@ -57406,15 +60675,15 @@ "binop": null }, "value": "y3", - "start": 6174, - "end": 6176, + "start": 6350, + "end": 6352, "loc": { "start": { - "line": 229, + "line": 241, "column": 17 }, "end": { - "line": 229, + "line": 241, "column": 19 } } @@ -57433,15 +60702,15 @@ "updateContext": null }, "value": "/", - "start": 6177, - "end": 6178, + "start": 6353, + "end": 6354, "loc": { "start": { - "line": 229, + "line": 241, "column": 20 }, "end": { - "line": 229, + "line": 241, "column": 21 } } @@ -57459,15 +60728,15 @@ "binop": null }, "value": "scale", - "start": 6179, - "end": 6184, + "start": 6355, + "end": 6360, "loc": { "start": { - "line": 229, + "line": 241, "column": 22 }, "end": { - "line": 229, + "line": 241, "column": 27 } } @@ -57485,15 +60754,15 @@ "binop": null, "updateContext": null }, - "start": 6184, - "end": 6185, + "start": 6360, + "end": 6361, "loc": { "start": { - "line": 229, + "line": 241, "column": 27 }, "end": { - "line": 229, + "line": 241, "column": 28 } } @@ -57511,15 +60780,15 @@ "binop": null }, "value": "res", - "start": 6194, - "end": 6197, + "start": 6370, + "end": 6373, "loc": { "start": { - "line": 230, + "line": 242, "column": 8 }, "end": { - "line": 230, + "line": 242, "column": 11 } } @@ -57538,15 +60807,15 @@ "updateContext": null }, "value": "=", - "start": 6198, - "end": 6199, + "start": 6374, + "end": 6375, "loc": { "start": { - "line": 230, + "line": 242, "column": 12 }, "end": { - "line": 230, + "line": 242, "column": 13 } } @@ -57563,15 +60832,15 @@ "postfix": false, "binop": null }, - "start": 6200, - "end": 6201, + "start": 6376, + "end": 6377, "loc": { "start": { - "line": 230, + "line": 242, "column": 14 }, "end": { - "line": 230, + "line": 242, "column": 15 } } @@ -57589,15 +60858,15 @@ "binop": null }, "value": "y", - "start": 6214, - "end": 6215, + "start": 6390, + "end": 6391, "loc": { "start": { - "line": 231, + "line": 243, "column": 12 }, "end": { - "line": 231, + "line": 243, "column": 13 } } @@ -57615,15 +60884,15 @@ "binop": null, "updateContext": null }, - "start": 6215, - "end": 6216, + "start": 6391, + "end": 6392, "loc": { "start": { - "line": 231, + "line": 243, "column": 13 }, "end": { - "line": 231, + "line": 243, "column": 14 } } @@ -57641,15 +60910,15 @@ "binop": null }, "value": "center", - "start": 6217, - "end": 6223, + "start": 6393, + "end": 6399, "loc": { "start": { - "line": 231, + "line": 243, "column": 15 }, "end": { - "line": 231, + "line": 243, "column": 21 } } @@ -57667,15 +60936,15 @@ "binop": null, "updateContext": null }, - "start": 6223, - "end": 6224, + "start": 6399, + "end": 6400, "loc": { "start": { - "line": 231, + "line": 243, "column": 21 }, "end": { - "line": 231, + "line": 243, "column": 22 } } @@ -57693,15 +60962,15 @@ "binop": null }, "value": "y", - "start": 6224, - "end": 6225, + "start": 6400, + "end": 6401, "loc": { "start": { - "line": 231, + "line": 243, "column": 22 }, "end": { - "line": 231, + "line": 243, "column": 23 } } @@ -57720,15 +60989,15 @@ "updateContext": null }, "value": "+", - "start": 6226, - "end": 6227, + "start": 6402, + "end": 6403, "loc": { "start": { - "line": 231, + "line": 243, "column": 24 }, "end": { - "line": 231, + "line": 243, "column": 25 } } @@ -57746,15 +61015,15 @@ "binop": null }, "value": "y3", - "start": 6228, - "end": 6230, + "start": 6404, + "end": 6406, "loc": { "start": { - "line": 231, + "line": 243, "column": 26 }, "end": { - "line": 231, + "line": 243, "column": 28 } } @@ -57772,15 +61041,15 @@ "binop": null, "updateContext": null }, - "start": 6230, - "end": 6231, + "start": 6406, + "end": 6407, "loc": { "start": { - "line": 231, + "line": 243, "column": 28 }, "end": { - "line": 231, + "line": 243, "column": 29 } } @@ -57798,15 +61067,15 @@ "binop": null }, "value": "x", - "start": 6244, - "end": 6245, + "start": 6420, + "end": 6421, "loc": { "start": { - "line": 232, + "line": 244, "column": 12 }, "end": { - "line": 232, + "line": 244, "column": 13 } } @@ -57824,15 +61093,15 @@ "binop": null, "updateContext": null }, - "start": 6245, - "end": 6246, + "start": 6421, + "end": 6422, "loc": { "start": { - "line": 232, + "line": 244, "column": 13 }, "end": { - "line": 232, + "line": 244, "column": 14 } } @@ -57850,15 +61119,15 @@ "binop": null }, "value": "center", - "start": 6247, - "end": 6253, + "start": 6423, + "end": 6429, "loc": { "start": { - "line": 232, + "line": 244, "column": 15 }, "end": { - "line": 232, + "line": 244, "column": 21 } } @@ -57876,15 +61145,15 @@ "binop": null, "updateContext": null }, - "start": 6253, - "end": 6254, + "start": 6429, + "end": 6430, "loc": { "start": { - "line": 232, + "line": 244, "column": 21 }, "end": { - "line": 232, + "line": 244, "column": 22 } } @@ -57902,15 +61171,15 @@ "binop": null }, "value": "x", - "start": 6254, - "end": 6255, + "start": 6430, + "end": 6431, "loc": { "start": { - "line": 232, + "line": 244, "column": 22 }, "end": { - "line": 232, + "line": 244, "column": 23 } } @@ -57929,15 +61198,15 @@ "updateContext": null }, "value": "+", - "start": 6256, - "end": 6257, + "start": 6432, + "end": 6433, "loc": { "start": { - "line": 232, + "line": 244, "column": 24 }, "end": { - "line": 232, + "line": 244, "column": 25 } } @@ -57955,15 +61224,15 @@ "binop": null }, "value": "x3", - "start": 6258, - "end": 6260, + "start": 6434, + "end": 6436, "loc": { "start": { - "line": 232, + "line": 244, "column": 26 }, "end": { - "line": 232, + "line": 244, "column": 28 } } @@ -57980,15 +61249,15 @@ "postfix": false, "binop": null }, - "start": 6269, - "end": 6270, + "start": 6445, + "end": 6446, "loc": { "start": { - "line": 233, + "line": 245, "column": 8 }, "end": { - "line": 233, + "line": 245, "column": 9 } } @@ -58005,15 +61274,15 @@ "postfix": false, "binop": null }, - "start": 6275, - "end": 6276, + "start": 6451, + "end": 6452, "loc": { "start": { - "line": 234, + "line": 246, "column": 4 }, "end": { - "line": 234, + "line": 246, "column": 5 } } @@ -58033,15 +61302,15 @@ "updateContext": null }, "value": "else", - "start": 6277, - "end": 6281, + "start": 6453, + "end": 6457, "loc": { "start": { - "line": 234, + "line": 246, "column": 6 }, "end": { - "line": 234, + "line": 246, "column": 10 } } @@ -58061,15 +61330,15 @@ "updateContext": null }, "value": "if", - "start": 6282, - "end": 6284, + "start": 6458, + "end": 6460, "loc": { "start": { - "line": 234, + "line": 246, "column": 11 }, "end": { - "line": 234, + "line": 246, "column": 13 } } @@ -58086,15 +61355,15 @@ "postfix": false, "binop": null }, - "start": 6284, - "end": 6285, + "start": 6460, + "end": 6461, "loc": { "start": { - "line": 234, + "line": 246, "column": 13 }, "end": { - "line": 234, + "line": 246, "column": 14 } } @@ -58112,15 +61381,15 @@ "binop": null }, "value": "angleTarget", - "start": 6285, - "end": 6296, + "start": 6461, + "end": 6472, "loc": { "start": { - "line": 234, + "line": 246, "column": 14 }, "end": { - "line": 234, + "line": 246, "column": 25 } } @@ -58139,15 +61408,15 @@ "updateContext": null }, "value": "<", - "start": 6297, - "end": 6298, + "start": 6473, + "end": 6474, "loc": { "start": { - "line": 234, + "line": 246, "column": 26 }, "end": { - "line": 234, + "line": 246, "column": 27 } } @@ -58165,15 +61434,15 @@ "binop": null }, "value": "angleRightBottom", - "start": 6299, - "end": 6315, + "start": 6475, + "end": 6491, "loc": { "start": { - "line": 234, + "line": 246, "column": 28 }, "end": { - "line": 234, + "line": 246, "column": 44 } } @@ -58190,15 +61459,15 @@ "postfix": false, "binop": null }, - "start": 6315, - "end": 6316, + "start": 6491, + "end": 6492, "loc": { "start": { - "line": 234, + "line": 246, "column": 44 }, "end": { - "line": 234, + "line": 246, "column": 45 } } @@ -58215,15 +61484,15 @@ "postfix": false, "binop": null }, - "start": 6317, - "end": 6318, + "start": 6493, + "end": 6494, "loc": { "start": { - "line": 234, + "line": 246, "column": 46 }, "end": { - "line": 234, + "line": 246, "column": 47 } } @@ -58243,15 +61512,15 @@ "updateContext": null }, "value": "let", - "start": 6327, - "end": 6330, + "start": 6503, + "end": 6506, "loc": { "start": { - "line": 235, + "line": 247, "column": 8 }, "end": { - "line": 235, + "line": 247, "column": 11 } } @@ -58269,15 +61538,15 @@ "binop": null }, "value": "x3", - "start": 6331, - "end": 6333, + "start": 6507, + "end": 6509, "loc": { "start": { - "line": 235, + "line": 247, "column": 12 }, "end": { - "line": 235, + "line": 247, "column": 14 } } @@ -58296,15 +61565,15 @@ "updateContext": null }, "value": "=", - "start": 6334, - "end": 6335, + "start": 6510, + "end": 6511, "loc": { "start": { - "line": 235, + "line": 247, "column": 15 }, "end": { - "line": 235, + "line": 247, "column": 16 } } @@ -58322,15 +61591,15 @@ "binop": null }, "value": "rect", - "start": 6336, - "end": 6340, + "start": 6512, + "end": 6516, "loc": { "start": { - "line": 235, + "line": 247, "column": 17 }, "end": { - "line": 235, + "line": 247, "column": 21 } } @@ -58348,15 +61617,15 @@ "binop": null, "updateContext": null }, - "start": 6340, - "end": 6341, + "start": 6516, + "end": 6517, "loc": { "start": { - "line": 235, + "line": 247, "column": 21 }, "end": { - "line": 235, + "line": 247, "column": 22 } } @@ -58374,15 +61643,15 @@ "binop": null }, "value": "left", - "start": 6341, - "end": 6345, + "start": 6517, + "end": 6521, "loc": { "start": { - "line": 235, + "line": 247, "column": 22 }, "end": { - "line": 235, + "line": 247, "column": 26 } } @@ -58401,15 +61670,15 @@ "updateContext": null }, "value": "+", - "start": 6346, - "end": 6347, + "start": 6522, + "end": 6523, "loc": { "start": { - "line": 235, + "line": 247, "column": 27 }, "end": { - "line": 235, + "line": 247, "column": 28 } } @@ -58427,15 +61696,15 @@ "binop": null }, "value": "rect", - "start": 6348, - "end": 6352, + "start": 6524, + "end": 6528, "loc": { "start": { - "line": 235, + "line": 247, "column": 29 }, "end": { - "line": 235, + "line": 247, "column": 33 } } @@ -58453,15 +61722,15 @@ "binop": null, "updateContext": null }, - "start": 6352, - "end": 6353, + "start": 6528, + "end": 6529, "loc": { "start": { - "line": 235, + "line": 247, "column": 33 }, "end": { - "line": 235, + "line": 247, "column": 34 } } @@ -58479,15 +61748,15 @@ "binop": null }, "value": "width", - "start": 6353, - "end": 6358, + "start": 6529, + "end": 6534, "loc": { "start": { - "line": 235, + "line": 247, "column": 34 }, "end": { - "line": 235, + "line": 247, "column": 39 } } @@ -58506,15 +61775,15 @@ "updateContext": null }, "value": "-", - "start": 6359, - "end": 6360, + "start": 6535, + "end": 6536, "loc": { "start": { - "line": 235, + "line": 247, "column": 40 }, "end": { - "line": 235, + "line": 247, "column": 41 } } @@ -58532,15 +61801,15 @@ "binop": null }, "value": "center", - "start": 6361, - "end": 6367, + "start": 6537, + "end": 6543, "loc": { "start": { - "line": 235, + "line": 247, "column": 42 }, "end": { - "line": 235, + "line": 247, "column": 48 } } @@ -58558,15 +61827,15 @@ "binop": null, "updateContext": null }, - "start": 6367, - "end": 6368, + "start": 6543, + "end": 6544, "loc": { "start": { - "line": 235, + "line": 247, "column": 48 }, "end": { - "line": 235, + "line": 247, "column": 49 } } @@ -58584,15 +61853,15 @@ "binop": null }, "value": "x", - "start": 6368, - "end": 6369, + "start": 6544, + "end": 6545, "loc": { "start": { - "line": 235, + "line": 247, "column": 49 }, "end": { - "line": 235, + "line": 247, "column": 50 } } @@ -58610,15 +61879,15 @@ "binop": null, "updateContext": null }, - "start": 6369, - "end": 6370, + "start": 6545, + "end": 6546, "loc": { "start": { - "line": 235, + "line": 247, "column": 50 }, "end": { - "line": 235, + "line": 247, "column": 51 } } @@ -58638,15 +61907,15 @@ "updateContext": null }, "value": "let", - "start": 6379, - "end": 6382, + "start": 6555, + "end": 6558, "loc": { "start": { - "line": 236, + "line": 248, "column": 8 }, "end": { - "line": 236, + "line": 248, "column": 11 } } @@ -58664,15 +61933,15 @@ "binop": null }, "value": "y3", - "start": 6383, - "end": 6385, + "start": 6559, + "end": 6561, "loc": { "start": { - "line": 236, + "line": 248, "column": 12 }, "end": { - "line": 236, + "line": 248, "column": 14 } } @@ -58691,15 +61960,15 @@ "updateContext": null }, "value": "=", - "start": 6386, - "end": 6387, + "start": 6562, + "end": 6563, "loc": { "start": { - "line": 236, + "line": 248, "column": 15 }, "end": { - "line": 236, + "line": 248, "column": 16 } } @@ -58717,15 +61986,15 @@ "binop": null }, "value": "x3", - "start": 6388, - "end": 6390, + "start": 6564, + "end": 6566, "loc": { "start": { - "line": 236, + "line": 248, "column": 17 }, "end": { - "line": 236, + "line": 248, "column": 19 } } @@ -58744,15 +62013,15 @@ "updateContext": null }, "value": "*", - "start": 6391, - "end": 6392, + "start": 6567, + "end": 6568, "loc": { "start": { - "line": 236, + "line": 248, "column": 20 }, "end": { - "line": 236, + "line": 248, "column": 21 } } @@ -58770,15 +62039,15 @@ "binop": null }, "value": "scale", - "start": 6393, - "end": 6398, + "start": 6569, + "end": 6574, "loc": { "start": { - "line": 236, + "line": 248, "column": 22 }, "end": { - "line": 236, + "line": 248, "column": 27 } } @@ -58796,15 +62065,15 @@ "binop": null, "updateContext": null }, - "start": 6398, - "end": 6399, + "start": 6574, + "end": 6575, "loc": { "start": { - "line": 236, + "line": 248, "column": 27 }, "end": { - "line": 236, + "line": 248, "column": 28 } } @@ -58822,15 +62091,15 @@ "binop": null }, "value": "res", - "start": 6408, - "end": 6411, + "start": 6584, + "end": 6587, "loc": { "start": { - "line": 237, + "line": 249, "column": 8 }, "end": { - "line": 237, + "line": 249, "column": 11 } } @@ -58849,15 +62118,15 @@ "updateContext": null }, "value": "=", - "start": 6412, - "end": 6413, + "start": 6588, + "end": 6589, "loc": { "start": { - "line": 237, + "line": 249, "column": 12 }, "end": { - "line": 237, + "line": 249, "column": 13 } } @@ -58874,15 +62143,15 @@ "postfix": false, "binop": null }, - "start": 6414, - "end": 6415, + "start": 6590, + "end": 6591, "loc": { "start": { - "line": 237, + "line": 249, "column": 14 }, "end": { - "line": 237, + "line": 249, "column": 15 } } @@ -58900,15 +62169,15 @@ "binop": null }, "value": "y", - "start": 6428, - "end": 6429, + "start": 6604, + "end": 6605, "loc": { "start": { - "line": 238, + "line": 250, "column": 12 }, "end": { - "line": 238, + "line": 250, "column": 13 } } @@ -58926,15 +62195,15 @@ "binop": null, "updateContext": null }, - "start": 6429, - "end": 6430, + "start": 6605, + "end": 6606, "loc": { "start": { - "line": 238, + "line": 250, "column": 13 }, "end": { - "line": 238, + "line": 250, "column": 14 } } @@ -58952,15 +62221,15 @@ "binop": null }, "value": "center", - "start": 6431, - "end": 6437, + "start": 6607, + "end": 6613, "loc": { "start": { - "line": 238, + "line": 250, "column": 15 }, "end": { - "line": 238, + "line": 250, "column": 21 } } @@ -58978,15 +62247,15 @@ "binop": null, "updateContext": null }, - "start": 6437, - "end": 6438, + "start": 6613, + "end": 6614, "loc": { "start": { - "line": 238, + "line": 250, "column": 21 }, "end": { - "line": 238, + "line": 250, "column": 22 } } @@ -59004,15 +62273,15 @@ "binop": null }, "value": "y", - "start": 6438, - "end": 6439, + "start": 6614, + "end": 6615, "loc": { "start": { - "line": 238, + "line": 250, "column": 22 }, "end": { - "line": 238, + "line": 250, "column": 23 } } @@ -59031,15 +62300,15 @@ "updateContext": null }, "value": "+", - "start": 6440, - "end": 6441, + "start": 6616, + "end": 6617, "loc": { "start": { - "line": 238, + "line": 250, "column": 24 }, "end": { - "line": 238, + "line": 250, "column": 25 } } @@ -59057,15 +62326,15 @@ "binop": null }, "value": "y3", - "start": 6442, - "end": 6444, + "start": 6618, + "end": 6620, "loc": { "start": { - "line": 238, + "line": 250, "column": 26 }, "end": { - "line": 238, + "line": 250, "column": 28 } } @@ -59083,15 +62352,15 @@ "binop": null, "updateContext": null }, - "start": 6444, - "end": 6445, + "start": 6620, + "end": 6621, "loc": { "start": { - "line": 238, + "line": 250, "column": 28 }, "end": { - "line": 238, + "line": 250, "column": 29 } } @@ -59109,15 +62378,15 @@ "binop": null }, "value": "x", - "start": 6458, - "end": 6459, + "start": 6634, + "end": 6635, "loc": { "start": { - "line": 239, + "line": 251, "column": 12 }, "end": { - "line": 239, + "line": 251, "column": 13 } } @@ -59135,15 +62404,15 @@ "binop": null, "updateContext": null }, - "start": 6459, - "end": 6460, + "start": 6635, + "end": 6636, "loc": { "start": { - "line": 239, + "line": 251, "column": 13 }, "end": { - "line": 239, + "line": 251, "column": 14 } } @@ -59161,15 +62430,15 @@ "binop": null }, "value": "center", - "start": 6461, - "end": 6467, + "start": 6637, + "end": 6643, "loc": { "start": { - "line": 239, + "line": 251, "column": 15 }, "end": { - "line": 239, + "line": 251, "column": 21 } } @@ -59187,15 +62456,15 @@ "binop": null, "updateContext": null }, - "start": 6467, - "end": 6468, + "start": 6643, + "end": 6644, "loc": { "start": { - "line": 239, + "line": 251, "column": 21 }, "end": { - "line": 239, + "line": 251, "column": 22 } } @@ -59213,15 +62482,15 @@ "binop": null }, "value": "x", - "start": 6468, - "end": 6469, + "start": 6644, + "end": 6645, "loc": { "start": { - "line": 239, + "line": 251, "column": 22 }, "end": { - "line": 239, + "line": 251, "column": 23 } } @@ -59240,15 +62509,15 @@ "updateContext": null }, "value": "+", - "start": 6470, - "end": 6471, + "start": 6646, + "end": 6647, "loc": { "start": { - "line": 239, + "line": 251, "column": 24 }, "end": { - "line": 239, + "line": 251, "column": 25 } } @@ -59266,15 +62535,15 @@ "binop": null }, "value": "x3", - "start": 6472, - "end": 6474, + "start": 6648, + "end": 6650, "loc": { "start": { - "line": 239, + "line": 251, "column": 26 }, "end": { - "line": 239, + "line": 251, "column": 28 } } @@ -59291,15 +62560,15 @@ "postfix": false, "binop": null }, - "start": 6483, - "end": 6484, + "start": 6659, + "end": 6660, "loc": { "start": { - "line": 240, + "line": 252, "column": 8 }, "end": { - "line": 240, + "line": 252, "column": 9 } } @@ -59316,15 +62585,15 @@ "postfix": false, "binop": null }, - "start": 6489, - "end": 6490, + "start": 6665, + "end": 6666, "loc": { "start": { - "line": 241, + "line": 253, "column": 4 }, "end": { - "line": 241, + "line": 253, "column": 5 } } @@ -59344,15 +62613,15 @@ "updateContext": null }, "value": "else", - "start": 6491, - "end": 6495, + "start": 6667, + "end": 6671, "loc": { "start": { - "line": 241, + "line": 253, "column": 6 }, "end": { - "line": 241, + "line": 253, "column": 10 } } @@ -59372,15 +62641,15 @@ "updateContext": null }, "value": "if", - "start": 6496, - "end": 6498, + "start": 6672, + "end": 6674, "loc": { "start": { - "line": 241, + "line": 253, "column": 11 }, "end": { - "line": 241, + "line": 253, "column": 13 } } @@ -59397,15 +62666,15 @@ "postfix": false, "binop": null }, - "start": 6499, - "end": 6500, + "start": 6675, + "end": 6676, "loc": { "start": { - "line": 241, + "line": 253, "column": 14 }, "end": { - "line": 241, + "line": 253, "column": 15 } } @@ -59423,15 +62692,15 @@ "binop": null }, "value": "angleTarget", - "start": 6500, - "end": 6511, + "start": 6676, + "end": 6687, "loc": { "start": { - "line": 241, + "line": 253, "column": 15 }, "end": { - "line": 241, + "line": 253, "column": 26 } } @@ -59450,15 +62719,15 @@ "updateContext": null }, "value": "<", - "start": 6512, - "end": 6513, + "start": 6688, + "end": 6689, "loc": { "start": { - "line": 241, + "line": 253, "column": 27 }, "end": { - "line": 241, + "line": 253, "column": 28 } } @@ -59476,15 +62745,15 @@ "binop": null }, "value": "angleLeftBottom", - "start": 6514, - "end": 6529, + "start": 6690, + "end": 6705, "loc": { "start": { - "line": 241, + "line": 253, "column": 29 }, "end": { - "line": 241, + "line": 253, "column": 44 } } @@ -59501,15 +62770,15 @@ "postfix": false, "binop": null }, - "start": 6529, - "end": 6530, + "start": 6705, + "end": 6706, "loc": { "start": { - "line": 241, + "line": 253, "column": 44 }, "end": { - "line": 241, + "line": 253, "column": 45 } } @@ -59526,15 +62795,15 @@ "postfix": false, "binop": null }, - "start": 6531, - "end": 6532, + "start": 6707, + "end": 6708, "loc": { "start": { - "line": 241, + "line": 253, "column": 46 }, "end": { - "line": 241, + "line": 253, "column": 47 } } @@ -59554,15 +62823,15 @@ "updateContext": null }, "value": "let", - "start": 6541, - "end": 6544, + "start": 6717, + "end": 6720, "loc": { "start": { - "line": 242, + "line": 254, "column": 8 }, "end": { - "line": 242, + "line": 254, "column": 11 } } @@ -59580,15 +62849,15 @@ "binop": null }, "value": "y3", - "start": 6545, - "end": 6547, + "start": 6721, + "end": 6723, "loc": { "start": { - "line": 242, + "line": 254, "column": 12 }, "end": { - "line": 242, + "line": 254, "column": 14 } } @@ -59607,15 +62876,15 @@ "updateContext": null }, "value": "=", - "start": 6548, - "end": 6549, + "start": 6724, + "end": 6725, "loc": { "start": { - "line": 242, + "line": 254, "column": 15 }, "end": { - "line": 242, + "line": 254, "column": 16 } } @@ -59633,15 +62902,15 @@ "binop": null }, "value": "rect", - "start": 6550, - "end": 6554, + "start": 6726, + "end": 6730, "loc": { "start": { - "line": 242, + "line": 254, "column": 17 }, "end": { - "line": 242, + "line": 254, "column": 21 } } @@ -59659,15 +62928,15 @@ "binop": null, "updateContext": null }, - "start": 6554, - "end": 6555, + "start": 6730, + "end": 6731, "loc": { "start": { - "line": 242, + "line": 254, "column": 21 }, "end": { - "line": 242, + "line": 254, "column": 22 } } @@ -59685,15 +62954,15 @@ "binop": null }, "value": "top", - "start": 6555, - "end": 6558, + "start": 6731, + "end": 6734, "loc": { "start": { - "line": 242, + "line": 254, "column": 22 }, "end": { - "line": 242, + "line": 254, "column": 25 } } @@ -59712,15 +62981,15 @@ "updateContext": null }, "value": "+", - "start": 6559, - "end": 6560, + "start": 6735, + "end": 6736, "loc": { "start": { - "line": 242, + "line": 254, "column": 26 }, "end": { - "line": 242, + "line": 254, "column": 27 } } @@ -59738,15 +63007,15 @@ "binop": null }, "value": "rect", - "start": 6561, - "end": 6565, + "start": 6737, + "end": 6741, "loc": { "start": { - "line": 242, + "line": 254, "column": 28 }, "end": { - "line": 242, + "line": 254, "column": 32 } } @@ -59764,15 +63033,15 @@ "binop": null, "updateContext": null }, - "start": 6565, - "end": 6566, + "start": 6741, + "end": 6742, "loc": { "start": { - "line": 242, + "line": 254, "column": 32 }, "end": { - "line": 242, + "line": 254, "column": 33 } } @@ -59790,15 +63059,15 @@ "binop": null }, "value": "height", - "start": 6566, - "end": 6572, + "start": 6742, + "end": 6748, "loc": { "start": { - "line": 242, + "line": 254, "column": 33 }, "end": { - "line": 242, + "line": 254, "column": 39 } } @@ -59817,15 +63086,15 @@ "updateContext": null }, "value": "-", - "start": 6573, - "end": 6574, + "start": 6749, + "end": 6750, "loc": { "start": { - "line": 242, + "line": 254, "column": 40 }, "end": { - "line": 242, + "line": 254, "column": 41 } } @@ -59843,15 +63112,15 @@ "binop": null }, "value": "center", - "start": 6575, - "end": 6581, + "start": 6751, + "end": 6757, "loc": { "start": { - "line": 242, + "line": 254, "column": 42 }, "end": { - "line": 242, + "line": 254, "column": 48 } } @@ -59869,15 +63138,15 @@ "binop": null, "updateContext": null }, - "start": 6581, - "end": 6582, + "start": 6757, + "end": 6758, "loc": { "start": { - "line": 242, + "line": 254, "column": 48 }, "end": { - "line": 242, + "line": 254, "column": 49 } } @@ -59895,15 +63164,15 @@ "binop": null }, "value": "y", - "start": 6582, - "end": 6583, + "start": 6758, + "end": 6759, "loc": { "start": { - "line": 242, + "line": 254, "column": 49 }, "end": { - "line": 242, + "line": 254, "column": 50 } } @@ -59921,15 +63190,15 @@ "binop": null, "updateContext": null }, - "start": 6583, - "end": 6584, + "start": 6759, + "end": 6760, "loc": { "start": { - "line": 242, + "line": 254, "column": 50 }, "end": { - "line": 242, + "line": 254, "column": 51 } } @@ -59949,15 +63218,15 @@ "updateContext": null }, "value": "let", - "start": 6593, - "end": 6596, + "start": 6769, + "end": 6772, "loc": { "start": { - "line": 243, + "line": 255, "column": 8 }, "end": { - "line": 243, + "line": 255, "column": 11 } } @@ -59975,15 +63244,15 @@ "binop": null }, "value": "x3", - "start": 6597, - "end": 6599, + "start": 6773, + "end": 6775, "loc": { "start": { - "line": 243, + "line": 255, "column": 12 }, "end": { - "line": 243, + "line": 255, "column": 14 } } @@ -60002,15 +63271,15 @@ "updateContext": null }, "value": "=", - "start": 6600, - "end": 6601, + "start": 6776, + "end": 6777, "loc": { "start": { - "line": 243, + "line": 255, "column": 15 }, "end": { - "line": 243, + "line": 255, "column": 16 } } @@ -60028,15 +63297,15 @@ "binop": null }, "value": "y3", - "start": 6602, - "end": 6604, + "start": 6778, + "end": 6780, "loc": { "start": { - "line": 243, + "line": 255, "column": 17 }, "end": { - "line": 243, + "line": 255, "column": 19 } } @@ -60055,15 +63324,15 @@ "updateContext": null }, "value": "/", - "start": 6605, - "end": 6606, + "start": 6781, + "end": 6782, "loc": { "start": { - "line": 243, + "line": 255, "column": 20 }, "end": { - "line": 243, + "line": 255, "column": 21 } } @@ -60081,15 +63350,15 @@ "binop": null }, "value": "scale", - "start": 6607, - "end": 6612, + "start": 6783, + "end": 6788, "loc": { "start": { - "line": 243, + "line": 255, "column": 22 }, "end": { - "line": 243, + "line": 255, "column": 27 } } @@ -60107,15 +63376,15 @@ "binop": null, "updateContext": null }, - "start": 6612, - "end": 6613, + "start": 6788, + "end": 6789, "loc": { "start": { - "line": 243, + "line": 255, "column": 27 }, "end": { - "line": 243, + "line": 255, "column": 28 } } @@ -60133,15 +63402,15 @@ "binop": null }, "value": "res", - "start": 6622, - "end": 6625, + "start": 6798, + "end": 6801, "loc": { "start": { - "line": 244, + "line": 256, "column": 8 }, "end": { - "line": 244, + "line": 256, "column": 11 } } @@ -60160,15 +63429,15 @@ "updateContext": null }, "value": "=", - "start": 6626, - "end": 6627, + "start": 6802, + "end": 6803, "loc": { "start": { - "line": 244, + "line": 256, "column": 12 }, "end": { - "line": 244, + "line": 256, "column": 13 } } @@ -60185,15 +63454,15 @@ "postfix": false, "binop": null }, - "start": 6628, - "end": 6629, + "start": 6804, + "end": 6805, "loc": { "start": { - "line": 244, + "line": 256, "column": 14 }, "end": { - "line": 244, + "line": 256, "column": 15 } } @@ -60211,15 +63480,15 @@ "binop": null }, "value": "y", - "start": 6642, - "end": 6643, + "start": 6818, + "end": 6819, "loc": { "start": { - "line": 245, + "line": 257, "column": 12 }, "end": { - "line": 245, + "line": 257, "column": 13 } } @@ -60237,15 +63506,15 @@ "binop": null, "updateContext": null }, - "start": 6643, - "end": 6644, + "start": 6819, + "end": 6820, "loc": { "start": { - "line": 245, + "line": 257, "column": 13 }, "end": { - "line": 245, + "line": 257, "column": 14 } } @@ -60263,15 +63532,15 @@ "binop": null }, "value": "center", - "start": 6645, - "end": 6651, + "start": 6821, + "end": 6827, "loc": { "start": { - "line": 245, + "line": 257, "column": 15 }, "end": { - "line": 245, + "line": 257, "column": 21 } } @@ -60289,15 +63558,15 @@ "binop": null, "updateContext": null }, - "start": 6651, - "end": 6652, + "start": 6827, + "end": 6828, "loc": { "start": { - "line": 245, + "line": 257, "column": 21 }, "end": { - "line": 245, + "line": 257, "column": 22 } } @@ -60315,15 +63584,15 @@ "binop": null }, "value": "y", - "start": 6652, - "end": 6653, + "start": 6828, + "end": 6829, "loc": { "start": { - "line": 245, + "line": 257, "column": 22 }, "end": { - "line": 245, + "line": 257, "column": 23 } } @@ -60342,15 +63611,15 @@ "updateContext": null }, "value": "+", - "start": 6654, - "end": 6655, + "start": 6830, + "end": 6831, "loc": { "start": { - "line": 245, + "line": 257, "column": 24 }, "end": { - "line": 245, + "line": 257, "column": 25 } } @@ -60368,15 +63637,15 @@ "binop": null }, "value": "y3", - "start": 6656, - "end": 6658, + "start": 6832, + "end": 6834, "loc": { "start": { - "line": 245, + "line": 257, "column": 26 }, "end": { - "line": 245, + "line": 257, "column": 28 } } @@ -60394,15 +63663,15 @@ "binop": null, "updateContext": null }, - "start": 6658, - "end": 6659, + "start": 6834, + "end": 6835, "loc": { "start": { - "line": 245, + "line": 257, "column": 28 }, "end": { - "line": 245, + "line": 257, "column": 29 } } @@ -60420,15 +63689,15 @@ "binop": null }, "value": "x", - "start": 6672, - "end": 6673, + "start": 6848, + "end": 6849, "loc": { "start": { - "line": 246, + "line": 258, "column": 12 }, "end": { - "line": 246, + "line": 258, "column": 13 } } @@ -60446,15 +63715,15 @@ "binop": null, "updateContext": null }, - "start": 6673, - "end": 6674, + "start": 6849, + "end": 6850, "loc": { "start": { - "line": 246, + "line": 258, "column": 13 }, "end": { - "line": 246, + "line": 258, "column": 14 } } @@ -60472,15 +63741,15 @@ "binop": null }, "value": "center", - "start": 6675, - "end": 6681, + "start": 6851, + "end": 6857, "loc": { "start": { - "line": 246, + "line": 258, "column": 15 }, "end": { - "line": 246, + "line": 258, "column": 21 } } @@ -60498,15 +63767,15 @@ "binop": null, "updateContext": null }, - "start": 6681, - "end": 6682, + "start": 6857, + "end": 6858, "loc": { "start": { - "line": 246, + "line": 258, "column": 21 }, "end": { - "line": 246, + "line": 258, "column": 22 } } @@ -60524,15 +63793,15 @@ "binop": null }, "value": "x", - "start": 6682, - "end": 6683, + "start": 6858, + "end": 6859, "loc": { "start": { - "line": 246, + "line": 258, "column": 22 }, "end": { - "line": 246, + "line": 258, "column": 23 } } @@ -60551,15 +63820,15 @@ "updateContext": null }, "value": "+", - "start": 6684, - "end": 6685, + "start": 6860, + "end": 6861, "loc": { "start": { - "line": 246, + "line": 258, "column": 24 }, "end": { - "line": 246, + "line": 258, "column": 25 } } @@ -60577,15 +63846,15 @@ "binop": null }, "value": "x3", - "start": 6686, - "end": 6688, + "start": 6862, + "end": 6864, "loc": { "start": { - "line": 246, + "line": 258, "column": 26 }, "end": { - "line": 246, + "line": 258, "column": 28 } } @@ -60602,15 +63871,15 @@ "postfix": false, "binop": null }, - "start": 6697, - "end": 6698, + "start": 6873, + "end": 6874, "loc": { "start": { - "line": 247, + "line": 259, "column": 8 }, "end": { - "line": 247, + "line": 259, "column": 9 } } @@ -60627,15 +63896,15 @@ "postfix": false, "binop": null }, - "start": 6703, - "end": 6704, + "start": 6879, + "end": 6880, "loc": { "start": { - "line": 248, + "line": 260, "column": 4 }, "end": { - "line": 248, + "line": 260, "column": 5 } } @@ -60655,15 +63924,15 @@ "updateContext": null }, "value": "else", - "start": 6705, - "end": 6709, + "start": 6881, + "end": 6885, "loc": { "start": { - "line": 248, + "line": 260, "column": 6 }, "end": { - "line": 248, + "line": 260, "column": 10 } } @@ -60683,15 +63952,15 @@ "updateContext": null }, "value": "if", - "start": 6710, - "end": 6712, + "start": 6886, + "end": 6888, "loc": { "start": { - "line": 248, + "line": 260, "column": 11 }, "end": { - "line": 248, + "line": 260, "column": 13 } } @@ -60708,15 +63977,15 @@ "postfix": false, "binop": null }, - "start": 6713, - "end": 6714, + "start": 6889, + "end": 6890, "loc": { "start": { - "line": 248, + "line": 260, "column": 14 }, "end": { - "line": 248, + "line": 260, "column": 15 } } @@ -60734,15 +64003,15 @@ "binop": null }, "value": "angleTarget", - "start": 6714, - "end": 6725, + "start": 6890, + "end": 6901, "loc": { "start": { - "line": 248, + "line": 260, "column": 15 }, "end": { - "line": 248, + "line": 260, "column": 26 } } @@ -60761,15 +64030,15 @@ "updateContext": null }, "value": "<", - "start": 6726, - "end": 6727, + "start": 6902, + "end": 6903, "loc": { "start": { - "line": 248, + "line": 260, "column": 27 }, "end": { - "line": 248, + "line": 260, "column": 28 } } @@ -60787,15 +64056,15 @@ "binop": null }, "value": "angleLeftTop", - "start": 6728, - "end": 6740, + "start": 6904, + "end": 6916, "loc": { "start": { - "line": 248, + "line": 260, "column": 29 }, "end": { - "line": 248, + "line": 260, "column": 41 } } @@ -60812,15 +64081,15 @@ "postfix": false, "binop": null }, - "start": 6740, - "end": 6741, + "start": 6916, + "end": 6917, "loc": { "start": { - "line": 248, + "line": 260, "column": 41 }, "end": { - "line": 248, + "line": 260, "column": 42 } } @@ -60837,15 +64106,15 @@ "postfix": false, "binop": null }, - "start": 6742, - "end": 6743, + "start": 6918, + "end": 6919, "loc": { "start": { - "line": 248, + "line": 260, "column": 43 }, "end": { - "line": 248, + "line": 260, "column": 44 } } @@ -60865,15 +64134,15 @@ "updateContext": null }, "value": "let", - "start": 6752, - "end": 6755, + "start": 6928, + "end": 6931, "loc": { "start": { - "line": 249, + "line": 261, "column": 8 }, "end": { - "line": 249, + "line": 261, "column": 11 } } @@ -60891,15 +64160,15 @@ "binop": null }, "value": "x3", - "start": 6756, - "end": 6758, + "start": 6932, + "end": 6934, "loc": { "start": { - "line": 249, + "line": 261, "column": 12 }, "end": { - "line": 249, + "line": 261, "column": 14 } } @@ -60918,15 +64187,15 @@ "updateContext": null }, "value": "=", - "start": 6759, - "end": 6760, + "start": 6935, + "end": 6936, "loc": { "start": { - "line": 249, + "line": 261, "column": 15 }, "end": { - "line": 249, + "line": 261, "column": 16 } } @@ -60944,15 +64213,15 @@ "binop": null }, "value": "center", - "start": 6761, - "end": 6767, + "start": 6937, + "end": 6943, "loc": { "start": { - "line": 249, + "line": 261, "column": 17 }, "end": { - "line": 249, + "line": 261, "column": 23 } } @@ -60970,15 +64239,15 @@ "binop": null, "updateContext": null }, - "start": 6767, - "end": 6768, + "start": 6943, + "end": 6944, "loc": { "start": { - "line": 249, + "line": 261, "column": 23 }, "end": { - "line": 249, + "line": 261, "column": 24 } } @@ -60996,15 +64265,15 @@ "binop": null }, "value": "x", - "start": 6768, - "end": 6769, + "start": 6944, + "end": 6945, "loc": { "start": { - "line": 249, + "line": 261, "column": 24 }, "end": { - "line": 249, + "line": 261, "column": 25 } } @@ -61023,15 +64292,15 @@ "updateContext": null }, "value": "-", - "start": 6770, - "end": 6771, + "start": 6946, + "end": 6947, "loc": { "start": { - "line": 249, + "line": 261, "column": 26 }, "end": { - "line": 249, + "line": 261, "column": 27 } } @@ -61049,15 +64318,15 @@ "binop": null }, "value": "rect", - "start": 6772, - "end": 6776, + "start": 6948, + "end": 6952, "loc": { "start": { - "line": 249, + "line": 261, "column": 28 }, "end": { - "line": 249, + "line": 261, "column": 32 } } @@ -61075,15 +64344,15 @@ "binop": null, "updateContext": null }, - "start": 6776, - "end": 6777, + "start": 6952, + "end": 6953, "loc": { "start": { - "line": 249, + "line": 261, "column": 32 }, "end": { - "line": 249, + "line": 261, "column": 33 } } @@ -61101,15 +64370,15 @@ "binop": null }, "value": "left", - "start": 6777, - "end": 6781, + "start": 6953, + "end": 6957, "loc": { "start": { - "line": 249, + "line": 261, "column": 33 }, "end": { - "line": 249, + "line": 261, "column": 37 } } @@ -61127,15 +64396,15 @@ "binop": null, "updateContext": null }, - "start": 6781, - "end": 6782, + "start": 6957, + "end": 6958, "loc": { "start": { - "line": 249, + "line": 261, "column": 37 }, "end": { - "line": 249, + "line": 261, "column": 38 } } @@ -61155,15 +64424,15 @@ "updateContext": null }, "value": "let", - "start": 6791, - "end": 6794, + "start": 6967, + "end": 6970, "loc": { "start": { - "line": 250, + "line": 262, "column": 8 }, "end": { - "line": 250, + "line": 262, "column": 11 } } @@ -61181,15 +64450,15 @@ "binop": null }, "value": "y3", - "start": 6795, - "end": 6797, + "start": 6971, + "end": 6973, "loc": { "start": { - "line": 250, + "line": 262, "column": 12 }, "end": { - "line": 250, + "line": 262, "column": 14 } } @@ -61208,15 +64477,15 @@ "updateContext": null }, "value": "=", - "start": 6798, - "end": 6799, + "start": 6974, + "end": 6975, "loc": { "start": { - "line": 250, + "line": 262, "column": 15 }, "end": { - "line": 250, + "line": 262, "column": 16 } } @@ -61234,15 +64503,15 @@ "binop": null }, "value": "x3", - "start": 6800, - "end": 6802, + "start": 6976, + "end": 6978, "loc": { "start": { - "line": 250, + "line": 262, "column": 17 }, "end": { - "line": 250, + "line": 262, "column": 19 } } @@ -61261,15 +64530,15 @@ "updateContext": null }, "value": "*", - "start": 6803, - "end": 6804, + "start": 6979, + "end": 6980, "loc": { "start": { - "line": 250, + "line": 262, "column": 20 }, "end": { - "line": 250, + "line": 262, "column": 21 } } @@ -61287,15 +64556,15 @@ "binop": null }, "value": "scale", - "start": 6805, - "end": 6810, + "start": 6981, + "end": 6986, "loc": { "start": { - "line": 250, + "line": 262, "column": 22 }, "end": { - "line": 250, + "line": 262, "column": 27 } } @@ -61313,15 +64582,15 @@ "binop": null, "updateContext": null }, - "start": 6810, - "end": 6811, + "start": 6986, + "end": 6987, "loc": { "start": { - "line": 250, + "line": 262, "column": 27 }, "end": { - "line": 250, + "line": 262, "column": 28 } } @@ -61339,15 +64608,15 @@ "binop": null }, "value": "res", - "start": 6820, - "end": 6823, + "start": 6996, + "end": 6999, "loc": { "start": { - "line": 251, + "line": 263, "column": 8 }, "end": { - "line": 251, + "line": 263, "column": 11 } } @@ -61366,15 +64635,15 @@ "updateContext": null }, "value": "=", - "start": 6824, - "end": 6825, + "start": 7000, + "end": 7001, "loc": { "start": { - "line": 251, + "line": 263, "column": 12 }, "end": { - "line": 251, + "line": 263, "column": 13 } } @@ -61391,15 +64660,15 @@ "postfix": false, "binop": null }, - "start": 6826, - "end": 6827, + "start": 7002, + "end": 7003, "loc": { "start": { - "line": 251, + "line": 263, "column": 14 }, "end": { - "line": 251, + "line": 263, "column": 15 } } @@ -61417,15 +64686,15 @@ "binop": null }, "value": "y", - "start": 6840, - "end": 6841, + "start": 7016, + "end": 7017, "loc": { "start": { - "line": 252, + "line": 264, "column": 12 }, "end": { - "line": 252, + "line": 264, "column": 13 } } @@ -61443,15 +64712,15 @@ "binop": null, "updateContext": null }, - "start": 6841, - "end": 6842, + "start": 7017, + "end": 7018, "loc": { "start": { - "line": 252, + "line": 264, "column": 13 }, "end": { - "line": 252, + "line": 264, "column": 14 } } @@ -61469,15 +64738,15 @@ "binop": null }, "value": "center", - "start": 6843, - "end": 6849, + "start": 7019, + "end": 7025, "loc": { "start": { - "line": 252, + "line": 264, "column": 15 }, "end": { - "line": 252, + "line": 264, "column": 21 } } @@ -61495,15 +64764,15 @@ "binop": null, "updateContext": null }, - "start": 6849, - "end": 6850, + "start": 7025, + "end": 7026, "loc": { "start": { - "line": 252, + "line": 264, "column": 21 }, "end": { - "line": 252, + "line": 264, "column": 22 } } @@ -61521,15 +64790,15 @@ "binop": null }, "value": "y", - "start": 6850, - "end": 6851, + "start": 7026, + "end": 7027, "loc": { "start": { - "line": 252, + "line": 264, "column": 22 }, "end": { - "line": 252, + "line": 264, "column": 23 } } @@ -61548,15 +64817,15 @@ "updateContext": null }, "value": "-", - "start": 6852, - "end": 6853, + "start": 7028, + "end": 7029, "loc": { "start": { - "line": 252, + "line": 264, "column": 24 }, "end": { - "line": 252, + "line": 264, "column": 25 } } @@ -61574,15 +64843,15 @@ "binop": null }, "value": "y3", - "start": 6854, - "end": 6856, + "start": 7030, + "end": 7032, "loc": { "start": { - "line": 252, + "line": 264, "column": 26 }, "end": { - "line": 252, + "line": 264, "column": 28 } } @@ -61600,15 +64869,15 @@ "binop": null, "updateContext": null }, - "start": 6856, - "end": 6857, + "start": 7032, + "end": 7033, "loc": { "start": { - "line": 252, + "line": 264, "column": 28 }, "end": { - "line": 252, + "line": 264, "column": 29 } } @@ -61626,15 +64895,15 @@ "binop": null }, "value": "x", - "start": 6870, - "end": 6871, + "start": 7046, + "end": 7047, "loc": { "start": { - "line": 253, + "line": 265, "column": 12 }, "end": { - "line": 253, + "line": 265, "column": 13 } } @@ -61652,15 +64921,15 @@ "binop": null, "updateContext": null }, - "start": 6871, - "end": 6872, + "start": 7047, + "end": 7048, "loc": { "start": { - "line": 253, + "line": 265, "column": 13 }, "end": { - "line": 253, + "line": 265, "column": 14 } } @@ -61678,15 +64947,15 @@ "binop": null }, "value": "center", - "start": 6873, - "end": 6879, + "start": 7049, + "end": 7055, "loc": { "start": { - "line": 253, + "line": 265, "column": 15 }, "end": { - "line": 253, + "line": 265, "column": 21 } } @@ -61704,15 +64973,15 @@ "binop": null, "updateContext": null }, - "start": 6879, - "end": 6880, + "start": 7055, + "end": 7056, "loc": { "start": { - "line": 253, + "line": 265, "column": 21 }, "end": { - "line": 253, + "line": 265, "column": 22 } } @@ -61730,15 +64999,15 @@ "binop": null }, "value": "x", - "start": 6880, - "end": 6881, + "start": 7056, + "end": 7057, "loc": { "start": { - "line": 253, + "line": 265, "column": 22 }, "end": { - "line": 253, + "line": 265, "column": 23 } } @@ -61757,15 +65026,15 @@ "updateContext": null }, "value": "-", - "start": 6882, - "end": 6883, + "start": 7058, + "end": 7059, "loc": { "start": { - "line": 253, + "line": 265, "column": 24 }, "end": { - "line": 253, + "line": 265, "column": 25 } } @@ -61783,15 +65052,15 @@ "binop": null }, "value": "x3", - "start": 6884, - "end": 6886, + "start": 7060, + "end": 7062, "loc": { "start": { - "line": 253, + "line": 265, "column": 26 }, "end": { - "line": 253, + "line": 265, "column": 28 } } @@ -61808,15 +65077,15 @@ "postfix": false, "binop": null }, - "start": 6895, - "end": 6896, + "start": 7071, + "end": 7072, "loc": { "start": { - "line": 254, + "line": 266, "column": 8 }, "end": { - "line": 254, + "line": 266, "column": 9 } } @@ -61833,15 +65102,15 @@ "postfix": false, "binop": null }, - "start": 6901, - "end": 6902, + "start": 7077, + "end": 7078, "loc": { "start": { - "line": 255, + "line": 267, "column": 4 }, "end": { - "line": 255, + "line": 267, "column": 5 } } @@ -61861,15 +65130,15 @@ "updateContext": null }, "value": "else", - "start": 6903, - "end": 6907, + "start": 7079, + "end": 7083, "loc": { "start": { - "line": 255, + "line": 267, "column": 6 }, "end": { - "line": 255, + "line": 267, "column": 10 } } @@ -61886,15 +65155,15 @@ "postfix": false, "binop": null }, - "start": 6908, - "end": 6909, + "start": 7084, + "end": 7085, "loc": { "start": { - "line": 255, + "line": 267, "column": 11 }, "end": { - "line": 255, + "line": 267, "column": 12 } } @@ -61914,15 +65183,15 @@ "updateContext": null }, "value": "let", - "start": 6918, - "end": 6921, + "start": 7094, + "end": 7097, "loc": { "start": { - "line": 256, + "line": 268, "column": 8 }, "end": { - "line": 256, + "line": 268, "column": 11 } } @@ -61940,15 +65209,15 @@ "binop": null }, "value": "y3", - "start": 6922, - "end": 6924, + "start": 7098, + "end": 7100, "loc": { "start": { - "line": 256, + "line": 268, "column": 12 }, "end": { - "line": 256, + "line": 268, "column": 14 } } @@ -61967,15 +65236,15 @@ "updateContext": null }, "value": "=", - "start": 6925, - "end": 6926, + "start": 7101, + "end": 7102, "loc": { "start": { - "line": 256, + "line": 268, "column": 15 }, "end": { - "line": 256, + "line": 268, "column": 16 } } @@ -61993,15 +65262,15 @@ "binop": null }, "value": "rect", - "start": 6927, - "end": 6931, + "start": 7103, + "end": 7107, "loc": { "start": { - "line": 256, + "line": 268, "column": 17 }, "end": { - "line": 256, + "line": 268, "column": 21 } } @@ -62019,15 +65288,15 @@ "binop": null, "updateContext": null }, - "start": 6931, - "end": 6932, + "start": 7107, + "end": 7108, "loc": { "start": { - "line": 256, + "line": 268, "column": 21 }, "end": { - "line": 256, + "line": 268, "column": 22 } } @@ -62045,15 +65314,15 @@ "binop": null }, "value": "top", - "start": 6932, - "end": 6935, + "start": 7108, + "end": 7111, "loc": { "start": { - "line": 256, + "line": 268, "column": 22 }, "end": { - "line": 256, + "line": 268, "column": 25 } } @@ -62072,15 +65341,15 @@ "updateContext": null }, "value": "-", - "start": 6936, - "end": 6937, + "start": 7112, + "end": 7113, "loc": { "start": { - "line": 256, + "line": 268, "column": 26 }, "end": { - "line": 256, + "line": 268, "column": 27 } } @@ -62098,15 +65367,15 @@ "binop": null }, "value": "center", - "start": 6938, - "end": 6944, + "start": 7114, + "end": 7120, "loc": { "start": { - "line": 256, + "line": 268, "column": 28 }, "end": { - "line": 256, + "line": 268, "column": 34 } } @@ -62124,15 +65393,15 @@ "binop": null, "updateContext": null }, - "start": 6944, - "end": 6945, + "start": 7120, + "end": 7121, "loc": { "start": { - "line": 256, + "line": 268, "column": 34 }, "end": { - "line": 256, + "line": 268, "column": 35 } } @@ -62150,15 +65419,15 @@ "binop": null }, "value": "y", - "start": 6945, - "end": 6946, + "start": 7121, + "end": 7122, "loc": { "start": { - "line": 256, + "line": 268, "column": 35 }, "end": { - "line": 256, + "line": 268, "column": 36 } } @@ -62176,15 +65445,15 @@ "binop": null, "updateContext": null }, - "start": 6946, - "end": 6947, + "start": 7122, + "end": 7123, "loc": { "start": { - "line": 256, + "line": 268, "column": 36 }, "end": { - "line": 256, + "line": 268, "column": 37 } } @@ -62204,15 +65473,15 @@ "updateContext": null }, "value": "let", - "start": 6956, - "end": 6959, + "start": 7132, + "end": 7135, "loc": { "start": { - "line": 257, + "line": 269, "column": 8 }, "end": { - "line": 257, + "line": 269, "column": 11 } } @@ -62230,15 +65499,15 @@ "binop": null }, "value": "x3", - "start": 6960, - "end": 6962, + "start": 7136, + "end": 7138, "loc": { "start": { - "line": 257, + "line": 269, "column": 12 }, "end": { - "line": 257, + "line": 269, "column": 14 } } @@ -62257,15 +65526,15 @@ "updateContext": null }, "value": "=", - "start": 6963, - "end": 6964, + "start": 7139, + "end": 7140, "loc": { "start": { - "line": 257, + "line": 269, "column": 15 }, "end": { - "line": 257, + "line": 269, "column": 16 } } @@ -62283,15 +65552,15 @@ "binop": null }, "value": "y3", - "start": 6965, - "end": 6967, + "start": 7141, + "end": 7143, "loc": { "start": { - "line": 257, + "line": 269, "column": 17 }, "end": { - "line": 257, + "line": 269, "column": 19 } } @@ -62310,15 +65579,15 @@ "updateContext": null }, "value": "/", - "start": 6968, - "end": 6969, + "start": 7144, + "end": 7145, "loc": { "start": { - "line": 257, + "line": 269, "column": 20 }, "end": { - "line": 257, + "line": 269, "column": 21 } } @@ -62336,15 +65605,15 @@ "binop": null }, "value": "scale", - "start": 6970, - "end": 6975, + "start": 7146, + "end": 7151, "loc": { "start": { - "line": 257, + "line": 269, "column": 22 }, "end": { - "line": 257, + "line": 269, "column": 27 } } @@ -62362,15 +65631,15 @@ "binop": null, "updateContext": null }, - "start": 6975, - "end": 6976, + "start": 7151, + "end": 7152, "loc": { "start": { - "line": 257, + "line": 269, "column": 27 }, "end": { - "line": 257, + "line": 269, "column": 28 } } @@ -62388,15 +65657,15 @@ "binop": null }, "value": "res", - "start": 6985, - "end": 6988, + "start": 7161, + "end": 7164, "loc": { "start": { - "line": 258, + "line": 270, "column": 8 }, "end": { - "line": 258, + "line": 270, "column": 11 } } @@ -62415,15 +65684,15 @@ "updateContext": null }, "value": "=", - "start": 6989, - "end": 6990, + "start": 7165, + "end": 7166, "loc": { "start": { - "line": 258, + "line": 270, "column": 12 }, "end": { - "line": 258, + "line": 270, "column": 13 } } @@ -62440,15 +65709,15 @@ "postfix": false, "binop": null }, - "start": 6991, - "end": 6992, + "start": 7167, + "end": 7168, "loc": { "start": { - "line": 258, + "line": 270, "column": 14 }, "end": { - "line": 258, + "line": 270, "column": 15 } } @@ -62466,15 +65735,15 @@ "binop": null }, "value": "y", - "start": 7005, - "end": 7006, + "start": 7181, + "end": 7182, "loc": { "start": { - "line": 259, + "line": 271, "column": 12 }, "end": { - "line": 259, + "line": 271, "column": 13 } } @@ -62492,15 +65761,15 @@ "binop": null, "updateContext": null }, - "start": 7006, - "end": 7007, + "start": 7182, + "end": 7183, "loc": { "start": { - "line": 259, + "line": 271, "column": 13 }, "end": { - "line": 259, + "line": 271, "column": 14 } } @@ -62518,15 +65787,15 @@ "binop": null }, "value": "center", - "start": 7008, - "end": 7014, + "start": 7184, + "end": 7190, "loc": { "start": { - "line": 259, + "line": 271, "column": 15 }, "end": { - "line": 259, + "line": 271, "column": 21 } } @@ -62544,15 +65813,15 @@ "binop": null, "updateContext": null }, - "start": 7014, - "end": 7015, + "start": 7190, + "end": 7191, "loc": { "start": { - "line": 259, + "line": 271, "column": 21 }, "end": { - "line": 259, + "line": 271, "column": 22 } } @@ -62570,15 +65839,15 @@ "binop": null }, "value": "y", - "start": 7015, - "end": 7016, + "start": 7191, + "end": 7192, "loc": { "start": { - "line": 259, + "line": 271, "column": 22 }, "end": { - "line": 259, + "line": 271, "column": 23 } } @@ -62597,15 +65866,15 @@ "updateContext": null }, "value": "+", - "start": 7017, - "end": 7018, + "start": 7193, + "end": 7194, "loc": { "start": { - "line": 259, + "line": 271, "column": 24 }, "end": { - "line": 259, + "line": 271, "column": 25 } } @@ -62623,15 +65892,15 @@ "binop": null }, "value": "y3", - "start": 7019, - "end": 7021, + "start": 7195, + "end": 7197, "loc": { "start": { - "line": 259, + "line": 271, "column": 26 }, "end": { - "line": 259, + "line": 271, "column": 28 } } @@ -62649,15 +65918,15 @@ "binop": null, "updateContext": null }, - "start": 7021, - "end": 7022, + "start": 7197, + "end": 7198, "loc": { "start": { - "line": 259, + "line": 271, "column": 28 }, "end": { - "line": 259, + "line": 271, "column": 29 } } @@ -62675,15 +65944,15 @@ "binop": null }, "value": "x", - "start": 7035, - "end": 7036, + "start": 7211, + "end": 7212, "loc": { "start": { - "line": 260, + "line": 272, "column": 12 }, "end": { - "line": 260, + "line": 272, "column": 13 } } @@ -62701,15 +65970,15 @@ "binop": null, "updateContext": null }, - "start": 7036, - "end": 7037, + "start": 7212, + "end": 7213, "loc": { "start": { - "line": 260, + "line": 272, "column": 13 }, "end": { - "line": 260, + "line": 272, "column": 14 } } @@ -62727,15 +65996,15 @@ "binop": null }, "value": "center", - "start": 7038, - "end": 7044, + "start": 7214, + "end": 7220, "loc": { "start": { - "line": 260, + "line": 272, "column": 15 }, "end": { - "line": 260, + "line": 272, "column": 21 } } @@ -62753,15 +66022,15 @@ "binop": null, "updateContext": null }, - "start": 7044, - "end": 7045, + "start": 7220, + "end": 7221, "loc": { "start": { - "line": 260, + "line": 272, "column": 21 }, "end": { - "line": 260, + "line": 272, "column": 22 } } @@ -62779,15 +66048,15 @@ "binop": null }, "value": "x", - "start": 7045, - "end": 7046, + "start": 7221, + "end": 7222, "loc": { "start": { - "line": 260, + "line": 272, "column": 22 }, "end": { - "line": 260, + "line": 272, "column": 23 } } @@ -62806,15 +66075,15 @@ "updateContext": null }, "value": "+", - "start": 7047, - "end": 7048, + "start": 7223, + "end": 7224, "loc": { "start": { - "line": 260, + "line": 272, "column": 24 }, "end": { - "line": 260, + "line": 272, "column": 25 } } @@ -62832,15 +66101,15 @@ "binop": null }, "value": "x3", - "start": 7049, - "end": 7051, + "start": 7225, + "end": 7227, "loc": { "start": { - "line": 260, + "line": 272, "column": 26 }, "end": { - "line": 260, + "line": 272, "column": 28 } } @@ -62857,15 +66126,15 @@ "postfix": false, "binop": null }, - "start": 7060, - "end": 7061, + "start": 7236, + "end": 7237, "loc": { "start": { - "line": 261, + "line": 273, "column": 8 }, "end": { - "line": 261, + "line": 273, "column": 9 } } @@ -62882,15 +66151,15 @@ "postfix": false, "binop": null }, - "start": 7066, - "end": 7067, + "start": 7242, + "end": 7243, "loc": { "start": { - "line": 262, + "line": 274, "column": 4 }, "end": { - "line": 262, + "line": 274, "column": 5 } } @@ -62910,15 +66179,15 @@ "updateContext": null }, "value": "return", - "start": 7073, - "end": 7079, + "start": 7249, + "end": 7255, "loc": { "start": { - "line": 264, + "line": 276, "column": 4 }, "end": { - "line": 264, + "line": 276, "column": 10 } } @@ -62936,15 +66205,15 @@ "binop": null }, "value": "res", - "start": 7080, - "end": 7083, + "start": 7256, + "end": 7259, "loc": { "start": { - "line": 264, + "line": 276, "column": 11 }, "end": { - "line": 264, + "line": 276, "column": 14 } } @@ -62962,15 +66231,15 @@ "binop": null, "updateContext": null }, - "start": 7083, - "end": 7084, + "start": 7259, + "end": 7260, "loc": { "start": { - "line": 264, + "line": 276, "column": 14 }, "end": { - "line": 264, + "line": 276, "column": 15 } } @@ -62987,15 +66256,15 @@ "postfix": false, "binop": null }, - "start": 7085, - "end": 7086, + "start": 7261, + "end": 7262, "loc": { "start": { - "line": 265, + "line": 277, "column": 0 }, "end": { - "line": 265, + "line": 277, "column": 1 } } @@ -63014,15 +66283,15 @@ "binop": null }, "value": "function", - "start": 7088, - "end": 7096, + "start": 7264, + "end": 7272, "loc": { "start": { - "line": 267, + "line": 279, "column": 0 }, "end": { - "line": 267, + "line": 279, "column": 8 } } @@ -63040,15 +66309,15 @@ "binop": null }, "value": "modelTurnHead", - "start": 7097, - "end": 7110, + "start": 7273, + "end": 7286, "loc": { "start": { - "line": 267, + "line": 279, "column": 9 }, "end": { - "line": 267, + "line": 279, "column": 22 } } @@ -63065,15 +66334,15 @@ "postfix": false, "binop": null }, - "start": 7110, - "end": 7111, + "start": 7286, + "end": 7287, "loc": { "start": { - "line": 267, + "line": 279, "column": 22 }, "end": { - "line": 267, + "line": 279, "column": 23 } } @@ -63091,15 +66360,15 @@ "binop": null }, "value": "event", - "start": 7111, - "end": 7116, + "start": 7287, + "end": 7292, "loc": { "start": { - "line": 267, + "line": 279, "column": 23 }, "end": { - "line": 267, + "line": 279, "column": 28 } } @@ -63116,15 +66385,15 @@ "postfix": false, "binop": null }, - "start": 7116, - "end": 7117, + "start": 7292, + "end": 7293, "loc": { "start": { - "line": 267, + "line": 279, "column": 28 }, "end": { - "line": 267, + "line": 279, "column": 29 } } @@ -63141,15 +66410,15 @@ "postfix": false, "binop": null }, - "start": 7118, - "end": 7119, + "start": 7294, + "end": 7295, "loc": { "start": { - "line": 268, + "line": 280, "column": 0 }, "end": { - "line": 268, + "line": 280, "column": 1 } } @@ -63167,15 +66436,15 @@ "binop": null }, "value": "drag", - "start": 7124, - "end": 7128, + "start": 7300, + "end": 7304, "loc": { "start": { - "line": 269, + "line": 281, "column": 4 }, "end": { - "line": 269, + "line": 281, "column": 8 } } @@ -63194,15 +66463,15 @@ "updateContext": null }, "value": "=", - "start": 7129, - "end": 7130, + "start": 7305, + "end": 7306, "loc": { "start": { - "line": 269, + "line": 281, "column": 9 }, "end": { - "line": 269, + "line": 281, "column": 10 } } @@ -63222,15 +66491,15 @@ "updateContext": null }, "value": "true", - "start": 7131, - "end": 7135, + "start": 7307, + "end": 7311, "loc": { "start": { - "line": 269, + "line": 281, "column": 11 }, "end": { - "line": 269, + "line": 281, "column": 15 } } @@ -63248,15 +66517,15 @@ "binop": null, "updateContext": null }, - "start": 7135, - "end": 7136, + "start": 7311, + "end": 7312, "loc": { "start": { - "line": 269, + "line": 281, "column": 15 }, "end": { - "line": 269, + "line": 281, "column": 16 } } @@ -63276,15 +66545,15 @@ "updateContext": null }, "value": "let", - "start": 7142, - "end": 7145, + "start": 7318, + "end": 7321, "loc": { "start": { - "line": 271, + "line": 283, "column": 4 }, "end": { - "line": 271, + "line": 283, "column": 7 } } @@ -63302,15 +66571,15 @@ "binop": null }, "value": "rect", - "start": 7146, - "end": 7150, + "start": 7322, + "end": 7326, "loc": { "start": { - "line": 271, + "line": 283, "column": 8 }, "end": { - "line": 271, + "line": 283, "column": 12 } } @@ -63329,15 +66598,15 @@ "updateContext": null }, "value": "=", - "start": 7151, - "end": 7152, + "start": 7327, + "end": 7328, "loc": { "start": { - "line": 271, + "line": 283, "column": 13 }, "end": { - "line": 271, + "line": 283, "column": 14 } } @@ -63355,15 +66624,15 @@ "binop": null }, "value": "currCanvas", - "start": 7153, - "end": 7163, + "start": 7329, + "end": 7339, "loc": { "start": { - "line": 271, + "line": 283, "column": 15 }, "end": { - "line": 271, + "line": 283, "column": 25 } } @@ -63381,15 +66650,15 @@ "binop": null, "updateContext": null }, - "start": 7163, - "end": 7164, + "start": 7339, + "end": 7340, "loc": { "start": { - "line": 271, + "line": 283, "column": 25 }, "end": { - "line": 271, + "line": 283, "column": 26 } } @@ -63407,15 +66676,15 @@ "binop": null }, "value": "getBoundingClientRect", - "start": 7164, - "end": 7185, + "start": 7340, + "end": 7361, "loc": { "start": { - "line": 271, + "line": 283, "column": 26 }, "end": { - "line": 271, + "line": 283, "column": 47 } } @@ -63432,15 +66701,15 @@ "postfix": false, "binop": null }, - "start": 7185, - "end": 7186, + "start": 7361, + "end": 7362, "loc": { "start": { - "line": 271, + "line": 283, "column": 47 }, "end": { - "line": 271, + "line": 283, "column": 48 } } @@ -63457,15 +66726,15 @@ "postfix": false, "binop": null }, - "start": 7186, - "end": 7187, + "start": 7362, + "end": 7363, "loc": { "start": { - "line": 271, + "line": 283, "column": 48 }, "end": { - "line": 271, + "line": 283, "column": 49 } } @@ -63483,15 +66752,15 @@ "binop": null, "updateContext": null }, - "start": 7187, - "end": 7188, + "start": 7363, + "end": 7364, "loc": { "start": { - "line": 271, + "line": 283, "column": 49 }, "end": { - "line": 271, + "line": 283, "column": 50 } } @@ -63511,15 +66780,15 @@ "updateContext": null }, "value": "let", - "start": 7194, - "end": 7197, + "start": 7370, + "end": 7373, "loc": { "start": { - "line": 273, + "line": 285, "column": 4 }, "end": { - "line": 273, + "line": 285, "column": 7 } } @@ -63537,15 +66806,15 @@ "binop": null }, "value": "sx", - "start": 7198, - "end": 7200, + "start": 7374, + "end": 7376, "loc": { "start": { - "line": 273, + "line": 285, "column": 8 }, "end": { - "line": 273, + "line": 285, "column": 10 } } @@ -63564,15 +66833,15 @@ "updateContext": null }, "value": "=", - "start": 7201, - "end": 7202, + "start": 7377, + "end": 7378, "loc": { "start": { - "line": 273, + "line": 285, "column": 11 }, "end": { - "line": 273, + "line": 285, "column": 12 } } @@ -63590,15 +66859,15 @@ "binop": null }, "value": "transformScreenX", - "start": 7203, - "end": 7219, + "start": 7379, + "end": 7395, "loc": { "start": { - "line": 273, + "line": 285, "column": 13 }, "end": { - "line": 273, + "line": 285, "column": 29 } } @@ -63615,15 +66884,15 @@ "postfix": false, "binop": null }, - "start": 7219, - "end": 7220, + "start": 7395, + "end": 7396, "loc": { "start": { - "line": 273, + "line": 285, "column": 29 }, "end": { - "line": 273, + "line": 285, "column": 30 } } @@ -63641,15 +66910,15 @@ "binop": null }, "value": "event", - "start": 7220, - "end": 7225, + "start": 7396, + "end": 7401, "loc": { "start": { - "line": 273, + "line": 285, "column": 30 }, "end": { - "line": 273, + "line": 285, "column": 35 } } @@ -63667,15 +66936,15 @@ "binop": null, "updateContext": null }, - "start": 7225, - "end": 7226, + "start": 7401, + "end": 7402, "loc": { "start": { - "line": 273, + "line": 285, "column": 35 }, "end": { - "line": 273, + "line": 285, "column": 36 } } @@ -63693,15 +66962,15 @@ "binop": null }, "value": "clientX", - "start": 7226, - "end": 7233, + "start": 7402, + "end": 7409, "loc": { "start": { - "line": 273, + "line": 285, "column": 36 }, "end": { - "line": 273, + "line": 285, "column": 43 } } @@ -63720,15 +66989,15 @@ "updateContext": null }, "value": "-", - "start": 7234, - "end": 7235, + "start": 7410, + "end": 7411, "loc": { "start": { - "line": 273, + "line": 285, "column": 44 }, "end": { - "line": 273, + "line": 285, "column": 45 } } @@ -63746,15 +67015,15 @@ "binop": null }, "value": "rect", - "start": 7236, - "end": 7240, + "start": 7412, + "end": 7416, "loc": { "start": { - "line": 273, + "line": 285, "column": 46 }, "end": { - "line": 273, + "line": 285, "column": 50 } } @@ -63772,15 +67041,15 @@ "binop": null, "updateContext": null }, - "start": 7240, - "end": 7241, + "start": 7416, + "end": 7417, "loc": { "start": { - "line": 273, + "line": 285, "column": 50 }, "end": { - "line": 273, + "line": 285, "column": 51 } } @@ -63798,15 +67067,15 @@ "binop": null }, "value": "left", - "start": 7241, - "end": 7245, + "start": 7417, + "end": 7421, "loc": { "start": { - "line": 273, + "line": 285, "column": 51 }, "end": { - "line": 273, + "line": 285, "column": 55 } } @@ -63823,15 +67092,15 @@ "postfix": false, "binop": null }, - "start": 7245, - "end": 7246, + "start": 7421, + "end": 7422, "loc": { "start": { - "line": 273, + "line": 285, "column": 55 }, "end": { - "line": 273, + "line": 285, "column": 56 } } @@ -63849,15 +67118,15 @@ "binop": null, "updateContext": null }, - "start": 7246, - "end": 7247, + "start": 7422, + "end": 7423, "loc": { "start": { - "line": 273, + "line": 285, "column": 56 }, "end": { - "line": 273, + "line": 285, "column": 57 } } @@ -63877,15 +67146,15 @@ "updateContext": null }, "value": "let", - "start": 7252, - "end": 7255, + "start": 7428, + "end": 7431, "loc": { "start": { - "line": 274, + "line": 286, "column": 4 }, "end": { - "line": 274, + "line": 286, "column": 7 } } @@ -63903,15 +67172,15 @@ "binop": null }, "value": "sy", - "start": 7256, - "end": 7258, + "start": 7432, + "end": 7434, "loc": { "start": { - "line": 274, + "line": 286, "column": 8 }, "end": { - "line": 274, + "line": 286, "column": 10 } } @@ -63930,15 +67199,15 @@ "updateContext": null }, "value": "=", - "start": 7259, - "end": 7260, + "start": 7435, + "end": 7436, "loc": { "start": { - "line": 274, + "line": 286, "column": 11 }, "end": { - "line": 274, + "line": 286, "column": 12 } } @@ -63956,15 +67225,15 @@ "binop": null }, "value": "transformScreenY", - "start": 7261, - "end": 7277, + "start": 7437, + "end": 7453, "loc": { "start": { - "line": 274, + "line": 286, "column": 13 }, "end": { - "line": 274, + "line": 286, "column": 29 } } @@ -63981,15 +67250,15 @@ "postfix": false, "binop": null }, - "start": 7277, - "end": 7278, + "start": 7453, + "end": 7454, "loc": { "start": { - "line": 274, + "line": 286, "column": 29 }, "end": { - "line": 274, + "line": 286, "column": 30 } } @@ -64007,15 +67276,15 @@ "binop": null }, "value": "event", - "start": 7278, - "end": 7283, + "start": 7454, + "end": 7459, "loc": { "start": { - "line": 274, + "line": 286, "column": 30 }, "end": { - "line": 274, + "line": 286, "column": 35 } } @@ -64033,15 +67302,15 @@ "binop": null, "updateContext": null }, - "start": 7283, - "end": 7284, + "start": 7459, + "end": 7460, "loc": { "start": { - "line": 274, + "line": 286, "column": 35 }, "end": { - "line": 274, + "line": 286, "column": 36 } } @@ -64059,15 +67328,15 @@ "binop": null }, "value": "clientY", - "start": 7284, - "end": 7291, + "start": 7460, + "end": 7467, "loc": { "start": { - "line": 274, + "line": 286, "column": 36 }, "end": { - "line": 274, + "line": 286, "column": 43 } } @@ -64086,15 +67355,15 @@ "updateContext": null }, "value": "-", - "start": 7292, - "end": 7293, + "start": 7468, + "end": 7469, "loc": { "start": { - "line": 274, + "line": 286, "column": 44 }, "end": { - "line": 274, + "line": 286, "column": 45 } } @@ -64112,15 +67381,15 @@ "binop": null }, "value": "rect", - "start": 7294, - "end": 7298, + "start": 7470, + "end": 7474, "loc": { "start": { - "line": 274, + "line": 286, "column": 46 }, "end": { - "line": 274, + "line": 286, "column": 50 } } @@ -64138,15 +67407,15 @@ "binop": null, "updateContext": null }, - "start": 7298, - "end": 7299, + "start": 7474, + "end": 7475, "loc": { "start": { - "line": 274, + "line": 286, "column": 50 }, "end": { - "line": 274, + "line": 286, "column": 51 } } @@ -64164,15 +67433,15 @@ "binop": null }, "value": "top", - "start": 7299, - "end": 7302, + "start": 7475, + "end": 7478, "loc": { "start": { - "line": 274, + "line": 286, "column": 51 }, "end": { - "line": 274, + "line": 286, "column": 54 } } @@ -64189,15 +67458,15 @@ "postfix": false, "binop": null }, - "start": 7302, - "end": 7303, + "start": 7478, + "end": 7479, "loc": { "start": { - "line": 274, + "line": 286, "column": 54 }, "end": { - "line": 274, + "line": 286, "column": 55 } } @@ -64215,15 +67484,15 @@ "binop": null, "updateContext": null }, - "start": 7303, - "end": 7304, + "start": 7479, + "end": 7480, "loc": { "start": { - "line": 274, + "line": 286, "column": 55 }, "end": { - "line": 274, + "line": 286, "column": 56 } } @@ -64243,15 +67512,15 @@ "updateContext": null }, "value": "let", - "start": 7309, - "end": 7312, + "start": 7485, + "end": 7488, "loc": { "start": { - "line": 275, + "line": 287, "column": 4 }, "end": { - "line": 275, + "line": 287, "column": 7 } } @@ -64269,15 +67538,15 @@ "binop": null }, "value": "target", - "start": 7313, - "end": 7319, + "start": 7489, + "end": 7495, "loc": { "start": { - "line": 275, + "line": 287, "column": 8 }, "end": { - "line": 275, + "line": 287, "column": 14 } } @@ -64296,15 +67565,15 @@ "updateContext": null }, "value": "=", - "start": 7320, - "end": 7321, + "start": 7496, + "end": 7497, "loc": { "start": { - "line": 275, + "line": 287, "column": 15 }, "end": { - "line": 275, + "line": 287, "column": 16 } } @@ -64322,15 +67591,15 @@ "binop": null }, "value": "transformRect", - "start": 7322, - "end": 7335, + "start": 7498, + "end": 7511, "loc": { "start": { - "line": 275, + "line": 287, "column": 17 }, "end": { - "line": 275, + "line": 287, "column": 30 } } @@ -64347,15 +67616,15 @@ "postfix": false, "binop": null }, - "start": 7335, - "end": 7336, + "start": 7511, + "end": 7512, "loc": { "start": { - "line": 275, + "line": 287, "column": 30 }, "end": { - "line": 275, + "line": 287, "column": 31 } } @@ -64372,15 +67641,15 @@ "postfix": false, "binop": null }, - "start": 7336, - "end": 7337, + "start": 7512, + "end": 7513, "loc": { "start": { - "line": 275, + "line": 287, "column": 31 }, "end": { - "line": 275, + "line": 287, "column": 32 } } @@ -64398,15 +67667,15 @@ "binop": null }, "value": "x", - "start": 7346, - "end": 7347, + "start": 7522, + "end": 7523, "loc": { "start": { - "line": 276, + "line": 288, "column": 8 }, "end": { - "line": 276, + "line": 288, "column": 9 } } @@ -64424,15 +67693,15 @@ "binop": null, "updateContext": null }, - "start": 7347, - "end": 7348, + "start": 7523, + "end": 7524, "loc": { "start": { - "line": 276, + "line": 288, "column": 9 }, "end": { - "line": 276, + "line": 288, "column": 10 } } @@ -64450,15 +67719,15 @@ "binop": null }, "value": "rect", - "start": 7349, - "end": 7353, + "start": 7525, + "end": 7529, "loc": { "start": { - "line": 276, + "line": 288, "column": 11 }, "end": { - "line": 276, + "line": 288, "column": 15 } } @@ -64476,15 +67745,15 @@ "binop": null, "updateContext": null }, - "start": 7353, - "end": 7354, + "start": 7529, + "end": 7530, "loc": { "start": { - "line": 276, + "line": 288, "column": 15 }, "end": { - "line": 276, + "line": 288, "column": 16 } } @@ -64502,15 +67771,15 @@ "binop": null }, "value": "left", - "start": 7354, - "end": 7358, + "start": 7530, + "end": 7534, "loc": { "start": { - "line": 276, + "line": 288, "column": 16 }, "end": { - "line": 276, + "line": 288, "column": 20 } } @@ -64529,15 +67798,15 @@ "updateContext": null }, "value": "+", - "start": 7359, - "end": 7360, + "start": 7535, + "end": 7536, "loc": { "start": { - "line": 276, + "line": 288, "column": 21 }, "end": { - "line": 276, + "line": 288, "column": 22 } } @@ -64555,15 +67824,15 @@ "binop": null }, "value": "rect", - "start": 7361, - "end": 7365, + "start": 7537, + "end": 7541, "loc": { "start": { - "line": 276, + "line": 288, "column": 23 }, "end": { - "line": 276, + "line": 288, "column": 27 } } @@ -64581,15 +67850,15 @@ "binop": null, "updateContext": null }, - "start": 7365, - "end": 7366, + "start": 7541, + "end": 7542, "loc": { "start": { - "line": 276, + "line": 288, "column": 27 }, "end": { - "line": 276, + "line": 288, "column": 28 } } @@ -64607,15 +67876,15 @@ "binop": null }, "value": "width", - "start": 7366, - "end": 7371, + "start": 7542, + "end": 7547, "loc": { "start": { - "line": 276, + "line": 288, "column": 28 }, "end": { - "line": 276, + "line": 288, "column": 33 } } @@ -64634,15 +67903,15 @@ "updateContext": null }, "value": "/", - "start": 7372, - "end": 7373, + "start": 7548, + "end": 7549, "loc": { "start": { - "line": 276, + "line": 288, "column": 34 }, "end": { - "line": 276, + "line": 288, "column": 35 } } @@ -64661,15 +67930,15 @@ "updateContext": null }, "value": 2, - "start": 7374, - "end": 7375, + "start": 7550, + "end": 7551, "loc": { "start": { - "line": 276, + "line": 288, "column": 36 }, "end": { - "line": 276, + "line": 288, "column": 37 } } @@ -64687,15 +67956,15 @@ "binop": null, "updateContext": null }, - "start": 7375, - "end": 7376, + "start": 7551, + "end": 7552, "loc": { "start": { - "line": 276, + "line": 288, "column": 37 }, "end": { - "line": 276, + "line": 288, "column": 38 } } @@ -64713,15 +67982,15 @@ "binop": null }, "value": "y", - "start": 7385, - "end": 7386, + "start": 7561, + "end": 7562, "loc": { "start": { - "line": 277, + "line": 289, "column": 8 }, "end": { - "line": 277, + "line": 289, "column": 9 } } @@ -64739,15 +68008,15 @@ "binop": null, "updateContext": null }, - "start": 7386, - "end": 7387, + "start": 7562, + "end": 7563, "loc": { "start": { - "line": 277, + "line": 289, "column": 9 }, "end": { - "line": 277, + "line": 289, "column": 10 } } @@ -64765,15 +68034,15 @@ "binop": null }, "value": "rect", - "start": 7388, - "end": 7392, + "start": 7564, + "end": 7568, "loc": { "start": { - "line": 277, + "line": 289, "column": 11 }, "end": { - "line": 277, + "line": 289, "column": 15 } } @@ -64791,15 +68060,15 @@ "binop": null, "updateContext": null }, - "start": 7392, - "end": 7393, + "start": 7568, + "end": 7569, "loc": { "start": { - "line": 277, + "line": 289, "column": 15 }, "end": { - "line": 277, + "line": 289, "column": 16 } } @@ -64817,15 +68086,15 @@ "binop": null }, "value": "top", - "start": 7393, - "end": 7396, + "start": 7569, + "end": 7572, "loc": { "start": { - "line": 277, + "line": 289, "column": 16 }, "end": { - "line": 277, + "line": 289, "column": 19 } } @@ -64844,15 +68113,15 @@ "updateContext": null }, "value": "+", - "start": 7397, - "end": 7398, + "start": 7573, + "end": 7574, "loc": { "start": { - "line": 277, + "line": 289, "column": 20 }, "end": { - "line": 277, + "line": 289, "column": 21 } } @@ -64870,15 +68139,15 @@ "binop": null }, "value": "rect", - "start": 7399, - "end": 7403, + "start": 7575, + "end": 7579, "loc": { "start": { - "line": 277, + "line": 289, "column": 22 }, "end": { - "line": 277, + "line": 289, "column": 26 } } @@ -64896,15 +68165,15 @@ "binop": null, "updateContext": null }, - "start": 7403, - "end": 7404, + "start": 7579, + "end": 7580, "loc": { "start": { - "line": 277, + "line": 289, "column": 26 }, "end": { - "line": 277, + "line": 289, "column": 27 } } @@ -64922,15 +68191,15 @@ "binop": null }, "value": "height", - "start": 7404, - "end": 7410, + "start": 7580, + "end": 7586, "loc": { "start": { - "line": 277, + "line": 289, "column": 27 }, "end": { - "line": 277, + "line": 289, "column": 33 } } @@ -64949,15 +68218,15 @@ "updateContext": null }, "value": "*", - "start": 7411, - "end": 7412, + "start": 7587, + "end": 7588, "loc": { "start": { - "line": 277, + "line": 289, "column": 34 }, "end": { - "line": 277, + "line": 289, "column": 35 } } @@ -64975,15 +68244,15 @@ "binop": null }, "value": "headPos", - "start": 7413, - "end": 7420, + "start": 7589, + "end": 7596, "loc": { "start": { - "line": 277, + "line": 289, "column": 36 }, "end": { - "line": 277, + "line": 289, "column": 43 } } @@ -65000,15 +68269,15 @@ "postfix": false, "binop": null }, - "start": 7425, - "end": 7426, + "start": 7601, + "end": 7602, "loc": { "start": { - "line": 278, + "line": 290, "column": 4 }, "end": { - "line": 278, + "line": 290, "column": 5 } } @@ -65026,15 +68295,15 @@ "binop": null, "updateContext": null }, - "start": 7426, - "end": 7427, + "start": 7602, + "end": 7603, "loc": { "start": { - "line": 278, + "line": 290, "column": 5 }, "end": { - "line": 278, + "line": 290, "column": 6 } } @@ -65051,15 +68320,15 @@ "postfix": false, "binop": null }, - "start": 7428, - "end": 7429, + "start": 7604, + "end": 7605, "loc": { "start": { - "line": 278, + "line": 290, "column": 7 }, "end": { - "line": 278, + "line": 290, "column": 8 } } @@ -65077,15 +68346,15 @@ "binop": null }, "value": "x", - "start": 7438, - "end": 7439, + "start": 7614, + "end": 7615, "loc": { "start": { - "line": 279, + "line": 291, "column": 8 }, "end": { - "line": 279, + "line": 291, "column": 9 } } @@ -65103,15 +68372,15 @@ "binop": null, "updateContext": null }, - "start": 7439, - "end": 7440, + "start": 7615, + "end": 7616, "loc": { "start": { - "line": 279, + "line": 291, "column": 9 }, "end": { - "line": 279, + "line": 291, "column": 10 } } @@ -65129,15 +68398,15 @@ "binop": null }, "value": "event", - "start": 7441, - "end": 7446, + "start": 7617, + "end": 7622, "loc": { "start": { - "line": 279, + "line": 291, "column": 11 }, "end": { - "line": 279, + "line": 291, "column": 16 } } @@ -65155,15 +68424,15 @@ "binop": null, "updateContext": null }, - "start": 7446, - "end": 7447, + "start": 7622, + "end": 7623, "loc": { "start": { - "line": 279, + "line": 291, "column": 16 }, "end": { - "line": 279, + "line": 291, "column": 17 } } @@ -65181,15 +68450,15 @@ "binop": null }, "value": "clientX", - "start": 7447, - "end": 7454, + "start": 7623, + "end": 7630, "loc": { "start": { - "line": 279, + "line": 291, "column": 17 }, "end": { - "line": 279, + "line": 291, "column": 24 } } @@ -65207,15 +68476,15 @@ "binop": null, "updateContext": null }, - "start": 7454, - "end": 7455, + "start": 7630, + "end": 7631, "loc": { "start": { - "line": 279, + "line": 291, "column": 24 }, "end": { - "line": 279, + "line": 291, "column": 25 } } @@ -65233,15 +68502,15 @@ "binop": null }, "value": "y", - "start": 7464, - "end": 7465, + "start": 7640, + "end": 7641, "loc": { "start": { - "line": 280, + "line": 292, "column": 8 }, "end": { - "line": 280, + "line": 292, "column": 9 } } @@ -65259,15 +68528,15 @@ "binop": null, "updateContext": null }, - "start": 7465, - "end": 7466, + "start": 7641, + "end": 7642, "loc": { "start": { - "line": 280, + "line": 292, "column": 9 }, "end": { - "line": 280, + "line": 292, "column": 10 } } @@ -65285,15 +68554,15 @@ "binop": null }, "value": "event", - "start": 7467, - "end": 7472, + "start": 7643, + "end": 7648, "loc": { "start": { - "line": 280, + "line": 292, "column": 11 }, "end": { - "line": 280, + "line": 292, "column": 16 } } @@ -65311,15 +68580,15 @@ "binop": null, "updateContext": null }, - "start": 7472, - "end": 7473, + "start": 7648, + "end": 7649, "loc": { "start": { - "line": 280, + "line": 292, "column": 16 }, "end": { - "line": 280, + "line": 292, "column": 17 } } @@ -65337,15 +68606,15 @@ "binop": null }, "value": "clientY", - "start": 7473, - "end": 7480, + "start": 7649, + "end": 7656, "loc": { "start": { - "line": 280, + "line": 292, "column": 17 }, "end": { - "line": 280, + "line": 292, "column": 24 } } @@ -65362,15 +68631,15 @@ "postfix": false, "binop": null }, - "start": 7485, - "end": 7486, + "start": 7661, + "end": 7662, "loc": { "start": { - "line": 281, + "line": 293, "column": 4 }, "end": { - "line": 281, + "line": 293, "column": 5 } } @@ -65388,15 +68657,15 @@ "binop": null, "updateContext": null }, - "start": 7486, - "end": 7487, + "start": 7662, + "end": 7663, "loc": { "start": { - "line": 281, + "line": 293, "column": 5 }, "end": { - "line": 281, + "line": 293, "column": 6 } } @@ -65414,15 +68683,15 @@ "binop": null }, "value": "rect", - "start": 7488, - "end": 7492, + "start": 7664, + "end": 7668, "loc": { "start": { - "line": 281, + "line": 293, "column": 7 }, "end": { - "line": 281, + "line": 293, "column": 11 } } @@ -65439,15 +68708,15 @@ "postfix": false, "binop": null }, - "start": 7492, - "end": 7493, + "start": 7668, + "end": 7669, "loc": { "start": { - "line": 281, + "line": 293, "column": 11 }, "end": { - "line": 281, + "line": 293, "column": 12 } } @@ -65467,15 +68736,15 @@ "updateContext": null }, "value": "let", - "start": 7498, - "end": 7501, + "start": 7674, + "end": 7677, "loc": { "start": { - "line": 282, + "line": 294, "column": 4 }, "end": { - "line": 282, + "line": 294, "column": 7 } } @@ -65493,15 +68762,15 @@ "binop": null }, "value": "vx", - "start": 7502, - "end": 7504, + "start": 7678, + "end": 7680, "loc": { "start": { - "line": 282, + "line": 294, "column": 8 }, "end": { - "line": 282, + "line": 294, "column": 10 } } @@ -65520,15 +68789,15 @@ "updateContext": null }, "value": "=", - "start": 7505, - "end": 7506, + "start": 7681, + "end": 7682, "loc": { "start": { - "line": 282, + "line": 294, "column": 11 }, "end": { - "line": 282, + "line": 294, "column": 12 } } @@ -65546,15 +68815,15 @@ "binop": null }, "value": "transformViewX", - "start": 7507, - "end": 7521, + "start": 7683, + "end": 7697, "loc": { "start": { - "line": 282, + "line": 294, "column": 13 }, "end": { - "line": 282, + "line": 294, "column": 27 } } @@ -65571,15 +68840,15 @@ "postfix": false, "binop": null }, - "start": 7521, - "end": 7522, + "start": 7697, + "end": 7698, "loc": { "start": { - "line": 282, + "line": 294, "column": 27 }, "end": { - "line": 282, + "line": 294, "column": 28 } } @@ -65597,15 +68866,15 @@ "binop": null }, "value": "target", - "start": 7522, - "end": 7528, + "start": 7698, + "end": 7704, "loc": { "start": { - "line": 282, + "line": 294, "column": 28 }, "end": { - "line": 282, + "line": 294, "column": 34 } } @@ -65623,15 +68892,15 @@ "binop": null, "updateContext": null }, - "start": 7528, - "end": 7529, + "start": 7704, + "end": 7705, "loc": { "start": { - "line": 282, + "line": 294, "column": 34 }, "end": { - "line": 282, + "line": 294, "column": 35 } } @@ -65649,15 +68918,15 @@ "binop": null }, "value": "x", - "start": 7529, - "end": 7530, + "start": 7705, + "end": 7706, "loc": { "start": { - "line": 282, + "line": 294, "column": 35 }, "end": { - "line": 282, + "line": 294, "column": 36 } } @@ -65676,15 +68945,15 @@ "updateContext": null }, "value": "-", - "start": 7531, - "end": 7532, + "start": 7707, + "end": 7708, "loc": { "start": { - "line": 282, + "line": 294, "column": 37 }, "end": { - "line": 282, + "line": 294, "column": 38 } } @@ -65702,15 +68971,15 @@ "binop": null }, "value": "rect", - "start": 7533, - "end": 7537, + "start": 7709, + "end": 7713, "loc": { "start": { - "line": 282, + "line": 294, "column": 39 }, "end": { - "line": 282, + "line": 294, "column": 43 } } @@ -65728,15 +68997,15 @@ "binop": null, "updateContext": null }, - "start": 7537, - "end": 7538, + "start": 7713, + "end": 7714, "loc": { "start": { - "line": 282, + "line": 294, "column": 43 }, "end": { - "line": 282, + "line": 294, "column": 44 } } @@ -65754,15 +69023,15 @@ "binop": null }, "value": "left", - "start": 7538, - "end": 7542, + "start": 7714, + "end": 7718, "loc": { "start": { - "line": 282, + "line": 294, "column": 44 }, "end": { - "line": 282, + "line": 294, "column": 48 } } @@ -65779,15 +69048,15 @@ "postfix": false, "binop": null }, - "start": 7542, - "end": 7543, + "start": 7718, + "end": 7719, "loc": { "start": { - "line": 282, + "line": 294, "column": 48 }, "end": { - "line": 282, + "line": 294, "column": 49 } } @@ -65805,15 +69074,15 @@ "binop": null, "updateContext": null }, - "start": 7543, - "end": 7544, + "start": 7719, + "end": 7720, "loc": { "start": { - "line": 282, + "line": 294, "column": 49 }, "end": { - "line": 282, + "line": 294, "column": 50 } } @@ -65833,15 +69102,15 @@ "updateContext": null }, "value": "let", - "start": 7549, - "end": 7552, + "start": 7725, + "end": 7728, "loc": { "start": { - "line": 283, + "line": 295, "column": 4 }, "end": { - "line": 283, + "line": 295, "column": 7 } } @@ -65859,15 +69128,15 @@ "binop": null }, "value": "vy", - "start": 7553, - "end": 7555, + "start": 7729, + "end": 7731, "loc": { "start": { - "line": 283, + "line": 295, "column": 8 }, "end": { - "line": 283, + "line": 295, "column": 10 } } @@ -65886,15 +69155,15 @@ "updateContext": null }, "value": "=", - "start": 7556, - "end": 7557, + "start": 7732, + "end": 7733, "loc": { "start": { - "line": 283, + "line": 295, "column": 11 }, "end": { - "line": 283, + "line": 295, "column": 12 } } @@ -65912,15 +69181,15 @@ "binop": null }, "value": "transformViewY", - "start": 7558, - "end": 7572, + "start": 7734, + "end": 7748, "loc": { "start": { - "line": 283, + "line": 295, "column": 13 }, "end": { - "line": 283, + "line": 295, "column": 27 } } @@ -65937,15 +69206,15 @@ "postfix": false, "binop": null }, - "start": 7572, - "end": 7573, + "start": 7748, + "end": 7749, "loc": { "start": { - "line": 283, + "line": 295, "column": 27 }, "end": { - "line": 283, + "line": 295, "column": 28 } } @@ -65963,15 +69232,15 @@ "binop": null }, "value": "target", - "start": 7573, - "end": 7579, + "start": 7749, + "end": 7755, "loc": { "start": { - "line": 283, + "line": 295, "column": 28 }, "end": { - "line": 283, + "line": 295, "column": 34 } } @@ -65989,15 +69258,15 @@ "binop": null, "updateContext": null }, - "start": 7579, - "end": 7580, + "start": 7755, + "end": 7756, "loc": { "start": { - "line": 283, + "line": 295, "column": 34 }, "end": { - "line": 283, + "line": 295, "column": 35 } } @@ -66015,15 +69284,15 @@ "binop": null }, "value": "y", - "start": 7580, - "end": 7581, + "start": 7756, + "end": 7757, "loc": { "start": { - "line": 283, + "line": 295, "column": 35 }, "end": { - "line": 283, + "line": 295, "column": 36 } } @@ -66042,15 +69311,15 @@ "updateContext": null }, "value": "-", - "start": 7582, - "end": 7583, + "start": 7758, + "end": 7759, "loc": { "start": { - "line": 283, + "line": 295, "column": 37 }, "end": { - "line": 283, + "line": 295, "column": 38 } } @@ -66068,15 +69337,15 @@ "binop": null }, "value": "rect", - "start": 7584, - "end": 7588, + "start": 7760, + "end": 7764, "loc": { "start": { - "line": 283, + "line": 295, "column": 39 }, "end": { - "line": 283, + "line": 295, "column": 43 } } @@ -66094,15 +69363,15 @@ "binop": null, "updateContext": null }, - "start": 7588, - "end": 7589, + "start": 7764, + "end": 7765, "loc": { "start": { - "line": 283, + "line": 295, "column": 43 }, "end": { - "line": 283, + "line": 295, "column": 44 } } @@ -66120,15 +69389,15 @@ "binop": null }, "value": "top", - "start": 7589, - "end": 7592, + "start": 7765, + "end": 7768, "loc": { "start": { - "line": 283, + "line": 295, "column": 44 }, "end": { - "line": 283, + "line": 295, "column": 47 } } @@ -66145,15 +69414,15 @@ "postfix": false, "binop": null }, - "start": 7592, - "end": 7593, + "start": 7768, + "end": 7769, "loc": { "start": { - "line": 283, + "line": 295, "column": 47 }, "end": { - "line": 283, + "line": 295, "column": 48 } } @@ -66171,15 +69440,15 @@ "binop": null, "updateContext": null }, - "start": 7593, - "end": 7594, + "start": 7769, + "end": 7770, "loc": { "start": { - "line": 283, + "line": 295, "column": 48 }, "end": { - "line": 283, + "line": 295, "column": 49 } } @@ -66199,15 +69468,15 @@ "updateContext": null }, "value": "if", - "start": 7600, - "end": 7602, + "start": 7776, + "end": 7778, "loc": { "start": { - "line": 285, + "line": 297, "column": 4 }, "end": { - "line": 285, + "line": 297, "column": 6 } } @@ -66224,15 +69493,15 @@ "postfix": false, "binop": null }, - "start": 7603, - "end": 7604, + "start": 7779, + "end": 7780, "loc": { "start": { - "line": 285, + "line": 297, "column": 7 }, "end": { - "line": 285, + "line": 297, "column": 8 } } @@ -66250,15 +69519,15 @@ "binop": null }, "value": "cDefine", - "start": 7604, - "end": 7611, + "start": 7780, + "end": 7787, "loc": { "start": { - "line": 285, + "line": 297, "column": 8 }, "end": { - "line": 285, + "line": 297, "column": 15 } } @@ -66276,15 +69545,15 @@ "binop": null, "updateContext": null }, - "start": 7611, - "end": 7612, + "start": 7787, + "end": 7788, "loc": { "start": { - "line": 285, + "line": 297, "column": 15 }, "end": { - "line": 285, + "line": 297, "column": 16 } } @@ -66302,15 +69571,15 @@ "binop": null }, "value": "DEBUG_MOUSE_LOG", - "start": 7612, - "end": 7627, + "start": 7788, + "end": 7803, "loc": { "start": { - "line": 285, + "line": 297, "column": 16 }, "end": { - "line": 285, + "line": 297, "column": 31 } } @@ -66327,15 +69596,15 @@ "postfix": false, "binop": null }, - "start": 7627, - "end": 7628, + "start": 7803, + "end": 7804, "loc": { "start": { - "line": 285, + "line": 297, "column": 31 }, "end": { - "line": 285, + "line": 297, "column": 32 } } @@ -66353,15 +69622,15 @@ "binop": null }, "value": "console", - "start": 7637, - "end": 7644, + "start": 7813, + "end": 7820, "loc": { "start": { - "line": 286, + "line": 298, "column": 8 }, "end": { - "line": 286, + "line": 298, "column": 15 } } @@ -66379,15 +69648,15 @@ "binop": null, "updateContext": null }, - "start": 7644, - "end": 7645, + "start": 7820, + "end": 7821, "loc": { "start": { - "line": 286, + "line": 298, "column": 15 }, "end": { - "line": 286, + "line": 298, "column": 16 } } @@ -66405,15 +69674,15 @@ "binop": null }, "value": "log", - "start": 7645, - "end": 7648, + "start": 7821, + "end": 7824, "loc": { "start": { - "line": 286, + "line": 298, "column": 16 }, "end": { - "line": 286, + "line": 298, "column": 19 } } @@ -66430,15 +69699,15 @@ "postfix": false, "binop": null }, - "start": 7648, - "end": 7649, + "start": 7824, + "end": 7825, "loc": { "start": { - "line": 286, + "line": 298, "column": 19 }, "end": { - "line": 286, + "line": 298, "column": 20 } } @@ -66457,15 +69726,15 @@ "updateContext": null }, "value": "modelTurnHead onMouseMove device( x:", - "start": 7649, - "end": 7687, + "start": 7825, + "end": 7863, "loc": { "start": { - "line": 286, + "line": 298, "column": 20 }, "end": { - "line": 286, + "line": 298, "column": 58 } } @@ -66484,15 +69753,15 @@ "updateContext": null }, "value": "+", - "start": 7688, - "end": 7689, + "start": 7864, + "end": 7865, "loc": { "start": { - "line": 286, + "line": 298, "column": 59 }, "end": { - "line": 286, + "line": 298, "column": 60 } } @@ -66510,15 +69779,15 @@ "binop": null }, "value": "event", - "start": 7690, - "end": 7695, + "start": 7866, + "end": 7871, "loc": { "start": { - "line": 286, + "line": 298, "column": 61 }, "end": { - "line": 286, + "line": 298, "column": 66 } } @@ -66536,15 +69805,15 @@ "binop": null, "updateContext": null }, - "start": 7695, - "end": 7696, + "start": 7871, + "end": 7872, "loc": { "start": { - "line": 286, + "line": 298, "column": 66 }, "end": { - "line": 286, + "line": 298, "column": 67 } } @@ -66562,15 +69831,15 @@ "binop": null }, "value": "clientX", - "start": 7696, - "end": 7703, + "start": 7872, + "end": 7879, "loc": { "start": { - "line": 286, + "line": 298, "column": 67 }, "end": { - "line": 286, + "line": 298, "column": 74 } } @@ -66589,15 +69858,15 @@ "updateContext": null }, "value": "+", - "start": 7704, - "end": 7705, + "start": 7880, + "end": 7881, "loc": { "start": { - "line": 286, + "line": 298, "column": 75 }, "end": { - "line": 286, + "line": 298, "column": 76 } } @@ -66616,15 +69885,15 @@ "updateContext": null }, "value": " y:", - "start": 7706, - "end": 7711, + "start": 7882, + "end": 7887, "loc": { "start": { - "line": 286, + "line": 298, "column": 77 }, "end": { - "line": 286, + "line": 298, "column": 82 } } @@ -66643,15 +69912,15 @@ "updateContext": null }, "value": "+", - "start": 7712, - "end": 7713, + "start": 7888, + "end": 7889, "loc": { "start": { - "line": 286, + "line": 298, "column": 83 }, "end": { - "line": 286, + "line": 298, "column": 84 } } @@ -66669,15 +69938,15 @@ "binop": null }, "value": "event", - "start": 7714, - "end": 7719, + "start": 7890, + "end": 7895, "loc": { "start": { - "line": 286, + "line": 298, "column": 85 }, "end": { - "line": 286, + "line": 298, "column": 90 } } @@ -66695,15 +69964,15 @@ "binop": null, "updateContext": null }, - "start": 7719, - "end": 7720, + "start": 7895, + "end": 7896, "loc": { "start": { - "line": 286, + "line": 298, "column": 90 }, "end": { - "line": 286, + "line": 298, "column": 91 } } @@ -66721,15 +69990,15 @@ "binop": null }, "value": "clientY", - "start": 7720, - "end": 7727, + "start": 7896, + "end": 7903, "loc": { "start": { - "line": 286, + "line": 298, "column": 91 }, "end": { - "line": 286, + "line": 298, "column": 98 } } @@ -66748,15 +70017,15 @@ "updateContext": null }, "value": "+", - "start": 7728, - "end": 7729, + "start": 7904, + "end": 7905, "loc": { "start": { - "line": 286, + "line": 298, "column": 99 }, "end": { - "line": 286, + "line": 298, "column": 100 } } @@ -66775,15 +70044,15 @@ "updateContext": null }, "value": " ) view( x:", - "start": 7730, - "end": 7743, + "start": 7906, + "end": 7919, "loc": { "start": { - "line": 286, + "line": 298, "column": 101 }, "end": { - "line": 286, + "line": 298, "column": 114 } } @@ -66802,15 +70071,15 @@ "updateContext": null }, "value": "+", - "start": 7744, - "end": 7745, + "start": 7920, + "end": 7921, "loc": { "start": { - "line": 286, + "line": 298, "column": 115 }, "end": { - "line": 286, + "line": 298, "column": 116 } } @@ -66828,15 +70097,15 @@ "binop": null }, "value": "vx", - "start": 7746, - "end": 7748, + "start": 7922, + "end": 7924, "loc": { "start": { - "line": 286, + "line": 298, "column": 117 }, "end": { - "line": 286, + "line": 298, "column": 119 } } @@ -66855,15 +70124,15 @@ "updateContext": null }, "value": "+", - "start": 7749, - "end": 7750, + "start": 7925, + "end": 7926, "loc": { "start": { - "line": 286, + "line": 298, "column": 120 }, "end": { - "line": 286, + "line": 298, "column": 121 } } @@ -66882,15 +70151,15 @@ "updateContext": null }, "value": " y:", - "start": 7751, - "end": 7756, + "start": 7927, + "end": 7932, "loc": { "start": { - "line": 286, + "line": 298, "column": 122 }, "end": { - "line": 286, + "line": 298, "column": 127 } } @@ -66909,15 +70178,15 @@ "updateContext": null }, "value": "+", - "start": 7757, - "end": 7758, + "start": 7933, + "end": 7934, "loc": { "start": { - "line": 286, + "line": 298, "column": 128 }, "end": { - "line": 286, + "line": 298, "column": 129 } } @@ -66935,15 +70204,15 @@ "binop": null }, "value": "vy", - "start": 7759, - "end": 7761, + "start": 7935, + "end": 7937, "loc": { "start": { - "line": 286, + "line": 298, "column": 130 }, "end": { - "line": 286, + "line": 298, "column": 132 } } @@ -66962,15 +70231,15 @@ "updateContext": null }, "value": "+", - "start": 7762, - "end": 7763, + "start": 7938, + "end": 7939, "loc": { "start": { - "line": 286, + "line": 298, "column": 133 }, "end": { - "line": 286, + "line": 298, "column": 134 } } @@ -66989,15 +70258,15 @@ "updateContext": null }, "value": ")", - "start": 7764, - "end": 7767, + "start": 7940, + "end": 7943, "loc": { "start": { - "line": 286, + "line": 298, "column": 135 }, "end": { - "line": 286, + "line": 298, "column": 138 } } @@ -67014,15 +70283,15 @@ "postfix": false, "binop": null }, - "start": 7767, - "end": 7768, + "start": 7943, + "end": 7944, "loc": { "start": { - "line": 286, + "line": 298, "column": 138 }, "end": { - "line": 286, + "line": 298, "column": 139 } } @@ -67040,15 +70309,15 @@ "binop": null, "updateContext": null }, - "start": 7768, - "end": 7769, + "start": 7944, + "end": 7945, "loc": { "start": { - "line": 286, + "line": 298, "column": 139 }, "end": { - "line": 286, + "line": 298, "column": 140 } } @@ -67066,15 +70335,15 @@ "binop": null }, "value": "lastMouseX", - "start": 7775, - "end": 7785, + "start": 7951, + "end": 7961, "loc": { "start": { - "line": 288, + "line": 300, "column": 4 }, "end": { - "line": 288, + "line": 300, "column": 14 } } @@ -67093,15 +70362,15 @@ "updateContext": null }, "value": "=", - "start": 7786, - "end": 7787, + "start": 7962, + "end": 7963, "loc": { "start": { - "line": 288, + "line": 300, "column": 15 }, "end": { - "line": 288, + "line": 300, "column": 16 } } @@ -67119,15 +70388,15 @@ "binop": null }, "value": "sx", - "start": 7788, - "end": 7790, + "start": 7964, + "end": 7966, "loc": { "start": { - "line": 288, + "line": 300, "column": 17 }, "end": { - "line": 288, + "line": 300, "column": 19 } } @@ -67145,15 +70414,15 @@ "binop": null, "updateContext": null }, - "start": 7790, - "end": 7791, + "start": 7966, + "end": 7967, "loc": { "start": { - "line": 288, + "line": 300, "column": 19 }, "end": { - "line": 288, + "line": 300, "column": 20 } } @@ -67171,15 +70440,15 @@ "binop": null }, "value": "lastMouseY", - "start": 7796, - "end": 7806, + "start": 7972, + "end": 7982, "loc": { "start": { - "line": 289, + "line": 301, "column": 4 }, "end": { - "line": 289, + "line": 301, "column": 14 } } @@ -67198,15 +70467,15 @@ "updateContext": null }, "value": "=", - "start": 7807, - "end": 7808, + "start": 7983, + "end": 7984, "loc": { "start": { - "line": 289, + "line": 301, "column": 15 }, "end": { - "line": 289, + "line": 301, "column": 16 } } @@ -67224,15 +70493,15 @@ "binop": null }, "value": "sy", - "start": 7809, - "end": 7811, + "start": 7985, + "end": 7987, "loc": { "start": { - "line": 289, + "line": 301, "column": 17 }, "end": { - "line": 289, + "line": 301, "column": 19 } } @@ -67250,15 +70519,15 @@ "binop": null, "updateContext": null }, - "start": 7811, - "end": 7812, + "start": 7987, + "end": 7988, "loc": { "start": { - "line": 289, + "line": 301, "column": 19 }, "end": { - "line": 289, + "line": 301, "column": 20 } } @@ -67276,15 +70545,15 @@ "binop": null }, "value": "dragMgr", - "start": 7818, - "end": 7825, + "start": 7994, + "end": 8001, "loc": { "start": { - "line": 291, + "line": 303, "column": 4 }, "end": { - "line": 291, + "line": 303, "column": 11 } } @@ -67302,15 +70571,15 @@ "binop": null, "updateContext": null }, - "start": 7825, - "end": 7826, + "start": 8001, + "end": 8002, "loc": { "start": { - "line": 291, + "line": 303, "column": 11 }, "end": { - "line": 291, + "line": 303, "column": 12 } } @@ -67328,15 +70597,15 @@ "binop": null }, "value": "setPoint", - "start": 7826, - "end": 7834, + "start": 8002, + "end": 8010, "loc": { "start": { - "line": 291, + "line": 303, "column": 12 }, "end": { - "line": 291, + "line": 303, "column": 20 } } @@ -67353,15 +70622,15 @@ "postfix": false, "binop": null }, - "start": 7834, - "end": 7835, + "start": 8010, + "end": 8011, "loc": { "start": { - "line": 291, + "line": 303, "column": 20 }, "end": { - "line": 291, + "line": 303, "column": 21 } } @@ -67379,15 +70648,15 @@ "binop": null }, "value": "vx", - "start": 7835, - "end": 7837, + "start": 8011, + "end": 8013, "loc": { "start": { - "line": 291, + "line": 303, "column": 21 }, "end": { - "line": 291, + "line": 303, "column": 23 } } @@ -67405,15 +70674,15 @@ "binop": null, "updateContext": null }, - "start": 7837, - "end": 7838, + "start": 8013, + "end": 8014, "loc": { "start": { - "line": 291, + "line": 303, "column": 23 }, "end": { - "line": 291, + "line": 303, "column": 24 } } @@ -67431,15 +70700,15 @@ "binop": null }, "value": "vy", - "start": 7839, - "end": 7841, + "start": 8015, + "end": 8017, "loc": { "start": { - "line": 291, + "line": 303, "column": 25 }, "end": { - "line": 291, + "line": 303, "column": 27 } } @@ -67456,15 +70725,15 @@ "postfix": false, "binop": null }, - "start": 7841, - "end": 7842, + "start": 8017, + "end": 8018, "loc": { "start": { - "line": 291, + "line": 303, "column": 27 }, "end": { - "line": 291, + "line": 303, "column": 28 } } @@ -67482,15 +70751,15 @@ "binop": null, "updateContext": null }, - "start": 7842, - "end": 7843, + "start": 8018, + "end": 8019, "loc": { "start": { - "line": 291, + "line": 303, "column": 28 }, "end": { - "line": 291, + "line": 303, "column": 29 } } @@ -67507,15 +70776,15 @@ "postfix": false, "binop": null }, - "start": 7844, - "end": 7845, + "start": 8020, + "end": 8021, "loc": { "start": { - "line": 292, + "line": 304, "column": 0 }, "end": { - "line": 292, + "line": 304, "column": 1 } } @@ -67534,15 +70803,15 @@ "binop": null }, "value": "function", - "start": 7847, - "end": 7855, + "start": 8023, + "end": 8031, "loc": { "start": { - "line": 294, + "line": 306, "column": 0 }, "end": { - "line": 294, + "line": 306, "column": 8 } } @@ -67560,15 +70829,15 @@ "binop": null }, "value": "modelTapEvent", - "start": 7856, - "end": 7869, + "start": 8032, + "end": 8045, "loc": { "start": { - "line": 294, + "line": 306, "column": 9 }, "end": { - "line": 294, + "line": 306, "column": 22 } } @@ -67585,15 +70854,15 @@ "postfix": false, "binop": null }, - "start": 7869, - "end": 7870, + "start": 8045, + "end": 8046, "loc": { "start": { - "line": 294, + "line": 306, "column": 22 }, "end": { - "line": 294, + "line": 306, "column": 23 } } @@ -67611,15 +70880,15 @@ "binop": null }, "value": "event", - "start": 7870, - "end": 7875, + "start": 8046, + "end": 8051, "loc": { "start": { - "line": 294, + "line": 306, "column": 23 }, "end": { - "line": 294, + "line": 306, "column": 28 } } @@ -67636,15 +70905,15 @@ "postfix": false, "binop": null }, - "start": 7875, - "end": 7876, + "start": 8051, + "end": 8052, "loc": { "start": { - "line": 294, + "line": 306, "column": 28 }, "end": { - "line": 294, + "line": 306, "column": 29 } } @@ -67661,15 +70930,15 @@ "postfix": false, "binop": null }, - "start": 7877, - "end": 7878, + "start": 8053, + "end": 8054, "loc": { "start": { - "line": 295, + "line": 307, "column": 0 }, "end": { - "line": 295, + "line": 307, "column": 1 } } @@ -67687,15 +70956,15 @@ "binop": null }, "value": "drag", - "start": 7883, - "end": 7887, + "start": 8059, + "end": 8063, "loc": { "start": { - "line": 296, + "line": 308, "column": 4 }, "end": { - "line": 296, + "line": 308, "column": 8 } } @@ -67714,15 +70983,15 @@ "updateContext": null }, "value": "=", - "start": 7888, - "end": 7889, + "start": 8064, + "end": 8065, "loc": { "start": { - "line": 296, + "line": 308, "column": 9 }, "end": { - "line": 296, + "line": 308, "column": 10 } } @@ -67742,15 +71011,15 @@ "updateContext": null }, "value": "true", - "start": 7890, - "end": 7894, + "start": 8066, + "end": 8070, "loc": { "start": { - "line": 296, + "line": 308, "column": 11 }, "end": { - "line": 296, + "line": 308, "column": 15 } } @@ -67768,15 +71037,15 @@ "binop": null, "updateContext": null }, - "start": 7894, - "end": 7895, + "start": 8070, + "end": 8071, "loc": { "start": { - "line": 296, + "line": 308, "column": 15 }, "end": { - "line": 296, + "line": 308, "column": 16 } } @@ -67796,15 +71065,15 @@ "updateContext": null }, "value": "let", - "start": 7901, - "end": 7904, + "start": 8077, + "end": 8080, "loc": { "start": { - "line": 298, + "line": 310, "column": 4 }, "end": { - "line": 298, + "line": 310, "column": 7 } } @@ -67822,15 +71091,15 @@ "binop": null }, "value": "rect", - "start": 7905, - "end": 7909, + "start": 8081, + "end": 8085, "loc": { "start": { - "line": 298, + "line": 310, "column": 8 }, "end": { - "line": 298, + "line": 310, "column": 12 } } @@ -67849,15 +71118,15 @@ "updateContext": null }, "value": "=", - "start": 7910, - "end": 7911, + "start": 8086, + "end": 8087, "loc": { "start": { - "line": 298, + "line": 310, "column": 13 }, "end": { - "line": 298, + "line": 310, "column": 14 } } @@ -67875,15 +71144,15 @@ "binop": null }, "value": "currCanvas", - "start": 7912, - "end": 7922, + "start": 8088, + "end": 8098, "loc": { "start": { - "line": 298, + "line": 310, "column": 15 }, "end": { - "line": 298, + "line": 310, "column": 25 } } @@ -67901,15 +71170,15 @@ "binop": null, "updateContext": null }, - "start": 7922, - "end": 7923, + "start": 8098, + "end": 8099, "loc": { "start": { - "line": 298, + "line": 310, "column": 25 }, "end": { - "line": 298, + "line": 310, "column": 26 } } @@ -67927,15 +71196,15 @@ "binop": null }, "value": "getBoundingClientRect", - "start": 7923, - "end": 7944, + "start": 8099, + "end": 8120, "loc": { "start": { - "line": 298, + "line": 310, "column": 26 }, "end": { - "line": 298, + "line": 310, "column": 47 } } @@ -67952,15 +71221,15 @@ "postfix": false, "binop": null }, - "start": 7944, - "end": 7945, + "start": 8120, + "end": 8121, "loc": { "start": { - "line": 298, + "line": 310, "column": 47 }, "end": { - "line": 298, + "line": 310, "column": 48 } } @@ -67977,15 +71246,15 @@ "postfix": false, "binop": null }, - "start": 7945, - "end": 7946, + "start": 8121, + "end": 8122, "loc": { "start": { - "line": 298, + "line": 310, "column": 48 }, "end": { - "line": 298, + "line": 310, "column": 49 } } @@ -68003,15 +71272,15 @@ "binop": null, "updateContext": null }, - "start": 7946, - "end": 7947, + "start": 8122, + "end": 8123, "loc": { "start": { - "line": 298, + "line": 310, "column": 49 }, "end": { - "line": 298, + "line": 310, "column": 50 } } @@ -68031,15 +71300,15 @@ "updateContext": null }, "value": "let", - "start": 7953, - "end": 7956, + "start": 8129, + "end": 8132, "loc": { "start": { - "line": 300, + "line": 312, "column": 4 }, "end": { - "line": 300, + "line": 312, "column": 7 } } @@ -68057,15 +71326,15 @@ "binop": null }, "value": "sx", - "start": 7957, - "end": 7959, + "start": 8133, + "end": 8135, "loc": { "start": { - "line": 300, + "line": 312, "column": 8 }, "end": { - "line": 300, + "line": 312, "column": 10 } } @@ -68084,15 +71353,15 @@ "updateContext": null }, "value": "=", - "start": 7960, - "end": 7961, + "start": 8136, + "end": 8137, "loc": { "start": { - "line": 300, + "line": 312, "column": 11 }, "end": { - "line": 300, + "line": 312, "column": 12 } } @@ -68110,15 +71379,15 @@ "binop": null }, "value": "transformScreenX", - "start": 7962, - "end": 7978, + "start": 8138, + "end": 8154, "loc": { "start": { - "line": 300, + "line": 312, "column": 13 }, "end": { - "line": 300, + "line": 312, "column": 29 } } @@ -68135,15 +71404,15 @@ "postfix": false, "binop": null }, - "start": 7978, - "end": 7979, + "start": 8154, + "end": 8155, "loc": { "start": { - "line": 300, + "line": 312, "column": 29 }, "end": { - "line": 300, + "line": 312, "column": 30 } } @@ -68161,15 +71430,15 @@ "binop": null }, "value": "event", - "start": 7979, - "end": 7984, + "start": 8155, + "end": 8160, "loc": { "start": { - "line": 300, + "line": 312, "column": 30 }, "end": { - "line": 300, + "line": 312, "column": 35 } } @@ -68187,15 +71456,15 @@ "binop": null, "updateContext": null }, - "start": 7984, - "end": 7985, + "start": 8160, + "end": 8161, "loc": { "start": { - "line": 300, + "line": 312, "column": 35 }, "end": { - "line": 300, + "line": 312, "column": 36 } } @@ -68213,15 +71482,15 @@ "binop": null }, "value": "clientX", - "start": 7985, - "end": 7992, + "start": 8161, + "end": 8168, "loc": { "start": { - "line": 300, + "line": 312, "column": 36 }, "end": { - "line": 300, + "line": 312, "column": 43 } } @@ -68240,15 +71509,15 @@ "updateContext": null }, "value": "-", - "start": 7993, - "end": 7994, + "start": 8169, + "end": 8170, "loc": { "start": { - "line": 300, + "line": 312, "column": 44 }, "end": { - "line": 300, + "line": 312, "column": 45 } } @@ -68266,15 +71535,15 @@ "binop": null }, "value": "rect", - "start": 7995, - "end": 7999, + "start": 8171, + "end": 8175, "loc": { "start": { - "line": 300, + "line": 312, "column": 46 }, "end": { - "line": 300, + "line": 312, "column": 50 } } @@ -68292,15 +71561,15 @@ "binop": null, "updateContext": null }, - "start": 7999, - "end": 8000, + "start": 8175, + "end": 8176, "loc": { "start": { - "line": 300, + "line": 312, "column": 50 }, "end": { - "line": 300, + "line": 312, "column": 51 } } @@ -68318,15 +71587,15 @@ "binop": null }, "value": "left", - "start": 8000, - "end": 8004, + "start": 8176, + "end": 8180, "loc": { "start": { - "line": 300, + "line": 312, "column": 51 }, "end": { - "line": 300, + "line": 312, "column": 55 } } @@ -68343,15 +71612,15 @@ "postfix": false, "binop": null }, - "start": 8004, - "end": 8005, + "start": 8180, + "end": 8181, "loc": { "start": { - "line": 300, + "line": 312, "column": 55 }, "end": { - "line": 300, + "line": 312, "column": 56 } } @@ -68369,15 +71638,15 @@ "binop": null, "updateContext": null }, - "start": 8005, - "end": 8006, + "start": 8181, + "end": 8182, "loc": { "start": { - "line": 300, + "line": 312, "column": 56 }, "end": { - "line": 300, + "line": 312, "column": 57 } } @@ -68397,15 +71666,15 @@ "updateContext": null }, "value": "let", - "start": 8011, - "end": 8014, + "start": 8187, + "end": 8190, "loc": { "start": { - "line": 301, + "line": 313, "column": 4 }, "end": { - "line": 301, + "line": 313, "column": 7 } } @@ -68423,15 +71692,15 @@ "binop": null }, "value": "sy", - "start": 8015, - "end": 8017, + "start": 8191, + "end": 8193, "loc": { "start": { - "line": 301, + "line": 313, "column": 8 }, "end": { - "line": 301, + "line": 313, "column": 10 } } @@ -68450,15 +71719,15 @@ "updateContext": null }, "value": "=", - "start": 8018, - "end": 8019, + "start": 8194, + "end": 8195, "loc": { "start": { - "line": 301, + "line": 313, "column": 11 }, "end": { - "line": 301, + "line": 313, "column": 12 } } @@ -68476,15 +71745,15 @@ "binop": null }, "value": "transformScreenY", - "start": 8020, - "end": 8036, + "start": 8196, + "end": 8212, "loc": { "start": { - "line": 301, + "line": 313, "column": 13 }, "end": { - "line": 301, + "line": 313, "column": 29 } } @@ -68501,15 +71770,15 @@ "postfix": false, "binop": null }, - "start": 8036, - "end": 8037, + "start": 8212, + "end": 8213, "loc": { "start": { - "line": 301, + "line": 313, "column": 29 }, "end": { - "line": 301, + "line": 313, "column": 30 } } @@ -68527,15 +71796,15 @@ "binop": null }, "value": "event", - "start": 8037, - "end": 8042, + "start": 8213, + "end": 8218, "loc": { "start": { - "line": 301, + "line": 313, "column": 30 }, "end": { - "line": 301, + "line": 313, "column": 35 } } @@ -68553,15 +71822,15 @@ "binop": null, "updateContext": null }, - "start": 8042, - "end": 8043, + "start": 8218, + "end": 8219, "loc": { "start": { - "line": 301, + "line": 313, "column": 35 }, "end": { - "line": 301, + "line": 313, "column": 36 } } @@ -68579,15 +71848,15 @@ "binop": null }, "value": "clientY", - "start": 8043, - "end": 8050, + "start": 8219, + "end": 8226, "loc": { "start": { - "line": 301, + "line": 313, "column": 36 }, "end": { - "line": 301, + "line": 313, "column": 43 } } @@ -68606,15 +71875,15 @@ "updateContext": null }, "value": "-", - "start": 8051, - "end": 8052, + "start": 8227, + "end": 8228, "loc": { "start": { - "line": 301, + "line": 313, "column": 44 }, "end": { - "line": 301, + "line": 313, "column": 45 } } @@ -68632,15 +71901,15 @@ "binop": null }, "value": "rect", - "start": 8053, - "end": 8057, + "start": 8229, + "end": 8233, "loc": { "start": { - "line": 301, + "line": 313, "column": 46 }, "end": { - "line": 301, + "line": 313, "column": 50 } } @@ -68658,15 +71927,15 @@ "binop": null, "updateContext": null }, - "start": 8057, - "end": 8058, + "start": 8233, + "end": 8234, "loc": { "start": { - "line": 301, + "line": 313, "column": 50 }, "end": { - "line": 301, + "line": 313, "column": 51 } } @@ -68684,15 +71953,15 @@ "binop": null }, "value": "top", - "start": 8058, - "end": 8061, + "start": 8234, + "end": 8237, "loc": { "start": { - "line": 301, + "line": 313, "column": 51 }, "end": { - "line": 301, + "line": 313, "column": 54 } } @@ -68709,15 +71978,15 @@ "postfix": false, "binop": null }, - "start": 8061, - "end": 8062, + "start": 8237, + "end": 8238, "loc": { "start": { - "line": 301, + "line": 313, "column": 54 }, "end": { - "line": 301, + "line": 313, "column": 55 } } @@ -68735,15 +72004,15 @@ "binop": null, "updateContext": null }, - "start": 8062, - "end": 8063, + "start": 8238, + "end": 8239, "loc": { "start": { - "line": 301, + "line": 313, "column": 55 }, "end": { - "line": 301, + "line": 313, "column": 56 } } @@ -68763,15 +72032,15 @@ "updateContext": null }, "value": "let", - "start": 8068, - "end": 8071, + "start": 8244, + "end": 8247, "loc": { "start": { - "line": 302, + "line": 314, "column": 4 }, "end": { - "line": 302, + "line": 314, "column": 7 } } @@ -68789,15 +72058,15 @@ "binop": null }, "value": "target", - "start": 8072, - "end": 8078, + "start": 8248, + "end": 8254, "loc": { "start": { - "line": 302, + "line": 314, "column": 8 }, "end": { - "line": 302, + "line": 314, "column": 14 } } @@ -68816,15 +72085,15 @@ "updateContext": null }, "value": "=", - "start": 8079, - "end": 8080, + "start": 8255, + "end": 8256, "loc": { "start": { - "line": 302, + "line": 314, "column": 15 }, "end": { - "line": 302, + "line": 314, "column": 16 } } @@ -68842,15 +72111,15 @@ "binop": null }, "value": "transformRect", - "start": 8081, - "end": 8094, + "start": 8257, + "end": 8270, "loc": { "start": { - "line": 302, + "line": 314, "column": 17 }, "end": { - "line": 302, + "line": 314, "column": 30 } } @@ -68867,15 +72136,15 @@ "postfix": false, "binop": null }, - "start": 8094, - "end": 8095, + "start": 8270, + "end": 8271, "loc": { "start": { - "line": 302, + "line": 314, "column": 30 }, "end": { - "line": 302, + "line": 314, "column": 31 } } @@ -68892,15 +72161,15 @@ "postfix": false, "binop": null }, - "start": 8095, - "end": 8096, + "start": 8271, + "end": 8272, "loc": { "start": { - "line": 302, + "line": 314, "column": 31 }, "end": { - "line": 302, + "line": 314, "column": 32 } } @@ -68918,15 +72187,15 @@ "binop": null }, "value": "x", - "start": 8105, - "end": 8106, + "start": 8281, + "end": 8282, "loc": { "start": { - "line": 303, + "line": 315, "column": 8 }, "end": { - "line": 303, + "line": 315, "column": 9 } } @@ -68944,15 +72213,15 @@ "binop": null, "updateContext": null }, - "start": 8106, - "end": 8107, + "start": 8282, + "end": 8283, "loc": { "start": { - "line": 303, + "line": 315, "column": 9 }, "end": { - "line": 303, + "line": 315, "column": 10 } } @@ -68970,15 +72239,15 @@ "binop": null }, "value": "rect", - "start": 8108, - "end": 8112, + "start": 8284, + "end": 8288, "loc": { "start": { - "line": 303, + "line": 315, "column": 11 }, "end": { - "line": 303, + "line": 315, "column": 15 } } @@ -68996,15 +72265,15 @@ "binop": null, "updateContext": null }, - "start": 8112, - "end": 8113, + "start": 8288, + "end": 8289, "loc": { "start": { - "line": 303, + "line": 315, "column": 15 }, "end": { - "line": 303, + "line": 315, "column": 16 } } @@ -69022,15 +72291,15 @@ "binop": null }, "value": "left", - "start": 8113, - "end": 8117, + "start": 8289, + "end": 8293, "loc": { "start": { - "line": 303, + "line": 315, "column": 16 }, "end": { - "line": 303, + "line": 315, "column": 20 } } @@ -69049,15 +72318,15 @@ "updateContext": null }, "value": "+", - "start": 8118, - "end": 8119, + "start": 8294, + "end": 8295, "loc": { "start": { - "line": 303, + "line": 315, "column": 21 }, "end": { - "line": 303, + "line": 315, "column": 22 } } @@ -69075,15 +72344,15 @@ "binop": null }, "value": "rect", - "start": 8120, - "end": 8124, + "start": 8296, + "end": 8300, "loc": { "start": { - "line": 303, + "line": 315, "column": 23 }, "end": { - "line": 303, + "line": 315, "column": 27 } } @@ -69101,15 +72370,15 @@ "binop": null, "updateContext": null }, - "start": 8124, - "end": 8125, + "start": 8300, + "end": 8301, "loc": { "start": { - "line": 303, + "line": 315, "column": 27 }, "end": { - "line": 303, + "line": 315, "column": 28 } } @@ -69127,15 +72396,15 @@ "binop": null }, "value": "width", - "start": 8125, - "end": 8130, + "start": 8301, + "end": 8306, "loc": { "start": { - "line": 303, + "line": 315, "column": 28 }, "end": { - "line": 303, + "line": 315, "column": 33 } } @@ -69154,15 +72423,15 @@ "updateContext": null }, "value": "/", - "start": 8131, - "end": 8132, + "start": 8307, + "end": 8308, "loc": { "start": { - "line": 303, + "line": 315, "column": 34 }, "end": { - "line": 303, + "line": 315, "column": 35 } } @@ -69181,15 +72450,15 @@ "updateContext": null }, "value": 2, - "start": 8133, - "end": 8134, + "start": 8309, + "end": 8310, "loc": { "start": { - "line": 303, + "line": 315, "column": 36 }, "end": { - "line": 303, + "line": 315, "column": 37 } } @@ -69207,15 +72476,15 @@ "binop": null, "updateContext": null }, - "start": 8134, - "end": 8135, + "start": 8310, + "end": 8311, "loc": { "start": { - "line": 303, + "line": 315, "column": 37 }, "end": { - "line": 303, + "line": 315, "column": 38 } } @@ -69233,15 +72502,15 @@ "binop": null }, "value": "y", - "start": 8144, - "end": 8145, + "start": 8320, + "end": 8321, "loc": { "start": { - "line": 304, + "line": 316, "column": 8 }, "end": { - "line": 304, + "line": 316, "column": 9 } } @@ -69259,15 +72528,15 @@ "binop": null, "updateContext": null }, - "start": 8145, - "end": 8146, + "start": 8321, + "end": 8322, "loc": { "start": { - "line": 304, + "line": 316, "column": 9 }, "end": { - "line": 304, + "line": 316, "column": 10 } } @@ -69285,15 +72554,15 @@ "binop": null }, "value": "rect", - "start": 8147, - "end": 8151, + "start": 8323, + "end": 8327, "loc": { "start": { - "line": 304, + "line": 316, "column": 11 }, "end": { - "line": 304, + "line": 316, "column": 15 } } @@ -69311,15 +72580,15 @@ "binop": null, "updateContext": null }, - "start": 8151, - "end": 8152, + "start": 8327, + "end": 8328, "loc": { "start": { - "line": 304, + "line": 316, "column": 15 }, "end": { - "line": 304, + "line": 316, "column": 16 } } @@ -69337,15 +72606,15 @@ "binop": null }, "value": "top", - "start": 8152, - "end": 8155, + "start": 8328, + "end": 8331, "loc": { "start": { - "line": 304, + "line": 316, "column": 16 }, "end": { - "line": 304, + "line": 316, "column": 19 } } @@ -69364,15 +72633,15 @@ "updateContext": null }, "value": "+", - "start": 8156, - "end": 8157, + "start": 8332, + "end": 8333, "loc": { "start": { - "line": 304, + "line": 316, "column": 20 }, "end": { - "line": 304, + "line": 316, "column": 21 } } @@ -69390,15 +72659,15 @@ "binop": null }, "value": "rect", - "start": 8158, - "end": 8162, + "start": 8334, + "end": 8338, "loc": { "start": { - "line": 304, + "line": 316, "column": 22 }, "end": { - "line": 304, + "line": 316, "column": 26 } } @@ -69416,15 +72685,15 @@ "binop": null, "updateContext": null }, - "start": 8162, - "end": 8163, + "start": 8338, + "end": 8339, "loc": { "start": { - "line": 304, + "line": 316, "column": 26 }, "end": { - "line": 304, + "line": 316, "column": 27 } } @@ -69442,15 +72711,15 @@ "binop": null }, "value": "height", - "start": 8163, - "end": 8169, + "start": 8339, + "end": 8345, "loc": { "start": { - "line": 304, + "line": 316, "column": 27 }, "end": { - "line": 304, + "line": 316, "column": 33 } } @@ -69469,15 +72738,15 @@ "updateContext": null }, "value": "*", - "start": 8170, - "end": 8171, + "start": 8346, + "end": 8347, "loc": { "start": { - "line": 304, + "line": 316, "column": 34 }, "end": { - "line": 304, + "line": 316, "column": 35 } } @@ -69495,15 +72764,15 @@ "binop": null }, "value": "headPos", - "start": 8172, - "end": 8179, + "start": 8348, + "end": 8355, "loc": { "start": { - "line": 304, + "line": 316, "column": 36 }, "end": { - "line": 304, + "line": 316, "column": 43 } } @@ -69520,15 +72789,15 @@ "postfix": false, "binop": null }, - "start": 8184, - "end": 8185, + "start": 8360, + "end": 8361, "loc": { "start": { - "line": 305, + "line": 317, "column": 4 }, "end": { - "line": 305, + "line": 317, "column": 5 } } @@ -69546,15 +72815,15 @@ "binop": null, "updateContext": null }, - "start": 8185, - "end": 8186, + "start": 8361, + "end": 8362, "loc": { "start": { - "line": 305, + "line": 317, "column": 5 }, "end": { - "line": 305, + "line": 317, "column": 6 } } @@ -69571,15 +72840,15 @@ "postfix": false, "binop": null }, - "start": 8187, - "end": 8188, + "start": 8363, + "end": 8364, "loc": { "start": { - "line": 305, + "line": 317, "column": 7 }, "end": { - "line": 305, + "line": 317, "column": 8 } } @@ -69597,15 +72866,15 @@ "binop": null }, "value": "x", - "start": 8197, - "end": 8198, + "start": 8373, + "end": 8374, "loc": { "start": { - "line": 306, + "line": 318, "column": 8 }, "end": { - "line": 306, + "line": 318, "column": 9 } } @@ -69623,15 +72892,15 @@ "binop": null, "updateContext": null }, - "start": 8198, - "end": 8199, + "start": 8374, + "end": 8375, "loc": { "start": { - "line": 306, + "line": 318, "column": 9 }, "end": { - "line": 306, + "line": 318, "column": 10 } } @@ -69649,15 +72918,15 @@ "binop": null }, "value": "event", - "start": 8200, - "end": 8205, + "start": 8376, + "end": 8381, "loc": { "start": { - "line": 306, + "line": 318, "column": 11 }, "end": { - "line": 306, + "line": 318, "column": 16 } } @@ -69675,15 +72944,15 @@ "binop": null, "updateContext": null }, - "start": 8205, - "end": 8206, + "start": 8381, + "end": 8382, "loc": { "start": { - "line": 306, + "line": 318, "column": 16 }, "end": { - "line": 306, + "line": 318, "column": 17 } } @@ -69701,15 +72970,15 @@ "binop": null }, "value": "clientX", - "start": 8206, - "end": 8213, + "start": 8382, + "end": 8389, "loc": { "start": { - "line": 306, + "line": 318, "column": 17 }, "end": { - "line": 306, + "line": 318, "column": 24 } } @@ -69727,15 +72996,15 @@ "binop": null, "updateContext": null }, - "start": 8213, - "end": 8214, + "start": 8389, + "end": 8390, "loc": { "start": { - "line": 306, + "line": 318, "column": 24 }, "end": { - "line": 306, + "line": 318, "column": 25 } } @@ -69753,15 +73022,15 @@ "binop": null }, "value": "y", - "start": 8223, - "end": 8224, + "start": 8399, + "end": 8400, "loc": { "start": { - "line": 307, + "line": 319, "column": 8 }, "end": { - "line": 307, + "line": 319, "column": 9 } } @@ -69779,15 +73048,15 @@ "binop": null, "updateContext": null }, - "start": 8224, - "end": 8225, + "start": 8400, + "end": 8401, "loc": { "start": { - "line": 307, + "line": 319, "column": 9 }, "end": { - "line": 307, + "line": 319, "column": 10 } } @@ -69805,15 +73074,15 @@ "binop": null }, "value": "event", - "start": 8226, - "end": 8231, + "start": 8402, + "end": 8407, "loc": { "start": { - "line": 307, + "line": 319, "column": 11 }, "end": { - "line": 307, + "line": 319, "column": 16 } } @@ -69831,15 +73100,15 @@ "binop": null, "updateContext": null }, - "start": 8231, - "end": 8232, + "start": 8407, + "end": 8408, "loc": { "start": { - "line": 307, + "line": 319, "column": 16 }, "end": { - "line": 307, + "line": 319, "column": 17 } } @@ -69857,15 +73126,15 @@ "binop": null }, "value": "clientY", - "start": 8232, - "end": 8239, + "start": 8408, + "end": 8415, "loc": { "start": { - "line": 307, + "line": 319, "column": 17 }, "end": { - "line": 307, + "line": 319, "column": 24 } } @@ -69882,15 +73151,15 @@ "postfix": false, "binop": null }, - "start": 8244, - "end": 8245, + "start": 8420, + "end": 8421, "loc": { "start": { - "line": 308, + "line": 320, "column": 4 }, "end": { - "line": 308, + "line": 320, "column": 5 } } @@ -69908,15 +73177,15 @@ "binop": null, "updateContext": null }, - "start": 8245, - "end": 8246, + "start": 8421, + "end": 8422, "loc": { "start": { - "line": 308, + "line": 320, "column": 5 }, "end": { - "line": 308, + "line": 320, "column": 6 } } @@ -69934,15 +73203,15 @@ "binop": null }, "value": "rect", - "start": 8247, - "end": 8251, + "start": 8423, + "end": 8427, "loc": { "start": { - "line": 308, + "line": 320, "column": 7 }, "end": { - "line": 308, + "line": 320, "column": 11 } } @@ -69959,15 +73228,15 @@ "postfix": false, "binop": null }, - "start": 8251, - "end": 8252, + "start": 8427, + "end": 8428, "loc": { "start": { - "line": 308, + "line": 320, "column": 11 }, "end": { - "line": 308, + "line": 320, "column": 12 } } @@ -69987,15 +73256,15 @@ "updateContext": null }, "value": "let", - "start": 8257, - "end": 8260, + "start": 8433, + "end": 8436, "loc": { "start": { - "line": 309, + "line": 321, "column": 4 }, "end": { - "line": 309, + "line": 321, "column": 7 } } @@ -70013,15 +73282,15 @@ "binop": null }, "value": "vx", - "start": 8261, - "end": 8263, + "start": 8437, + "end": 8439, "loc": { "start": { - "line": 309, + "line": 321, "column": 8 }, "end": { - "line": 309, + "line": 321, "column": 10 } } @@ -70040,15 +73309,15 @@ "updateContext": null }, "value": "=", - "start": 8264, - "end": 8265, + "start": 8440, + "end": 8441, "loc": { "start": { - "line": 309, + "line": 321, "column": 11 }, "end": { - "line": 309, + "line": 321, "column": 12 } } @@ -70066,15 +73335,15 @@ "binop": null }, "value": "transformViewX", - "start": 8266, - "end": 8280, + "start": 8442, + "end": 8456, "loc": { "start": { - "line": 309, + "line": 321, "column": 13 }, "end": { - "line": 309, + "line": 321, "column": 27 } } @@ -70091,15 +73360,15 @@ "postfix": false, "binop": null }, - "start": 8280, - "end": 8281, + "start": 8456, + "end": 8457, "loc": { "start": { - "line": 309, + "line": 321, "column": 27 }, "end": { - "line": 309, + "line": 321, "column": 28 } } @@ -70117,15 +73386,15 @@ "binop": null }, "value": "target", - "start": 8281, - "end": 8287, + "start": 8457, + "end": 8463, "loc": { "start": { - "line": 309, + "line": 321, "column": 28 }, "end": { - "line": 309, + "line": 321, "column": 34 } } @@ -70143,15 +73412,15 @@ "binop": null, "updateContext": null }, - "start": 8287, - "end": 8288, + "start": 8463, + "end": 8464, "loc": { "start": { - "line": 309, + "line": 321, "column": 34 }, "end": { - "line": 309, + "line": 321, "column": 35 } } @@ -70169,15 +73438,15 @@ "binop": null }, "value": "x", - "start": 8288, - "end": 8289, + "start": 8464, + "end": 8465, "loc": { "start": { - "line": 309, + "line": 321, "column": 35 }, "end": { - "line": 309, + "line": 321, "column": 36 } } @@ -70196,15 +73465,15 @@ "updateContext": null }, "value": "-", - "start": 8290, - "end": 8291, + "start": 8466, + "end": 8467, "loc": { "start": { - "line": 309, + "line": 321, "column": 37 }, "end": { - "line": 309, + "line": 321, "column": 38 } } @@ -70222,15 +73491,15 @@ "binop": null }, "value": "rect", - "start": 8292, - "end": 8296, + "start": 8468, + "end": 8472, "loc": { "start": { - "line": 309, + "line": 321, "column": 39 }, "end": { - "line": 309, + "line": 321, "column": 43 } } @@ -70248,15 +73517,15 @@ "binop": null, "updateContext": null }, - "start": 8296, - "end": 8297, + "start": 8472, + "end": 8473, "loc": { "start": { - "line": 309, + "line": 321, "column": 43 }, "end": { - "line": 309, + "line": 321, "column": 44 } } @@ -70274,15 +73543,15 @@ "binop": null }, "value": "left", - "start": 8297, - "end": 8301, + "start": 8473, + "end": 8477, "loc": { "start": { - "line": 309, + "line": 321, "column": 44 }, "end": { - "line": 309, + "line": 321, "column": 48 } } @@ -70299,15 +73568,15 @@ "postfix": false, "binop": null }, - "start": 8301, - "end": 8302, + "start": 8477, + "end": 8478, "loc": { "start": { - "line": 309, + "line": 321, "column": 48 }, "end": { - "line": 309, + "line": 321, "column": 49 } } @@ -70325,15 +73594,15 @@ "binop": null, "updateContext": null }, - "start": 8302, - "end": 8303, + "start": 8478, + "end": 8479, "loc": { "start": { - "line": 309, + "line": 321, "column": 49 }, "end": { - "line": 309, + "line": 321, "column": 50 } } @@ -70353,15 +73622,15 @@ "updateContext": null }, "value": "let", - "start": 8308, - "end": 8311, + "start": 8484, + "end": 8487, "loc": { "start": { - "line": 310, + "line": 322, "column": 4 }, "end": { - "line": 310, + "line": 322, "column": 7 } } @@ -70379,15 +73648,15 @@ "binop": null }, "value": "vy", - "start": 8312, - "end": 8314, + "start": 8488, + "end": 8490, "loc": { "start": { - "line": 310, + "line": 322, "column": 8 }, "end": { - "line": 310, + "line": 322, "column": 10 } } @@ -70406,15 +73675,15 @@ "updateContext": null }, "value": "=", - "start": 8315, - "end": 8316, + "start": 8491, + "end": 8492, "loc": { "start": { - "line": 310, + "line": 322, "column": 11 }, "end": { - "line": 310, + "line": 322, "column": 12 } } @@ -70432,15 +73701,15 @@ "binop": null }, "value": "transformViewY", - "start": 8317, - "end": 8331, + "start": 8493, + "end": 8507, "loc": { "start": { - "line": 310, + "line": 322, "column": 13 }, "end": { - "line": 310, + "line": 322, "column": 27 } } @@ -70457,15 +73726,15 @@ "postfix": false, "binop": null }, - "start": 8331, - "end": 8332, + "start": 8507, + "end": 8508, "loc": { "start": { - "line": 310, + "line": 322, "column": 27 }, "end": { - "line": 310, + "line": 322, "column": 28 } } @@ -70483,15 +73752,15 @@ "binop": null }, "value": "target", - "start": 8332, - "end": 8338, + "start": 8508, + "end": 8514, "loc": { "start": { - "line": 310, + "line": 322, "column": 28 }, "end": { - "line": 310, + "line": 322, "column": 34 } } @@ -70509,15 +73778,15 @@ "binop": null, "updateContext": null }, - "start": 8338, - "end": 8339, + "start": 8514, + "end": 8515, "loc": { "start": { - "line": 310, + "line": 322, "column": 34 }, "end": { - "line": 310, + "line": 322, "column": 35 } } @@ -70535,15 +73804,15 @@ "binop": null }, "value": "y", - "start": 8339, - "end": 8340, + "start": 8515, + "end": 8516, "loc": { "start": { - "line": 310, + "line": 322, "column": 35 }, "end": { - "line": 310, + "line": 322, "column": 36 } } @@ -70562,15 +73831,15 @@ "updateContext": null }, "value": "-", - "start": 8341, - "end": 8342, + "start": 8517, + "end": 8518, "loc": { "start": { - "line": 310, + "line": 322, "column": 37 }, "end": { - "line": 310, + "line": 322, "column": 38 } } @@ -70588,15 +73857,15 @@ "binop": null }, "value": "rect", - "start": 8343, - "end": 8347, + "start": 8519, + "end": 8523, "loc": { "start": { - "line": 310, + "line": 322, "column": 39 }, "end": { - "line": 310, + "line": 322, "column": 43 } } @@ -70614,15 +73883,15 @@ "binop": null, "updateContext": null }, - "start": 8347, - "end": 8348, + "start": 8523, + "end": 8524, "loc": { "start": { - "line": 310, + "line": 322, "column": 43 }, "end": { - "line": 310, + "line": 322, "column": 44 } } @@ -70640,15 +73909,15 @@ "binop": null }, "value": "top", - "start": 8348, - "end": 8351, + "start": 8524, + "end": 8527, "loc": { "start": { - "line": 310, + "line": 322, "column": 44 }, "end": { - "line": 310, + "line": 322, "column": 47 } } @@ -70665,15 +73934,15 @@ "postfix": false, "binop": null }, - "start": 8351, - "end": 8352, + "start": 8527, + "end": 8528, "loc": { "start": { - "line": 310, + "line": 322, "column": 47 }, "end": { - "line": 310, + "line": 322, "column": 48 } } @@ -70691,15 +73960,15 @@ "binop": null, "updateContext": null }, - "start": 8352, - "end": 8353, + "start": 8528, + "end": 8529, "loc": { "start": { - "line": 310, + "line": 322, "column": 48 }, "end": { - "line": 310, + "line": 322, "column": 49 } } @@ -70719,15 +73988,15 @@ "updateContext": null }, "value": "if", - "start": 8359, - "end": 8361, + "start": 8535, + "end": 8537, "loc": { "start": { - "line": 312, + "line": 324, "column": 4 }, "end": { - "line": 312, + "line": 324, "column": 6 } } @@ -70744,15 +74013,15 @@ "postfix": false, "binop": null }, - "start": 8362, - "end": 8363, + "start": 8538, + "end": 8539, "loc": { "start": { - "line": 312, + "line": 324, "column": 7 }, "end": { - "line": 312, + "line": 324, "column": 8 } } @@ -70770,15 +74039,15 @@ "binop": null }, "value": "cDefine", - "start": 8363, - "end": 8370, + "start": 8539, + "end": 8546, "loc": { "start": { - "line": 312, + "line": 324, "column": 8 }, "end": { - "line": 312, + "line": 324, "column": 15 } } @@ -70796,15 +74065,15 @@ "binop": null, "updateContext": null }, - "start": 8370, - "end": 8371, + "start": 8546, + "end": 8547, "loc": { "start": { - "line": 312, + "line": 324, "column": 15 }, "end": { - "line": 312, + "line": 324, "column": 16 } } @@ -70822,15 +74091,15 @@ "binop": null }, "value": "DEBUG_MOUSE_LOG", - "start": 8371, - "end": 8386, + "start": 8547, + "end": 8562, "loc": { "start": { - "line": 312, + "line": 324, "column": 16 }, "end": { - "line": 312, + "line": 324, "column": 31 } } @@ -70847,15 +74116,15 @@ "postfix": false, "binop": null }, - "start": 8386, - "end": 8387, + "start": 8562, + "end": 8563, "loc": { "start": { - "line": 312, + "line": 324, "column": 31 }, "end": { - "line": 312, + "line": 324, "column": 32 } } @@ -70873,15 +74142,15 @@ "binop": null }, "value": "console", - "start": 8396, - "end": 8403, + "start": 8572, + "end": 8579, "loc": { "start": { - "line": 313, + "line": 325, "column": 8 }, "end": { - "line": 313, + "line": 325, "column": 15 } } @@ -70899,15 +74168,15 @@ "binop": null, "updateContext": null }, - "start": 8403, - "end": 8404, + "start": 8579, + "end": 8580, "loc": { "start": { - "line": 313, + "line": 325, "column": 15 }, "end": { - "line": 313, + "line": 325, "column": 16 } } @@ -70925,15 +74194,15 @@ "binop": null }, "value": "log", - "start": 8404, - "end": 8407, + "start": 8580, + "end": 8583, "loc": { "start": { - "line": 313, + "line": 325, "column": 16 }, "end": { - "line": 313, + "line": 325, "column": 19 } } @@ -70950,15 +74219,15 @@ "postfix": false, "binop": null }, - "start": 8407, - "end": 8408, + "start": 8583, + "end": 8584, "loc": { "start": { - "line": 313, + "line": 325, "column": 19 }, "end": { - "line": 313, + "line": 325, "column": 20 } } @@ -70977,15 +74246,15 @@ "updateContext": null }, "value": "modelTapEvent onMouseDown device( x:", - "start": 8408, - "end": 8446, + "start": 8584, + "end": 8622, "loc": { "start": { - "line": 313, + "line": 325, "column": 20 }, "end": { - "line": 313, + "line": 325, "column": 58 } } @@ -71004,15 +74273,15 @@ "updateContext": null }, "value": "+", - "start": 8447, - "end": 8448, + "start": 8623, + "end": 8624, "loc": { "start": { - "line": 313, + "line": 325, "column": 59 }, "end": { - "line": 313, + "line": 325, "column": 60 } } @@ -71030,15 +74299,15 @@ "binop": null }, "value": "event", - "start": 8449, - "end": 8454, + "start": 8625, + "end": 8630, "loc": { "start": { - "line": 313, + "line": 325, "column": 61 }, "end": { - "line": 313, + "line": 325, "column": 66 } } @@ -71056,15 +74325,15 @@ "binop": null, "updateContext": null }, - "start": 8454, - "end": 8455, + "start": 8630, + "end": 8631, "loc": { "start": { - "line": 313, + "line": 325, "column": 66 }, "end": { - "line": 313, + "line": 325, "column": 67 } } @@ -71082,15 +74351,15 @@ "binop": null }, "value": "clientX", - "start": 8455, - "end": 8462, + "start": 8631, + "end": 8638, "loc": { "start": { - "line": 313, + "line": 325, "column": 67 }, "end": { - "line": 313, + "line": 325, "column": 74 } } @@ -71109,15 +74378,15 @@ "updateContext": null }, "value": "+", - "start": 8463, - "end": 8464, + "start": 8639, + "end": 8640, "loc": { "start": { - "line": 313, + "line": 325, "column": 75 }, "end": { - "line": 313, + "line": 325, "column": 76 } } @@ -71136,15 +74405,15 @@ "updateContext": null }, "value": " y:", - "start": 8465, - "end": 8470, + "start": 8641, + "end": 8646, "loc": { "start": { - "line": 313, + "line": 325, "column": 77 }, "end": { - "line": 313, + "line": 325, "column": 82 } } @@ -71163,15 +74432,15 @@ "updateContext": null }, "value": "+", - "start": 8471, - "end": 8472, + "start": 8647, + "end": 8648, "loc": { "start": { - "line": 313, + "line": 325, "column": 83 }, "end": { - "line": 313, + "line": 325, "column": 84 } } @@ -71189,15 +74458,15 @@ "binop": null }, "value": "event", - "start": 8473, - "end": 8478, + "start": 8649, + "end": 8654, "loc": { "start": { - "line": 313, + "line": 325, "column": 85 }, "end": { - "line": 313, + "line": 325, "column": 90 } } @@ -71215,15 +74484,15 @@ "binop": null, "updateContext": null }, - "start": 8478, - "end": 8479, + "start": 8654, + "end": 8655, "loc": { "start": { - "line": 313, + "line": 325, "column": 90 }, "end": { - "line": 313, + "line": 325, "column": 91 } } @@ -71241,15 +74510,15 @@ "binop": null }, "value": "clientY", - "start": 8479, - "end": 8486, + "start": 8655, + "end": 8662, "loc": { "start": { - "line": 313, + "line": 325, "column": 91 }, "end": { - "line": 313, + "line": 325, "column": 98 } } @@ -71268,15 +74537,15 @@ "updateContext": null }, "value": "+", - "start": 8487, - "end": 8488, + "start": 8663, + "end": 8664, "loc": { "start": { - "line": 313, + "line": 325, "column": 99 }, "end": { - "line": 313, + "line": 325, "column": 100 } } @@ -71295,15 +74564,15 @@ "updateContext": null }, "value": " ) view( x:", - "start": 8489, - "end": 8502, + "start": 8665, + "end": 8678, "loc": { "start": { - "line": 313, + "line": 325, "column": 101 }, "end": { - "line": 313, + "line": 325, "column": 114 } } @@ -71322,15 +74591,15 @@ "updateContext": null }, "value": "+", - "start": 8503, - "end": 8504, + "start": 8679, + "end": 8680, "loc": { "start": { - "line": 313, + "line": 325, "column": 115 }, "end": { - "line": 313, + "line": 325, "column": 116 } } @@ -71348,15 +74617,15 @@ "binop": null }, "value": "vx", - "start": 8505, - "end": 8507, + "start": 8681, + "end": 8683, "loc": { "start": { - "line": 313, + "line": 325, "column": 117 }, "end": { - "line": 313, + "line": 325, "column": 119 } } @@ -71375,15 +74644,15 @@ "updateContext": null }, "value": "+", - "start": 8508, - "end": 8509, + "start": 8684, + "end": 8685, "loc": { "start": { - "line": 313, + "line": 325, "column": 120 }, "end": { - "line": 313, + "line": 325, "column": 121 } } @@ -71402,15 +74671,15 @@ "updateContext": null }, "value": " y:", - "start": 8510, - "end": 8515, + "start": 8686, + "end": 8691, "loc": { "start": { - "line": 313, + "line": 325, "column": 122 }, "end": { - "line": 313, + "line": 325, "column": 127 } } @@ -71429,15 +74698,15 @@ "updateContext": null }, "value": "+", - "start": 8516, - "end": 8517, + "start": 8692, + "end": 8693, "loc": { "start": { - "line": 313, + "line": 325, "column": 128 }, "end": { - "line": 313, + "line": 325, "column": 129 } } @@ -71455,15 +74724,15 @@ "binop": null }, "value": "vy", - "start": 8518, - "end": 8520, + "start": 8694, + "end": 8696, "loc": { "start": { - "line": 313, + "line": 325, "column": 130 }, "end": { - "line": 313, + "line": 325, "column": 132 } } @@ -71482,15 +74751,15 @@ "updateContext": null }, "value": "+", - "start": 8521, - "end": 8522, + "start": 8697, + "end": 8698, "loc": { "start": { - "line": 313, + "line": 325, "column": 133 }, "end": { - "line": 313, + "line": 325, "column": 134 } } @@ -71509,15 +74778,15 @@ "updateContext": null }, "value": ")", - "start": 8523, - "end": 8526, + "start": 8699, + "end": 8702, "loc": { "start": { - "line": 313, + "line": 325, "column": 135 }, "end": { - "line": 313, + "line": 325, "column": 138 } } @@ -71534,15 +74803,15 @@ "postfix": false, "binop": null }, - "start": 8526, - "end": 8527, + "start": 8702, + "end": 8703, "loc": { "start": { - "line": 313, + "line": 325, "column": 138 }, "end": { - "line": 313, + "line": 325, "column": 139 } } @@ -71560,15 +74829,15 @@ "binop": null, "updateContext": null }, - "start": 8527, - "end": 8528, + "start": 8703, + "end": 8704, "loc": { "start": { - "line": 313, + "line": 325, "column": 139 }, "end": { - "line": 313, + "line": 325, "column": 140 } } @@ -71586,15 +74855,15 @@ "binop": null }, "value": "lastMouseX", - "start": 8534, - "end": 8544, + "start": 8710, + "end": 8720, "loc": { "start": { - "line": 315, + "line": 327, "column": 4 }, "end": { - "line": 315, + "line": 327, "column": 14 } } @@ -71613,15 +74882,15 @@ "updateContext": null }, "value": "=", - "start": 8545, - "end": 8546, + "start": 8721, + "end": 8722, "loc": { "start": { - "line": 315, + "line": 327, "column": 15 }, "end": { - "line": 315, + "line": 327, "column": 16 } } @@ -71639,15 +74908,15 @@ "binop": null }, "value": "sx", - "start": 8547, - "end": 8549, + "start": 8723, + "end": 8725, "loc": { "start": { - "line": 315, + "line": 327, "column": 17 }, "end": { - "line": 315, + "line": 327, "column": 19 } } @@ -71665,15 +74934,15 @@ "binop": null, "updateContext": null }, - "start": 8549, - "end": 8550, + "start": 8725, + "end": 8726, "loc": { "start": { - "line": 315, + "line": 327, "column": 19 }, "end": { - "line": 315, + "line": 327, "column": 20 } } @@ -71691,15 +74960,15 @@ "binop": null }, "value": "lastMouseY", - "start": 8555, - "end": 8565, + "start": 8731, + "end": 8741, "loc": { "start": { - "line": 316, + "line": 328, "column": 4 }, "end": { - "line": 316, + "line": 328, "column": 14 } } @@ -71718,15 +74987,15 @@ "updateContext": null }, "value": "=", - "start": 8566, - "end": 8567, + "start": 8742, + "end": 8743, "loc": { "start": { - "line": 316, + "line": 328, "column": 15 }, "end": { - "line": 316, + "line": 328, "column": 16 } } @@ -71744,15 +75013,15 @@ "binop": null }, "value": "sy", - "start": 8568, - "end": 8570, + "start": 8744, + "end": 8746, "loc": { "start": { - "line": 316, + "line": 328, "column": 17 }, "end": { - "line": 316, + "line": 328, "column": 19 } } @@ -71770,15 +75039,15 @@ "binop": null, "updateContext": null }, - "start": 8570, - "end": 8571, + "start": 8746, + "end": 8747, "loc": { "start": { - "line": 316, + "line": 328, "column": 19 }, "end": { - "line": 316, + "line": 328, "column": 20 } } @@ -71796,15 +75065,15 @@ "binop": null }, "value": "live2DMgr", - "start": 8577, - "end": 8586, + "start": 8753, + "end": 8762, "loc": { "start": { - "line": 318, + "line": 330, "column": 4 }, "end": { - "line": 318, + "line": 330, "column": 13 } } @@ -71822,15 +75091,15 @@ "binop": null, "updateContext": null }, - "start": 8586, - "end": 8587, + "start": 8762, + "end": 8763, "loc": { "start": { - "line": 318, + "line": 330, "column": 13 }, "end": { - "line": 318, + "line": 330, "column": 14 } } @@ -71848,15 +75117,15 @@ "binop": null }, "value": "tapEvent", - "start": 8587, - "end": 8595, + "start": 8763, + "end": 8771, "loc": { "start": { - "line": 318, + "line": 330, "column": 14 }, "end": { - "line": 318, + "line": 330, "column": 22 } } @@ -71873,15 +75142,15 @@ "postfix": false, "binop": null }, - "start": 8595, - "end": 8596, + "start": 8771, + "end": 8772, "loc": { "start": { - "line": 318, + "line": 330, "column": 22 }, "end": { - "line": 318, + "line": 330, "column": 23 } } @@ -71899,15 +75168,15 @@ "binop": null }, "value": "vx", - "start": 8596, - "end": 8598, + "start": 8772, + "end": 8774, "loc": { "start": { - "line": 318, + "line": 330, "column": 23 }, "end": { - "line": 318, + "line": 330, "column": 25 } } @@ -71925,15 +75194,15 @@ "binop": null, "updateContext": null }, - "start": 8598, - "end": 8599, + "start": 8774, + "end": 8775, "loc": { "start": { - "line": 318, + "line": 330, "column": 25 }, "end": { - "line": 318, + "line": 330, "column": 26 } } @@ -71951,15 +75220,15 @@ "binop": null }, "value": "vy", - "start": 8600, - "end": 8602, + "start": 8776, + "end": 8778, "loc": { "start": { - "line": 318, + "line": 330, "column": 27 }, "end": { - "line": 318, + "line": 330, "column": 29 } } @@ -71976,15 +75245,15 @@ "postfix": false, "binop": null }, - "start": 8602, - "end": 8603, + "start": 8778, + "end": 8779, "loc": { "start": { - "line": 318, + "line": 330, "column": 29 }, "end": { - "line": 318, + "line": 330, "column": 30 } } @@ -72002,15 +75271,15 @@ "binop": null, "updateContext": null }, - "start": 8603, - "end": 8604, + "start": 8779, + "end": 8780, "loc": { "start": { - "line": 318, + "line": 330, "column": 30 }, "end": { - "line": 318, + "line": 330, "column": 31 } } @@ -72027,15 +75296,15 @@ "postfix": false, "binop": null }, - "start": 8605, - "end": 8606, + "start": 8781, + "end": 8782, "loc": { "start": { - "line": 319, + "line": 331, "column": 0 }, "end": { - "line": 319, + "line": 331, "column": 1 } } @@ -72054,15 +75323,15 @@ "binop": null }, "value": "function", - "start": 8608, - "end": 8616, + "start": 8784, + "end": 8792, "loc": { "start": { - "line": 321, + "line": 333, "column": 0 }, "end": { - "line": 321, + "line": 333, "column": 8 } } @@ -72080,15 +75349,15 @@ "binop": null }, "value": "followPointer", - "start": 8617, - "end": 8630, + "start": 8793, + "end": 8806, "loc": { "start": { - "line": 321, + "line": 333, "column": 9 }, "end": { - "line": 321, + "line": 333, "column": 22 } } @@ -72105,15 +75374,15 @@ "postfix": false, "binop": null }, - "start": 8630, - "end": 8631, + "start": 8806, + "end": 8807, "loc": { "start": { - "line": 321, + "line": 333, "column": 22 }, "end": { - "line": 321, + "line": 333, "column": 23 } } @@ -72131,15 +75400,15 @@ "binop": null }, "value": "event", - "start": 8631, - "end": 8636, + "start": 8807, + "end": 8812, "loc": { "start": { - "line": 321, + "line": 333, "column": 23 }, "end": { - "line": 321, + "line": 333, "column": 28 } } @@ -72156,15 +75425,15 @@ "postfix": false, "binop": null }, - "start": 8636, - "end": 8637, + "start": 8812, + "end": 8813, "loc": { "start": { - "line": 321, + "line": 333, "column": 28 }, "end": { - "line": 321, + "line": 333, "column": 29 } } @@ -72181,15 +75450,15 @@ "postfix": false, "binop": null }, - "start": 8638, - "end": 8639, + "start": 8814, + "end": 8815, "loc": { "start": { - "line": 322, + "line": 334, "column": 0 }, "end": { - "line": 322, + "line": 334, "column": 1 } } @@ -72209,15 +75478,15 @@ "updateContext": null }, "value": "let", - "start": 8644, - "end": 8647, + "start": 8820, + "end": 8823, "loc": { "start": { - "line": 323, + "line": 335, "column": 4 }, "end": { - "line": 323, + "line": 335, "column": 7 } } @@ -72235,15 +75504,15 @@ "binop": null }, "value": "rect", - "start": 8648, - "end": 8652, + "start": 8824, + "end": 8828, "loc": { "start": { - "line": 323, + "line": 335, "column": 8 }, "end": { - "line": 323, + "line": 335, "column": 12 } } @@ -72262,15 +75531,15 @@ "updateContext": null }, "value": "=", - "start": 8653, - "end": 8654, + "start": 8829, + "end": 8830, "loc": { "start": { - "line": 323, + "line": 335, "column": 13 }, "end": { - "line": 323, + "line": 335, "column": 14 } } @@ -72288,15 +75557,15 @@ "binop": null }, "value": "currCanvas", - "start": 8655, - "end": 8665, + "start": 8831, + "end": 8841, "loc": { "start": { - "line": 323, + "line": 335, "column": 15 }, "end": { - "line": 323, + "line": 335, "column": 25 } } @@ -72314,15 +75583,15 @@ "binop": null, "updateContext": null }, - "start": 8665, - "end": 8666, + "start": 8841, + "end": 8842, "loc": { "start": { - "line": 323, + "line": 335, "column": 25 }, "end": { - "line": 323, + "line": 335, "column": 26 } } @@ -72340,15 +75609,15 @@ "binop": null }, "value": "getBoundingClientRect", - "start": 8666, - "end": 8687, + "start": 8842, + "end": 8863, "loc": { "start": { - "line": 323, + "line": 335, "column": 26 }, "end": { - "line": 323, + "line": 335, "column": 47 } } @@ -72365,15 +75634,15 @@ "postfix": false, "binop": null }, - "start": 8687, - "end": 8688, + "start": 8863, + "end": 8864, "loc": { "start": { - "line": 323, + "line": 335, "column": 47 }, "end": { - "line": 323, + "line": 335, "column": 48 } } @@ -72390,15 +75659,15 @@ "postfix": false, "binop": null }, - "start": 8688, - "end": 8689, + "start": 8864, + "end": 8865, "loc": { "start": { - "line": 323, + "line": 335, "column": 48 }, "end": { - "line": 323, + "line": 335, "column": 49 } } @@ -72416,15 +75685,15 @@ "binop": null, "updateContext": null }, - "start": 8689, - "end": 8690, + "start": 8865, + "end": 8866, "loc": { "start": { - "line": 323, + "line": 335, "column": 49 }, "end": { - "line": 323, + "line": 335, "column": 50 } } @@ -72444,15 +75713,15 @@ "updateContext": null }, "value": "let", - "start": 8696, - "end": 8699, + "start": 8872, + "end": 8875, "loc": { "start": { - "line": 325, + "line": 337, "column": 4 }, "end": { - "line": 325, + "line": 337, "column": 7 } } @@ -72470,15 +75739,15 @@ "binop": null }, "value": "sx", - "start": 8700, - "end": 8702, + "start": 8876, + "end": 8878, "loc": { "start": { - "line": 325, + "line": 337, "column": 8 }, "end": { - "line": 325, + "line": 337, "column": 10 } } @@ -72497,15 +75766,15 @@ "updateContext": null }, "value": "=", - "start": 8703, - "end": 8704, + "start": 8879, + "end": 8880, "loc": { "start": { - "line": 325, + "line": 337, "column": 11 }, "end": { - "line": 325, + "line": 337, "column": 12 } } @@ -72523,15 +75792,15 @@ "binop": null }, "value": "transformScreenX", - "start": 8705, - "end": 8721, + "start": 8881, + "end": 8897, "loc": { "start": { - "line": 325, + "line": 337, "column": 13 }, "end": { - "line": 325, + "line": 337, "column": 29 } } @@ -72548,15 +75817,15 @@ "postfix": false, "binop": null }, - "start": 8721, - "end": 8722, + "start": 8897, + "end": 8898, "loc": { "start": { - "line": 325, + "line": 337, "column": 29 }, "end": { - "line": 325, + "line": 337, "column": 30 } } @@ -72574,15 +75843,15 @@ "binop": null }, "value": "event", - "start": 8722, - "end": 8727, + "start": 8898, + "end": 8903, "loc": { "start": { - "line": 325, + "line": 337, "column": 30 }, "end": { - "line": 325, + "line": 337, "column": 35 } } @@ -72600,15 +75869,15 @@ "binop": null, "updateContext": null }, - "start": 8727, - "end": 8728, + "start": 8903, + "end": 8904, "loc": { "start": { - "line": 325, + "line": 337, "column": 35 }, "end": { - "line": 325, + "line": 337, "column": 36 } } @@ -72626,15 +75895,15 @@ "binop": null }, "value": "clientX", - "start": 8728, - "end": 8735, + "start": 8904, + "end": 8911, "loc": { "start": { - "line": 325, + "line": 337, "column": 36 }, "end": { - "line": 325, + "line": 337, "column": 43 } } @@ -72653,15 +75922,15 @@ "updateContext": null }, "value": "-", - "start": 8736, - "end": 8737, + "start": 8912, + "end": 8913, "loc": { "start": { - "line": 325, + "line": 337, "column": 44 }, "end": { - "line": 325, + "line": 337, "column": 45 } } @@ -72679,15 +75948,15 @@ "binop": null }, "value": "rect", - "start": 8738, - "end": 8742, + "start": 8914, + "end": 8918, "loc": { "start": { - "line": 325, + "line": 337, "column": 46 }, "end": { - "line": 325, + "line": 337, "column": 50 } } @@ -72705,15 +75974,15 @@ "binop": null, "updateContext": null }, - "start": 8742, - "end": 8743, + "start": 8918, + "end": 8919, "loc": { "start": { - "line": 325, + "line": 337, "column": 50 }, "end": { - "line": 325, + "line": 337, "column": 51 } } @@ -72731,15 +76000,15 @@ "binop": null }, "value": "left", - "start": 8743, - "end": 8747, + "start": 8919, + "end": 8923, "loc": { "start": { - "line": 325, + "line": 337, "column": 51 }, "end": { - "line": 325, + "line": 337, "column": 55 } } @@ -72756,15 +76025,15 @@ "postfix": false, "binop": null }, - "start": 8747, - "end": 8748, + "start": 8923, + "end": 8924, "loc": { "start": { - "line": 325, + "line": 337, "column": 55 }, "end": { - "line": 325, + "line": 337, "column": 56 } } @@ -72782,15 +76051,15 @@ "binop": null, "updateContext": null }, - "start": 8748, - "end": 8749, + "start": 8924, + "end": 8925, "loc": { "start": { - "line": 325, + "line": 337, "column": 56 }, "end": { - "line": 325, + "line": 337, "column": 57 } } @@ -72810,15 +76079,15 @@ "updateContext": null }, "value": "let", - "start": 8754, - "end": 8757, + "start": 8930, + "end": 8933, "loc": { "start": { - "line": 326, + "line": 338, "column": 4 }, "end": { - "line": 326, + "line": 338, "column": 7 } } @@ -72836,15 +76105,15 @@ "binop": null }, "value": "sy", - "start": 8758, - "end": 8760, + "start": 8934, + "end": 8936, "loc": { "start": { - "line": 326, + "line": 338, "column": 8 }, "end": { - "line": 326, + "line": 338, "column": 10 } } @@ -72863,15 +76132,15 @@ "updateContext": null }, "value": "=", - "start": 8761, - "end": 8762, + "start": 8937, + "end": 8938, "loc": { "start": { - "line": 326, + "line": 338, "column": 11 }, "end": { - "line": 326, + "line": 338, "column": 12 } } @@ -72889,15 +76158,15 @@ "binop": null }, "value": "transformScreenY", - "start": 8763, - "end": 8779, + "start": 8939, + "end": 8955, "loc": { "start": { - "line": 326, + "line": 338, "column": 13 }, "end": { - "line": 326, + "line": 338, "column": 29 } } @@ -72914,15 +76183,15 @@ "postfix": false, "binop": null }, - "start": 8779, - "end": 8780, + "start": 8955, + "end": 8956, "loc": { "start": { - "line": 326, + "line": 338, "column": 29 }, "end": { - "line": 326, + "line": 338, "column": 30 } } @@ -72940,15 +76209,15 @@ "binop": null }, "value": "event", - "start": 8780, - "end": 8785, + "start": 8956, + "end": 8961, "loc": { "start": { - "line": 326, + "line": 338, "column": 30 }, "end": { - "line": 326, + "line": 338, "column": 35 } } @@ -72966,15 +76235,15 @@ "binop": null, "updateContext": null }, - "start": 8785, - "end": 8786, + "start": 8961, + "end": 8962, "loc": { "start": { - "line": 326, + "line": 338, "column": 35 }, "end": { - "line": 326, + "line": 338, "column": 36 } } @@ -72992,15 +76261,15 @@ "binop": null }, "value": "clientY", - "start": 8786, - "end": 8793, + "start": 8962, + "end": 8969, "loc": { "start": { - "line": 326, + "line": 338, "column": 36 }, "end": { - "line": 326, + "line": 338, "column": 43 } } @@ -73019,15 +76288,15 @@ "updateContext": null }, "value": "-", - "start": 8794, - "end": 8795, + "start": 8970, + "end": 8971, "loc": { "start": { - "line": 326, + "line": 338, "column": 44 }, "end": { - "line": 326, + "line": 338, "column": 45 } } @@ -73045,15 +76314,15 @@ "binop": null }, "value": "rect", - "start": 8796, - "end": 8800, + "start": 8972, + "end": 8976, "loc": { "start": { - "line": 326, + "line": 338, "column": 46 }, "end": { - "line": 326, + "line": 338, "column": 50 } } @@ -73071,15 +76340,15 @@ "binop": null, "updateContext": null }, - "start": 8800, - "end": 8801, + "start": 8976, + "end": 8977, "loc": { "start": { - "line": 326, + "line": 338, "column": 50 }, "end": { - "line": 326, + "line": 338, "column": 51 } } @@ -73097,15 +76366,15 @@ "binop": null }, "value": "top", - "start": 8801, - "end": 8804, + "start": 8977, + "end": 8980, "loc": { "start": { - "line": 326, + "line": 338, "column": 51 }, "end": { - "line": 326, + "line": 338, "column": 54 } } @@ -73122,15 +76391,15 @@ "postfix": false, "binop": null }, - "start": 8804, - "end": 8805, + "start": 8980, + "end": 8981, "loc": { "start": { - "line": 326, + "line": 338, "column": 54 }, "end": { - "line": 326, + "line": 338, "column": 55 } } @@ -73148,15 +76417,15 @@ "binop": null, "updateContext": null }, - "start": 8805, - "end": 8806, + "start": 8981, + "end": 8982, "loc": { "start": { - "line": 326, + "line": 338, "column": 55 }, "end": { - "line": 326, + "line": 338, "column": 56 } } @@ -73164,15 +76433,15 @@ { "type": "CommentLine", "value": " log but seems ok", - "start": 8812, - "end": 8831, + "start": 8988, + "end": 9007, "loc": { "start": { - "line": 328, + "line": 340, "column": 4 }, "end": { - "line": 328, + "line": 340, "column": 23 } } @@ -73180,15 +76449,15 @@ { "type": "CommentLine", "value": " console.log(\"ecx=\" + event.clientX + \" ecy=\" + event.clientY + \" sx=\" + sx + \" sy=\" + sy);", - "start": 8836, - "end": 8929, + "start": 9012, + "end": 9105, "loc": { "start": { - "line": 329, + "line": 341, "column": 4 }, "end": { - "line": 329, + "line": 341, "column": 97 } } @@ -73208,15 +76477,15 @@ "updateContext": null }, "value": "let", - "start": 8935, - "end": 8938, + "start": 9111, + "end": 9114, "loc": { "start": { - "line": 331, + "line": 343, "column": 4 }, "end": { - "line": 331, + "line": 343, "column": 7 } } @@ -73234,15 +76503,15 @@ "binop": null }, "value": "target", - "start": 8939, - "end": 8945, + "start": 9115, + "end": 9121, "loc": { "start": { - "line": 331, + "line": 343, "column": 8 }, "end": { - "line": 331, + "line": 343, "column": 14 } } @@ -73261,15 +76530,15 @@ "updateContext": null }, "value": "=", - "start": 8946, - "end": 8947, + "start": 9122, + "end": 9123, "loc": { "start": { - "line": 331, + "line": 343, "column": 15 }, "end": { - "line": 331, + "line": 343, "column": 16 } } @@ -73287,15 +76556,15 @@ "binop": null }, "value": "transformRect", - "start": 8948, - "end": 8961, + "start": 9124, + "end": 9137, "loc": { "start": { - "line": 331, + "line": 343, "column": 17 }, "end": { - "line": 331, + "line": 343, "column": 30 } } @@ -73312,15 +76581,15 @@ "postfix": false, "binop": null }, - "start": 8961, - "end": 8962, + "start": 9137, + "end": 9138, "loc": { "start": { - "line": 331, + "line": 343, "column": 30 }, "end": { - "line": 331, + "line": 343, "column": 31 } } @@ -73337,15 +76606,15 @@ "postfix": false, "binop": null }, - "start": 8962, - "end": 8963, + "start": 9138, + "end": 9139, "loc": { "start": { - "line": 331, + "line": 343, "column": 31 }, "end": { - "line": 331, + "line": 343, "column": 32 } } @@ -73353,15 +76622,15 @@ { "type": "CommentLine", "value": " seems ok here", - "start": 8963, - "end": 8979, + "start": 9139, + "end": 9155, "loc": { "start": { - "line": 331, + "line": 343, "column": 32 }, "end": { - "line": 331, + "line": 343, "column": 48 } } @@ -73379,15 +76648,15 @@ "binop": null }, "value": "x", - "start": 8988, - "end": 8989, + "start": 9164, + "end": 9165, "loc": { "start": { - "line": 332, + "line": 344, "column": 8 }, "end": { - "line": 332, + "line": 344, "column": 9 } } @@ -73405,15 +76674,15 @@ "binop": null, "updateContext": null }, - "start": 8989, - "end": 8990, + "start": 9165, + "end": 9166, "loc": { "start": { - "line": 332, + "line": 344, "column": 9 }, "end": { - "line": 332, + "line": 344, "column": 10 } } @@ -73431,15 +76700,15 @@ "binop": null }, "value": "rect", - "start": 8991, - "end": 8995, + "start": 9167, + "end": 9171, "loc": { "start": { - "line": 332, + "line": 344, "column": 11 }, "end": { - "line": 332, + "line": 344, "column": 15 } } @@ -73457,15 +76726,15 @@ "binop": null, "updateContext": null }, - "start": 8995, - "end": 8996, + "start": 9171, + "end": 9172, "loc": { "start": { - "line": 332, + "line": 344, "column": 15 }, "end": { - "line": 332, + "line": 344, "column": 16 } } @@ -73483,15 +76752,15 @@ "binop": null }, "value": "left", - "start": 8996, - "end": 9000, + "start": 9172, + "end": 9176, "loc": { "start": { - "line": 332, + "line": 344, "column": 16 }, "end": { - "line": 332, + "line": 344, "column": 20 } } @@ -73510,15 +76779,15 @@ "updateContext": null }, "value": "+", - "start": 9001, - "end": 9002, + "start": 9177, + "end": 9178, "loc": { "start": { - "line": 332, + "line": 344, "column": 21 }, "end": { - "line": 332, + "line": 344, "column": 22 } } @@ -73536,15 +76805,15 @@ "binop": null }, "value": "rect", - "start": 9003, - "end": 9007, + "start": 9179, + "end": 9183, "loc": { "start": { - "line": 332, + "line": 344, "column": 23 }, "end": { - "line": 332, + "line": 344, "column": 27 } } @@ -73562,15 +76831,15 @@ "binop": null, "updateContext": null }, - "start": 9007, - "end": 9008, + "start": 9183, + "end": 9184, "loc": { "start": { - "line": 332, + "line": 344, "column": 27 }, "end": { - "line": 332, + "line": 344, "column": 28 } } @@ -73588,15 +76857,15 @@ "binop": null }, "value": "width", - "start": 9008, - "end": 9013, + "start": 9184, + "end": 9189, "loc": { "start": { - "line": 332, + "line": 344, "column": 28 }, "end": { - "line": 332, + "line": 344, "column": 33 } } @@ -73615,15 +76884,15 @@ "updateContext": null }, "value": "/", - "start": 9014, - "end": 9015, + "start": 9190, + "end": 9191, "loc": { "start": { - "line": 332, + "line": 344, "column": 34 }, "end": { - "line": 332, + "line": 344, "column": 35 } } @@ -73642,15 +76911,15 @@ "updateContext": null }, "value": 2, - "start": 9016, - "end": 9017, + "start": 9192, + "end": 9193, "loc": { "start": { - "line": 332, + "line": 344, "column": 36 }, "end": { - "line": 332, + "line": 344, "column": 37 } } @@ -73668,15 +76937,15 @@ "binop": null, "updateContext": null }, - "start": 9017, - "end": 9018, + "start": 9193, + "end": 9194, "loc": { "start": { - "line": 332, + "line": 344, "column": 37 }, "end": { - "line": 332, + "line": 344, "column": 38 } } @@ -73694,15 +76963,15 @@ "binop": null }, "value": "y", - "start": 9027, - "end": 9028, + "start": 9203, + "end": 9204, "loc": { "start": { - "line": 333, + "line": 345, "column": 8 }, "end": { - "line": 333, + "line": 345, "column": 9 } } @@ -73720,15 +76989,15 @@ "binop": null, "updateContext": null }, - "start": 9028, - "end": 9029, + "start": 9204, + "end": 9205, "loc": { "start": { - "line": 333, + "line": 345, "column": 9 }, "end": { - "line": 333, + "line": 345, "column": 10 } } @@ -73746,15 +77015,15 @@ "binop": null }, "value": "rect", - "start": 9030, - "end": 9034, + "start": 9206, + "end": 9210, "loc": { "start": { - "line": 333, + "line": 345, "column": 11 }, "end": { - "line": 333, + "line": 345, "column": 15 } } @@ -73772,15 +77041,15 @@ "binop": null, "updateContext": null }, - "start": 9034, - "end": 9035, + "start": 9210, + "end": 9211, "loc": { "start": { - "line": 333, + "line": 345, "column": 15 }, "end": { - "line": 333, + "line": 345, "column": 16 } } @@ -73798,15 +77067,15 @@ "binop": null }, "value": "top", - "start": 9035, - "end": 9038, + "start": 9211, + "end": 9214, "loc": { "start": { - "line": 333, + "line": 345, "column": 16 }, "end": { - "line": 333, + "line": 345, "column": 19 } } @@ -73825,15 +77094,15 @@ "updateContext": null }, "value": "+", - "start": 9039, - "end": 9040, + "start": 9215, + "end": 9216, "loc": { "start": { - "line": 333, + "line": 345, "column": 20 }, "end": { - "line": 333, + "line": 345, "column": 21 } } @@ -73851,15 +77120,15 @@ "binop": null }, "value": "rect", - "start": 9041, - "end": 9045, + "start": 9217, + "end": 9221, "loc": { "start": { - "line": 333, + "line": 345, "column": 22 }, "end": { - "line": 333, + "line": 345, "column": 26 } } @@ -73877,15 +77146,15 @@ "binop": null, "updateContext": null }, - "start": 9045, - "end": 9046, + "start": 9221, + "end": 9222, "loc": { "start": { - "line": 333, + "line": 345, "column": 26 }, "end": { - "line": 333, + "line": 345, "column": 27 } } @@ -73903,15 +77172,15 @@ "binop": null }, "value": "height", - "start": 9046, - "end": 9052, + "start": 9222, + "end": 9228, "loc": { "start": { - "line": 333, + "line": 345, "column": 27 }, "end": { - "line": 333, + "line": 345, "column": 33 } } @@ -73930,15 +77199,15 @@ "updateContext": null }, "value": "*", - "start": 9053, - "end": 9054, + "start": 9229, + "end": 9230, "loc": { "start": { - "line": 333, + "line": 345, "column": 34 }, "end": { - "line": 333, + "line": 345, "column": 35 } } @@ -73956,15 +77225,15 @@ "binop": null }, "value": "headPos", - "start": 9055, - "end": 9062, + "start": 9231, + "end": 9238, "loc": { "start": { - "line": 333, + "line": 345, "column": 36 }, "end": { - "line": 333, + "line": 345, "column": 43 } } @@ -73981,15 +77250,15 @@ "postfix": false, "binop": null }, - "start": 9067, - "end": 9068, + "start": 9243, + "end": 9244, "loc": { "start": { - "line": 334, + "line": 346, "column": 4 }, "end": { - "line": 334, + "line": 346, "column": 5 } } @@ -74007,15 +77276,15 @@ "binop": null, "updateContext": null }, - "start": 9068, - "end": 9069, + "start": 9244, + "end": 9245, "loc": { "start": { - "line": 334, + "line": 346, "column": 5 }, "end": { - "line": 334, + "line": 346, "column": 6 } } @@ -74032,15 +77301,15 @@ "postfix": false, "binop": null }, - "start": 9070, - "end": 9071, + "start": 9246, + "end": 9247, "loc": { "start": { - "line": 334, + "line": 346, "column": 7 }, "end": { - "line": 334, + "line": 346, "column": 8 } } @@ -74058,15 +77327,15 @@ "binop": null }, "value": "x", - "start": 9080, - "end": 9081, + "start": 9256, + "end": 9257, "loc": { "start": { - "line": 335, + "line": 347, "column": 8 }, "end": { - "line": 335, + "line": 347, "column": 9 } } @@ -74084,15 +77353,15 @@ "binop": null, "updateContext": null }, - "start": 9081, - "end": 9082, + "start": 9257, + "end": 9258, "loc": { "start": { - "line": 335, + "line": 347, "column": 9 }, "end": { - "line": 335, + "line": 347, "column": 10 } } @@ -74110,15 +77379,15 @@ "binop": null }, "value": "event", - "start": 9083, - "end": 9088, + "start": 9259, + "end": 9264, "loc": { "start": { - "line": 335, + "line": 347, "column": 11 }, "end": { - "line": 335, + "line": 347, "column": 16 } } @@ -74136,15 +77405,15 @@ "binop": null, "updateContext": null }, - "start": 9088, - "end": 9089, + "start": 9264, + "end": 9265, "loc": { "start": { - "line": 335, + "line": 347, "column": 16 }, "end": { - "line": 335, + "line": 347, "column": 17 } } @@ -74162,15 +77431,15 @@ "binop": null }, "value": "clientX", - "start": 9089, - "end": 9096, + "start": 9265, + "end": 9272, "loc": { "start": { - "line": 335, + "line": 347, "column": 17 }, "end": { - "line": 335, + "line": 347, "column": 24 } } @@ -74188,15 +77457,15 @@ "binop": null, "updateContext": null }, - "start": 9096, - "end": 9097, + "start": 9272, + "end": 9273, "loc": { "start": { - "line": 335, + "line": 347, "column": 24 }, "end": { - "line": 335, + "line": 347, "column": 25 } } @@ -74214,15 +77483,15 @@ "binop": null }, "value": "y", - "start": 9106, - "end": 9107, + "start": 9282, + "end": 9283, "loc": { "start": { - "line": 336, + "line": 348, "column": 8 }, "end": { - "line": 336, + "line": 348, "column": 9 } } @@ -74240,15 +77509,15 @@ "binop": null, "updateContext": null }, - "start": 9107, - "end": 9108, + "start": 9283, + "end": 9284, "loc": { "start": { - "line": 336, + "line": 348, "column": 9 }, "end": { - "line": 336, + "line": 348, "column": 10 } } @@ -74266,15 +77535,15 @@ "binop": null }, "value": "event", - "start": 9109, - "end": 9114, + "start": 9285, + "end": 9290, "loc": { "start": { - "line": 336, + "line": 348, "column": 11 }, "end": { - "line": 336, + "line": 348, "column": 16 } } @@ -74292,15 +77561,15 @@ "binop": null, "updateContext": null }, - "start": 9114, - "end": 9115, + "start": 9290, + "end": 9291, "loc": { "start": { - "line": 336, + "line": 348, "column": 16 }, "end": { - "line": 336, + "line": 348, "column": 17 } } @@ -74318,15 +77587,15 @@ "binop": null }, "value": "clientY", - "start": 9115, - "end": 9122, + "start": 9291, + "end": 9298, "loc": { "start": { - "line": 336, + "line": 348, "column": 17 }, "end": { - "line": 336, + "line": 348, "column": 24 } } @@ -74343,15 +77612,15 @@ "postfix": false, "binop": null }, - "start": 9127, - "end": 9128, + "start": 9303, + "end": 9304, "loc": { "start": { - "line": 337, + "line": 349, "column": 4 }, "end": { - "line": 337, + "line": 349, "column": 5 } } @@ -74369,15 +77638,15 @@ "binop": null, "updateContext": null }, - "start": 9128, - "end": 9129, + "start": 9304, + "end": 9305, "loc": { "start": { - "line": 337, + "line": 349, "column": 5 }, "end": { - "line": 337, + "line": 349, "column": 6 } } @@ -74395,15 +77664,15 @@ "binop": null }, "value": "rect", - "start": 9130, - "end": 9134, + "start": 9306, + "end": 9310, "loc": { "start": { - "line": 337, + "line": 349, "column": 7 }, "end": { - "line": 337, + "line": 349, "column": 11 } } @@ -74420,15 +77689,15 @@ "postfix": false, "binop": null }, - "start": 9134, - "end": 9135, + "start": 9310, + "end": 9311, "loc": { "start": { - "line": 337, + "line": 349, "column": 11 }, "end": { - "line": 337, + "line": 349, "column": 12 } } @@ -74448,15 +77717,15 @@ "updateContext": null }, "value": "let", - "start": 9140, - "end": 9143, + "start": 9316, + "end": 9319, "loc": { "start": { - "line": 338, + "line": 350, "column": 4 }, "end": { - "line": 338, + "line": 350, "column": 7 } } @@ -74474,15 +77743,15 @@ "binop": null }, "value": "vx", - "start": 9144, - "end": 9146, + "start": 9320, + "end": 9322, "loc": { "start": { - "line": 338, + "line": 350, "column": 8 }, "end": { - "line": 338, + "line": 350, "column": 10 } } @@ -74501,15 +77770,15 @@ "updateContext": null }, "value": "=", - "start": 9147, - "end": 9148, + "start": 9323, + "end": 9324, "loc": { "start": { - "line": 338, + "line": 350, "column": 11 }, "end": { - "line": 338, + "line": 350, "column": 12 } } @@ -74527,15 +77796,15 @@ "binop": null }, "value": "transformViewX", - "start": 9149, - "end": 9163, + "start": 9325, + "end": 9339, "loc": { "start": { - "line": 338, + "line": 350, "column": 13 }, "end": { - "line": 338, + "line": 350, "column": 27 } } @@ -74552,15 +77821,15 @@ "postfix": false, "binop": null }, - "start": 9163, - "end": 9164, + "start": 9339, + "end": 9340, "loc": { "start": { - "line": 338, + "line": 350, "column": 27 }, "end": { - "line": 338, + "line": 350, "column": 28 } } @@ -74578,15 +77847,15 @@ "binop": null }, "value": "target", - "start": 9164, - "end": 9170, + "start": 9340, + "end": 9346, "loc": { "start": { - "line": 338, + "line": 350, "column": 28 }, "end": { - "line": 338, + "line": 350, "column": 34 } } @@ -74604,15 +77873,15 @@ "binop": null, "updateContext": null }, - "start": 9170, - "end": 9171, + "start": 9346, + "end": 9347, "loc": { "start": { - "line": 338, + "line": 350, "column": 34 }, "end": { - "line": 338, + "line": 350, "column": 35 } } @@ -74630,15 +77899,15 @@ "binop": null }, "value": "x", - "start": 9171, - "end": 9172, + "start": 9347, + "end": 9348, "loc": { "start": { - "line": 338, + "line": 350, "column": 35 }, "end": { - "line": 338, + "line": 350, "column": 36 } } @@ -74657,15 +77926,15 @@ "updateContext": null }, "value": "-", - "start": 9173, - "end": 9174, + "start": 9349, + "end": 9350, "loc": { "start": { - "line": 338, + "line": 350, "column": 37 }, "end": { - "line": 338, + "line": 350, "column": 38 } } @@ -74683,15 +77952,15 @@ "binop": null }, "value": "rect", - "start": 9175, - "end": 9179, + "start": 9351, + "end": 9355, "loc": { "start": { - "line": 338, + "line": 350, "column": 39 }, "end": { - "line": 338, + "line": 350, "column": 43 } } @@ -74709,15 +77978,15 @@ "binop": null, "updateContext": null }, - "start": 9179, - "end": 9180, + "start": 9355, + "end": 9356, "loc": { "start": { - "line": 338, + "line": 350, "column": 43 }, "end": { - "line": 338, + "line": 350, "column": 44 } } @@ -74735,15 +78004,15 @@ "binop": null }, "value": "left", - "start": 9180, - "end": 9184, + "start": 9356, + "end": 9360, "loc": { "start": { - "line": 338, + "line": 350, "column": 44 }, "end": { - "line": 338, + "line": 350, "column": 48 } } @@ -74760,15 +78029,15 @@ "postfix": false, "binop": null }, - "start": 9184, - "end": 9185, + "start": 9360, + "end": 9361, "loc": { "start": { - "line": 338, + "line": 350, "column": 48 }, "end": { - "line": 338, + "line": 350, "column": 49 } } @@ -74786,15 +78055,15 @@ "binop": null, "updateContext": null }, - "start": 9185, - "end": 9186, + "start": 9361, + "end": 9362, "loc": { "start": { - "line": 338, + "line": 350, "column": 49 }, "end": { - "line": 338, + "line": 350, "column": 50 } } @@ -74814,15 +78083,15 @@ "updateContext": null }, "value": "let", - "start": 9191, - "end": 9194, + "start": 9367, + "end": 9370, "loc": { "start": { - "line": 339, + "line": 351, "column": 4 }, "end": { - "line": 339, + "line": 351, "column": 7 } } @@ -74840,15 +78109,15 @@ "binop": null }, "value": "vy", - "start": 9195, - "end": 9197, + "start": 9371, + "end": 9373, "loc": { "start": { - "line": 339, + "line": 351, "column": 8 }, "end": { - "line": 339, + "line": 351, "column": 10 } } @@ -74867,15 +78136,15 @@ "updateContext": null }, "value": "=", - "start": 9198, - "end": 9199, + "start": 9374, + "end": 9375, "loc": { "start": { - "line": 339, + "line": 351, "column": 11 }, "end": { - "line": 339, + "line": 351, "column": 12 } } @@ -74893,15 +78162,15 @@ "binop": null }, "value": "transformViewY", - "start": 9200, - "end": 9214, + "start": 9376, + "end": 9390, "loc": { "start": { - "line": 339, + "line": 351, "column": 13 }, "end": { - "line": 339, + "line": 351, "column": 27 } } @@ -74918,15 +78187,15 @@ "postfix": false, "binop": null }, - "start": 9214, - "end": 9215, + "start": 9390, + "end": 9391, "loc": { "start": { - "line": 339, + "line": 351, "column": 27 }, "end": { - "line": 339, + "line": 351, "column": 28 } } @@ -74944,15 +78213,15 @@ "binop": null }, "value": "target", - "start": 9215, - "end": 9221, + "start": 9391, + "end": 9397, "loc": { "start": { - "line": 339, + "line": 351, "column": 28 }, "end": { - "line": 339, + "line": 351, "column": 34 } } @@ -74970,15 +78239,15 @@ "binop": null, "updateContext": null }, - "start": 9221, - "end": 9222, + "start": 9397, + "end": 9398, "loc": { "start": { - "line": 339, + "line": 351, "column": 34 }, "end": { - "line": 339, + "line": 351, "column": 35 } } @@ -74996,15 +78265,15 @@ "binop": null }, "value": "y", - "start": 9222, - "end": 9223, + "start": 9398, + "end": 9399, "loc": { "start": { - "line": 339, + "line": 351, "column": 35 }, "end": { - "line": 339, + "line": 351, "column": 36 } } @@ -75023,15 +78292,15 @@ "updateContext": null }, "value": "-", - "start": 9224, - "end": 9225, + "start": 9400, + "end": 9401, "loc": { "start": { - "line": 339, + "line": 351, "column": 37 }, "end": { - "line": 339, + "line": 351, "column": 38 } } @@ -75049,15 +78318,15 @@ "binop": null }, "value": "rect", - "start": 9226, - "end": 9230, + "start": 9402, + "end": 9406, "loc": { "start": { - "line": 339, + "line": 351, "column": 39 }, "end": { - "line": 339, + "line": 351, "column": 43 } } @@ -75075,15 +78344,15 @@ "binop": null, "updateContext": null }, - "start": 9230, - "end": 9231, + "start": 9406, + "end": 9407, "loc": { "start": { - "line": 339, + "line": 351, "column": 43 }, "end": { - "line": 339, + "line": 351, "column": 44 } } @@ -75101,15 +78370,15 @@ "binop": null }, "value": "top", - "start": 9231, - "end": 9234, + "start": 9407, + "end": 9410, "loc": { "start": { - "line": 339, + "line": 351, "column": 44 }, "end": { - "line": 339, + "line": 351, "column": 47 } } @@ -75126,15 +78395,15 @@ "postfix": false, "binop": null }, - "start": 9234, - "end": 9235, + "start": 9410, + "end": 9411, "loc": { "start": { - "line": 339, + "line": 351, "column": 47 }, "end": { - "line": 339, + "line": 351, "column": 48 } } @@ -75152,15 +78421,15 @@ "binop": null, "updateContext": null }, - "start": 9235, - "end": 9236, + "start": 9411, + "end": 9412, "loc": { "start": { - "line": 339, + "line": 351, "column": 48 }, "end": { - "line": 339, + "line": 351, "column": 49 } } @@ -75180,15 +78449,15 @@ "updateContext": null }, "value": "if", - "start": 9242, - "end": 9244, + "start": 9418, + "end": 9420, "loc": { "start": { - "line": 341, + "line": 353, "column": 4 }, "end": { - "line": 341, + "line": 353, "column": 6 } } @@ -75205,15 +78474,15 @@ "postfix": false, "binop": null }, - "start": 9245, - "end": 9246, + "start": 9421, + "end": 9422, "loc": { "start": { - "line": 341, + "line": 353, "column": 7 }, "end": { - "line": 341, + "line": 353, "column": 8 } } @@ -75231,15 +78500,15 @@ "binop": null }, "value": "cDefine", - "start": 9246, - "end": 9253, + "start": 9422, + "end": 9429, "loc": { "start": { - "line": 341, + "line": 353, "column": 8 }, "end": { - "line": 341, + "line": 353, "column": 15 } } @@ -75257,15 +78526,15 @@ "binop": null, "updateContext": null }, - "start": 9253, - "end": 9254, + "start": 9429, + "end": 9430, "loc": { "start": { - "line": 341, + "line": 353, "column": 15 }, "end": { - "line": 341, + "line": 353, "column": 16 } } @@ -75283,15 +78552,15 @@ "binop": null }, "value": "DEBUG_MOUSE_LOG", - "start": 9254, - "end": 9269, + "start": 9430, + "end": 9445, "loc": { "start": { - "line": 341, + "line": 353, "column": 16 }, "end": { - "line": 341, + "line": 353, "column": 31 } } @@ -75308,15 +78577,15 @@ "postfix": false, "binop": null }, - "start": 9269, - "end": 9270, + "start": 9445, + "end": 9446, "loc": { "start": { - "line": 341, + "line": 353, "column": 31 }, "end": { - "line": 341, + "line": 353, "column": 32 } } @@ -75334,15 +78603,15 @@ "binop": null }, "value": "console", - "start": 9279, - "end": 9286, + "start": 9455, + "end": 9462, "loc": { "start": { - "line": 342, + "line": 354, "column": 8 }, "end": { - "line": 342, + "line": 354, "column": 15 } } @@ -75360,15 +78629,15 @@ "binop": null, "updateContext": null }, - "start": 9286, - "end": 9287, + "start": 9462, + "end": 9463, "loc": { "start": { - "line": 342, + "line": 354, "column": 15 }, "end": { - "line": 342, + "line": 354, "column": 16 } } @@ -75386,15 +78655,15 @@ "binop": null }, "value": "log", - "start": 9287, - "end": 9290, + "start": 9463, + "end": 9466, "loc": { "start": { - "line": 342, + "line": 354, "column": 16 }, "end": { - "line": 342, + "line": 354, "column": 19 } } @@ -75411,15 +78680,15 @@ "postfix": false, "binop": null }, - "start": 9290, - "end": 9291, + "start": 9466, + "end": 9467, "loc": { "start": { - "line": 342, + "line": 354, "column": 19 }, "end": { - "line": 342, + "line": 354, "column": 20 } } @@ -75438,15 +78707,15 @@ "updateContext": null }, "value": "followPointer onMouseMove device( x:", - "start": 9291, - "end": 9329, + "start": 9467, + "end": 9505, "loc": { "start": { - "line": 342, + "line": 354, "column": 20 }, "end": { - "line": 342, + "line": 354, "column": 58 } } @@ -75465,15 +78734,15 @@ "updateContext": null }, "value": "+", - "start": 9330, - "end": 9331, + "start": 9506, + "end": 9507, "loc": { "start": { - "line": 342, + "line": 354, "column": 59 }, "end": { - "line": 342, + "line": 354, "column": 60 } } @@ -75491,15 +78760,15 @@ "binop": null }, "value": "event", - "start": 9332, - "end": 9337, + "start": 9508, + "end": 9513, "loc": { "start": { - "line": 342, + "line": 354, "column": 61 }, "end": { - "line": 342, + "line": 354, "column": 66 } } @@ -75517,15 +78786,15 @@ "binop": null, "updateContext": null }, - "start": 9337, - "end": 9338, + "start": 9513, + "end": 9514, "loc": { "start": { - "line": 342, + "line": 354, "column": 66 }, "end": { - "line": 342, + "line": 354, "column": 67 } } @@ -75543,15 +78812,15 @@ "binop": null }, "value": "clientX", - "start": 9338, - "end": 9345, + "start": 9514, + "end": 9521, "loc": { "start": { - "line": 342, + "line": 354, "column": 67 }, "end": { - "line": 342, + "line": 354, "column": 74 } } @@ -75570,15 +78839,15 @@ "updateContext": null }, "value": "+", - "start": 9346, - "end": 9347, + "start": 9522, + "end": 9523, "loc": { "start": { - "line": 342, + "line": 354, "column": 75 }, "end": { - "line": 342, + "line": 354, "column": 76 } } @@ -75597,15 +78866,15 @@ "updateContext": null }, "value": " y:", - "start": 9348, - "end": 9353, + "start": 9524, + "end": 9529, "loc": { "start": { - "line": 342, + "line": 354, "column": 77 }, "end": { - "line": 342, + "line": 354, "column": 82 } } @@ -75624,15 +78893,15 @@ "updateContext": null }, "value": "+", - "start": 9354, - "end": 9355, + "start": 9530, + "end": 9531, "loc": { "start": { - "line": 342, + "line": 354, "column": 83 }, "end": { - "line": 342, + "line": 354, "column": 84 } } @@ -75650,15 +78919,15 @@ "binop": null }, "value": "event", - "start": 9356, - "end": 9361, + "start": 9532, + "end": 9537, "loc": { "start": { - "line": 342, + "line": 354, "column": 85 }, "end": { - "line": 342, + "line": 354, "column": 90 } } @@ -75676,15 +78945,15 @@ "binop": null, "updateContext": null }, - "start": 9361, - "end": 9362, + "start": 9537, + "end": 9538, "loc": { "start": { - "line": 342, + "line": 354, "column": 90 }, "end": { - "line": 342, + "line": 354, "column": 91 } } @@ -75702,15 +78971,15 @@ "binop": null }, "value": "clientY", - "start": 9362, - "end": 9369, + "start": 9538, + "end": 9545, "loc": { "start": { - "line": 342, + "line": 354, "column": 91 }, "end": { - "line": 342, + "line": 354, "column": 98 } } @@ -75729,15 +78998,15 @@ "updateContext": null }, "value": "+", - "start": 9370, - "end": 9371, + "start": 9546, + "end": 9547, "loc": { "start": { - "line": 342, + "line": 354, "column": 99 }, "end": { - "line": 342, + "line": 354, "column": 100 } } @@ -75756,15 +79025,15 @@ "updateContext": null }, "value": " ) view( x:", - "start": 9372, - "end": 9385, + "start": 9548, + "end": 9561, "loc": { "start": { - "line": 342, + "line": 354, "column": 101 }, "end": { - "line": 342, + "line": 354, "column": 114 } } @@ -75783,15 +79052,15 @@ "updateContext": null }, "value": "+", - "start": 9386, - "end": 9387, + "start": 9562, + "end": 9563, "loc": { "start": { - "line": 342, + "line": 354, "column": 115 }, "end": { - "line": 342, + "line": 354, "column": 116 } } @@ -75809,15 +79078,15 @@ "binop": null }, "value": "vx", - "start": 9388, - "end": 9390, + "start": 9564, + "end": 9566, "loc": { "start": { - "line": 342, + "line": 354, "column": 117 }, "end": { - "line": 342, + "line": 354, "column": 119 } } @@ -75836,15 +79105,15 @@ "updateContext": null }, "value": "+", - "start": 9391, - "end": 9392, + "start": 9567, + "end": 9568, "loc": { "start": { - "line": 342, + "line": 354, "column": 120 }, "end": { - "line": 342, + "line": 354, "column": 121 } } @@ -75863,15 +79132,15 @@ "updateContext": null }, "value": " y:", - "start": 9393, - "end": 9398, + "start": 9569, + "end": 9574, "loc": { "start": { - "line": 342, + "line": 354, "column": 122 }, "end": { - "line": 342, + "line": 354, "column": 127 } } @@ -75890,15 +79159,15 @@ "updateContext": null }, "value": "+", - "start": 9399, - "end": 9400, + "start": 9575, + "end": 9576, "loc": { "start": { - "line": 342, + "line": 354, "column": 128 }, "end": { - "line": 342, + "line": 354, "column": 129 } } @@ -75916,15 +79185,15 @@ "binop": null }, "value": "vy", - "start": 9401, - "end": 9403, + "start": 9577, + "end": 9579, "loc": { "start": { - "line": 342, + "line": 354, "column": 130 }, "end": { - "line": 342, + "line": 354, "column": 132 } } @@ -75943,15 +79212,15 @@ "updateContext": null }, "value": "+", - "start": 9404, - "end": 9405, + "start": 9580, + "end": 9581, "loc": { "start": { - "line": 342, + "line": 354, "column": 133 }, "end": { - "line": 342, + "line": 354, "column": 134 } } @@ -75970,15 +79239,15 @@ "updateContext": null }, "value": ")", - "start": 9406, - "end": 9409, + "start": 9582, + "end": 9585, "loc": { "start": { - "line": 342, + "line": 354, "column": 135 }, "end": { - "line": 342, + "line": 354, "column": 138 } } @@ -75995,15 +79264,15 @@ "postfix": false, "binop": null }, - "start": 9409, - "end": 9410, + "start": 9585, + "end": 9586, "loc": { "start": { - "line": 342, + "line": 354, "column": 138 }, "end": { - "line": 342, + "line": 354, "column": 139 } } @@ -76021,15 +79290,15 @@ "binop": null, "updateContext": null }, - "start": 9410, - "end": 9411, + "start": 9586, + "end": 9587, "loc": { "start": { - "line": 342, + "line": 354, "column": 139 }, "end": { - "line": 342, + "line": 354, "column": 140 } } @@ -76049,15 +79318,15 @@ "updateContext": null }, "value": "if", - "start": 9417, - "end": 9419, + "start": 9593, + "end": 9595, "loc": { "start": { - "line": 344, + "line": 356, "column": 4 }, "end": { - "line": 344, + "line": 356, "column": 6 } } @@ -76074,15 +79343,15 @@ "postfix": false, "binop": null }, - "start": 9420, - "end": 9421, + "start": 9596, + "end": 9597, "loc": { "start": { - "line": 344, + "line": 356, "column": 7 }, "end": { - "line": 344, + "line": 356, "column": 8 } } @@ -76100,15 +79369,15 @@ "binop": null }, "value": "drag", - "start": 9421, - "end": 9425, + "start": 9597, + "end": 9601, "loc": { "start": { - "line": 344, + "line": 356, "column": 8 }, "end": { - "line": 344, + "line": 356, "column": 12 } } @@ -76125,15 +79394,15 @@ "postfix": false, "binop": null }, - "start": 9425, - "end": 9426, + "start": 9601, + "end": 9602, "loc": { "start": { - "line": 344, + "line": 356, "column": 12 }, "end": { - "line": 344, + "line": 356, "column": 13 } } @@ -76150,15 +79419,15 @@ "postfix": false, "binop": null }, - "start": 9431, - "end": 9432, + "start": 9607, + "end": 9608, "loc": { "start": { - "line": 345, + "line": 357, "column": 4 }, "end": { - "line": 345, + "line": 357, "column": 5 } } @@ -76176,15 +79445,15 @@ "binop": null }, "value": "lastMouseX", - "start": 9441, - "end": 9451, + "start": 9617, + "end": 9627, "loc": { "start": { - "line": 346, + "line": 358, "column": 8 }, "end": { - "line": 346, + "line": 358, "column": 18 } } @@ -76203,15 +79472,15 @@ "updateContext": null }, "value": "=", - "start": 9452, - "end": 9453, + "start": 9628, + "end": 9629, "loc": { "start": { - "line": 346, + "line": 358, "column": 19 }, "end": { - "line": 346, + "line": 358, "column": 20 } } @@ -76229,15 +79498,15 @@ "binop": null }, "value": "sx", - "start": 9454, - "end": 9456, + "start": 9630, + "end": 9632, "loc": { "start": { - "line": 346, + "line": 358, "column": 21 }, "end": { - "line": 346, + "line": 358, "column": 23 } } @@ -76255,15 +79524,15 @@ "binop": null, "updateContext": null }, - "start": 9456, - "end": 9457, + "start": 9632, + "end": 9633, "loc": { "start": { - "line": 346, + "line": 358, "column": 23 }, "end": { - "line": 346, + "line": 358, "column": 24 } } @@ -76281,15 +79550,15 @@ "binop": null }, "value": "lastMouseY", - "start": 9466, - "end": 9476, + "start": 9642, + "end": 9652, "loc": { "start": { - "line": 347, + "line": 359, "column": 8 }, "end": { - "line": 347, + "line": 359, "column": 18 } } @@ -76308,15 +79577,15 @@ "updateContext": null }, "value": "=", - "start": 9477, - "end": 9478, + "start": 9653, + "end": 9654, "loc": { "start": { - "line": 347, + "line": 359, "column": 19 }, "end": { - "line": 347, + "line": 359, "column": 20 } } @@ -76334,15 +79603,15 @@ "binop": null }, "value": "sy", - "start": 9479, - "end": 9481, + "start": 9655, + "end": 9657, "loc": { "start": { - "line": 347, + "line": 359, "column": 21 }, "end": { - "line": 347, + "line": 359, "column": 23 } } @@ -76360,15 +79629,15 @@ "binop": null, "updateContext": null }, - "start": 9481, - "end": 9482, + "start": 9657, + "end": 9658, "loc": { "start": { - "line": 347, + "line": 359, "column": 23 }, "end": { - "line": 347, + "line": 359, "column": 24 } } @@ -76386,15 +79655,15 @@ "binop": null }, "value": "dragMgr", - "start": 9491, - "end": 9498, + "start": 9667, + "end": 9674, "loc": { "start": { - "line": 348, + "line": 360, "column": 8 }, "end": { - "line": 348, + "line": 360, "column": 15 } } @@ -76412,15 +79681,15 @@ "binop": null, "updateContext": null }, - "start": 9498, - "end": 9499, + "start": 9674, + "end": 9675, "loc": { "start": { - "line": 348, + "line": 360, "column": 15 }, "end": { - "line": 348, + "line": 360, "column": 16 } } @@ -76438,15 +79707,15 @@ "binop": null }, "value": "setPoint", - "start": 9499, - "end": 9507, + "start": 9675, + "end": 9683, "loc": { "start": { - "line": 348, + "line": 360, "column": 16 }, "end": { - "line": 348, + "line": 360, "column": 24 } } @@ -76463,15 +79732,15 @@ "postfix": false, "binop": null }, - "start": 9507, - "end": 9508, + "start": 9683, + "end": 9684, "loc": { "start": { - "line": 348, + "line": 360, "column": 24 }, "end": { - "line": 348, + "line": 360, "column": 25 } } @@ -76489,15 +79758,15 @@ "binop": null }, "value": "vx", - "start": 9508, - "end": 9510, + "start": 9684, + "end": 9686, "loc": { "start": { - "line": 348, + "line": 360, "column": 25 }, "end": { - "line": 348, + "line": 360, "column": 27 } } @@ -76515,15 +79784,15 @@ "binop": null, "updateContext": null }, - "start": 9510, - "end": 9511, + "start": 9686, + "end": 9687, "loc": { "start": { - "line": 348, + "line": 360, "column": 27 }, "end": { - "line": 348, + "line": 360, "column": 28 } } @@ -76541,15 +79810,15 @@ "binop": null }, "value": "vy", - "start": 9512, - "end": 9514, + "start": 9688, + "end": 9690, "loc": { "start": { - "line": 348, + "line": 360, "column": 29 }, "end": { - "line": 348, + "line": 360, "column": 31 } } @@ -76566,15 +79835,15 @@ "postfix": false, "binop": null }, - "start": 9514, - "end": 9515, + "start": 9690, + "end": 9691, "loc": { "start": { - "line": 348, + "line": 360, "column": 31 }, "end": { - "line": 348, + "line": 360, "column": 32 } } @@ -76592,15 +79861,15 @@ "binop": null, "updateContext": null }, - "start": 9515, - "end": 9516, + "start": 9691, + "end": 9692, "loc": { "start": { - "line": 348, + "line": 360, "column": 32 }, "end": { - "line": 348, + "line": 360, "column": 33 } } @@ -76617,15 +79886,15 @@ "postfix": false, "binop": null }, - "start": 9521, - "end": 9522, + "start": 9697, + "end": 9698, "loc": { "start": { - "line": 349, + "line": 361, "column": 4 }, "end": { - "line": 349, + "line": 361, "column": 5 } } @@ -76642,15 +79911,15 @@ "postfix": false, "binop": null }, - "start": 9523, - "end": 9524, + "start": 9699, + "end": 9700, "loc": { "start": { - "line": 350, + "line": 362, "column": 0 }, "end": { - "line": 350, + "line": 362, "column": 1 } } @@ -76669,15 +79938,15 @@ "binop": null }, "value": "function", - "start": 9526, - "end": 9534, + "start": 9702, + "end": 9710, "loc": { "start": { - "line": 352, + "line": 364, "column": 0 }, "end": { - "line": 352, + "line": 364, "column": 8 } } @@ -76695,15 +79964,15 @@ "binop": null }, "value": "lookFront", - "start": 9535, - "end": 9544, + "start": 9711, + "end": 9720, "loc": { "start": { - "line": 352, + "line": 364, "column": 9 }, "end": { - "line": 352, + "line": 364, "column": 18 } } @@ -76720,15 +79989,15 @@ "postfix": false, "binop": null }, - "start": 9544, - "end": 9545, + "start": 9720, + "end": 9721, "loc": { "start": { - "line": 352, + "line": 364, "column": 18 }, "end": { - "line": 352, + "line": 364, "column": 19 } } @@ -76745,15 +80014,15 @@ "postfix": false, "binop": null }, - "start": 9545, - "end": 9546, + "start": 9721, + "end": 9722, "loc": { "start": { - "line": 352, + "line": 364, "column": 19 }, "end": { - "line": 352, + "line": 364, "column": 20 } } @@ -76770,15 +80039,15 @@ "postfix": false, "binop": null }, - "start": 9547, - "end": 9548, + "start": 9723, + "end": 9724, "loc": { "start": { - "line": 353, + "line": 365, "column": 0 }, "end": { - "line": 353, + "line": 365, "column": 1 } } @@ -76798,15 +80067,15 @@ "updateContext": null }, "value": "if", - "start": 9553, - "end": 9555, + "start": 9729, + "end": 9731, "loc": { "start": { - "line": 354, + "line": 366, "column": 4 }, "end": { - "line": 354, + "line": 366, "column": 6 } } @@ -76823,15 +80092,15 @@ "postfix": false, "binop": null }, - "start": 9556, - "end": 9557, + "start": 9732, + "end": 9733, "loc": { "start": { - "line": 354, + "line": 366, "column": 7 }, "end": { - "line": 354, + "line": 366, "column": 8 } } @@ -76849,15 +80118,15 @@ "binop": null }, "value": "drag", - "start": 9557, - "end": 9561, + "start": 9733, + "end": 9737, "loc": { "start": { - "line": 354, + "line": 366, "column": 8 }, "end": { - "line": 354, + "line": 366, "column": 12 } } @@ -76874,15 +80143,15 @@ "postfix": false, "binop": null }, - "start": 9561, - "end": 9562, + "start": 9737, + "end": 9738, "loc": { "start": { - "line": 354, + "line": 366, "column": 12 }, "end": { - "line": 354, + "line": 366, "column": 13 } } @@ -76899,15 +80168,15 @@ "postfix": false, "binop": null }, - "start": 9563, - "end": 9564, + "start": 9739, + "end": 9740, "loc": { "start": { - "line": 354, + "line": 366, "column": 14 }, "end": { - "line": 354, + "line": 366, "column": 15 } } @@ -76925,15 +80194,15 @@ "binop": null }, "value": "drag", - "start": 9573, - "end": 9577, + "start": 9749, + "end": 9753, "loc": { "start": { - "line": 355, + "line": 367, "column": 8 }, "end": { - "line": 355, + "line": 367, "column": 12 } } @@ -76952,15 +80221,15 @@ "updateContext": null }, "value": "=", - "start": 9578, - "end": 9579, + "start": 9754, + "end": 9755, "loc": { "start": { - "line": 355, + "line": 367, "column": 13 }, "end": { - "line": 355, + "line": 367, "column": 14 } } @@ -76980,15 +80249,15 @@ "updateContext": null }, "value": "false", - "start": 9580, - "end": 9585, + "start": 9756, + "end": 9761, "loc": { "start": { - "line": 355, + "line": 367, "column": 15 }, "end": { - "line": 355, + "line": 367, "column": 20 } } @@ -77006,15 +80275,15 @@ "binop": null, "updateContext": null }, - "start": 9585, - "end": 9586, + "start": 9761, + "end": 9762, "loc": { "start": { - "line": 355, + "line": 367, "column": 20 }, "end": { - "line": 355, + "line": 367, "column": 21 } } @@ -77031,15 +80300,15 @@ "postfix": false, "binop": null }, - "start": 9591, - "end": 9592, + "start": 9767, + "end": 9768, "loc": { "start": { - "line": 356, + "line": 368, "column": 4 }, "end": { - "line": 356, + "line": 368, "column": 5 } } @@ -77057,15 +80326,15 @@ "binop": null }, "value": "dragMgr", - "start": 9597, - "end": 9604, + "start": 9773, + "end": 9780, "loc": { "start": { - "line": 357, + "line": 369, "column": 4 }, "end": { - "line": 357, + "line": 369, "column": 11 } } @@ -77083,15 +80352,15 @@ "binop": null, "updateContext": null }, - "start": 9604, - "end": 9605, + "start": 9780, + "end": 9781, "loc": { "start": { - "line": 357, + "line": 369, "column": 11 }, "end": { - "line": 357, + "line": 369, "column": 12 } } @@ -77109,15 +80378,15 @@ "binop": null }, "value": "setPoint", - "start": 9605, - "end": 9613, + "start": 9781, + "end": 9789, "loc": { "start": { - "line": 357, + "line": 369, "column": 12 }, "end": { - "line": 357, + "line": 369, "column": 20 } } @@ -77134,15 +80403,15 @@ "postfix": false, "binop": null }, - "start": 9613, - "end": 9614, + "start": 9789, + "end": 9790, "loc": { "start": { - "line": 357, + "line": 369, "column": 20 }, "end": { - "line": 357, + "line": 369, "column": 21 } } @@ -77161,15 +80430,15 @@ "updateContext": null }, "value": 0, - "start": 9614, - "end": 9615, + "start": 9790, + "end": 9791, "loc": { "start": { - "line": 357, + "line": 369, "column": 21 }, "end": { - "line": 357, + "line": 369, "column": 22 } } @@ -77187,15 +80456,15 @@ "binop": null, "updateContext": null }, - "start": 9615, - "end": 9616, + "start": 9791, + "end": 9792, "loc": { "start": { - "line": 357, + "line": 369, "column": 22 }, "end": { - "line": 357, + "line": 369, "column": 23 } } @@ -77214,15 +80483,15 @@ "updateContext": null }, "value": 0, - "start": 9617, - "end": 9618, + "start": 9793, + "end": 9794, "loc": { "start": { - "line": 357, + "line": 369, "column": 24 }, "end": { - "line": 357, + "line": 369, "column": 25 } } @@ -77239,15 +80508,15 @@ "postfix": false, "binop": null }, - "start": 9618, - "end": 9619, + "start": 9794, + "end": 9795, "loc": { "start": { - "line": 357, + "line": 369, "column": 25 }, "end": { - "line": 357, + "line": 369, "column": 26 } } @@ -77265,15 +80534,15 @@ "binop": null, "updateContext": null }, - "start": 9619, - "end": 9620, + "start": 9795, + "end": 9796, "loc": { "start": { - "line": 357, + "line": 369, "column": 26 }, "end": { - "line": 357, + "line": 369, "column": 27 } } @@ -77290,15 +80559,15 @@ "postfix": false, "binop": null }, - "start": 9621, - "end": 9622, + "start": 9797, + "end": 9798, "loc": { "start": { - "line": 358, + "line": 370, "column": 0 }, "end": { - "line": 358, + "line": 370, "column": 1 } } @@ -77317,15 +80586,15 @@ "binop": null }, "value": "function", - "start": 9624, - "end": 9632, + "start": 9800, + "end": 9808, "loc": { "start": { - "line": 360, + "line": 372, "column": 0 }, "end": { - "line": 360, + "line": 372, "column": 8 } } @@ -77343,15 +80612,15 @@ "binop": null }, "value": "mouseEvent", - "start": 9633, - "end": 9643, + "start": 9809, + "end": 9819, "loc": { "start": { - "line": 360, + "line": 372, "column": 9 }, "end": { - "line": 360, + "line": 372, "column": 19 } } @@ -77368,15 +80637,15 @@ "postfix": false, "binop": null }, - "start": 9643, - "end": 9644, + "start": 9819, + "end": 9820, "loc": { "start": { - "line": 360, + "line": 372, "column": 19 }, "end": { - "line": 360, + "line": 372, "column": 20 } } @@ -77394,15 +80663,15 @@ "binop": null }, "value": "e", - "start": 9644, - "end": 9645, + "start": 9820, + "end": 9821, "loc": { "start": { - "line": 360, + "line": 372, "column": 20 }, "end": { - "line": 360, + "line": 372, "column": 21 } } @@ -77419,15 +80688,15 @@ "postfix": false, "binop": null }, - "start": 9645, - "end": 9646, + "start": 9821, + "end": 9822, "loc": { "start": { - "line": 360, + "line": 372, "column": 21 }, "end": { - "line": 360, + "line": 372, "column": 22 } } @@ -77444,15 +80713,15 @@ "postfix": false, "binop": null }, - "start": 9647, - "end": 9648, + "start": 9823, + "end": 9824, "loc": { "start": { - "line": 361, + "line": 373, "column": 0 }, "end": { - "line": 361, + "line": 373, "column": 1 } } @@ -77460,15 +80729,15 @@ { "type": "CommentLine", "value": "e.preventDefault();", - "start": 9653, - "end": 9674, + "start": 9829, + "end": 9850, "loc": { "start": { - "line": 362, + "line": 374, "column": 4 }, "end": { - "line": 362, + "line": 374, "column": 25 } } @@ -77488,15 +80757,15 @@ "updateContext": null }, "value": "if", - "start": 9679, - "end": 9681, + "start": 9855, + "end": 9857, "loc": { "start": { - "line": 363, + "line": 375, "column": 4 }, "end": { - "line": 363, + "line": 375, "column": 6 } } @@ -77513,15 +80782,15 @@ "postfix": false, "binop": null }, - "start": 9682, - "end": 9683, + "start": 9858, + "end": 9859, "loc": { "start": { - "line": 363, + "line": 375, "column": 7 }, "end": { - "line": 363, + "line": 375, "column": 8 } } @@ -77539,15 +80808,15 @@ "binop": null }, "value": "e", - "start": 9683, - "end": 9684, + "start": 9859, + "end": 9860, "loc": { "start": { - "line": 363, + "line": 375, "column": 8 }, "end": { - "line": 363, + "line": 375, "column": 9 } } @@ -77565,15 +80834,15 @@ "binop": null, "updateContext": null }, - "start": 9684, - "end": 9685, + "start": 9860, + "end": 9861, "loc": { "start": { - "line": 363, + "line": 375, "column": 9 }, "end": { - "line": 363, + "line": 375, "column": 10 } } @@ -77591,15 +80860,15 @@ "binop": null }, "value": "type", - "start": 9685, - "end": 9689, + "start": 9861, + "end": 9865, "loc": { "start": { - "line": 363, + "line": 375, "column": 10 }, "end": { - "line": 363, + "line": 375, "column": 14 } } @@ -77618,15 +80887,15 @@ "updateContext": null }, "value": "==", - "start": 9690, - "end": 9692, + "start": 9866, + "end": 9868, "loc": { "start": { - "line": 363, + "line": 375, "column": 15 }, "end": { - "line": 363, + "line": 375, "column": 17 } } @@ -77645,15 +80914,15 @@ "updateContext": null }, "value": "mousedown", - "start": 9693, - "end": 9704, + "start": 9869, + "end": 9880, "loc": { "start": { - "line": 363, + "line": 375, "column": 18 }, "end": { - "line": 363, + "line": 375, "column": 29 } } @@ -77670,15 +80939,15 @@ "postfix": false, "binop": null }, - "start": 9704, - "end": 9705, + "start": 9880, + "end": 9881, "loc": { "start": { - "line": 363, + "line": 375, "column": 29 }, "end": { - "line": 363, + "line": 375, "column": 30 } } @@ -77695,15 +80964,15 @@ "postfix": false, "binop": null }, - "start": 9706, - "end": 9707, + "start": 9882, + "end": 9883, "loc": { "start": { - "line": 363, + "line": 375, "column": 31 }, "end": { - "line": 363, + "line": 375, "column": 32 } } @@ -77721,15 +80990,15 @@ "binop": null }, "value": "modelTapEvent", - "start": 9716, - "end": 9729, + "start": 9892, + "end": 9905, "loc": { "start": { - "line": 364, + "line": 376, "column": 8 }, "end": { - "line": 364, + "line": 376, "column": 21 } } @@ -77746,15 +81015,15 @@ "postfix": false, "binop": null }, - "start": 9729, - "end": 9730, + "start": 9905, + "end": 9906, "loc": { "start": { - "line": 364, + "line": 376, "column": 21 }, "end": { - "line": 364, + "line": 376, "column": 22 } } @@ -77772,15 +81041,15 @@ "binop": null }, "value": "e", - "start": 9730, - "end": 9731, + "start": 9906, + "end": 9907, "loc": { "start": { - "line": 364, + "line": 376, "column": 22 }, "end": { - "line": 364, + "line": 376, "column": 23 } } @@ -77797,15 +81066,15 @@ "postfix": false, "binop": null }, - "start": 9731, - "end": 9732, + "start": 9907, + "end": 9908, "loc": { "start": { - "line": 364, + "line": 376, "column": 23 }, "end": { - "line": 364, + "line": 376, "column": 24 } } @@ -77823,15 +81092,15 @@ "binop": null, "updateContext": null }, - "start": 9732, - "end": 9733, + "start": 9908, + "end": 9909, "loc": { "start": { - "line": 364, + "line": 376, "column": 24 }, "end": { - "line": 364, + "line": 376, "column": 25 } } @@ -77848,15 +81117,15 @@ "postfix": false, "binop": null }, - "start": 9738, - "end": 9739, + "start": 9914, + "end": 9915, "loc": { "start": { - "line": 365, + "line": 377, "column": 4 }, "end": { - "line": 365, + "line": 377, "column": 5 } } @@ -77876,15 +81145,15 @@ "updateContext": null }, "value": "else", - "start": 9740, - "end": 9744, + "start": 9916, + "end": 9920, "loc": { "start": { - "line": 365, + "line": 377, "column": 6 }, "end": { - "line": 365, + "line": 377, "column": 10 } } @@ -77904,15 +81173,15 @@ "updateContext": null }, "value": "if", - "start": 9745, - "end": 9747, + "start": 9921, + "end": 9923, "loc": { "start": { - "line": 365, + "line": 377, "column": 11 }, "end": { - "line": 365, + "line": 377, "column": 13 } } @@ -77929,15 +81198,15 @@ "postfix": false, "binop": null }, - "start": 9748, - "end": 9749, + "start": 9924, + "end": 9925, "loc": { "start": { - "line": 365, + "line": 377, "column": 14 }, "end": { - "line": 365, + "line": 377, "column": 15 } } @@ -77955,15 +81224,15 @@ "binop": null }, "value": "e", - "start": 9749, - "end": 9750, + "start": 9925, + "end": 9926, "loc": { "start": { - "line": 365, + "line": 377, "column": 15 }, "end": { - "line": 365, + "line": 377, "column": 16 } } @@ -77981,15 +81250,15 @@ "binop": null, "updateContext": null }, - "start": 9750, - "end": 9751, + "start": 9926, + "end": 9927, "loc": { "start": { - "line": 365, + "line": 377, "column": 16 }, "end": { - "line": 365, + "line": 377, "column": 17 } } @@ -78007,15 +81276,15 @@ "binop": null }, "value": "type", - "start": 9751, - "end": 9755, + "start": 9927, + "end": 9931, "loc": { "start": { - "line": 365, + "line": 377, "column": 17 }, "end": { - "line": 365, + "line": 377, "column": 21 } } @@ -78034,15 +81303,15 @@ "updateContext": null }, "value": "==", - "start": 9756, - "end": 9758, + "start": 9932, + "end": 9934, "loc": { "start": { - "line": 365, + "line": 377, "column": 22 }, "end": { - "line": 365, + "line": 377, "column": 24 } } @@ -78061,15 +81330,15 @@ "updateContext": null }, "value": "mousemove", - "start": 9759, - "end": 9770, + "start": 9935, + "end": 9946, "loc": { "start": { - "line": 365, + "line": 377, "column": 25 }, "end": { - "line": 365, + "line": 377, "column": 36 } } @@ -78086,15 +81355,15 @@ "postfix": false, "binop": null }, - "start": 9770, - "end": 9771, + "start": 9946, + "end": 9947, "loc": { "start": { - "line": 365, + "line": 377, "column": 36 }, "end": { - "line": 365, + "line": 377, "column": 37 } } @@ -78111,15 +81380,15 @@ "postfix": false, "binop": null }, - "start": 9772, - "end": 9773, + "start": 9948, + "end": 9949, "loc": { "start": { - "line": 365, + "line": 377, "column": 38 }, "end": { - "line": 365, + "line": 377, "column": 39 } } @@ -78137,15 +81406,15 @@ "binop": null }, "value": "modelTurnHead", - "start": 9782, - "end": 9795, + "start": 9958, + "end": 9971, "loc": { "start": { - "line": 366, + "line": 378, "column": 8 }, "end": { - "line": 366, + "line": 378, "column": 21 } } @@ -78162,15 +81431,15 @@ "postfix": false, "binop": null }, - "start": 9795, - "end": 9796, + "start": 9971, + "end": 9972, "loc": { "start": { - "line": 366, + "line": 378, "column": 21 }, "end": { - "line": 366, + "line": 378, "column": 22 } } @@ -78188,15 +81457,15 @@ "binop": null }, "value": "e", - "start": 9796, - "end": 9797, + "start": 9972, + "end": 9973, "loc": { "start": { - "line": 366, + "line": 378, "column": 22 }, "end": { - "line": 366, + "line": 378, "column": 23 } } @@ -78213,15 +81482,15 @@ "postfix": false, "binop": null }, - "start": 9797, - "end": 9798, + "start": 9973, + "end": 9974, "loc": { "start": { - "line": 366, + "line": 378, "column": 23 }, "end": { - "line": 366, + "line": 378, "column": 24 } } @@ -78239,15 +81508,15 @@ "binop": null, "updateContext": null }, - "start": 9798, - "end": 9799, + "start": 9974, + "end": 9975, "loc": { "start": { - "line": 366, + "line": 378, "column": 24 }, "end": { - "line": 366, + "line": 378, "column": 25 } } @@ -78264,15 +81533,15 @@ "postfix": false, "binop": null }, - "start": 9804, - "end": 9805, + "start": 9980, + "end": 9981, "loc": { "start": { - "line": 367, + "line": 379, "column": 4 }, "end": { - "line": 367, + "line": 379, "column": 5 } } @@ -78292,15 +81561,15 @@ "updateContext": null }, "value": "else", - "start": 9806, - "end": 9810, + "start": 9982, + "end": 9986, "loc": { "start": { - "line": 367, + "line": 379, "column": 6 }, "end": { - "line": 367, + "line": 379, "column": 10 } } @@ -78320,15 +81589,15 @@ "updateContext": null }, "value": "if", - "start": 9811, - "end": 9813, + "start": 9987, + "end": 9989, "loc": { "start": { - "line": 367, + "line": 379, "column": 11 }, "end": { - "line": 367, + "line": 379, "column": 13 } } @@ -78345,15 +81614,15 @@ "postfix": false, "binop": null }, - "start": 9814, - "end": 9815, + "start": 9990, + "end": 9991, "loc": { "start": { - "line": 367, + "line": 379, "column": 14 }, "end": { - "line": 367, + "line": 379, "column": 15 } } @@ -78371,15 +81640,15 @@ "binop": null }, "value": "e", - "start": 9815, - "end": 9816, + "start": 9991, + "end": 9992, "loc": { "start": { - "line": 367, + "line": 379, "column": 15 }, "end": { - "line": 367, + "line": 379, "column": 16 } } @@ -78397,15 +81666,15 @@ "binop": null, "updateContext": null }, - "start": 9816, - "end": 9817, + "start": 9992, + "end": 9993, "loc": { "start": { - "line": 367, + "line": 379, "column": 16 }, "end": { - "line": 367, + "line": 379, "column": 17 } } @@ -78423,15 +81692,15 @@ "binop": null }, "value": "type", - "start": 9817, - "end": 9821, + "start": 9993, + "end": 9997, "loc": { "start": { - "line": 367, + "line": 379, "column": 17 }, "end": { - "line": 367, + "line": 379, "column": 21 } } @@ -78450,15 +81719,15 @@ "updateContext": null }, "value": "==", - "start": 9822, - "end": 9824, + "start": 9998, + "end": 10000, "loc": { "start": { - "line": 367, + "line": 379, "column": 22 }, "end": { - "line": 367, + "line": 379, "column": 24 } } @@ -78477,15 +81746,15 @@ "updateContext": null }, "value": "mouseup", - "start": 9825, - "end": 9834, + "start": 10001, + "end": 10010, "loc": { "start": { - "line": 367, + "line": 379, "column": 25 }, "end": { - "line": 367, + "line": 379, "column": 34 } } @@ -78502,15 +81771,15 @@ "postfix": false, "binop": null }, - "start": 9834, - "end": 9835, + "start": 10010, + "end": 10011, "loc": { "start": { - "line": 367, + "line": 379, "column": 34 }, "end": { - "line": 367, + "line": 379, "column": 35 } } @@ -78527,15 +81796,15 @@ "postfix": false, "binop": null }, - "start": 9836, - "end": 9837, + "start": 10012, + "end": 10013, "loc": { "start": { - "line": 367, + "line": 379, "column": 36 }, "end": { - "line": 367, + "line": 379, "column": 37 } } @@ -78555,15 +81824,15 @@ "updateContext": null }, "value": "if", - "start": 9846, - "end": 9848, + "start": 10022, + "end": 10024, "loc": { "start": { - "line": 368, + "line": 380, "column": 8 }, "end": { - "line": 368, + "line": 380, "column": 10 } } @@ -78580,15 +81849,15 @@ "postfix": false, "binop": null }, - "start": 9848, - "end": 9849, + "start": 10024, + "end": 10025, "loc": { "start": { - "line": 368, + "line": 380, "column": 10 }, "end": { - "line": 368, + "line": 380, "column": 11 } } @@ -78607,15 +81876,15 @@ "updateContext": null }, "value": "button", - "start": 9849, - "end": 9857, + "start": 10025, + "end": 10033, "loc": { "start": { - "line": 368, + "line": 380, "column": 11 }, "end": { - "line": 368, + "line": 380, "column": 19 } } @@ -78635,15 +81904,15 @@ "updateContext": null }, "value": "in", - "start": 9858, - "end": 9860, + "start": 10034, + "end": 10036, "loc": { "start": { - "line": 368, + "line": 380, "column": 20 }, "end": { - "line": 368, + "line": 380, "column": 22 } } @@ -78661,15 +81930,15 @@ "binop": null }, "value": "e", - "start": 9861, - "end": 9862, + "start": 10037, + "end": 10038, "loc": { "start": { - "line": 368, + "line": 380, "column": 23 }, "end": { - "line": 368, + "line": 380, "column": 24 } } @@ -78688,15 +81957,15 @@ "updateContext": null }, "value": "&&", - "start": 9863, - "end": 9865, + "start": 10039, + "end": 10041, "loc": { "start": { - "line": 368, + "line": 380, "column": 25 }, "end": { - "line": 368, + "line": 380, "column": 27 } } @@ -78714,15 +81983,15 @@ "binop": null }, "value": "e", - "start": 9866, - "end": 9867, + "start": 10042, + "end": 10043, "loc": { "start": { - "line": 368, + "line": 380, "column": 28 }, "end": { - "line": 368, + "line": 380, "column": 29 } } @@ -78740,15 +82009,15 @@ "binop": null, "updateContext": null }, - "start": 9867, - "end": 9868, + "start": 10043, + "end": 10044, "loc": { "start": { - "line": 368, + "line": 380, "column": 29 }, "end": { - "line": 368, + "line": 380, "column": 30 } } @@ -78766,15 +82035,15 @@ "binop": null }, "value": "button", - "start": 9868, - "end": 9874, + "start": 10044, + "end": 10050, "loc": { "start": { - "line": 368, + "line": 380, "column": 30 }, "end": { - "line": 368, + "line": 380, "column": 36 } } @@ -78793,15 +82062,15 @@ "updateContext": null }, "value": "!=", - "start": 9875, - "end": 9877, + "start": 10051, + "end": 10053, "loc": { "start": { - "line": 368, + "line": 380, "column": 37 }, "end": { - "line": 368, + "line": 380, "column": 39 } } @@ -78820,15 +82089,15 @@ "updateContext": null }, "value": 0, - "start": 9878, - "end": 9879, + "start": 10054, + "end": 10055, "loc": { "start": { - "line": 368, + "line": 380, "column": 40 }, "end": { - "line": 368, + "line": 380, "column": 41 } } @@ -78845,15 +82114,15 @@ "postfix": false, "binop": null }, - "start": 9879, - "end": 9880, + "start": 10055, + "end": 10056, "loc": { "start": { - "line": 368, + "line": 380, "column": 41 }, "end": { - "line": 368, + "line": 380, "column": 42 } } @@ -78873,15 +82142,15 @@ "updateContext": null }, "value": "return", - "start": 9881, - "end": 9887, + "start": 10057, + "end": 10063, "loc": { "start": { - "line": 368, + "line": 380, "column": 43 }, "end": { - "line": 368, + "line": 380, "column": 49 } } @@ -78899,15 +82168,15 @@ "binop": null, "updateContext": null }, - "start": 9887, - "end": 9888, + "start": 10063, + "end": 10064, "loc": { "start": { - "line": 368, + "line": 380, "column": 49 }, "end": { - "line": 368, + "line": 380, "column": 50 } } @@ -78915,15 +82184,15 @@ { "type": "CommentLine", "value": " lookFront();", - "start": 9897, - "end": 9912, + "start": 10073, + "end": 10088, "loc": { "start": { - "line": 369, + "line": 381, "column": 8 }, "end": { - "line": 369, + "line": 381, "column": 23 } } @@ -78940,15 +82209,15 @@ "postfix": false, "binop": null }, - "start": 9917, - "end": 9918, + "start": 10093, + "end": 10094, "loc": { "start": { - "line": 370, + "line": 382, "column": 4 }, "end": { - "line": 370, + "line": 382, "column": 5 } } @@ -78968,15 +82237,15 @@ "updateContext": null }, "value": "else", - "start": 9919, - "end": 9923, + "start": 10095, + "end": 10099, "loc": { "start": { - "line": 370, + "line": 382, "column": 6 }, "end": { - "line": 370, + "line": 382, "column": 10 } } @@ -78996,15 +82265,15 @@ "updateContext": null }, "value": "if", - "start": 9924, - "end": 9926, + "start": 10100, + "end": 10102, "loc": { "start": { - "line": 370, + "line": 382, "column": 11 }, "end": { - "line": 370, + "line": 382, "column": 13 } } @@ -79021,15 +82290,15 @@ "postfix": false, "binop": null }, - "start": 9927, - "end": 9928, + "start": 10103, + "end": 10104, "loc": { "start": { - "line": 370, + "line": 382, "column": 14 }, "end": { - "line": 370, + "line": 382, "column": 15 } } @@ -79047,15 +82316,15 @@ "binop": null }, "value": "e", - "start": 9928, - "end": 9929, + "start": 10104, + "end": 10105, "loc": { "start": { - "line": 370, + "line": 382, "column": 15 }, "end": { - "line": 370, + "line": 382, "column": 16 } } @@ -79073,15 +82342,15 @@ "binop": null, "updateContext": null }, - "start": 9929, - "end": 9930, + "start": 10105, + "end": 10106, "loc": { "start": { - "line": 370, + "line": 382, "column": 16 }, "end": { - "line": 370, + "line": 382, "column": 17 } } @@ -79099,15 +82368,15 @@ "binop": null }, "value": "type", - "start": 9930, - "end": 9934, + "start": 10106, + "end": 10110, "loc": { "start": { - "line": 370, + "line": 382, "column": 17 }, "end": { - "line": 370, + "line": 382, "column": 21 } } @@ -79126,15 +82395,15 @@ "updateContext": null }, "value": "==", - "start": 9935, - "end": 9937, + "start": 10111, + "end": 10113, "loc": { "start": { - "line": 370, + "line": 382, "column": 22 }, "end": { - "line": 370, + "line": 382, "column": 24 } } @@ -79153,15 +82422,15 @@ "updateContext": null }, "value": "mouseleave", - "start": 9938, - "end": 9950, + "start": 10114, + "end": 10126, "loc": { "start": { - "line": 370, + "line": 382, "column": 25 }, "end": { - "line": 370, + "line": 382, "column": 37 } } @@ -79178,15 +82447,15 @@ "postfix": false, "binop": null }, - "start": 9950, - "end": 9951, + "start": 10126, + "end": 10127, "loc": { "start": { - "line": 370, + "line": 382, "column": 37 }, "end": { - "line": 370, + "line": 382, "column": 38 } } @@ -79203,15 +82472,15 @@ "postfix": false, "binop": null }, - "start": 9952, - "end": 9953, + "start": 10128, + "end": 10129, "loc": { "start": { - "line": 370, + "line": 382, "column": 39 }, "end": { - "line": 370, + "line": 382, "column": 40 } } @@ -79229,15 +82498,15 @@ "binop": null }, "value": "lookFront", - "start": 9962, - "end": 9971, + "start": 10138, + "end": 10147, "loc": { "start": { - "line": 371, + "line": 383, "column": 8 }, "end": { - "line": 371, + "line": 383, "column": 17 } } @@ -79254,15 +82523,15 @@ "postfix": false, "binop": null }, - "start": 9971, - "end": 9972, + "start": 10147, + "end": 10148, "loc": { "start": { - "line": 371, + "line": 383, "column": 17 }, "end": { - "line": 371, + "line": 383, "column": 18 } } @@ -79279,15 +82548,15 @@ "postfix": false, "binop": null }, - "start": 9972, - "end": 9973, + "start": 10148, + "end": 10149, "loc": { "start": { - "line": 371, + "line": 383, "column": 18 }, "end": { - "line": 371, + "line": 383, "column": 19 } } @@ -79305,15 +82574,15 @@ "binop": null, "updateContext": null }, - "start": 9973, - "end": 9974, + "start": 10149, + "end": 10150, "loc": { "start": { - "line": 371, + "line": 383, "column": 19 }, "end": { - "line": 371, + "line": 383, "column": 20 } } @@ -79330,15 +82599,15 @@ "postfix": false, "binop": null }, - "start": 9979, - "end": 9980, + "start": 10155, + "end": 10156, "loc": { "start": { - "line": 372, + "line": 384, "column": 4 }, "end": { - "line": 372, + "line": 384, "column": 5 } } @@ -79355,15 +82624,15 @@ "postfix": false, "binop": null }, - "start": 9981, - "end": 9982, + "start": 10157, + "end": 10158, "loc": { "start": { - "line": 373, + "line": 385, "column": 0 }, "end": { - "line": 373, + "line": 385, "column": 1 } } @@ -79382,15 +82651,15 @@ "binop": null }, "value": "function", - "start": 9984, - "end": 9992, + "start": 10160, + "end": 10168, "loc": { "start": { - "line": 375, + "line": 387, "column": 0 }, "end": { - "line": 375, + "line": 387, "column": 8 } } @@ -79408,15 +82677,15 @@ "binop": null }, "value": "touchEvent", - "start": 9993, - "end": 10003, + "start": 10169, + "end": 10179, "loc": { "start": { - "line": 375, + "line": 387, "column": 9 }, "end": { - "line": 375, + "line": 387, "column": 19 } } @@ -79433,15 +82702,15 @@ "postfix": false, "binop": null }, - "start": 10003, - "end": 10004, + "start": 10179, + "end": 10180, "loc": { "start": { - "line": 375, + "line": 387, "column": 19 }, "end": { - "line": 375, + "line": 387, "column": 20 } } @@ -79459,15 +82728,15 @@ "binop": null }, "value": "e", - "start": 10004, - "end": 10005, + "start": 10180, + "end": 10181, "loc": { "start": { - "line": 375, + "line": 387, "column": 20 }, "end": { - "line": 375, + "line": 387, "column": 21 } } @@ -79484,15 +82753,15 @@ "postfix": false, "binop": null }, - "start": 10005, - "end": 10006, + "start": 10181, + "end": 10182, "loc": { "start": { - "line": 375, + "line": 387, "column": 21 }, "end": { - "line": 375, + "line": 387, "column": 22 } } @@ -79509,15 +82778,15 @@ "postfix": false, "binop": null }, - "start": 10007, - "end": 10008, + "start": 10183, + "end": 10184, "loc": { "start": { - "line": 376, + "line": 388, "column": 0 }, "end": { - "line": 376, + "line": 388, "column": 1 } } @@ -79537,15 +82806,15 @@ "updateContext": null }, "value": "var", - "start": 10013, - "end": 10016, + "start": 10189, + "end": 10192, "loc": { "start": { - "line": 377, + "line": 389, "column": 4 }, "end": { - "line": 377, + "line": 389, "column": 7 } } @@ -79563,15 +82832,15 @@ "binop": null }, "value": "touch", - "start": 10017, - "end": 10022, + "start": 10193, + "end": 10198, "loc": { "start": { - "line": 377, + "line": 389, "column": 8 }, "end": { - "line": 377, + "line": 389, "column": 13 } } @@ -79590,15 +82859,15 @@ "updateContext": null }, "value": "=", - "start": 10023, - "end": 10024, + "start": 10199, + "end": 10200, "loc": { "start": { - "line": 377, + "line": 389, "column": 14 }, "end": { - "line": 377, + "line": 389, "column": 15 } } @@ -79616,15 +82885,15 @@ "binop": null }, "value": "e", - "start": 10025, - "end": 10026, + "start": 10201, + "end": 10202, "loc": { "start": { - "line": 377, + "line": 389, "column": 16 }, "end": { - "line": 377, + "line": 389, "column": 17 } } @@ -79642,15 +82911,15 @@ "binop": null, "updateContext": null }, - "start": 10026, - "end": 10027, + "start": 10202, + "end": 10203, "loc": { "start": { - "line": 377, + "line": 389, "column": 17 }, "end": { - "line": 377, + "line": 389, "column": 18 } } @@ -79668,15 +82937,15 @@ "binop": null }, "value": "touches", - "start": 10027, - "end": 10034, + "start": 10203, + "end": 10210, "loc": { "start": { - "line": 377, + "line": 389, "column": 18 }, "end": { - "line": 377, + "line": 389, "column": 25 } } @@ -79694,15 +82963,15 @@ "binop": null, "updateContext": null }, - "start": 10034, - "end": 10035, + "start": 10210, + "end": 10211, "loc": { "start": { - "line": 377, + "line": 389, "column": 25 }, "end": { - "line": 377, + "line": 389, "column": 26 } } @@ -79721,15 +82990,15 @@ "updateContext": null }, "value": 0, - "start": 10035, - "end": 10036, + "start": 10211, + "end": 10212, "loc": { "start": { - "line": 377, + "line": 389, "column": 26 }, "end": { - "line": 377, + "line": 389, "column": 27 } } @@ -79747,15 +83016,15 @@ "binop": null, "updateContext": null }, - "start": 10036, - "end": 10037, + "start": 10212, + "end": 10213, "loc": { "start": { - "line": 377, + "line": 389, "column": 27 }, "end": { - "line": 377, + "line": 389, "column": 28 } } @@ -79773,15 +83042,15 @@ "binop": null, "updateContext": null }, - "start": 10037, - "end": 10038, + "start": 10213, + "end": 10214, "loc": { "start": { - "line": 377, + "line": 389, "column": 28 }, "end": { - "line": 377, + "line": 389, "column": 29 } } @@ -79801,15 +83070,15 @@ "updateContext": null }, "value": "if", - "start": 10043, - "end": 10045, + "start": 10219, + "end": 10221, "loc": { "start": { - "line": 378, + "line": 390, "column": 4 }, "end": { - "line": 378, + "line": 390, "column": 6 } } @@ -79826,15 +83095,15 @@ "postfix": false, "binop": null }, - "start": 10046, - "end": 10047, + "start": 10222, + "end": 10223, "loc": { "start": { - "line": 378, + "line": 390, "column": 7 }, "end": { - "line": 378, + "line": 390, "column": 8 } } @@ -79852,15 +83121,15 @@ "binop": null }, "value": "e", - "start": 10047, - "end": 10048, + "start": 10223, + "end": 10224, "loc": { "start": { - "line": 378, + "line": 390, "column": 8 }, "end": { - "line": 378, + "line": 390, "column": 9 } } @@ -79878,15 +83147,15 @@ "binop": null, "updateContext": null }, - "start": 10048, - "end": 10049, + "start": 10224, + "end": 10225, "loc": { "start": { - "line": 378, + "line": 390, "column": 9 }, "end": { - "line": 378, + "line": 390, "column": 10 } } @@ -79904,15 +83173,15 @@ "binop": null }, "value": "type", - "start": 10049, - "end": 10053, + "start": 10225, + "end": 10229, "loc": { "start": { - "line": 378, + "line": 390, "column": 10 }, "end": { - "line": 378, + "line": 390, "column": 14 } } @@ -79931,15 +83200,15 @@ "updateContext": null }, "value": "==", - "start": 10054, - "end": 10056, + "start": 10230, + "end": 10232, "loc": { "start": { - "line": 378, + "line": 390, "column": 15 }, "end": { - "line": 378, + "line": 390, "column": 17 } } @@ -79958,15 +83227,15 @@ "updateContext": null }, "value": "touchstart", - "start": 10057, - "end": 10069, + "start": 10233, + "end": 10245, "loc": { "start": { - "line": 378, + "line": 390, "column": 18 }, "end": { - "line": 378, + "line": 390, "column": 30 } } @@ -79983,15 +83252,15 @@ "postfix": false, "binop": null }, - "start": 10069, - "end": 10070, + "start": 10245, + "end": 10246, "loc": { "start": { - "line": 378, + "line": 390, "column": 30 }, "end": { - "line": 378, + "line": 390, "column": 31 } } @@ -80008,15 +83277,15 @@ "postfix": false, "binop": null }, - "start": 10071, - "end": 10072, + "start": 10247, + "end": 10248, "loc": { "start": { - "line": 378, + "line": 390, "column": 32 }, "end": { - "line": 378, + "line": 390, "column": 33 } } @@ -80036,15 +83305,15 @@ "updateContext": null }, "value": "if", - "start": 10081, - "end": 10083, + "start": 10257, + "end": 10259, "loc": { "start": { - "line": 379, + "line": 391, "column": 8 }, "end": { - "line": 379, + "line": 391, "column": 10 } } @@ -80061,15 +83330,15 @@ "postfix": false, "binop": null }, - "start": 10084, - "end": 10085, + "start": 10260, + "end": 10261, "loc": { "start": { - "line": 379, + "line": 391, "column": 11 }, "end": { - "line": 379, + "line": 391, "column": 12 } } @@ -80087,15 +83356,15 @@ "binop": null }, "value": "e", - "start": 10085, - "end": 10086, + "start": 10261, + "end": 10262, "loc": { "start": { - "line": 379, + "line": 391, "column": 12 }, "end": { - "line": 379, + "line": 391, "column": 13 } } @@ -80113,15 +83382,15 @@ "binop": null, "updateContext": null }, - "start": 10086, - "end": 10087, + "start": 10262, + "end": 10263, "loc": { "start": { - "line": 379, + "line": 391, "column": 13 }, "end": { - "line": 379, + "line": 391, "column": 14 } } @@ -80139,15 +83408,15 @@ "binop": null }, "value": "touches", - "start": 10087, - "end": 10094, + "start": 10263, + "end": 10270, "loc": { "start": { - "line": 379, + "line": 391, "column": 14 }, "end": { - "line": 379, + "line": 391, "column": 21 } } @@ -80165,15 +83434,15 @@ "binop": null, "updateContext": null }, - "start": 10094, - "end": 10095, + "start": 10270, + "end": 10271, "loc": { "start": { - "line": 379, + "line": 391, "column": 21 }, "end": { - "line": 379, + "line": 391, "column": 22 } } @@ -80191,15 +83460,15 @@ "binop": null }, "value": "length", - "start": 10095, - "end": 10101, + "start": 10271, + "end": 10277, "loc": { "start": { - "line": 379, + "line": 391, "column": 22 }, "end": { - "line": 379, + "line": 391, "column": 28 } } @@ -80218,15 +83487,15 @@ "updateContext": null }, "value": "==", - "start": 10102, - "end": 10104, + "start": 10278, + "end": 10280, "loc": { "start": { - "line": 379, + "line": 391, "column": 29 }, "end": { - "line": 379, + "line": 391, "column": 31 } } @@ -80245,15 +83514,15 @@ "updateContext": null }, "value": 1, - "start": 10105, - "end": 10106, + "start": 10281, + "end": 10282, "loc": { "start": { - "line": 379, + "line": 391, "column": 32 }, "end": { - "line": 379, + "line": 391, "column": 33 } } @@ -80270,15 +83539,15 @@ "postfix": false, "binop": null }, - "start": 10106, - "end": 10107, + "start": 10282, + "end": 10283, "loc": { "start": { - "line": 379, + "line": 391, "column": 33 }, "end": { - "line": 379, + "line": 391, "column": 34 } } @@ -80296,15 +83565,15 @@ "binop": null }, "value": "modelTapEvent", - "start": 10108, - "end": 10121, + "start": 10284, + "end": 10297, "loc": { "start": { - "line": 379, + "line": 391, "column": 35 }, "end": { - "line": 379, + "line": 391, "column": 48 } } @@ -80321,15 +83590,15 @@ "postfix": false, "binop": null }, - "start": 10121, - "end": 10122, + "start": 10297, + "end": 10298, "loc": { "start": { - "line": 379, + "line": 391, "column": 48 }, "end": { - "line": 379, + "line": 391, "column": 49 } } @@ -80347,15 +83616,15 @@ "binop": null }, "value": "touch", - "start": 10122, - "end": 10127, + "start": 10298, + "end": 10303, "loc": { "start": { - "line": 379, + "line": 391, "column": 49 }, "end": { - "line": 379, + "line": 391, "column": 54 } } @@ -80372,15 +83641,15 @@ "postfix": false, "binop": null }, - "start": 10127, - "end": 10128, + "start": 10303, + "end": 10304, "loc": { "start": { - "line": 379, + "line": 391, "column": 54 }, "end": { - "line": 379, + "line": 391, "column": 55 } } @@ -80398,15 +83667,15 @@ "binop": null, "updateContext": null }, - "start": 10128, - "end": 10129, + "start": 10304, + "end": 10305, "loc": { "start": { - "line": 379, + "line": 391, "column": 55 }, "end": { - "line": 379, + "line": 391, "column": 56 } } @@ -80414,15 +83683,15 @@ { "type": "CommentLine", "value": " onClick(touch);", - "start": 10138, - "end": 10156, + "start": 10314, + "end": 10332, "loc": { "start": { - "line": 380, + "line": 392, "column": 8 }, "end": { - "line": 380, + "line": 392, "column": 26 } } @@ -80439,15 +83708,15 @@ "postfix": false, "binop": null }, - "start": 10161, - "end": 10162, + "start": 10337, + "end": 10338, "loc": { "start": { - "line": 381, + "line": 393, "column": 4 }, "end": { - "line": 381, + "line": 393, "column": 5 } } @@ -80467,15 +83736,15 @@ "updateContext": null }, "value": "else", - "start": 10163, - "end": 10167, + "start": 10339, + "end": 10343, "loc": { "start": { - "line": 381, + "line": 393, "column": 6 }, "end": { - "line": 381, + "line": 393, "column": 10 } } @@ -80495,15 +83764,15 @@ "updateContext": null }, "value": "if", - "start": 10168, - "end": 10170, + "start": 10344, + "end": 10346, "loc": { "start": { - "line": 381, + "line": 393, "column": 11 }, "end": { - "line": 381, + "line": 393, "column": 13 } } @@ -80520,15 +83789,15 @@ "postfix": false, "binop": null }, - "start": 10171, - "end": 10172, + "start": 10347, + "end": 10348, "loc": { "start": { - "line": 381, + "line": 393, "column": 14 }, "end": { - "line": 381, + "line": 393, "column": 15 } } @@ -80546,15 +83815,15 @@ "binop": null }, "value": "e", - "start": 10172, - "end": 10173, + "start": 10348, + "end": 10349, "loc": { "start": { - "line": 381, + "line": 393, "column": 15 }, "end": { - "line": 381, + "line": 393, "column": 16 } } @@ -80572,15 +83841,15 @@ "binop": null, "updateContext": null }, - "start": 10173, - "end": 10174, + "start": 10349, + "end": 10350, "loc": { "start": { - "line": 381, + "line": 393, "column": 16 }, "end": { - "line": 381, + "line": 393, "column": 17 } } @@ -80598,15 +83867,15 @@ "binop": null }, "value": "type", - "start": 10174, - "end": 10178, + "start": 10350, + "end": 10354, "loc": { "start": { - "line": 381, + "line": 393, "column": 17 }, "end": { - "line": 381, + "line": 393, "column": 21 } } @@ -80625,15 +83894,15 @@ "updateContext": null }, "value": "==", - "start": 10179, - "end": 10181, + "start": 10355, + "end": 10357, "loc": { "start": { - "line": 381, + "line": 393, "column": 22 }, "end": { - "line": 381, + "line": 393, "column": 24 } } @@ -80652,15 +83921,15 @@ "updateContext": null }, "value": "touchmove", - "start": 10182, - "end": 10193, + "start": 10358, + "end": 10369, "loc": { "start": { - "line": 381, + "line": 393, "column": 25 }, "end": { - "line": 381, + "line": 393, "column": 36 } } @@ -80677,15 +83946,15 @@ "postfix": false, "binop": null }, - "start": 10193, - "end": 10194, + "start": 10369, + "end": 10370, "loc": { "start": { - "line": 381, + "line": 393, "column": 36 }, "end": { - "line": 381, + "line": 393, "column": 37 } } @@ -80702,15 +83971,15 @@ "postfix": false, "binop": null }, - "start": 10195, - "end": 10196, + "start": 10371, + "end": 10372, "loc": { "start": { - "line": 381, + "line": 393, "column": 38 }, "end": { - "line": 381, + "line": 393, "column": 39 } } @@ -80728,15 +83997,15 @@ "binop": null }, "value": "followPointer", - "start": 10205, - "end": 10218, + "start": 10381, + "end": 10394, "loc": { "start": { - "line": 382, + "line": 394, "column": 8 }, "end": { - "line": 382, + "line": 394, "column": 21 } } @@ -80753,15 +84022,15 @@ "postfix": false, "binop": null }, - "start": 10218, - "end": 10219, + "start": 10394, + "end": 10395, "loc": { "start": { - "line": 382, + "line": 394, "column": 21 }, "end": { - "line": 382, + "line": 394, "column": 22 } } @@ -80779,15 +84048,15 @@ "binop": null }, "value": "touch", - "start": 10219, - "end": 10224, + "start": 10395, + "end": 10400, "loc": { "start": { - "line": 382, + "line": 394, "column": 22 }, "end": { - "line": 382, + "line": 394, "column": 27 } } @@ -80804,15 +84073,15 @@ "postfix": false, "binop": null }, - "start": 10224, - "end": 10225, + "start": 10400, + "end": 10401, "loc": { "start": { - "line": 382, + "line": 394, "column": 27 }, "end": { - "line": 382, + "line": 394, "column": 28 } } @@ -80830,15 +84099,15 @@ "binop": null, "updateContext": null }, - "start": 10225, - "end": 10226, + "start": 10401, + "end": 10402, "loc": { "start": { - "line": 382, + "line": 394, "column": 28 }, "end": { - "line": 382, + "line": 394, "column": 29 } } @@ -80855,15 +84124,15 @@ "postfix": false, "binop": null }, - "start": 10231, - "end": 10232, + "start": 10407, + "end": 10408, "loc": { "start": { - "line": 383, + "line": 395, "column": 4 }, "end": { - "line": 383, + "line": 395, "column": 5 } } @@ -80883,15 +84152,15 @@ "updateContext": null }, "value": "else", - "start": 10233, - "end": 10237, + "start": 10409, + "end": 10413, "loc": { "start": { - "line": 383, + "line": 395, "column": 6 }, "end": { - "line": 383, + "line": 395, "column": 10 } } @@ -80911,15 +84180,15 @@ "updateContext": null }, "value": "if", - "start": 10238, - "end": 10240, + "start": 10414, + "end": 10416, "loc": { "start": { - "line": 383, + "line": 395, "column": 11 }, "end": { - "line": 383, + "line": 395, "column": 13 } } @@ -80936,15 +84205,15 @@ "postfix": false, "binop": null }, - "start": 10241, - "end": 10242, + "start": 10417, + "end": 10418, "loc": { "start": { - "line": 383, + "line": 395, "column": 14 }, "end": { - "line": 383, + "line": 395, "column": 15 } } @@ -80962,15 +84231,15 @@ "binop": null }, "value": "e", - "start": 10242, - "end": 10243, + "start": 10418, + "end": 10419, "loc": { "start": { - "line": 383, + "line": 395, "column": 15 }, "end": { - "line": 383, + "line": 395, "column": 16 } } @@ -80988,15 +84257,15 @@ "binop": null, "updateContext": null }, - "start": 10243, - "end": 10244, + "start": 10419, + "end": 10420, "loc": { "start": { - "line": 383, + "line": 395, "column": 16 }, "end": { - "line": 383, + "line": 395, "column": 17 } } @@ -81014,15 +84283,15 @@ "binop": null }, "value": "type", - "start": 10244, - "end": 10248, + "start": 10420, + "end": 10424, "loc": { "start": { - "line": 383, + "line": 395, "column": 17 }, "end": { - "line": 383, + "line": 395, "column": 21 } } @@ -81041,15 +84310,15 @@ "updateContext": null }, "value": "==", - "start": 10249, - "end": 10251, + "start": 10425, + "end": 10427, "loc": { "start": { - "line": 383, + "line": 395, "column": 22 }, "end": { - "line": 383, + "line": 395, "column": 24 } } @@ -81068,15 +84337,15 @@ "updateContext": null }, "value": "touchend", - "start": 10252, - "end": 10262, + "start": 10428, + "end": 10438, "loc": { "start": { - "line": 383, + "line": 395, "column": 25 }, "end": { - "line": 383, + "line": 395, "column": 35 } } @@ -81093,15 +84362,15 @@ "postfix": false, "binop": null }, - "start": 10262, - "end": 10263, + "start": 10438, + "end": 10439, "loc": { "start": { - "line": 383, + "line": 395, "column": 35 }, "end": { - "line": 383, + "line": 395, "column": 36 } } @@ -81118,15 +84387,15 @@ "postfix": false, "binop": null }, - "start": 10264, - "end": 10265, + "start": 10440, + "end": 10441, "loc": { "start": { - "line": 383, + "line": 395, "column": 37 }, "end": { - "line": 383, + "line": 395, "column": 38 } } @@ -81144,15 +84413,15 @@ "binop": null }, "value": "lookFront", - "start": 10274, - "end": 10283, + "start": 10450, + "end": 10459, "loc": { "start": { - "line": 384, + "line": 396, "column": 8 }, "end": { - "line": 384, + "line": 396, "column": 17 } } @@ -81169,15 +84438,15 @@ "postfix": false, "binop": null }, - "start": 10283, - "end": 10284, + "start": 10459, + "end": 10460, "loc": { "start": { - "line": 384, + "line": 396, "column": 17 }, "end": { - "line": 384, + "line": 396, "column": 18 } } @@ -81194,15 +84463,15 @@ "postfix": false, "binop": null }, - "start": 10284, - "end": 10285, + "start": 10460, + "end": 10461, "loc": { "start": { - "line": 384, + "line": 396, "column": 18 }, "end": { - "line": 384, + "line": 396, "column": 19 } } @@ -81220,15 +84489,15 @@ "binop": null, "updateContext": null }, - "start": 10285, - "end": 10286, + "start": 10461, + "end": 10462, "loc": { "start": { - "line": 384, + "line": 396, "column": 19 }, "end": { - "line": 384, + "line": 396, "column": 20 } } @@ -81245,15 +84514,15 @@ "postfix": false, "binop": null }, - "start": 10291, - "end": 10292, + "start": 10467, + "end": 10468, "loc": { "start": { - "line": 385, + "line": 397, "column": 4 }, "end": { - "line": 385, + "line": 397, "column": 5 } } @@ -81270,15 +84539,15 @@ "postfix": false, "binop": null }, - "start": 10293, - "end": 10294, + "start": 10469, + "end": 10470, "loc": { "start": { - "line": 386, + "line": 398, "column": 0 }, "end": { - "line": 386, + "line": 398, "column": 1 } } @@ -81297,15 +84566,15 @@ "binop": null }, "value": "function", - "start": 10296, - "end": 10304, + "start": 10472, + "end": 10480, "loc": { "start": { - "line": 388, + "line": 400, "column": 0 }, "end": { - "line": 388, + "line": 400, "column": 8 } } @@ -81323,15 +84592,15 @@ "binop": null }, "value": "transformViewX", - "start": 10305, - "end": 10319, + "start": 10481, + "end": 10495, "loc": { "start": { - "line": 388, + "line": 400, "column": 9 }, "end": { - "line": 388, + "line": 400, "column": 23 } } @@ -81348,15 +84617,15 @@ "postfix": false, "binop": null }, - "start": 10319, - "end": 10320, + "start": 10495, + "end": 10496, "loc": { "start": { - "line": 388, + "line": 400, "column": 23 }, "end": { - "line": 388, + "line": 400, "column": 24 } } @@ -81374,15 +84643,15 @@ "binop": null }, "value": "deviceX", - "start": 10320, - "end": 10327, + "start": 10496, + "end": 10503, "loc": { "start": { - "line": 388, + "line": 400, "column": 24 }, "end": { - "line": 388, + "line": 400, "column": 31 } } @@ -81399,15 +84668,15 @@ "postfix": false, "binop": null }, - "start": 10327, - "end": 10328, + "start": 10503, + "end": 10504, "loc": { "start": { - "line": 388, + "line": 400, "column": 31 }, "end": { - "line": 388, + "line": 400, "column": 32 } } @@ -81424,15 +84693,15 @@ "postfix": false, "binop": null }, - "start": 10329, - "end": 10330, + "start": 10505, + "end": 10506, "loc": { "start": { - "line": 389, + "line": 401, "column": 0 }, "end": { - "line": 389, + "line": 401, "column": 1 } } @@ -81452,15 +84721,15 @@ "updateContext": null }, "value": "var", - "start": 10335, - "end": 10338, + "start": 10511, + "end": 10514, "loc": { "start": { - "line": 390, + "line": 402, "column": 4 }, "end": { - "line": 390, + "line": 402, "column": 7 } } @@ -81478,15 +84747,15 @@ "binop": null }, "value": "screenX", - "start": 10339, - "end": 10346, + "start": 10515, + "end": 10522, "loc": { "start": { - "line": 390, + "line": 402, "column": 8 }, "end": { - "line": 390, + "line": 402, "column": 15 } } @@ -81505,15 +84774,15 @@ "updateContext": null }, "value": "=", - "start": 10347, - "end": 10348, + "start": 10523, + "end": 10524, "loc": { "start": { - "line": 390, + "line": 402, "column": 16 }, "end": { - "line": 390, + "line": 402, "column": 17 } } @@ -81531,15 +84800,15 @@ "binop": null }, "value": "deviceToScreen", - "start": 10349, - "end": 10363, + "start": 10525, + "end": 10539, "loc": { "start": { - "line": 390, + "line": 402, "column": 18 }, "end": { - "line": 390, + "line": 402, "column": 32 } } @@ -81557,15 +84826,15 @@ "binop": null, "updateContext": null }, - "start": 10363, - "end": 10364, + "start": 10539, + "end": 10540, "loc": { "start": { - "line": 390, + "line": 402, "column": 32 }, "end": { - "line": 390, + "line": 402, "column": 33 } } @@ -81583,15 +84852,15 @@ "binop": null }, "value": "transformX", - "start": 10364, - "end": 10374, + "start": 10540, + "end": 10550, "loc": { "start": { - "line": 390, + "line": 402, "column": 33 }, "end": { - "line": 390, + "line": 402, "column": 43 } } @@ -81608,15 +84877,15 @@ "postfix": false, "binop": null }, - "start": 10374, - "end": 10375, + "start": 10550, + "end": 10551, "loc": { "start": { - "line": 390, + "line": 402, "column": 43 }, "end": { - "line": 390, + "line": 402, "column": 44 } } @@ -81634,15 +84903,15 @@ "binop": null }, "value": "deviceX", - "start": 10375, - "end": 10382, + "start": 10551, + "end": 10558, "loc": { "start": { - "line": 390, + "line": 402, "column": 44 }, "end": { - "line": 390, + "line": 402, "column": 51 } } @@ -81659,15 +84928,15 @@ "postfix": false, "binop": null }, - "start": 10382, - "end": 10383, + "start": 10558, + "end": 10559, "loc": { "start": { - "line": 390, + "line": 402, "column": 51 }, "end": { - "line": 390, + "line": 402, "column": 52 } } @@ -81685,15 +84954,15 @@ "binop": null, "updateContext": null }, - "start": 10383, - "end": 10384, + "start": 10559, + "end": 10560, "loc": { "start": { - "line": 390, + "line": 402, "column": 52 }, "end": { - "line": 390, + "line": 402, "column": 53 } } @@ -81713,15 +84982,15 @@ "updateContext": null }, "value": "return", - "start": 10389, - "end": 10395, + "start": 10565, + "end": 10571, "loc": { "start": { - "line": 391, + "line": 403, "column": 4 }, "end": { - "line": 391, + "line": 403, "column": 10 } } @@ -81739,15 +85008,15 @@ "binop": null }, "value": "viewMatrix", - "start": 10396, - "end": 10406, + "start": 10572, + "end": 10582, "loc": { "start": { - "line": 391, + "line": 403, "column": 11 }, "end": { - "line": 391, + "line": 403, "column": 21 } } @@ -81765,15 +85034,15 @@ "binop": null, "updateContext": null }, - "start": 10406, - "end": 10407, + "start": 10582, + "end": 10583, "loc": { "start": { - "line": 391, + "line": 403, "column": 21 }, "end": { - "line": 391, + "line": 403, "column": 22 } } @@ -81791,15 +85060,15 @@ "binop": null }, "value": "invertTransformX", - "start": 10407, - "end": 10423, + "start": 10583, + "end": 10599, "loc": { "start": { - "line": 391, + "line": 403, "column": 22 }, "end": { - "line": 391, + "line": 403, "column": 38 } } @@ -81816,15 +85085,15 @@ "postfix": false, "binop": null }, - "start": 10423, - "end": 10424, + "start": 10599, + "end": 10600, "loc": { "start": { - "line": 391, + "line": 403, "column": 38 }, "end": { - "line": 391, + "line": 403, "column": 39 } } @@ -81842,15 +85111,15 @@ "binop": null }, "value": "screenX", - "start": 10424, - "end": 10431, + "start": 10600, + "end": 10607, "loc": { "start": { - "line": 391, + "line": 403, "column": 39 }, "end": { - "line": 391, + "line": 403, "column": 46 } } @@ -81867,15 +85136,15 @@ "postfix": false, "binop": null }, - "start": 10431, - "end": 10432, + "start": 10607, + "end": 10608, "loc": { "start": { - "line": 391, + "line": 403, "column": 46 }, "end": { - "line": 391, + "line": 403, "column": 47 } } @@ -81893,15 +85162,15 @@ "binop": null, "updateContext": null }, - "start": 10432, - "end": 10433, + "start": 10608, + "end": 10609, "loc": { "start": { - "line": 391, + "line": 403, "column": 47 }, "end": { - "line": 391, + "line": 403, "column": 48 } } @@ -81918,15 +85187,15 @@ "postfix": false, "binop": null }, - "start": 10434, - "end": 10435, + "start": 10610, + "end": 10611, "loc": { "start": { - "line": 392, + "line": 404, "column": 0 }, "end": { - "line": 392, + "line": 404, "column": 1 } } @@ -81945,15 +85214,15 @@ "binop": null }, "value": "function", - "start": 10438, - "end": 10446, + "start": 10614, + "end": 10622, "loc": { "start": { - "line": 395, + "line": 407, "column": 0 }, "end": { - "line": 395, + "line": 407, "column": 8 } } @@ -81971,15 +85240,15 @@ "binop": null }, "value": "transformViewY", - "start": 10447, - "end": 10461, + "start": 10623, + "end": 10637, "loc": { "start": { - "line": 395, + "line": 407, "column": 9 }, "end": { - "line": 395, + "line": 407, "column": 23 } } @@ -81996,15 +85265,15 @@ "postfix": false, "binop": null }, - "start": 10461, - "end": 10462, + "start": 10637, + "end": 10638, "loc": { "start": { - "line": 395, + "line": 407, "column": 23 }, "end": { - "line": 395, + "line": 407, "column": 24 } } @@ -82022,15 +85291,15 @@ "binop": null }, "value": "deviceY", - "start": 10462, - "end": 10469, + "start": 10638, + "end": 10645, "loc": { "start": { - "line": 395, + "line": 407, "column": 24 }, "end": { - "line": 395, + "line": 407, "column": 31 } } @@ -82047,15 +85316,15 @@ "postfix": false, "binop": null }, - "start": 10469, - "end": 10470, + "start": 10645, + "end": 10646, "loc": { "start": { - "line": 395, + "line": 407, "column": 31 }, "end": { - "line": 395, + "line": 407, "column": 32 } } @@ -82072,15 +85341,15 @@ "postfix": false, "binop": null }, - "start": 10471, - "end": 10472, + "start": 10647, + "end": 10648, "loc": { "start": { - "line": 396, + "line": 408, "column": 0 }, "end": { - "line": 396, + "line": 408, "column": 1 } } @@ -82100,15 +85369,15 @@ "updateContext": null }, "value": "var", - "start": 10477, - "end": 10480, + "start": 10653, + "end": 10656, "loc": { "start": { - "line": 397, + "line": 409, "column": 4 }, "end": { - "line": 397, + "line": 409, "column": 7 } } @@ -82126,15 +85395,15 @@ "binop": null }, "value": "screenY", - "start": 10481, - "end": 10488, + "start": 10657, + "end": 10664, "loc": { "start": { - "line": 397, + "line": 409, "column": 8 }, "end": { - "line": 397, + "line": 409, "column": 15 } } @@ -82153,15 +85422,15 @@ "updateContext": null }, "value": "=", - "start": 10489, - "end": 10490, + "start": 10665, + "end": 10666, "loc": { "start": { - "line": 397, + "line": 409, "column": 16 }, "end": { - "line": 397, + "line": 409, "column": 17 } } @@ -82179,15 +85448,15 @@ "binop": null }, "value": "deviceToScreen", - "start": 10491, - "end": 10505, + "start": 10667, + "end": 10681, "loc": { "start": { - "line": 397, + "line": 409, "column": 18 }, "end": { - "line": 397, + "line": 409, "column": 32 } } @@ -82205,15 +85474,15 @@ "binop": null, "updateContext": null }, - "start": 10505, - "end": 10506, + "start": 10681, + "end": 10682, "loc": { "start": { - "line": 397, + "line": 409, "column": 32 }, "end": { - "line": 397, + "line": 409, "column": 33 } } @@ -82231,15 +85500,15 @@ "binop": null }, "value": "transformY", - "start": 10506, - "end": 10516, + "start": 10682, + "end": 10692, "loc": { "start": { - "line": 397, + "line": 409, "column": 33 }, "end": { - "line": 397, + "line": 409, "column": 43 } } @@ -82256,15 +85525,15 @@ "postfix": false, "binop": null }, - "start": 10516, - "end": 10517, + "start": 10692, + "end": 10693, "loc": { "start": { - "line": 397, + "line": 409, "column": 43 }, "end": { - "line": 397, + "line": 409, "column": 44 } } @@ -82282,15 +85551,15 @@ "binop": null }, "value": "deviceY", - "start": 10517, - "end": 10524, + "start": 10693, + "end": 10700, "loc": { "start": { - "line": 397, + "line": 409, "column": 44 }, "end": { - "line": 397, + "line": 409, "column": 51 } } @@ -82307,15 +85576,15 @@ "postfix": false, "binop": null }, - "start": 10524, - "end": 10525, + "start": 10700, + "end": 10701, "loc": { "start": { - "line": 397, + "line": 409, "column": 51 }, "end": { - "line": 397, + "line": 409, "column": 52 } } @@ -82333,15 +85602,15 @@ "binop": null, "updateContext": null }, - "start": 10525, - "end": 10526, + "start": 10701, + "end": 10702, "loc": { "start": { - "line": 397, + "line": 409, "column": 52 }, "end": { - "line": 397, + "line": 409, "column": 53 } } @@ -82361,15 +85630,15 @@ "updateContext": null }, "value": "return", - "start": 10531, - "end": 10537, + "start": 10707, + "end": 10713, "loc": { "start": { - "line": 398, + "line": 410, "column": 4 }, "end": { - "line": 398, + "line": 410, "column": 10 } } @@ -82387,15 +85656,15 @@ "binop": null }, "value": "viewMatrix", - "start": 10538, - "end": 10548, + "start": 10714, + "end": 10724, "loc": { "start": { - "line": 398, + "line": 410, "column": 11 }, "end": { - "line": 398, + "line": 410, "column": 21 } } @@ -82413,15 +85682,15 @@ "binop": null, "updateContext": null }, - "start": 10548, - "end": 10549, + "start": 10724, + "end": 10725, "loc": { "start": { - "line": 398, + "line": 410, "column": 21 }, "end": { - "line": 398, + "line": 410, "column": 22 } } @@ -82439,15 +85708,15 @@ "binop": null }, "value": "invertTransformY", - "start": 10549, - "end": 10565, + "start": 10725, + "end": 10741, "loc": { "start": { - "line": 398, + "line": 410, "column": 22 }, "end": { - "line": 398, + "line": 410, "column": 38 } } @@ -82464,15 +85733,15 @@ "postfix": false, "binop": null }, - "start": 10565, - "end": 10566, + "start": 10741, + "end": 10742, "loc": { "start": { - "line": 398, + "line": 410, "column": 38 }, "end": { - "line": 398, + "line": 410, "column": 39 } } @@ -82490,15 +85759,15 @@ "binop": null }, "value": "screenY", - "start": 10566, - "end": 10573, + "start": 10742, + "end": 10749, "loc": { "start": { - "line": 398, + "line": 410, "column": 39 }, "end": { - "line": 398, + "line": 410, "column": 46 } } @@ -82515,15 +85784,15 @@ "postfix": false, "binop": null }, - "start": 10573, - "end": 10574, + "start": 10749, + "end": 10750, "loc": { "start": { - "line": 398, + "line": 410, "column": 46 }, "end": { - "line": 398, + "line": 410, "column": 47 } } @@ -82541,15 +85810,15 @@ "binop": null, "updateContext": null }, - "start": 10574, - "end": 10575, + "start": 10750, + "end": 10751, "loc": { "start": { - "line": 398, + "line": 410, "column": 47 }, "end": { - "line": 398, + "line": 410, "column": 48 } } @@ -82566,15 +85835,15 @@ "postfix": false, "binop": null }, - "start": 10576, - "end": 10577, + "start": 10752, + "end": 10753, "loc": { "start": { - "line": 399, + "line": 411, "column": 0 }, "end": { - "line": 399, + "line": 411, "column": 1 } } @@ -82593,15 +85862,15 @@ "binop": null }, "value": "function", - "start": 10580, - "end": 10588, + "start": 10756, + "end": 10764, "loc": { "start": { - "line": 402, + "line": 414, "column": 0 }, "end": { - "line": 402, + "line": 414, "column": 8 } } @@ -82619,15 +85888,15 @@ "binop": null }, "value": "transformScreenX", - "start": 10589, - "end": 10605, + "start": 10765, + "end": 10781, "loc": { "start": { - "line": 402, + "line": 414, "column": 9 }, "end": { - "line": 402, + "line": 414, "column": 25 } } @@ -82644,15 +85913,15 @@ "postfix": false, "binop": null }, - "start": 10605, - "end": 10606, + "start": 10781, + "end": 10782, "loc": { "start": { - "line": 402, + "line": 414, "column": 25 }, "end": { - "line": 402, + "line": 414, "column": 26 } } @@ -82670,15 +85939,15 @@ "binop": null }, "value": "deviceX", - "start": 10606, - "end": 10613, + "start": 10782, + "end": 10789, "loc": { "start": { - "line": 402, + "line": 414, "column": 26 }, "end": { - "line": 402, + "line": 414, "column": 33 } } @@ -82695,15 +85964,15 @@ "postfix": false, "binop": null }, - "start": 10613, - "end": 10614, + "start": 10789, + "end": 10790, "loc": { "start": { - "line": 402, + "line": 414, "column": 33 }, "end": { - "line": 402, + "line": 414, "column": 34 } } @@ -82720,15 +85989,15 @@ "postfix": false, "binop": null }, - "start": 10615, - "end": 10616, + "start": 10791, + "end": 10792, "loc": { "start": { - "line": 403, + "line": 415, "column": 0 }, "end": { - "line": 403, + "line": 415, "column": 1 } } @@ -82748,15 +86017,15 @@ "updateContext": null }, "value": "return", - "start": 10621, - "end": 10627, + "start": 10797, + "end": 10803, "loc": { "start": { - "line": 404, + "line": 416, "column": 4 }, "end": { - "line": 404, + "line": 416, "column": 10 } } @@ -82774,15 +86043,15 @@ "binop": null }, "value": "deviceToScreen", - "start": 10628, - "end": 10642, + "start": 10804, + "end": 10818, "loc": { "start": { - "line": 404, + "line": 416, "column": 11 }, "end": { - "line": 404, + "line": 416, "column": 25 } } @@ -82800,15 +86069,15 @@ "binop": null, "updateContext": null }, - "start": 10642, - "end": 10643, + "start": 10818, + "end": 10819, "loc": { "start": { - "line": 404, + "line": 416, "column": 25 }, "end": { - "line": 404, + "line": 416, "column": 26 } } @@ -82826,15 +86095,15 @@ "binop": null }, "value": "transformX", - "start": 10643, - "end": 10653, + "start": 10819, + "end": 10829, "loc": { "start": { - "line": 404, + "line": 416, "column": 26 }, "end": { - "line": 404, + "line": 416, "column": 36 } } @@ -82851,15 +86120,15 @@ "postfix": false, "binop": null }, - "start": 10653, - "end": 10654, + "start": 10829, + "end": 10830, "loc": { "start": { - "line": 404, + "line": 416, "column": 36 }, "end": { - "line": 404, + "line": 416, "column": 37 } } @@ -82877,15 +86146,15 @@ "binop": null }, "value": "deviceX", - "start": 10654, - "end": 10661, + "start": 10830, + "end": 10837, "loc": { "start": { - "line": 404, + "line": 416, "column": 37 }, "end": { - "line": 404, + "line": 416, "column": 44 } } @@ -82902,15 +86171,15 @@ "postfix": false, "binop": null }, - "start": 10661, - "end": 10662, + "start": 10837, + "end": 10838, "loc": { "start": { - "line": 404, + "line": 416, "column": 44 }, "end": { - "line": 404, + "line": 416, "column": 45 } } @@ -82928,15 +86197,15 @@ "binop": null, "updateContext": null }, - "start": 10662, - "end": 10663, + "start": 10838, + "end": 10839, "loc": { "start": { - "line": 404, + "line": 416, "column": 45 }, "end": { - "line": 404, + "line": 416, "column": 46 } } @@ -82953,15 +86222,15 @@ "postfix": false, "binop": null }, - "start": 10664, - "end": 10665, + "start": 10840, + "end": 10841, "loc": { "start": { - "line": 405, + "line": 417, "column": 0 }, "end": { - "line": 405, + "line": 417, "column": 1 } } @@ -82980,15 +86249,15 @@ "binop": null }, "value": "function", - "start": 10668, - "end": 10676, + "start": 10844, + "end": 10852, "loc": { "start": { - "line": 408, + "line": 420, "column": 0 }, "end": { - "line": 408, + "line": 420, "column": 8 } } @@ -83006,15 +86275,15 @@ "binop": null }, "value": "transformScreenY", - "start": 10677, - "end": 10693, + "start": 10853, + "end": 10869, "loc": { "start": { - "line": 408, + "line": 420, "column": 9 }, "end": { - "line": 408, + "line": 420, "column": 25 } } @@ -83031,15 +86300,15 @@ "postfix": false, "binop": null }, - "start": 10693, - "end": 10694, + "start": 10869, + "end": 10870, "loc": { "start": { - "line": 408, + "line": 420, "column": 25 }, "end": { - "line": 408, + "line": 420, "column": 26 } } @@ -83057,15 +86326,15 @@ "binop": null }, "value": "deviceY", - "start": 10694, - "end": 10701, + "start": 10870, + "end": 10877, "loc": { "start": { - "line": 408, + "line": 420, "column": 26 }, "end": { - "line": 408, + "line": 420, "column": 33 } } @@ -83082,15 +86351,15 @@ "postfix": false, "binop": null }, - "start": 10701, - "end": 10702, + "start": 10877, + "end": 10878, "loc": { "start": { - "line": 408, + "line": 420, "column": 33 }, "end": { - "line": 408, + "line": 420, "column": 34 } } @@ -83107,15 +86376,15 @@ "postfix": false, "binop": null }, - "start": 10703, - "end": 10704, + "start": 10879, + "end": 10880, "loc": { "start": { - "line": 409, + "line": 421, "column": 0 }, "end": { - "line": 409, + "line": 421, "column": 1 } } @@ -83135,15 +86404,15 @@ "updateContext": null }, "value": "return", - "start": 10709, - "end": 10715, + "start": 10885, + "end": 10891, "loc": { "start": { - "line": 410, + "line": 422, "column": 4 }, "end": { - "line": 410, + "line": 422, "column": 10 } } @@ -83161,15 +86430,15 @@ "binop": null }, "value": "deviceToScreen", - "start": 10716, - "end": 10730, + "start": 10892, + "end": 10906, "loc": { "start": { - "line": 410, + "line": 422, "column": 11 }, "end": { - "line": 410, + "line": 422, "column": 25 } } @@ -83187,15 +86456,15 @@ "binop": null, "updateContext": null }, - "start": 10730, - "end": 10731, + "start": 10906, + "end": 10907, "loc": { "start": { - "line": 410, + "line": 422, "column": 25 }, "end": { - "line": 410, + "line": 422, "column": 26 } } @@ -83213,15 +86482,15 @@ "binop": null }, "value": "transformY", - "start": 10731, - "end": 10741, + "start": 10907, + "end": 10917, "loc": { "start": { - "line": 410, + "line": 422, "column": 26 }, "end": { - "line": 410, + "line": 422, "column": 36 } } @@ -83238,15 +86507,15 @@ "postfix": false, "binop": null }, - "start": 10741, - "end": 10742, + "start": 10917, + "end": 10918, "loc": { "start": { - "line": 410, + "line": 422, "column": 36 }, "end": { - "line": 410, + "line": 422, "column": 37 } } @@ -83264,15 +86533,15 @@ "binop": null }, "value": "deviceY", - "start": 10742, - "end": 10749, + "start": 10918, + "end": 10925, "loc": { "start": { - "line": 410, + "line": 422, "column": 37 }, "end": { - "line": 410, + "line": 422, "column": 44 } } @@ -83289,15 +86558,15 @@ "postfix": false, "binop": null }, - "start": 10749, - "end": 10750, + "start": 10925, + "end": 10926, "loc": { "start": { - "line": 410, + "line": 422, "column": 44 }, "end": { - "line": 410, + "line": 422, "column": 45 } } @@ -83315,15 +86584,15 @@ "binop": null, "updateContext": null }, - "start": 10750, - "end": 10751, + "start": 10926, + "end": 10927, "loc": { "start": { - "line": 410, + "line": 422, "column": 45 }, "end": { - "line": 410, + "line": 422, "column": 46 } } @@ -83340,15 +86609,15 @@ "postfix": false, "binop": null }, - "start": 10752, - "end": 10753, + "start": 10928, + "end": 10929, "loc": { "start": { - "line": 411, + "line": 423, "column": 0 }, "end": { - "line": 411, + "line": 423, "column": 1 } } @@ -83368,15 +86637,15 @@ "updateContext": null }, "value": "export", - "start": 10755, - "end": 10761, + "start": 10931, + "end": 10937, "loc": { "start": { - "line": 413, + "line": 425, "column": 0 }, "end": { - "line": 413, + "line": 425, "column": 6 } } @@ -83393,15 +86662,15 @@ "postfix": false, "binop": null }, - "start": 10761, - "end": 10762, + "start": 10937, + "end": 10938, "loc": { "start": { - "line": 413, + "line": 425, "column": 6 }, "end": { - "line": 413, + "line": 425, "column": 7 } } @@ -83419,15 +86688,15 @@ "binop": null }, "value": "theRealInit", - "start": 10765, - "end": 10776, + "start": 10941, + "end": 10952, "loc": { "start": { - "line": 414, + "line": 426, "column": 2 }, "end": { - "line": 414, + "line": 426, "column": 13 } } @@ -83445,15 +86714,15 @@ "binop": null, "updateContext": null }, - "start": 10776, - "end": 10777, + "start": 10952, + "end": 10953, "loc": { "start": { - "line": 414, + "line": 426, "column": 13 }, "end": { - "line": 414, + "line": 426, "column": 14 } } @@ -83471,15 +86740,15 @@ "binop": null }, "value": "captureFrame", - "start": 10780, - "end": 10792, + "start": 10956, + "end": 10968, "loc": { "start": { - "line": 415, + "line": 427, "column": 2 }, "end": { - "line": 415, + "line": 427, "column": 14 } } @@ -83497,15 +86766,15 @@ "binop": null, "updateContext": null }, - "start": 10792, - "end": 10793, + "start": 10968, + "end": 10969, "loc": { "start": { - "line": 415, + "line": 427, "column": 14 }, "end": { - "line": 415, + "line": 427, "column": 15 } } @@ -83522,15 +86791,15 @@ "postfix": false, "binop": null }, - "start": 10794, - "end": 10795, + "start": 10970, + "end": 10971, "loc": { "start": { - "line": 416, + "line": 428, "column": 0 }, "end": { - "line": 416, + "line": 428, "column": 1 } } @@ -83548,15 +86817,15 @@ "binop": null, "updateContext": null }, - "start": 10796, - "end": 10796, + "start": 10972, + "end": 10972, "loc": { "start": { - "line": 417, + "line": 429, "column": 0 }, "end": { - "line": 417, + "line": 429, "column": 0 } } diff --git a/ghpages/docs/ast/source/config/configMgr.js.json b/ghpages/docs/ast/source/config/configMgr.js.json index f309b6a..d3effcf 100644 --- a/ghpages/docs/ast/source/config/configMgr.js.json +++ b/ghpages/docs/ast/source/config/configMgr.js.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 1627, + "end": 1644, "loc": { "start": { "line": 1, @@ -15,7 +15,7 @@ "program": { "type": "Program", "start": 0, - "end": 1627, + "end": 1644, "loc": { "start": { "line": 1, @@ -222,7 +222,7 @@ { "type": "VariableDeclaration", "start": 265, - "end": 1083, + "end": 1084, "loc": { "start": { "line": 23, @@ -237,7 +237,7 @@ { "type": "VariableDeclarator", "start": 271, - "end": 1083, + "end": 1084, "loc": { "start": { "line": 23, @@ -269,7 +269,7 @@ "init": { "type": "ObjectExpression", "start": 287, - "end": 1083, + "end": 1084, "loc": { "start": { "line": 23, @@ -284,7 +284,7 @@ { "type": "ObjectProperty", "start": 291, - "end": 470, + "end": 471, "loc": { "start": { "line": 24, @@ -318,7 +318,7 @@ "value": { "type": "ObjectExpression", "start": 298, - "end": 470, + "end": 471, "loc": { "start": { "line": 24, @@ -333,7 +333,7 @@ { "type": "ObjectProperty", "start": 304, - "end": 393, + "end": 394, "loc": { "start": { "line": 25, @@ -341,7 +341,7 @@ }, "end": { "line": 25, - "column": 93 + "column": 94 } }, "method": false, @@ -367,7 +367,7 @@ "value": { "type": "StringLiteral", "start": 314, - "end": 393, + "end": 394, "loc": { "start": { "line": 25, @@ -375,20 +375,20 @@ }, "end": { "line": 25, - "column": 93 + "column": 94 } }, "extra": { - "rawValue": "https://unpkg.com/live2d-widget-model-shizuku@1.0.0/assets/shizuku.model.json", - "raw": "'https://unpkg.com/live2d-widget-model-shizuku@1.0.0/assets/shizuku.model.json'" + "rawValue": "https://unpkg.com/live2d-widget-model-shizuku@latest/assets/shizuku.model.json", + "raw": "'https://unpkg.com/live2d-widget-model-shizuku@latest/assets/shizuku.model.json'" }, - "value": "https://unpkg.com/live2d-widget-model-shizuku@1.0.0/assets/shizuku.model.json" + "value": "https://unpkg.com/live2d-widget-model-shizuku@latest/assets/shizuku.model.json" } }, { "type": "ObjectProperty", - "start": 399, - "end": 407, + "start": 400, + "end": 408, "loc": { "start": { "line": 26, @@ -404,8 +404,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 399, - "end": 404, + "start": 400, + "end": 405, "loc": { "start": { "line": 26, @@ -421,8 +421,8 @@ }, "value": { "type": "NumericLiteral", - "start": 406, - "end": 407, + "start": 407, + "end": 408, "loc": { "start": { "line": 26, @@ -442,8 +442,8 @@ }, { "type": "ObjectProperty", - "start": 413, - "end": 426, + "start": 414, + "end": 427, "loc": { "start": { "line": 27, @@ -459,8 +459,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 413, - "end": 421, + "start": 414, + "end": 422, "loc": { "start": { "line": 27, @@ -476,8 +476,8 @@ }, "value": { "type": "NumericLiteral", - "start": 423, - "end": 426, + "start": 424, + "end": 427, "loc": { "start": { "line": 27, @@ -497,8 +497,8 @@ }, { "type": "ObjectProperty", - "start": 432, - "end": 447, + "start": 433, + "end": 448, "loc": { "start": { "line": 28, @@ -514,8 +514,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 432, - "end": 440, + "start": 433, + "end": 441, "loc": { "start": { "line": 28, @@ -531,8 +531,8 @@ }, "value": { "type": "NumericLiteral", - "start": 442, - "end": 447, + "start": 443, + "end": 448, "loc": { "start": { "line": 28, @@ -552,8 +552,8 @@ }, { "type": "ObjectProperty", - "start": 453, - "end": 465, + "start": 454, + "end": 466, "loc": { "start": { "line": 29, @@ -569,8 +569,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 453, - "end": 461, + "start": 454, + "end": 462, "loc": { "start": { "line": 29, @@ -586,8 +586,8 @@ }, "value": { "type": "ArrayExpression", - "start": 463, - "end": 465, + "start": 464, + "end": 466, "loc": { "start": { "line": 29, @@ -606,8 +606,8 @@ }, { "type": "ObjectProperty", - "start": 474, - "end": 598, + "start": 475, + "end": 599, "loc": { "start": { "line": 31, @@ -623,8 +623,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 474, - "end": 481, + "start": 475, + "end": 482, "loc": { "start": { "line": 31, @@ -640,8 +640,8 @@ }, "value": { "type": "ObjectExpression", - "start": 483, - "end": 598, + "start": 484, + "end": 599, "loc": { "start": { "line": 31, @@ -655,8 +655,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 489, - "end": 503, + "start": 490, + "end": 504, "loc": { "start": { "line": 32, @@ -672,8 +672,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 489, - "end": 500, + "start": 490, + "end": 501, "loc": { "start": { "line": 32, @@ -689,8 +689,8 @@ }, "value": { "type": "NumericLiteral", - "start": 502, - "end": 503, + "start": 503, + "end": 504, "loc": { "start": { "line": 32, @@ -710,8 +710,8 @@ }, { "type": "ObjectProperty", - "start": 509, - "end": 519, + "start": 510, + "end": 520, "loc": { "start": { "line": 33, @@ -727,8 +727,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 509, - "end": 514, + "start": 510, + "end": 515, "loc": { "start": { "line": 33, @@ -744,8 +744,8 @@ }, "value": { "type": "NumericLiteral", - "start": 516, - "end": 519, + "start": 517, + "end": 520, "loc": { "start": { "line": 33, @@ -765,8 +765,8 @@ }, { "type": "ObjectProperty", - "start": 525, - "end": 536, + "start": 526, + "end": 537, "loc": { "start": { "line": 34, @@ -782,8 +782,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 525, - "end": 531, + "start": 526, + "end": 532, "loc": { "start": { "line": 34, @@ -799,8 +799,8 @@ }, "value": { "type": "NumericLiteral", - "start": 533, - "end": 536, + "start": 534, + "end": 537, "loc": { "start": { "line": 34, @@ -820,8 +820,8 @@ }, { "type": "ObjectProperty", - "start": 542, - "end": 559, + "start": 543, + "end": 560, "loc": { "start": { "line": 35, @@ -837,8 +837,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 542, - "end": 550, + "start": 543, + "end": 551, "loc": { "start": { "line": 35, @@ -854,8 +854,8 @@ }, "value": { "type": "StringLiteral", - "start": 552, - "end": 559, + "start": 553, + "end": 560, "loc": { "start": { "line": 35, @@ -875,8 +875,8 @@ }, { "type": "ObjectProperty", - "start": 565, - "end": 575, + "start": 566, + "end": 576, "loc": { "start": { "line": 36, @@ -892,8 +892,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 565, - "end": 572, + "start": 566, + "end": 573, "loc": { "start": { "line": 36, @@ -909,8 +909,8 @@ }, "value": { "type": "NumericLiteral", - "start": 574, - "end": 575, + "start": 575, + "end": 576, "loc": { "start": { "line": 36, @@ -930,8 +930,8 @@ }, { "type": "ObjectProperty", - "start": 581, - "end": 593, + "start": 582, + "end": 594, "loc": { "start": { "line": 37, @@ -947,8 +947,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 581, - "end": 588, + "start": 582, + "end": 589, "loc": { "start": { "line": 37, @@ -964,8 +964,8 @@ }, "value": { "type": "UnaryExpression", - "start": 590, - "end": 593, + "start": 591, + "end": 594, "loc": { "start": { "line": 37, @@ -980,8 +980,8 @@ "prefix": true, "argument": { "type": "NumericLiteral", - "start": 591, - "end": 593, + "start": 592, + "end": 594, "loc": { "start": { "line": 37, @@ -1008,8 +1008,8 @@ }, { "type": "ObjectProperty", - "start": 602, - "end": 665, + "start": 603, + "end": 666, "loc": { "start": { "line": 39, @@ -1025,8 +1025,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 602, - "end": 608, + "start": 603, + "end": 609, "loc": { "start": { "line": 39, @@ -1042,8 +1042,8 @@ }, "value": { "type": "ObjectExpression", - "start": 610, - "end": 665, + "start": 611, + "end": 666, "loc": { "start": { "line": 39, @@ -1057,8 +1057,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 616, - "end": 626, + "start": 617, + "end": 627, "loc": { "start": { "line": 40, @@ -1074,8 +1074,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 616, - "end": 620, + "start": 617, + "end": 621, "loc": { "start": { "line": 40, @@ -1091,8 +1091,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 622, - "end": 626, + "start": 623, + "end": 627, "loc": { "start": { "line": 40, @@ -1108,8 +1108,8 @@ }, { "type": "ObjectProperty", - "start": 632, - "end": 642, + "start": 633, + "end": 643, "loc": { "start": { "line": 41, @@ -1125,8 +1125,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 632, - "end": 637, + "start": 633, + "end": 638, "loc": { "start": { "line": 41, @@ -1142,8 +1142,8 @@ }, "value": { "type": "NumericLiteral", - "start": 639, - "end": 642, + "start": 640, + "end": 643, "loc": { "start": { "line": 41, @@ -1163,8 +1163,8 @@ }, { "type": "ObjectProperty", - "start": 648, - "end": 660, + "start": 649, + "end": 661, "loc": { "start": { "line": 42, @@ -1180,8 +1180,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 648, - "end": 654, + "start": 649, + "end": 655, "loc": { "start": { "line": 42, @@ -1197,8 +1197,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 656, - "end": 660, + "start": 657, + "end": 661, "loc": { "start": { "line": 42, @@ -1217,8 +1217,8 @@ }, { "type": "ObjectProperty", - "start": 669, - "end": 734, + "start": 670, + "end": 735, "loc": { "start": { "line": 44, @@ -1234,8 +1234,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 669, - "end": 673, + "start": 670, + "end": 674, "loc": { "start": { "line": 44, @@ -1251,8 +1251,8 @@ }, "value": { "type": "ObjectExpression", - "start": 675, - "end": 734, + "start": 676, + "end": 735, "loc": { "start": { "line": 44, @@ -1266,8 +1266,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 681, - "end": 703, + "start": 682, + "end": 704, "loc": { "start": { "line": 45, @@ -1283,8 +1283,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 681, - "end": 687, + "start": 682, + "end": 688, "loc": { "start": { "line": 45, @@ -1300,8 +1300,8 @@ }, "value": { "type": "StringLiteral", - "start": 689, - "end": 703, + "start": 690, + "end": 704, "loc": { "start": { "line": 45, @@ -1321,8 +1321,8 @@ }, { "type": "ObjectProperty", - "start": 709, - "end": 729, + "start": 710, + "end": 730, "loc": { "start": { "line": 46, @@ -1338,8 +1338,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 709, - "end": 712, + "start": 710, + "end": 713, "loc": { "start": { "line": 46, @@ -1355,8 +1355,8 @@ }, "value": { "type": "StringLiteral", - "start": 714, - "end": 729, + "start": 715, + "end": 730, "loc": { "start": { "line": 46, @@ -1379,8 +1379,8 @@ }, { "type": "ObjectProperty", - "start": 738, - "end": 859, + "start": 739, + "end": 860, "loc": { "start": { "line": 48, @@ -1396,8 +1396,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 738, - "end": 743, + "start": 739, + "end": 744, "loc": { "start": { "line": 48, @@ -1413,8 +1413,8 @@ }, "value": { "type": "ObjectExpression", - "start": 745, - "end": 859, + "start": 746, + "end": 860, "loc": { "start": { "line": 48, @@ -1428,8 +1428,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 751, - "end": 770, + "start": 752, + "end": 771, "loc": { "start": { "line": 49, @@ -1445,8 +1445,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 751, - "end": 765, + "start": 752, + "end": 766, "loc": { "start": { "line": 49, @@ -1462,8 +1462,8 @@ }, "value": { "type": "NumericLiteral", - "start": 767, - "end": 770, + "start": 768, + "end": 771, "loc": { "start": { "line": 49, @@ -1483,8 +1483,8 @@ }, { "type": "ObjectProperty", - "start": 776, - "end": 795, + "start": 777, + "end": 796, "loc": { "start": { "line": 50, @@ -1500,8 +1500,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 776, - "end": 790, + "start": 777, + "end": 791, "loc": { "start": { "line": 50, @@ -1517,8 +1517,8 @@ }, "value": { "type": "NumericLiteral", - "start": 792, - "end": 795, + "start": 793, + "end": 796, "loc": { "start": { "line": 50, @@ -1538,8 +1538,8 @@ }, { "type": "ObjectProperty", - "start": 801, - "end": 854, + "start": 802, + "end": 855, "loc": { "start": { "line": 51, @@ -1555,8 +1555,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 801, - "end": 807, + "start": 802, + "end": 808, "loc": { "start": { "line": 51, @@ -1572,8 +1572,8 @@ }, "value": { "type": "ArrowFunctionExpression", - "start": 809, - "end": 854, + "start": 810, + "end": 855, "loc": { "start": { "line": 51, @@ -1591,8 +1591,8 @@ "params": [ { "type": "Identifier", - "start": 810, - "end": 811, + "start": 811, + "end": 812, "loc": { "start": { "line": 51, @@ -1609,8 +1609,8 @@ ], "body": { "type": "BlockStatement", - "start": 816, - "end": 854, + "start": 817, + "end": 855, "loc": { "start": { "line": 51, @@ -1624,8 +1624,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 817, - "end": 853, + "start": 818, + "end": 854, "loc": { "start": { "line": 51, @@ -1638,8 +1638,8 @@ }, "expression": { "type": "CallExpression", - "start": 817, - "end": 852, + "start": 818, + "end": 853, "loc": { "start": { "line": 51, @@ -1652,8 +1652,8 @@ }, "callee": { "type": "MemberExpression", - "start": 817, - "end": 828, + "start": 818, + "end": 829, "loc": { "start": { "line": 51, @@ -1666,8 +1666,8 @@ }, "object": { "type": "Identifier", - "start": 817, - "end": 824, + "start": 818, + "end": 825, "loc": { "start": { "line": 51, @@ -1683,8 +1683,8 @@ }, "property": { "type": "Identifier", - "start": 825, - "end": 828, + "start": 826, + "end": 829, "loc": { "start": { "line": 51, @@ -1703,8 +1703,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 829, - "end": 851, + "start": 830, + "end": 852, "loc": { "start": { "line": 51, @@ -1734,8 +1734,8 @@ }, { "type": "ObjectProperty", - "start": 863, - "end": 1066, + "start": 864, + "end": 1067, "loc": { "start": { "line": 53, @@ -1751,8 +1751,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 863, - "end": 866, + "start": 864, + "end": 867, "loc": { "start": { "line": 53, @@ -1768,8 +1768,8 @@ }, "value": { "type": "ObjectExpression", - "start": 868, - "end": 1066, + "start": 869, + "end": 1067, "loc": { "start": { "line": 53, @@ -1783,8 +1783,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 874, - "end": 884, + "start": 875, + "end": 885, "loc": { "start": { "line": 54, @@ -1800,8 +1800,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 874, - "end": 877, + "start": 875, + "end": 878, "loc": { "start": { "line": 54, @@ -1817,8 +1817,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 879, - "end": 884, + "start": 880, + "end": 885, "loc": { "start": { "line": 54, @@ -1834,8 +1834,8 @@ }, { "type": "ObjectProperty", - "start": 890, - "end": 953, + "start": 891, + "end": 954, "loc": { "start": { "line": 55, @@ -1851,8 +1851,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 890, - "end": 896, + "start": 891, + "end": 897, "loc": { "start": { "line": 55, @@ -1868,8 +1868,8 @@ }, "value": { "type": "ConditionalExpression", - "start": 899, - "end": 952, + "start": 900, + "end": 953, "loc": { "start": { "line": 55, @@ -1882,8 +1882,8 @@ }, "test": { "type": "BinaryExpression", - "start": 899, - "end": 937, + "start": 900, + "end": 938, "loc": { "start": { "line": 55, @@ -1896,8 +1896,8 @@ }, "left": { "type": "MemberExpression", - "start": 899, - "end": 919, + "start": 900, + "end": 920, "loc": { "start": { "line": 55, @@ -1910,8 +1910,8 @@ }, "object": { "type": "MemberExpression", - "start": 899, - "end": 910, + "start": 900, + "end": 911, "loc": { "start": { "line": 55, @@ -1924,8 +1924,8 @@ }, "object": { "type": "Identifier", - "start": 899, - "end": 906, + "start": 900, + "end": 907, "loc": { "start": { "line": 55, @@ -1941,8 +1941,8 @@ }, "property": { "type": "Identifier", - "start": 907, - "end": 910, + "start": 908, + "end": 911, "loc": { "start": { "line": 55, @@ -1960,8 +1960,8 @@ }, "property": { "type": "Identifier", - "start": 911, - "end": 919, + "start": 912, + "end": 920, "loc": { "start": { "line": 55, @@ -1980,8 +1980,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 924, - "end": 937, + "start": 925, + "end": 938, "loc": { "start": { "line": 55, @@ -2001,8 +2001,8 @@ }, "consequent": { "type": "BooleanLiteral", - "start": 940, - "end": 944, + "start": 941, + "end": 945, "loc": { "start": { "line": 55, @@ -2017,8 +2017,8 @@ }, "alternate": { "type": "BooleanLiteral", - "start": 947, - "end": 952, + "start": 948, + "end": 953, "loc": { "start": { "line": 55, @@ -2033,14 +2033,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 898 + "parenStart": 899 } } }, { "type": "ObjectProperty", - "start": 959, - "end": 974, + "start": 960, + "end": 975, "loc": { "start": { "line": 56, @@ -2056,8 +2056,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 959, - "end": 967, + "start": 960, + "end": 968, "loc": { "start": { "line": 56, @@ -2073,8 +2073,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 969, - "end": 974, + "start": 970, + "end": 975, "loc": { "start": { "line": 56, @@ -2090,8 +2090,8 @@ }, { "type": "ObjectProperty", - "start": 980, - "end": 1061, + "start": 981, + "end": 1062, "loc": { "start": { "line": 57, @@ -2107,8 +2107,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 980, - "end": 989, + "start": 981, + "end": 990, "loc": { "start": { "line": 57, @@ -2124,8 +2124,8 @@ }, "value": { "type": "ArrowFunctionExpression", - "start": 991, - "end": 1061, + "start": 992, + "end": 1062, "loc": { "start": { "line": 57, @@ -2143,8 +2143,8 @@ "params": [ { "type": "Identifier", - "start": 992, - "end": 993, + "start": 993, + "end": 994, "loc": { "start": { "line": 57, @@ -2160,8 +2160,8 @@ }, { "type": "Identifier", - "start": 995, - "end": 996, + "start": 996, + "end": 997, "loc": { "start": { "line": 57, @@ -2177,8 +2177,8 @@ }, { "type": "Identifier", - "start": 998, - "end": 1000, + "start": 999, + "end": 1001, "loc": { "start": { "line": 57, @@ -2194,8 +2194,8 @@ }, { "type": "Identifier", - "start": 1002, - "end": 1004, + "start": 1003, + "end": 1005, "loc": { "start": { "line": 57, @@ -2212,8 +2212,8 @@ ], "body": { "type": "BlockStatement", - "start": 1009, - "end": 1061, + "start": 1010, + "end": 1062, "loc": { "start": { "line": 57, @@ -2227,8 +2227,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1010, - "end": 1060, + "start": 1011, + "end": 1061, "loc": { "start": { "line": 57, @@ -2241,8 +2241,8 @@ }, "expression": { "type": "CallExpression", - "start": 1010, - "end": 1059, + "start": 1011, + "end": 1060, "loc": { "start": { "line": 57, @@ -2255,8 +2255,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1010, - "end": 1021, + "start": 1011, + "end": 1022, "loc": { "start": { "line": 57, @@ -2269,8 +2269,8 @@ }, "object": { "type": "Identifier", - "start": 1010, - "end": 1017, + "start": 1011, + "end": 1018, "loc": { "start": { "line": 57, @@ -2286,8 +2286,8 @@ }, "property": { "type": "Identifier", - "start": 1018, - "end": 1021, + "start": 1019, + "end": 1022, "loc": { "start": { "line": 57, @@ -2306,8 +2306,8 @@ "arguments": [ { "type": "TemplateLiteral", - "start": 1022, - "end": 1058, + "start": 1023, + "end": 1059, "loc": { "start": { "line": 57, @@ -2321,8 +2321,8 @@ "expressions": [ { "type": "Identifier", - "start": 1036, - "end": 1037, + "start": 1037, + "end": 1038, "loc": { "start": { "line": 57, @@ -2338,8 +2338,8 @@ }, { "type": "Identifier", - "start": 1041, - "end": 1042, + "start": 1042, + "end": 1043, "loc": { "start": { "line": 57, @@ -2355,8 +2355,8 @@ }, { "type": "Identifier", - "start": 1047, - "end": 1049, + "start": 1048, + "end": 1050, "loc": { "start": { "line": 57, @@ -2372,8 +2372,8 @@ }, { "type": "Identifier", - "start": 1054, - "end": 1056, + "start": 1055, + "end": 1057, "loc": { "start": { "line": 57, @@ -2391,8 +2391,8 @@ "quasis": [ { "type": "TemplateElement", - "start": 1023, - "end": 1034, + "start": 1024, + "end": 1035, "loc": { "start": { "line": 57, @@ -2411,8 +2411,8 @@ }, { "type": "TemplateElement", - "start": 1038, - "end": 1039, + "start": 1039, + "end": 1040, "loc": { "start": { "line": 57, @@ -2431,8 +2431,8 @@ }, { "type": "TemplateElement", - "start": 1043, - "end": 1045, + "start": 1044, + "end": 1046, "loc": { "start": { "line": 57, @@ -2451,8 +2451,8 @@ }, { "type": "TemplateElement", - "start": 1050, - "end": 1052, + "start": 1051, + "end": 1053, "loc": { "start": { "line": 57, @@ -2471,8 +2471,8 @@ }, { "type": "TemplateElement", - "start": 1057, - "end": 1057, + "start": 1058, + "end": 1058, "loc": { "start": { "line": 57, @@ -2505,8 +2505,8 @@ { "type": "CommentLine", "value": " _: true,", - "start": 1070, - "end": 1081, + "start": 1071, + "end": 1082, "loc": { "start": { "line": 59, @@ -2521,8 +2521,8 @@ { "type": "CommentBlock", "value": "*\n * Apply users function, make the full settings\n * @param {Object} [userConfig] User's custom config\n * @return {null}\n ", - "start": 1085, - "end": 1212, + "start": 1086, + "end": 1213, "loc": { "start": { "line": 62, @@ -2563,8 +2563,8 @@ }, { "type": "Identifier", - "start": 1214, - "end": 1573, + "start": 1215, + "end": 1590, "loc": { "start": { "line": 68, @@ -2577,8 +2577,8 @@ }, "id": { "type": "Identifier", - "start": 1223, - "end": 1236, + "start": 1224, + "end": 1237, "loc": { "start": { "line": 68, @@ -2598,8 +2598,8 @@ "params": [ { "type": "Identifier", - "start": 1237, - "end": 1247, + "start": 1238, + "end": 1248, "loc": { "start": { "line": 68, @@ -2616,8 +2616,8 @@ ], "body": { "type": "BlockStatement", - "start": 1248, - "end": 1573, + "start": 1249, + "end": 1590, "loc": { "start": { "line": 68, @@ -2631,8 +2631,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1473, - "end": 1528, + "start": 1474, + "end": 1529, "loc": { "start": { "line": 78, @@ -2645,8 +2645,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 1473, - "end": 1527, + "start": 1474, + "end": 1528, "loc": { "start": { "line": 78, @@ -2660,8 +2660,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 1473, - "end": 1483, + "start": 1474, + "end": 1484, "loc": { "start": { "line": 78, @@ -2678,8 +2678,8 @@ }, "right": { "type": "CallExpression", - "start": 1486, - "end": 1527, + "start": 1487, + "end": 1528, "loc": { "start": { "line": 78, @@ -2692,8 +2692,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1486, - "end": 1500, + "start": 1487, + "end": 1501, "loc": { "start": { "line": 78, @@ -2706,8 +2706,8 @@ }, "object": { "type": "Identifier", - "start": 1486, - "end": 1487, + "start": 1487, + "end": 1488, "loc": { "start": { "line": 78, @@ -2723,8 +2723,8 @@ }, "property": { "type": "Identifier", - "start": 1488, - "end": 1500, + "start": 1489, + "end": 1501, "loc": { "start": { "line": 78, @@ -2743,8 +2743,8 @@ "arguments": [ { "type": "Identifier", - "start": 1501, - "end": 1511, + "start": 1502, + "end": 1512, "loc": { "start": { "line": 78, @@ -2760,8 +2760,8 @@ }, { "type": "Identifier", - "start": 1513, - "end": 1526, + "start": 1514, + "end": 1527, "loc": { "start": { "line": 78, @@ -2783,8 +2783,8 @@ { "type": "CommentLine", "value": " if (_.has(userConfig, '_')){", - "start": 1253, - "end": 1284, + "start": 1254, + "end": 1285, "loc": { "start": { "line": 70, @@ -2799,8 +2799,8 @@ { "type": "CommentLine", "value": " import(/* webpackMode: \"lazy\" */ './configValidater').then(f => {", - "start": 1287, - "end": 1357, + "start": 1288, + "end": 1358, "loc": { "start": { "line": 71, @@ -2815,8 +2815,8 @@ { "type": "CommentLine", "value": " f.configValidater(userConfig);", - "start": 1360, - "end": 1397, + "start": 1361, + "end": 1398, "loc": { "start": { "line": 72, @@ -2831,8 +2831,8 @@ { "type": "CommentLine", "value": " }).catch(err => {", - "start": 1400, - "end": 1422, + "start": 1401, + "end": 1423, "loc": { "start": { "line": 73, @@ -2847,8 +2847,8 @@ { "type": "CommentLine", "value": " console.error(err);", - "start": 1425, - "end": 1451, + "start": 1426, + "end": 1452, "loc": { "start": { "line": 74, @@ -2863,8 +2863,8 @@ { "type": "CommentLine", "value": " });", - "start": 1454, - "end": 1462, + "start": 1455, + "end": 1463, "loc": { "start": { "line": 75, @@ -2879,8 +2879,8 @@ { "type": "CommentLine", "value": " }", - "start": 1465, - "end": 1469, + "start": 1466, + "end": 1470, "loc": { "start": { "line": 76, @@ -2892,40 +2892,13 @@ } } } - ] - }, - { - "type": "ExpressionStatement", - "start": 1531, - "end": 1570, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 1531, - "end": 1569, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1531, - "end": 1542, + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " console.log('Live2Dwidget: currConfig', currConfig);", + "start": 1532, + "end": 1587, "loc": { "start": { "line": 79, @@ -2933,85 +2906,11 @@ }, "end": { "line": 79, - "column": 13 + "column": 57 } - }, - "object": { - "type": "Identifier", - "start": 1531, - "end": 1538, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 9 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1539, - "end": 1542, - "loc": { - "start": { - "line": 79, - "column": 10 - }, - "end": { - "line": 79, - "column": 13 - }, - "identifierName": "log" - }, - "name": "log" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1543, - "end": 1556, - "loc": { - "start": { - "line": 79, - "column": 14 - }, - "end": { - "line": 79, - "column": 27 - } - }, - "extra": { - "rawValue": "currConfig:", - "raw": "'currConfig:'" - }, - "value": "currConfig:" - }, - { - "type": "Identifier", - "start": 1558, - "end": 1568, - "loc": { - "start": { - "line": 79, - "column": 29 - }, - "end": { - "line": 79, - "column": 39 - }, - "identifierName": "currConfig" - }, - "name": "currConfig" } - ] - } + } + ] } ], "directives": [] @@ -3022,8 +2921,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 1575, - "end": 1626, + "start": 1592, + "end": 1643, "loc": { "start": { "line": 83, @@ -3038,8 +2937,8 @@ "specifiers": [ { "type": "ExportSpecifier", - "start": 1586, - "end": 1599, + "start": 1603, + "end": 1616, "loc": { "start": { "line": 84, @@ -3052,8 +2951,8 @@ }, "local": { "type": "Identifier", - "start": 1586, - "end": 1599, + "start": 1603, + "end": 1616, "loc": { "start": { "line": 84, @@ -3069,8 +2968,8 @@ }, "exported": { "type": "Identifier", - "start": 1586, - "end": 1599, + "start": 1603, + "end": 1616, "loc": { "start": { "line": 84, @@ -3087,8 +2986,8 @@ }, { "type": "ExportSpecifier", - "start": 1603, - "end": 1623, + "start": 1620, + "end": 1640, "loc": { "start": { "line": 85, @@ -3101,8 +3000,8 @@ }, "local": { "type": "Identifier", - "start": 1603, - "end": 1613, + "start": 1620, + "end": 1630, "loc": { "start": { "line": 85, @@ -3118,8 +3017,8 @@ }, "exported": { "type": "Identifier", - "start": 1617, - "end": 1623, + "start": 1634, + "end": 1640, "loc": { "start": { "line": 85, @@ -3139,8 +3038,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 1575, - "end": 1626, + "start": 1592, + "end": 1643, "loc": { "start": { "line": 83, @@ -3153,8 +3052,8 @@ }, "declaration": { "type": "FunctionDeclaration", - "start": 1214, - "end": 1573, + "start": 1215, + "end": 1590, "loc": { "start": { "line": 68, @@ -3167,8 +3066,8 @@ }, "id": { "type": "Identifier", - "start": 1223, - "end": 1236, + "start": 1224, + "end": 1237, "loc": { "start": { "line": 68, @@ -3188,8 +3087,8 @@ "params": [ { "type": "Identifier", - "start": 1237, - "end": 1247, + "start": 1238, + "end": 1248, "loc": { "start": { "line": 68, @@ -3206,8 +3105,8 @@ ], "body": { "type": "BlockStatement", - "start": 1248, - "end": 1573, + "start": 1249, + "end": 1590, "loc": { "start": { "line": 68, @@ -3221,8 +3120,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1473, - "end": 1528, + "start": 1474, + "end": 1529, "loc": { "start": { "line": 78, @@ -3235,8 +3134,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 1473, - "end": 1527, + "start": 1474, + "end": 1528, "loc": { "start": { "line": 78, @@ -3250,8 +3149,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 1473, - "end": 1483, + "start": 1474, + "end": 1484, "loc": { "start": { "line": 78, @@ -3268,8 +3167,8 @@ }, "right": { "type": "CallExpression", - "start": 1486, - "end": 1527, + "start": 1487, + "end": 1528, "loc": { "start": { "line": 78, @@ -3282,8 +3181,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1486, - "end": 1500, + "start": 1487, + "end": 1501, "loc": { "start": { "line": 78, @@ -3296,8 +3195,8 @@ }, "object": { "type": "Identifier", - "start": 1486, - "end": 1487, + "start": 1487, + "end": 1488, "loc": { "start": { "line": 78, @@ -3313,8 +3212,8 @@ }, "property": { "type": "Identifier", - "start": 1488, - "end": 1500, + "start": 1489, + "end": 1501, "loc": { "start": { "line": 78, @@ -3333,8 +3232,8 @@ "arguments": [ { "type": "Identifier", - "start": 1501, - "end": 1511, + "start": 1502, + "end": 1512, "loc": { "start": { "line": 78, @@ -3350,8 +3249,8 @@ }, { "type": "Identifier", - "start": 1513, - "end": 1526, + "start": 1514, + "end": 1527, "loc": { "start": { "line": 78, @@ -3373,8 +3272,8 @@ { "type": "CommentLine", "value": " if (_.has(userConfig, '_')){", - "start": 1253, - "end": 1284, + "start": 1254, + "end": 1285, "loc": { "start": { "line": 70, @@ -3389,8 +3288,8 @@ { "type": "CommentLine", "value": " import(/* webpackMode: \"lazy\" */ './configValidater').then(f => {", - "start": 1287, - "end": 1357, + "start": 1288, + "end": 1358, "loc": { "start": { "line": 71, @@ -3405,8 +3304,8 @@ { "type": "CommentLine", "value": " f.configValidater(userConfig);", - "start": 1360, - "end": 1397, + "start": 1361, + "end": 1398, "loc": { "start": { "line": 72, @@ -3421,8 +3320,8 @@ { "type": "CommentLine", "value": " }).catch(err => {", - "start": 1400, - "end": 1422, + "start": 1401, + "end": 1423, "loc": { "start": { "line": 73, @@ -3437,8 +3336,8 @@ { "type": "CommentLine", "value": " console.error(err);", - "start": 1425, - "end": 1451, + "start": 1426, + "end": 1452, "loc": { "start": { "line": 74, @@ -3453,8 +3352,8 @@ { "type": "CommentLine", "value": " });", - "start": 1454, - "end": 1462, + "start": 1455, + "end": 1463, "loc": { "start": { "line": 75, @@ -3469,8 +3368,8 @@ { "type": "CommentLine", "value": " }", - "start": 1465, - "end": 1469, + "start": 1466, + "end": 1470, "loc": { "start": { "line": 76, @@ -3482,40 +3381,13 @@ } } } - ] - }, - { - "type": "ExpressionStatement", - "start": 1531, - "end": 1570, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 1531, - "end": 1569, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1531, - "end": 1542, + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " console.log('Live2Dwidget: currConfig', currConfig);", + "start": 1532, + "end": 1587, "loc": { "start": { "line": 79, @@ -3523,85 +3395,11 @@ }, "end": { "line": 79, - "column": 13 + "column": 57 } - }, - "object": { - "type": "Identifier", - "start": 1531, - "end": 1538, - "loc": { - "start": { - "line": 79, - "column": 2 - }, - "end": { - "line": 79, - "column": 9 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1539, - "end": 1542, - "loc": { - "start": { - "line": 79, - "column": 10 - }, - "end": { - "line": 79, - "column": 13 - }, - "identifierName": "log" - }, - "name": "log" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1543, - "end": 1556, - "loc": { - "start": { - "line": 79, - "column": 14 - }, - "end": { - "line": 79, - "column": 27 - } - }, - "extra": { - "rawValue": "currConfig:", - "raw": "'currConfig:'" - }, - "value": "currConfig:" - }, - { - "type": "Identifier", - "start": 1558, - "end": 1568, - "loc": { - "start": { - "line": 79, - "column": 29 - }, - "end": { - "line": 79, - "column": 39 - }, - "identifierName": "currConfig" - }, - "name": "currConfig" } - ] - } + } + ] } ], "directives": [] @@ -3755,8 +3553,8 @@ { "type": "CommentLine", "value": " _: true,", - "start": 1070, - "end": 1081, + "start": 1071, + "end": 1082, "loc": { "start": { "line": 59, @@ -3771,8 +3569,8 @@ { "type": "CommentBlock", "value": "*\n * Apply users function, make the full settings\n * @param {Object} [userConfig] User's custom config\n * @return {null}\n ", - "start": 1085, - "end": 1212, + "start": 1086, + "end": 1213, "loc": { "start": { "line": 62, @@ -3787,8 +3585,8 @@ { "type": "CommentLine", "value": " if (_.has(userConfig, '_')){", - "start": 1253, - "end": 1284, + "start": 1254, + "end": 1285, "loc": { "start": { "line": 70, @@ -3803,8 +3601,8 @@ { "type": "CommentLine", "value": " import(/* webpackMode: \"lazy\" */ './configValidater').then(f => {", - "start": 1287, - "end": 1357, + "start": 1288, + "end": 1358, "loc": { "start": { "line": 71, @@ -3819,8 +3617,8 @@ { "type": "CommentLine", "value": " f.configValidater(userConfig);", - "start": 1360, - "end": 1397, + "start": 1361, + "end": 1398, "loc": { "start": { "line": 72, @@ -3835,8 +3633,8 @@ { "type": "CommentLine", "value": " }).catch(err => {", - "start": 1400, - "end": 1422, + "start": 1401, + "end": 1423, "loc": { "start": { "line": 73, @@ -3851,8 +3649,8 @@ { "type": "CommentLine", "value": " console.error(err);", - "start": 1425, - "end": 1451, + "start": 1426, + "end": 1452, "loc": { "start": { "line": 74, @@ -3867,8 +3665,8 @@ { "type": "CommentLine", "value": " });", - "start": 1454, - "end": 1462, + "start": 1455, + "end": 1463, "loc": { "start": { "line": 75, @@ -3883,8 +3681,8 @@ { "type": "CommentLine", "value": " }", - "start": 1465, - "end": 1469, + "start": 1466, + "end": 1470, "loc": { "start": { "line": 76, @@ -3895,6 +3693,22 @@ "column": 6 } } + }, + { + "type": "CommentLine", + "value": " console.log('Live2Dwidget: currConfig', currConfig);", + "start": 1532, + "end": 1587, + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 79, + "column": 57 + } + } } ], "tokens": [ @@ -4553,9 +4367,9 @@ "binop": null, "updateContext": null }, - "value": "https://unpkg.com/live2d-widget-model-shizuku@1.0.0/assets/shizuku.model.json", + "value": "https://unpkg.com/live2d-widget-model-shizuku@latest/assets/shizuku.model.json", "start": 314, - "end": 393, + "end": 394, "loc": { "start": { "line": 25, @@ -4563,7 +4377,7 @@ }, "end": { "line": 25, - "column": 93 + "column": 94 } } }, @@ -4580,16 +4394,16 @@ "binop": null, "updateContext": null }, - "start": 393, - "end": 394, + "start": 394, + "end": 395, "loc": { "start": { "line": 25, - "column": 93 + "column": 94 }, "end": { "line": 25, - "column": 94 + "column": 95 } } }, @@ -4606,8 +4420,8 @@ "binop": null }, "value": "scale", - "start": 399, - "end": 404, + "start": 400, + "end": 405, "loc": { "start": { "line": 26, @@ -4632,8 +4446,8 @@ "binop": null, "updateContext": null }, - "start": 404, - "end": 405, + "start": 405, + "end": 406, "loc": { "start": { "line": 26, @@ -4659,8 +4473,8 @@ "updateContext": null }, "value": 1, - "start": 406, - "end": 407, + "start": 407, + "end": 408, "loc": { "start": { "line": 26, @@ -4685,8 +4499,8 @@ "binop": null, "updateContext": null }, - "start": 407, - "end": 408, + "start": 408, + "end": 409, "loc": { "start": { "line": 26, @@ -4711,8 +4525,8 @@ "binop": null }, "value": "hHeadPos", - "start": 413, - "end": 421, + "start": 414, + "end": 422, "loc": { "start": { "line": 27, @@ -4737,8 +4551,8 @@ "binop": null, "updateContext": null }, - "start": 421, - "end": 422, + "start": 422, + "end": 423, "loc": { "start": { "line": 27, @@ -4764,8 +4578,8 @@ "updateContext": null }, "value": 0.5, - "start": 423, - "end": 426, + "start": 424, + "end": 427, "loc": { "start": { "line": 27, @@ -4790,8 +4604,8 @@ "binop": null, "updateContext": null }, - "start": 426, - "end": 427, + "start": 427, + "end": 428, "loc": { "start": { "line": 27, @@ -4816,8 +4630,8 @@ "binop": null }, "value": "vHeadPos", - "start": 432, - "end": 440, + "start": 433, + "end": 441, "loc": { "start": { "line": 28, @@ -4842,8 +4656,8 @@ "binop": null, "updateContext": null }, - "start": 440, - "end": 441, + "start": 441, + "end": 442, "loc": { "start": { "line": 28, @@ -4869,8 +4683,8 @@ "updateContext": null }, "value": 0.618, - "start": 442, - "end": 447, + "start": 443, + "end": 448, "loc": { "start": { "line": 28, @@ -4895,8 +4709,8 @@ "binop": null, "updateContext": null }, - "start": 447, - "end": 448, + "start": 448, + "end": 449, "loc": { "start": { "line": 28, @@ -4921,8 +4735,8 @@ "binop": null }, "value": "myDefine", - "start": 453, - "end": 461, + "start": 454, + "end": 462, "loc": { "start": { "line": 29, @@ -4947,8 +4761,8 @@ "binop": null, "updateContext": null }, - "start": 461, - "end": 462, + "start": 462, + "end": 463, "loc": { "start": { "line": 29, @@ -4973,8 +4787,8 @@ "binop": null, "updateContext": null }, - "start": 463, - "end": 464, + "start": 464, + "end": 465, "loc": { "start": { "line": 29, @@ -4999,8 +4813,8 @@ "binop": null, "updateContext": null }, - "start": 464, - "end": 465, + "start": 465, + "end": 466, "loc": { "start": { "line": 29, @@ -5025,8 +4839,8 @@ "binop": null, "updateContext": null }, - "start": 465, - "end": 466, + "start": 466, + "end": 467, "loc": { "start": { "line": 29, @@ -5050,8 +4864,8 @@ "postfix": false, "binop": null }, - "start": 469, - "end": 470, + "start": 470, + "end": 471, "loc": { "start": { "line": 30, @@ -5076,8 +4890,8 @@ "binop": null, "updateContext": null }, - "start": 470, - "end": 471, + "start": 471, + "end": 472, "loc": { "start": { "line": 30, @@ -5102,8 +4916,8 @@ "binop": null }, "value": "display", - "start": 474, - "end": 481, + "start": 475, + "end": 482, "loc": { "start": { "line": 31, @@ -5128,8 +4942,8 @@ "binop": null, "updateContext": null }, - "start": 481, - "end": 482, + "start": 482, + "end": 483, "loc": { "start": { "line": 31, @@ -5153,8 +4967,8 @@ "postfix": false, "binop": null }, - "start": 483, - "end": 484, + "start": 484, + "end": 485, "loc": { "start": { "line": 31, @@ -5179,8 +4993,8 @@ "binop": null }, "value": "superSample", - "start": 489, - "end": 500, + "start": 490, + "end": 501, "loc": { "start": { "line": 32, @@ -5205,8 +5019,8 @@ "binop": null, "updateContext": null }, - "start": 500, - "end": 501, + "start": 501, + "end": 502, "loc": { "start": { "line": 32, @@ -5232,8 +5046,8 @@ "updateContext": null }, "value": 2, - "start": 502, - "end": 503, + "start": 503, + "end": 504, "loc": { "start": { "line": 32, @@ -5258,8 +5072,8 @@ "binop": null, "updateContext": null }, - "start": 503, - "end": 504, + "start": 504, + "end": 505, "loc": { "start": { "line": 32, @@ -5284,8 +5098,8 @@ "binop": null }, "value": "width", - "start": 509, - "end": 514, + "start": 510, + "end": 515, "loc": { "start": { "line": 33, @@ -5310,8 +5124,8 @@ "binop": null, "updateContext": null }, - "start": 514, - "end": 515, + "start": 515, + "end": 516, "loc": { "start": { "line": 33, @@ -5337,8 +5151,8 @@ "updateContext": null }, "value": 150, - "start": 516, - "end": 519, + "start": 517, + "end": 520, "loc": { "start": { "line": 33, @@ -5363,8 +5177,8 @@ "binop": null, "updateContext": null }, - "start": 519, - "end": 520, + "start": 520, + "end": 521, "loc": { "start": { "line": 33, @@ -5389,8 +5203,8 @@ "binop": null }, "value": "height", - "start": 525, - "end": 531, + "start": 526, + "end": 532, "loc": { "start": { "line": 34, @@ -5415,8 +5229,8 @@ "binop": null, "updateContext": null }, - "start": 531, - "end": 532, + "start": 532, + "end": 533, "loc": { "start": { "line": 34, @@ -5442,8 +5256,8 @@ "updateContext": null }, "value": 300, - "start": 533, - "end": 536, + "start": 534, + "end": 537, "loc": { "start": { "line": 34, @@ -5468,8 +5282,8 @@ "binop": null, "updateContext": null }, - "start": 536, - "end": 537, + "start": 537, + "end": 538, "loc": { "start": { "line": 34, @@ -5494,8 +5308,8 @@ "binop": null }, "value": "position", - "start": 542, - "end": 550, + "start": 543, + "end": 551, "loc": { "start": { "line": 35, @@ -5520,8 +5334,8 @@ "binop": null, "updateContext": null }, - "start": 550, - "end": 551, + "start": 551, + "end": 552, "loc": { "start": { "line": 35, @@ -5547,8 +5361,8 @@ "updateContext": null }, "value": "right", - "start": 552, - "end": 559, + "start": 553, + "end": 560, "loc": { "start": { "line": 35, @@ -5573,8 +5387,8 @@ "binop": null, "updateContext": null }, - "start": 559, - "end": 560, + "start": 560, + "end": 561, "loc": { "start": { "line": 35, @@ -5599,8 +5413,8 @@ "binop": null }, "value": "hOffset", - "start": 565, - "end": 572, + "start": 566, + "end": 573, "loc": { "start": { "line": 36, @@ -5625,8 +5439,8 @@ "binop": null, "updateContext": null }, - "start": 572, - "end": 573, + "start": 573, + "end": 574, "loc": { "start": { "line": 36, @@ -5652,8 +5466,8 @@ "updateContext": null }, "value": 0, - "start": 574, - "end": 575, + "start": 575, + "end": 576, "loc": { "start": { "line": 36, @@ -5678,8 +5492,8 @@ "binop": null, "updateContext": null }, - "start": 575, - "end": 576, + "start": 576, + "end": 577, "loc": { "start": { "line": 36, @@ -5704,8 +5518,8 @@ "binop": null }, "value": "vOffset", - "start": 581, - "end": 588, + "start": 582, + "end": 589, "loc": { "start": { "line": 37, @@ -5730,8 +5544,8 @@ "binop": null, "updateContext": null }, - "start": 588, - "end": 589, + "start": 589, + "end": 590, "loc": { "start": { "line": 37, @@ -5757,8 +5571,8 @@ "updateContext": null }, "value": "-", - "start": 590, - "end": 591, + "start": 591, + "end": 592, "loc": { "start": { "line": 37, @@ -5784,8 +5598,8 @@ "updateContext": null }, "value": 20, - "start": 591, - "end": 593, + "start": 592, + "end": 594, "loc": { "start": { "line": 37, @@ -5810,8 +5624,8 @@ "binop": null, "updateContext": null }, - "start": 593, - "end": 594, + "start": 594, + "end": 595, "loc": { "start": { "line": 37, @@ -5835,8 +5649,8 @@ "postfix": false, "binop": null }, - "start": 597, - "end": 598, + "start": 598, + "end": 599, "loc": { "start": { "line": 38, @@ -5861,8 +5675,8 @@ "binop": null, "updateContext": null }, - "start": 598, - "end": 599, + "start": 599, + "end": 600, "loc": { "start": { "line": 38, @@ -5887,8 +5701,8 @@ "binop": null }, "value": "mobile", - "start": 602, - "end": 608, + "start": 603, + "end": 609, "loc": { "start": { "line": 39, @@ -5913,8 +5727,8 @@ "binop": null, "updateContext": null }, - "start": 608, - "end": 609, + "start": 609, + "end": 610, "loc": { "start": { "line": 39, @@ -5938,8 +5752,8 @@ "postfix": false, "binop": null }, - "start": 610, - "end": 611, + "start": 611, + "end": 612, "loc": { "start": { "line": 39, @@ -5964,8 +5778,8 @@ "binop": null }, "value": "show", - "start": 616, - "end": 620, + "start": 617, + "end": 621, "loc": { "start": { "line": 40, @@ -5990,8 +5804,8 @@ "binop": null, "updateContext": null }, - "start": 620, - "end": 621, + "start": 621, + "end": 622, "loc": { "start": { "line": 40, @@ -6018,8 +5832,8 @@ "updateContext": null }, "value": "true", - "start": 622, - "end": 626, + "start": 623, + "end": 627, "loc": { "start": { "line": 40, @@ -6044,8 +5858,8 @@ "binop": null, "updateContext": null }, - "start": 626, - "end": 627, + "start": 627, + "end": 628, "loc": { "start": { "line": 40, @@ -6070,8 +5884,8 @@ "binop": null }, "value": "scale", - "start": 632, - "end": 637, + "start": 633, + "end": 638, "loc": { "start": { "line": 41, @@ -6096,8 +5910,8 @@ "binop": null, "updateContext": null }, - "start": 637, - "end": 638, + "start": 638, + "end": 639, "loc": { "start": { "line": 41, @@ -6123,8 +5937,8 @@ "updateContext": null }, "value": 0.5, - "start": 639, - "end": 642, + "start": 640, + "end": 643, "loc": { "start": { "line": 41, @@ -6149,8 +5963,8 @@ "binop": null, "updateContext": null }, - "start": 642, - "end": 643, + "start": 643, + "end": 644, "loc": { "start": { "line": 41, @@ -6175,8 +5989,8 @@ "binop": null }, "value": "motion", - "start": 648, - "end": 654, + "start": 649, + "end": 655, "loc": { "start": { "line": 42, @@ -6201,8 +6015,8 @@ "binop": null, "updateContext": null }, - "start": 654, - "end": 655, + "start": 655, + "end": 656, "loc": { "start": { "line": 42, @@ -6229,8 +6043,8 @@ "updateContext": null }, "value": "true", - "start": 656, - "end": 660, + "start": 657, + "end": 661, "loc": { "start": { "line": 42, @@ -6255,8 +6069,8 @@ "binop": null, "updateContext": null }, - "start": 660, - "end": 661, + "start": 661, + "end": 662, "loc": { "start": { "line": 42, @@ -6280,8 +6094,8 @@ "postfix": false, "binop": null }, - "start": 664, - "end": 665, + "start": 665, + "end": 666, "loc": { "start": { "line": 43, @@ -6306,8 +6120,8 @@ "binop": null, "updateContext": null }, - "start": 665, - "end": 666, + "start": 666, + "end": 667, "loc": { "start": { "line": 43, @@ -6332,8 +6146,8 @@ "binop": null }, "value": "name", - "start": 669, - "end": 673, + "start": 670, + "end": 674, "loc": { "start": { "line": 44, @@ -6358,8 +6172,8 @@ "binop": null, "updateContext": null }, - "start": 673, - "end": 674, + "start": 674, + "end": 675, "loc": { "start": { "line": 44, @@ -6383,8 +6197,8 @@ "postfix": false, "binop": null }, - "start": 675, - "end": 676, + "start": 676, + "end": 677, "loc": { "start": { "line": 44, @@ -6409,8 +6223,8 @@ "binop": null }, "value": "canvas", - "start": 681, - "end": 687, + "start": 682, + "end": 688, "loc": { "start": { "line": 45, @@ -6435,8 +6249,8 @@ "binop": null, "updateContext": null }, - "start": 687, - "end": 688, + "start": 688, + "end": 689, "loc": { "start": { "line": 45, @@ -6462,8 +6276,8 @@ "updateContext": null }, "value": "live2dcanvas", - "start": 689, - "end": 703, + "start": 690, + "end": 704, "loc": { "start": { "line": 45, @@ -6488,8 +6302,8 @@ "binop": null, "updateContext": null }, - "start": 703, - "end": 704, + "start": 704, + "end": 705, "loc": { "start": { "line": 45, @@ -6514,8 +6328,8 @@ "binop": null }, "value": "div", - "start": 709, - "end": 712, + "start": 710, + "end": 713, "loc": { "start": { "line": 46, @@ -6540,8 +6354,8 @@ "binop": null, "updateContext": null }, - "start": 712, - "end": 713, + "start": 713, + "end": 714, "loc": { "start": { "line": 46, @@ -6567,8 +6381,8 @@ "updateContext": null }, "value": "live2d-widget", - "start": 714, - "end": 729, + "start": 715, + "end": 730, "loc": { "start": { "line": 46, @@ -6593,8 +6407,8 @@ "binop": null, "updateContext": null }, - "start": 729, - "end": 730, + "start": 730, + "end": 731, "loc": { "start": { "line": 46, @@ -6618,8 +6432,8 @@ "postfix": false, "binop": null }, - "start": 733, - "end": 734, + "start": 734, + "end": 735, "loc": { "start": { "line": 47, @@ -6644,8 +6458,8 @@ "binop": null, "updateContext": null }, - "start": 734, - "end": 735, + "start": 735, + "end": 736, "loc": { "start": { "line": 47, @@ -6670,8 +6484,8 @@ "binop": null }, "value": "react", - "start": 738, - "end": 743, + "start": 739, + "end": 744, "loc": { "start": { "line": 48, @@ -6696,8 +6510,8 @@ "binop": null, "updateContext": null }, - "start": 743, - "end": 744, + "start": 744, + "end": 745, "loc": { "start": { "line": 48, @@ -6721,8 +6535,8 @@ "postfix": false, "binop": null }, - "start": 745, - "end": 746, + "start": 746, + "end": 747, "loc": { "start": { "line": 48, @@ -6747,8 +6561,8 @@ "binop": null }, "value": "opacityDefault", - "start": 751, - "end": 765, + "start": 752, + "end": 766, "loc": { "start": { "line": 49, @@ -6773,8 +6587,8 @@ "binop": null, "updateContext": null }, - "start": 765, - "end": 766, + "start": 766, + "end": 767, "loc": { "start": { "line": 49, @@ -6800,8 +6614,8 @@ "updateContext": null }, "value": 0.7, - "start": 767, - "end": 770, + "start": 768, + "end": 771, "loc": { "start": { "line": 49, @@ -6826,8 +6640,8 @@ "binop": null, "updateContext": null }, - "start": 770, - "end": 771, + "start": 771, + "end": 772, "loc": { "start": { "line": 49, @@ -6852,8 +6666,8 @@ "binop": null }, "value": "opacityOnHover", - "start": 776, - "end": 790, + "start": 777, + "end": 791, "loc": { "start": { "line": 50, @@ -6878,8 +6692,8 @@ "binop": null, "updateContext": null }, - "start": 790, - "end": 791, + "start": 791, + "end": 792, "loc": { "start": { "line": 50, @@ -6905,8 +6719,8 @@ "updateContext": null }, "value": 0.2, - "start": 792, - "end": 795, + "start": 793, + "end": 796, "loc": { "start": { "line": 50, @@ -6931,8 +6745,8 @@ "binop": null, "updateContext": null }, - "start": 795, - "end": 796, + "start": 796, + "end": 797, "loc": { "start": { "line": 50, @@ -6957,8 +6771,8 @@ "binop": null }, "value": "myFunc", - "start": 801, - "end": 807, + "start": 802, + "end": 808, "loc": { "start": { "line": 51, @@ -6983,8 +6797,8 @@ "binop": null, "updateContext": null }, - "start": 807, - "end": 808, + "start": 808, + "end": 809, "loc": { "start": { "line": 51, @@ -7008,8 +6822,8 @@ "postfix": false, "binop": null }, - "start": 809, - "end": 810, + "start": 810, + "end": 811, "loc": { "start": { "line": 51, @@ -7034,8 +6848,8 @@ "binop": null }, "value": "e", - "start": 810, - "end": 811, + "start": 811, + "end": 812, "loc": { "start": { "line": 51, @@ -7059,8 +6873,8 @@ "postfix": false, "binop": null }, - "start": 811, - "end": 812, + "start": 812, + "end": 813, "loc": { "start": { "line": 51, @@ -7085,8 +6899,8 @@ "binop": null, "updateContext": null }, - "start": 813, - "end": 815, + "start": 814, + "end": 816, "loc": { "start": { "line": 51, @@ -7110,8 +6924,8 @@ "postfix": false, "binop": null }, - "start": 816, - "end": 817, + "start": 817, + "end": 818, "loc": { "start": { "line": 51, @@ -7136,8 +6950,8 @@ "binop": null }, "value": "console", - "start": 817, - "end": 824, + "start": 818, + "end": 825, "loc": { "start": { "line": 51, @@ -7162,8 +6976,8 @@ "binop": null, "updateContext": null }, - "start": 824, - "end": 825, + "start": 825, + "end": 826, "loc": { "start": { "line": 51, @@ -7188,8 +7002,8 @@ "binop": null }, "value": "log", - "start": 825, - "end": 828, + "start": 826, + "end": 829, "loc": { "start": { "line": 51, @@ -7213,8 +7027,8 @@ "postfix": false, "binop": null }, - "start": 828, - "end": 829, + "start": 829, + "end": 830, "loc": { "start": { "line": 51, @@ -7240,8 +7054,8 @@ "updateContext": null }, "value": "(undefined) ┑( ̄Д  ̄)┍", - "start": 829, - "end": 851, + "start": 830, + "end": 852, "loc": { "start": { "line": 51, @@ -7265,8 +7079,8 @@ "postfix": false, "binop": null }, - "start": 851, - "end": 852, + "start": 852, + "end": 853, "loc": { "start": { "line": 51, @@ -7291,8 +7105,8 @@ "binop": null, "updateContext": null }, - "start": 852, - "end": 853, + "start": 853, + "end": 854, "loc": { "start": { "line": 51, @@ -7316,8 +7130,8 @@ "postfix": false, "binop": null }, - "start": 853, - "end": 854, + "start": 854, + "end": 855, "loc": { "start": { "line": 51, @@ -7342,8 +7156,8 @@ "binop": null, "updateContext": null }, - "start": 854, - "end": 855, + "start": 855, + "end": 856, "loc": { "start": { "line": 51, @@ -7367,8 +7181,8 @@ "postfix": false, "binop": null }, - "start": 858, - "end": 859, + "start": 859, + "end": 860, "loc": { "start": { "line": 52, @@ -7393,8 +7207,8 @@ "binop": null, "updateContext": null }, - "start": 859, - "end": 860, + "start": 860, + "end": 861, "loc": { "start": { "line": 52, @@ -7419,8 +7233,8 @@ "binop": null }, "value": "dev", - "start": 863, - "end": 866, + "start": 864, + "end": 867, "loc": { "start": { "line": 53, @@ -7445,8 +7259,8 @@ "binop": null, "updateContext": null }, - "start": 866, - "end": 867, + "start": 867, + "end": 868, "loc": { "start": { "line": 53, @@ -7470,8 +7284,8 @@ "postfix": false, "binop": null }, - "start": 868, - "end": 869, + "start": 869, + "end": 870, "loc": { "start": { "line": 53, @@ -7496,8 +7310,8 @@ "binop": null }, "value": "log", - "start": 874, - "end": 877, + "start": 875, + "end": 878, "loc": { "start": { "line": 54, @@ -7522,8 +7336,8 @@ "binop": null, "updateContext": null }, - "start": 877, - "end": 878, + "start": 878, + "end": 879, "loc": { "start": { "line": 54, @@ -7550,8 +7364,8 @@ "updateContext": null }, "value": "false", - "start": 879, - "end": 884, + "start": 880, + "end": 885, "loc": { "start": { "line": 54, @@ -7576,8 +7390,8 @@ "binop": null, "updateContext": null }, - "start": 884, - "end": 885, + "start": 885, + "end": 886, "loc": { "start": { "line": 54, @@ -7602,8 +7416,8 @@ "binop": null }, "value": "border", - "start": 890, - "end": 896, + "start": 891, + "end": 897, "loc": { "start": { "line": 55, @@ -7628,8 +7442,8 @@ "binop": null, "updateContext": null }, - "start": 896, - "end": 897, + "start": 897, + "end": 898, "loc": { "start": { "line": 55, @@ -7653,8 +7467,8 @@ "postfix": false, "binop": null }, - "start": 898, - "end": 899, + "start": 899, + "end": 900, "loc": { "start": { "line": 55, @@ -7679,8 +7493,8 @@ "binop": null }, "value": "process", - "start": 899, - "end": 906, + "start": 900, + "end": 907, "loc": { "start": { "line": 55, @@ -7705,8 +7519,8 @@ "binop": null, "updateContext": null }, - "start": 906, - "end": 907, + "start": 907, + "end": 908, "loc": { "start": { "line": 55, @@ -7731,8 +7545,8 @@ "binop": null }, "value": "env", - "start": 907, - "end": 910, + "start": 908, + "end": 911, "loc": { "start": { "line": 55, @@ -7757,8 +7571,8 @@ "binop": null, "updateContext": null }, - "start": 910, - "end": 911, + "start": 911, + "end": 912, "loc": { "start": { "line": 55, @@ -7783,8 +7597,8 @@ "binop": null }, "value": "NODE_ENV", - "start": 911, - "end": 919, + "start": 912, + "end": 920, "loc": { "start": { "line": 55, @@ -7810,8 +7624,8 @@ "updateContext": null }, "value": "===", - "start": 920, - "end": 923, + "start": 921, + "end": 924, "loc": { "start": { "line": 55, @@ -7837,8 +7651,8 @@ "updateContext": null }, "value": "development", - "start": 924, - "end": 937, + "start": 925, + "end": 938, "loc": { "start": { "line": 55, @@ -7863,8 +7677,8 @@ "binop": null, "updateContext": null }, - "start": 938, - "end": 939, + "start": 939, + "end": 940, "loc": { "start": { "line": 55, @@ -7891,8 +7705,8 @@ "updateContext": null }, "value": "true", - "start": 940, - "end": 944, + "start": 941, + "end": 945, "loc": { "start": { "line": 55, @@ -7917,8 +7731,8 @@ "binop": null, "updateContext": null }, - "start": 945, - "end": 946, + "start": 946, + "end": 947, "loc": { "start": { "line": 55, @@ -7945,8 +7759,8 @@ "updateContext": null }, "value": "false", - "start": 947, - "end": 952, + "start": 948, + "end": 953, "loc": { "start": { "line": 55, @@ -7970,8 +7784,8 @@ "postfix": false, "binop": null }, - "start": 952, - "end": 953, + "start": 953, + "end": 954, "loc": { "start": { "line": 55, @@ -7996,8 +7810,8 @@ "binop": null, "updateContext": null }, - "start": 953, - "end": 954, + "start": 954, + "end": 955, "loc": { "start": { "line": 55, @@ -8022,8 +7836,8 @@ "binop": null }, "value": "mouseLog", - "start": 959, - "end": 967, + "start": 960, + "end": 968, "loc": { "start": { "line": 56, @@ -8048,8 +7862,8 @@ "binop": null, "updateContext": null }, - "start": 967, - "end": 968, + "start": 968, + "end": 969, "loc": { "start": { "line": 56, @@ -8076,8 +7890,8 @@ "updateContext": null }, "value": "false", - "start": 969, - "end": 974, + "start": 970, + "end": 975, "loc": { "start": { "line": 56, @@ -8102,8 +7916,8 @@ "binop": null, "updateContext": null }, - "start": 974, - "end": 975, + "start": 975, + "end": 976, "loc": { "start": { "line": 56, @@ -8128,8 +7942,8 @@ "binop": null }, "value": "mouseFunc", - "start": 980, - "end": 989, + "start": 981, + "end": 990, "loc": { "start": { "line": 57, @@ -8154,8 +7968,8 @@ "binop": null, "updateContext": null }, - "start": 989, - "end": 990, + "start": 990, + "end": 991, "loc": { "start": { "line": 57, @@ -8179,8 +7993,8 @@ "postfix": false, "binop": null }, - "start": 991, - "end": 992, + "start": 992, + "end": 993, "loc": { "start": { "line": 57, @@ -8205,8 +8019,8 @@ "binop": null }, "value": "x", - "start": 992, - "end": 993, + "start": 993, + "end": 994, "loc": { "start": { "line": 57, @@ -8231,8 +8045,8 @@ "binop": null, "updateContext": null }, - "start": 993, - "end": 994, + "start": 994, + "end": 995, "loc": { "start": { "line": 57, @@ -8257,8 +8071,8 @@ "binop": null }, "value": "y", - "start": 995, - "end": 996, + "start": 996, + "end": 997, "loc": { "start": { "line": 57, @@ -8283,8 +8097,8 @@ "binop": null, "updateContext": null }, - "start": 996, - "end": 997, + "start": 997, + "end": 998, "loc": { "start": { "line": 57, @@ -8309,8 +8123,8 @@ "binop": null }, "value": "ix", - "start": 998, - "end": 1000, + "start": 999, + "end": 1001, "loc": { "start": { "line": 57, @@ -8335,8 +8149,8 @@ "binop": null, "updateContext": null }, - "start": 1000, - "end": 1001, + "start": 1001, + "end": 1002, "loc": { "start": { "line": 57, @@ -8361,8 +8175,8 @@ "binop": null }, "value": "iy", - "start": 1002, - "end": 1004, + "start": 1003, + "end": 1005, "loc": { "start": { "line": 57, @@ -8386,8 +8200,8 @@ "postfix": false, "binop": null }, - "start": 1004, - "end": 1005, + "start": 1005, + "end": 1006, "loc": { "start": { "line": 57, @@ -8412,8 +8226,8 @@ "binop": null, "updateContext": null }, - "start": 1006, - "end": 1008, + "start": 1007, + "end": 1009, "loc": { "start": { "line": 57, @@ -8437,8 +8251,8 @@ "postfix": false, "binop": null }, - "start": 1009, - "end": 1010, + "start": 1010, + "end": 1011, "loc": { "start": { "line": 57, @@ -8463,8 +8277,8 @@ "binop": null }, "value": "console", - "start": 1010, - "end": 1017, + "start": 1011, + "end": 1018, "loc": { "start": { "line": 57, @@ -8489,8 +8303,8 @@ "binop": null, "updateContext": null }, - "start": 1017, - "end": 1018, + "start": 1018, + "end": 1019, "loc": { "start": { "line": 57, @@ -8515,8 +8329,8 @@ "binop": null }, "value": "log", - "start": 1018, - "end": 1021, + "start": 1019, + "end": 1022, "loc": { "start": { "line": 57, @@ -8540,8 +8354,8 @@ "postfix": false, "binop": null }, - "start": 1021, - "end": 1022, + "start": 1022, + "end": 1023, "loc": { "start": { "line": 57, @@ -8565,8 +8379,8 @@ "postfix": false, "binop": null }, - "start": 1022, - "end": 1023, + "start": 1023, + "end": 1024, "loc": { "start": { "line": 57, @@ -8592,8 +8406,8 @@ "updateContext": null }, "value": "MouseFunc: ", - "start": 1023, - "end": 1034, + "start": 1024, + "end": 1035, "loc": { "start": { "line": 57, @@ -8617,8 +8431,8 @@ "postfix": false, "binop": null }, - "start": 1034, - "end": 1036, + "start": 1035, + "end": 1037, "loc": { "start": { "line": 57, @@ -8643,8 +8457,8 @@ "binop": null }, "value": "x", - "start": 1036, - "end": 1037, + "start": 1037, + "end": 1038, "loc": { "start": { "line": 57, @@ -8668,8 +8482,8 @@ "postfix": false, "binop": null }, - "start": 1037, - "end": 1038, + "start": 1038, + "end": 1039, "loc": { "start": { "line": 57, @@ -8695,8 +8509,8 @@ "updateContext": null }, "value": ",", - "start": 1038, - "end": 1039, + "start": 1039, + "end": 1040, "loc": { "start": { "line": 57, @@ -8720,8 +8534,8 @@ "postfix": false, "binop": null }, - "start": 1039, - "end": 1041, + "start": 1040, + "end": 1042, "loc": { "start": { "line": 57, @@ -8746,8 +8560,8 @@ "binop": null }, "value": "y", - "start": 1041, - "end": 1042, + "start": 1042, + "end": 1043, "loc": { "start": { "line": 57, @@ -8771,8 +8585,8 @@ "postfix": false, "binop": null }, - "start": 1042, - "end": 1043, + "start": 1043, + "end": 1044, "loc": { "start": { "line": 57, @@ -8798,8 +8612,8 @@ "updateContext": null }, "value": "; ", - "start": 1043, - "end": 1045, + "start": 1044, + "end": 1046, "loc": { "start": { "line": 57, @@ -8823,8 +8637,8 @@ "postfix": false, "binop": null }, - "start": 1045, - "end": 1047, + "start": 1046, + "end": 1048, "loc": { "start": { "line": 57, @@ -8849,8 +8663,8 @@ "binop": null }, "value": "ix", - "start": 1047, - "end": 1049, + "start": 1048, + "end": 1050, "loc": { "start": { "line": 57, @@ -8874,8 +8688,8 @@ "postfix": false, "binop": null }, - "start": 1049, - "end": 1050, + "start": 1050, + "end": 1051, "loc": { "start": { "line": 57, @@ -8901,8 +8715,8 @@ "updateContext": null }, "value": ", ", - "start": 1050, - "end": 1052, + "start": 1051, + "end": 1053, "loc": { "start": { "line": 57, @@ -8926,8 +8740,8 @@ "postfix": false, "binop": null }, - "start": 1052, - "end": 1054, + "start": 1053, + "end": 1055, "loc": { "start": { "line": 57, @@ -8952,8 +8766,8 @@ "binop": null }, "value": "iy", - "start": 1054, - "end": 1056, + "start": 1055, + "end": 1057, "loc": { "start": { "line": 57, @@ -8977,8 +8791,8 @@ "postfix": false, "binop": null }, - "start": 1056, - "end": 1057, + "start": 1057, + "end": 1058, "loc": { "start": { "line": 57, @@ -9004,8 +8818,8 @@ "updateContext": null }, "value": "", - "start": 1057, - "end": 1057, + "start": 1058, + "end": 1058, "loc": { "start": { "line": 57, @@ -9029,8 +8843,8 @@ "postfix": false, "binop": null }, - "start": 1057, - "end": 1058, + "start": 1058, + "end": 1059, "loc": { "start": { "line": 57, @@ -9054,8 +8868,8 @@ "postfix": false, "binop": null }, - "start": 1058, - "end": 1059, + "start": 1059, + "end": 1060, "loc": { "start": { "line": 57, @@ -9080,8 +8894,8 @@ "binop": null, "updateContext": null }, - "start": 1059, - "end": 1060, + "start": 1060, + "end": 1061, "loc": { "start": { "line": 57, @@ -9105,8 +8919,8 @@ "postfix": false, "binop": null }, - "start": 1060, - "end": 1061, + "start": 1061, + "end": 1062, "loc": { "start": { "line": 57, @@ -9131,8 +8945,8 @@ "binop": null, "updateContext": null }, - "start": 1061, - "end": 1062, + "start": 1062, + "end": 1063, "loc": { "start": { "line": 57, @@ -9156,8 +8970,8 @@ "postfix": false, "binop": null }, - "start": 1065, - "end": 1066, + "start": 1066, + "end": 1067, "loc": { "start": { "line": 58, @@ -9182,8 +8996,8 @@ "binop": null, "updateContext": null }, - "start": 1066, - "end": 1067, + "start": 1067, + "end": 1068, "loc": { "start": { "line": 58, @@ -9198,8 +9012,8 @@ { "type": "CommentLine", "value": " _: true,", - "start": 1070, - "end": 1081, + "start": 1071, + "end": 1082, "loc": { "start": { "line": 59, @@ -9223,8 +9037,8 @@ "postfix": false, "binop": null }, - "start": 1082, - "end": 1083, + "start": 1083, + "end": 1084, "loc": { "start": { "line": 60, @@ -9239,8 +9053,8 @@ { "type": "CommentBlock", "value": "*\n * Apply users function, make the full settings\n * @param {Object} [userConfig] User's custom config\n * @return {null}\n ", - "start": 1085, - "end": 1212, + "start": 1086, + "end": 1213, "loc": { "start": { "line": 62, @@ -9266,8 +9080,8 @@ "binop": null }, "value": "function", - "start": 1214, - "end": 1222, + "start": 1215, + "end": 1223, "loc": { "start": { "line": 68, @@ -9292,8 +9106,8 @@ "binop": null }, "value": "configApplyer", - "start": 1223, - "end": 1236, + "start": 1224, + "end": 1237, "loc": { "start": { "line": 68, @@ -9317,8 +9131,8 @@ "postfix": false, "binop": null }, - "start": 1236, - "end": 1237, + "start": 1237, + "end": 1238, "loc": { "start": { "line": 68, @@ -9343,8 +9157,8 @@ "binop": null }, "value": "userConfig", - "start": 1237, - "end": 1247, + "start": 1238, + "end": 1248, "loc": { "start": { "line": 68, @@ -9368,8 +9182,8 @@ "postfix": false, "binop": null }, - "start": 1247, - "end": 1248, + "start": 1248, + "end": 1249, "loc": { "start": { "line": 68, @@ -9393,8 +9207,8 @@ "postfix": false, "binop": null }, - "start": 1248, - "end": 1249, + "start": 1249, + "end": 1250, "loc": { "start": { "line": 68, @@ -9409,8 +9223,8 @@ { "type": "CommentLine", "value": " if (_.has(userConfig, '_')){", - "start": 1253, - "end": 1284, + "start": 1254, + "end": 1285, "loc": { "start": { "line": 70, @@ -9425,8 +9239,8 @@ { "type": "CommentLine", "value": " import(/* webpackMode: \"lazy\" */ './configValidater').then(f => {", - "start": 1287, - "end": 1357, + "start": 1288, + "end": 1358, "loc": { "start": { "line": 71, @@ -9441,8 +9255,8 @@ { "type": "CommentLine", "value": " f.configValidater(userConfig);", - "start": 1360, - "end": 1397, + "start": 1361, + "end": 1398, "loc": { "start": { "line": 72, @@ -9457,8 +9271,8 @@ { "type": "CommentLine", "value": " }).catch(err => {", - "start": 1400, - "end": 1422, + "start": 1401, + "end": 1423, "loc": { "start": { "line": 73, @@ -9473,8 +9287,8 @@ { "type": "CommentLine", "value": " console.error(err);", - "start": 1425, - "end": 1451, + "start": 1426, + "end": 1452, "loc": { "start": { "line": 74, @@ -9489,8 +9303,8 @@ { "type": "CommentLine", "value": " });", - "start": 1454, - "end": 1462, + "start": 1455, + "end": 1463, "loc": { "start": { "line": 75, @@ -9505,8 +9319,8 @@ { "type": "CommentLine", "value": " }", - "start": 1465, - "end": 1469, + "start": 1466, + "end": 1470, "loc": { "start": { "line": 76, @@ -9531,8 +9345,8 @@ "binop": null }, "value": "currConfig", - "start": 1473, - "end": 1483, + "start": 1474, + "end": 1484, "loc": { "start": { "line": 78, @@ -9558,8 +9372,8 @@ "updateContext": null }, "value": "=", - "start": 1484, - "end": 1485, + "start": 1485, + "end": 1486, "loc": { "start": { "line": 78, @@ -9584,8 +9398,8 @@ "binop": null }, "value": "_", - "start": 1486, - "end": 1487, + "start": 1487, + "end": 1488, "loc": { "start": { "line": 78, @@ -9610,8 +9424,8 @@ "binop": null, "updateContext": null }, - "start": 1487, - "end": 1488, + "start": 1488, + "end": 1489, "loc": { "start": { "line": 78, @@ -9636,8 +9450,8 @@ "binop": null }, "value": "defaultsDeep", - "start": 1488, - "end": 1500, + "start": 1489, + "end": 1501, "loc": { "start": { "line": 78, @@ -9661,8 +9475,8 @@ "postfix": false, "binop": null }, - "start": 1500, - "end": 1501, + "start": 1501, + "end": 1502, "loc": { "start": { "line": 78, @@ -9687,8 +9501,8 @@ "binop": null }, "value": "userConfig", - "start": 1501, - "end": 1511, + "start": 1502, + "end": 1512, "loc": { "start": { "line": 78, @@ -9713,8 +9527,8 @@ "binop": null, "updateContext": null }, - "start": 1511, - "end": 1512, + "start": 1512, + "end": 1513, "loc": { "start": { "line": 78, @@ -9739,8 +9553,8 @@ "binop": null }, "value": "defaultConfig", - "start": 1513, - "end": 1526, + "start": 1514, + "end": 1527, "loc": { "start": { "line": 78, @@ -9764,8 +9578,8 @@ "postfix": false, "binop": null }, - "start": 1526, - "end": 1527, + "start": 1527, + "end": 1528, "loc": { "start": { "line": 78, @@ -9790,8 +9604,8 @@ "binop": null, "updateContext": null }, - "start": 1527, - "end": 1528, + "start": 1528, + "end": 1529, "loc": { "start": { "line": 78, @@ -9804,20 +9618,10 @@ } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 1531, - "end": 1538, + "type": "CommentLine", + "value": " console.log('Live2Dwidget: currConfig', currConfig);", + "start": 1532, + "end": 1587, "loc": { "start": { "line": 79, @@ -9825,214 +9629,7 @@ }, "end": { "line": 79, - "column": 9 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1538, - "end": 1539, - "loc": { - "start": { - "line": 79, - "column": 9 - }, - "end": { - "line": 79, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "log", - "start": 1539, - "end": 1542, - "loc": { - "start": { - "line": 79, - "column": 10 - }, - "end": { - "line": 79, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1542, - "end": 1543, - "loc": { - "start": { - "line": 79, - "column": 13 - }, - "end": { - "line": 79, - "column": 14 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "currConfig:", - "start": 1543, - "end": 1556, - "loc": { - "start": { - "line": 79, - "column": 14 - }, - "end": { - "line": 79, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1556, - "end": 1557, - "loc": { - "start": { - "line": 79, - "column": 27 - }, - "end": { - "line": 79, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "currConfig", - "start": 1558, - "end": 1568, - "loc": { - "start": { - "line": 79, - "column": 29 - }, - "end": { - "line": 79, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1568, - "end": 1569, - "loc": { - "start": { - "line": 79, - "column": 39 - }, - "end": { - "line": 79, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1569, - "end": 1570, - "loc": { - "start": { - "line": 79, - "column": 40 - }, - "end": { - "line": 79, - "column": 41 + "column": 57 } } }, @@ -10048,8 +9645,8 @@ "postfix": false, "binop": null }, - "start": 1572, - "end": 1573, + "start": 1589, + "end": 1590, "loc": { "start": { "line": 81, @@ -10076,8 +9673,8 @@ "updateContext": null }, "value": "export", - "start": 1575, - "end": 1581, + "start": 1592, + "end": 1598, "loc": { "start": { "line": 83, @@ -10101,8 +9698,8 @@ "postfix": false, "binop": null }, - "start": 1582, - "end": 1583, + "start": 1599, + "end": 1600, "loc": { "start": { "line": 83, @@ -10127,8 +9724,8 @@ "binop": null }, "value": "configApplyer", - "start": 1586, - "end": 1599, + "start": 1603, + "end": 1616, "loc": { "start": { "line": 84, @@ -10153,8 +9750,8 @@ "binop": null, "updateContext": null }, - "start": 1599, - "end": 1600, + "start": 1616, + "end": 1617, "loc": { "start": { "line": 84, @@ -10179,8 +9776,8 @@ "binop": null }, "value": "currConfig", - "start": 1603, - "end": 1613, + "start": 1620, + "end": 1630, "loc": { "start": { "line": 85, @@ -10205,8 +9802,8 @@ "binop": null }, "value": "as", - "start": 1614, - "end": 1616, + "start": 1631, + "end": 1633, "loc": { "start": { "line": 85, @@ -10231,8 +9828,8 @@ "binop": null }, "value": "config", - "start": 1617, - "end": 1623, + "start": 1634, + "end": 1640, "loc": { "start": { "line": 85, @@ -10257,8 +9854,8 @@ "binop": null, "updateContext": null }, - "start": 1623, - "end": 1624, + "start": 1640, + "end": 1641, "loc": { "start": { "line": 85, @@ -10282,8 +9879,8 @@ "postfix": false, "binop": null }, - "start": 1625, - "end": 1626, + "start": 1642, + "end": 1643, "loc": { "start": { "line": 86, @@ -10308,8 +9905,8 @@ "binop": null, "updateContext": null }, - "start": 1627, - "end": 1627, + "start": 1644, + "end": 1644, "loc": { "start": { "line": 87, diff --git a/ghpages/docs/ast/source/index.js.json b/ghpages/docs/ast/source/index.js.json index 2c16d3e..228d58e 100644 --- a/ghpages/docs/ast/source/index.js.json +++ b/ghpages/docs/ast/source/index.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 4147, + "end": 4159, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 96, + "line": 107, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 4147, + "end": 4159, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 96, + "line": 107, "column": 0 } }, @@ -235,7 +235,7 @@ { "type": "IfStatement", "start": 308, - "end": 461, + "end": 475, "loc": { "start": { "line": 17, @@ -368,7 +368,7 @@ "consequent": { "type": "BlockStatement", "start": 351, - "end": 461, + "end": 475, "loc": { "start": { "line": 17, @@ -383,7 +383,7 @@ { "type": "ExpressionStatement", "start": 355, - "end": 459, + "end": 473, "loc": { "start": { "line": 18, @@ -391,13 +391,13 @@ }, "end": { "line": 18, - "column": 106 + "column": 120 } }, "expression": { "type": "CallExpression", "start": 355, - "end": 458, + "end": 472, "loc": { "start": { "line": 18, @@ -405,7 +405,7 @@ }, "end": { "line": 18, - "column": 105 + "column": 119 } }, "callee": { @@ -462,7 +462,7 @@ { "type": "StringLiteral", "start": 367, - "end": 457, + "end": 471, "loc": { "start": { "line": 18, @@ -470,14 +470,14 @@ }, "end": { "line": 18, - "column": 104 + "column": 118 } }, "extra": { - "rawValue": "--- --- --- --- ---\nHey that, notice that you are now in DEV MODE.\n--- --- --- --- ---", - "raw": "'--- --- --- --- ---\\nHey that, notice that you are now in DEV MODE.\\n--- --- --- --- ---'" + "rawValue": "--- --- --- --- ---\nLive2Dwidget: Hey that, notice that you are now in DEV MODE.\n--- --- --- --- ---", + "raw": "'--- --- --- --- ---\\nLive2Dwidget: Hey that, notice that you are now in DEV MODE.\\n--- --- --- --- ---'" }, - "value": "--- --- --- --- ---\nHey that, notice that you are now in DEV MODE.\n--- --- --- --- ---" + "value": "--- --- --- --- ---\nLive2Dwidget: Hey that, notice that you are now in DEV MODE.\n--- --- --- --- ---" } ] } @@ -489,8 +489,8 @@ }, { "type": "VariableDeclaration", - "start": 463, - "end": 475, + "start": 477, + "end": 489, "loc": { "start": { "line": 21, @@ -504,8 +504,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 467, - "end": 474, + "start": 481, + "end": 488, "loc": { "start": { "line": 21, @@ -518,8 +518,8 @@ }, "id": { "type": "Identifier", - "start": 467, - "end": 474, + "start": 481, + "end": 488, "loc": { "start": { "line": 21, @@ -540,9 +540,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\n * The main entry point, which ... is nothing\n ", - "start": 476, - "end": 529, + "value": "*\n * The main entry point, which is ... nothing\n ", + "start": 490, + "end": 543, "loc": { "start": { "line": 22, @@ -558,564 +558,413 @@ }, { "type": "Identifier", - "start": 531, - "end": 553, + "start": 545, + "end": 4100, "loc": { "start": { "line": 26, "column": 0 }, "end": { - "line": 26, - "column": 22 + "line": 99, + "column": 1 } }, "id": { "type": "Identifier", - "start": 540, - "end": 549, + "start": 551, + "end": 560, "loc": { "start": { "line": 26, - "column": 9 + "column": 6 }, "end": { "line": 26, - "column": 18 + "column": 15 }, "identifierName": "L2Dwidget" }, "name": "L2Dwidget", "leadingComments": null }, - "generator": false, - "expression": false, - "async": false, - "params": [], + "superClass": null, "body": { - "type": "BlockStatement", - "start": 551, - "end": 553, + "type": "ClassBody", + "start": 560, + "end": 4100, "loc": { "start": { "line": 26, - "column": 20 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "body": [], - "directives": [] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "EmptyStatement", - "start": 553, - "end": 554, - "loc": { - "start": { - "line": 26, - "column": 22 - }, - "end": { - "line": 26, - "column": 23 - } - }, - "leadingComments": null, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config 用户自定义设置\n * @param {String} [userConfig.model.jsonPath = ''] Path to Live2D model's main json eg. `https://test.com/miku.model.json` model主文件路径\n * @param {Number} [userConfig.model.scale = 1] Scale between the model and the canvas 模型与canvas的缩放\n * @param {Number} [userConfig.model.hHeadPos = 0.5] Horizontal position of model's head 模型头部横坐标\n * @param {Number} [userConfig.model.vHeadPos = 0.618] Vertical position of model's head 模型头部纵坐标\n * @param {Array} [userConfig.model.myDefine = []] User's custom Defines which will override LDefine 自定义的LDefine\n * @param {Number} [userConfig.display.superSample = 2] rate for super sampling rate 超采样等级\n * @param {Number} [userConfig.display.width = 150] Width to the canvas which shows the model canvas的长度\n * @param {Number} [userConfig.display.height = 300] Height to the canvas which shows the model canvas的高度\n * @param {String} [userConfig.display.position = 'right'] Left of right side to show 显示位置:左或右\n * @param {Number} [userConfig.display.hOffset = 0] Horizontal offset of the canvas canvas水平偏移\n * @param {Number} [userConfig.display.vOffset = -20] Vertical offset of the canvas canvas垂直偏移\n * @param {Boolean} [userConfig.mobile.show = true] Whether to show on mobile device 是否在移动设备上显示\n * @param {Number} [userConfig.mobile.scale = 0.5] Scale on mobile device 移动设备上的缩放\n * @param {Boolean} [userConfig.mobile.motion = true] Whether to enable motion detection on mobile devices 移动设备是否开启重力感应\n * @param {String} [userConfig.name.canvas = 'live2dcanvas'] ID name of the canvas canvas元素的ID\n * @param {String} [userConfig.name.div = 'live2d-widget'] ID name of the div div元素的ID\n * @param {Number} [userConfig.react.opacityDefault = 0.7] Default opacity 默认透明度\n * @param {Number} [userConfig.react.opacityOnHover = 0.2] OnHover opacity 鼠标移上透明度\n * @param {Function} [userConfig.react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器\n * @param {Boolean} [userConfig.dev.log = false] Whether to show log 显示日志\n * @param {Boolean} [userConfig.dev.border = false] Whether to show border around the canvas 在canvas周围显示边界\n * @param {Boolean} [userConfig.dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动\n * @param {Function} [userConfig.dev.mouseFunc = func(x, y, ix, iy)] Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数\n * @return {null}\n ", - "start": 556, - "end": 3163, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 55, - "column": 3 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 3165, - "end": 3524, - "loc": { - "start": { - "line": 57, - "column": 0 - }, - "end": { - "line": 74, - "column": 1 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 3165, - "end": 3524, - "loc": { - "start": { - "line": 57, - "column": 0 + "column": 15 }, "end": { - "line": 74, + "line": 99, "column": 1 } }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 3165, - "end": 3179, - "loc": { - "start": { - "line": 57, - "column": 0 - }, - "end": { - "line": 57, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 3165, - "end": 3174, - "loc": { - "start": { - "line": 57, - "column": 0 - }, - "end": { - "line": 57, - "column": 9 - }, - "identifierName": "L2Dwidget" - }, - "name": "L2Dwidget", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 3175, - "end": 3179, + "body": [ + { + "type": "ClassMethod", + "start": 3169, + "end": 3465, "loc": { "start": { "line": 57, - "column": 10 + "column": 2 }, "end": { - "line": 57, - "column": 14 - }, - "identifierName": "init" - }, - "name": "init" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ArrowFunctionExpression", - "start": 3182, - "end": 3524, - "loc": { - "start": { - "line": 57, - "column": 17 + "line": 68, + "column": 3 + } }, - "end": { - "line": 74, - "column": 1 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { + "static": false, + "computed": false, + "key": { "type": "Identifier", - "start": 3183, - "end": 3193, + "start": 3169, + "end": 3173, "loc": { "start": { "line": 57, - "column": 18 + "column": 2 }, "end": { "line": 57, - "column": 28 + "column": 6 }, - "identifierName": "userConfig" - }, - "name": "userConfig" - } - ], - "body": { - "type": "BlockStatement", - "start": 3198, - "end": 3524, - "loc": { - "start": { - "line": 57, - "column": 33 + "identifierName": "init" }, - "end": { - "line": 74, - "column": 1 - } + "name": "init", + "leadingComments": null }, - "body": [ + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ { - "type": "ExpressionStatement", - "start": 3203, - "end": 3268, + "type": "AssignmentPattern", + "start": 3174, + "end": 3189, "loc": { "start": { - "line": 59, - "column": 2 + "line": 57, + "column": 7 }, "end": { - "line": 59, - "column": 67 + "line": 57, + "column": 22 } }, - "expression": { - "type": "AssignmentExpression", - "start": 3203, - "end": 3267, + "left": { + "type": "Identifier", + "start": 3174, + "end": 3184, "loc": { "start": { - "line": 59, - "column": 2 + "line": 57, + "column": 7 }, "end": { - "line": 59, - "column": 66 + "line": 57, + "column": 17 + }, + "identifierName": "userConfig" + }, + "name": "userConfig" + }, + "right": { + "type": "ObjectExpression", + "start": 3187, + "end": 3189, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 22 } }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 3203, - "end": 3213, + "properties": [] + } + } + ], + "body": { + "type": "BlockStatement", + "start": 3190, + "end": 3465, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 68, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3196, + "end": 3222, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 30 + } + }, + "expression": { + "type": "CallExpression", + "start": 3196, + "end": 3221, "loc": { "start": { - "line": 59, - "column": 2 + "line": 58, + "column": 4 }, "end": { - "line": 59, - "column": 12 + "line": 58, + "column": 29 + } + }, + "callee": { + "type": "Identifier", + "start": 3196, + "end": 3209, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 17 + }, + "identifierName": "configApplyer" }, - "identifierName": "userConfig" + "name": "configApplyer" }, - "name": "userConfig" + "arguments": [ + { + "type": "Identifier", + "start": 3210, + "end": 3220, + "loc": { + "start": { + "line": 58, + "column": 18 + }, + "end": { + "line": 58, + "column": 28 + }, + "identifierName": "userConfig" + }, + "name": "userConfig" + } + ] + } + }, + { + "type": "IfStatement", + "start": 3227, + "end": 3292, + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 61, + "column": 5 + } }, - "right": { - "type": "ConditionalExpression", - "start": 3216, - "end": 3267, + "test": { + "type": "LogicalExpression", + "start": 3230, + "end": 3270, "loc": { "start": { "line": 59, - "column": 15 + "column": 7 }, "end": { "line": 59, - "column": 66 + "column": 47 } }, - "test": { - "type": "BinaryExpression", - "start": 3216, - "end": 3249, + "left": { + "type": "UnaryExpression", + "start": 3231, + "end": 3250, "loc": { "start": { "line": 59, - "column": 15 + "column": 8 }, "end": { "line": 59, - "column": 48 + "column": 27 } }, - "left": { - "type": "UnaryExpression", - "start": 3216, - "end": 3233, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 3232, + "end": 3250, "loc": { "start": { "line": 59, - "column": 15 + "column": 9 }, "end": { "line": 59, - "column": 32 + "column": 27 } }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 3223, - "end": 3233, + "object": { + "type": "MemberExpression", + "start": 3232, + "end": 3245, "loc": { "start": { "line": 59, - "column": 22 + "column": 9 }, "end": { "line": 59, - "column": 32 + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 3232, + "end": 3238, + "loc": { + "start": { + "line": 59, + "column": 9 + }, + "end": { + "line": 59, + "column": 15 + }, + "identifierName": "config" }, - "identifierName": "userConfig" + "name": "config" }, - "name": "userConfig" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 3238, - "end": 3249, - "loc": { - "start": { - "line": 59, - "column": 37 + "property": { + "type": "Identifier", + "start": 3239, + "end": 3245, + "loc": { + "start": { + "line": 59, + "column": 16 + }, + "end": { + "line": 59, + "column": 22 + }, + "identifierName": "mobile" + }, + "name": "mobile" }, - "end": { - "line": 59, - "column": 48 - } + "computed": false }, - "extra": { - "rawValue": "undefined", - "raw": "'undefined'" + "property": { + "type": "Identifier", + "start": 3246, + "end": 3250, + "loc": { + "start": { + "line": 59, + "column": 23 + }, + "end": { + "line": 59, + "column": 27 + }, + "identifierName": "show" + }, + "name": "show" }, - "value": "undefined" + "computed": false + }, + "extra": { + "parenthesizedArgument": false, + "parenthesized": true, + "parenStart": 3230 } }, - "consequent": { - "type": "ObjectExpression", - "start": 3252, - "end": 3254, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 3254, + "end": 3269, "loc": { "start": { "line": 59, - "column": 51 + "column": 31 }, "end": { "line": 59, - "column": 53 + "column": 46 } }, - "properties": [] - }, - "alternate": { - "type": "Identifier", - "start": 3257, - "end": 3267, - "loc": { - "start": { - "line": 59, - "column": 56 - }, - "end": { - "line": 59, - "column": 66 - }, - "identifierName": "userConfig" - }, - "name": "userConfig" - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 3272, - "end": 3298, - "loc": { - "start": { - "line": 61, - "column": 2 - }, - "end": { - "line": 61, - "column": 28 - } - }, - "expression": { - "type": "CallExpression", - "start": 3272, - "end": 3297, - "loc": { - "start": { - "line": 61, - "column": 2 - }, - "end": { - "line": 61, - "column": 27 - } - }, - "callee": { - "type": "Identifier", - "start": 3272, - "end": 3285, - "loc": { - "start": { - "line": 61, - "column": 2 - }, - "end": { - "line": 61, - "column": 15 - }, - "identifierName": "configApplyer" - }, - "name": "configApplyer" - }, - "arguments": [ - { - "type": "Identifier", - "start": 3286, - "end": 3296, - "loc": { - "start": { - "line": 61, - "column": 16 - }, - "end": { - "line": 61, - "column": 26 - }, - "identifierName": "userConfig" - }, - "name": "userConfig" - } - ] - } - }, - { - "type": "IfStatement", - "start": 3302, - "end": 3363, - "loc": { - "start": { - "line": 63, - "column": 2 - }, - "end": { - "line": 65, - "column": 3 - } - }, - "test": { - "type": "LogicalExpression", - "start": 3305, - "end": 3345, - "loc": { - "start": { - "line": 63, - "column": 5 - }, - "end": { - "line": 63, - "column": 45 - } - }, - "left": { - "type": "UnaryExpression", - "start": 3306, - "end": 3325, - "loc": { - "start": { - "line": 63, - "column": 6 - }, - "end": { - "line": 63, - "column": 25 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 3307, - "end": 3325, - "loc": { - "start": { - "line": 63, - "column": 7 - }, - "end": { - "line": 63, - "column": 25 - } - }, - "object": { - "type": "MemberExpression", - "start": 3307, - "end": 3320, - "loc": { - "start": { - "line": 63, - "column": 7 - }, - "end": { - "line": 63, - "column": 20 - } + "callee": { + "type": "MemberExpression", + "start": 3254, + "end": 3267, + "loc": { + "start": { + "line": 59, + "column": 31 + }, + "end": { + "line": 59, + "column": 44 + } }, "object": { "type": "Identifier", - "start": 3307, - "end": 3313, + "start": 3254, + "end": 3260, "loc": { "start": { - "line": 63, - "column": 7 + "line": 59, + "column": 31 }, "end": { - "line": 63, - "column": 13 + "line": 59, + "column": 37 }, - "identifierName": "config" + "identifierName": "device" }, - "name": "config" + "name": "device" }, "property": { "type": "Identifier", - "start": 3314, - "end": 3320, + "start": 3261, + "end": 3267, "loc": { "start": { - "line": 63, - "column": 14 + "line": 59, + "column": 38 }, "end": { - "line": 63, - "column": 20 + "line": 59, + "column": 44 }, "identifierName": "mobile" }, @@ -1123,1459 +972,5809 @@ }, "computed": false }, - "property": { - "type": "Identifier", - "start": 3321, - "end": 3325, - "loc": { - "start": { - "line": 63, - "column": 21 - }, - "end": { - "line": 63, - "column": 25 - }, - "identifierName": "show" - }, - "name": "show" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 3305 + "arguments": [], + "extra": { + "parenthesized": true, + "parenStart": 3253 + } } }, - "operator": "&&", - "right": { - "type": "CallExpression", - "start": 3329, - "end": 3344, + "consequent": { + "type": "BlockStatement", + "start": 3271, + "end": 3292, "loc": { "start": { - "line": 63, - "column": 29 + "line": 59, + "column": 48 }, "end": { - "line": 63, - "column": 44 + "line": 61, + "column": 5 } }, - "callee": { - "type": "MemberExpression", - "start": 3329, - "end": 3342, - "loc": { - "start": { - "line": 63, - "column": 29 - }, - "end": { - "line": 63, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 3329, - "end": 3335, - "loc": { - "start": { - "line": 63, - "column": 29 - }, - "end": { - "line": 63, - "column": 35 - }, - "identifierName": "device" - }, - "name": "device" - }, - "property": { - "type": "Identifier", - "start": 3336, - "end": 3342, + "body": [ + { + "type": "ReturnStatement", + "start": 3279, + "end": 3286, "loc": { "start": { - "line": 63, - "column": 36 + "line": 60, + "column": 6 }, "end": { - "line": 63, - "column": 42 - }, - "identifierName": "mobile" - }, - "name": "mobile" - }, - "computed": false - }, - "arguments": [], - "extra": { - "parenthesized": true, - "parenStart": 3328 - } - } - }, - "consequent": { - "type": "BlockStatement", - "start": 3346, - "end": 3363, - "loc": { - "start": { - "line": 63, - "column": 46 - }, - "end": { - "line": 65, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3352, - "end": 3359, - "loc": { - "start": { - "line": 64, - "column": 4 + "line": 60, + "column": 13 + } }, - "end": { - "line": 64, - "column": 11 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 3367, - "end": 3521, - "loc": { - "start": { - "line": 67, - "column": 2 + "argument": null + } + ], + "directives": [] }, - "end": { - "line": 72, - "column": 5 - } + "alternate": null }, - "expression": { - "type": "CallExpression", - "start": 3367, - "end": 3520, + { + "type": "ExpressionStatement", + "start": 3297, + "end": 3461, "loc": { "start": { - "line": 67, - "column": 2 + "line": 62, + "column": 4 }, "end": { - "line": 72, - "column": 4 + "line": 67, + "column": 7 } }, - "callee": { - "type": "MemberExpression", - "start": 3367, - "end": 3482, + "expression": { + "type": "CallExpression", + "start": 3297, + "end": 3460, "loc": { "start": { - "line": 67, - "column": 2 + "line": 62, + "column": 4 }, "end": { - "line": 70, - "column": 10 + "line": 67, + "column": 6 } }, - "object": { - "type": "CallExpression", - "start": 3367, - "end": 3476, + "callee": { + "type": "MemberExpression", + "start": 3297, + "end": 3418, "loc": { "start": { - "line": 67, - "column": 2 + "line": 62, + "column": 4 }, "end": { - "line": 70, - "column": 4 + "line": 65, + "column": 12 } }, - "callee": { - "type": "MemberExpression", - "start": 3367, - "end": 3420, + "object": { + "type": "CallExpression", + "start": 3297, + "end": 3412, "loc": { "start": { - "line": 67, - "column": 2 + "line": 62, + "column": 4 }, "end": { - "line": 67, - "column": 55 + "line": 65, + "column": 6 } }, - "object": { - "type": "CallExpression", - "start": 3367, - "end": 3415, + "callee": { + "type": "MemberExpression", + "start": 3297, + "end": 3350, "loc": { "start": { - "line": 67, - "column": 2 + "line": 62, + "column": 4 }, "end": { - "line": 67, - "column": 50 + "line": 62, + "column": 57 } }, - "callee": { - "type": "Import", - "start": 3367, - "end": 3373, + "object": { + "type": "CallExpression", + "start": 3297, + "end": 3345, "loc": { "start": { - "line": 67, - "column": 2 + "line": 62, + "column": 4 }, "end": { - "line": 67, - "column": 8 + "line": 62, + "column": 52 } - } - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 3400, - "end": 3414, + }, + "callee": { + "type": "Import", + "start": 3297, + "end": 3303, "loc": { "start": { - "line": 67, - "column": 35 + "line": 62, + "column": 4 }, "end": { - "line": 67, - "column": 49 + "line": 62, + "column": 10 } + } + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3330, + "end": 3344, + "loc": { + "start": { + "line": 62, + "column": 37 + }, + "end": { + "line": 62, + "column": 51 + } + }, + "extra": { + "rawValue": "./cLive2DApp", + "raw": "'./cLive2DApp'" + }, + "value": "./cLive2DApp", + "leadingComments": [ + { + "type": "CommentBlock", + "value": " webpackMode: 'lazy' ", + "start": 3304, + "end": 3329, + "loc": { + "start": { + "line": 62, + "column": 11 + }, + "end": { + "line": 62, + "column": 36 + } + } + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 3346, + "end": 3350, + "loc": { + "start": { + "line": 62, + "column": 53 + }, + "end": { + "line": 62, + "column": 57 }, - "extra": { - "rawValue": "./cLive2DApp", - "raw": "'./cLive2DApp'" + "identifierName": "then" + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3351, + "end": 3411, + "loc": { + "start": { + "line": 62, + "column": 58 + }, + "end": { + "line": 65, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3351, + "end": 3352, + "loc": { + "start": { + "line": 62, + "column": 58 + }, + "end": { + "line": 62, + "column": 59 + }, + "identifierName": "f" + }, + "name": "f" + } + ], + "body": { + "type": "BlockStatement", + "start": 3356, + "end": 3411, + "loc": { + "start": { + "line": 62, + "column": 63 + }, + "end": { + "line": 65, + "column": 5 + } }, - "value": "./cLive2DApp", - "leadingComments": [ + "body": [ { - "type": "CommentBlock", - "value": " webpackMode: \"lazy\" ", - "start": 3374, - "end": 3399, + "type": "ExpressionStatement", + "start": 3364, + "end": 3376, "loc": { "start": { - "line": 67, - "column": 9 + "line": 63, + "column": 6 }, "end": { - "line": 67, - "column": 34 - } - } - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 3416, - "end": 3420, - "loc": { - "start": { - "line": 67, - "column": 51 - }, - "end": { - "line": 67, - "column": 55 - }, - "identifierName": "then" - }, - "name": "then" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 3421, - "end": 3475, - "loc": { - "start": { - "line": 67, - "column": 56 - }, - "end": { - "line": 70, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3421, - "end": 3422, - "loc": { - "start": { - "line": 67, - "column": 56 - }, - "end": { - "line": 67, - "column": 57 - }, - "identifierName": "f" - }, - "name": "f" - } - ], - "body": { - "type": "BlockStatement", - "start": 3426, - "end": 3475, - "loc": { - "start": { - "line": 67, - "column": 61 - }, - "end": { - "line": 70, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3432, - "end": 3444, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 16 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 3432, - "end": 3443, - "loc": { - "start": { - "line": 68, - "column": 4 - }, - "end": { - "line": 68, - "column": 15 + "line": 63, + "column": 18 } }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 3432, - "end": 3439, + "expression": { + "type": "AssignmentExpression", + "start": 3364, + "end": 3375, "loc": { "start": { - "line": 68, - "column": 4 + "line": 63, + "column": 6 }, "end": { - "line": 68, - "column": 11 - }, - "identifierName": "coreApp" + "line": 63, + "column": 17 + } }, - "name": "coreApp" - }, - "right": { - "type": "Identifier", - "start": 3442, - "end": 3443, - "loc": { - "start": { - "line": 68, - "column": 14 - }, - "end": { - "line": 68, - "column": 15 + "operator": "=", + "left": { + "type": "Identifier", + "start": 3364, + "end": 3371, + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 13 + }, + "identifierName": "coreApp" }, - "identifierName": "f" + "name": "coreApp" }, - "name": "f" - } - } - }, - { - "type": "ExpressionStatement", - "start": 3449, - "end": 3471, - "loc": { - "start": { - "line": 69, - "column": 4 - }, - "end": { - "line": 69, - "column": 26 + "right": { + "type": "Identifier", + "start": 3374, + "end": 3375, + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 17 + }, + "identifierName": "f" + }, + "name": "f" + } } }, - "expression": { - "type": "CallExpression", - "start": 3449, - "end": 3470, + { + "type": "ExpressionStatement", + "start": 3383, + "end": 3405, "loc": { "start": { - "line": 69, - "column": 4 + "line": 64, + "column": 6 }, "end": { - "line": 69, - "column": 25 + "line": 64, + "column": 28 } }, - "callee": { - "type": "MemberExpression", - "start": 3449, - "end": 3468, + "expression": { + "type": "CallExpression", + "start": 3383, + "end": 3404, "loc": { "start": { - "line": 69, - "column": 4 + "line": 64, + "column": 6 }, "end": { - "line": 69, - "column": 23 + "line": 64, + "column": 27 } }, - "object": { - "type": "Identifier", - "start": 3449, - "end": 3456, + "callee": { + "type": "MemberExpression", + "start": 3383, + "end": 3402, "loc": { "start": { - "line": 69, - "column": 4 + "line": 64, + "column": 6 }, "end": { - "line": 69, - "column": 11 - }, - "identifierName": "coreApp" + "line": 64, + "column": 25 + } }, - "name": "coreApp" - }, - "property": { - "type": "Identifier", - "start": 3457, - "end": 3468, - "loc": { - "start": { - "line": 69, - "column": 12 + "object": { + "type": "Identifier", + "start": 3383, + "end": 3390, + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 13 + }, + "identifierName": "coreApp" }, - "end": { - "line": 69, - "column": 23 + "name": "coreApp" + }, + "property": { + "type": "Identifier", + "start": 3391, + "end": 3402, + "loc": { + "start": { + "line": 64, + "column": 14 + }, + "end": { + "line": 64, + "column": 25 + }, + "identifierName": "theRealInit" }, - "identifierName": "theRealInit" + "name": "theRealInit" }, - "name": "theRealInit" + "computed": false }, - "computed": false - }, - "arguments": [] + "arguments": [] + } } - } - ], - "directives": [] + ], + "directives": [] + } } - } - ] - }, - "property": { - "type": "Identifier", - "start": 3477, - "end": 3482, - "loc": { - "start": { - "line": 70, - "column": 5 - }, - "end": { - "line": 70, - "column": 10 - }, - "identifierName": "catch" + ] }, - "name": "catch" - }, - "computed": false - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 3483, - "end": 3519, - "loc": { - "start": { - "line": 70, - "column": 11 + "property": { + "type": "Identifier", + "start": 3413, + "end": 3418, + "loc": { + "start": { + "line": 65, + "column": 7 + }, + "end": { + "line": 65, + "column": 12 + }, + "identifierName": "catch" }, - "end": { - "line": 72, - "column": 3 - } + "name": "catch" }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3483, - "end": 3486, - "loc": { - "start": { - "line": 70, - "column": 11 - }, - "end": { - "line": 70, - "column": 14 - }, - "identifierName": "err" - }, - "name": "err" - } - ], - "body": { - "type": "BlockStatement", - "start": 3490, - "end": 3519, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3419, + "end": 3459, "loc": { "start": { - "line": 70, - "column": 18 + "line": 65, + "column": 13 }, "end": { - "line": 72, - "column": 3 + "line": 67, + "column": 5 } }, - "body": [ + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ { - "type": "ExpressionStatement", - "start": 3496, - "end": 3515, + "type": "Identifier", + "start": 3419, + "end": 3422, "loc": { "start": { - "line": 71, - "column": 4 + "line": 65, + "column": 13 }, "end": { - "line": 71, - "column": 23 - } + "line": 65, + "column": 16 + }, + "identifierName": "err" }, - "expression": { - "type": "CallExpression", - "start": 3496, - "end": 3514, + "name": "err" + } + ], + "body": { + "type": "BlockStatement", + "start": 3426, + "end": 3459, + "loc": { + "start": { + "line": 65, + "column": 20 + }, + "end": { + "line": 67, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3434, + "end": 3453, "loc": { "start": { - "line": 71, - "column": 4 + "line": 66, + "column": 6 }, "end": { - "line": 71, - "column": 22 + "line": 66, + "column": 25 } }, - "callee": { - "type": "MemberExpression", - "start": 3496, - "end": 3509, + "expression": { + "type": "CallExpression", + "start": 3434, + "end": 3452, "loc": { "start": { - "line": 71, - "column": 4 + "line": 66, + "column": 6 }, "end": { - "line": 71, - "column": 17 + "line": 66, + "column": 24 } }, - "object": { - "type": "Identifier", - "start": 3496, - "end": 3503, + "callee": { + "type": "MemberExpression", + "start": 3434, + "end": 3447, "loc": { "start": { - "line": 71, - "column": 4 + "line": 66, + "column": 6 }, "end": { - "line": 71, - "column": 11 - }, - "identifierName": "console" + "line": 66, + "column": 19 + } }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 3504, - "end": 3509, - "loc": { - "start": { - "line": 71, - "column": 12 + "object": { + "type": "Identifier", + "start": 3434, + "end": 3441, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 13 + }, + "identifierName": "console" }, - "end": { - "line": 71, - "column": 17 + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 3442, + "end": 3447, + "loc": { + "start": { + "line": 66, + "column": 14 + }, + "end": { + "line": 66, + "column": 19 + }, + "identifierName": "error" }, - "identifierName": "error" + "name": "error" }, - "name": "error" + "computed": false }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3510, - "end": 3513, - "loc": { - "start": { - "line": 71, - "column": 18 - }, - "end": { - "line": 71, - "column": 21 + "arguments": [ + { + "type": "Identifier", + "start": 3448, + "end": 3451, + "loc": { + "start": { + "line": 66, + "column": 20 + }, + "end": { + "line": 66, + "column": 23 + }, + "identifierName": "err" }, - "identifierName": "err" - }, - "name": "err" - } - ] + "name": "err" + } + ] + } } - } - ], - "directives": [] + ], + "directives": [] + } } - } - ] + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * The init function\n * @param {Object} [userConfig] User's custom config 用户自定义设置\n * @param {String} [userConfig.model.jsonPath = ''] Path to Live2D model's main json eg. `https://test.com/miku.model.json` model主文件路径\n * @param {Number} [userConfig.model.scale = 1] Scale between the model and the canvas 模型与canvas的缩放\n * @param {Number} [userConfig.model.hHeadPos = 0.5] Horizontal position of model's head 模型头部横坐标\n * @param {Number} [userConfig.model.vHeadPos = 0.618] Vertical position of model's head 模型头部纵坐标\n * @param {Array} [userConfig.model.myDefine = []] User's custom Defines which will override LDefine 自定义的LDefine\n * @param {Number} [userConfig.display.superSample = 2] rate for super sampling rate 超采样等级\n * @param {Number} [userConfig.display.width = 150] Width to the canvas which shows the model canvas的长度\n * @param {Number} [userConfig.display.height = 300] Height to the canvas which shows the model canvas的高度\n * @param {String} [userConfig.display.position = 'right'] Left of right side to show 显示位置:左或右\n * @param {Number} [userConfig.display.hOffset = 0] Horizontal offset of the canvas canvas水平偏移\n * @param {Number} [userConfig.display.vOffset = -20] Vertical offset of the canvas canvas垂直偏移\n * @param {Boolean} [userConfig.mobile.show = true] Whether to show on mobile device 是否在移动设备上显示\n * @param {Number} [userConfig.mobile.scale = 0.5] Scale on mobile device 移动设备上的缩放\n * @param {Boolean} [userConfig.mobile.motion = true] Whether to enable motion detection on mobile devices 移动设备是否开启重力感应\n * @param {String} [userConfig.name.canvas = 'live2dcanvas'] ID name of the canvas canvas元素的ID\n * @param {String} [userConfig.name.div = 'live2d-widget'] ID name of the div div元素的ID\n * @param {Number} [userConfig.react.opacityDefault = 0.7] Default opacity 默认透明度\n * @param {Number} [userConfig.react.opacityOnHover = 0.2] OnHover opacity 鼠标移上透明度\n * @param {Function} [userConfig.react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器\n * @param {Boolean} [userConfig.dev.log = false] Whether to show log 显示日志\n * @param {Boolean} [userConfig.dev.border = false] Whether to show border around the canvas 在canvas周围显示边界\n * @param {Boolean} [userConfig.dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动\n * @param {Function} [userConfig.dev.mouseFunc = func(x, y, ix, iy)] Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数\n * @return {null}\n ", + "start": 563, + "end": 3165, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 55, + "column": 3 + } } } ], - "directives": [], - "trailingComments": null - }, - "trailingComments": null - }, - "leadingComments": null, - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config 用户自定义设置\n * @param {String} [userConfig.model.jsonPath = ''] Path to Live2D model's main json eg. `https://test.com/miku.model.json` model主文件路径\n * @param {Number} [userConfig.model.scale = 1] Scale between the model and the canvas 模型与canvas的缩放\n * @param {Number} [userConfig.model.hHeadPos = 0.5] Horizontal position of model's head 模型头部横坐标\n * @param {Number} [userConfig.model.vHeadPos = 0.618] Vertical position of model's head 模型头部纵坐标\n * @param {Array} [userConfig.model.myDefine = []] User's custom Defines which will override LDefine 自定义的LDefine\n * @param {Number} [userConfig.display.superSample = 2] rate for super sampling rate 超采样等级\n * @param {Number} [userConfig.display.width = 150] Width to the canvas which shows the model canvas的长度\n * @param {Number} [userConfig.display.height = 300] Height to the canvas which shows the model canvas的高度\n * @param {String} [userConfig.display.position = 'right'] Left of right side to show 显示位置:左或右\n * @param {Number} [userConfig.display.hOffset = 0] Horizontal offset of the canvas canvas水平偏移\n * @param {Number} [userConfig.display.vOffset = -20] Vertical offset of the canvas canvas垂直偏移\n * @param {Boolean} [userConfig.mobile.show = true] Whether to show on mobile device 是否在移动设备上显示\n * @param {Number} [userConfig.mobile.scale = 0.5] Scale on mobile device 移动设备上的缩放\n * @param {Boolean} [userConfig.mobile.motion = true] Whether to enable motion detection on mobile devices 移动设备是否开启重力感应\n * @param {String} [userConfig.name.canvas = 'live2dcanvas'] ID name of the canvas canvas元素的ID\n * @param {String} [userConfig.name.div = 'live2d-widget'] ID name of the div div元素的ID\n * @param {Number} [userConfig.react.opacityDefault = 0.7] Default opacity 默认透明度\n * @param {Number} [userConfig.react.opacityOnHover = 0.2] OnHover opacity 鼠标移上透明度\n * @param {Function} [userConfig.react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器\n * @param {Boolean} [userConfig.dev.log = false] Whether to show log 显示日志\n * @param {Boolean} [userConfig.dev.border = false] Whether to show border around the canvas 在canvas周围显示边界\n * @param {Boolean} [userConfig.dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动\n * @param {Function} [userConfig.dev.mouseFunc = func(x, y, ix, iy)] Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数\n * @return {null}\n ", - "start": 556, - "end": 3163, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 55, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Return the data URI of current frame, MINE type is image/png.\n * @return {DOMString} Which contains data URI, MINE type is image/png\n * @example\n * You can use codes below to let the user download the current frame\n *\n * let link = document.createElement('a');\n * link.innerHTML = 'Download image';\n * link.href = L2Dwidget.captureFrame();\n * link.download = 'live2d.png';\n * link.click();\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n ", - "start": 3526, - "end": 4056, - "loc": { - "start": { - "line": 76, - "column": 0 - }, - "end": { - "line": 89, - "column": 3 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4058, - "end": 4121, - "loc": { - "start": { - "line": 91, - "column": 0 - }, - "end": { - "line": 91, - "column": 63 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4058, - "end": 4120, - "loc": { - "start": { - "line": 91, - "column": 0 - }, - "end": { - "line": 91, - "column": 62 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4058, - "end": 4080, - "loc": { - "start": { - "line": 91, - "column": 0 - }, - "end": { - "line": 91, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 4058, - "end": 4067, - "loc": { - "start": { - "line": 91, - "column": 0 - }, - "end": { - "line": 91, - "column": 9 - }, - "identifierName": "L2Dwidget" - }, - "name": "L2Dwidget", - "leadingComments": null + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Capture current frame to png file {@link captureFrame}\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n ", + "start": 3468, + "end": 3641, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 75, + "column": 3 + } + } + } + ] }, - "property": { - "type": "Identifier", - "start": 4068, - "end": 4080, + { + "type": "ClassMethod", + "start": 3645, + "end": 3715, "loc": { "start": { - "line": 91, - "column": 10 + "line": 77, + "column": 2 }, "end": { - "line": 91, - "column": 22 - }, - "identifierName": "captureFrame" - }, - "name": "captureFrame" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ArrowFunctionExpression", - "start": 4083, - "end": 4120, - "loc": { - "start": { - "line": 91, - "column": 25 + "line": 79, + "column": 3 + } }, - "end": { - "line": 91, - "column": 62 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 4089, - "end": 4120, - "loc": { - "start": { - "line": 91, - "column": 31 + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3645, + "end": 3657, + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 77, + "column": 14 + }, + "identifierName": "captureFrame" }, - "end": { - "line": 91, - "column": 62 - } + "name": "captureFrame", + "leadingComments": null }, - "body": [ + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ { - "type": "ReturnStatement", - "start": 4090, - "end": 4119, + "type": "Identifier", + "start": 3658, + "end": 3666, "loc": { "start": { - "line": 91, - "column": 32 + "line": 77, + "column": 15 }, "end": { - "line": 91, - "column": 61 - } + "line": 77, + "column": 23 + }, + "identifierName": "callback" + }, + "name": "callback" + } + ], + "body": { + "type": "BlockStatement", + "start": 3667, + "end": 3715, + "loc": { + "start": { + "line": 77, + "column": 24 }, - "argument": { - "type": "CallExpression", - "start": 4097, - "end": 4119, + "end": { + "line": 79, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3673, + "end": 3711, "loc": { "start": { - "line": 91, - "column": 39 + "line": 78, + "column": 4 }, "end": { - "line": 91, - "column": 61 + "line": 78, + "column": 42 } }, - "callee": { - "type": "MemberExpression", - "start": 4097, - "end": 4117, + "argument": { + "type": "CallExpression", + "start": 3680, + "end": 3710, "loc": { "start": { - "line": 91, - "column": 39 + "line": 78, + "column": 11 }, "end": { - "line": 91, - "column": 59 + "line": 78, + "column": 41 } }, - "object": { - "type": "Identifier", - "start": 4097, - "end": 4104, + "callee": { + "type": "MemberExpression", + "start": 3680, + "end": 3700, "loc": { "start": { - "line": 91, - "column": 39 + "line": 78, + "column": 11 }, "end": { - "line": 91, - "column": 46 - }, - "identifierName": "coreApp" + "line": 78, + "column": 31 + } }, - "name": "coreApp" - }, - "property": { - "type": "Identifier", - "start": 4105, - "end": 4117, - "loc": { - "start": { - "line": 91, - "column": 47 + "object": { + "type": "Identifier", + "start": 3680, + "end": 3687, + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 18 + }, + "identifierName": "coreApp" }, - "end": { - "line": 91, - "column": 59 + "name": "coreApp" + }, + "property": { + "type": "Identifier", + "start": 3688, + "end": 3700, + "loc": { + "start": { + "line": 78, + "column": 19 + }, + "end": { + "line": 78, + "column": 31 + }, + "identifierName": "captureFrame" }, - "identifierName": "captureFrame" + "name": "captureFrame" }, - "name": "captureFrame" + "computed": false }, - "computed": false + "arguments": [ + { + "type": "Identifier", + "start": 3701, + "end": 3709, + "loc": { + "start": { + "line": 78, + "column": 32 + }, + "end": { + "line": 78, + "column": 40 + }, + "identifierName": "callback" + }, + "name": "callback" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Capture current frame to png file {@link captureFrame}\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n ", + "start": 3468, + "end": 3641, + "loc": { + "start": { + "line": 71, + "column": 0 }, - "arguments": [] + "end": { + "line": 75, + "column": 3 + } } } ], - "directives": [] - } - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Return the data URI of current frame, MINE type is image/png.\n * @return {DOMString} Which contains data URI, MINE type is image/png\n * @example\n * You can use codes below to let the user download the current frame\n *\n * let link = document.createElement('a');\n * link.innerHTML = 'Download image';\n * link.href = L2Dwidget.captureFrame();\n * link.download = 'live2d.png';\n * link.click();\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n ", - "start": 3526, - "end": 4056, - "loc": { - "start": { - "line": 76, - "column": 0 - }, - "end": { - "line": 89, - "column": 3 - } - } - } - ] - }, - { - "type": "ExportNamedDeclaration", - "start": 4123, - "end": 4146, - "loc": { - "start": { - "line": 93, - "column": 0 - }, - "end": { - "line": 95, - "column": 1 - } - }, - "declaration": null, - "specifiers": [ - { - "type": "ExportSpecifier", - "start": 4134, - "end": 4143, - "loc": { - "start": { - "line": 94, - "column": 2 - }, - "end": { - "line": 94, - "column": 11 - } + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * download current frame {@link L2Dwidget.captureFrame}\n * @return {null}\n ", + "start": 3717, + "end": 3799, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + } + ] }, - "local": { - "type": "Identifier", - "start": 4134, - "end": 4143, + { + "type": "ClassMethod", + "start": 3803, + "end": 4097, "loc": { "start": { - "line": 94, + "line": 86, "column": 2 }, "end": { - "line": 94, - "column": 11 - }, - "identifierName": "L2Dwidget" + "line": 97, + "column": 3 + } }, - "name": "L2Dwidget" - }, - "exported": { - "type": "Identifier", - "start": 4134, - "end": 4143, - "loc": { - "start": { - "line": 94, - "column": 2 - }, - "end": { - "line": 94, - "column": 11 + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3803, + "end": 3816, + "loc": { + "start": { + "line": 86, + "column": 2 + }, + "end": { + "line": 86, + "column": 15 + }, + "identifierName": "downloadFrame" }, - "identifierName": "L2Dwidget" + "name": "downloadFrame", + "leadingComments": null }, - "name": "L2Dwidget" - } - } - ], - "source": null - }, - { - "type": "ExportNamedDeclaration", - "start": 4123, - "end": 4146, - "loc": { - "start": { - "line": 93, - "column": 0 - }, - "end": { - "line": 95, - "column": 1 - } - }, - "declaration": { - "type": "FunctionDeclaration", - "start": 531, - "end": 553, - "loc": { - "start": { - "line": 26, - "column": 0 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "id": { - "type": "Identifier", - "start": 540, - "end": 549, - "loc": { - "start": { - "line": 26, - "column": 9 - }, - "end": { - "line": 26, - "column": 18 - }, - "identifierName": "L2Dwidget" - }, - "name": "L2Dwidget", - "leadingComments": null - }, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 551, - "end": 553, - "loc": { - "start": { - "line": 26, - "column": 20 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "body": [], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * The main entry point, which ... is nothing\n ", - "start": 476, - "end": 529, - "loc": { - "start": { - "line": 22, - "column": 0 + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 3818, + "end": 4097, + "loc": { + "start": { + "line": 86, + "column": 17 + }, + "end": { + "line": 97, + "column": 3 + } }, - "end": { - "line": 24, - "column": 3 - } - } - } - ], - "trailingComments": [] + "body": [ + { + "type": "ExpressionStatement", + "start": 3824, + "end": 4093, + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 96, + "column": 6 + } + }, + "expression": { + "type": "CallExpression", + "start": 3824, + "end": 4092, + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 96, + "column": 5 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3824, + "end": 3841, + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 3824, + "end": 3828, + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 3829, + "end": 3841, + "loc": { + "start": { + "line": 87, + "column": 9 + }, + "end": { + "line": 87, + "column": 21 + }, + "identifierName": "captureFrame" + }, + "name": "captureFrame" + }, + "computed": false + }, + "arguments": [ + { + "type": "FunctionExpression", + "start": 3849, + "end": 4086, + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 95, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3858, + "end": 3859, + "loc": { + "start": { + "line": 88, + "column": 15 + }, + "end": { + "line": 88, + "column": 16 + }, + "identifierName": "e" + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 3860, + "end": 4086, + "loc": { + "start": { + "line": 88, + "column": 17 + }, + "end": { + "line": 95, + "column": 7 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 3870, + "end": 3909, + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 89, + "column": 47 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3874, + "end": 3908, + "loc": { + "start": { + "line": 89, + "column": 12 + }, + "end": { + "line": 89, + "column": 46 + } + }, + "id": { + "type": "Identifier", + "start": 3874, + "end": 3878, + "loc": { + "start": { + "line": 89, + "column": 12 + }, + "end": { + "line": 89, + "column": 16 + }, + "identifierName": "link" + }, + "name": "link" + }, + "init": { + "type": "CallExpression", + "start": 3881, + "end": 3908, + "loc": { + "start": { + "line": 89, + "column": 19 + }, + "end": { + "line": 89, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3881, + "end": 3903, + "loc": { + "start": { + "line": 89, + "column": 19 + }, + "end": { + "line": 89, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 3881, + "end": 3889, + "loc": { + "start": { + "line": 89, + "column": 19 + }, + "end": { + "line": 89, + "column": 27 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 3890, + "end": 3903, + "loc": { + "start": { + "line": 89, + "column": 28 + }, + "end": { + "line": 89, + "column": 41 + }, + "identifierName": "createElement" + }, + "name": "createElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3904, + "end": 3907, + "loc": { + "start": { + "line": 89, + "column": 42 + }, + "end": { + "line": 89, + "column": 45 + } + }, + "extra": { + "rawValue": "a", + "raw": "'a'" + }, + "value": "a" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 3918, + "end": 3950, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 40 + } + }, + "expression": { + "type": "CallExpression", + "start": 3918, + "end": 3949, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 39 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3918, + "end": 3943, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 33 + } + }, + "object": { + "type": "MemberExpression", + "start": 3918, + "end": 3931, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 21 + } + }, + "object": { + "type": "Identifier", + "start": 3918, + "end": 3926, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 16 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 3927, + "end": 3931, + "loc": { + "start": { + "line": 90, + "column": 17 + }, + "end": { + "line": 90, + "column": 21 + }, + "identifierName": "body" + }, + "name": "body" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3932, + "end": 3943, + "loc": { + "start": { + "line": 90, + "column": 22 + }, + "end": { + "line": 90, + "column": 33 + }, + "identifierName": "appendChild" + }, + "name": "appendChild" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3944, + "end": 3948, + "loc": { + "start": { + "line": 90, + "column": 34 + }, + "end": { + "line": 90, + "column": 38 + }, + "identifierName": "link" + }, + "name": "link" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 3959, + "end": 3995, + "loc": { + "start": { + "line": 91, + "column": 8 + }, + "end": { + "line": 91, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 3959, + "end": 3994, + "loc": { + "start": { + "line": 91, + "column": 8 + }, + "end": { + "line": 91, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3959, + "end": 3976, + "loc": { + "start": { + "line": 91, + "column": 8 + }, + "end": { + "line": 91, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 3959, + "end": 3963, + "loc": { + "start": { + "line": 91, + "column": 8 + }, + "end": { + "line": 91, + "column": 12 + }, + "identifierName": "link" + }, + "name": "link" + }, + "property": { + "type": "Identifier", + "start": 3964, + "end": 3976, + "loc": { + "start": { + "line": 91, + "column": 13 + }, + "end": { + "line": 91, + "column": 25 + }, + "identifierName": "setAttribute" + }, + "name": "setAttribute" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3977, + "end": 3983, + "loc": { + "start": { + "line": 91, + "column": 26 + }, + "end": { + "line": 91, + "column": 32 + } + }, + "extra": { + "rawValue": "type", + "raw": "'type'" + }, + "value": "type" + }, + { + "type": "StringLiteral", + "start": 3985, + "end": 3993, + "loc": { + "start": { + "line": 91, + "column": 34 + }, + "end": { + "line": 91, + "column": 42 + } + }, + "extra": { + "rawValue": "hidden", + "raw": "'hidden'" + }, + "value": "hidden" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 4004, + "end": 4018, + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 22 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4004, + "end": 4017, + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 21 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4004, + "end": 4013, + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 4004, + "end": 4008, + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 12 + }, + "identifierName": "link" + }, + "name": "link" + }, + "property": { + "type": "Identifier", + "start": 4009, + "end": 4013, + "loc": { + "start": { + "line": 92, + "column": 13 + }, + "end": { + "line": 92, + "column": 17 + }, + "identifierName": "href" + }, + "name": "href" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 4016, + "end": 4017, + "loc": { + "start": { + "line": 92, + "column": 20 + }, + "end": { + "line": 92, + "column": 21 + }, + "identifierName": "e" + }, + "name": "e" + } + } + }, + { + "type": "ExpressionStatement", + "start": 4027, + "end": 4056, + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 93, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4027, + "end": 4055, + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 93, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4027, + "end": 4040, + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 93, + "column": 21 + } + }, + "object": { + "type": "Identifier", + "start": 4027, + "end": 4031, + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 93, + "column": 12 + }, + "identifierName": "link" + }, + "name": "link" + }, + "property": { + "type": "Identifier", + "start": 4032, + "end": 4040, + "loc": { + "start": { + "line": 93, + "column": 13 + }, + "end": { + "line": 93, + "column": 21 + }, + "identifierName": "download" + }, + "name": "download" + }, + "computed": false + }, + "right": { + "type": "StringLiteral", + "start": 4043, + "end": 4055, + "loc": { + "start": { + "line": 93, + "column": 24 + }, + "end": { + "line": 93, + "column": 36 + } + }, + "extra": { + "rawValue": "live2d.png", + "raw": "'live2d.png'" + }, + "value": "live2d.png" + } + } + }, + { + "type": "ExpressionStatement", + "start": 4065, + "end": 4078, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 94, + "column": 21 + } + }, + "expression": { + "type": "CallExpression", + "start": 4065, + "end": 4077, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 94, + "column": 20 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4065, + "end": 4075, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 94, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 4065, + "end": 4069, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 94, + "column": 12 + }, + "identifierName": "link" + }, + "name": "link" + }, + "property": { + "type": "Identifier", + "start": 4070, + "end": 4075, + "loc": { + "start": { + "line": 94, + "column": 13 + }, + "end": { + "line": 94, + "column": 18 + }, + "identifierName": "click" + }, + "name": "click" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * download current frame {@link L2Dwidget.captureFrame}\n * @return {null}\n ", + "start": 3717, + "end": 3799, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "EmptyStatement", + "start": 4100, + "end": 4101, + "loc": { + "start": { + "line": 99, + "column": 1 + }, + "end": { + "line": 99, + "column": 2 + } + } + }, + { + "type": "VariableDeclaration", + "start": 4103, + "end": 4127, + "loc": { + "start": { + "line": 101, + "column": 0 + }, + "end": { + "line": 101, + "column": 24 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4107, + "end": 4126, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 23 + } + }, + "id": { + "type": "Identifier", + "start": 4107, + "end": 4108, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 5 + }, + "identifierName": "_" + }, + "name": "_" + }, + "init": { + "type": "NewExpression", + "start": 4111, + "end": 4126, + "loc": { + "start": { + "line": 101, + "column": 8 + }, + "end": { + "line": 101, + "column": 23 + } + }, + "callee": { + "type": "Identifier", + "start": 4115, + "end": 4124, + "loc": { + "start": { + "line": 101, + "column": 12 + }, + "end": { + "line": 101, + "column": 21 + }, + "identifierName": "L2Dwidget" + }, + "name": "L2Dwidget" + }, + "arguments": [] + } + } + ], + "kind": "let" + }, + { + "type": "ExportNamedDeclaration", + "start": 4130, + "end": 4158, + "loc": { + "start": { + "line": 104, + "column": 0 + }, + "end": { + "line": 106, + "column": 1 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 4141, + "end": 4155, + "loc": { + "start": { + "line": 105, + "column": 2 + }, + "end": { + "line": 105, + "column": 16 + } + }, + "local": { + "type": "Identifier", + "start": 4141, + "end": 4142, + "loc": { + "start": { + "line": 105, + "column": 2 + }, + "end": { + "line": 105, + "column": 3 + }, + "identifierName": "_" + }, + "name": "_" + }, + "exported": { + "type": "Identifier", + "start": 4146, + "end": 4155, + "loc": { + "start": { + "line": 105, + "column": 7 + }, + "end": { + "line": 105, + "column": 16 + }, + "identifierName": "L2Dwidget" + }, + "name": "L2Dwidget" + } + } + ], + "source": null + }, + { + "type": "ExportNamedDeclaration", + "start": 4130, + "end": 4158, + "loc": { + "start": { + "line": 104, + "column": 0 + }, + "end": { + "line": 106, + "column": 1 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 545, + "end": 4100, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 99, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 551, + "end": 560, + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 15 + }, + "identifierName": "L2Dwidget" + }, + "name": "L2Dwidget", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 560, + "end": 4100, + "loc": { + "start": { + "line": 26, + "column": 15 + }, + "end": { + "line": 99, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 3169, + "end": 3465, + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 68, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3169, + "end": 3173, + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 57, + "column": 6 + }, + "identifierName": "init" + }, + "name": "init", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 3174, + "end": 3189, + "loc": { + "start": { + "line": 57, + "column": 7 + }, + "end": { + "line": 57, + "column": 22 + } + }, + "left": { + "type": "Identifier", + "start": 3174, + "end": 3184, + "loc": { + "start": { + "line": 57, + "column": 7 + }, + "end": { + "line": 57, + "column": 17 + }, + "identifierName": "userConfig" + }, + "name": "userConfig" + }, + "right": { + "type": "ObjectExpression", + "start": 3187, + "end": 3189, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 22 + } + }, + "properties": [] + } + } + ], + "body": { + "type": "BlockStatement", + "start": 3190, + "end": 3465, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 68, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3196, + "end": 3222, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 30 + } + }, + "expression": { + "type": "CallExpression", + "start": 3196, + "end": 3221, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 29 + } + }, + "callee": { + "type": "Identifier", + "start": 3196, + "end": 3209, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 17 + }, + "identifierName": "configApplyer" + }, + "name": "configApplyer" + }, + "arguments": [ + { + "type": "Identifier", + "start": 3210, + "end": 3220, + "loc": { + "start": { + "line": 58, + "column": 18 + }, + "end": { + "line": 58, + "column": 28 + }, + "identifierName": "userConfig" + }, + "name": "userConfig" + } + ] + } + }, + { + "type": "IfStatement", + "start": 3227, + "end": 3292, + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 3230, + "end": 3270, + "loc": { + "start": { + "line": 59, + "column": 7 + }, + "end": { + "line": 59, + "column": 47 + } + }, + "left": { + "type": "UnaryExpression", + "start": 3231, + "end": 3250, + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 27 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 3232, + "end": 3250, + "loc": { + "start": { + "line": 59, + "column": 9 + }, + "end": { + "line": 59, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 3232, + "end": 3245, + "loc": { + "start": { + "line": 59, + "column": 9 + }, + "end": { + "line": 59, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 3232, + "end": 3238, + "loc": { + "start": { + "line": 59, + "column": 9 + }, + "end": { + "line": 59, + "column": 15 + }, + "identifierName": "config" + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 3239, + "end": 3245, + "loc": { + "start": { + "line": 59, + "column": 16 + }, + "end": { + "line": 59, + "column": 22 + }, + "identifierName": "mobile" + }, + "name": "mobile" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3246, + "end": 3250, + "loc": { + "start": { + "line": 59, + "column": 23 + }, + "end": { + "line": 59, + "column": 27 + }, + "identifierName": "show" + }, + "name": "show" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false, + "parenthesized": true, + "parenStart": 3230 + } + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 3254, + "end": 3269, + "loc": { + "start": { + "line": 59, + "column": 31 + }, + "end": { + "line": 59, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3254, + "end": 3267, + "loc": { + "start": { + "line": 59, + "column": 31 + }, + "end": { + "line": 59, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 3254, + "end": 3260, + "loc": { + "start": { + "line": 59, + "column": 31 + }, + "end": { + "line": 59, + "column": 37 + }, + "identifierName": "device" + }, + "name": "device" + }, + "property": { + "type": "Identifier", + "start": 3261, + "end": 3267, + "loc": { + "start": { + "line": 59, + "column": 38 + }, + "end": { + "line": 59, + "column": 44 + }, + "identifierName": "mobile" + }, + "name": "mobile" + }, + "computed": false + }, + "arguments": [], + "extra": { + "parenthesized": true, + "parenStart": 3253 + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 3271, + "end": 3292, + "loc": { + "start": { + "line": 59, + "column": 48 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3279, + "end": 3286, + "loc": { + "start": { + "line": 60, + "column": 6 + }, + "end": { + "line": 60, + "column": 13 + } + }, + "argument": null + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 3297, + "end": 3461, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 67, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 3297, + "end": 3460, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 67, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3297, + "end": 3418, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 65, + "column": 12 + } + }, + "object": { + "type": "CallExpression", + "start": 3297, + "end": 3412, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 65, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3297, + "end": 3350, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 57 + } + }, + "object": { + "type": "CallExpression", + "start": 3297, + "end": 3345, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 52 + } + }, + "callee": { + "type": "Import", + "start": 3297, + "end": 3303, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3330, + "end": 3344, + "loc": { + "start": { + "line": 62, + "column": 37 + }, + "end": { + "line": 62, + "column": 51 + } + }, + "extra": { + "rawValue": "./cLive2DApp", + "raw": "'./cLive2DApp'" + }, + "value": "./cLive2DApp", + "leadingComments": [ + { + "type": "CommentBlock", + "value": " webpackMode: 'lazy' ", + "start": 3304, + "end": 3329, + "loc": { + "start": { + "line": 62, + "column": 11 + }, + "end": { + "line": 62, + "column": 36 + } + } + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 3346, + "end": 3350, + "loc": { + "start": { + "line": 62, + "column": 53 + }, + "end": { + "line": 62, + "column": 57 + }, + "identifierName": "then" + }, + "name": "then" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3351, + "end": 3411, + "loc": { + "start": { + "line": 62, + "column": 58 + }, + "end": { + "line": 65, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3351, + "end": 3352, + "loc": { + "start": { + "line": 62, + "column": 58 + }, + "end": { + "line": 62, + "column": 59 + }, + "identifierName": "f" + }, + "name": "f" + } + ], + "body": { + "type": "BlockStatement", + "start": 3356, + "end": 3411, + "loc": { + "start": { + "line": 62, + "column": 63 + }, + "end": { + "line": 65, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3364, + "end": 3376, + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 18 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3364, + "end": 3375, + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 17 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 3364, + "end": 3371, + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 13 + }, + "identifierName": "coreApp" + }, + "name": "coreApp" + }, + "right": { + "type": "Identifier", + "start": 3374, + "end": 3375, + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 17 + }, + "identifierName": "f" + }, + "name": "f" + } + } + }, + { + "type": "ExpressionStatement", + "start": 3383, + "end": 3405, + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 28 + } + }, + "expression": { + "type": "CallExpression", + "start": 3383, + "end": 3404, + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 27 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3383, + "end": 3402, + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 3383, + "end": 3390, + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 13 + }, + "identifierName": "coreApp" + }, + "name": "coreApp" + }, + "property": { + "type": "Identifier", + "start": 3391, + "end": 3402, + "loc": { + "start": { + "line": 64, + "column": 14 + }, + "end": { + "line": 64, + "column": 25 + }, + "identifierName": "theRealInit" + }, + "name": "theRealInit" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [] + } + } + ] + }, + "property": { + "type": "Identifier", + "start": 3413, + "end": 3418, + "loc": { + "start": { + "line": 65, + "column": 7 + }, + "end": { + "line": 65, + "column": 12 + }, + "identifierName": "catch" + }, + "name": "catch" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 3419, + "end": 3459, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 67, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3419, + "end": 3422, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 16 + }, + "identifierName": "err" + }, + "name": "err" + } + ], + "body": { + "type": "BlockStatement", + "start": 3426, + "end": 3459, + "loc": { + "start": { + "line": 65, + "column": 20 + }, + "end": { + "line": 67, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3434, + "end": 3453, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 25 + } + }, + "expression": { + "type": "CallExpression", + "start": 3434, + "end": 3452, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 24 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3434, + "end": 3447, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 3434, + "end": 3441, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 3442, + "end": 3447, + "loc": { + "start": { + "line": 66, + "column": 14 + }, + "end": { + "line": 66, + "column": 19 + }, + "identifierName": "error" + }, + "name": "error" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3448, + "end": 3451, + "loc": { + "start": { + "line": 66, + "column": 20 + }, + "end": { + "line": 66, + "column": 23 + }, + "identifierName": "err" + }, + "name": "err" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * The init function\n * @param {Object} [userConfig] User's custom config 用户自定义设置\n * @param {String} [userConfig.model.jsonPath = ''] Path to Live2D model's main json eg. `https://test.com/miku.model.json` model主文件路径\n * @param {Number} [userConfig.model.scale = 1] Scale between the model and the canvas 模型与canvas的缩放\n * @param {Number} [userConfig.model.hHeadPos = 0.5] Horizontal position of model's head 模型头部横坐标\n * @param {Number} [userConfig.model.vHeadPos = 0.618] Vertical position of model's head 模型头部纵坐标\n * @param {Array} [userConfig.model.myDefine = []] User's custom Defines which will override LDefine 自定义的LDefine\n * @param {Number} [userConfig.display.superSample = 2] rate for super sampling rate 超采样等级\n * @param {Number} [userConfig.display.width = 150] Width to the canvas which shows the model canvas的长度\n * @param {Number} [userConfig.display.height = 300] Height to the canvas which shows the model canvas的高度\n * @param {String} [userConfig.display.position = 'right'] Left of right side to show 显示位置:左或右\n * @param {Number} [userConfig.display.hOffset = 0] Horizontal offset of the canvas canvas水平偏移\n * @param {Number} [userConfig.display.vOffset = -20] Vertical offset of the canvas canvas垂直偏移\n * @param {Boolean} [userConfig.mobile.show = true] Whether to show on mobile device 是否在移动设备上显示\n * @param {Number} [userConfig.mobile.scale = 0.5] Scale on mobile device 移动设备上的缩放\n * @param {Boolean} [userConfig.mobile.motion = true] Whether to enable motion detection on mobile devices 移动设备是否开启重力感应\n * @param {String} [userConfig.name.canvas = 'live2dcanvas'] ID name of the canvas canvas元素的ID\n * @param {String} [userConfig.name.div = 'live2d-widget'] ID name of the div div元素的ID\n * @param {Number} [userConfig.react.opacityDefault = 0.7] Default opacity 默认透明度\n * @param {Number} [userConfig.react.opacityOnHover = 0.2] OnHover opacity 鼠标移上透明度\n * @param {Function} [userConfig.react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器\n * @param {Boolean} [userConfig.dev.log = false] Whether to show log 显示日志\n * @param {Boolean} [userConfig.dev.border = false] Whether to show border around the canvas 在canvas周围显示边界\n * @param {Boolean} [userConfig.dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动\n * @param {Function} [userConfig.dev.mouseFunc = func(x, y, ix, iy)] Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数\n * @return {null}\n ", + "start": 563, + "end": 3165, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 55, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Capture current frame to png file {@link captureFrame}\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n ", + "start": 3468, + "end": 3641, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 75, + "column": 3 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 3645, + "end": 3715, + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 79, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3645, + "end": 3657, + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 77, + "column": 14 + }, + "identifierName": "captureFrame" + }, + "name": "captureFrame", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3658, + "end": 3666, + "loc": { + "start": { + "line": 77, + "column": 15 + }, + "end": { + "line": 77, + "column": 23 + }, + "identifierName": "callback" + }, + "name": "callback" + } + ], + "body": { + "type": "BlockStatement", + "start": 3667, + "end": 3715, + "loc": { + "start": { + "line": 77, + "column": 24 + }, + "end": { + "line": 79, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3673, + "end": 3711, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 42 + } + }, + "argument": { + "type": "CallExpression", + "start": 3680, + "end": 3710, + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3680, + "end": 3700, + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 3680, + "end": 3687, + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 18 + }, + "identifierName": "coreApp" + }, + "name": "coreApp" + }, + "property": { + "type": "Identifier", + "start": 3688, + "end": 3700, + "loc": { + "start": { + "line": 78, + "column": 19 + }, + "end": { + "line": 78, + "column": 31 + }, + "identifierName": "captureFrame" + }, + "name": "captureFrame" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3701, + "end": 3709, + "loc": { + "start": { + "line": 78, + "column": 32 + }, + "end": { + "line": 78, + "column": 40 + }, + "identifierName": "callback" + }, + "name": "callback" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Capture current frame to png file {@link captureFrame}\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n ", + "start": 3468, + "end": 3641, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 75, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * download current frame {@link L2Dwidget.captureFrame}\n * @return {null}\n ", + "start": 3717, + "end": 3799, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 3803, + "end": 4097, + "loc": { + "start": { + "line": 86, + "column": 2 + }, + "end": { + "line": 97, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3803, + "end": 3816, + "loc": { + "start": { + "line": 86, + "column": 2 + }, + "end": { + "line": 86, + "column": 15 + }, + "identifierName": "downloadFrame" + }, + "name": "downloadFrame", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 3818, + "end": 4097, + "loc": { + "start": { + "line": 86, + "column": 17 + }, + "end": { + "line": 97, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3824, + "end": 4093, + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 96, + "column": 6 + } + }, + "expression": { + "type": "CallExpression", + "start": 3824, + "end": 4092, + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 96, + "column": 5 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3824, + "end": 3841, + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 3824, + "end": 3828, + "loc": { + "start": { + "line": 87, + "column": 4 + }, + "end": { + "line": 87, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 3829, + "end": 3841, + "loc": { + "start": { + "line": 87, + "column": 9 + }, + "end": { + "line": 87, + "column": 21 + }, + "identifierName": "captureFrame" + }, + "name": "captureFrame" + }, + "computed": false + }, + "arguments": [ + { + "type": "FunctionExpression", + "start": 3849, + "end": 4086, + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 95, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3858, + "end": 3859, + "loc": { + "start": { + "line": 88, + "column": 15 + }, + "end": { + "line": 88, + "column": 16 + }, + "identifierName": "e" + }, + "name": "e" + } + ], + "body": { + "type": "BlockStatement", + "start": 3860, + "end": 4086, + "loc": { + "start": { + "line": 88, + "column": 17 + }, + "end": { + "line": 95, + "column": 7 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 3870, + "end": 3909, + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 89, + "column": 47 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3874, + "end": 3908, + "loc": { + "start": { + "line": 89, + "column": 12 + }, + "end": { + "line": 89, + "column": 46 + } + }, + "id": { + "type": "Identifier", + "start": 3874, + "end": 3878, + "loc": { + "start": { + "line": 89, + "column": 12 + }, + "end": { + "line": 89, + "column": 16 + }, + "identifierName": "link" + }, + "name": "link" + }, + "init": { + "type": "CallExpression", + "start": 3881, + "end": 3908, + "loc": { + "start": { + "line": 89, + "column": 19 + }, + "end": { + "line": 89, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3881, + "end": 3903, + "loc": { + "start": { + "line": 89, + "column": 19 + }, + "end": { + "line": 89, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 3881, + "end": 3889, + "loc": { + "start": { + "line": 89, + "column": 19 + }, + "end": { + "line": 89, + "column": 27 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 3890, + "end": 3903, + "loc": { + "start": { + "line": 89, + "column": 28 + }, + "end": { + "line": 89, + "column": 41 + }, + "identifierName": "createElement" + }, + "name": "createElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3904, + "end": 3907, + "loc": { + "start": { + "line": 89, + "column": 42 + }, + "end": { + "line": 89, + "column": 45 + } + }, + "extra": { + "rawValue": "a", + "raw": "'a'" + }, + "value": "a" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 3918, + "end": 3950, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 40 + } + }, + "expression": { + "type": "CallExpression", + "start": 3918, + "end": 3949, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 39 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3918, + "end": 3943, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 33 + } + }, + "object": { + "type": "MemberExpression", + "start": 3918, + "end": 3931, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 21 + } + }, + "object": { + "type": "Identifier", + "start": 3918, + "end": 3926, + "loc": { + "start": { + "line": 90, + "column": 8 + }, + "end": { + "line": 90, + "column": 16 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 3927, + "end": 3931, + "loc": { + "start": { + "line": 90, + "column": 17 + }, + "end": { + "line": 90, + "column": 21 + }, + "identifierName": "body" + }, + "name": "body" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3932, + "end": 3943, + "loc": { + "start": { + "line": 90, + "column": 22 + }, + "end": { + "line": 90, + "column": 33 + }, + "identifierName": "appendChild" + }, + "name": "appendChild" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3944, + "end": 3948, + "loc": { + "start": { + "line": 90, + "column": 34 + }, + "end": { + "line": 90, + "column": 38 + }, + "identifierName": "link" + }, + "name": "link" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 3959, + "end": 3995, + "loc": { + "start": { + "line": 91, + "column": 8 + }, + "end": { + "line": 91, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 3959, + "end": 3994, + "loc": { + "start": { + "line": 91, + "column": 8 + }, + "end": { + "line": 91, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3959, + "end": 3976, + "loc": { + "start": { + "line": 91, + "column": 8 + }, + "end": { + "line": 91, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 3959, + "end": 3963, + "loc": { + "start": { + "line": 91, + "column": 8 + }, + "end": { + "line": 91, + "column": 12 + }, + "identifierName": "link" + }, + "name": "link" + }, + "property": { + "type": "Identifier", + "start": 3964, + "end": 3976, + "loc": { + "start": { + "line": 91, + "column": 13 + }, + "end": { + "line": 91, + "column": 25 + }, + "identifierName": "setAttribute" + }, + "name": "setAttribute" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3977, + "end": 3983, + "loc": { + "start": { + "line": 91, + "column": 26 + }, + "end": { + "line": 91, + "column": 32 + } + }, + "extra": { + "rawValue": "type", + "raw": "'type'" + }, + "value": "type" + }, + { + "type": "StringLiteral", + "start": 3985, + "end": 3993, + "loc": { + "start": { + "line": 91, + "column": 34 + }, + "end": { + "line": 91, + "column": 42 + } + }, + "extra": { + "rawValue": "hidden", + "raw": "'hidden'" + }, + "value": "hidden" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 4004, + "end": 4018, + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 22 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4004, + "end": 4017, + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 21 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4004, + "end": 4013, + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 4004, + "end": 4008, + "loc": { + "start": { + "line": 92, + "column": 8 + }, + "end": { + "line": 92, + "column": 12 + }, + "identifierName": "link" + }, + "name": "link" + }, + "property": { + "type": "Identifier", + "start": 4009, + "end": 4013, + "loc": { + "start": { + "line": 92, + "column": 13 + }, + "end": { + "line": 92, + "column": 17 + }, + "identifierName": "href" + }, + "name": "href" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 4016, + "end": 4017, + "loc": { + "start": { + "line": 92, + "column": 20 + }, + "end": { + "line": 92, + "column": 21 + }, + "identifierName": "e" + }, + "name": "e" + } + } + }, + { + "type": "ExpressionStatement", + "start": 4027, + "end": 4056, + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 93, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4027, + "end": 4055, + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 93, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4027, + "end": 4040, + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 93, + "column": 21 + } + }, + "object": { + "type": "Identifier", + "start": 4027, + "end": 4031, + "loc": { + "start": { + "line": 93, + "column": 8 + }, + "end": { + "line": 93, + "column": 12 + }, + "identifierName": "link" + }, + "name": "link" + }, + "property": { + "type": "Identifier", + "start": 4032, + "end": 4040, + "loc": { + "start": { + "line": 93, + "column": 13 + }, + "end": { + "line": 93, + "column": 21 + }, + "identifierName": "download" + }, + "name": "download" + }, + "computed": false + }, + "right": { + "type": "StringLiteral", + "start": 4043, + "end": 4055, + "loc": { + "start": { + "line": 93, + "column": 24 + }, + "end": { + "line": 93, + "column": 36 + } + }, + "extra": { + "rawValue": "live2d.png", + "raw": "'live2d.png'" + }, + "value": "live2d.png" + } + } + }, + { + "type": "ExpressionStatement", + "start": 4065, + "end": 4078, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 94, + "column": 21 + } + }, + "expression": { + "type": "CallExpression", + "start": 4065, + "end": 4077, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 94, + "column": 20 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4065, + "end": 4075, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 94, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 4065, + "end": 4069, + "loc": { + "start": { + "line": 94, + "column": 8 + }, + "end": { + "line": 94, + "column": 12 + }, + "identifierName": "link" + }, + "name": "link" + }, + "property": { + "type": "Identifier", + "start": 4070, + "end": 4075, + "loc": { + "start": { + "line": 94, + "column": 13 + }, + "end": { + "line": 94, + "column": 18 + }, + "identifierName": "click" + }, + "name": "click" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * download current frame {@link L2Dwidget.captureFrame}\n * @return {null}\n ", + "start": 3717, + "end": 3799, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * The main entry point, which is ... nothing\n ", + "start": 490, + "end": 543, + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 24, + "column": 3 + } + } + } + ], + "__PseudoExport__": false, + "trailingComments": [] + }, + "specifiers": null, + "source": null, + "leadingComments": null + } + ], + "directives": [ + { + "type": "Directive", + "start": 196, + "end": 209, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 13 + } + }, + "value": { + "type": "DirectiveLiteral", + "start": 196, + "end": 208, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 12 + } + }, + "value": "use strict", + "extra": { + "raw": "'use strict'", + "rawValue": "use strict" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Created by xiazeyu.", + "start": 0, + "end": 22, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 22 + } + } + }, + { + "type": "CommentLine", + "value": "//////////////////////////////////", + "start": 24, + "end": 60, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 36 + } + } + }, + { + "type": "CommentLine", + "value": " Celebrate for the 3.0 version! //", + "start": 61, + "end": 97, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 36 + } + } + }, + { + "type": "CommentLine", + "value": "//////////////////////////////////", + "start": 98, + "end": 134, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 36 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @description The entry point of live2d-widget.\n ", + "start": 136, + "end": 193, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + } + ] + }, + "comments": [ + { + "type": "CommentLine", + "value": " Created by xiazeyu.", + "start": 0, + "end": 22, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 22 + } + } + }, + { + "type": "CommentLine", + "value": "//////////////////////////////////", + "start": 24, + "end": 60, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 36 + } + } + }, + { + "type": "CommentLine", + "value": " Celebrate for the 3.0 version! //", + "start": 61, + "end": 97, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 36 + } + } + }, + { + "type": "CommentLine", + "value": "//////////////////////////////////", + "start": 98, + "end": 134, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 36 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @description The entry point of live2d-widget.\n ", + "start": 136, + "end": 193, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * The main entry point, which is ... nothing\n ", + "start": 490, + "end": 543, + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 24, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * The init function\n * @param {Object} [userConfig] User's custom config 用户自定义设置\n * @param {String} [userConfig.model.jsonPath = ''] Path to Live2D model's main json eg. `https://test.com/miku.model.json` model主文件路径\n * @param {Number} [userConfig.model.scale = 1] Scale between the model and the canvas 模型与canvas的缩放\n * @param {Number} [userConfig.model.hHeadPos = 0.5] Horizontal position of model's head 模型头部横坐标\n * @param {Number} [userConfig.model.vHeadPos = 0.618] Vertical position of model's head 模型头部纵坐标\n * @param {Array} [userConfig.model.myDefine = []] User's custom Defines which will override LDefine 自定义的LDefine\n * @param {Number} [userConfig.display.superSample = 2] rate for super sampling rate 超采样等级\n * @param {Number} [userConfig.display.width = 150] Width to the canvas which shows the model canvas的长度\n * @param {Number} [userConfig.display.height = 300] Height to the canvas which shows the model canvas的高度\n * @param {String} [userConfig.display.position = 'right'] Left of right side to show 显示位置:左或右\n * @param {Number} [userConfig.display.hOffset = 0] Horizontal offset of the canvas canvas水平偏移\n * @param {Number} [userConfig.display.vOffset = -20] Vertical offset of the canvas canvas垂直偏移\n * @param {Boolean} [userConfig.mobile.show = true] Whether to show on mobile device 是否在移动设备上显示\n * @param {Number} [userConfig.mobile.scale = 0.5] Scale on mobile device 移动设备上的缩放\n * @param {Boolean} [userConfig.mobile.motion = true] Whether to enable motion detection on mobile devices 移动设备是否开启重力感应\n * @param {String} [userConfig.name.canvas = 'live2dcanvas'] ID name of the canvas canvas元素的ID\n * @param {String} [userConfig.name.div = 'live2d-widget'] ID name of the div div元素的ID\n * @param {Number} [userConfig.react.opacityDefault = 0.7] Default opacity 默认透明度\n * @param {Number} [userConfig.react.opacityOnHover = 0.2] OnHover opacity 鼠标移上透明度\n * @param {Function} [userConfig.react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器\n * @param {Boolean} [userConfig.dev.log = false] Whether to show log 显示日志\n * @param {Boolean} [userConfig.dev.border = false] Whether to show border around the canvas 在canvas周围显示边界\n * @param {Boolean} [userConfig.dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动\n * @param {Function} [userConfig.dev.mouseFunc = func(x, y, ix, iy)] Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数\n * @return {null}\n ", + "start": 563, + "end": 3165, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 55, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": " webpackMode: 'lazy' ", + "start": 3304, + "end": 3329, + "loc": { + "start": { + "line": 62, + "column": 11 + }, + "end": { + "line": 62, + "column": 36 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Capture current frame to png file {@link captureFrame}\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n ", + "start": 3468, + "end": 3641, + "loc": { + "start": { + "line": 71, + "column": 0 + }, + "end": { + "line": 75, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * download current frame {@link L2Dwidget.captureFrame}\n * @return {null}\n ", + "start": 3717, + "end": 3799, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentLine", + "value": " Created by xiazeyu.", + "start": 0, + "end": 22, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 22 + } + } + }, + { + "type": "CommentLine", + "value": "//////////////////////////////////", + "start": 24, + "end": 60, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 36 + } + } + }, + { + "type": "CommentLine", + "value": " Celebrate for the 3.0 version! //", + "start": 61, + "end": 97, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 36 + } + } + }, + { + "type": "CommentLine", + "value": "//////////////////////////////////", + "start": 98, + "end": 134, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 36 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @description The entry point of live2d-widget.\n ", + "start": 136, + "end": 193, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "use strict", + "start": 196, + "end": 208, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 12 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 208, + "end": 209, + "loc": { + "start": { + "line": 12, + "column": 12 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 211, + "end": 217, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "device", + "start": 218, + "end": 224, + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 225, + "end": 229, + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "current-device", + "start": 230, + "end": 246, + "loc": { + "start": { + "line": 14, + "column": 19 + }, + "end": { + "line": 14, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 246, + "end": 247, + "loc": { + "start": { + "line": 14, + "column": 35 + }, + "end": { + "line": 14, + "column": 36 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 248, + "end": 254, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 255, + "end": 256, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 257, + "end": 263, + "loc": { + "start": { + "line": 15, + "column": 9 + }, + "end": { + "line": 15, + "column": 15 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 263, + "end": 264, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "configApplyer", + "start": 265, + "end": 278, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 30 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 279, + "end": 280, + "loc": { + "start": { + "line": 15, + "column": 31 + }, + "end": { + "line": 15, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 280, + "end": 284, + "loc": { + "start": { + "line": 15, + "column": 32 + }, + "end": { + "line": 15, + "column": 36 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./config/configMgr", + "start": 285, + "end": 305, + "loc": { + "start": { + "line": 15, + "column": 37 + }, + "end": { + "line": 15, + "column": 57 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 305, + "end": 306, + "loc": { + "start": { + "line": 15, + "column": 57 + }, + "end": { + "line": 15, + "column": 58 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 308, + "end": 310, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 17, + "column": 2 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 311, + "end": 312, + "loc": { + "start": { + "line": 17, + "column": 3 + }, + "end": { + "line": 17, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "process", + "start": 312, + "end": 319, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 319, + "end": 320, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "env", + "start": 320, + "end": 323, + "loc": { + "start": { + "line": 17, + "column": 12 + }, + "end": { + "line": 17, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 323, + "end": 324, + "loc": { + "start": { + "line": 17, + "column": 15 + }, + "end": { + "line": 17, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NODE_ENV", + "start": 324, + "end": 332, + "loc": { + "start": { + "line": 17, + "column": 16 + }, + "end": { + "line": 17, + "column": 24 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 333, + "end": 336, + "loc": { + "start": { + "line": 17, + "column": 25 + }, + "end": { + "line": 17, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "development", + "start": 337, + "end": 350, + "loc": { + "start": { + "line": 17, + "column": 29 + }, + "end": { + "line": 17, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 350, + "end": 351, + "loc": { + "start": { + "line": 17, + "column": 42 + }, + "end": { + "line": 17, + "column": 43 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 351, + "end": 352, + "loc": { + "start": { + "line": 17, + "column": 43 }, - "specifiers": null, - "source": null, - "leadingComments": null + "end": { + "line": 17, + "column": 44 + } } - ], - "directives": [ - { - "type": "Directive", - "start": 196, - "end": 209, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 13 - } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 355, + "end": 362, + "loc": { + "start": { + "line": 18, + "column": 2 }, - "value": { - "type": "DirectiveLiteral", - "start": 196, - "end": 208, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 12, - "column": 12 - } - }, - "value": "use strict", - "extra": { - "raw": "'use strict'", - "rawValue": "use strict" - }, - "leadingComments": null + "end": { + "line": 18, + "column": 9 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 362, + "end": 363, + "loc": { + "start": { + "line": 18, + "column": 9 }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Created by xiazeyu.", - "start": 0, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 22 - } - } - }, - { - "type": "CommentLine", - "value": "//////////////////////////////////", - "start": 24, - "end": 60, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 36 - } - } - }, - { - "type": "CommentLine", - "value": " Celebrate for the 3.0 version! //", - "start": 61, - "end": 97, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, - "column": 36 - } - } - }, - { - "type": "CommentLine", - "value": "//////////////////////////////////", - "start": 98, - "end": 134, - "loc": { - "start": { - "line": 5, - "column": 0 - }, - "end": { - "line": 5, - "column": 36 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @description The entry point of live2d-widget.\n ", - "start": 136, - "end": 193, - "loc": { - "start": { - "line": 7, - "column": 0 - }, - "end": { - "line": 9, - "column": 3 - } - } - } - ] + "end": { + "line": 18, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 363, + "end": 366, + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 366, + "end": 367, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "--- --- --- --- ---\nLive2Dwidget: Hey that, notice that you are now in DEV MODE.\n--- --- --- --- ---", + "start": 367, + "end": 471, + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 118 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 471, + "end": 472, + "loc": { + "start": { + "line": 18, + "column": 118 + }, + "end": { + "line": 18, + "column": 119 + } } - ] - }, - "comments": [ + }, { - "type": "CommentLine", - "value": " Created by xiazeyu.", - "start": 0, - "end": 22, + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 472, + "end": 473, "loc": { "start": { - "line": 1, + "line": 18, + "column": 119 + }, + "end": { + "line": 18, + "column": 120 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 474, + "end": 475, + "loc": { + "start": { + "line": 19, "column": 0 }, "end": { - "line": 1, - "column": 22 + "line": 19, + "column": 1 } } }, { - "type": "CommentLine", - "value": "//////////////////////////////////", - "start": 24, - "end": 60, + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 477, + "end": 480, "loc": { "start": { - "line": 3, + "line": 21, "column": 0 }, "end": { - "line": 3, - "column": 36 + "line": 21, + "column": 3 } } }, { - "type": "CommentLine", - "value": " Celebrate for the 3.0 version! //", - "start": 61, - "end": 97, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "coreApp", + "start": 481, + "end": 488, "loc": { "start": { - "line": 4, + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 11 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 488, + "end": 489, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 12 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * The main entry point, which is ... nothing\n ", + "start": 490, + "end": 543, + "loc": { + "start": { + "line": 22, "column": 0 }, "end": { - "line": 4, - "column": 36 + "line": 24, + "column": 3 } } }, { - "type": "CommentLine", - "value": "//////////////////////////////////", - "start": 98, - "end": 134, + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 545, + "end": 550, "loc": { "start": { - "line": 5, + "line": 26, "column": 0 }, "end": { - "line": 5, - "column": 36 + "line": 26, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "L2Dwidget", + "start": 551, + "end": 560, + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 15 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 560, + "end": 561, + "loc": { + "start": { + "line": 26, + "column": 15 + }, + "end": { + "line": 26, + "column": 16 } } }, { "type": "CommentBlock", - "value": "*\n * @description The entry point of live2d-widget.\n ", - "start": 136, - "end": 193, + "value": "*\n * The init function\n * @param {Object} [userConfig] User's custom config 用户自定义设置\n * @param {String} [userConfig.model.jsonPath = ''] Path to Live2D model's main json eg. `https://test.com/miku.model.json` model主文件路径\n * @param {Number} [userConfig.model.scale = 1] Scale between the model and the canvas 模型与canvas的缩放\n * @param {Number} [userConfig.model.hHeadPos = 0.5] Horizontal position of model's head 模型头部横坐标\n * @param {Number} [userConfig.model.vHeadPos = 0.618] Vertical position of model's head 模型头部纵坐标\n * @param {Array} [userConfig.model.myDefine = []] User's custom Defines which will override LDefine 自定义的LDefine\n * @param {Number} [userConfig.display.superSample = 2] rate for super sampling rate 超采样等级\n * @param {Number} [userConfig.display.width = 150] Width to the canvas which shows the model canvas的长度\n * @param {Number} [userConfig.display.height = 300] Height to the canvas which shows the model canvas的高度\n * @param {String} [userConfig.display.position = 'right'] Left of right side to show 显示位置:左或右\n * @param {Number} [userConfig.display.hOffset = 0] Horizontal offset of the canvas canvas水平偏移\n * @param {Number} [userConfig.display.vOffset = -20] Vertical offset of the canvas canvas垂直偏移\n * @param {Boolean} [userConfig.mobile.show = true] Whether to show on mobile device 是否在移动设备上显示\n * @param {Number} [userConfig.mobile.scale = 0.5] Scale on mobile device 移动设备上的缩放\n * @param {Boolean} [userConfig.mobile.motion = true] Whether to enable motion detection on mobile devices 移动设备是否开启重力感应\n * @param {String} [userConfig.name.canvas = 'live2dcanvas'] ID name of the canvas canvas元素的ID\n * @param {String} [userConfig.name.div = 'live2d-widget'] ID name of the div div元素的ID\n * @param {Number} [userConfig.react.opacityDefault = 0.7] Default opacity 默认透明度\n * @param {Number} [userConfig.react.opacityOnHover = 0.2] OnHover opacity 鼠标移上透明度\n * @param {Function} [userConfig.react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器\n * @param {Boolean} [userConfig.dev.log = false] Whether to show log 显示日志\n * @param {Boolean} [userConfig.dev.border = false] Whether to show border around the canvas 在canvas周围显示边界\n * @param {Boolean} [userConfig.dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动\n * @param {Function} [userConfig.dev.mouseFunc = func(x, y, ix, iy)] Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数\n * @return {null}\n ", + "start": 563, + "end": 3165, "loc": { "start": { - "line": 7, + "line": 28, "column": 0 }, "end": { - "line": 9, + "line": 55, "column": 3 } } }, { - "type": "CommentBlock", - "value": "*\n * The main entry point, which ... is nothing\n ", - "start": 476, - "end": 529, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "init", + "start": 3169, + "end": 3173, + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 57, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3173, + "end": 3174, "loc": { "start": { - "line": 22, - "column": 0 + "line": 57, + "column": 6 }, "end": { - "line": 24, - "column": 3 + "line": 57, + "column": 7 } } }, { - "type": "CommentBlock", - "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config 用户自定义设置\n * @param {String} [userConfig.model.jsonPath = ''] Path to Live2D model's main json eg. `https://test.com/miku.model.json` model主文件路径\n * @param {Number} [userConfig.model.scale = 1] Scale between the model and the canvas 模型与canvas的缩放\n * @param {Number} [userConfig.model.hHeadPos = 0.5] Horizontal position of model's head 模型头部横坐标\n * @param {Number} [userConfig.model.vHeadPos = 0.618] Vertical position of model's head 模型头部纵坐标\n * @param {Array} [userConfig.model.myDefine = []] User's custom Defines which will override LDefine 自定义的LDefine\n * @param {Number} [userConfig.display.superSample = 2] rate for super sampling rate 超采样等级\n * @param {Number} [userConfig.display.width = 150] Width to the canvas which shows the model canvas的长度\n * @param {Number} [userConfig.display.height = 300] Height to the canvas which shows the model canvas的高度\n * @param {String} [userConfig.display.position = 'right'] Left of right side to show 显示位置:左或右\n * @param {Number} [userConfig.display.hOffset = 0] Horizontal offset of the canvas canvas水平偏移\n * @param {Number} [userConfig.display.vOffset = -20] Vertical offset of the canvas canvas垂直偏移\n * @param {Boolean} [userConfig.mobile.show = true] Whether to show on mobile device 是否在移动设备上显示\n * @param {Number} [userConfig.mobile.scale = 0.5] Scale on mobile device 移动设备上的缩放\n * @param {Boolean} [userConfig.mobile.motion = true] Whether to enable motion detection on mobile devices 移动设备是否开启重力感应\n * @param {String} [userConfig.name.canvas = 'live2dcanvas'] ID name of the canvas canvas元素的ID\n * @param {String} [userConfig.name.div = 'live2d-widget'] ID name of the div div元素的ID\n * @param {Number} [userConfig.react.opacityDefault = 0.7] Default opacity 默认透明度\n * @param {Number} [userConfig.react.opacityOnHover = 0.2] OnHover opacity 鼠标移上透明度\n * @param {Function} [userConfig.react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器\n * @param {Boolean} [userConfig.dev.log = false] Whether to show log 显示日志\n * @param {Boolean} [userConfig.dev.border = false] Whether to show border around the canvas 在canvas周围显示边界\n * @param {Boolean} [userConfig.dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动\n * @param {Function} [userConfig.dev.mouseFunc = func(x, y, ix, iy)] Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数\n * @return {null}\n ", - "start": 556, - "end": 3163, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "userConfig", + "start": 3174, + "end": 3184, "loc": { "start": { - "line": 28, - "column": 0 + "line": 57, + "column": 7 }, "end": { - "line": 55, - "column": 3 + "line": 57, + "column": 17 } } }, { - "type": "CommentBlock", - "value": " webpackMode: \"lazy\" ", - "start": 3374, - "end": 3399, + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3185, + "end": 3186, "loc": { "start": { - "line": 67, - "column": 9 + "line": 57, + "column": 18 }, "end": { - "line": 67, - "column": 34 + "line": 57, + "column": 19 } } }, { - "type": "CommentBlock", - "value": "*\n * Return the data URI of current frame, MINE type is image/png.\n * @return {DOMString} Which contains data URI, MINE type is image/png\n * @example\n * You can use codes below to let the user download the current frame\n *\n * let link = document.createElement('a');\n * link.innerHTML = 'Download image';\n * link.href = L2Dwidget.captureFrame();\n * link.download = 'live2d.png';\n * link.click();\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n ", - "start": 3526, - "end": 4056, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3187, + "end": 3188, "loc": { "start": { - "line": 76, - "column": 0 + "line": 57, + "column": 20 }, "end": { - "line": 89, - "column": 3 + "line": 57, + "column": 21 } } - } - ], - "tokens": [ + }, { - "type": "CommentLine", - "value": " Created by xiazeyu.", - "start": 0, - "end": 22, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3188, + "end": 3189, "loc": { "start": { - "line": 1, - "column": 0 + "line": 57, + "column": 21 }, "end": { - "line": 1, + "line": 57, "column": 22 } } }, { - "type": "CommentLine", - "value": "//////////////////////////////////", - "start": 24, - "end": 60, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3189, + "end": 3190, "loc": { "start": { - "line": 3, - "column": 0 + "line": 57, + "column": 22 }, "end": { - "line": 3, - "column": 36 + "line": 57, + "column": 23 } } }, { - "type": "CommentLine", - "value": " Celebrate for the 3.0 version! //", - "start": 61, - "end": 97, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3190, + "end": 3191, "loc": { "start": { - "line": 4, - "column": 0 + "line": 57, + "column": 23 }, "end": { - "line": 4, - "column": 36 + "line": 57, + "column": 24 } } }, { - "type": "CommentLine", - "value": "//////////////////////////////////", - "start": 98, - "end": 134, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "configApplyer", + "start": 3196, + "end": 3209, "loc": { "start": { - "line": 5, - "column": 0 + "line": 58, + "column": 4 }, "end": { - "line": 5, - "column": 36 + "line": 58, + "column": 17 } } }, { - "type": "CommentBlock", - "value": "*\n * @description The entry point of live2d-widget.\n ", - "start": 136, - "end": 193, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3209, + "end": 3210, "loc": { "start": { - "line": 7, - "column": 0 + "line": 58, + "column": 17 }, "end": { - "line": 9, - "column": 3 + "line": 58, + "column": 18 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -2583,55 +6782,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "use strict", - "start": 196, - "end": 208, + "value": "userConfig", + "start": 3210, + "end": 3220, "loc": { "start": { - "line": 12, - "column": 0 + "line": 58, + "column": 18 }, "end": { - "line": 12, - "column": 12 + "line": 58, + "column": 28 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 208, - "end": 209, + "start": 3220, + "end": 3221, "loc": { "start": { - "line": 12, - "column": 12 + "line": 58, + "column": 28 }, "end": { - "line": 12, - "column": 13 + "line": 58, + "column": 29 } } }, { "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -2640,50 +6836,51 @@ "binop": null, "updateContext": null }, - "value": "import", - "start": 211, - "end": 217, + "start": 3221, + "end": 3222, "loc": { "start": { - "line": 14, - "column": 0 + "line": 58, + "column": 29 }, "end": { - "line": 14, - "column": 6 + "line": 58, + "column": 30 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "device", - "start": 218, - "end": 224, + "value": "if", + "start": 3227, + "end": 3229, "loc": { "start": { - "line": 14, - "column": 7 + "line": 59, + "column": 4 }, "end": { - "line": 14, - "column": 13 + "line": 59, + "column": 6 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -2692,77 +6889,74 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 225, - "end": 229, + "start": 3229, + "end": 3230, "loc": { "start": { - "line": 14, - "column": 14 + "line": 59, + "column": 6 }, "end": { - "line": 14, - "column": 18 + "line": 59, + "column": 7 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "current-device", - "start": 230, - "end": 246, + "start": 3230, + "end": 3231, "loc": { "start": { - "line": 14, - "column": 19 + "line": 59, + "column": 7 }, "end": { - "line": 14, - "column": 35 + "line": 59, + "column": 8 } } }, { "type": { - "label": ";", + "label": "prefix", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "start": 246, - "end": 247, + "value": "!", + "start": 3231, + "end": 3232, "loc": { "start": { - "line": 14, - "column": 35 + "line": 59, + "column": 8 }, "end": { - "line": 14, - "column": 36 + "line": 59, + "column": 9 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -2770,45 +6964,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 248, - "end": 254, + "value": "config", + "start": 3232, + "end": 3238, "loc": { "start": { - "line": 15, - "column": 0 + "line": 59, + "column": 9 }, "end": { - "line": 15, - "column": 6 + "line": 59, + "column": 15 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 255, - "end": 256, + "start": 3238, + "end": 3239, "loc": { "start": { - "line": 15, - "column": 7 + "line": 59, + "column": 15 }, "end": { - "line": 15, - "column": 8 + "line": 59, + "column": 16 } } }, @@ -2824,24 +7018,24 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 257, - "end": 263, + "value": "mobile", + "start": 3239, + "end": 3245, "loc": { "start": { - "line": 15, - "column": 9 + "line": 59, + "column": 16 }, "end": { - "line": 15, - "column": 15 + "line": 59, + "column": 22 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -2851,16 +7045,16 @@ "binop": null, "updateContext": null }, - "start": 263, - "end": 264, + "start": 3245, + "end": 3246, "loc": { "start": { - "line": 15, - "column": 15 + "line": 59, + "column": 22 }, "end": { - "line": 15, - "column": 16 + "line": 59, + "column": 23 } } }, @@ -2876,23 +7070,23 @@ "postfix": false, "binop": null }, - "value": "configApplyer", - "start": 265, - "end": 278, + "value": "show", + "start": 3246, + "end": 3250, "loc": { "start": { - "line": 15, - "column": 17 + "line": 59, + "column": 23 }, "end": { - "line": 15, - "column": 30 + "line": 59, + "column": 27 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -2902,102 +7096,100 @@ "postfix": false, "binop": null }, - "start": 279, - "end": 280, + "start": 3250, + "end": 3251, "loc": { "start": { - "line": 15, - "column": 31 + "line": 59, + "column": 27 }, "end": { - "line": 15, - "column": 32 + "line": 59, + "column": 28 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "&&", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 2, + "updateContext": null }, - "value": "from", - "start": 280, - "end": 284, + "value": "&&", + "start": 3251, + "end": 3253, "loc": { "start": { - "line": 15, - "column": 32 + "line": 59, + "column": 28 }, "end": { - "line": 15, - "column": 36 + "line": 59, + "column": 30 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "./config/configMgr", - "start": 285, - "end": 305, + "start": 3253, + "end": 3254, "loc": { "start": { - "line": 15, - "column": 37 + "line": 59, + "column": 30 }, "end": { - "line": 15, - "column": 57 + "line": 59, + "column": 31 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 305, - "end": 306, + "value": "device", + "start": 3254, + "end": 3260, "loc": { "start": { - "line": 15, - "column": 57 + "line": 59, + "column": 31 }, "end": { - "line": 15, - "column": 58 + "line": 59, + "column": 37 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3008,24 +7200,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 308, - "end": 310, + "start": 3260, + "end": 3261, "loc": { "start": { - "line": 17, - "column": 0 + "line": 59, + "column": 37 }, "end": { - "line": 17, - "column": 2 + "line": 59, + "column": 38 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -3034,23 +7225,24 @@ "postfix": false, "binop": null }, - "start": 311, - "end": 312, + "value": "mobile", + "start": 3261, + "end": 3267, "loc": { "start": { - "line": 17, - "column": 3 + "line": 59, + "column": 38 }, "end": { - "line": 17, - "column": 4 + "line": 59, + "column": 44 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -3059,23 +7251,22 @@ "postfix": false, "binop": null }, - "value": "process", - "start": 312, - "end": 319, + "start": 3267, + "end": 3268, "loc": { "start": { - "line": 17, - "column": 4 + "line": 59, + "column": 44 }, - "end": { - "line": 17, - "column": 11 + "end": { + "line": 59, + "column": 45 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3083,27 +7274,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 319, - "end": 320, + "start": 3268, + "end": 3269, "loc": { "start": { - "line": 17, - "column": 11 + "line": 59, + "column": 45 }, "end": { - "line": 17, - "column": 12 + "line": 59, + "column": 46 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3111,23 +7301,22 @@ "postfix": false, "binop": null }, - "value": "env", - "start": 320, - "end": 323, + "start": 3269, + "end": 3270, "loc": { "start": { - "line": 17, - "column": 12 + "line": 59, + "column": 46 }, "end": { - "line": 17, - "column": 15 + "line": 59, + "column": 47 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3135,26 +7324,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 323, - "end": 324, + "start": 3270, + "end": 3271, "loc": { "start": { - "line": 17, - "column": 15 + "line": 59, + "column": 47 }, "end": { - "line": 17, - "column": 16 + "line": 59, + "column": 48 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -3163,23 +7351,23 @@ "postfix": false, "binop": null }, - "value": "NODE_ENV", - "start": 324, - "end": 332, + "start": 3271, + "end": 3272, "loc": { "start": { - "line": 17, - "column": 16 + "line": 59, + "column": 48 }, "end": { - "line": 17, - "column": 24 + "line": 59, + "column": 49 } } }, { "type": { - "label": "==/!=", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -3187,28 +7375,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 333, - "end": 336, + "value": "return", + "start": 3279, + "end": 3285, "loc": { "start": { - "line": 17, - "column": 25 + "line": 60, + "column": 6 }, "end": { - "line": 17, - "column": 28 + "line": 60, + "column": 12 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3217,23 +7405,22 @@ "binop": null, "updateContext": null }, - "value": "development", - "start": 337, - "end": 350, + "start": 3285, + "end": 3286, "loc": { "start": { - "line": 17, - "column": 29 + "line": 60, + "column": 12 }, "end": { - "line": 17, - "column": 42 + "line": 60, + "column": 13 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3243,48 +7430,51 @@ "postfix": false, "binop": null }, - "start": 350, - "end": 351, + "start": 3291, + "end": 3292, "loc": { "start": { - "line": 17, - "column": 42 + "line": 61, + "column": 4 }, "end": { - "line": 17, - "column": 43 + "line": 61, + "column": 5 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "import", + "keyword": "import", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 351, - "end": 352, + "value": "import", + "start": 3297, + "end": 3303, "loc": { "start": { - "line": 17, - "column": 43 + "line": 62, + "column": 4 }, "end": { - "line": 17, - "column": 44 + "line": 62, + "column": 10 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -3293,25 +7483,40 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 355, - "end": 362, + "start": 3303, + "end": 3304, "loc": { "start": { - "line": 18, - "column": 2 + "line": 62, + "column": 10 }, "end": { - "line": 18, - "column": 9 + "line": 62, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": " webpackMode: 'lazy' ", + "start": 3304, + "end": 3329, + "loc": { + "start": { + "line": 62, + "column": 11 + }, + "end": { + "line": 62, + "column": 36 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3320,24 +7525,25 @@ "binop": null, "updateContext": null }, - "start": 362, - "end": 363, + "value": "./cLive2DApp", + "start": 3330, + "end": 3344, "loc": { "start": { - "line": 18, - "column": 9 + "line": 62, + "column": 37 }, "end": { - "line": 18, - "column": 10 + "line": 62, + "column": 51 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3345,48 +7551,48 @@ "postfix": false, "binop": null }, - "value": "log", - "start": 363, - "end": 366, + "start": 3344, + "end": 3345, "loc": { "start": { - "line": 18, - "column": 10 + "line": 62, + "column": 51 }, "end": { - "line": 18, - "column": 13 + "line": 62, + "column": 52 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 366, - "end": 367, + "start": 3345, + "end": 3346, "loc": { "start": { - "line": 18, - "column": 13 + "line": 62, + "column": 52 }, "end": { - "line": 18, - "column": 14 + "line": 62, + "column": 53 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -3394,28 +7600,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "--- --- --- --- ---\nHey that, notice that you are now in DEV MODE.\n--- --- --- --- ---", - "start": 367, - "end": 457, + "value": "then", + "start": 3346, + "end": 3350, "loc": { "start": { - "line": 18, - "column": 14 + "line": 62, + "column": 53 }, "end": { - "line": 18, - "column": 104 + "line": 62, + "column": 57 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3423,95 +7628,93 @@ "postfix": false, "binop": null }, - "start": 457, - "end": 458, + "start": 3350, + "end": 3351, "loc": { "start": { - "line": 18, - "column": 104 + "line": 62, + "column": 57 }, "end": { - "line": 18, - "column": 105 + "line": 62, + "column": 58 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 458, - "end": 459, + "value": "f", + "start": 3351, + "end": 3352, "loc": { "start": { - "line": 18, - "column": 105 + "line": 62, + "column": 58 }, "end": { - "line": 18, - "column": 106 + "line": 62, + "column": 59 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 460, - "end": 461, + "start": 3353, + "end": 3355, "loc": { "start": { - "line": 19, - "column": 0 + "line": 62, + "column": 60 }, "end": { - "line": 19, - "column": 1 + "line": 62, + "column": 62 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 463, - "end": 466, + "start": 3356, + "end": 3357, "loc": { "start": { - "line": 21, - "column": 0 + "line": 62, + "column": 63 }, "end": { - "line": 21, - "column": 3 + "line": 62, + "column": 64 } } }, @@ -3528,85 +7731,95 @@ "binop": null }, "value": "coreApp", - "start": 467, - "end": 474, + "start": 3364, + "end": 3371, "loc": { "start": { - "line": 21, - "column": 4 + "line": 63, + "column": 6 }, "end": { - "line": 21, - "column": 11 + "line": 63, + "column": 13 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 474, - "end": 475, + "value": "=", + "start": 3372, + "end": 3373, "loc": { "start": { - "line": 21, - "column": 11 + "line": 63, + "column": 14 }, "end": { - "line": 21, - "column": 12 + "line": 63, + "column": 15 } } }, { - "type": "CommentBlock", - "value": "*\n * The main entry point, which ... is nothing\n ", - "start": 476, - "end": 529, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "f", + "start": 3374, + "end": 3375, "loc": { "start": { - "line": 22, - "column": 0 + "line": 63, + "column": 16 }, "end": { - "line": 24, - "column": 3 + "line": 63, + "column": 17 } } }, { "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "function", - "start": 531, - "end": 539, + "start": 3375, + "end": 3376, "loc": { "start": { - "line": 26, - "column": 0 + "line": 63, + "column": 17 }, "end": { - "line": 26, - "column": 8 + "line": 63, + "column": 18 } } }, @@ -3622,50 +7835,51 @@ "postfix": false, "binop": null }, - "value": "L2Dwidget", - "start": 540, - "end": 549, + "value": "coreApp", + "start": 3383, + "end": 3390, "loc": { "start": { - "line": 26, - "column": 9 + "line": 64, + "column": 6 }, "end": { - "line": 26, - "column": 18 + "line": 64, + "column": 13 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 549, - "end": 550, + "start": 3390, + "end": 3391, "loc": { "start": { - "line": 26, - "column": 18 + "line": 64, + "column": 13 }, "end": { - "line": 26, - "column": 19 + "line": 64, + "column": 14 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3673,22 +7887,23 @@ "postfix": false, "binop": null }, - "start": 550, - "end": 551, + "value": "theRealInit", + "start": 3391, + "end": 3402, "loc": { "start": { - "line": 26, - "column": 19 + "line": 64, + "column": 14 }, "end": { - "line": 26, - "column": 20 + "line": 64, + "column": 25 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -3698,22 +7913,22 @@ "postfix": false, "binop": null }, - "start": 551, - "end": 552, + "start": 3402, + "end": 3403, "loc": { "start": { - "line": 26, - "column": 20 + "line": 64, + "column": 25 }, "end": { - "line": 26, - "column": 21 + "line": 64, + "column": 26 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3723,16 +7938,16 @@ "postfix": false, "binop": null }, - "start": 552, - "end": 553, + "start": 3403, + "end": 3404, "loc": { "start": { - "line": 26, - "column": 21 + "line": 64, + "column": 26 }, "end": { - "line": 26, - "column": 22 + "line": 64, + "column": 27 } } }, @@ -3749,40 +7964,24 @@ "binop": null, "updateContext": null }, - "start": 553, - "end": 554, - "loc": { - "start": { - "line": 26, - "column": 22 - }, - "end": { - "line": 26, - "column": 23 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config 用户自定义设置\n * @param {String} [userConfig.model.jsonPath = ''] Path to Live2D model's main json eg. `https://test.com/miku.model.json` model主文件路径\n * @param {Number} [userConfig.model.scale = 1] Scale between the model and the canvas 模型与canvas的缩放\n * @param {Number} [userConfig.model.hHeadPos = 0.5] Horizontal position of model's head 模型头部横坐标\n * @param {Number} [userConfig.model.vHeadPos = 0.618] Vertical position of model's head 模型头部纵坐标\n * @param {Array} [userConfig.model.myDefine = []] User's custom Defines which will override LDefine 自定义的LDefine\n * @param {Number} [userConfig.display.superSample = 2] rate for super sampling rate 超采样等级\n * @param {Number} [userConfig.display.width = 150] Width to the canvas which shows the model canvas的长度\n * @param {Number} [userConfig.display.height = 300] Height to the canvas which shows the model canvas的高度\n * @param {String} [userConfig.display.position = 'right'] Left of right side to show 显示位置:左或右\n * @param {Number} [userConfig.display.hOffset = 0] Horizontal offset of the canvas canvas水平偏移\n * @param {Number} [userConfig.display.vOffset = -20] Vertical offset of the canvas canvas垂直偏移\n * @param {Boolean} [userConfig.mobile.show = true] Whether to show on mobile device 是否在移动设备上显示\n * @param {Number} [userConfig.mobile.scale = 0.5] Scale on mobile device 移动设备上的缩放\n * @param {Boolean} [userConfig.mobile.motion = true] Whether to enable motion detection on mobile devices 移动设备是否开启重力感应\n * @param {String} [userConfig.name.canvas = 'live2dcanvas'] ID name of the canvas canvas元素的ID\n * @param {String} [userConfig.name.div = 'live2d-widget'] ID name of the div div元素的ID\n * @param {Number} [userConfig.react.opacityDefault = 0.7] Default opacity 默认透明度\n * @param {Number} [userConfig.react.opacityOnHover = 0.2] OnHover opacity 鼠标移上透明度\n * @param {Function} [userConfig.react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器\n * @param {Boolean} [userConfig.dev.log = false] Whether to show log 显示日志\n * @param {Boolean} [userConfig.dev.border = false] Whether to show border around the canvas 在canvas周围显示边界\n * @param {Boolean} [userConfig.dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动\n * @param {Function} [userConfig.dev.mouseFunc = func(x, y, ix, iy)] Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数\n * @return {null}\n ", - "start": 556, - "end": 3163, + "start": 3404, + "end": 3405, "loc": { "start": { - "line": 28, - "column": 0 + "line": 64, + "column": 27 }, "end": { - "line": 55, - "column": 3 + "line": 64, + "column": 28 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3790,23 +7989,22 @@ "postfix": false, "binop": null }, - "value": "L2Dwidget", - "start": 3165, - "end": 3174, + "start": 3410, + "end": 3411, "loc": { "start": { - "line": 57, - "column": 0 + "line": 65, + "column": 4 }, "end": { - "line": 57, - "column": 9 + "line": 65, + "column": 5 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3814,72 +8012,72 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3174, - "end": 3175, + "start": 3411, + "end": 3412, "loc": { "start": { - "line": 57, - "column": 9 + "line": 65, + "column": 5 }, "end": { - "line": 57, - "column": 10 + "line": 65, + "column": 6 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "init", - "start": 3175, - "end": 3179, + "start": 3412, + "end": 3413, "loc": { "start": { - "line": 57, - "column": 10 + "line": 65, + "column": 6 }, "end": { - "line": 57, - "column": 14 + "line": 65, + "column": 7 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "catch", + "keyword": "catch", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 3180, - "end": 3181, + "value": "catch", + "start": 3413, + "end": 3418, "loc": { "start": { - "line": 57, - "column": 15 + "line": 65, + "column": 7 }, "end": { - "line": 57, - "column": 16 + "line": 65, + "column": 12 } } }, @@ -3895,16 +8093,16 @@ "postfix": false, "binop": null }, - "start": 3182, - "end": 3183, + "start": 3418, + "end": 3419, "loc": { "start": { - "line": 57, - "column": 17 + "line": 65, + "column": 12 }, "end": { - "line": 57, - "column": 18 + "line": 65, + "column": 13 } } }, @@ -3920,42 +8118,17 @@ "postfix": false, "binop": null }, - "value": "userConfig", - "start": 3183, - "end": 3193, - "loc": { - "start": { - "line": 57, - "column": 18 - }, - "end": { - "line": 57, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3193, - "end": 3194, + "value": "err", + "start": 3419, + "end": 3422, "loc": { "start": { - "line": 57, - "column": 28 + "line": 65, + "column": 13 }, "end": { - "line": 57, - "column": 29 + "line": 65, + "column": 16 } } }, @@ -3972,16 +8145,16 @@ "binop": null, "updateContext": null }, - "start": 3195, - "end": 3197, + "start": 3423, + "end": 3425, "loc": { "start": { - "line": 57, - "column": 30 + "line": 65, + "column": 17 }, "end": { - "line": 57, - "column": 32 + "line": 65, + "column": 19 } } }, @@ -3997,16 +8170,16 @@ "postfix": false, "binop": null }, - "start": 3198, - "end": 3199, + "start": 3426, + "end": 3427, "loc": { "start": { - "line": 57, - "column": 33 + "line": 65, + "column": 20 }, "end": { - "line": 57, - "column": 34 + "line": 65, + "column": 21 } } }, @@ -4022,79 +8195,76 @@ "postfix": false, "binop": null }, - "value": "userConfig", - "start": 3203, - "end": 3213, + "value": "console", + "start": 3434, + "end": 3441, "loc": { "start": { - "line": 59, - "column": 2 + "line": 66, + "column": 6 }, "end": { - "line": 59, - "column": 12 + "line": 66, + "column": 13 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 3214, - "end": 3215, + "start": 3441, + "end": 3442, "loc": { "start": { - "line": 59, + "line": 66, "column": 13 }, "end": { - "line": 59, + "line": 66, "column": 14 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "typeof", - "start": 3216, - "end": 3222, + "value": "error", + "start": 3442, + "end": 3447, "loc": { "start": { - "line": 59, - "column": 15 + "line": 66, + "column": 14 }, "end": { - "line": 59, - "column": 21 + "line": 66, + "column": 19 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -4103,77 +8273,73 @@ "postfix": false, "binop": null }, - "value": "userConfig", - "start": 3223, - "end": 3233, + "start": 3447, + "end": 3448, "loc": { "start": { - "line": 59, - "column": 22 + "line": 66, + "column": 19 }, "end": { - "line": 59, - "column": 32 + "line": 66, + "column": 20 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "===", - "start": 3234, - "end": 3237, + "value": "err", + "start": 3448, + "end": 3451, "loc": { "start": { - "line": 59, - "column": 33 + "line": 66, + "column": 20 }, "end": { - "line": 59, - "column": 36 + "line": 66, + "column": 23 } } }, { "type": { - "label": "string", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "undefined", - "start": 3238, - "end": 3249, + "start": 3451, + "end": 3452, "loc": { "start": { - "line": 59, - "column": 37 + "line": 66, + "column": 23 }, "end": { - "line": 59, - "column": 48 + "line": 66, + "column": 24 } } }, { "type": { - "label": "?", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -4184,24 +8350,24 @@ "binop": null, "updateContext": null }, - "start": 3250, - "end": 3251, + "start": 3452, + "end": 3453, "loc": { "start": { - "line": 59, - "column": 49 + "line": 66, + "column": 24 }, "end": { - "line": 59, - "column": 50 + "line": 66, + "column": 25 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4209,22 +8375,22 @@ "postfix": false, "binop": null }, - "start": 3252, - "end": 3253, + "start": 3458, + "end": 3459, "loc": { "start": { - "line": 59, - "column": 51 + "line": 67, + "column": 4 }, "end": { - "line": 59, - "column": 52 + "line": 67, + "column": 5 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -4234,22 +8400,22 @@ "postfix": false, "binop": null }, - "start": 3253, - "end": 3254, + "start": 3459, + "end": 3460, "loc": { "start": { - "line": 59, - "column": 52 + "line": 67, + "column": 5 }, "end": { - "line": 59, - "column": 53 + "line": 67, + "column": 6 } } }, { "type": { - "label": ":", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -4260,24 +8426,24 @@ "binop": null, "updateContext": null }, - "start": 3255, - "end": 3256, + "start": 3460, + "end": 3461, "loc": { "start": { - "line": 59, - "column": 54 + "line": 67, + "column": 6 }, "end": { - "line": 59, - "column": 55 + "line": 67, + "column": 7 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4285,43 +8451,32 @@ "postfix": false, "binop": null }, - "value": "userConfig", - "start": 3257, - "end": 3267, + "start": 3464, + "end": 3465, "loc": { "start": { - "line": 59, - "column": 56 + "line": 68, + "column": 2 }, "end": { - "line": 59, - "column": 66 + "line": 68, + "column": 3 } } }, { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3267, - "end": 3268, + "type": "CommentBlock", + "value": "*\n * Capture current frame to png file {@link captureFrame}\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n ", + "start": 3468, + "end": 3641, "loc": { "start": { - "line": 59, - "column": 66 + "line": 71, + "column": 0 }, "end": { - "line": 59, - "column": 67 + "line": 75, + "column": 3 } } }, @@ -4337,17 +8492,17 @@ "postfix": false, "binop": null }, - "value": "configApplyer", - "start": 3272, - "end": 3285, + "value": "captureFrame", + "start": 3645, + "end": 3657, "loc": { "start": { - "line": 61, + "line": 77, "column": 2 }, "end": { - "line": 61, - "column": 15 + "line": 77, + "column": 14 } } }, @@ -4363,16 +8518,16 @@ "postfix": false, "binop": null }, - "start": 3285, - "end": 3286, + "start": 3657, + "end": 3658, "loc": { "start": { - "line": 61, - "column": 15 + "line": 77, + "column": 14 }, "end": { - "line": 61, - "column": 16 + "line": 77, + "column": 15 } } }, @@ -4388,17 +8543,17 @@ "postfix": false, "binop": null }, - "value": "userConfig", - "start": 3286, - "end": 3296, + "value": "callback", + "start": 3658, + "end": 3666, "loc": { "start": { - "line": 61, - "column": 16 + "line": 77, + "column": 15 }, "end": { - "line": 61, - "column": 26 + "line": 77, + "column": 23 } } }, @@ -4414,22 +8569,48 @@ "postfix": false, "binop": null }, - "start": 3296, - "end": 3297, + "start": 3666, + "end": 3667, "loc": { "start": { - "line": 61, - "column": 26 + "line": 77, + "column": 23 }, "end": { - "line": 61, - "column": 27 + "line": 77, + "column": 24 } } }, { "type": { - "label": ";", + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3667, + "end": 3668, + "loc": { + "start": { + "line": 77, + "column": 24 + }, + "end": { + "line": 77, + "column": 25 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -4440,23 +8621,49 @@ "binop": null, "updateContext": null }, - "start": 3297, - "end": 3298, + "value": "return", + "start": 3673, + "end": 3679, "loc": { "start": { - "line": 61, - "column": 27 + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "coreApp", + "start": 3680, + "end": 3687, + "loc": { + "start": { + "line": 78, + "column": 11 }, "end": { - "line": 61, - "column": 28 + "line": 78, + "column": 18 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -4467,24 +8674,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 3302, - "end": 3304, + "start": 3687, + "end": 3688, "loc": { "start": { - "line": 63, - "column": 2 + "line": 78, + "column": 18 }, "end": { - "line": 63, - "column": 4 + "line": 78, + "column": 19 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -4493,16 +8699,17 @@ "postfix": false, "binop": null }, - "start": 3304, - "end": 3305, + "value": "captureFrame", + "start": 3688, + "end": 3700, "loc": { "start": { - "line": 63, - "column": 4 + "line": 78, + "column": 19 }, "end": { - "line": 63, - "column": 5 + "line": 78, + "column": 31 } } }, @@ -4518,51 +8725,50 @@ "postfix": false, "binop": null }, - "start": 3305, - "end": 3306, + "start": 3700, + "end": 3701, "loc": { "start": { - "line": 63, - "column": 5 + "line": 78, + "column": 31 }, "end": { - "line": 63, - "column": 6 + "line": 78, + "column": 32 } } }, { "type": { - "label": "prefix", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "!", - "start": 3306, - "end": 3307, + "value": "callback", + "start": 3701, + "end": 3709, "loc": { "start": { - "line": 63, - "column": 6 + "line": 78, + "column": 32 }, "end": { - "line": 63, - "column": 7 + "line": 78, + "column": 40 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4570,24 +8776,23 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 3307, - "end": 3313, + "start": 3709, + "end": 3710, "loc": { "start": { - "line": 63, - "column": 7 + "line": 78, + "column": 40 }, "end": { - "line": 63, - "column": 13 + "line": 78, + "column": 41 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -4597,24 +8802,24 @@ "binop": null, "updateContext": null }, - "start": 3313, - "end": 3314, + "start": 3710, + "end": 3711, "loc": { "start": { - "line": 63, - "column": 13 + "line": 78, + "column": 41 }, "end": { - "line": 63, - "column": 14 + "line": 78, + "column": 42 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4622,43 +8827,32 @@ "postfix": false, "binop": null }, - "value": "mobile", - "start": 3314, - "end": 3320, + "start": 3714, + "end": 3715, "loc": { "start": { - "line": 63, - "column": 14 + "line": 79, + "column": 2 }, "end": { - "line": 63, - "column": 20 + "line": 79, + "column": 3 } } }, { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3320, - "end": 3321, + "type": "CommentBlock", + "value": "*\n * download current frame {@link L2Dwidget.captureFrame}\n * @return {null}\n ", + "start": 3717, + "end": 3799, "loc": { "start": { - "line": 63, - "column": 20 + "line": 81, + "column": 0 }, "end": { - "line": 63, - "column": 21 + "line": 84, + "column": 3 } } }, @@ -4674,25 +8868,25 @@ "postfix": false, "binop": null }, - "value": "show", - "start": 3321, - "end": 3325, + "value": "downloadFrame", + "start": 3803, + "end": 3816, "loc": { "start": { - "line": 63, - "column": 21 + "line": 86, + "column": 2 }, "end": { - "line": 63, - "column": 25 + "line": 86, + "column": 15 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4700,49 +8894,47 @@ "postfix": false, "binop": null }, - "start": 3325, - "end": 3326, + "start": 3816, + "end": 3817, "loc": { "start": { - "line": 63, - "column": 25 + "line": 86, + "column": 15 }, "end": { - "line": 63, - "column": 26 + "line": 86, + "column": 16 } } }, { "type": { - "label": "&&", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, - "updateContext": null + "binop": null }, - "value": "&&", - "start": 3326, - "end": 3328, + "start": 3817, + "end": 3818, "loc": { "start": { - "line": 63, - "column": 26 + "line": 86, + "column": 16 }, "end": { - "line": 63, - "column": 28 + "line": 86, + "column": 17 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -4752,22 +8944,23 @@ "postfix": false, "binop": null }, - "start": 3328, - "end": 3329, + "start": 3818, + "end": 3819, "loc": { "start": { - "line": 63, - "column": 28 + "line": 86, + "column": 17 }, "end": { - "line": 63, - "column": 29 + "line": 86, + "column": 18 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -4775,19 +8968,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "device", - "start": 3329, - "end": 3335, + "value": "this", + "start": 3824, + "end": 3828, "loc": { "start": { - "line": 63, - "column": 29 + "line": 87, + "column": 4 }, "end": { - "line": 63, - "column": 35 + "line": 87, + "column": 8 } } }, @@ -4804,16 +8998,16 @@ "binop": null, "updateContext": null }, - "start": 3335, - "end": 3336, + "start": 3828, + "end": 3829, "loc": { "start": { - "line": 63, - "column": 35 + "line": 87, + "column": 8 }, "end": { - "line": 63, - "column": 36 + "line": 87, + "column": 9 } } }, @@ -4829,17 +9023,17 @@ "postfix": false, "binop": null }, - "value": "mobile", - "start": 3336, - "end": 3342, + "value": "captureFrame", + "start": 3829, + "end": 3841, "loc": { "start": { - "line": 63, - "column": 36 + "line": 87, + "column": 9 }, "end": { - "line": 63, - "column": 42 + "line": 87, + "column": 21 } } }, @@ -4855,24 +9049,25 @@ "postfix": false, "binop": null }, - "start": 3342, - "end": 3343, + "start": 3841, + "end": 3842, "loc": { "start": { - "line": 63, - "column": 42 + "line": 87, + "column": 21 }, "end": { - "line": 63, - "column": 43 + "line": 87, + "column": 22 } } }, { "type": { - "label": ")", + "label": "function", + "keyword": "function", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4880,24 +9075,50 @@ "postfix": false, "binop": null }, - "start": 3343, - "end": 3344, + "value": "function", + "start": 3849, + "end": 3857, "loc": { "start": { - "line": 63, - "column": 43 + "line": 88, + "column": 6 }, "end": { - "line": 63, - "column": 44 + "line": 88, + "column": 14 } } }, { "type": { - "label": ")", + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3857, + "end": 3858, + "loc": { + "start": { + "line": 88, + "column": 14 + }, + "end": { + "line": 88, + "column": 15 + } + } + }, + { + "type": { + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4905,16 +9126,17 @@ "postfix": false, "binop": null }, - "start": 3344, - "end": 3345, + "value": "e", + "start": 3858, + "end": 3859, "loc": { "start": { - "line": 63, - "column": 44 + "line": 88, + "column": 15 }, "end": { - "line": 63, - "column": 45 + "line": 88, + "column": 16 } } }, @@ -4930,16 +9152,16 @@ "postfix": false, "binop": null }, - "start": 3345, - "end": 3346, + "start": 3859, + "end": 3860, "loc": { "start": { - "line": 63, - "column": 45 + "line": 88, + "column": 16 }, "end": { - "line": 63, - "column": 46 + "line": 88, + "column": 17 } } }, @@ -4955,78 +9177,105 @@ "postfix": false, "binop": null }, - "start": 3346, - "end": 3347, + "start": 3860, + "end": 3861, "loc": { "start": { - "line": 63, - "column": 46 + "line": 88, + "column": 17 }, "end": { - "line": 63, - "column": 47 + "line": 88, + "column": 18 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 3870, + "end": 3873, + "loc": { + "start": { + "line": 89, + "column": 8 + }, + "end": { + "line": 89, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null }, - "value": "return", - "start": 3352, - "end": 3358, + "value": "link", + "start": 3874, + "end": 3878, "loc": { "start": { - "line": 64, - "column": 4 + "line": 89, + "column": 12 }, "end": { - "line": 64, - "column": 10 + "line": 89, + "column": 16 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 3358, - "end": 3359, + "value": "=", + "start": 3879, + "end": 3880, "loc": { "start": { - "line": 64, - "column": 10 + "line": 89, + "column": 17 }, "end": { - "line": 64, - "column": 11 + "line": 89, + "column": 18 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5034,25 +9283,25 @@ "postfix": false, "binop": null }, - "start": 3362, - "end": 3363, + "value": "document", + "start": 3881, + "end": 3889, "loc": { "start": { - "line": 65, - "column": 2 + "line": 89, + "column": 19 }, "end": { - "line": 65, - "column": 3 + "line": 89, + "column": 27 } } }, { "type": { - "label": "import", - "keyword": "import", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5061,24 +9310,23 @@ "binop": null, "updateContext": null }, - "value": "import", - "start": 3367, - "end": 3373, + "start": 3889, + "end": 3890, "loc": { "start": { - "line": 67, - "column": 2 + "line": 89, + "column": 27 }, "end": { - "line": 67, - "column": 8 + "line": 89, + "column": 28 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -5087,32 +9335,42 @@ "postfix": false, "binop": null }, - "start": 3373, - "end": 3374, + "value": "createElement", + "start": 3890, + "end": 3903, "loc": { "start": { - "line": 67, - "column": 8 + "line": 89, + "column": 28 }, "end": { - "line": 67, - "column": 9 + "line": 89, + "column": 41 } } }, { - "type": "CommentBlock", - "value": " webpackMode: \"lazy\" ", - "start": 3374, - "end": 3399, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3903, + "end": 3904, "loc": { "start": { - "line": 67, - "column": 9 + "line": 89, + "column": 41 }, "end": { - "line": 67, - "column": 34 + "line": 89, + "column": 42 } } }, @@ -5129,17 +9387,17 @@ "binop": null, "updateContext": null }, - "value": "./cLive2DApp", - "start": 3400, - "end": 3414, + "value": "a", + "start": 3904, + "end": 3907, "loc": { "start": { - "line": 67, - "column": 35 + "line": 89, + "column": 42 }, "end": { - "line": 67, - "column": 49 + "line": 89, + "column": 45 } } }, @@ -5155,23 +9413,23 @@ "postfix": false, "binop": null }, - "start": 3414, - "end": 3415, + "start": 3907, + "end": 3908, "loc": { "start": { - "line": 67, - "column": 49 + "line": 89, + "column": 45 }, "end": { - "line": 67, - "column": 50 + "line": 89, + "column": 46 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -5181,16 +9439,16 @@ "binop": null, "updateContext": null }, - "start": 3415, - "end": 3416, + "start": 3908, + "end": 3909, "loc": { "start": { - "line": 67, - "column": 50 + "line": 89, + "column": 46 }, "end": { - "line": 67, - "column": 51 + "line": 89, + "column": 47 } } }, @@ -5206,42 +9464,43 @@ "postfix": false, "binop": null }, - "value": "then", - "start": 3416, - "end": 3420, + "value": "document", + "start": 3918, + "end": 3926, "loc": { "start": { - "line": 67, - "column": 51 + "line": 90, + "column": 8 }, "end": { - "line": 67, - "column": 55 + "line": 90, + "column": 16 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3420, - "end": 3421, + "start": 3926, + "end": 3927, "loc": { "start": { - "line": 67, - "column": 55 + "line": 90, + "column": 16 }, "end": { - "line": 67, - "column": 56 + "line": 90, + "column": 17 } } }, @@ -5257,24 +9516,24 @@ "postfix": false, "binop": null }, - "value": "f", - "start": 3421, - "end": 3422, + "value": "body", + "start": 3927, + "end": 3931, "loc": { "start": { - "line": 67, - "column": 56 + "line": 90, + "column": 17 }, "end": { - "line": 67, - "column": 57 + "line": 90, + "column": 21 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -5284,23 +9543,23 @@ "binop": null, "updateContext": null }, - "start": 3423, - "end": 3425, + "start": 3931, + "end": 3932, "loc": { "start": { - "line": 67, - "column": 58 + "line": 90, + "column": 21 }, "end": { - "line": 67, - "column": 60 + "line": 90, + "column": 22 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -5309,23 +9568,24 @@ "postfix": false, "binop": null }, - "start": 3426, - "end": 3427, + "value": "appendChild", + "start": 3932, + "end": 3943, "loc": { "start": { - "line": 67, - "column": 61 + "line": 90, + "column": 22 }, "end": { - "line": 67, - "column": 62 + "line": 90, + "column": 33 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -5334,52 +9594,50 @@ "postfix": false, "binop": null }, - "value": "coreApp", - "start": 3432, - "end": 3439, + "start": 3943, + "end": 3944, "loc": { "start": { - "line": 68, - "column": 4 + "line": 90, + "column": 33 }, "end": { - "line": 68, - "column": 11 + "line": 90, + "column": 34 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 3440, - "end": 3441, + "value": "link", + "start": 3944, + "end": 3948, "loc": { "start": { - "line": 68, - "column": 12 + "line": 90, + "column": 34 }, "end": { - "line": 68, - "column": 13 + "line": 90, + "column": 38 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5387,17 +9645,16 @@ "postfix": false, "binop": null }, - "value": "f", - "start": 3442, - "end": 3443, + "start": 3948, + "end": 3949, "loc": { "start": { - "line": 68, - "column": 14 + "line": 90, + "column": 38 }, "end": { - "line": 68, - "column": 15 + "line": 90, + "column": 39 } } }, @@ -5414,16 +9671,16 @@ "binop": null, "updateContext": null }, - "start": 3443, - "end": 3444, + "start": 3949, + "end": 3950, "loc": { "start": { - "line": 68, - "column": 15 + "line": 90, + "column": 39 }, "end": { - "line": 68, - "column": 16 + "line": 90, + "column": 40 } } }, @@ -5439,17 +9696,17 @@ "postfix": false, "binop": null }, - "value": "coreApp", - "start": 3449, - "end": 3456, + "value": "link", + "start": 3959, + "end": 3963, "loc": { "start": { - "line": 69, - "column": 4 + "line": 91, + "column": 8 }, "end": { - "line": 69, - "column": 11 + "line": 91, + "column": 12 } } }, @@ -5466,16 +9723,16 @@ "binop": null, "updateContext": null }, - "start": 3456, - "end": 3457, + "start": 3963, + "end": 3964, "loc": { "start": { - "line": 69, - "column": 11 + "line": 91, + "column": 12 }, "end": { - "line": 69, - "column": 12 + "line": 91, + "column": 13 } } }, @@ -5491,50 +9748,25 @@ "postfix": false, "binop": null }, - "value": "theRealInit", - "start": 3457, - "end": 3468, - "loc": { - "start": { - "line": 69, - "column": 12 - }, - "end": { - "line": 69, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3468, - "end": 3469, + "value": "setAttribute", + "start": 3964, + "end": 3976, "loc": { "start": { - "line": 69, - "column": 23 + "line": 91, + "column": 13 }, "end": { - "line": 69, - "column": 24 + "line": 91, + "column": 25 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5542,24 +9774,24 @@ "postfix": false, "binop": null }, - "start": 3469, - "end": 3470, + "start": 3976, + "end": 3977, "loc": { "start": { - "line": 69, - "column": 24 + "line": 91, + "column": 25 }, "end": { - "line": 69, - "column": 25 + "line": 91, + "column": 26 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5568,72 +9800,76 @@ "binop": null, "updateContext": null }, - "start": 3470, - "end": 3471, + "value": "type", + "start": 3977, + "end": 3983, "loc": { "start": { - "line": 69, - "column": 25 + "line": 91, + "column": 26 }, "end": { - "line": 69, - "column": 26 + "line": 91, + "column": 32 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3474, - "end": 3475, + "start": 3983, + "end": 3984, "loc": { "start": { - "line": 70, - "column": 2 + "line": 91, + "column": 32 }, "end": { - "line": 70, - "column": 3 + "line": 91, + "column": 33 } } }, { "type": { - "label": ")", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3475, - "end": 3476, + "value": "hidden", + "start": 3985, + "end": 3993, "loc": { "start": { - "line": 70, - "column": 3 + "line": 91, + "column": 34 }, "end": { - "line": 70, - "column": 4 + "line": 91, + "column": 42 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -5641,27 +9877,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3476, - "end": 3477, + "start": 3993, + "end": 3994, "loc": { "start": { - "line": 70, - "column": 4 + "line": 91, + "column": 42 }, "end": { - "line": 70, - "column": 5 + "line": 91, + "column": 43 } } }, { "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -5671,24 +9905,23 @@ "binop": null, "updateContext": null }, - "value": "catch", - "start": 3477, - "end": 3482, + "start": 3994, + "end": 3995, "loc": { "start": { - "line": 70, - "column": 5 + "line": 91, + "column": 43 }, "end": { - "line": 70, - "column": 10 + "line": 91, + "column": 44 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -5697,92 +9930,95 @@ "postfix": false, "binop": null }, - "start": 3482, - "end": 3483, + "value": "link", + "start": 4004, + "end": 4008, "loc": { "start": { - "line": 70, - "column": 10 + "line": 92, + "column": 8 }, "end": { - "line": 70, - "column": 11 + "line": 92, + "column": 12 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "err", - "start": 3483, - "end": 3486, + "start": 4008, + "end": 4009, "loc": { "start": { - "line": 70, - "column": 11 + "line": 92, + "column": 12 }, "end": { - "line": 70, - "column": 14 + "line": 92, + "column": 13 } } }, { "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3487, - "end": 3489, + "value": "href", + "start": 4009, + "end": 4013, "loc": { "start": { - "line": 70, - "column": 15 + "line": 92, + "column": 13 }, "end": { - "line": 70, + "line": 92, "column": 17 } } }, { "type": { - "label": "{", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3490, - "end": 3491, + "value": "=", + "start": 4014, + "end": 4015, "loc": { "start": { - "line": 70, + "line": 92, "column": 18 }, "end": { - "line": 70, + "line": 92, "column": 19 } } @@ -5799,24 +10035,24 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 3496, - "end": 3503, + "value": "e", + "start": 4016, + "end": 4017, "loc": { "start": { - "line": 71, - "column": 4 + "line": 92, + "column": 20 }, "end": { - "line": 71, - "column": 11 + "line": 92, + "column": 21 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -5826,16 +10062,16 @@ "binop": null, "updateContext": null }, - "start": 3503, - "end": 3504, + "start": 4017, + "end": 4018, "loc": { "start": { - "line": 71, - "column": 11 + "line": 92, + "column": 21 }, "end": { - "line": 71, - "column": 12 + "line": 92, + "column": 22 } } }, @@ -5851,42 +10087,43 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 3504, - "end": 3509, + "value": "link", + "start": 4027, + "end": 4031, "loc": { "start": { - "line": 71, - "column": 12 + "line": 93, + "column": 8 }, "end": { - "line": 71, - "column": 17 + "line": 93, + "column": 12 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3509, - "end": 3510, + "start": 4031, + "end": 4032, "loc": { "start": { - "line": 71, - "column": 17 + "line": 93, + "column": 12 }, "end": { - "line": 71, - "column": 18 + "line": 93, + "column": 13 } } }, @@ -5902,50 +10139,52 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 3510, - "end": 3513, + "value": "download", + "start": 4032, + "end": 4040, "loc": { "start": { - "line": 71, - "column": 18 + "line": 93, + "column": 13 }, "end": { - "line": 71, + "line": 93, "column": 21 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3513, - "end": 3514, + "value": "=", + "start": 4041, + "end": 4042, "loc": { "start": { - "line": 71, - "column": 21 + "line": 93, + "column": 22 }, "end": { - "line": 71, - "column": 22 + "line": 93, + "column": 23 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5954,49 +10193,51 @@ "binop": null, "updateContext": null }, - "start": 3514, - "end": 3515, + "value": "live2d.png", + "start": 4043, + "end": 4055, "loc": { "start": { - "line": 71, - "column": 22 + "line": 93, + "column": 24 }, "end": { - "line": 71, - "column": 23 + "line": 93, + "column": 36 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3518, - "end": 3519, + "start": 4055, + "end": 4056, "loc": { "start": { - "line": 72, - "column": 2 + "line": 93, + "column": 36 }, "end": { - "line": 72, - "column": 3 + "line": 93, + "column": 37 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6004,23 +10245,24 @@ "postfix": false, "binop": null }, - "start": 3519, - "end": 3520, + "value": "link", + "start": 4065, + "end": 4069, "loc": { "start": { - "line": 72, - "column": 3 + "line": 94, + "column": 8 }, "end": { - "line": 72, - "column": 4 + "line": 94, + "column": 12 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -6030,24 +10272,24 @@ "binop": null, "updateContext": null }, - "start": 3520, - "end": 3521, + "start": 4069, + "end": 4070, "loc": { "start": { - "line": 72, - "column": 4 + "line": 94, + "column": 12 }, "end": { - "line": 72, - "column": 5 + "line": 94, + "column": 13 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6055,40 +10297,50 @@ "postfix": false, "binop": null }, - "start": 3523, - "end": 3524, + "value": "click", + "start": 4070, + "end": 4075, "loc": { "start": { - "line": 74, - "column": 0 + "line": 94, + "column": 13 }, "end": { - "line": 74, - "column": 1 + "line": 94, + "column": 18 } } }, { - "type": "CommentBlock", - "value": "*\n * Return the data URI of current frame, MINE type is image/png.\n * @return {DOMString} Which contains data URI, MINE type is image/png\n * @example\n * You can use codes below to let the user download the current frame\n *\n * let link = document.createElement('a');\n * link.innerHTML = 'Download image';\n * link.href = L2Dwidget.captureFrame();\n * link.download = 'live2d.png';\n * link.click();\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n ", - "start": 3526, - "end": 4056, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4075, + "end": 4076, "loc": { "start": { - "line": 76, - "column": 0 + "line": 94, + "column": 18 }, - "end": { - "line": 89, - "column": 3 + "end": { + "line": 94, + "column": 19 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6096,24 +10348,23 @@ "postfix": false, "binop": null }, - "value": "L2Dwidget", - "start": 4058, - "end": 4067, + "start": 4076, + "end": 4077, "loc": { "start": { - "line": 91, - "column": 0 + "line": 94, + "column": 19 }, "end": { - "line": 91, - "column": 9 + "line": 94, + "column": 20 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -6123,24 +10374,24 @@ "binop": null, "updateContext": null }, - "start": 4067, - "end": 4068, + "start": 4077, + "end": 4078, "loc": { "start": { - "line": 91, - "column": 9 + "line": 94, + "column": 20 }, "end": { - "line": 91, - "column": 10 + "line": 94, + "column": 21 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6148,75 +10399,73 @@ "postfix": false, "binop": null }, - "value": "captureFrame", - "start": 4068, - "end": 4080, + "start": 4085, + "end": 4086, "loc": { "start": { - "line": 91, - "column": 10 + "line": 95, + "column": 6 }, "end": { - "line": 91, - "column": 22 + "line": 95, + "column": 7 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 4081, - "end": 4082, + "start": 4091, + "end": 4092, "loc": { "start": { - "line": 91, - "column": 23 + "line": 96, + "column": 4 }, "end": { - "line": 91, - "column": 24 + "line": 96, + "column": 5 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4083, - "end": 4084, + "start": 4092, + "end": 4093, "loc": { "start": { - "line": 91, - "column": 25 + "line": 96, + "column": 5 }, "end": { - "line": 91, - "column": 26 + "line": 96, + "column": 6 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -6226,75 +10475,75 @@ "postfix": false, "binop": null }, - "start": 4084, - "end": 4085, + "start": 4096, + "end": 4097, "loc": { "start": { - "line": 91, - "column": 26 + "line": 97, + "column": 2 }, "end": { - "line": 91, - "column": 27 + "line": 97, + "column": 3 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4086, - "end": 4088, + "start": 4099, + "end": 4100, "loc": { "start": { - "line": 91, - "column": 28 + "line": 99, + "column": 0 }, "end": { - "line": 91, - "column": 30 + "line": 99, + "column": 1 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4089, - "end": 4090, + "start": 4100, + "end": 4101, "loc": { "start": { - "line": 91, - "column": 31 + "line": 99, + "column": 1 }, "end": { - "line": 91, - "column": 32 + "line": 99, + "column": 2 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -6304,17 +10553,17 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 4090, - "end": 4096, + "value": "let", + "start": 4103, + "end": 4106, "loc": { "start": { - "line": 91, - "column": 32 + "line": 101, + "column": 0 }, "end": { - "line": 91, - "column": 38 + "line": 101, + "column": 3 } } }, @@ -6330,76 +10579,79 @@ "postfix": false, "binop": null }, - "value": "coreApp", - "start": 4097, - "end": 4104, + "value": "_", + "start": 4107, + "end": 4108, "loc": { "start": { - "line": 91, - "column": 39 + "line": 101, + "column": 4 }, "end": { - "line": 91, - "column": 46 + "line": 101, + "column": 5 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 4104, - "end": 4105, + "value": "=", + "start": 4109, + "end": 4110, "loc": { "start": { - "line": 91, - "column": 46 + "line": 101, + "column": 6 }, "end": { - "line": 91, - "column": 47 + "line": 101, + "column": 7 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "new", + "keyword": "new", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "captureFrame", - "start": 4105, - "end": 4117, + "value": "new", + "start": 4111, + "end": 4114, "loc": { "start": { - "line": 91, - "column": 47 + "line": 101, + "column": 8 }, "end": { - "line": 91, - "column": 59 + "line": 101, + "column": 11 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -6408,24 +10660,25 @@ "postfix": false, "binop": null }, - "start": 4117, - "end": 4118, + "value": "L2Dwidget", + "start": 4115, + "end": 4124, "loc": { "start": { - "line": 91, - "column": 59 + "line": 101, + "column": 12 }, "end": { - "line": 91, - "column": 60 + "line": 101, + "column": 21 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6433,22 +10686,22 @@ "postfix": false, "binop": null }, - "start": 4118, - "end": 4119, + "start": 4124, + "end": 4125, "loc": { "start": { - "line": 91, - "column": 60 + "line": 101, + "column": 21 }, "end": { - "line": 91, - "column": 61 + "line": 101, + "column": 22 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -6458,16 +10711,16 @@ "postfix": false, "binop": null }, - "start": 4119, - "end": 4120, + "start": 4125, + "end": 4126, "loc": { "start": { - "line": 91, - "column": 61 + "line": 101, + "column": 22 }, "end": { - "line": 91, - "column": 62 + "line": 101, + "column": 23 } } }, @@ -6484,16 +10737,16 @@ "binop": null, "updateContext": null }, - "start": 4120, - "end": 4121, + "start": 4126, + "end": 4127, "loc": { "start": { - "line": 91, - "column": 62 + "line": 101, + "column": 23 }, "end": { - "line": 91, - "column": 63 + "line": 101, + "column": 24 } } }, @@ -6512,15 +10765,15 @@ "updateContext": null }, "value": "export", - "start": 4123, - "end": 4129, + "start": 4130, + "end": 4136, "loc": { "start": { - "line": 93, + "line": 104, "column": 0 }, "end": { - "line": 93, + "line": 104, "column": 6 } } @@ -6537,15 +10790,15 @@ "postfix": false, "binop": null }, - "start": 4130, - "end": 4131, + "start": 4137, + "end": 4138, "loc": { "start": { - "line": 93, + "line": 104, "column": 7 }, "end": { - "line": 93, + "line": 104, "column": 8 } } @@ -6562,17 +10815,69 @@ "postfix": false, "binop": null }, - "value": "L2Dwidget", - "start": 4134, - "end": 4143, + "value": "_", + "start": 4141, + "end": 4142, "loc": { "start": { - "line": 94, + "line": 105, "column": 2 }, "end": { - "line": 94, - "column": 11 + "line": 105, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "as", + "start": 4143, + "end": 4145, + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "L2Dwidget", + "start": 4146, + "end": 4155, + "loc": { + "start": { + "line": 105, + "column": 7 + }, + "end": { + "line": 105, + "column": 16 } } }, @@ -6589,16 +10894,16 @@ "binop": null, "updateContext": null }, - "start": 4143, - "end": 4144, + "start": 4155, + "end": 4156, "loc": { "start": { - "line": 94, - "column": 11 + "line": 105, + "column": 16 }, "end": { - "line": 94, - "column": 12 + "line": 105, + "column": 17 } } }, @@ -6614,15 +10919,15 @@ "postfix": false, "binop": null }, - "start": 4145, - "end": 4146, + "start": 4157, + "end": 4158, "loc": { "start": { - "line": 95, + "line": 106, "column": 0 }, "end": { - "line": 95, + "line": 106, "column": 1 } } @@ -6640,15 +10945,15 @@ "binop": null, "updateContext": null }, - "start": 4147, - "end": 4147, + "start": 4159, + "end": 4159, "loc": { "start": { - "line": 96, + "line": 107, "column": 0 }, "end": { - "line": 96, + "line": 107, "column": 0 } } diff --git a/ghpages/docs/ast/source/wpPublicPath.js.json b/ghpages/docs/ast/source/wpPublicPath.js.json index f69cf4f..35b99ce 100644 --- a/ghpages/docs/ast/source/wpPublicPath.js.json +++ b/ghpages/docs/ast/source/wpPublicPath.js.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 2713, + "end": 2721, "loc": { "start": { "line": 1, @@ -15,7 +15,7 @@ "program": { "type": "Program", "start": 0, - "end": 2713, + "end": 2721, "loc": { "start": { "line": 1, @@ -1174,7 +1174,7 @@ { "type": "IfStatement", "start": 2573, - "end": 2682, + "end": 2690, "loc": { "start": { "line": 99, @@ -1307,7 +1307,7 @@ "consequent": { "type": "BlockStatement", "start": 2616, - "end": 2682, + "end": 2690, "loc": { "start": { "line": 99, @@ -1322,7 +1322,7 @@ { "type": "ExpressionStatement", "start": 2620, - "end": 2680, + "end": 2688, "loc": { "start": { "line": 100, @@ -1330,13 +1330,13 @@ }, "end": { "line": 100, - "column": 62 + "column": 70 } }, "expression": { "type": "CallExpression", "start": 2620, - "end": 2679, + "end": 2687, "loc": { "start": { "line": 100, @@ -1344,7 +1344,7 @@ }, "end": { "line": 100, - "column": 61 + "column": 69 } }, "callee": { @@ -1401,7 +1401,7 @@ { "type": "TemplateLiteral", "start": 2632, - "end": 2678, + "end": 2686, "loc": { "start": { "line": 100, @@ -1409,22 +1409,22 @@ }, "end": { "line": 100, - "column": 60 + "column": 68 } }, "expressions": [ { "type": "Identifier", - "start": 2653, - "end": 2676, + "start": 2661, + "end": 2684, "loc": { "start": { "line": 100, - "column": 35 + "column": 43 }, "end": { "line": 100, - "column": 58 + "column": 66 }, "identifierName": "__webpack_public_path__" }, @@ -1435,7 +1435,7 @@ { "type": "TemplateElement", "start": 2633, - "end": 2651, + "end": 2659, "loc": { "start": { "line": 100, @@ -1443,27 +1443,27 @@ }, "end": { "line": 100, - "column": 33 + "column": 41 } }, "value": { - "raw": "wpPP: publicPath: ", - "cooked": "wpPP: publicPath: " + "raw": "Live2Dwidget: publicPath: ", + "cooked": "Live2Dwidget: publicPath: " }, "tail": false }, { "type": "TemplateElement", - "start": 2677, - "end": 2677, + "start": 2685, + "end": 2685, "loc": { "start": { "line": 100, - "column": 59 + "column": 67 }, "end": { "line": 100, - "column": 59 + "column": 67 } }, "value": { @@ -1484,8 +1484,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 2684, - "end": 2712, + "start": 2692, + "end": 2720, "loc": { "start": { "line": 103, @@ -1500,8 +1500,8 @@ "specifiers": [ { "type": "ExportSpecifier", - "start": 2695, - "end": 2709, + "start": 2703, + "end": 2717, "loc": { "start": { "line": 104, @@ -1514,8 +1514,8 @@ }, "local": { "type": "Identifier", - "start": 2695, - "end": 2709, + "start": 2703, + "end": 2717, "loc": { "start": { "line": 104, @@ -1531,8 +1531,8 @@ }, "exported": { "type": "Identifier", - "start": 2695, - "end": 2709, + "start": 2703, + "end": 2717, "loc": { "start": { "line": 104, @@ -1552,8 +1552,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 2684, - "end": 2712, + "start": 2692, + "end": 2720, "loc": { "start": { "line": 103, @@ -5503,9 +5503,9 @@ "binop": null, "updateContext": null }, - "value": "wpPP: publicPath: ", + "value": "Live2Dwidget: publicPath: ", "start": 2633, - "end": 2651, + "end": 2659, "loc": { "start": { "line": 100, @@ -5513,7 +5513,7 @@ }, "end": { "line": 100, - "column": 33 + "column": 41 } } }, @@ -5529,16 +5529,16 @@ "postfix": false, "binop": null }, - "start": 2651, - "end": 2653, + "start": 2659, + "end": 2661, "loc": { "start": { "line": 100, - "column": 33 + "column": 41 }, "end": { "line": 100, - "column": 35 + "column": 43 } } }, @@ -5555,16 +5555,16 @@ "binop": null }, "value": "__webpack_public_path__", - "start": 2653, - "end": 2676, + "start": 2661, + "end": 2684, "loc": { "start": { "line": 100, - "column": 35 + "column": 43 }, "end": { "line": 100, - "column": 58 + "column": 66 } } }, @@ -5580,16 +5580,16 @@ "postfix": false, "binop": null }, - "start": 2676, - "end": 2677, + "start": 2684, + "end": 2685, "loc": { "start": { "line": 100, - "column": 58 + "column": 66 }, "end": { "line": 100, - "column": 59 + "column": 67 } } }, @@ -5607,16 +5607,16 @@ "updateContext": null }, "value": "", - "start": 2677, - "end": 2677, + "start": 2685, + "end": 2685, "loc": { "start": { "line": 100, - "column": 59 + "column": 67 }, "end": { "line": 100, - "column": 59 + "column": 67 } } }, @@ -5632,16 +5632,16 @@ "postfix": false, "binop": null }, - "start": 2677, - "end": 2678, + "start": 2685, + "end": 2686, "loc": { "start": { "line": 100, - "column": 59 + "column": 67 }, "end": { "line": 100, - "column": 60 + "column": 68 } } }, @@ -5657,16 +5657,16 @@ "postfix": false, "binop": null }, - "start": 2678, - "end": 2679, + "start": 2686, + "end": 2687, "loc": { "start": { "line": 100, - "column": 60 + "column": 68 }, "end": { "line": 100, - "column": 61 + "column": 69 } } }, @@ -5683,16 +5683,16 @@ "binop": null, "updateContext": null }, - "start": 2679, - "end": 2680, + "start": 2687, + "end": 2688, "loc": { "start": { "line": 100, - "column": 61 + "column": 69 }, "end": { "line": 100, - "column": 62 + "column": 70 } } }, @@ -5708,8 +5708,8 @@ "postfix": false, "binop": null }, - "start": 2681, - "end": 2682, + "start": 2689, + "end": 2690, "loc": { "start": { "line": 101, @@ -5736,8 +5736,8 @@ "updateContext": null }, "value": "export", - "start": 2684, - "end": 2690, + "start": 2692, + "end": 2698, "loc": { "start": { "line": 103, @@ -5761,8 +5761,8 @@ "postfix": false, "binop": null }, - "start": 2691, - "end": 2692, + "start": 2699, + "end": 2700, "loc": { "start": { "line": 103, @@ -5787,8 +5787,8 @@ "binop": null }, "value": "getCurrentPath", - "start": 2695, - "end": 2709, + "start": 2703, + "end": 2717, "loc": { "start": { "line": 104, @@ -5813,8 +5813,8 @@ "binop": null, "updateContext": null }, - "start": 2709, - "end": 2710, + "start": 2717, + "end": 2718, "loc": { "start": { "line": 104, @@ -5838,8 +5838,8 @@ "postfix": false, "binop": null }, - "start": 2711, - "end": 2712, + "start": 2719, + "end": 2720, "loc": { "start": { "line": 105, @@ -5864,8 +5864,8 @@ "binop": null, "updateContext": null }, - "start": 2713, - "end": 2713, + "start": 2721, + "end": 2721, "loc": { "start": { "line": 106, diff --git a/ghpages/docs/badge.svg b/ghpages/docs/badge.svg index b8e6201..305dd58 100644 --- a/ghpages/docs/badge.svg +++ b/ghpages/docs/badge.svg @@ -11,7 +11,7 @@ document document - 19% - 19% + 20% + 20% diff --git a/ghpages/docs/class/src/index.js~L2Dwidget.html b/ghpages/docs/class/src/index.js~L2Dwidget.html new file mode 100644 index 0000000..4790b3d --- /dev/null +++ b/ghpages/docs/class/src/index.js~L2Dwidget.html @@ -0,0 +1,611 @@ + + + + + + L2Dwidget | live2d-widget.js + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+
import {L2Dwidget} from 'live2d-widget/src/index.js'
+ public + class + + + + | source +
+ +
+

L2Dwidget

+ + + + + + + + + + + + + + + +

The main entry point, which is ... nothing

+
+ + + + + + + + + +
+ + + + + +

Method Summary

+ + + + + + + + + + + + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ + + + captureFrame(callback: Function): null +

+
+
+ + +

Capture current frame to png file captureFrame

+
+
+
+ + +
+ public + + + + + +
+

+ + + + downloadFrame(): null +

+
+
+ + +

download current frame L2Dwidget.captureFrame

+
+
+
+ + +
+ public + + + + + +
+

+ + + + init(userConfig: Object): null +

+
+
+ + +

The init function

+
+
+
+ + +
+
+ + + + + + + +

Public Methods

+ +
+

+ public + + + + + + captureFrame(callback: Function): null + + + + source + +

+ + + + +

Capture current frame to png file captureFrame

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
callbackFunction

The callback function which will receive the current frame

+
+
+
+ +
+

Return:

+ + + + + + + +
null
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + downloadFrame(): null + + + + source + +

+ + + + +

download current frame L2Dwidget.captureFrame

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
null
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + init(userConfig: Object): null + + + + source + +

+ + + + +

The init function

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
userConfigObject
  • optional

User's custom config 用户自定义设置

+
userConfig.model.jsonPathString
  • optional
  • +
  • default: ''

Path to Live2D model's main json eg. https://test.com/miku.model.json model主文件路径

+
userConfig.model.scaleNumber
  • optional
  • +
  • default: 1

Scale between the model and the canvas 模型与canvas的缩放

+
userConfig.model.hHeadPosNumber
  • optional
  • +
  • default: 0.5

Horizontal position of model's head 模型头部横坐标

+
userConfig.model.vHeadPosNumber
  • optional
  • +
  • default: 0.618

Vertical position of model's head 模型头部纵坐标

+
userConfig.model.myDefineArray
  • optional
  • +
  • default: []

User's custom Defines which will override LDefine 自定义的LDefine

+
userConfig.display.superSampleNumber
  • optional
  • +
  • default: 2

rate for super sampling rate 超采样等级

+
userConfig.display.widthNumber
  • optional
  • +
  • default: 150

Width to the canvas which shows the model canvas的长度

+
userConfig.display.heightNumber
  • optional
  • +
  • default: 300

Height to the canvas which shows the model canvas的高度

+
userConfig.display.positionString
  • optional
  • +
  • default: 'right'

Left of right side to show 显示位置:左或右

+
userConfig.display.hOffsetNumber
  • optional
  • +
  • default: 0

Horizontal offset of the canvas canvas水平偏移

+
userConfig.display.vOffsetNumber
  • optional
  • +
  • default: -20

Vertical offset of the canvas canvas垂直偏移

+
userConfig.mobile.showBoolean
  • optional
  • +
  • default: true

Whether to show on mobile device 是否在移动设备上显示

+
userConfig.mobile.scaleNumber
  • optional
  • +
  • default: 0.5

Scale on mobile device 移动设备上的缩放

+
userConfig.mobile.motionBoolean
  • optional
  • +
  • default: true

Whether to enable motion detection on mobile devices 移动设备是否开启重力感应

+
userConfig.name.canvasString
  • optional
  • +
  • default: 'live2dcanvas'

ID name of the canvas canvas元素的ID

+
userConfig.name.divString
  • optional
  • +
  • default: 'live2d-widget'

ID name of the div div元素的ID

+
userConfig.react.opacityDefaultNumber
  • optional
  • +
  • default: 0.7

Default opacity 默认透明度

+
userConfig.react.opacityOnHoverNumber
  • optional
  • +
  • default: 0.2

OnHover opacity 鼠标移上透明度

+
userConfig.react.myFuncFunction
  • optional
  • +
  • default: func(e)

Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器

+
userConfig.dev.logBoolean
  • optional
  • +
  • default: false

Whether to show log 显示日志

+
userConfig.dev.borderBoolean
  • optional
  • +
  • default: false

Whether to show border around the canvas 在canvas周围显示边界

+
userConfig.dev.mouseLogBoolean
  • optional
  • +
  • default: false

Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动

+
userConfig.dev.mouseFuncFunction
  • optional
  • +
  • default: func(x, y, ix, iy)

Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数

+
+
+
+ +
+

Return:

+ + + + + + + +
null
+
+
+
+ + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/ghpages/docs/coverage.json b/ghpages/docs/coverage.json index 4da0583..0df5c5d 100644 --- a/ghpages/docs/coverage.json +++ b/ghpages/docs/coverage.json @@ -1,7 +1,7 @@ { - "coverage": "19.36%", - "expectCount": 315, - "actualCount": 61, + "coverage": "20%", + "expectCount": 320, + "actualCount": 64, "files": { "src/cDefine.js": { "expectCount": 1, @@ -9,7 +9,7 @@ "undocumentLines": [] }, "src/cLive2DApp.js": { - "expectCount": 32, + "expectCount": 33, "actualCount": 2, "undocumentLines": [ 28, @@ -24,24 +24,25 @@ 37, 38, 39, - 103, - 116, - 132, - 160, - 167, - 189, - 194, - 203, - 267, - 294, - 321, - 352, - 360, - 375, - 388, - 395, - 402, - 408 + 40, + 111, + 124, + 144, + 172, + 179, + 201, + 206, + 215, + 279, + 306, + 333, + 364, + 372, + 387, + 400, + 407, + 414, + 420 ] }, "src/cManager.js": { @@ -97,9 +98,11 @@ "undocumentLines": [] }, "src/index.js": { - "expectCount": 1, - "actualCount": 1, - "undocumentLines": [] + "expectCount": 5, + "actualCount": 4, + "undocumentLines": [ + 101 + ] }, "src/lib/Live2DFramework.js": { "expectCount": 103, diff --git a/ghpages/docs/file/src/PlatformManager.js.html b/ghpages/docs/file/src/PlatformManager.js.html index 40b5fd3..d11ae65 100644 --- a/ghpages/docs/file/src/PlatformManager.js.html +++ b/ghpages/docs/file/src/PlatformManager.js.html @@ -29,13 +29,13 @@
+ +

+

Bookmark (any pages)

TBD.

+

https://www.cnblogs.com/pcyy/p/5655542.html

+

Settings

See the document.

Current supported models:
- chitose @@ -132,18 +151,21 @@

Contribute

Please pay enough attention to thi

Releated projects

About me

Author

-

QQ

-

Email

+

Author QQ

+

Author Email

+

Collaborator 0

+

Collaborator 0 QQ

+

Collaborator 0 Email

Imported

current-device

Special Thanks

  • @mashirozx
  • @@ -161,33 +183,54 @@

    Special Thanks

      -

      3.0.0 (2018-01-12)

        -
      • chore: add comments (24b43e3)
      • -
      • chore: new build version (7216003)
      • -
      • docs: add ESDoc (9a67891)
      • -
      • docs: fix bugs, update (14d0730)
      • -
      • docs: Update API varible types (f3ab76b)
      • -
      • docs: update CHANGELOG (89765f5)
      • -
      • docs(LICENSE): combine LICENSE (6be306f)
      • +

        3.0.0 (2018-01-13)

          +
        • feat: 3.0 API now is fixed. reday to publish (32a7b6d)
        • +
        • feat: API chanes again ! get current frame (cc76f02)
        • feat: config (62118e1)
        • feat: config validater (cc587b2)
        • feat: delete config validate function (0234132)
        • +
        • feat: elementMgr codes, modify API (e6433e3)
        • +
        • feat: elementMgr functionally done (aa09c5d)
        • +
        • feat: FINALLY USEABLE (basically) (7c121a2)
        • feat: finish config validater (67a0558)
        • feat: fix webpack PublicPath prob. (093ee10)
        • +
        • feat: http(s) protocol supports for model's json's textures (d9b854a)
        • feat: import lodash (be5531d)
        • feat: marked unfinished files, rebuild file structure, config works (62555a9)
        • +
        • feat: modified live2d core js (d3c7ab5)
        • +
        • feat: TEST Create DOM use js (1a8db01)
        • feat: update source code (28d350b)
        • feat: use ~ to mark version (4f0e865)
        • +
        • feat(API): typo (b342953)
        • feat(config): new config (5f13a2b)
        • feat(Webpack): lazy load and chunks (ccbe0d0)
        • feat(Webpack): updated webpack config (260cbad)
        • +
        • chore: add comments (24b43e3)
        • +
        • chore: new build version (c698c90)
        • +
        • chore: new build version (7216003)
        • +
        • docs: add ESDoc (9a67891)
        • +
        • docs: added demo and doc (5d4cddc)
        • +
        • docs: fix bugs, update (14d0730)
        • +
        • docs: new doc build logic (a7f1d54)
        • +
        • docs: Update API varible types (f3ab76b)
        • +
        • docs: update CHANGELOG (abf0618)
        • +
        • docs: update CHANGELOG (89765f5)
        • +
        • docs: update docs (0ec0dec)
        • +
        • docs: update docs (3955611)
        • +
        • docs(LICENSE): combine LICENSE (6be306f)
        • +
        • feat: (8c668b1)
        • +
        • Initial commit (cc61b39)
        • +
        • The Real Initial Commit (23ba71c)
        • +
        • build: new doc build method (6854707)
        • fix: old dependencies (7a2f272)
        • fix(webpack): fix webpack publicPath issue (a8a630e)
        • style: fix indent (cb6f7d9)
        • -
        • Initial commit (cc61b39)
        • -
        • The Real Initial Commit (23ba71c)
        • +

        BREAKING CHANGE

          +
        • change userConfig.display.AA to userConfig.display.antialias
        • +
        • change userConfig.display.widght to userConfig.display.width
        • +
        • Please use L2DWidget.init() and L2DWidget.captureFrame() instead of initL2DWidget()
        - +
      diff --git a/ghpages/docs/index.json b/ghpages/docs/index.json index d83f559..0105a13 100644 --- a/ghpages/docs/index.json +++ b/ghpages/docs/index.json @@ -597,7 +597,7 @@ "__docId__": 50, "kind": "file", "name": "src/cLive2DApp.js", - "content": "/**\n * @description The main part of live2d-widget\n */\n\n\nimport { config } from './config/configMgr';\nimport { createElement, currWebGL, currCanvas } from './elementMgr';\nimport { UtSystem,\n UtDebug,\n LDTransform,\n LDGL,\n Live2D,\n Live2DModelWebGL,\n Live2DModelJS,\n Live2DMotion,\n MotionQueueManager,\n PhysicsHair,\n AMotion,\n PartsDataID,\n DrawDataID,\n BaseDataID,\n ParamID } from './lib/live2d.core';\nimport { L2DTargetPoint, L2DViewMatrix, L2DMatrix44 } from \"./lib/Live2DFramework\";\nimport { cManager } from \"./cManager\";\nimport { MatrixStack } from \"./utils/MatrixStack\";\nimport { cDefine } from \"./cDefine\";\n\nlet live2DMgr = new cManager();\nlet isDrawStart = false;\nlet dragMgr = null;\nlet viewMatrix = null;\nlet projMatrix = null;\nlet deviceToScreen = null;\nlet drag = false;\nlet lastMouseX = 0;\nlet lastMouseY = 0;\nlet headPos = 0.5;\nlet opacityDefault = 0.7;\nlet opacityHover = 1;\n\n\n\n/**\n * Main function of live2d-widget\n * @return {null}\n */\n\nfunction theRealInit (){\n\n createElement();\n\n dragMgr = new L2DTargetPoint();\n let ratio = config.display.height / config.display.width;\n let left = cDefine.VIEW_LOGICAL_LEFT;\n let right = cDefine.VIEW_LOGICAL_RIGHT;\n let bottom = -ratio;\n let top = ratio;\n\n viewMatrix = new L2DViewMatrix();\n\n viewMatrix.setScreenRect(left, right, bottom, top);\n\n viewMatrix.setMaxScreenRect(cDefine.VIEW_LOGICAL_MAX_LEFT,\n cDefine.VIEW_LOGICAL_MAX_RIGHT,\n cDefine.VIEW_LOGICAL_MAX_BOTTOM,\n cDefine.VIEW_LOGICAL_MAX_TOP);\n\n projMatrix = new L2DMatrix44();\n projMatrix.multScale(1, (config.display.width / config.display.height));\n\n deviceToScreen = new L2DMatrix44();\n deviceToScreen.multTranslate(-config.display.width / 2.0, -config.display.height / 2.0); // #32\n deviceToScreen.multScale(2 / config.display.width, -2 / config.display.height); // #32\n\n\n Live2D.setGL(currWebGL);\n currWebGL.clearColor(0.0, 0.0, 0.0, 0.0);\n changeModel(config.model.jsonPath);\n startDraw();\n\n}\n/**\n * Return the data URI of current frame, MINE type is image/png.\n * @return {DOMString} Which contains data URI, MINE type is image/png\n * @example\n * You can use codes below to let the user download the current frame\n *\n * let link = document.createElement('a');\n * document.body.appendChild(link);\n * link.setAttribute('type', 'hidden');\n * link.href = L2Dwidget.captureFrame();\n * link.download = 'live2d.png';\n * link.click();\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n * @todo Seems feedback empty image only\n */\n\nfunction captureFrame(){\n return currCanvas.toDataURL();\n}\n\nfunction initEvent(){/*\n if (currCanvas.addEventListener) {\n window.addEventListener(\"click\", mouseEvent);\n window.addEventListener(\"mousedown\", mouseEvent);\n window.addEventListener(\"mousemove\", mouseEvent);\n window.addEventListener(\"mouseup\", mouseEvent);\n document.addEventListener(\"mouseleave\", mouseEvent);\n window.addEventListener(\"touchstart\", touchEvent);\n window.addEventListener(\"touchend\", touchEvent);\n window.addEventListener(\"touchmove\", touchEvent);\n }*/\n}\n\nfunction startDraw() {\n if (!isDrawStart) {\n isDrawStart = true;\n (function tick() {\n draw();\n let requestAnimationFrame =\n window.requestAnimationFrame ||\n window.mozRequestAnimationFrame ||\n window.webkitRequestAnimationFrame ||\n window.msRequestAnimationFrame;\n\n requestAnimationFrame(tick, currCanvas);\n })();\n }\n}\n\nfunction draw()\n{\n MatrixStack.reset();\n MatrixStack.loadIdentity();\n dragMgr.update();\n live2DMgr.setDrag(dragMgr.getX(), dragMgr.getY());\n\n currWebGL.clear(currWebGL.COLOR_BUFFER_BIT);\n\n MatrixStack.multMatrix(projMatrix.getArray());\n MatrixStack.multMatrix(viewMatrix.getArray());\n MatrixStack.push();\n\n for (let i = 0; i < live2DMgr.numModels(); i++)\n {\n let model = live2DMgr.getModel(i);\n\n if(model == null) return;\n\n if (model.initialized && !model.updating)\n {\n model.update();\n model.draw(currWebGL);\n }\n }\n MatrixStack.pop();\n}\n\nfunction changeModel(modelurl) // 更换模型\n{\n live2DMgr.reloadFlg = true;\n live2DMgr.count++; // 现在仍有多模型支持,稍后可以精简\n live2DMgr.changeModel(currWebGL, modelurl);\n}\n\nfunction modelScaling(scale) {\n viewMatrix.adjustScale(0, 0, scale);\n}\n/*\nfunction transformRange(center, transform, range)\n{\n let a = {\n x: transform.x - center.x,\n y: transform.y - center.y\n }\n let r = Math.sqrt(Math.pow(a.x,2) + Math.pow(a.y,2));\n if (r > range) {\n a = {\n x: a.x / r * range + center.x,\n y: a.y / r * range + center.y\n };\n return a;\n } else {\n return transform;\n }\n}\n*/\nfunction dot(A,B)\n{\n return A.x * B.x + A.y * B.y;\n}\n\nfunction normalize(x,y)\n{\n let length = Math.sqrt(x * x + y * y)\n return {\n x: x / length,\n y: y / length\n }\n}\n\nfunction transformRect(center, transform, rect)\n{\n if (transform.x < rect.left + rect.width && transform.y < rect.top + rect.height &&\n transform.x > rect.left && transform.y > rect.top) return transform;\n let Len_X = center.x - transform.x;\n let Len_Y = center.y - transform.y;\n\n function angle(Len_X, Len_Y)\n {\n return Math.acos(dot({\n x: 0,\n y: 1\n }, normalize(Len_X, Len_Y))) * 180 / Math.PI\n }\n\n let angleTarget = angle(Len_X, Len_Y);\n if (transform.x < center.x) angleTarget = 360 - angleTarget;\n let angleLeftTop = 360 - angle(rect.left - center.x, (rect.top - center.y) * -1);\n let angleLeftBottom = 360 - angle(rect.left - center.x, (rect.top + rect.height - center.y) * -1);\n let angleRightTop = angle(rect.left + rect.width - center.x, (rect.top - center.y) * -1);\n let angleRightBottom = angle(rect.left + rect.width - center.x, (rect.top + rect.height - center.y) * -1);\n let scale = Len_Y / Len_X;\n let res = {};\n\n if (angleTarget < angleRightTop) {\n let y3 = rect.top - center.y;\n let x3 = y3 / scale;\n res = {\n y: center.y + y3,\n x: center.x + x3\n }\n } else if(angleTarget < angleRightBottom) {\n let x3 = rect.left + rect.width - center.x;\n let y3 = x3 * scale;\n res = {\n y: center.y + y3,\n x: center.x + x3\n }\n } else if (angleTarget < angleLeftBottom) {\n let y3 = rect.top + rect.height - center.y;\n let x3 = y3 / scale;\n res = {\n y: center.y + y3,\n x: center.x + x3\n }\n } else if (angleTarget < angleLeftTop) {\n let x3 = center.x - rect.left;\n let y3 = x3 * scale;\n res = {\n y: center.y - y3,\n x: center.x - x3\n }\n } else {\n let y3 = rect.top - center.y;\n let x3 = y3 / scale;\n res = {\n y: center.y + y3,\n x: center.x + x3\n }\n }\n\n return res;\n}\n\nfunction modelTurnHead(event)\n{\n drag = true;\n\n let rect = currCanvas.getBoundingClientRect();\n\n let sx = transformScreenX(event.clientX - rect.left);\n let sy = transformScreenY(event.clientY - rect.top);\n let target = transformRect({\n x: rect.left + rect.width / 2,\n y: rect.top + rect.height * headPos\n }, {\n x: event.clientX,\n y: event.clientY\n }, rect)\n let vx = transformViewX(target.x - rect.left);\n let vy = transformViewY(target.y - rect.top);\n\n if (cDefine.DEBUG_MOUSE_LOG)\n console.log(\"modelTurnHead onMouseMove device( x:\" + event.clientX + \" y:\" + event.clientY + \" ) view( x:\" + vx + \" y:\" + vy + \")\");\n\n lastMouseX = sx;\n lastMouseY = sy;\n\n dragMgr.setPoint(vx, vy);\n}\n\nfunction modelTapEvent(event)\n{\n drag = true;\n\n let rect = currCanvas.getBoundingClientRect();\n\n let sx = transformScreenX(event.clientX - rect.left);\n let sy = transformScreenY(event.clientY - rect.top);\n let target = transformRect({\n x: rect.left + rect.width / 2,\n y: rect.top + rect.height * headPos\n }, {\n x: event.clientX,\n y: event.clientY\n }, rect)\n let vx = transformViewX(target.x - rect.left);\n let vy = transformViewY(target.y - rect.top);\n\n if (cDefine.DEBUG_MOUSE_LOG)\n console.log(\"modelTapEvent onMouseDown device( x:\" + event.clientX + \" y:\" + event.clientY + \" ) view( x:\" + vx + \" y:\" + vy + \")\");\n\n lastMouseX = sx;\n lastMouseY = sy;\n\n live2DMgr.tapEvent(vx, vy);\n}\n\nfunction followPointer(event)\n{\n let rect = currCanvas.getBoundingClientRect();\n\n let sx = transformScreenX(event.clientX - rect.left);\n let sy = transformScreenY(event.clientY - rect.top);\n\n // log but seems ok\n // console.log(\"ecx=\" + event.clientX + \" ecy=\" + event.clientY + \" sx=\" + sx + \" sy=\" + sy);\n\n let target = transformRect({// seems ok here\n x: rect.left + rect.width / 2,\n y: rect.top + rect.height * headPos\n }, {\n x: event.clientX,\n y: event.clientY\n }, rect)\n let vx = transformViewX(target.x - rect.left);\n let vy = transformViewY(target.y - rect.top);\n\n if (cDefine.DEBUG_MOUSE_LOG)\n console.log(\"followPointer onMouseMove device( x:\" + event.clientX + \" y:\" + event.clientY + \" ) view( x:\" + vx + \" y:\" + vy + \")\");\n\n if (drag)\n {\n lastMouseX = sx;\n lastMouseY = sy;\n dragMgr.setPoint(vx, vy);\n }\n}\n\nfunction lookFront()\n{\n if (drag) {\n drag = false;\n }\n dragMgr.setPoint(0, 0);\n}\n\nfunction mouseEvent(e)\n{\n //e.preventDefault();\n if (e.type == \"mousedown\") {\n modelTapEvent(e);\n } else if (e.type == \"mousemove\") {\n modelTurnHead(e);\n } else if (e.type == \"mouseup\") {\n if(\"button\" in e && e.button != 0) return;\n // lookFront();\n } else if (e.type == \"mouseleave\") {\n lookFront();\n }\n}\n\nfunction touchEvent(e)\n{\n var touch = e.touches[0];\n if (e.type == \"touchstart\") {\n if (e.touches.length == 1) modelTapEvent(touch);\n // onClick(touch);\n } else if (e.type == \"touchmove\") {\n followPointer(touch);\n } else if (e.type == \"touchend\") {\n lookFront();\n }\n}\n\nfunction transformViewX(deviceX)\n{\n var screenX = deviceToScreen.transformX(deviceX);\n return viewMatrix.invertTransformX(screenX);\n}\n\n\nfunction transformViewY(deviceY)\n{\n var screenY = deviceToScreen.transformY(deviceY);\n return viewMatrix.invertTransformY(screenY);\n}\n\n\nfunction transformScreenX(deviceX)\n{\n return deviceToScreen.transformX(deviceX);\n}\n\n\nfunction transformScreenY(deviceY)\n{\n return deviceToScreen.transformY(deviceY);\n}\n\nexport{\n theRealInit,\n captureFrame,\n}\n", + "content": "/**\n * @description The main part of live2d-widget\n */\n\n\nimport { config } from './config/configMgr';\nimport { createElement, currWebGL, currCanvas } from './elementMgr';\nimport { UtSystem,\n UtDebug,\n LDTransform,\n LDGL,\n Live2D,\n Live2DModelWebGL,\n Live2DModelJS,\n Live2DMotion,\n MotionQueueManager,\n PhysicsHair,\n AMotion,\n PartsDataID,\n DrawDataID,\n BaseDataID,\n ParamID } from './lib/live2d.core';\nimport { L2DTargetPoint, L2DViewMatrix, L2DMatrix44 } from \"./lib/Live2DFramework\";\nimport { cManager } from \"./cManager\";\nimport { MatrixStack } from \"./utils/MatrixStack\";\nimport { cDefine } from \"./cDefine\";\n\nlet live2DMgr = new cManager();\nlet captureFrameCB = undefined;\nlet isDrawStart = false;\nlet dragMgr = null;\nlet viewMatrix = null;\nlet projMatrix = null;\nlet deviceToScreen = null;\nlet drag = false;\nlet lastMouseX = 0;\nlet lastMouseY = 0;\nlet headPos = 0.5;\nlet opacityDefault = 0.7;\nlet opacityHover = 1;\n\n\n\n/**\n * Main function of live2d-widget\n * @return {null}\n */\n\nfunction theRealInit (){\n\n createElement();\n initEvent();\n\n dragMgr = new L2DTargetPoint();\n let ratio = currCanvas.height / currCanvas.width;\n let left = cDefine.VIEW_LOGICAL_LEFT;\n let right = cDefine.VIEW_LOGICAL_RIGHT;\n let bottom = -ratio;\n let top = ratio;\n\n viewMatrix = new L2DViewMatrix();\n\n viewMatrix.setScreenRect(left, right, bottom, top);\n\n viewMatrix.setMaxScreenRect(cDefine.VIEW_LOGICAL_MAX_LEFT,\n cDefine.VIEW_LOGICAL_MAX_RIGHT,\n cDefine.VIEW_LOGICAL_MAX_BOTTOM,\n cDefine.VIEW_LOGICAL_MAX_TOP);\n\n projMatrix = new L2DMatrix44();\n projMatrix.multScale(1, (currCanvas.width / currCanvas.height));\n\n deviceToScreen = new L2DMatrix44();\n deviceToScreen.multTranslate(-currCanvas.width / 2.0, -currCanvas.height / 2.0); // #32\n deviceToScreen.multScale(2 / currCanvas.width, -2 / currCanvas.height); // #32\n\n\n Live2D.setGL(currWebGL);\n currWebGL.clearColor(0.0, 0.0, 0.0, 0.0);\n changeModel(config.model.jsonPath);\n startDraw();\n\n\n}\n\n/**\n * Capture current frame to png file\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n * @example\n * You can use codes below to let the user download the current frame\n *\n * L2Dwidget.captureFrame(\n * function(e){\n * let link = document.createElement('a');\n * document.body.appendChild(link);\n * link.setAttribute('type', 'hidden');\n * link.href = e;\n * link.download = 'live2d.png';\n * link.click();\n * }\n * );\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n */\n\nfunction captureFrame(callback){\n captureFrameCB = callback;\n}\n\nfunction initEvent(){\n if (currCanvas.addEventListener) {\n window.addEventListener(\"click\", mouseEvent);\n window.addEventListener(\"mousedown\", mouseEvent);\n window.addEventListener(\"mousemove\", mouseEvent);\n window.addEventListener(\"mouseup\", mouseEvent);\n document.addEventListener(\"mouseleave\", mouseEvent);\n window.addEventListener(\"touchstart\", touchEvent);\n window.addEventListener(\"touchend\", touchEvent);\n window.addEventListener(\"touchmove\", touchEvent);\n }\n}\n\nfunction startDraw() {\n if (!isDrawStart) {\n isDrawStart = true;\n (function tick() {\n draw();\n let requestAnimationFrame =\n window.requestAnimationFrame ||\n window.mozRequestAnimationFrame ||\n window.webkitRequestAnimationFrame ||\n window.msRequestAnimationFrame;\n\n requestAnimationFrame(tick, currCanvas);\n if(captureFrameCB !== undefined){\n captureFrameCB(currCanvas.toDataURL());\n captureFrameCB = undefined;\n }\n })();\n }\n}\n\nfunction draw()\n{\n MatrixStack.reset();\n MatrixStack.loadIdentity();\n dragMgr.update();\n live2DMgr.setDrag(dragMgr.getX(), dragMgr.getY());\n\n currWebGL.clear(currWebGL.COLOR_BUFFER_BIT);\n\n MatrixStack.multMatrix(projMatrix.getArray());\n MatrixStack.multMatrix(viewMatrix.getArray());\n MatrixStack.push();\n\n for (let i = 0; i < live2DMgr.numModels(); i++)\n {\n let model = live2DMgr.getModel(i);\n\n if(model == null) return;\n\n if (model.initialized && !model.updating)\n {\n model.update();\n model.draw(currWebGL);\n }\n }\n MatrixStack.pop();\n}\n\nfunction changeModel(modelurl) // 更换模型\n{\n live2DMgr.reloadFlg = true;\n live2DMgr.count++; // 现在仍有多模型支持,稍后可以精简\n live2DMgr.changeModel(currWebGL, modelurl);\n}\n\nfunction modelScaling(scale) {\n viewMatrix.adjustScale(0, 0, scale);\n}\n/*\nfunction transformRange(center, transform, range)\n{\n let a = {\n x: transform.x - center.x,\n y: transform.y - center.y\n }\n let r = Math.sqrt(Math.pow(a.x,2) + Math.pow(a.y,2));\n if (r > range) {\n a = {\n x: a.x / r * range + center.x,\n y: a.y / r * range + center.y\n };\n return a;\n } else {\n return transform;\n }\n}\n*/\nfunction dot(A,B)\n{\n return A.x * B.x + A.y * B.y;\n}\n\nfunction normalize(x,y)\n{\n let length = Math.sqrt(x * x + y * y)\n return {\n x: x / length,\n y: y / length\n }\n}\n\nfunction transformRect(center, transform, rect)\n{\n if (transform.x < rect.left + rect.width && transform.y < rect.top + rect.height &&\n transform.x > rect.left && transform.y > rect.top) return transform;\n let Len_X = center.x - transform.x;\n let Len_Y = center.y - transform.y;\n\n function angle(Len_X, Len_Y)\n {\n return Math.acos(dot({\n x: 0,\n y: 1\n }, normalize(Len_X, Len_Y))) * 180 / Math.PI\n }\n\n let angleTarget = angle(Len_X, Len_Y);\n if (transform.x < center.x) angleTarget = 360 - angleTarget;\n let angleLeftTop = 360 - angle(rect.left - center.x, (rect.top - center.y) * -1);\n let angleLeftBottom = 360 - angle(rect.left - center.x, (rect.top + rect.height - center.y) * -1);\n let angleRightTop = angle(rect.left + rect.width - center.x, (rect.top - center.y) * -1);\n let angleRightBottom = angle(rect.left + rect.width - center.x, (rect.top + rect.height - center.y) * -1);\n let scale = Len_Y / Len_X;\n let res = {};\n\n if (angleTarget < angleRightTop) {\n let y3 = rect.top - center.y;\n let x3 = y3 / scale;\n res = {\n y: center.y + y3,\n x: center.x + x3\n }\n } else if(angleTarget < angleRightBottom) {\n let x3 = rect.left + rect.width - center.x;\n let y3 = x3 * scale;\n res = {\n y: center.y + y3,\n x: center.x + x3\n }\n } else if (angleTarget < angleLeftBottom) {\n let y3 = rect.top + rect.height - center.y;\n let x3 = y3 / scale;\n res = {\n y: center.y + y3,\n x: center.x + x3\n }\n } else if (angleTarget < angleLeftTop) {\n let x3 = center.x - rect.left;\n let y3 = x3 * scale;\n res = {\n y: center.y - y3,\n x: center.x - x3\n }\n } else {\n let y3 = rect.top - center.y;\n let x3 = y3 / scale;\n res = {\n y: center.y + y3,\n x: center.x + x3\n }\n }\n\n return res;\n}\n\nfunction modelTurnHead(event)\n{\n drag = true;\n\n let rect = currCanvas.getBoundingClientRect();\n\n let sx = transformScreenX(event.clientX - rect.left);\n let sy = transformScreenY(event.clientY - rect.top);\n let target = transformRect({\n x: rect.left + rect.width / 2,\n y: rect.top + rect.height * headPos\n }, {\n x: event.clientX,\n y: event.clientY\n }, rect)\n let vx = transformViewX(target.x - rect.left);\n let vy = transformViewY(target.y - rect.top);\n\n if (cDefine.DEBUG_MOUSE_LOG)\n console.log(\"modelTurnHead onMouseMove device( x:\" + event.clientX + \" y:\" + event.clientY + \" ) view( x:\" + vx + \" y:\" + vy + \")\");\n\n lastMouseX = sx;\n lastMouseY = sy;\n\n dragMgr.setPoint(vx, vy);\n}\n\nfunction modelTapEvent(event)\n{\n drag = true;\n\n let rect = currCanvas.getBoundingClientRect();\n\n let sx = transformScreenX(event.clientX - rect.left);\n let sy = transformScreenY(event.clientY - rect.top);\n let target = transformRect({\n x: rect.left + rect.width / 2,\n y: rect.top + rect.height * headPos\n }, {\n x: event.clientX,\n y: event.clientY\n }, rect)\n let vx = transformViewX(target.x - rect.left);\n let vy = transformViewY(target.y - rect.top);\n\n if (cDefine.DEBUG_MOUSE_LOG)\n console.log(\"modelTapEvent onMouseDown device( x:\" + event.clientX + \" y:\" + event.clientY + \" ) view( x:\" + vx + \" y:\" + vy + \")\");\n\n lastMouseX = sx;\n lastMouseY = sy;\n\n live2DMgr.tapEvent(vx, vy);\n}\n\nfunction followPointer(event)\n{\n let rect = currCanvas.getBoundingClientRect();\n\n let sx = transformScreenX(event.clientX - rect.left);\n let sy = transformScreenY(event.clientY - rect.top);\n\n // log but seems ok\n // console.log(\"ecx=\" + event.clientX + \" ecy=\" + event.clientY + \" sx=\" + sx + \" sy=\" + sy);\n\n let target = transformRect({// seems ok here\n x: rect.left + rect.width / 2,\n y: rect.top + rect.height * headPos\n }, {\n x: event.clientX,\n y: event.clientY\n }, rect)\n let vx = transformViewX(target.x - rect.left);\n let vy = transformViewY(target.y - rect.top);\n\n if (cDefine.DEBUG_MOUSE_LOG)\n console.log(\"followPointer onMouseMove device( x:\" + event.clientX + \" y:\" + event.clientY + \" ) view( x:\" + vx + \" y:\" + vy + \")\");\n\n if (drag)\n {\n lastMouseX = sx;\n lastMouseY = sy;\n dragMgr.setPoint(vx, vy);\n }\n}\n\nfunction lookFront()\n{\n if (drag) {\n drag = false;\n }\n dragMgr.setPoint(0, 0);\n}\n\nfunction mouseEvent(e)\n{\n //e.preventDefault();\n if (e.type == \"mousedown\") {\n modelTapEvent(e);\n } else if (e.type == \"mousemove\") {\n modelTurnHead(e);\n } else if (e.type == \"mouseup\") {\n if(\"button\" in e && e.button != 0) return;\n // lookFront();\n } else if (e.type == \"mouseleave\") {\n lookFront();\n }\n}\n\nfunction touchEvent(e)\n{\n var touch = e.touches[0];\n if (e.type == \"touchstart\") {\n if (e.touches.length == 1) modelTapEvent(touch);\n // onClick(touch);\n } else if (e.type == \"touchmove\") {\n followPointer(touch);\n } else if (e.type == \"touchend\") {\n lookFront();\n }\n}\n\nfunction transformViewX(deviceX)\n{\n var screenX = deviceToScreen.transformX(deviceX);\n return viewMatrix.invertTransformX(screenX);\n}\n\n\nfunction transformViewY(deviceY)\n{\n var screenY = deviceToScreen.transformY(deviceY);\n return viewMatrix.invertTransformY(screenY);\n}\n\n\nfunction transformScreenX(deviceX)\n{\n return deviceToScreen.transformX(deviceX);\n}\n\n\nfunction transformScreenY(deviceY)\n{\n return deviceToScreen.transformY(deviceY);\n}\n\nexport{\n theRealInit,\n captureFrame,\n}\n", "static": true, "longname": "D:/git/live2d-widget.js/src/cLive2DApp.js", "access": "public", @@ -628,6 +628,27 @@ { "__docId__": 52, "kind": "variable", + "name": "captureFrameCB", + "memberof": "src/cLive2DApp.js", + "static": true, + "longname": "src/cLive2DApp.js~captureFrameCB", + "access": "public", + "export": false, + "importPath": "live2d-widget/src/cLive2DApp.js", + "importStyle": null, + "description": null, + "lineNumber": 29, + "undocument": true, + "type": { + "types": [ + "*" + ] + }, + "ignore": true + }, + { + "__docId__": 53, + "kind": "variable", "name": "isDrawStart", "memberof": "src/cLive2DApp.js", "static": true, @@ -637,7 +658,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 29, + "lineNumber": 30, "undocument": true, "type": { "types": [ @@ -647,7 +668,7 @@ "ignore": true }, { - "__docId__": 53, + "__docId__": 54, "kind": "variable", "name": "dragMgr", "memberof": "src/cLive2DApp.js", @@ -658,7 +679,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 30, + "lineNumber": 31, "undocument": true, "type": { "types": [ @@ -668,7 +689,7 @@ "ignore": true }, { - "__docId__": 54, + "__docId__": 55, "kind": "variable", "name": "viewMatrix", "memberof": "src/cLive2DApp.js", @@ -679,7 +700,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 31, + "lineNumber": 32, "undocument": true, "type": { "types": [ @@ -689,7 +710,7 @@ "ignore": true }, { - "__docId__": 55, + "__docId__": 56, "kind": "variable", "name": "projMatrix", "memberof": "src/cLive2DApp.js", @@ -700,7 +721,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 32, + "lineNumber": 33, "undocument": true, "type": { "types": [ @@ -710,7 +731,7 @@ "ignore": true }, { - "__docId__": 56, + "__docId__": 57, "kind": "variable", "name": "deviceToScreen", "memberof": "src/cLive2DApp.js", @@ -721,7 +742,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 33, + "lineNumber": 34, "undocument": true, "type": { "types": [ @@ -731,7 +752,7 @@ "ignore": true }, { - "__docId__": 57, + "__docId__": 58, "kind": "variable", "name": "drag", "memberof": "src/cLive2DApp.js", @@ -742,7 +763,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 34, + "lineNumber": 35, "undocument": true, "type": { "types": [ @@ -752,7 +773,7 @@ "ignore": true }, { - "__docId__": 58, + "__docId__": 59, "kind": "variable", "name": "lastMouseX", "memberof": "src/cLive2DApp.js", @@ -763,7 +784,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 35, + "lineNumber": 36, "undocument": true, "type": { "types": [ @@ -773,7 +794,7 @@ "ignore": true }, { - "__docId__": 59, + "__docId__": 60, "kind": "variable", "name": "lastMouseY", "memberof": "src/cLive2DApp.js", @@ -784,7 +805,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 36, + "lineNumber": 37, "undocument": true, "type": { "types": [ @@ -794,7 +815,7 @@ "ignore": true }, { - "__docId__": 60, + "__docId__": 61, "kind": "variable", "name": "headPos", "memberof": "src/cLive2DApp.js", @@ -805,7 +826,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 37, + "lineNumber": 38, "undocument": true, "type": { "types": [ @@ -815,7 +836,7 @@ "ignore": true }, { - "__docId__": 61, + "__docId__": 62, "kind": "variable", "name": "opacityDefault", "memberof": "src/cLive2DApp.js", @@ -826,7 +847,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 38, + "lineNumber": 39, "undocument": true, "type": { "types": [ @@ -836,7 +857,7 @@ "ignore": true }, { - "__docId__": 62, + "__docId__": 63, "kind": "variable", "name": "opacityHover", "memberof": "src/cLive2DApp.js", @@ -847,7 +868,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 39, + "lineNumber": 40, "undocument": true, "type": { "types": [ @@ -857,7 +878,7 @@ "ignore": true }, { - "__docId__": 63, + "__docId__": 64, "kind": "function", "name": "initEvent", "memberof": "src/cLive2DApp.js", @@ -870,14 +891,14 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 103, + "lineNumber": 111, "undocument": true, "params": [], "return": null, "ignore": true }, { - "__docId__": 64, + "__docId__": 65, "kind": "function", "name": "startDraw", "memberof": "src/cLive2DApp.js", @@ -890,14 +911,14 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 116, + "lineNumber": 124, "undocument": true, "params": [], "return": null, "ignore": true }, { - "__docId__": 65, + "__docId__": 66, "kind": "function", "name": "draw", "memberof": "src/cLive2DApp.js", @@ -910,14 +931,14 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 132, + "lineNumber": 144, "undocument": true, "params": [], "return": null, "ignore": true }, { - "__docId__": 66, + "__docId__": 67, "kind": "function", "name": "changeModel", "memberof": "src/cLive2DApp.js", @@ -930,7 +951,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 160, + "lineNumber": 172, "undocument": true, "params": [ { @@ -944,7 +965,7 @@ "ignore": true }, { - "__docId__": 67, + "__docId__": 68, "kind": "function", "name": "modelScaling", "memberof": "src/cLive2DApp.js", @@ -957,7 +978,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 167, + "lineNumber": 179, "undocument": true, "params": [ { @@ -971,7 +992,7 @@ "ignore": true }, { - "__docId__": 68, + "__docId__": 69, "kind": "function", "name": "dot", "memberof": "src/cLive2DApp.js", @@ -984,7 +1005,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 189, + "lineNumber": 201, "undocument": true, "params": [ { @@ -1008,7 +1029,7 @@ "ignore": true }, { - "__docId__": 69, + "__docId__": 70, "kind": "function", "name": "normalize", "memberof": "src/cLive2DApp.js", @@ -1021,7 +1042,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 194, + "lineNumber": 206, "undocument": true, "params": [ { @@ -1045,7 +1066,7 @@ "ignore": true }, { - "__docId__": 70, + "__docId__": 71, "kind": "function", "name": "transformRect", "memberof": "src/cLive2DApp.js", @@ -1058,7 +1079,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 203, + "lineNumber": 215, "undocument": true, "params": [ { @@ -1088,7 +1109,7 @@ "ignore": true }, { - "__docId__": 71, + "__docId__": 72, "kind": "function", "name": "modelTurnHead", "memberof": "src/cLive2DApp.js", @@ -1101,7 +1122,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 267, + "lineNumber": 279, "undocument": true, "params": [ { @@ -1115,7 +1136,7 @@ "ignore": true }, { - "__docId__": 72, + "__docId__": 73, "kind": "function", "name": "modelTapEvent", "memberof": "src/cLive2DApp.js", @@ -1128,7 +1149,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 294, + "lineNumber": 306, "undocument": true, "params": [ { @@ -1142,7 +1163,7 @@ "ignore": true }, { - "__docId__": 73, + "__docId__": 74, "kind": "function", "name": "followPointer", "memberof": "src/cLive2DApp.js", @@ -1155,7 +1176,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 321, + "lineNumber": 333, "undocument": true, "params": [ { @@ -1169,7 +1190,7 @@ "ignore": true }, { - "__docId__": 74, + "__docId__": 75, "kind": "function", "name": "lookFront", "memberof": "src/cLive2DApp.js", @@ -1182,14 +1203,14 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 352, + "lineNumber": 364, "undocument": true, "params": [], "return": null, "ignore": true }, { - "__docId__": 75, + "__docId__": 76, "kind": "function", "name": "mouseEvent", "memberof": "src/cLive2DApp.js", @@ -1202,7 +1223,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 360, + "lineNumber": 372, "undocument": true, "params": [ { @@ -1216,7 +1237,7 @@ "ignore": true }, { - "__docId__": 76, + "__docId__": 77, "kind": "function", "name": "touchEvent", "memberof": "src/cLive2DApp.js", @@ -1229,7 +1250,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 375, + "lineNumber": 387, "undocument": true, "params": [ { @@ -1243,7 +1264,7 @@ "ignore": true }, { - "__docId__": 77, + "__docId__": 78, "kind": "function", "name": "transformViewX", "memberof": "src/cLive2DApp.js", @@ -1256,7 +1277,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 388, + "lineNumber": 400, "undocument": true, "params": [ { @@ -1274,7 +1295,7 @@ "ignore": true }, { - "__docId__": 78, + "__docId__": 79, "kind": "function", "name": "transformViewY", "memberof": "src/cLive2DApp.js", @@ -1287,7 +1308,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 395, + "lineNumber": 407, "undocument": true, "params": [ { @@ -1305,7 +1326,7 @@ "ignore": true }, { - "__docId__": 79, + "__docId__": 80, "kind": "function", "name": "transformScreenX", "memberof": "src/cLive2DApp.js", @@ -1318,7 +1339,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 402, + "lineNumber": 414, "undocument": true, "params": [ { @@ -1336,7 +1357,7 @@ "ignore": true }, { - "__docId__": 80, + "__docId__": 81, "kind": "function", "name": "transformScreenY", "memberof": "src/cLive2DApp.js", @@ -1349,7 +1370,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": null, "description": null, - "lineNumber": 408, + "lineNumber": 420, "undocument": true, "params": [ { @@ -1367,7 +1388,7 @@ "ignore": true }, { - "__docId__": 81, + "__docId__": 82, "kind": "function", "name": "theRealInit", "memberof": "src/cLive2DApp.js", @@ -1380,7 +1401,7 @@ "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": "{theRealInit}", "description": "Main function of live2d-widget", - "lineNumber": 48, + "lineNumber": 49, "return": { "nullable": null, "types": [ @@ -1392,7 +1413,7 @@ "params": [] }, { - "__docId__": 82, + "__docId__": 83, "kind": "function", "name": "captureFrame", "memberof": "src/cLive2DApp.js", @@ -1404,32 +1425,40 @@ "export": true, "importPath": "live2d-widget/src/cLive2DApp.js", "importStyle": "{captureFrame}", - "description": "Return the data URI of current frame, MINE type is image/png.", + "description": "Capture current frame to png file", "examples": [ - "You can use codes below to let the user download the current frame\n\nlet link = document.createElement('a');\ndocument.body.appendChild(link);\nlink.setAttribute('type', 'hidden');\nlink.href = L2Dwidget.captureFrame();\nlink.download = 'live2d.png';\nlink.click();" - ], - "lineNumber": 99, - "todo": [ - "Seems feedback empty image only" + "You can use codes below to let the user download the current frame\n\nL2Dwidget.captureFrame(\n function(e){\n let link = document.createElement('a');\n document.body.appendChild(link);\n link.setAttribute('type', 'hidden');\n link.href = e;\n link.download = 'live2d.png';\n link.click();\n }\n);" ], + "lineNumber": 107, "unknown": [ { "tagName": "@description", "tagValue": "Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3" } ], + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "The callback function which will receive the current frame" + } + ], "return": { "nullable": null, "types": [ - "DOMString" + "null" ], "spread": false, - "description": "Which contains data URI, MINE type is image/png" - }, - "params": [] + "description": "" + } }, { - "__docId__": 83, + "__docId__": 84, "kind": "file", "name": "src/cManager.js", "content": "import { Live2DFramework } from \"./lib/Live2DFramework\";\nimport { PlatformManager } from \"./PlatformManager\";\nimport { cModel } from \"./cModel\";\nimport { cDefine } from \"./cDefine\";\n\nfunction cManager() {\n // console.log(\"--> cManager()\");\n\n this.models = [];\n this.count = -1;\n this.reloadFlg = false;\n\n Live2DFramework.setPlatformManager(new PlatformManager());\n\n}\n\ncManager.prototype.createModel = function () {\n\n var model = new cModel();\n this.models.push(model);\n\n return model;\n\n}\n\n\ncManager.prototype.changeModel = function (gl, modelurl) {\n // console.log(\"--> cManager.update(gl)\");\n\n if (this.reloadFlg) {\n this.reloadFlg = false;\n this.releaseModel(0, gl);\n this.createModel();\n this.models[0].load(gl, modelurl);\n }\n\n};\n\n\ncManager.prototype.getModel = function (no) {\n // console.log(\"--> cManager.getModel(\" + no + \")\");\n\n if (no >= this.models.length) return null;\n\n return this.models[no];\n};\n\n\n\ncManager.prototype.releaseModel = function (no, gl) {\n // console.log(\"--> cManager.releaseModel(\" + no + \")\");\n\n if (this.models.length <= no) return;\n\n this.models[no].release(gl);\n\n delete this.models[no];\n this.models.splice(no, 1);\n};\n\n\n\ncManager.prototype.numModels = function () {\n return this.models.length;\n};\n\n\n\ncManager.prototype.setDrag = function (x, y) {\n for (var i = 0; i < this.models.length; i++) {\n this.models[i].setDrag(x, y);\n }\n}\n\ncManager.prototype.tapEvent = function (x, y) {\n if (cDefine.DEBUG_LOG)\n console.log(\"tapEvent view x:\" + x + \" y:\" + y);\n\n for (var i = 0; i < this.models.length; i++) {\n\n if (this.models[i].hitTest(cDefine.HIT_AREA_HEAD, x, y)) {\n\n if (cDefine.DEBUG_LOG)\n console.log(\"Tap face.\");\n\n this.models[i].setRandomExpression();\n }\n else if (this.models[i].hitTest(cDefine.HIT_AREA_BODY, x, y)) {\n\n if (cDefine.DEBUG_LOG)\n console.log(\"Tap body.\" + \" models[\" + i + \"]\");\n\n this.models[i].startRandomMotion(cDefine.MOTION_GROUP_TAP_BODY,\n cDefine.PRIORITY_NORMAL);\n }\n }\n\n return true;\n};\n\nexport{\n cManager,\n}\n", @@ -1440,7 +1469,7 @@ "lineNumber": 1 }, { - "__docId__": 84, + "__docId__": 85, "kind": "function", "name": "createModel", "memberof": "src/cManager.js", @@ -1464,7 +1493,7 @@ "ignore": true }, { - "__docId__": 85, + "__docId__": 86, "kind": "function", "name": "changeModel", "memberof": "src/cManager.js", @@ -1497,7 +1526,7 @@ "ignore": true }, { - "__docId__": 86, + "__docId__": 87, "kind": "function", "name": "getModel", "memberof": "src/cManager.js", @@ -1528,7 +1557,7 @@ "ignore": true }, { - "__docId__": 87, + "__docId__": 88, "kind": "function", "name": "releaseModel", "memberof": "src/cManager.js", @@ -1561,7 +1590,7 @@ "ignore": true }, { - "__docId__": 88, + "__docId__": 89, "kind": "function", "name": "numModels", "memberof": "src/cManager.js", @@ -1585,7 +1614,7 @@ "ignore": true }, { - "__docId__": 89, + "__docId__": 90, "kind": "function", "name": "setDrag", "memberof": "src/cManager.js", @@ -1618,7 +1647,7 @@ "ignore": true }, { - "__docId__": 90, + "__docId__": 91, "kind": "function", "name": "tapEvent", "memberof": "src/cManager.js", @@ -1655,7 +1684,7 @@ "ignore": true }, { - "__docId__": 91, + "__docId__": 92, "kind": "function", "name": "cManager", "memberof": "src/cManager.js", @@ -1674,7 +1703,7 @@ "return": null }, { - "__docId__": 92, + "__docId__": 93, "kind": "file", "name": "src/cModel.js", "content": "import { Live2DFramework, L2DBaseModel, L2DEyeBlink } from \"./lib/Live2DFramework\";\nimport { ModelSettingJson } from \"./utils/ModelSettingJson\";\nimport { MatrixStack } from \"./utils/MatrixStack\";\nimport { cDefine } from \"./cDefine\";\nimport { UtSystem,/*\n UtDebug,\n LDTransform,\n LDGL,\n Live2D,\n Live2DModelWebGL,\n Live2DModelJS,\n Live2DMotion,\n MotionQueueManager,\n PhysicsHair,\n AMotion,\n PartsDataID,\n DrawDataID,\n BaseDataID,\n ParamID*/ } from './lib/live2d.core';\n//============================================================\n//============================================================\n// class cModel extends L2DBaseModel\n//============================================================\n//============================================================\nexport function cModel()\n{\n //L2DBaseModel.apply(this, arguments);\n L2DBaseModel.prototype.constructor.call(this);\n\n this.modelHomeDir = \"\";\n this.modelSetting = null;\n this.tmpMatrix = [];\n}\n\ncModel.prototype = new L2DBaseModel();\n\n\ncModel.prototype.load = function(gl, modelSettingPath, callback)\n{\n this.setUpdating(true);\n this.setInitialized(false);\n\n this.modelHomeDir = modelSettingPath.substring(0, modelSettingPath.lastIndexOf(\"/\") + 1);\n\n this.modelSetting = new ModelSettingJson();\n\n var thisRef = this;\n\n this.modelSetting.loadModelSetting(modelSettingPath, function(){\n\n var path = thisRef.modelHomeDir + thisRef.modelSetting.getModelFile();\n thisRef.loadModelData(path, function(model){\n\n for (var i = 0; i < thisRef.modelSetting.getTextureNum(); i++)\n {\n if( /^https?:\\/\\/|^\\/\\//i.test(thisRef.modelSetting.getTextureFile(i)) ){\n\n var texPaths = thisRef.modelSetting.getTextureFile(i);\n\n }else{\n var texPaths = thisRef.modelHomeDir + thisRef.modelSetting.getTextureFile(i);\n }\n thisRef.loadTexture(i, texPaths, function() {\n\n if( thisRef.isTexLoaded ) {\n\n if (thisRef.modelSetting.getExpressionNum() > 0)\n {\n\n thisRef.expressions = {};\n\n for (var j = 0; j < thisRef.modelSetting.getExpressionNum(); j++)\n {\n var expName = thisRef.modelSetting.getExpressionName(j);\n var expFilePath = thisRef.modelHomeDir +\n thisRef.modelSetting.getExpressionFile(j);\n\n thisRef.loadExpression(expName, expFilePath);\n }\n }\n else\n {\n thisRef.expressionManager = null;\n thisRef.expressions = {};\n }\n\n\n\n if (thisRef.eyeBlink == null)\n {\n thisRef.eyeBlink = new L2DEyeBlink();\n }\n\n\n if (thisRef.modelSetting.getPhysicsFile() != null)\n {\n thisRef.loadPhysics(thisRef.modelHomeDir +\n thisRef.modelSetting.getPhysicsFile());\n }\n else\n {\n thisRef.physics = null;\n }\n\n\n\n if (thisRef.modelSetting.getPoseFile() != null)\n {\n thisRef.loadPose(\n thisRef.modelHomeDir +\n thisRef.modelSetting.getPoseFile(),\n function() {\n thisRef.pose.updateParam(thisRef.live2DModel);\n }\n );\n }\n else\n {\n thisRef.pose = null;\n }\n\n\n\n if (thisRef.modelSetting.getLayout() != null)\n {\n var layout = thisRef.modelSetting.getLayout();\n if (layout[\"width\"] != null)\n thisRef.modelMatrix.setWidth(layout[\"width\"]);\n if (layout[\"height\"] != null)\n thisRef.modelMatrix.setHeight(layout[\"height\"]);\n\n if (layout[\"x\"] != null)\n thisRef.modelMatrix.setX(layout[\"x\"]);\n if (layout[\"y\"] != null)\n thisRef.modelMatrix.setY(layout[\"y\"]);\n if (layout[\"center_x\"] != null)\n thisRef.modelMatrix.centerX(layout[\"center_x\"]);\n if (layout[\"center_y\"] != null)\n thisRef.modelMatrix.centerY(layout[\"center_y\"]);\n if (layout[\"top\"] != null)\n thisRef.modelMatrix.top(layout[\"top\"]);\n if (layout[\"bottom\"] != null)\n thisRef.modelMatrix.bottom(layout[\"bottom\"]);\n if (layout[\"left\"] != null)\n thisRef.modelMatrix.left(layout[\"left\"]);\n if (layout[\"right\"] != null)\n thisRef.modelMatrix.right(layout[\"right\"]);\n }\n\n for (var j = 0; j < thisRef.modelSetting.getInitParamNum(); j++)\n {\n\n thisRef.live2DModel.setParamFloat(\n thisRef.modelSetting.getInitParamID(j),\n thisRef.modelSetting.getInitParamValue(j)\n );\n }\n\n for (var j = 0; j < thisRef.modelSetting.getInitPartsVisibleNum(); j++)\n {\n\n thisRef.live2DModel.setPartsOpacity(\n thisRef.modelSetting.getInitPartsVisibleID(j),\n thisRef.modelSetting.getInitPartsVisibleValue(j)\n );\n }\n\n\n\n thisRef.live2DModel.saveParam();\n // thisRef.live2DModel.setGL(gl);\n\n\n thisRef.preloadMotionGroup(cDefine.MOTION_GROUP_IDLE);\n thisRef.mainMotionManager.stopAllMotions();\n\n thisRef.setUpdating(false);\n thisRef.setInitialized(true);\n\n if (typeof callback == \"function\") callback();\n\n }\n });\n }\n });\n });\n};\n\n\n\ncModel.prototype.release = function(gl)\n{\n // this.live2DModel.deleteTextures();\n var pm = Live2DFramework.getPlatformManager();\n\n gl.deleteTexture(pm.texture);\n}\n\n\n\ncModel.prototype.preloadMotionGroup = function(name)\n{\n var thisRef = this;\n\n for (var i = 0; i < this.modelSetting.getMotionNum(name); i++)\n {\n var file = this.modelSetting.getMotionFile(name, i);\n this.loadMotion(file, this.modelHomeDir + file, function(motion) {\n motion.setFadeIn(thisRef.modelSetting.getMotionFadeIn(name, i));\n motion.setFadeOut(thisRef.modelSetting.getMotionFadeOut(name, i));\n });\n\n }\n}\n\n\ncModel.prototype.update = function()\n{\n // console.log(\"--> cModel.update()\");\n\n if(this.live2DModel == null)\n {\n if (cDefine.DEBUG_LOG) console.error(\"Failed to update.\");\n\n return;\n }\n\n var timeMSec = UtSystem.getUserTimeMSec() - this.startTimeMSec;\n var timeSec = timeMSec / 1000.0;\n var t = timeSec * 2 * Math.PI;\n\n\n if (this.mainMotionManager.isFinished())\n {\n\n this.startRandomMotion(cDefine.MOTION_GROUP_IDLE, cDefine.PRIORITY_IDLE);\n }\n\n //-----------------------------------------------------------------\n\n\n this.live2DModel.loadParam();\n\n\n\n var update = this.mainMotionManager.updateParam(this.live2DModel);\n if (!update) {\n\n if(this.eyeBlink != null) {\n this.eyeBlink.updateParam(this.live2DModel);\n }\n }\n\n\n this.live2DModel.saveParam();\n\n //-----------------------------------------------------------------\n\n\n if (this.expressionManager != null &&\n this.expressions != null &&\n !this.expressionManager.isFinished())\n {\n this.expressionManager.updateParam(this.live2DModel);\n }\n\n\n\n this.live2DModel.addToParamFloat(\"PARAM_ANGLE_X\", this.dragX * 30, 1);\n this.live2DModel.addToParamFloat(\"PARAM_ANGLE_Y\", this.dragY * 30, 1);\n this.live2DModel.addToParamFloat(\"PARAM_ANGLE_Z\", (this.dragX * this.dragY) * -30, 1);\n\n\n\n this.live2DModel.addToParamFloat(\"PARAM_BODY_ANGLE_X\", this.dragX*10, 1);\n\n\n\n this.live2DModel.addToParamFloat(\"PARAM_EYE_BALL_X\", this.dragX, 1);\n this.live2DModel.addToParamFloat(\"PARAM_EYE_BALL_Y\", this.dragY, 1);\n\n\n\n this.live2DModel.addToParamFloat(\"PARAM_ANGLE_X\",\n Number((15 * Math.sin(t / 6.5345))), 0.5);\n this.live2DModel.addToParamFloat(\"PARAM_ANGLE_Y\",\n Number((8 * Math.sin(t / 3.5345))), 0.5);\n this.live2DModel.addToParamFloat(\"PARAM_ANGLE_Z\",\n Number((10 * Math.sin(t / 5.5345))), 0.5);\n this.live2DModel.addToParamFloat(\"PARAM_BODY_ANGLE_X\",\n Number((4 * Math.sin(t / 15.5345))), 0.5);\n this.live2DModel.setParamFloat(\"PARAM_BREATH\",\n Number((0.5 + 0.5 * Math.sin(t / 3.2345))), 1);\n\n\n if (this.physics != null)\n {\n this.physics.updateParam(this.live2DModel);\n }\n\n\n if (this.lipSync == null)\n {\n this.live2DModel.setParamFloat(\"PARAM_MOUTH_OPEN_Y\",\n this.lipSyncValue);\n }\n\n\n if( this.pose != null ) {\n this.pose.updateParam(this.live2DModel);\n }\n\n this.live2DModel.update();\n};\n\n\n\ncModel.prototype.setRandomExpression = function()\n{\n var tmp = [];\n for (var name in this.expressions)\n {\n tmp.push(name);\n }\n\n var no = parseInt(Math.random() * tmp.length);\n\n this.setExpression(tmp[no]);\n}\n\n\n\ncModel.prototype.startRandomMotion = function(name, priority)\n{\n var max = this.modelSetting.getMotionNum(name);\n var no = parseInt(Math.random() * max);\n this.startMotion(name, no, priority);\n}\n\n\n\ncModel.prototype.startMotion = function(name, no, priority)\n{\n // console.log(\"startMotion : \" + name + \" \" + no + \" \" + priority);\n\n var motionName = this.modelSetting.getMotionFile(name, no);\n\n if (motionName == null || motionName == \"\")\n {\n if (cDefine.DEBUG_LOG)\n console.error(\"Failed to motion.\");\n return;\n }\n\n if (priority == cDefine.PRIORITY_FORCE)\n {\n this.mainMotionManager.setReservePriority(priority);\n }\n else if (!this.mainMotionManager.reserveMotion(priority))\n {\n if (cDefine.DEBUG_LOG)\n console.log(\"Motion is running.\")\n return;\n }\n\n var thisRef = this;\n var motion;\n\n if (this.motions[name] == null)\n {\n this.loadMotion(null, this.modelHomeDir + motionName, function(mtn) {\n motion = mtn;\n\n\n thisRef.setFadeInFadeOut(name, no, priority, motion);\n\n });\n }\n else\n {\n motion = this.motions[name];\n\n\n thisRef.setFadeInFadeOut(name, no, priority, motion);\n }\n}\n\n\ncModel.prototype.setFadeInFadeOut = function(name, no, priority, motion)\n{\n var motionName = this.modelSetting.getMotionFile(name, no);\n\n motion.setFadeIn(this.modelSetting.getMotionFadeIn(name, no));\n motion.setFadeOut(this.modelSetting.getMotionFadeOut(name, no));\n\n\n if (cDefine.DEBUG_LOG)\n console.log(\"Start motion : \" + motionName);\n\n if (this.modelSetting.getMotionSound(name, no) == null)\n {\n this.mainMotionManager.startMotionPrio(motion, priority);\n }\n else\n {\n var soundName = this.modelSetting.getMotionSound(name, no);\n // var player = new Sound(this.modelHomeDir + soundName);\n\n var snd = document.createElement(\"audio\");\n snd.src = this.modelHomeDir + soundName;\n\n if (cDefine.DEBUG_LOG)\n console.log(\"Start sound : \" + soundName);\n\n snd.play();\n this.mainMotionManager.startMotionPrio(motion, priority);\n }\n}\n\n\n\ncModel.prototype.setExpression = function(name)\n{\n var motion = this.expressions[name];\n\n if (cDefine.DEBUG_LOG)\n console.log(\"Expression : \" + name);\n\n this.expressionManager.startMotion(motion, false);\n}\n\n\n\ncModel.prototype.draw = function(gl)\n{\n //console.log(\"--> cModel.draw()\");\n\n // if(this.live2DModel == null) return;\n\n\n MatrixStack.push();\n\n MatrixStack.multMatrix(this.modelMatrix.getArray());\n\n this.tmpMatrix = MatrixStack.getMatrix()\n this.live2DModel.setMatrix(this.tmpMatrix);\n this.live2DModel.draw();\n\n MatrixStack.pop();\n\n};\n\n\n\ncModel.prototype.hitTest = function(id, testX, testY)\n{\n var len = this.modelSetting.getHitAreaNum();\n for (var i = 0; i < len; i++)\n {\n if (id == this.modelSetting.getHitAreaName(i))\n {\n var drawID = this.modelSetting.getHitAreaID(i);\n\n return this.hitTestSimple(drawID, testX, testY);\n }\n }\n\n return false;\n}\n", @@ -1685,7 +1714,7 @@ "lineNumber": 1 }, { - "__docId__": 93, + "__docId__": 94, "kind": "function", "name": "cModel", "memberof": "src/cModel.js", @@ -1704,7 +1733,7 @@ "return": null }, { - "__docId__": 94, + "__docId__": 95, "kind": "function", "name": "load", "memberof": "src/cModel.js", @@ -1743,7 +1772,7 @@ "ignore": true }, { - "__docId__": 95, + "__docId__": 96, "kind": "function", "name": "release", "memberof": "src/cModel.js", @@ -1770,7 +1799,7 @@ "ignore": true }, { - "__docId__": 96, + "__docId__": 97, "kind": "function", "name": "preloadMotionGroup", "memberof": "src/cModel.js", @@ -1797,7 +1826,7 @@ "ignore": true }, { - "__docId__": 97, + "__docId__": 98, "kind": "function", "name": "update", "memberof": "src/cModel.js", @@ -1817,7 +1846,7 @@ "ignore": true }, { - "__docId__": 98, + "__docId__": 99, "kind": "function", "name": "setRandomExpression", "memberof": "src/cModel.js", @@ -1837,7 +1866,7 @@ "ignore": true }, { - "__docId__": 99, + "__docId__": 100, "kind": "function", "name": "startRandomMotion", "memberof": "src/cModel.js", @@ -1870,7 +1899,7 @@ "ignore": true }, { - "__docId__": 100, + "__docId__": 101, "kind": "function", "name": "startMotion", "memberof": "src/cModel.js", @@ -1909,7 +1938,7 @@ "ignore": true }, { - "__docId__": 101, + "__docId__": 102, "kind": "function", "name": "setFadeInFadeOut", "memberof": "src/cModel.js", @@ -1954,7 +1983,7 @@ "ignore": true }, { - "__docId__": 102, + "__docId__": 103, "kind": "function", "name": "setExpression", "memberof": "src/cModel.js", @@ -1981,7 +2010,7 @@ "ignore": true }, { - "__docId__": 103, + "__docId__": 104, "kind": "function", "name": "draw", "memberof": "src/cModel.js", @@ -2008,7 +2037,7 @@ "ignore": true }, { - "__docId__": 104, + "__docId__": 105, "kind": "function", "name": "hitTest", "memberof": "src/cModel.js", @@ -2051,10 +2080,10 @@ "ignore": true }, { - "__docId__": 105, + "__docId__": 106, "kind": "file", "name": "src/config/configMgr.js", - "content": "// Created by xiazeyu.\n\n/**\n * @description The manager of configeration.\n */\n\n\n'use strict';\n\nimport _ from 'lodash';\n\n/**\n * The container of current configs\n * @type {Object}\n */\n\nlet currConfig = {};\n/**\n * Default settings for defaulter\n * @type {Object}\n */\n\nconst defaultConfig = {\n model: {\n jsonPath: 'https://unpkg.com/live2d-widget-model-shizuku@1.0.0/assets/shizuku.model.json',\n scale: 1,\n hHeadPos: 0.5,\n vHeadPos: 0.618,\n myDefine: [],\n },\n display: {\n superSample: 2,\n width: 150,\n height: 300,\n position: 'right',\n hOffset: 0,\n vOffset: -20,\n },\n mobile: {\n show: true,\n scale: 0.5,\n motion: true,\n },\n name: {\n canvas: 'live2dcanvas',\n div: 'live2d-widget',\n },\n react: {\n opacityDefault: 0.7,\n opacityOnHover: 0.2,\n myFunc: (e) => {console.log('(undefined) ┑( ̄Д  ̄)┍');},\n },\n dev: {\n log: false,\n border: (process.env.NODE_ENV === 'development' ? true : false),\n mouseLog: false,\n mouseFunc: (x, y, ix, iy) => {console.log(`MouseFunc: ${x},${y}; ${ix}, ${iy}`);},\n },\n // _: true,\n}\n\n/**\n * Apply users function, make the full settings\n * @param {Object} [userConfig] User's custom config\n * @return {null}\n */\n\nfunction configApplyer(userConfig){\n\n // if (_.has(userConfig, '_')){\n // import(/* webpackMode: \"lazy\" */ './configValidater').then(f => {\n // f.configValidater(userConfig);\n // }).catch(err => {\n // console.error(err);\n // });\n // }\n\n currConfig = _.defaultsDeep(userConfig, defaultConfig);\n console.log('currConfig:', currConfig);\n\n}\n\nexport {\n configApplyer,\n currConfig as config,\n}\n", + "content": "// Created by xiazeyu.\n\n/**\n * @description The manager of configeration.\n */\n\n\n'use strict';\n\nimport _ from 'lodash';\n\n/**\n * The container of current configs\n * @type {Object}\n */\n\nlet currConfig = {};\n/**\n * Default settings for defaulter\n * @type {Object}\n */\n\nconst defaultConfig = {\n model: {\n jsonPath: 'https://unpkg.com/live2d-widget-model-shizuku@latest/assets/shizuku.model.json',\n scale: 1,\n hHeadPos: 0.5,\n vHeadPos: 0.618,\n myDefine: [],\n },\n display: {\n superSample: 2,\n width: 150,\n height: 300,\n position: 'right',\n hOffset: 0,\n vOffset: -20,\n },\n mobile: {\n show: true,\n scale: 0.5,\n motion: true,\n },\n name: {\n canvas: 'live2dcanvas',\n div: 'live2d-widget',\n },\n react: {\n opacityDefault: 0.7,\n opacityOnHover: 0.2,\n myFunc: (e) => {console.log('(undefined) ┑( ̄Д  ̄)┍');},\n },\n dev: {\n log: false,\n border: (process.env.NODE_ENV === 'development' ? true : false),\n mouseLog: false,\n mouseFunc: (x, y, ix, iy) => {console.log(`MouseFunc: ${x},${y}; ${ix}, ${iy}`);},\n },\n // _: true,\n}\n\n/**\n * Apply users function, make the full settings\n * @param {Object} [userConfig] User's custom config\n * @return {null}\n */\n\nfunction configApplyer(userConfig){\n\n // if (_.has(userConfig, '_')){\n // import(/* webpackMode: \"lazy\" */ './configValidater').then(f => {\n // f.configValidater(userConfig);\n // }).catch(err => {\n // console.error(err);\n // });\n // }\n\n currConfig = _.defaultsDeep(userConfig, defaultConfig);\n // console.log('Live2Dwidget: currConfig', currConfig);\n\n}\n\nexport {\n configApplyer,\n currConfig as config,\n}\n", "static": true, "longname": "D:/git/live2d-widget.js/src/config/configMgr.js", "access": "public", @@ -2062,7 +2091,7 @@ "lineNumber": 1 }, { - "__docId__": 106, + "__docId__": 107, "kind": "variable", "name": "currConfig", "memberof": "src/config/configMgr.js", @@ -2085,7 +2114,7 @@ "ignore": true }, { - "__docId__": 107, + "__docId__": 108, "kind": "variable", "name": "defaultConfig", "memberof": "src/config/configMgr.js", @@ -2108,7 +2137,7 @@ "ignore": true }, { - "__docId__": 108, + "__docId__": 109, "kind": "function", "name": "configApplyer", "memberof": "src/config/configMgr.js", @@ -2134,7 +2163,7 @@ "return": null }, { - "__docId__": 109, + "__docId__": 110, "kind": "file", "name": "src/config/configValidater.js", "content": "// Created by xiazeyu.\n\n/**\n * @description The validater function for user's config.\n * @deprecated Only respond one time when you call it, won't be built in production.\n * @requires prop-types, use npm i prop-types\n */\n\n\n'use strict';\n\n\nlet PropTypes = require('prop-types');\n/**\n * The propTypes configeration of config\n * @type {Object}\n */\n\nconst configPropTypes = {\n model: PropTypes.shape({\n jsonPath: PropTypes.string,\n hHeadPos: PropTypes.number,\n vHeadPos: PropTypes.number,\n myDefine: PropTypes.array,\n }),\n display: PropTypes.shape({\n superSample: PropTypes.number,\n width: PropTypes.number,\n height: PropTypes.number,\n scale: PropTypes.number,\n position: PropTypes.oneOf(['left', 'right']),\n hOffset: PropTypes.number,\n vOffset: PropTypes.number,\n }),\n mobile: PropTypes.shape({\n show: PropTypes.bool,\n scale: PropTypes.number,\n motion: PropTypes.bool,\n }),\n name: PropTypes.shape({\n canvas: PropTypes.string,\n div: PropTypes.string,\n }),\n react: PropTypes.shape({\n opacityDefault: PropTypes.number,\n opacityOnHover: PropTypes.number,\n myFunc: PropTypes.func,\n }),\n dev: PropTypes.shape({\n log: PropTypes.bool,\n border: PropTypes.bool,\n mouseLog: PropTypes.bool,\n mouseFunc: PropTypes.func,\n }),\n}\n/**\n * The validater for user config\n * See https://github.com/facebook/prop-types\n * @param {Object} [userConfig] User's config\n * @description Only console.warn\n * @deprecated Only respond one time when you call it, won't be built in production.\n * @return {null}\n */\n\nfunction configValidater(userConfig){\n PropTypes.checkPropTypes(configPropTypes, userConfig, 'config', 'Live2D-widget');\n}\n\nif (process.env.NODE_ENV === 'development') window.cV = configValidater;\n\nmodule.exports = {\n configValidater: configValidater,\n}\n", @@ -2145,7 +2174,7 @@ "lineNumber": 1 }, { - "__docId__": 110, + "__docId__": 111, "kind": "variable", "name": "PropTypes", "memberof": "src/config/configValidater.js", @@ -2166,7 +2195,7 @@ "ignore": true }, { - "__docId__": 111, + "__docId__": 112, "kind": "variable", "name": "configPropTypes", "memberof": "src/config/configValidater.js", @@ -2189,7 +2218,7 @@ "ignore": true }, { - "__docId__": 112, + "__docId__": 113, "kind": "function", "name": "configValidater", "memberof": "src/config/configValidater.js", @@ -2216,7 +2245,7 @@ "ignore": true }, { - "__docId__": 113, + "__docId__": 114, "kind": "file", "name": "src/elementMgr.js", "content": "/**\n * @description The container and manager for all the DOM and WebGL emelents.\n */\n\n\nimport { config } from './config/configMgr';\nimport htmlTemplate from './tmplate/innerHTML';\n\n/**\n * The current WebGL element\n * @type {RenderingContext}\n */\n\nlet currWebGL = undefined;\n\n/**\n * The current canvas element\n * @type {HTMLElement}\n */\n\nlet currCanvas;\n\n/**\n * Create the canvas and styles using DOM\n * @return {null}\n */\n\nfunction createElement(){\n\n let e = document.getElementById(config.name.div)\n if (e !== null){\n document.body.removeChild(e);\n }\n\n let newElem = document.createElement('div');\n newElem.id = config.name.div;\n newElem.innerHTML = htmlTemplate;\n let newCanvasElem = document.createElement('canvas');\n newCanvasElem.setAttribute('id', config.name.canvas);\n newCanvasElem.setAttribute('width', config.display.width * config.display.superSample);\n newCanvasElem.setAttribute('height', config.display.height * config.display.superSample);\n newCanvasElem.style.setProperty('position', 'fixed');\n newCanvasElem.style.setProperty('width', config.display.width);\n newCanvasElem.style.setProperty('height', config.display.height);\n newCanvasElem.style.setProperty('opacity', config.react.opacityDefault);\n newCanvasElem.style.setProperty(config.display.position, config.display.hOffset + 'px');\n newCanvasElem.style.setProperty('bottom', config.display.vOffset + 'px');\n newCanvasElem.style.setProperty('z-index', 99999);\n newCanvasElem.style.setProperty('pointer-events', 'none');\n if(config.dev.border) newCanvasElem.style.setProperty('border', 'dashed 1px #CCC');\n newElem.appendChild(newCanvasElem);\n\n document.body.appendChild(newElem);\n currCanvas = document.getElementById(config.name.canvas);\n\n initWebGL();\n\n}\n\n/**\n * Find and set the current WebGL element to the container\n * @return {null}\n */\n\nfunction initWebGL(){\n\n var NAMES = ['webgl2', 'webgl', 'experimental-webgl2', 'experimental-webgl', 'webkit-3d', 'moz-webgl'];\n for(let i = 0; i < NAMES.length; i++){\n try{\n let ctx = currCanvas.getContext(NAMES[i], {\n alpha: true,\n antialias: true,\n premultipliedAlpha: true,\n failIfMajorPerformanceCaveat: false,\n });\n if(ctx) currWebGL = ctx;\n }catch(e){}\n }\n if(!currWebGL){\n console.error('Live2D widgets: Failed to create WebGL context.');\n if(!window.WebGLRenderingContext){\n console.error('Your browser may not support WebGL, check https://get.webgl.org/ for futher information.');\n }\n return;\n }\n};\n\n\nexport{\n createElement,\n currWebGL,\n currCanvas,\n}\n", @@ -2227,7 +2256,7 @@ "lineNumber": 1 }, { - "__docId__": 114, + "__docId__": 115, "kind": "function", "name": "initWebGL", "memberof": "src/elementMgr.js", @@ -2253,7 +2282,7 @@ "ignore": true }, { - "__docId__": 115, + "__docId__": 116, "kind": "function", "name": "createElement", "memberof": "src/elementMgr.js", @@ -2278,7 +2307,7 @@ "params": [] }, { - "__docId__": 116, + "__docId__": 117, "kind": "variable", "name": "currWebGL", "memberof": "src/elementMgr.js", @@ -2300,10 +2329,10 @@ } }, { - "__docId__": 117, + "__docId__": 118, "kind": "file", "name": "src/index.js", - "content": "// Created by xiazeyu.\n\n////////////////////////////////////\n// Celebrate for the 3.0 version! //\n////////////////////////////////////\n\n/**\n * @description The entry point of live2d-widget.\n */\n\n\n'use strict';\n\nimport device from 'current-device';\nimport { config, configApplyer }from './config/configMgr';\n\nif (process.env.NODE_ENV === 'development'){\n console.log('--- --- --- --- ---\\nHey that, notice that you are now in DEV MODE.\\n--- --- --- --- ---');\n}\n\nlet coreApp;\n/**\n * The main entry point, which ... is nothing\n */\n\nfunction L2Dwidget(){};\n\n/**\n * The public entry point\n * @param {Object} [userConfig] User's custom config 用户自定义设置\n * @param {String} [userConfig.model.jsonPath = ''] Path to Live2D model's main json eg. `https://test.com/miku.model.json` model主文件路径\n * @param {Number} [userConfig.model.scale = 1] Scale between the model and the canvas 模型与canvas的缩放\n * @param {Number} [userConfig.model.hHeadPos = 0.5] Horizontal position of model's head 模型头部横坐标\n * @param {Number} [userConfig.model.vHeadPos = 0.618] Vertical position of model's head 模型头部纵坐标\n * @param {Array} [userConfig.model.myDefine = []] User's custom Defines which will override LDefine 自定义的LDefine\n * @param {Number} [userConfig.display.superSample = 2] rate for super sampling rate 超采样等级\n * @param {Number} [userConfig.display.width = 150] Width to the canvas which shows the model canvas的长度\n * @param {Number} [userConfig.display.height = 300] Height to the canvas which shows the model canvas的高度\n * @param {String} [userConfig.display.position = 'right'] Left of right side to show 显示位置:左或右\n * @param {Number} [userConfig.display.hOffset = 0] Horizontal offset of the canvas canvas水平偏移\n * @param {Number} [userConfig.display.vOffset = -20] Vertical offset of the canvas canvas垂直偏移\n * @param {Boolean} [userConfig.mobile.show = true] Whether to show on mobile device 是否在移动设备上显示\n * @param {Number} [userConfig.mobile.scale = 0.5] Scale on mobile device 移动设备上的缩放\n * @param {Boolean} [userConfig.mobile.motion = true] Whether to enable motion detection on mobile devices 移动设备是否开启重力感应\n * @param {String} [userConfig.name.canvas = 'live2dcanvas'] ID name of the canvas canvas元素的ID\n * @param {String} [userConfig.name.div = 'live2d-widget'] ID name of the div div元素的ID\n * @param {Number} [userConfig.react.opacityDefault = 0.7] Default opacity 默认透明度\n * @param {Number} [userConfig.react.opacityOnHover = 0.2] OnHover opacity 鼠标移上透明度\n * @param {Function} [userConfig.react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器\n * @param {Boolean} [userConfig.dev.log = false] Whether to show log 显示日志\n * @param {Boolean} [userConfig.dev.border = false] Whether to show border around the canvas 在canvas周围显示边界\n * @param {Boolean} [userConfig.dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动\n * @param {Function} [userConfig.dev.mouseFunc = func(x, y, ix, iy)] Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数\n * @return {null}\n */\n\nL2Dwidget.init = (userConfig) => {\n\n userConfig = typeof userConfig === 'undefined' ? {} : userConfig;\n\n configApplyer(userConfig);\n\n if((!config.mobile.show)&&(device.mobile())){\n return;\n }\n\n import(/* webpackMode: \"lazy\" */ './cLive2DApp').then(f => {\n coreApp = f;\n coreApp.theRealInit();\n }).catch(err => {\n console.error(err);\n });\n\n}\n\n/**\n * Return the data URI of current frame, MINE type is image/png.\n * @return {DOMString} Which contains data URI, MINE type is image/png\n * @example\n * You can use codes below to let the user download the current frame\n *\n * let link = document.createElement('a');\n * link.innerHTML = 'Download image';\n * link.href = L2Dwidget.captureFrame();\n * link.download = 'live2d.png';\n * link.click();\n *\n * @description Thanks to @journey-ad https://github.com/journey-ad/live2d_src/commit/97356a19f93d2abd83966f032a53b5ca1109fbc3\n */\n\nL2Dwidget.captureFrame = () => {return coreApp.captureFrame()};\n\nexport {\n L2Dwidget,\n}\n", + "content": "// Created by xiazeyu.\n\n////////////////////////////////////\n// Celebrate for the 3.0 version! //\n////////////////////////////////////\n\n/**\n * @description The entry point of live2d-widget.\n */\n\n\n'use strict';\n\nimport device from 'current-device';\nimport { config, configApplyer }from './config/configMgr';\n\nif (process.env.NODE_ENV === 'development'){\n console.log('--- --- --- --- ---\\nLive2Dwidget: Hey that, notice that you are now in DEV MODE.\\n--- --- --- --- ---');\n}\n\nlet coreApp;\n/**\n * The main entry point, which is ... nothing\n */\n\nclass L2Dwidget{\n\n/**\n * The init function\n * @param {Object} [userConfig] User's custom config 用户自定义设置\n * @param {String} [userConfig.model.jsonPath = ''] Path to Live2D model's main json eg. `https://test.com/miku.model.json` model主文件路径\n * @param {Number} [userConfig.model.scale = 1] Scale between the model and the canvas 模型与canvas的缩放\n * @param {Number} [userConfig.model.hHeadPos = 0.5] Horizontal position of model's head 模型头部横坐标\n * @param {Number} [userConfig.model.vHeadPos = 0.618] Vertical position of model's head 模型头部纵坐标\n * @param {Array} [userConfig.model.myDefine = []] User's custom Defines which will override LDefine 自定义的LDefine\n * @param {Number} [userConfig.display.superSample = 2] rate for super sampling rate 超采样等级\n * @param {Number} [userConfig.display.width = 150] Width to the canvas which shows the model canvas的长度\n * @param {Number} [userConfig.display.height = 300] Height to the canvas which shows the model canvas的高度\n * @param {String} [userConfig.display.position = 'right'] Left of right side to show 显示位置:左或右\n * @param {Number} [userConfig.display.hOffset = 0] Horizontal offset of the canvas canvas水平偏移\n * @param {Number} [userConfig.display.vOffset = -20] Vertical offset of the canvas canvas垂直偏移\n * @param {Boolean} [userConfig.mobile.show = true] Whether to show on mobile device 是否在移动设备上显示\n * @param {Number} [userConfig.mobile.scale = 0.5] Scale on mobile device 移动设备上的缩放\n * @param {Boolean} [userConfig.mobile.motion = true] Whether to enable motion detection on mobile devices 移动设备是否开启重力感应\n * @param {String} [userConfig.name.canvas = 'live2dcanvas'] ID name of the canvas canvas元素的ID\n * @param {String} [userConfig.name.div = 'live2d-widget'] ID name of the div div元素的ID\n * @param {Number} [userConfig.react.opacityDefault = 0.7] Default opacity 默认透明度\n * @param {Number} [userConfig.react.opacityOnHover = 0.2] OnHover opacity 鼠标移上透明度\n * @param {Function} [userConfig.react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器\n * @param {Boolean} [userConfig.dev.log = false] Whether to show log 显示日志\n * @param {Boolean} [userConfig.dev.border = false] Whether to show border around the canvas 在canvas周围显示边界\n * @param {Boolean} [userConfig.dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动\n * @param {Function} [userConfig.dev.mouseFunc = func(x, y, ix, iy)] Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数\n * @return {null}\n */\n\n init(userConfig = {}){\n configApplyer(userConfig);\n if((!config.mobile.show)&&(device.mobile())){\n return;\n }\n import(/* webpackMode: 'lazy' */ './cLive2DApp').then(f => {\n coreApp = f;\n coreApp.theRealInit();\n }).catch(err => {\n console.error(err);\n });\n }\n\n\n/**\n * Capture current frame to png file {@link captureFrame}\n * @param {Function} callback The callback function which will receive the current frame\n * @return {null}\n */\n\n captureFrame(callback){\n return coreApp.captureFrame(callback);\n }\n\n/**\n * download current frame {@link L2Dwidget.captureFrame}\n * @return {null}\n */\n\n downloadFrame(){\n this.captureFrame(\n function(e){\n let link = document.createElement('a');\n document.body.appendChild(link);\n link.setAttribute('type', 'hidden');\n link.href = e;\n link.download = 'live2d.png';\n link.click();\n }\n );\n }\n\n};\n\nlet _ = new L2Dwidget();\n\n\nexport {\n _ as L2Dwidget,\n}\n", "static": true, "longname": "D:/git/live2d-widget.js/src/index.js", "access": "public", @@ -2311,25 +2340,407 @@ "lineNumber": 1 }, { - "__docId__": 118, - "kind": "function", + "__docId__": 119, + "kind": "variable", + "name": "_", + "memberof": "src/index.js", + "static": true, + "longname": "src/index.js~_", + "access": "private", + "export": false, + "importPath": "live2d-widget/src/index.js", + "importStyle": null, + "description": null, + "lineNumber": 101, + "undocument": true, + "type": { + "types": [ + "src/index.js~L2Dwidget" + ] + }, + "ignore": true + }, + { + "__docId__": 120, + "kind": "class", "name": "L2Dwidget", "memberof": "src/index.js", - "generator": false, - "async": false, "static": true, "longname": "src/index.js~L2Dwidget", "access": "public", "export": true, "importPath": "live2d-widget/src/index.js", "importStyle": "{L2Dwidget}", - "description": "The main entry point, which ... is nothing", + "description": "The main entry point, which is ... nothing", "lineNumber": 26, - "params": [], - "return": null + "interface": false + }, + { + "__docId__": 121, + "kind": "method", + "name": "init", + "memberof": "src/index.js~L2Dwidget", + "generator": false, + "async": false, + "static": false, + "longname": "src/index.js~L2Dwidget#init", + "access": "public", + "description": "The init function", + "lineNumber": 57, + "params": [ + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": true, + "name": "userConfig", + "description": "User's custom config 用户自定义设置" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": true, + "defaultValue": " ''", + "defaultRaw": " ''", + "name": "userConfig.model.jsonPath", + "description": "Path to Live2D model's main json eg. `https://test.com/miku.model.json` model主文件路径" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": " 1", + "defaultRaw": 1, + "name": "userConfig.model.scale", + "description": "Scale between the model and the canvas 模型与canvas的缩放" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": " 0.5", + "defaultRaw": 0.5, + "name": "userConfig.model.hHeadPos", + "description": "Horizontal position of model's head 模型头部横坐标" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": " 0.618", + "defaultRaw": 0.618, + "name": "userConfig.model.vHeadPos", + "description": "Vertical position of model's head 模型头部纵坐标" + }, + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": true, + "defaultValue": " []", + "defaultRaw": [], + "name": "userConfig.model.myDefine", + "description": "User's custom Defines which will override LDefine 自定义的LDefine" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": " 2", + "defaultRaw": 2, + "name": "userConfig.display.superSample", + "description": "rate for super sampling rate 超采样等级" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": " 150", + "defaultRaw": 150, + "name": "userConfig.display.width", + "description": "Width to the canvas which shows the model canvas的长度" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": " 300", + "defaultRaw": 300, + "name": "userConfig.display.height", + "description": "Height to the canvas which shows the model canvas的高度" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": true, + "defaultValue": " 'right'", + "defaultRaw": " 'right'", + "name": "userConfig.display.position", + "description": "Left of right side to show 显示位置:左或右" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": " 0", + "defaultRaw": 0, + "name": "userConfig.display.hOffset", + "description": "Horizontal offset of the canvas canvas水平偏移" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": " -20", + "defaultRaw": -20, + "name": "userConfig.display.vOffset", + "description": "Vertical offset of the canvas canvas垂直偏移" + }, + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": true, + "defaultValue": " true", + "defaultRaw": true, + "name": "userConfig.mobile.show", + "description": "Whether to show on mobile device 是否在移动设备上显示" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": " 0.5", + "defaultRaw": 0.5, + "name": "userConfig.mobile.scale", + "description": "Scale on mobile device 移动设备上的缩放" + }, + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": true, + "defaultValue": " true", + "defaultRaw": true, + "name": "userConfig.mobile.motion", + "description": "Whether to enable motion detection on mobile devices 移动设备是否开启重力感应" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": true, + "defaultValue": " 'live2dcanvas'", + "defaultRaw": " 'live2dcanvas'", + "name": "userConfig.name.canvas", + "description": "ID name of the canvas canvas元素的ID" + }, + { + "nullable": null, + "types": [ + "String" + ], + "spread": false, + "optional": true, + "defaultValue": " 'live2d-widget'", + "defaultRaw": " 'live2d-widget'", + "name": "userConfig.name.div", + "description": "ID name of the div div元素的ID" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": " 0.7", + "defaultRaw": 0.7, + "name": "userConfig.react.opacityDefault", + "description": "Default opacity 默认透明度" + }, + { + "nullable": null, + "types": [ + "Number" + ], + "spread": false, + "optional": true, + "defaultValue": " 0.2", + "defaultRaw": 0.2, + "name": "userConfig.react.opacityOnHover", + "description": "OnHover opacity 鼠标移上透明度" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": true, + "defaultValue": " func(e)", + "defaultRaw": " func(e)", + "name": "userConfig.react.myFunc", + "description": "Custom event handler, won't override main handler, will reveice the event type. 自定义事件接收器" + }, + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": true, + "defaultValue": " false", + "defaultRaw": false, + "name": "userConfig.dev.log", + "description": "Whether to show log 显示日志" + }, + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": true, + "defaultValue": " false", + "defaultRaw": false, + "name": "userConfig.dev.border", + "description": "Whether to show border around the canvas 在canvas周围显示边界" + }, + { + "nullable": null, + "types": [ + "Boolean" + ], + "spread": false, + "optional": true, + "defaultValue": " false", + "defaultRaw": false, + "name": "userConfig.dev.mouseLog", + "description": "Whether to show mouse log (tons of log), only work when dev.log is enabled 显示鼠标移动" + }, + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": true, + "defaultValue": " func(x, y, ix, iy)", + "defaultRaw": " func(x, y, ix, iy)", + "name": "userConfig.dev.mouseFunc", + "description": "Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position 自定义鼠标移动处理函数" + } + ], + "return": { + "nullable": null, + "types": [ + "null" + ], + "spread": false, + "description": "" + } + }, + { + "__docId__": 122, + "kind": "method", + "name": "captureFrame", + "memberof": "src/index.js~L2Dwidget", + "generator": false, + "async": false, + "static": false, + "longname": "src/index.js~L2Dwidget#captureFrame", + "access": "public", + "description": "Capture current frame to png file {@link captureFrame}", + "lineNumber": 77, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "The callback function which will receive the current frame" + } + ], + "return": { + "nullable": null, + "types": [ + "null" + ], + "spread": false, + "description": "" + } + }, + { + "__docId__": 123, + "kind": "method", + "name": "downloadFrame", + "memberof": "src/index.js~L2Dwidget", + "generator": false, + "async": false, + "static": false, + "longname": "src/index.js~L2Dwidget#downloadFrame", + "access": "public", + "description": "download current frame {@link L2Dwidget.captureFrame}", + "lineNumber": 86, + "return": { + "nullable": null, + "types": [ + "null" + ], + "spread": false, + "description": "" + }, + "params": [] }, { - "__docId__": 119, + "__docId__": 124, "kind": "file", "name": "src/lib/Live2DFramework.js", "content": "/**\n *\n * You can modify and use this source freely\n * only for the development of application related Live2D.\n *\n * (c) Live2D Inc. All rights reserved.\n */\n\n/**\n * EYHN 基于 live2d 官方 Live2DFramework.js 修改\n *\n * Copyright © 2016 - 2017 EYHN\n */\n\n// Modified by xiazeyu.\n\n/**\n* @desc Basic functions releated to model react\n*/\n\nimport { UtSystem,\n UtDebug,\n LDTransform,\n LDGL,\n Live2D,\n Live2DModelWebGL,\n Live2DModelJS,\n Live2DMotion,\n MotionQueueManager,\n PhysicsHair,\n AMotion,\n PartsDataID,\n DrawDataID,\n BaseDataID,\n ParamID } from './live2d.core';\n\n//============================================================\n//============================================================\n// class L2DBaseModel\n//============================================================\n//============================================================\nfunction L2DBaseModel() {\n this.live2DModel = null; // ALive2DModel\n this.modelMatrix = null; // L2DModelMatrix\n this.eyeBlink = null; // L2DEyeBlink\n this.physics = null; // L2DPhysics\n this.pose = null; // L2DPose\n this.debugMode = false;\n this.initialized = false;\n this.updating = false;\n this.alpha = 1;\n this.accAlpha = 0;\n this.lipSync = false;\n this.lipSyncValue = 0;\n this.accelX = 0;\n this.accelY = 0;\n this.accelZ = 0;\n this.dragX = 0;\n this.dragY = 0;\n this.startTimeMSec = null;\n this.mainMotionManager = new L2DMotionManager(); //L2DMotionManager\n this.expressionManager = new L2DMotionManager(); //L2DMotionManager\n this.motions = {};\n this.expressions = {};\n this.isTexLoaded = false;\n}\n\nvar texCounter = 0;\n\n//============================================================\n// L2DBaseModel # getModelMatrix()\n//============================================================\nL2DBaseModel.prototype.getModelMatrix = function () {\n return this.modelMatrix;\n}\n\n//============================================================\n// L2DBaseModel # setAlpha()\n//============================================================\nL2DBaseModel.prototype.setAlpha = function (a/*float*/) {\n if (a > 0.999) a = 1;\n if (a < 0.001) a = 0;\n this.alpha = a;\n}\n\n//============================================================\n// L2DBaseModel # getAlpha()\n//============================================================\nL2DBaseModel.prototype.getAlpha = function () {\n return this.alpha;\n}\n\n//============================================================\n// L2DBaseModel # isInitialized()\n//============================================================\nL2DBaseModel.prototype.isInitialized = function () {\n return this.initialized;\n}\n\n//============================================================\n// L2DBaseModel # setInitialized()\n//============================================================\nL2DBaseModel.prototype.setInitialized = function (v/*boolean*/) {\n this.initialized = v;\n}\n\n//============================================================\n// L2DBaseModel # isUpdating()\n//============================================================\nL2DBaseModel.prototype.isUpdating = function () {\n return this.updating;\n}\n\n//============================================================\n// L2DBaseModel # setUpdating()\n//============================================================\nL2DBaseModel.prototype.setUpdating = function (v/*boolean*/) {\n this.updating = v;\n}\n\n//============================================================\n// L2DBaseModel # getLive2DModel()\n//============================================================\nL2DBaseModel.prototype.getLive2DModel = function () {\n return this.live2DModel;\n}\n\n//============================================================\n// L2DBaseModel # setLipSync()\n//============================================================\nL2DBaseModel.prototype.setLipSync = function (v/*boolean*/) {\n this.lipSync = v;\n}\n\n//============================================================\n// L2DBaseModel # setLipSyncValue()\n//============================================================\nL2DBaseModel.prototype.setLipSyncValue = function (v/*float*/) {\n this.lipSyncValue = v;\n}\n\n//============================================================\n// L2DBaseModel # setAccel()\n//============================================================\nL2DBaseModel.prototype.setAccel = function (x/*float*/, y/*float*/, z/*float*/) {\n this.accelX = x;\n this.accelY = y;\n this.accelZ = z;\n}\n\n//============================================================\n// L2DBaseModel # setDrag()\n//============================================================\nL2DBaseModel.prototype.setDrag = function (x/*float*/, y/*float*/) {\n this.dragX = x;\n this.dragY = y;\n}\n\n//============================================================\n// L2DBaseModel # getMainMotionManager()\n//============================================================\nL2DBaseModel.prototype.getMainMotionManager = function () {\n return this.mainMotionManager;\n}\n\n//============================================================\n// L2DBaseModel # getExpressionManager()\n//============================================================\nL2DBaseModel.prototype.getExpressionManager = function () {\n return this.expressionManager;\n}\n\n//============================================================\n// L2DBaseModel # loadModelData()\n//============================================================\nL2DBaseModel.prototype.loadModelData = function (path/*String*/, callback) {\n /*\n if( this.live2DModel != null ) {\n this.live2DModel.deleteTextures();\n }\n */\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\n if (this.debugMode) pm.log(\"Load model : \" + path);\n\n var thisRef = this;\n pm.loadLive2DModel(path, function (l2dModel) {\n thisRef.live2DModel = l2dModel;\n thisRef.live2DModel.saveParam();\n\n var _err = Live2D.getError();\n\n if (_err != 0) {\n console.error(\"Error : Failed to loadModelData().\");\n return;\n }\n\n thisRef.modelMatrix = new L2DModelMatrix(\n thisRef.live2DModel.getCanvasWidth(),\n thisRef.live2DModel.getCanvasHeight()); //L2DModelMatrix\n thisRef.modelMatrix.setWidth(2);\n thisRef.modelMatrix.setCenterPosition(0, 0);\n\n callback(thisRef.live2DModel);\n });\n}\n\n\n//============================================================\n// L2DBaseModel # loadTexture()\n//============================================================\nL2DBaseModel.prototype.loadTexture = function (no/*int*/, path/*String*/, callback) {\n texCounter++;\n\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\n\n if (this.debugMode) pm.log(\"Load Texture : \" + path);\n\n var thisRef = this;\n pm.loadTexture(this.live2DModel, no, path, function () {\n texCounter--;\n if (texCounter == 0) thisRef.isTexLoaded = true;\n if (typeof callback == \"function\") callback();\n });\n\n}\n\n//============================================================\n// L2DBaseModel # loadMotion()\n//============================================================\nL2DBaseModel.prototype.loadMotion = function (name/*String*/, path /*String*/, callback) {\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\n\n if (this.debugMode) pm.log(\"Load Motion : \" + path);\n\n var motion = null; //Live2DMotion\n\n var thisRef = this;\n pm.loadBytes(path, function (buf) {\n motion = Live2DMotion.loadMotion(buf);\n if (name != null) {\n thisRef.motions[name] = motion;\n }\n callback(motion);\n });\n\n}\n\n//============================================================\n// L2DBaseModel # loadExpression()\n//============================================================\nL2DBaseModel.prototype.loadExpression = function (name/*String*/, path /*String*/, callback) {\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\n\n if (this.debugMode) pm.log(\"Load Expression : \" + path);\n\n var thisRef = this;\n pm.loadBytes(path, function (buf) {\n if (name != null) {\n thisRef.expressions[name] = L2DExpressionMotion.loadJson(buf);\n }\n if (typeof callback == \"function\") callback();\n });\n}\n\n//============================================================\n// L2DBaseModel # loadPose()\n//============================================================\nL2DBaseModel.prototype.loadPose = function (path /*String*/, callback) {\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\n if (this.debugMode) pm.log(\"Load Pose : \" + path);\n var thisRef = this;\n try {\n pm.loadBytes(path, function (buf) {\n thisRef.pose = L2DPose.load(buf);\n if (typeof callback == \"function\") callback();\n });\n }\n catch (e) {\n console.warn(e);\n }\n}\n\n//============================================================\n// L2DBaseModel # loadPhysics()\n//============================================================\nL2DBaseModel.prototype.loadPhysics = function (path/*String*/) {\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\n if (this.debugMode) pm.log(\"Load Physics : \" + path);\n var thisRef = this;\n try {\n pm.loadBytes(path, function (buf) {\n thisRef.physics = L2DPhysics.load(buf);\n });\n }\n catch (e) {\n console.warn(e);\n }\n}\n\n//============================================================\n// L2DBaseModel # hitTestSimple()\n//============================================================\nL2DBaseModel.prototype.hitTestSimple = function (drawID, testX, testY) {\n\n\tif(this.live2DModel === null) return !1;\n\n var drawIndex = this.live2DModel.getDrawDataIndex(drawID);\n\n if (drawIndex < 0) return false;\n\n var points = this.live2DModel.getTransformedPoints(drawIndex);\n var left = this.live2DModel.getCanvasWidth();\n var right = 0;\n var top = this.live2DModel.getCanvasHeight();\n var bottom = 0;\n\n for (var j = 0; j < points.length; j = j + 2) {\n var x = points[j];\n var y = points[j + 1];\n\n if (x < left) left = x;\n if (x > right) right = x;\n if (y < top) top = y;\n if (y > bottom) bottom = y;\n }\n var tx = this.modelMatrix.invertTransformX(testX);\n var ty = this.modelMatrix.invertTransformY(testY);\n\n return (left <= tx && tx <= right && top <= ty && ty <= bottom);\n}\n\n//============================================================\n//============================================================\n// class L2DExpressionMotion extends AMotion\n//============================================================\n//============================================================\nfunction L2DExpressionMotion() {\n AMotion.prototype.constructor.call(this);\n this.paramList = new Array(); //ArrayList\n}\n\nL2DExpressionMotion.prototype = new AMotion(); // L2DExpressionMotion extends AMotion\n\n//============================================================\nL2DExpressionMotion.EXPRESSION_DEFAULT = \"DEFAULT\";\nL2DExpressionMotion.TYPE_SET = 0;\nL2DExpressionMotion.TYPE_ADD = 1;\nL2DExpressionMotion.TYPE_MULT = 2;\n\n//============================================================\n// static L2DExpressionMotion.loadJson()\n//============================================================\nL2DExpressionMotion.loadJson = function (buf) {\n var ret = new L2DExpressionMotion();\n\n var pm = Live2DFramework.getPlatformManager();\n var json = pm.jsonParseFromBytes(buf);\n\n ret.setFadeIn(parseInt(json.fade_in) > 0 ? parseInt(json.fade_in) : 1000);\n ret.setFadeOut(parseInt(json.fade_out) > 0 ? parseInt(json.fade_out) : 1000);\n\n if (json.params == null) {\n return ret;\n }\n\n var params = json.params;\n var paramNum = params.length;\n ret.paramList = []; //ArrayList\n for (var i = 0; i < paramNum; i++) {\n var param = params[i];\n var paramID = param.id.toString();\n var value = parseFloat(param.val);\n var calcTypeInt = L2DExpressionMotion.TYPE_ADD;\n var calc = param.calc != null ? param.calc.toString() : \"add\";\n if (calc === \"add\") {\n calcTypeInt = L2DExpressionMotion.TYPE_ADD;\n }\n else if (calc === \"mult\") {\n calcTypeInt = L2DExpressionMotion.TYPE_MULT;\n }\n else if (calc === \"set\") {\n calcTypeInt = L2DExpressionMotion.TYPE_SET;\n }\n else {\n calcTypeInt = L2DExpressionMotion.TYPE_ADD;\n }\n if (calcTypeInt == L2DExpressionMotion.TYPE_ADD) {\n var defaultValue = param.def == null ? 0 : parseFloat(param.def);\n value = value - defaultValue;\n }\n else if (calcTypeInt == L2DExpressionMotion.TYPE_MULT) {\n var defaultValue = param.def == null ? 1 : parseFloat(param.def);\n if (defaultValue == 0) defaultValue = 1;\n value = value / defaultValue;\n }\n\n var item = new L2DExpressionParam();\n item.id = paramID;\n item.type = calcTypeInt;\n item.value = value;\n\n ret.paramList.push(item);\n }\n\n return ret;\n}\n\n\n//============================================================\n// L2DExpressionMotion # updateParamExe()\n//============================================================\nL2DExpressionMotion.prototype.updateParamExe = function (model /*ALive2DModel*/, timeMSec/*long*/, weight /*float*/, motionQueueEnt /*MotionQueueEnt*/) {\n for (var i = this.paramList.length - 1; i >= 0; --i) {\n var param = this.paramList[i]; //L2DExpressionParam\n // if (!param || !param.type) continue;\n if (param.type == L2DExpressionMotion.TYPE_ADD) {\n model.addToParamFloat(param.id, param.value, weight);\n }\n else if (param.type == L2DExpressionMotion.TYPE_MULT) {\n model.multParamFloat(param.id, param.value, weight);\n }\n else if (param.type == L2DExpressionMotion.TYPE_SET) {\n model.setParamFloat(param.id, param.value, weight);\n }\n }\n}\n\n//============================================================\n//============================================================\n// class L2DExpressionParam\n//============================================================\n//============================================================\nfunction L2DExpressionParam() {\n this.id = \"\";\n this.type = -1;\n this.value = null;\n}\n\n//============================================================\n//============================================================\n// class L2DEyeBlink\n//============================================================\n//============================================================\nfunction L2DEyeBlink() {\n this.nextBlinkTime = null /* TODO NOT INIT */; //\n this.stateStartTime = null /* TODO NOT INIT */; //\n this.blinkIntervalMsec = null /* TODO NOT INIT */; //\n this.eyeState = EYE_STATE.STATE_FIRST;\n this.blinkIntervalMsec = 4000;\n this.closingMotionMsec = 100;\n this.closedMotionMsec = 50;\n this.openingMotionMsec = 150;\n this.closeIfZero = true;\n this.eyeID_L = \"PARAM_EYE_L_OPEN\";\n this.eyeID_R = \"PARAM_EYE_R_OPEN\";\n}\n\n//============================================================\n// L2DEyeBlink # calcNextBlink()\n//============================================================\nL2DEyeBlink.prototype.calcNextBlink = function () {\n var time /*long*/ = UtSystem.getUserTimeMSec();\n var r /*Number*/ = Math.random();\n return /*(long)*/ (time + r * (2 * this.blinkIntervalMsec - 1));\n}\n\n//============================================================\n// L2DEyeBlink # setInterval()\n//============================================================\nL2DEyeBlink.prototype.setInterval = function (blinkIntervalMsec /*int*/) {\n this.blinkIntervalMsec = blinkIntervalMsec;\n}\n\n//============================================================\n// L2DEyeBlink # setEyeMotion()\n//============================================================\nL2DEyeBlink.prototype.setEyeMotion = function (closingMotionMsec/*int*/, closedMotionMsec/*int*/, openingMotionMsec/*int*/) {\n this.closingMotionMsec = closingMotionMsec;\n this.closedMotionMsec = closedMotionMsec;\n this.openingMotionMsec = openingMotionMsec;\n}\n\n//============================================================\n// L2DEyeBlink # updateParam()\n//============================================================\nL2DEyeBlink.prototype.updateParam = function (model/*ALive2DModel*/) {\n var time /*:long*/ = UtSystem.getUserTimeMSec();\n var eyeParamValue /*:Number*/;\n var t /*:Number*/ = 0;\n switch (this.eyeState) {\n case EYE_STATE.STATE_CLOSING:\n t = (time - this.stateStartTime) / this.closingMotionMsec;\n if (t >= 1) {\n t = 1;\n this.eyeState = EYE_STATE.STATE_CLOSED;\n this.stateStartTime = time;\n }\n eyeParamValue = 1 - t;\n break;\n case EYE_STATE.STATE_CLOSED:\n t = (time - this.stateStartTime) / this.closedMotionMsec;\n if (t >= 1) {\n this.eyeState = EYE_STATE.STATE_OPENING;\n this.stateStartTime = time;\n }\n eyeParamValue = 0;\n break;\n case EYE_STATE.STATE_OPENING:\n t = (time - this.stateStartTime) / this.openingMotionMsec;\n if (t >= 1) {\n t = 1;\n this.eyeState = EYE_STATE.STATE_INTERVAL;\n this.nextBlinkTime = this.calcNextBlink();\n }\n eyeParamValue = t;\n break;\n case EYE_STATE.STATE_INTERVAL:\n if (this.nextBlinkTime < time) {\n this.eyeState = EYE_STATE.STATE_CLOSING;\n this.stateStartTime = time;\n }\n eyeParamValue = 1;\n break;\n case EYE_STATE.STATE_FIRST:\n default:\n this.eyeState = EYE_STATE.STATE_INTERVAL;\n this.nextBlinkTime = this.calcNextBlink();\n eyeParamValue = 1;\n break;\n }\n if (!this.closeIfZero) eyeParamValue = -eyeParamValue;\n model.setParamFloat(this.eyeID_L, eyeParamValue);\n model.setParamFloat(this.eyeID_R, eyeParamValue);\n}\n\n//== enum EYE_STATE ==\nvar EYE_STATE = function () { };\n\nEYE_STATE.STATE_FIRST = \"STATE_FIRST\"\nEYE_STATE.STATE_INTERVAL = \"STATE_INTERVAL\"\nEYE_STATE.STATE_CLOSING = \"STATE_CLOSING\"\nEYE_STATE.STATE_CLOSED = \"STATE_CLOSED\"\nEYE_STATE.STATE_OPENING = \"STATE_OPENING\"\n\n//============================================================\n//============================================================\n// class L2DMatrix44\n//============================================================\n//============================================================\nfunction L2DMatrix44() {\n this.tr = new Float32Array(16); //\n this.identity();\n}\n\n//============================================================\n// static L2DMatrix44.mul()\n//============================================================\n// matrix multiplication\nL2DMatrix44.mul = function (a/*float[]*/, b/*float[]*/, dst/*float[]*/) {\n var c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n var n = 4;\n var i, j, k;\n for (i = 0; i < n; i++) {\n for (j = 0; j < n; j++) {\n for (k = 0; k < n; k++) {\n c[i + j * 4] += a[i + k * 4] * b[k + j * 4];\n }\n }\n }\n for (i = 0; i < 16; i++) {\n dst[i] = c[i];\n }\n}\n\n//============================================================\n// L2DMatrix44 # identity()\n//============================================================\nL2DMatrix44.prototype.identity = function () {\n for (var i/*:int*/ = 0; i < 16; i++)\n this.tr[i] = ((i % 5) == 0) ? 1 : 0;\n}\n\n//============================================================\n// L2DMatrix44 # getArray()\n//============================================================\nL2DMatrix44.prototype.getArray = function () {\n return this.tr;\n}\n\n//============================================================\n// L2DMatrix44 # getCopyMatrix()\n//============================================================\nL2DMatrix44.prototype.getCopyMatrix = function () {\n return new Float32Array(this.tr); // this.tr.clone();\n}\n\n//============================================================\n// L2DMatrix44 # setMatrix()\n//============================================================\nL2DMatrix44.prototype.setMatrix = function (tr/*float[]*/) {\n if (this.tr == null || this.tr.length != this.tr.length) return;\n for (var i/*:int*/ = 0; i < 16; i++) this.tr[i] = tr[i];\n}\n\n//============================================================\n// L2DMatrix44 # getScaleX()\n//============================================================\nL2DMatrix44.prototype.getScaleX = function () {\n return this.tr[0];\n}\n\n//============================================================\n// L2DMatrix44 # getScaleY()\n//============================================================\nL2DMatrix44.prototype.getScaleY = function () {\n return this.tr[5];\n}\n\n//============================================================\n// L2DMatrix44 # transformX()\n//============================================================\nL2DMatrix44.prototype.transformX = function (src/*float*/) {\n return this.tr[0] * src + this.tr[12];\n}\n\n//============================================================\n// L2DMatrix44 # transformY()\n//============================================================\nL2DMatrix44.prototype.transformY = function (src/*float*/) {\n return this.tr[5] * src + this.tr[13];\n}\n\n//============================================================\n// L2DMatrix44 # invertTransformX()\n//============================================================\nL2DMatrix44.prototype.invertTransformX = function (src/*float*/) {\n return (src - this.tr[12]) / this.tr[0];\n}\n\n//============================================================\n// L2DMatrix44 # invertTransformY()\n//============================================================\nL2DMatrix44.prototype.invertTransformY = function (src/*float*/) {\n return (src - this.tr[13]) / this.tr[5];\n}\n\n//============================================================\n// L2DMatrix44 # multTranslate()\n//============================================================\nL2DMatrix44.prototype.multTranslate = function (shiftX/*float*/, shiftY/*float*/) {\n var tr1 = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, shiftX, shiftY, 0, 1];\n L2DMatrix44.mul(tr1, this.tr, this.tr);\n}\n\n//============================================================\n// L2DMatrix44 # translate()\n//============================================================\nL2DMatrix44.prototype.translate = function (x/*float*/, y/*float*/) {\n this.tr[12] = x;\n this.tr[13] = y;\n}\n\n//============================================================\n// L2DMatrix44 # translateX()\n//============================================================\nL2DMatrix44.prototype.translateX = function (x/*float*/) {\n this.tr[12] = x;\n}\n\n//============================================================\n// L2DMatrix44 # translateY()\n//============================================================\nL2DMatrix44.prototype.translateY = function (y/*float*/) {\n this.tr[13] = y;\n}\n\n//============================================================\n// L2DMatrix44 # multScale()\n//============================================================\nL2DMatrix44.prototype.multScale = function (scaleX/*float*/, scaleY/*float*/) {\n var tr1 = [scaleX, 0, 0, 0, 0, scaleY, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n L2DMatrix44.mul(tr1, this.tr, this.tr);\n}\n\n//============================================================\n// L2DMatrix44 # scale()\n//============================================================\nL2DMatrix44.prototype.scale = function (scaleX/*float*/, scaleY/*float*/) {\n this.tr[0] = scaleX;\n this.tr[5] = scaleY;\n}\n\n//============================================================\n//============================================================\n// class L2DModelMatrix extends L2DMatrix44\n//============================================================\n//============================================================\nfunction L2DModelMatrix(w/*float*/, h/*float*/) {\n L2DMatrix44.prototype.constructor.call(this);\n this.width = w;\n this.height = h;\n}\n\n//L2DModelMatrix extends L2DMatrix44\nL2DModelMatrix.prototype = new L2DMatrix44();\n\n//============================================================\n// L2DModelMatrix # setPosition()\n//============================================================\nL2DModelMatrix.prototype.setPosition = function (x/*float*/, y/*float*/) {\n this.translate(x, y);\n}\n\n//============================================================\n// L2DModelMatrix # setCenterPosition()\n//============================================================\nL2DModelMatrix.prototype.setCenterPosition = function (x/*float*/, y/*float*/) {\n var w = this.width * this.getScaleX();\n var h = this.height * this.getScaleY();\n this.translate(x - w / 2, y - h / 2);\n}\n\n//============================================================\n// L2DModelMatrix # top()\n//============================================================\nL2DModelMatrix.prototype.top = function (y/*float*/) {\n this.setY(y);\n}\n\n//============================================================\n// L2DModelMatrix # bottom()\n//============================================================\nL2DModelMatrix.prototype.bottom = function (y/*float*/) {\n var h = this.height * this.getScaleY();\n this.translateY(y - h);\n}\n\n//============================================================\n// L2DModelMatrix # left()\n//============================================================\nL2DModelMatrix.prototype.left = function (x/*float*/) {\n this.setX(x);\n}\n\n//============================================================\n// L2DModelMatrix # right()\n//============================================================\nL2DModelMatrix.prototype.right = function (x/*float*/) {\n var w = this.width * this.getScaleX();\n this.translateX(x - w);\n}\n\n//============================================================\n// L2DModelMatrix # centerX()\n//============================================================\nL2DModelMatrix.prototype.centerX = function (x/*float*/) {\n var w = this.width * this.getScaleX();\n this.translateX(x - w / 2);\n}\n\n//============================================================\n// L2DModelMatrix # centerY()\n//============================================================\nL2DModelMatrix.prototype.centerY = function (y/*float*/) {\n var h = this.height * this.getScaleY();\n this.translateY(y - h / 2);\n}\n\n//============================================================\n// L2DModelMatrix # setX()\n//============================================================\nL2DModelMatrix.prototype.setX = function (x/*float*/) {\n this.translateX(x);\n}\n\n//============================================================\n// L2DModelMatrix # setY()\n//============================================================\nL2DModelMatrix.prototype.setY = function (y/*float*/) {\n this.translateY(y);\n}\n\n//============================================================\n// L2DModelMatrix # setHeight()\n//============================================================\nL2DModelMatrix.prototype.setHeight = function (h/*float*/) {\n var scaleX = h / this.height;\n var scaleY = -scaleX;\n this.scale(scaleX, scaleY);\n}\n\n//============================================================\n// L2DModelMatrix # setWidth()\n//============================================================\nL2DModelMatrix.prototype.setWidth = function (w/*float*/) {\n var scaleX = w / this.width;\n var scaleY = -scaleX;\n this.scale(scaleX, scaleY);\n}\n\n//============================================================\n//============================================================\n// class L2DMotionManager extends MotionQueueManager\n//============================================================\n//============================================================\nfunction L2DMotionManager() {\n MotionQueueManager.prototype.constructor.call(this);\n this.currentPriority = null;\n this.reservePriority = null;\n\n this.super = MotionQueueManager.prototype;\n}\n\n\nL2DMotionManager.prototype = new MotionQueueManager();\n\n//============================================================\n// L2DMotionManager # getCurrentPriority()\n//============================================================\nL2DMotionManager.prototype.getCurrentPriority = function () {\n return this.currentPriority;\n}\n\n//============================================================\n// L2DMotionManager # getReservePriority()\n//============================================================\nL2DMotionManager.prototype.getReservePriority = function () {\n return this.reservePriority;\n}\n\n//============================================================\n// L2DMotionManager # reserveMotion()\n//============================================================\nL2DMotionManager.prototype.reserveMotion = function (priority/*int*/) {\n if (this.reservePriority >= priority) {\n return false;\n }\n if (this.currentPriority >= priority) {\n return false;\n }\n\n this.reservePriority = priority;\n\n return true;\n}\n\n//============================================================\n// L2DMotionManager # setReservePriority()\n//============================================================\nL2DMotionManager.prototype.setReservePriority = function (val/*int*/) {\n this.reservePriority = val;\n}\n\n//============================================================\n// L2DMotionManager # updateParam()\n//============================================================\nL2DMotionManager.prototype.updateParam = function (model/*ALive2DModel*/) {\n var updated = MotionQueueManager.prototype.updateParam.call(this, model);\n\n if (this.isFinished()) {\n this.currentPriority = 0;\n }\n\n return updated;\n}\n\n//============================================================\n// L2DMotionManager # startMotionPrio()\n//============================================================\nL2DMotionManager.prototype.startMotionPrio = function (motion/*AMotion*/, priority/*int*/) {\n if (priority == this.reservePriority) {\n this.reservePriority = 0;\n }\n this.currentPriority = priority;\n return this.startMotion(motion, false);\n}\n\n//============================================================\n//============================================================\n// class L2DPhysics\n//============================================================\n//============================================================\nfunction L2DPhysics() {\n this.physicsList = new Array(); //ArrayList\n this.startTimeMSec = UtSystem.getUserTimeMSec();\n}\n\n//============================================================\n// static L2DPhysics.load()\n//============================================================\nL2DPhysics.load = function (buf /*byte[]*/) {\n var ret = new L2DPhysics(); //L2DPhysicsL2DPhysics\n var pm = Live2DFramework.getPlatformManager();\n var json = pm.jsonParseFromBytes(buf);\n var params = json.physics_hair;\n var paramNum = params.length;\n for (var i = 0; i < paramNum; i++) {\n var param = params[i]; //Value\n var physics = new PhysicsHair(); //PhysicsHairPhysicsHair\n var setup = param.setup; //Value\n var length = parseFloat(setup.length);\n var resist = parseFloat(setup.regist);\n var mass = parseFloat(setup.mass);\n physics.setup(length, resist, mass);\n var srcList = param.src; //Value\n var srcNum = srcList.length;\n for (var j = 0; j < srcNum; j++) {\n var src = srcList[j]; //Value\n var id = src.id; //String\n var type = PhysicsHair.Src.SRC_TO_X;\n var typeStr = src.ptype; //String\n if (typeStr === \"x\") {\n type = PhysicsHair.Src.SRC_TO_X;\n }\n else if (typeStr === \"y\") {\n type = PhysicsHair.Src.SRC_TO_Y;\n }\n else if (typeStr === \"angle\") {\n type = PhysicsHair.Src.SRC_TO_G_ANGLE;\n }\n else {\n UtDebug.error(\"live2d\", \"Invalid parameter:PhysicsHair.Src\");\n }\n var scale = parseFloat(src.scale);\n var weight = parseFloat(src.weight);\n physics.addSrcParam(type, id, scale, weight);\n }\n var targetList = param.targets; //Value\n var targetNum = targetList.length;\n for (var j = 0; j < targetNum; j++) {\n var target = targetList[j]; //Value\n var id = target.id; //String\n var type = PhysicsHair.Target.TARGET_FROM_ANGLE;\n var typeStr = target.ptype; //String\n if (typeStr === \"angle\") {\n type = PhysicsHair.Target.TARGET_FROM_ANGLE;\n }\n else if (typeStr === \"angle_v\") {\n type = PhysicsHair.Target.TARGET_FROM_ANGLE_V;\n }\n else {\n UtDebug.error(\"live2d\", \"Invalid parameter:PhysicsHair.Target\");\n }\n var scale = parseFloat(target.scale);\n var weight = parseFloat(target.weight);\n physics.addTargetParam(type, id, scale, weight);\n }\n ret.physicsList.push(physics);\n }\n return ret;\n}\n\n//============================================================\n// L2DPhysics # updateParam()\n//============================================================\nL2DPhysics.prototype.updateParam = function (model/*ALive2DModel*/) {\n var timeMSec = UtSystem.getUserTimeMSec() - this.startTimeMSec;\n for (var i = 0; i < this.physicsList.length; i++) {\n this.physicsList[i].update(model, timeMSec);\n }\n}\n\n//============================================================\n//============================================================\n// class L2DPose\n//============================================================\n//============================================================\nfunction L2DPose() {\n this.lastTime = 0;\n this.lastModel = null; //ALive2DModel\n this.partsGroups = new Array(); //ArrayList\n}\n\n\n//============================================================\n// static L2DPose.load()\n//============================================================\nL2DPose.load = function (buf/*byte[]*/) {\n var ret = new L2DPose(); //L2DPose\n var pm = Live2DFramework.getPlatformManager();\n var json = pm.jsonParseFromBytes(buf);\n var poseListInfo = json.parts_visible; //Value\n var poseNum = poseListInfo.length;\n for (var i_pose = 0; i_pose < poseNum; i_pose++) {\n var poseInfo = poseListInfo[i_pose]; //Value\n var idListInfo = poseInfo.group; //Value\n var idNum = idListInfo.length;\n var partsGroup/*L2DPartsParam*/ = new Array();\n for (var i_group = 0; i_group < idNum; i_group++) {\n var partsInfo = idListInfo[i_group]; //Value\n var parts = new L2DPartsParam(partsInfo.id); //L2DPartsParamL2DPartsParam\n partsGroup[i_group] = parts;\n if (partsInfo.link == null) continue;\n var linkListInfo = partsInfo.link; //Value\n var linkNum = linkListInfo.length;\n parts.link = new Array(); //ArrayList\n for (var i_link = 0; i_link < linkNum; i_link++) {\n var linkParts = new L2DPartsParam(linkListInfo[i_link]); //L2DPartsParamL2DPartsParam\n parts.link.push(linkParts);\n }\n }\n ret.partsGroups.push(partsGroup);\n }\n\n return ret;\n}\n\n//============================================================\n// L2DPose # updateParam()\n//============================================================\nL2DPose.prototype.updateParam = function (model/*ALive2DModel*/) {\n if (model == null) return;\n\n if (!(model == this.lastModel)) {\n this.initParam(model);\n }\n this.lastModel = model;\n\n var curTime = UtSystem.getUserTimeMSec();\n var deltaTimeSec = ((this.lastTime == 0) ? 0 : (curTime - this.lastTime) / 1000.0);\n this.lastTime = curTime;\n if (deltaTimeSec < 0) deltaTimeSec = 0;\n for (var i = 0; i < this.partsGroups.length; i++) {\n this.normalizePartsOpacityGroup(model, this.partsGroups[i], deltaTimeSec);\n this.copyOpacityOtherParts(model, this.partsGroups[i]);\n }\n}\n\n//============================================================\n// L2DPose # initParam()\n//============================================================\nL2DPose.prototype.initParam = function (model/*ALive2DModel*/) {\n if (model == null) return;\n for (var i = 0; i < this.partsGroups.length; i++) {\n var partsGroup = this.partsGroups[i]; //L2DPartsParam\n for (var j = 0; j < partsGroup.length; j++) {\n partsGroup[j].initIndex(model);\n var partsIndex = partsGroup[j].partsIndex;\n var paramIndex = partsGroup[j].paramIndex;\n if (partsIndex < 0) continue;\n var v/*:Boolean*/ = (model.getParamFloat(paramIndex) != 0);\n model.setPartsOpacity(partsIndex, (v ? 1.0 : 0.0));\n model.setParamFloat(paramIndex, (v ? 1.0 : 0.0));\n if (partsGroup[j].link == null) continue;\n for (var k = 0; k < partsGroup[j].link.length; k++) {\n partsGroup[j].link[k].initIndex(model);\n }\n }\n }\n}\n\n//============================================================\n// L2DPose # normalizePartsOpacityGroup()\n//============================================================\nL2DPose.prototype.normalizePartsOpacityGroup = function (model/*ALive2DModel*/, partsGroup/*L2DPartsParam[]*/, deltaTimeSec/*float*/) {\n var visibleParts = -1;\n var visibleOpacity = 1.0;\n var CLEAR_TIME_SEC = 0.5;\n var phi = 0.5;\n var maxBackOpacity = 0.15;\n for (var i = 0; i < partsGroup.length; i++) {\n var partsIndex = partsGroup[i].partsIndex;\n var paramIndex = partsGroup[i].paramIndex;\n if (partsIndex < 0) continue; if (model.getParamFloat(paramIndex) != 0) {\n if (visibleParts >= 0) {\n break;\n }\n visibleParts = i;\n visibleOpacity = model.getPartsOpacity(partsIndex);\n visibleOpacity += deltaTimeSec / CLEAR_TIME_SEC;\n if (visibleOpacity > 1) {\n visibleOpacity = 1;\n }\n }\n }\n if (visibleParts < 0) {\n visibleParts = 0;\n visibleOpacity = 1;\n }\n for (var i = 0; i < partsGroup.length; i++) {\n var partsIndex = partsGroup[i].partsIndex;\n if (partsIndex < 0) continue; if (visibleParts == i) {\n model.setPartsOpacity(partsIndex, visibleOpacity);\n }\n else {\n var opacity = model.getPartsOpacity(partsIndex);\n var a1;\n if (visibleOpacity < phi) {\n a1 = visibleOpacity * (phi - 1) / phi + 1;\n }\n else {\n a1 = (1 - visibleOpacity) * phi / (1 - phi);\n }\n var backOp = (1 - a1) * (1 - visibleOpacity);\n if (backOp > maxBackOpacity) {\n a1 = 1 - maxBackOpacity / (1 - visibleOpacity);\n }\n if (opacity > a1) {\n opacity = a1;\n }\n model.setPartsOpacity(partsIndex, opacity);\n }\n }\n}\n\n//============================================================\n// L2DPose # copyOpacityOtherParts()\n//============================================================\nL2DPose.prototype.copyOpacityOtherParts = function (model/*ALive2DModel*/, partsGroup/*L2DPartsParam[]*/) {\n for (var i_group = 0; i_group < partsGroup.length; i_group++) {\n var partsParam = partsGroup[i_group]; //L2DPartsParam\n if (partsParam.link == null) continue;\n if (partsParam.partsIndex < 0) continue;\n var opacity = model.getPartsOpacity(partsParam.partsIndex);\n for (var i_link = 0; i_link < partsParam.link.length; i_link++) {\n var linkParts = partsParam.link[i_link]; //L2DPartsParam\n if (linkParts.partsIndex < 0) continue;\n model.setPartsOpacity(linkParts.partsIndex, opacity);\n }\n }\n}\n\n//============================================================\n//============================================================\n// class L2DPartsParam\n//============================================================\n//============================================================\nfunction L2DPartsParam(id/*String*/) {\n this.paramIndex = -1;\n this.partsIndex = -1;\n this.link = null; // ArrayList\n this.id = id;\n}\n\n//============================================================\n// L2DPartsParam # initIndex()\n//============================================================\nL2DPartsParam.prototype.initIndex = function (model/*ALive2DModel*/) {\n this.paramIndex = model.getParamIndex(\"VISIBLE:\" + this.id);\n this.partsIndex = model.getPartsDataIndex(PartsDataID.getID(this.id));\n model.setParamFloat(this.paramIndex, 1);\n}\n\n//============================================================\n//============================================================\n// class L2DTargetPoint\n//============================================================\n//============================================================\nfunction L2DTargetPoint() {\n this.EPSILON = 0.01; // 変化の最小値(この値以下は無視される)\n this.faceTargetX = 0;\n this.faceTargetY = 0;\n this.faceX = 0;\n this.faceY = 0;\n this.faceVX = 0;\n this.faceVY = 0;\n this.lastTimeSec = 0;\n}\n\n//============================================================\nL2DTargetPoint.FRAME_RATE = 60;\n\n//============================================================\n// L2DTargetPoint # set()\n//============================================================\nL2DTargetPoint.prototype.setPoint = function (x/*float*/, y/*float*/) {\n this.faceTargetX = x;\n this.faceTargetY = y;\n}\n\n//============================================================\n// L2DTargetPoint # getX()\n//============================================================\nL2DTargetPoint.prototype.getX = function () {\n return this.faceX;\n}\n\n//============================================================\n// L2DTargetPoint # getY()\n//============================================================\nL2DTargetPoint.prototype.getY = function () {\n return this.faceY;\n}\n\n//============================================================\n// L2DTargetPoint # update()\n//============================================================\nL2DTargetPoint.prototype.update = function () {\n var TIME_TO_MAX_SPEED = 0.15;\n var FACE_PARAM_MAX_V = 40.0 / 7.5;\n var MAX_V = FACE_PARAM_MAX_V / L2DTargetPoint.FRAME_RATE;\n if (this.lastTimeSec == 0) {\n this.lastTimeSec = UtSystem.getUserTimeMSec();\n return;\n }\n var curTimeSec = UtSystem.getUserTimeMSec();\n var deltaTimeWeight = (curTimeSec - this.lastTimeSec) * L2DTargetPoint.FRAME_RATE / 1000.0;\n this.lastTimeSec = curTimeSec;\n var FRAME_TO_MAX_SPEED = TIME_TO_MAX_SPEED * L2DTargetPoint.FRAME_RATE;\n var MAX_A = deltaTimeWeight * MAX_V / FRAME_TO_MAX_SPEED;\n var dx = (this.faceTargetX - this.faceX);\n var dy = (this.faceTargetY - this.faceY);\n // if(dx == 0 && dy == 0) return;\n if (Math.abs(dx) <= this.EPSILON && Math.abs(dy) <= this.EPSILON) return;\n var d = Math.sqrt(dx * dx + dy * dy);\n var vx = MAX_V * dx / d;\n var vy = MAX_V * dy / d;\n var ax = vx - this.faceVX;\n var ay = vy - this.faceVY;\n var a = Math.sqrt(ax * ax + ay * ay);\n if (a < -MAX_A || a > MAX_A) {\n ax *= MAX_A / a;\n ay *= MAX_A / a;\n a = MAX_A;\n }\n this.faceVX += ax;\n this.faceVY += ay;\n {\n var max_v = 0.5 * (Math.sqrt(MAX_A * MAX_A + 16 * MAX_A * d - 8 * MAX_A * d) - MAX_A);\n var cur_v = Math.sqrt(this.faceVX * this.faceVX + this.faceVY * this.faceVY);\n if (cur_v > max_v) {\n this.faceVX *= max_v / cur_v;\n this.faceVY *= max_v / cur_v;\n }\n }\n this.faceX += this.faceVX;\n this.faceY += this.faceVY;\n}\n\n//============================================================\n//============================================================\n// class L2DViewMatrix extends L2DMatrix44\n//============================================================\n//============================================================\nfunction L2DViewMatrix() {\n L2DMatrix44.prototype.constructor.call(this);\n this.screenLeft = null;\n this.screenRight = null;\n this.screenTop = null;\n this.screenBottom = null;\n this.maxLeft = null;\n this.maxRight = null;\n this.maxTop = null;\n this.maxBottom = null;\n}\n\nL2DViewMatrix.prototype = new L2DMatrix44(); //L2DViewMatrix extends L2DMatrix44\n\n//============================================================\n// L2DViewMatrix # adjustTranslate()\n//============================================================\nL2DViewMatrix.prototype.adjustTranslate = function (shiftX/*float*/, shiftY/*float*/) {\n if (this.tr[0] * this.maxLeft + (this.tr[12] + shiftX) > this.screenLeft)\n shiftX = this.screenLeft - this.tr[0] * this.maxLeft - this.tr[12];\n if (this.tr[0] * this.maxRight + (this.tr[12] + shiftX) < this.screenRight)\n shiftX = this.screenRight - this.tr[0] * this.maxRight - this.tr[12];\n if (this.tr[5] * this.maxTop + (this.tr[13] + shiftY) < this.screenTop)\n shiftY = this.screenTop - this.tr[5] * this.maxTop - this.tr[13];\n if (this.tr[5] * this.maxBottom + (this.tr[13] + shiftY) > this.screenBottom)\n shiftY = this.screenBottom - this.tr[5] * this.maxBottom - this.tr[13];\n\n var tr1 = [1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n shiftX, shiftY, 0, 1];\n L2DMatrix44.mul(tr1, this.tr, this.tr);\n}\n\n//============================================================\n// L2DViewMatrix # adjustScale()\n//============================================================\nL2DViewMatrix.prototype.adjustScale = function (cx/*float*/, cy/*float*/, scale/*float*/) {\n var targetScale = scale * this.tr[0];\n var tr1 = [1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n cx, cy, 0, 1];\n var tr2 = [scale, 0, 0, 0,\n 0, scale, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1];\n var tr3 = [1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n -cx, -cy, 0, 1];\n L2DMatrix44.mul(tr3, this.tr, this.tr);\n L2DMatrix44.mul(tr2, this.tr, this.tr);\n L2DMatrix44.mul(tr1, this.tr, this.tr);\n}\n\n//============================================================\n// L2DViewMatrix # setScreenRect()\n//============================================================\nL2DViewMatrix.prototype.setScreenRect = function (left/*float*/, right/*float*/, bottom/*float*/, top/*float*/) {\n this.screenLeft = left;\n this.screenRight = right;\n this.screenTop = top;\n this.screenBottom = bottom;\n}\n\n//============================================================\n// L2DViewMatrix # setMaxScreenRect()\n//============================================================\nL2DViewMatrix.prototype.setMaxScreenRect = function (left/*float*/, right/*float*/, bottom/*float*/, top/*float*/) {\n this.maxLeft = left;\n this.maxRight = right;\n this.maxTop = top;\n this.maxBottom = bottom;\n}\n\n//============================================================\n// L2DViewMatrix # getScreenLeft()\n//============================================================\nL2DViewMatrix.prototype.getScreenLeft = function () {\n return this.screenLeft;\n}\n\n//============================================================\n// L2DViewMatrix # getScreenRight()\n//============================================================\nL2DViewMatrix.prototype.getScreenRight = function () {\n return this.screenRight;\n}\n\n//============================================================\n// L2DViewMatrix # getScreenBottom()\n//============================================================\nL2DViewMatrix.prototype.getScreenBottom = function () {\n return this.screenBottom;\n}\n\n//============================================================\n// L2DViewMatrix # getScreenTop()\n//============================================================\nL2DViewMatrix.prototype.getScreenTop = function () {\n return this.screenTop;\n}\n\n//============================================================\n// L2DViewMatrix # getMaxLeft()\n//============================================================\nL2DViewMatrix.prototype.getMaxLeft = function () {\n return this.maxLeft;\n}\n\n//============================================================\n// L2DViewMatrix # getMaxRight()\n//============================================================\nL2DViewMatrix.prototype.getMaxRight = function () {\n return this.maxRight;\n}\n\n//============================================================\n// L2DViewMatrix # getMaxBottom()\n//============================================================\nL2DViewMatrix.prototype.getMaxBottom = function () {\n return this.maxBottom;\n}\n\n//============================================================\n// L2DViewMatrix # getMaxTop()\n//============================================================\nL2DViewMatrix.prototype.getMaxTop = function () {\n return this.maxTop;\n}\n\n//============================================================\n//============================================================\n// class Live2DFramework\n//============================================================\n//============================================================\nfunction Live2DFramework() {\n}\n\n//============================================================\nLive2DFramework.platformManager = null;\n\n//============================================================\n// static Live2DFramework.getPlatformManager()\n//============================================================\nLive2DFramework.getPlatformManager = function () {\n return Live2DFramework.platformManager;\n}\n\n//============================================================\n// static Live2DFramework.setPlatformManager()\n//============================================================\nLive2DFramework.setPlatformManager = function (platformManager /*IPlatformManager*/) {\n Live2DFramework.platformManager = platformManager;\n}\n\nexport{\n L2DTargetPoint,\n Live2DFramework,\n L2DViewMatrix,\n L2DPose,\n L2DPartsParam,\n L2DPhysics,\n L2DMotionManager,\n L2DModelMatrix,\n L2DMatrix44,\n EYE_STATE,\n L2DEyeBlink,\n L2DExpressionParam,\n L2DExpressionMotion,\n L2DBaseModel,\n}\n", @@ -2340,7 +2751,7 @@ "lineNumber": 1 }, { - "__docId__": 120, + "__docId__": 125, "kind": "variable", "name": "texCounter", "memberof": "src/lib/Live2DFramework.js", @@ -2361,7 +2772,7 @@ "ignore": true }, { - "__docId__": 121, + "__docId__": 126, "kind": "function", "name": "getModelMatrix", "memberof": "src/lib/Live2DFramework.js", @@ -2385,7 +2796,7 @@ "ignore": true }, { - "__docId__": 122, + "__docId__": 127, "kind": "function", "name": "setAlpha", "memberof": "src/lib/Live2DFramework.js", @@ -2412,7 +2823,7 @@ "ignore": true }, { - "__docId__": 123, + "__docId__": 128, "kind": "function", "name": "getAlpha", "memberof": "src/lib/Live2DFramework.js", @@ -2436,7 +2847,7 @@ "ignore": true }, { - "__docId__": 124, + "__docId__": 129, "kind": "function", "name": "isInitialized", "memberof": "src/lib/Live2DFramework.js", @@ -2460,7 +2871,7 @@ "ignore": true }, { - "__docId__": 125, + "__docId__": 130, "kind": "function", "name": "setInitialized", "memberof": "src/lib/Live2DFramework.js", @@ -2487,7 +2898,7 @@ "ignore": true }, { - "__docId__": 126, + "__docId__": 131, "kind": "function", "name": "isUpdating", "memberof": "src/lib/Live2DFramework.js", @@ -2511,7 +2922,7 @@ "ignore": true }, { - "__docId__": 127, + "__docId__": 132, "kind": "function", "name": "setUpdating", "memberof": "src/lib/Live2DFramework.js", @@ -2538,7 +2949,7 @@ "ignore": true }, { - "__docId__": 128, + "__docId__": 133, "kind": "function", "name": "getLive2DModel", "memberof": "src/lib/Live2DFramework.js", @@ -2562,7 +2973,7 @@ "ignore": true }, { - "__docId__": 129, + "__docId__": 134, "kind": "function", "name": "setLipSync", "memberof": "src/lib/Live2DFramework.js", @@ -2589,7 +3000,7 @@ "ignore": true }, { - "__docId__": 130, + "__docId__": 135, "kind": "function", "name": "setLipSyncValue", "memberof": "src/lib/Live2DFramework.js", @@ -2616,7 +3027,7 @@ "ignore": true }, { - "__docId__": 131, + "__docId__": 136, "kind": "function", "name": "setAccel", "memberof": "src/lib/Live2DFramework.js", @@ -2655,7 +3066,7 @@ "ignore": true }, { - "__docId__": 132, + "__docId__": 137, "kind": "function", "name": "setDrag", "memberof": "src/lib/Live2DFramework.js", @@ -2688,7 +3099,7 @@ "ignore": true }, { - "__docId__": 133, + "__docId__": 138, "kind": "function", "name": "getMainMotionManager", "memberof": "src/lib/Live2DFramework.js", @@ -2712,7 +3123,7 @@ "ignore": true }, { - "__docId__": 134, + "__docId__": 139, "kind": "function", "name": "getExpressionManager", "memberof": "src/lib/Live2DFramework.js", @@ -2736,7 +3147,7 @@ "ignore": true }, { - "__docId__": 135, + "__docId__": 140, "kind": "function", "name": "loadModelData", "memberof": "src/lib/Live2DFramework.js", @@ -2769,7 +3180,7 @@ "ignore": true }, { - "__docId__": 136, + "__docId__": 141, "kind": "function", "name": "loadTexture", "memberof": "src/lib/Live2DFramework.js", @@ -2808,7 +3219,7 @@ "ignore": true }, { - "__docId__": 137, + "__docId__": 142, "kind": "function", "name": "loadMotion", "memberof": "src/lib/Live2DFramework.js", @@ -2847,7 +3258,7 @@ "ignore": true }, { - "__docId__": 138, + "__docId__": 143, "kind": "function", "name": "loadExpression", "memberof": "src/lib/Live2DFramework.js", @@ -2886,7 +3297,7 @@ "ignore": true }, { - "__docId__": 139, + "__docId__": 144, "kind": "function", "name": "loadPose", "memberof": "src/lib/Live2DFramework.js", @@ -2919,7 +3330,7 @@ "ignore": true }, { - "__docId__": 140, + "__docId__": 145, "kind": "function", "name": "loadPhysics", "memberof": "src/lib/Live2DFramework.js", @@ -2946,7 +3357,7 @@ "ignore": true }, { - "__docId__": 141, + "__docId__": 146, "kind": "function", "name": "hitTestSimple", "memberof": "src/lib/Live2DFramework.js", @@ -2989,7 +3400,7 @@ "ignore": true }, { - "__docId__": 142, + "__docId__": 147, "kind": "function", "name": "loadJson", "memberof": "src/lib/Live2DFramework.js", @@ -3020,7 +3431,7 @@ "ignore": true }, { - "__docId__": 143, + "__docId__": 148, "kind": "function", "name": "updateParamExe", "memberof": "src/lib/Live2DFramework.js", @@ -3065,7 +3476,7 @@ "ignore": true }, { - "__docId__": 144, + "__docId__": 149, "kind": "function", "name": "calcNextBlink", "memberof": "src/lib/Live2DFramework.js", @@ -3089,7 +3500,7 @@ "ignore": true }, { - "__docId__": 145, + "__docId__": 150, "kind": "function", "name": "setInterval", "memberof": "src/lib/Live2DFramework.js", @@ -3116,7 +3527,7 @@ "ignore": true }, { - "__docId__": 146, + "__docId__": 151, "kind": "function", "name": "setEyeMotion", "memberof": "src/lib/Live2DFramework.js", @@ -3155,7 +3566,7 @@ "ignore": true }, { - "__docId__": 147, + "__docId__": 152, "kind": "function", "name": "updateParam", "memberof": "src/lib/Live2DFramework.js", @@ -3182,7 +3593,7 @@ "ignore": true }, { - "__docId__": 148, + "__docId__": 153, "kind": "function", "name": "mul", "memberof": "src/lib/Live2DFramework.js", @@ -3221,7 +3632,7 @@ "ignore": true }, { - "__docId__": 149, + "__docId__": 154, "kind": "function", "name": "identity", "memberof": "src/lib/Live2DFramework.js", @@ -3241,7 +3652,7 @@ "ignore": true }, { - "__docId__": 150, + "__docId__": 155, "kind": "function", "name": "getArray", "memberof": "src/lib/Live2DFramework.js", @@ -3265,7 +3676,7 @@ "ignore": true }, { - "__docId__": 151, + "__docId__": 156, "kind": "function", "name": "getCopyMatrix", "memberof": "src/lib/Live2DFramework.js", @@ -3289,7 +3700,7 @@ "ignore": true }, { - "__docId__": 152, + "__docId__": 157, "kind": "function", "name": "setMatrix", "memberof": "src/lib/Live2DFramework.js", @@ -3316,7 +3727,7 @@ "ignore": true }, { - "__docId__": 153, + "__docId__": 158, "kind": "function", "name": "getScaleX", "memberof": "src/lib/Live2DFramework.js", @@ -3340,7 +3751,7 @@ "ignore": true }, { - "__docId__": 154, + "__docId__": 159, "kind": "function", "name": "getScaleY", "memberof": "src/lib/Live2DFramework.js", @@ -3364,7 +3775,7 @@ "ignore": true }, { - "__docId__": 155, + "__docId__": 160, "kind": "function", "name": "transformX", "memberof": "src/lib/Live2DFramework.js", @@ -3395,7 +3806,7 @@ "ignore": true }, { - "__docId__": 156, + "__docId__": 161, "kind": "function", "name": "transformY", "memberof": "src/lib/Live2DFramework.js", @@ -3426,7 +3837,7 @@ "ignore": true }, { - "__docId__": 157, + "__docId__": 162, "kind": "function", "name": "invertTransformX", "memberof": "src/lib/Live2DFramework.js", @@ -3457,7 +3868,7 @@ "ignore": true }, { - "__docId__": 158, + "__docId__": 163, "kind": "function", "name": "invertTransformY", "memberof": "src/lib/Live2DFramework.js", @@ -3488,7 +3899,7 @@ "ignore": true }, { - "__docId__": 159, + "__docId__": 164, "kind": "function", "name": "multTranslate", "memberof": "src/lib/Live2DFramework.js", @@ -3521,7 +3932,7 @@ "ignore": true }, { - "__docId__": 160, + "__docId__": 165, "kind": "function", "name": "translate", "memberof": "src/lib/Live2DFramework.js", @@ -3554,7 +3965,7 @@ "ignore": true }, { - "__docId__": 161, + "__docId__": 166, "kind": "function", "name": "translateX", "memberof": "src/lib/Live2DFramework.js", @@ -3581,7 +3992,7 @@ "ignore": true }, { - "__docId__": 162, + "__docId__": 167, "kind": "function", "name": "translateY", "memberof": "src/lib/Live2DFramework.js", @@ -3608,7 +4019,7 @@ "ignore": true }, { - "__docId__": 163, + "__docId__": 168, "kind": "function", "name": "multScale", "memberof": "src/lib/Live2DFramework.js", @@ -3641,7 +4052,7 @@ "ignore": true }, { - "__docId__": 164, + "__docId__": 169, "kind": "function", "name": "scale", "memberof": "src/lib/Live2DFramework.js", @@ -3674,7 +4085,7 @@ "ignore": true }, { - "__docId__": 165, + "__docId__": 170, "kind": "function", "name": "setPosition", "memberof": "src/lib/Live2DFramework.js", @@ -3707,7 +4118,7 @@ "ignore": true }, { - "__docId__": 166, + "__docId__": 171, "kind": "function", "name": "setCenterPosition", "memberof": "src/lib/Live2DFramework.js", @@ -3740,7 +4151,7 @@ "ignore": true }, { - "__docId__": 167, + "__docId__": 172, "kind": "function", "name": "top", "memberof": "src/lib/Live2DFramework.js", @@ -3767,7 +4178,7 @@ "ignore": true }, { - "__docId__": 168, + "__docId__": 173, "kind": "function", "name": "bottom", "memberof": "src/lib/Live2DFramework.js", @@ -3794,7 +4205,7 @@ "ignore": true }, { - "__docId__": 169, + "__docId__": 174, "kind": "function", "name": "left", "memberof": "src/lib/Live2DFramework.js", @@ -3821,7 +4232,7 @@ "ignore": true }, { - "__docId__": 170, + "__docId__": 175, "kind": "function", "name": "right", "memberof": "src/lib/Live2DFramework.js", @@ -3848,7 +4259,7 @@ "ignore": true }, { - "__docId__": 171, + "__docId__": 176, "kind": "function", "name": "centerX", "memberof": "src/lib/Live2DFramework.js", @@ -3875,7 +4286,7 @@ "ignore": true }, { - "__docId__": 172, + "__docId__": 177, "kind": "function", "name": "centerY", "memberof": "src/lib/Live2DFramework.js", @@ -3902,7 +4313,7 @@ "ignore": true }, { - "__docId__": 173, + "__docId__": 178, "kind": "function", "name": "setX", "memberof": "src/lib/Live2DFramework.js", @@ -3929,7 +4340,7 @@ "ignore": true }, { - "__docId__": 174, + "__docId__": 179, "kind": "function", "name": "setY", "memberof": "src/lib/Live2DFramework.js", @@ -3956,7 +4367,7 @@ "ignore": true }, { - "__docId__": 175, + "__docId__": 180, "kind": "function", "name": "setHeight", "memberof": "src/lib/Live2DFramework.js", @@ -3983,7 +4394,7 @@ "ignore": true }, { - "__docId__": 176, + "__docId__": 181, "kind": "function", "name": "setWidth", "memberof": "src/lib/Live2DFramework.js", @@ -4010,7 +4421,7 @@ "ignore": true }, { - "__docId__": 177, + "__docId__": 182, "kind": "function", "name": "getCurrentPriority", "memberof": "src/lib/Live2DFramework.js", @@ -4034,7 +4445,7 @@ "ignore": true }, { - "__docId__": 178, + "__docId__": 183, "kind": "function", "name": "getReservePriority", "memberof": "src/lib/Live2DFramework.js", @@ -4058,7 +4469,7 @@ "ignore": true }, { - "__docId__": 179, + "__docId__": 184, "kind": "function", "name": "reserveMotion", "memberof": "src/lib/Live2DFramework.js", @@ -4089,7 +4500,7 @@ "ignore": true }, { - "__docId__": 180, + "__docId__": 185, "kind": "function", "name": "setReservePriority", "memberof": "src/lib/Live2DFramework.js", @@ -4116,7 +4527,7 @@ "ignore": true }, { - "__docId__": 181, + "__docId__": 186, "kind": "function", "name": "updateParam", "memberof": "src/lib/Live2DFramework.js", @@ -4147,7 +4558,7 @@ "ignore": true }, { - "__docId__": 182, + "__docId__": 187, "kind": "function", "name": "startMotionPrio", "memberof": "src/lib/Live2DFramework.js", @@ -4184,7 +4595,7 @@ "ignore": true }, { - "__docId__": 183, + "__docId__": 188, "kind": "function", "name": "load", "memberof": "src/lib/Live2DFramework.js", @@ -4215,7 +4626,7 @@ "ignore": true }, { - "__docId__": 184, + "__docId__": 189, "kind": "function", "name": "updateParam", "memberof": "src/lib/Live2DFramework.js", @@ -4242,7 +4653,7 @@ "ignore": true }, { - "__docId__": 185, + "__docId__": 190, "kind": "function", "name": "load", "memberof": "src/lib/Live2DFramework.js", @@ -4273,7 +4684,7 @@ "ignore": true }, { - "__docId__": 186, + "__docId__": 191, "kind": "function", "name": "updateParam", "memberof": "src/lib/Live2DFramework.js", @@ -4300,7 +4711,7 @@ "ignore": true }, { - "__docId__": 187, + "__docId__": 192, "kind": "function", "name": "initParam", "memberof": "src/lib/Live2DFramework.js", @@ -4327,7 +4738,7 @@ "ignore": true }, { - "__docId__": 188, + "__docId__": 193, "kind": "function", "name": "normalizePartsOpacityGroup", "memberof": "src/lib/Live2DFramework.js", @@ -4366,7 +4777,7 @@ "ignore": true }, { - "__docId__": 189, + "__docId__": 194, "kind": "function", "name": "copyOpacityOtherParts", "memberof": "src/lib/Live2DFramework.js", @@ -4399,7 +4810,7 @@ "ignore": true }, { - "__docId__": 190, + "__docId__": 195, "kind": "function", "name": "initIndex", "memberof": "src/lib/Live2DFramework.js", @@ -4426,7 +4837,7 @@ "ignore": true }, { - "__docId__": 191, + "__docId__": 196, "kind": "function", "name": "setPoint", "memberof": "src/lib/Live2DFramework.js", @@ -4459,7 +4870,7 @@ "ignore": true }, { - "__docId__": 192, + "__docId__": 197, "kind": "function", "name": "getX", "memberof": "src/lib/Live2DFramework.js", @@ -4483,7 +4894,7 @@ "ignore": true }, { - "__docId__": 193, + "__docId__": 198, "kind": "function", "name": "getY", "memberof": "src/lib/Live2DFramework.js", @@ -4507,7 +4918,7 @@ "ignore": true }, { - "__docId__": 194, + "__docId__": 199, "kind": "function", "name": "update", "memberof": "src/lib/Live2DFramework.js", @@ -4527,7 +4938,7 @@ "ignore": true }, { - "__docId__": 195, + "__docId__": 200, "kind": "function", "name": "adjustTranslate", "memberof": "src/lib/Live2DFramework.js", @@ -4560,7 +4971,7 @@ "ignore": true }, { - "__docId__": 196, + "__docId__": 201, "kind": "function", "name": "adjustScale", "memberof": "src/lib/Live2DFramework.js", @@ -4599,7 +5010,7 @@ "ignore": true }, { - "__docId__": 197, + "__docId__": 202, "kind": "function", "name": "setScreenRect", "memberof": "src/lib/Live2DFramework.js", @@ -4644,7 +5055,7 @@ "ignore": true }, { - "__docId__": 198, + "__docId__": 203, "kind": "function", "name": "setMaxScreenRect", "memberof": "src/lib/Live2DFramework.js", @@ -4689,7 +5100,7 @@ "ignore": true }, { - "__docId__": 199, + "__docId__": 204, "kind": "function", "name": "getScreenLeft", "memberof": "src/lib/Live2DFramework.js", @@ -4713,7 +5124,7 @@ "ignore": true }, { - "__docId__": 200, + "__docId__": 205, "kind": "function", "name": "getScreenRight", "memberof": "src/lib/Live2DFramework.js", @@ -4737,7 +5148,7 @@ "ignore": true }, { - "__docId__": 201, + "__docId__": 206, "kind": "function", "name": "getScreenBottom", "memberof": "src/lib/Live2DFramework.js", @@ -4761,7 +5172,7 @@ "ignore": true }, { - "__docId__": 202, + "__docId__": 207, "kind": "function", "name": "getScreenTop", "memberof": "src/lib/Live2DFramework.js", @@ -4785,7 +5196,7 @@ "ignore": true }, { - "__docId__": 203, + "__docId__": 208, "kind": "function", "name": "getMaxLeft", "memberof": "src/lib/Live2DFramework.js", @@ -4809,7 +5220,7 @@ "ignore": true }, { - "__docId__": 204, + "__docId__": 209, "kind": "function", "name": "getMaxRight", "memberof": "src/lib/Live2DFramework.js", @@ -4833,7 +5244,7 @@ "ignore": true }, { - "__docId__": 205, + "__docId__": 210, "kind": "function", "name": "getMaxBottom", "memberof": "src/lib/Live2DFramework.js", @@ -4857,7 +5268,7 @@ "ignore": true }, { - "__docId__": 206, + "__docId__": 211, "kind": "function", "name": "getMaxTop", "memberof": "src/lib/Live2DFramework.js", @@ -4881,7 +5292,7 @@ "ignore": true }, { - "__docId__": 207, + "__docId__": 212, "kind": "function", "name": "getPlatformManager", "memberof": "src/lib/Live2DFramework.js", @@ -4905,7 +5316,7 @@ "ignore": true }, { - "__docId__": 208, + "__docId__": 213, "kind": "function", "name": "setPlatformManager", "memberof": "src/lib/Live2DFramework.js", @@ -4932,7 +5343,7 @@ "ignore": true }, { - "__docId__": 209, + "__docId__": 214, "kind": "function", "name": "L2DTargetPoint", "memberof": "src/lib/Live2DFramework.js", @@ -4951,7 +5362,7 @@ "return": null }, { - "__docId__": 210, + "__docId__": 215, "kind": "function", "name": "Live2DFramework", "memberof": "src/lib/Live2DFramework.js", @@ -4970,7 +5381,7 @@ "return": null }, { - "__docId__": 211, + "__docId__": 216, "kind": "function", "name": "L2DViewMatrix", "memberof": "src/lib/Live2DFramework.js", @@ -4989,7 +5400,7 @@ "return": null }, { - "__docId__": 212, + "__docId__": 217, "kind": "function", "name": "L2DPose", "memberof": "src/lib/Live2DFramework.js", @@ -5008,7 +5419,7 @@ "return": null }, { - "__docId__": 213, + "__docId__": 218, "kind": "function", "name": "L2DPartsParam", "memberof": "src/lib/Live2DFramework.js", @@ -5034,7 +5445,7 @@ "return": null }, { - "__docId__": 214, + "__docId__": 219, "kind": "function", "name": "L2DPhysics", "memberof": "src/lib/Live2DFramework.js", @@ -5053,7 +5464,7 @@ "return": null }, { - "__docId__": 215, + "__docId__": 220, "kind": "function", "name": "L2DMotionManager", "memberof": "src/lib/Live2DFramework.js", @@ -5072,7 +5483,7 @@ "return": null }, { - "__docId__": 216, + "__docId__": 221, "kind": "function", "name": "L2DModelMatrix", "memberof": "src/lib/Live2DFramework.js", @@ -5104,7 +5515,7 @@ "return": null }, { - "__docId__": 217, + "__docId__": 222, "kind": "function", "name": "L2DMatrix44", "memberof": "src/lib/Live2DFramework.js", @@ -5123,7 +5534,7 @@ "return": null }, { - "__docId__": 218, + "__docId__": 223, "kind": "function", "name": "EYE_STATE", "memberof": "src/lib/Live2DFramework.js", @@ -5142,7 +5553,7 @@ "return": null }, { - "__docId__": 219, + "__docId__": 224, "kind": "function", "name": "L2DEyeBlink", "memberof": "src/lib/Live2DFramework.js", @@ -5161,7 +5572,7 @@ "return": null }, { - "__docId__": 220, + "__docId__": 225, "kind": "function", "name": "L2DExpressionParam", "memberof": "src/lib/Live2DFramework.js", @@ -5180,7 +5591,7 @@ "return": null }, { - "__docId__": 221, + "__docId__": 226, "kind": "function", "name": "L2DExpressionMotion", "memberof": "src/lib/Live2DFramework.js", @@ -5199,7 +5610,7 @@ "return": null }, { - "__docId__": 222, + "__docId__": 227, "kind": "function", "name": "L2DBaseModel", "memberof": "src/lib/Live2DFramework.js", @@ -5218,7 +5629,7 @@ "return": null }, { - "__docId__": 223, + "__docId__": 228, "kind": "file", "name": "src/lib/_Live2DFramework.official.js", "content": "/**\r\n *\r\n * You can modify and use this source freely\r\n * only for the development of application related Live2D.\r\n *\r\n * (c) Live2D Inc. All rights reserved.\r\n */\r\n//============================================================\r\n//============================================================\r\n// class L2DBaseModel \r\n//============================================================\r\n//============================================================\r\nfunction L2DBaseModel()\r\n{\r\n this.live2DModel = null; // ALive2DModel\r\n this.modelMatrix = null; // L2DModelMatrix\r\n this.eyeBlink = null; // L2DEyeBlink\r\n this.physics = null; // L2DPhysics\r\n this.pose = null; // L2DPose\r\n this.debugMode = false;\r\n this.initialized = false;\r\n this.updating = false;\r\n this.alpha = 1;\r\n this.accAlpha = 0;\r\n this.lipSync = false; \r\n this.lipSyncValue = 0; \r\n this.accelX = 0;\r\n this.accelY = 0;\r\n this.accelZ = 0;\r\n this.dragX = 0;\r\n this.dragY = 0;\r\n this.startTimeMSec = null;\r\n this.mainMotionManager = new L2DMotionManager(); //L2DMotionManager\r\n this.expressionManager = new L2DMotionManager(); //L2DMotionManager\r\n this.motions = {};\r\n this.expressions = {};\r\n \r\n this.isTexLoaded = false;\r\n}\r\n\r\nvar texCounter = 0;\r\n\r\n//============================================================\r\n// L2DBaseModel # getModelMatrix()\r\n//============================================================\r\nL2DBaseModel.prototype.getModelMatrix = function()\r\n{\r\n return this.modelMatrix;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # setAlpha()\r\n//============================================================\r\nL2DBaseModel.prototype.setAlpha = function(a/*float*/)\r\n{\r\n if( a > 0.999 ) a = 1;\r\n if( a < 0.001 ) a = 0;\r\n this.alpha = a;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # getAlpha()\r\n//============================================================\r\nL2DBaseModel.prototype.getAlpha = function()\r\n{\r\n return this.alpha;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # isInitialized()\r\n//============================================================\r\nL2DBaseModel.prototype.isInitialized = function()\r\n{\r\n return this.initialized;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # setInitialized()\r\n//============================================================\r\nL2DBaseModel.prototype.setInitialized = function( v/*boolean*/)\r\n{\r\n this.initialized = v;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # isUpdating()\r\n//============================================================\r\nL2DBaseModel.prototype.isUpdating = function()\r\n{\r\n return this.updating;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # setUpdating()\r\n//============================================================\r\nL2DBaseModel.prototype.setUpdating = function(v/*boolean*/)\r\n{\r\n this.updating = v;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # getLive2DModel()\r\n//============================================================\r\nL2DBaseModel.prototype.getLive2DModel = function()\r\n{\r\n return this.live2DModel;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # setLipSync()\r\n//============================================================\r\nL2DBaseModel.prototype.setLipSync = function(v/*boolean*/)\r\n{\r\n this.lipSync = v;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # setLipSyncValue()\r\n//============================================================\r\nL2DBaseModel.prototype.setLipSyncValue = function(v/*float*/)\r\n{\r\n this.lipSyncValue = v;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # setAccel()\r\n//============================================================\r\nL2DBaseModel.prototype.setAccel = function(x/*float*/, y/*float*/, z/*float*/)\r\n{\r\n this.accelX = x;\r\n this.accelY = y;\r\n this.accelZ = z;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # setDrag()\r\n//============================================================\r\nL2DBaseModel.prototype.setDrag = function(x/*float*/, y/*float*/)\r\n{\r\n this.dragX = x;\r\n this.dragY = y;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # getMainMotionManager()\r\n//============================================================\r\nL2DBaseModel.prototype.getMainMotionManager = function()\r\n{\r\n return this.mainMotionManager;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # getExpressionManager()\r\n//============================================================\r\nL2DBaseModel.prototype.getExpressionManager = function()\r\n{\r\n return this.expressionManager;\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # loadModelData()\r\n//============================================================\r\nL2DBaseModel.prototype.loadModelData = function(path/*String*/, callback)\r\n{ \r\n /*\r\n if( this.live2DModel != null ) {\r\n this.live2DModel.deleteTextures();\r\n }\r\n */\r\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\r\n if( this.debugMode ) pm.log(\"Load model : \" + path);\r\n\r\n var thisRef = this;\r\n pm.loadLive2DModel(path, function(l2dModel) {\r\n thisRef.live2DModel = l2dModel;\r\n thisRef.live2DModel.saveParam();\r\n \r\n var _err = Live2D.getError();\r\n\r\n if( _err != 0 ) {\r\n console.error(\"Error : Failed to loadModelData().\");\r\n return;\r\n }\r\n \r\n thisRef.modelMatrix = new L2DModelMatrix(\r\n thisRef.live2DModel.getCanvasWidth(),\r\n thisRef.live2DModel.getCanvasHeight()); //L2DModelMatrix\r\n thisRef.modelMatrix.setWidth(2);\r\n thisRef.modelMatrix.setCenterPosition(0, 0);\r\n \r\n callback(thisRef.live2DModel);\r\n });\r\n}\r\n\r\n\r\n//============================================================\r\n// L2DBaseModel # loadTexture()\r\n//============================================================\r\nL2DBaseModel.prototype.loadTexture = function(no/*int*/, path/*String*/, callback)\r\n{\r\n texCounter++;\r\n \r\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\r\n \r\n if( this.debugMode ) pm.log(\"Load Texture : \" + path);\r\n \r\n var thisRef = this;\r\n pm.loadTexture(this.live2DModel , no , path, function(){\r\n texCounter--;\r\n if(texCounter == 0) thisRef.isTexLoaded = true;\r\n if (typeof callback == \"function\") callback();\r\n });\r\n \r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # loadMotion()\r\n//============================================================\r\nL2DBaseModel.prototype.loadMotion = function(name/*String*/, path /*String*/, callback)\r\n{ \r\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\r\n \r\n if(this.debugMode) pm.log(\"Load Motion : \" + path);\r\n \r\n var motion = null; //Live2DMotion\r\n \r\n var thisRef = this;\r\n pm.loadBytes(path, function(buf) {\r\n motion = Live2DMotion.loadMotion(buf);\r\n if( name != null ) {\r\n thisRef.motions[name] = motion;\r\n }\r\n callback(motion);\r\n });\r\n \r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # loadExpression()\r\n//============================================================\r\nL2DBaseModel.prototype.loadExpression = function(name/*String*/, path /*String*/, callback)\r\n{\r\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\r\n \r\n if( this.debugMode ) pm.log(\"Load Expression : \" + path);\r\n \r\n var thisRef = this;\r\n pm.loadBytes(path, function(buf) {\r\n if(name != null) {\r\n thisRef.expressions[name] = L2DExpressionMotion.loadJson(buf);\r\n }\r\n if (typeof callback == \"function\") callback();\r\n });\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # loadPose()\r\n//============================================================\r\nL2DBaseModel.prototype.loadPose = function( path /*String*/, callback )\r\n{\r\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\r\n if( this.debugMode ) pm.log(\"Load Pose : \" + path);\r\n var thisRef = this;\r\n try {\r\n pm.loadBytes(path, function(buf) {\r\n thisRef.pose = L2DPose.load(buf);\r\n if (typeof callback == \"function\") callback();\r\n });\r\n }\r\n catch(e) {\r\n console.warn(e);\r\n }\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # loadPhysics()\r\n//============================================================\r\nL2DBaseModel.prototype.loadPhysics = function(path/*String*/)\r\n{\r\n var pm = Live2DFramework.getPlatformManager(); //IPlatformManager\r\n if( this.debugMode ) pm.log(\"Load Physics : \" + path);\r\n var thisRef = this;\r\n try {\r\n pm.loadBytes(path, function(buf) {\r\n thisRef.physics = L2DPhysics.load(buf);\r\n });\r\n }\r\n catch(e){\r\n console.warn(e);\r\n }\r\n}\r\n\r\n//============================================================\r\n// L2DBaseModel # hitTestSimple()\r\n//============================================================\r\nL2DBaseModel.prototype.hitTestSimple = function(drawID, testX, testY)\r\n{ \r\n var drawIndex = this.live2DModel.getDrawDataIndex(drawID);\r\n \r\n if( drawIndex < 0 ) return false;\r\n \r\n var points = this.live2DModel.getTransformedPoints(drawIndex);\r\n var left = this.live2DModel.getCanvasWidth();\r\n var right = 0;\r\n var top = this.live2DModel.getCanvasHeight();\r\n var bottom = 0;\r\n \r\n for( var j = 0; j < points.length; j = j + 2 ) {\r\n var x = points[j];\r\n var y = points[j + 1];\r\n\r\n if( x < left ) left = x;\r\n if( x > right ) right = x;\r\n if( y < top ) top = y;\r\n if( y > bottom ) bottom = y;\r\n }\r\n var tx = this.modelMatrix.invertTransformX(testX);\r\n var ty = this.modelMatrix.invertTransformY(testY);\r\n \r\n return ( left <= tx && tx <= right && top <= ty && ty <= bottom );\r\n}\r\n\r\n/**\r\n *\r\n * You can modify and use this source freely\r\n * only for the development of application related Live2D.\r\n *\r\n * (c) Live2D Inc. All rights reserved.\r\n */\r\n\r\n//============================================================\r\n//============================================================\r\n// class L2DExpressionMotion extends AMotion\r\n//============================================================\r\n//============================================================\r\nfunction L2DExpressionMotion()\r\n{\r\n AMotion.prototype.constructor.call(this);\r\n this.paramList = new Array(); //ArrayList\r\n}\r\n\r\nL2DExpressionMotion.prototype = new AMotion(); // L2DExpressionMotion extends AMotion\r\n\r\n//============================================================\r\nL2DExpressionMotion.EXPRESSION_DEFAULT = \"DEFAULT\";\r\nL2DExpressionMotion.TYPE_SET = 0;\r\nL2DExpressionMotion.TYPE_ADD = 1;\r\nL2DExpressionMotion.TYPE_MULT = 2;\r\n\r\n//============================================================\r\n// static L2DExpressionMotion.loadJson()\r\n//============================================================\r\nL2DExpressionMotion.loadJson = function(buf)\r\n{ \r\n var ret = new L2DExpressionMotion();\r\n \r\n var pm = Live2DFramework.getPlatformManager();\r\n var json = pm.jsonParseFromBytes(buf);\r\n\r\n ret.setFadeIn(parseInt(json.fade_in) > 0 ? parseInt(json.fade_in) : 1000);\r\n ret.setFadeOut(parseInt(json.fade_out) > 0 ? parseInt(json.fade_out) : 1000);\r\n \r\n if(json.params == null) {\r\n return ret;\r\n }\r\n \r\n var params = json.params;\r\n var paramNum = params.length;\r\n ret.paramList = []; //ArrayList\r\n for( var i = 0; i < paramNum; i++) {\r\n var param = params[i];\r\n var paramID = param.id.toString();\r\n var value = parseFloat(param.val);\r\n var calcTypeInt = L2DExpressionMotion.TYPE_ADD;\r\n var calc = param.calc != null ? param.calc.toString() : \"add\";\r\n if(calc === \"add\") {\r\n calcTypeInt = L2DExpressionMotion.TYPE_ADD;\r\n }\r\n else if(calc === \"mult\") {\r\n calcTypeInt = L2DExpressionMotion.TYPE_MULT;\r\n }\r\n else if(calc === \"set\") {\r\n calcTypeInt = L2DExpressionMotion.TYPE_SET;\r\n }\r\n else {\r\n calcTypeInt = L2DExpressionMotion.TYPE_ADD;\r\n }\r\n if(calcTypeInt == L2DExpressionMotion.TYPE_ADD) {\r\n var defaultValue = param.def == null ? 0 : parseFloat(param.def);\r\n value = value - defaultValue;\r\n }\r\n else if(calcTypeInt == L2DExpressionMotion.TYPE_MULT) {\r\n var defaultValue = param.def == null ? 1 : parseFloat(param.def);\r\n if(defaultValue == 0 ) defaultValue = 1;\r\n value = value / defaultValue;\r\n }\r\n \r\n var item = new L2DExpressionParam( );\r\n item.id = paramID;\r\n item.type = calcTypeInt;\r\n item.value = value;\r\n \r\n ret.paramList.push(item);\r\n }\r\n \r\n return ret;\r\n}\r\n\r\n\r\n//============================================================\r\n// L2DExpressionMotion # updateParamExe()\r\n//============================================================\r\nL2DExpressionMotion.prototype.updateParamExe = function(model /*ALive2DModel*/, timeMSec/*long*/ ,weight /*float*/ ,motionQueueEnt /*MotionQueueEnt*/)\r\n{\r\n for(var i = this.paramList.length - 1; i >= 0; --i) {\r\n var param = this.paramList[i]; //L2DExpressionParam\r\n // if (!param || !param.type) continue;\r\n if(param.type == L2DExpressionMotion.TYPE_ADD) {\r\n model.addToParamFloat(param.id, param.value, weight);\r\n }\r\n else if(param.type == L2DExpressionMotion.TYPE_MULT) {\r\n model.multParamFloat(param.id, param.value, weight);\r\n }\r\n else if(param.type == L2DExpressionMotion.TYPE_SET) { \r\n model.setParamFloat(param.id, param.value, weight);\r\n }\r\n }\r\n}\r\n\r\n//============================================================\r\n//============================================================\r\n// class L2DExpressionParam \r\n//============================================================\r\n//============================================================\r\nfunction L2DExpressionParam()\r\n{\r\n this.id = \"\";\r\n this.type = -1;\r\n this.value = null;\r\n}\r\n\r\n/**\r\n *\r\n * You can modify and use this source freely\r\n * only for the development of application related Live2D.\r\n *\r\n * (c) Live2D Inc. All rights reserved.\r\n */\r\n\r\n//============================================================\r\n//============================================================\r\n// class L2DEyeBlink \r\n//============================================================\r\n//============================================================\r\nfunction L2DEyeBlink()\r\n{\r\n this.nextBlinkTime = null /* TODO NOT INIT */; // \r\n this.stateStartTime = null /* TODO NOT INIT */; // \r\n this.blinkIntervalMsec = null /* TODO NOT INIT */; // \r\n this.eyeState = EYE_STATE.STATE_FIRST;\r\n this.blinkIntervalMsec = 4000;\r\n this.closingMotionMsec = 100;\r\n this.closedMotionMsec = 50;\r\n this.openingMotionMsec = 150;\r\n this.closeIfZero = true;\r\n this.eyeID_L = \"PARAM_EYE_L_OPEN\";\r\n this.eyeID_R = \"PARAM_EYE_R_OPEN\";\r\n}\r\n\r\n//============================================================\r\n// L2DEyeBlink # calcNextBlink()\r\n//============================================================\r\nL2DEyeBlink.prototype.calcNextBlink = function()\r\n{\r\n var time /*long*/ = UtSystem.getUserTimeMSec();\r\n var r /*Number*/ = Math.random();\r\n return /*(long)*/ (time + r * (2 * this.blinkIntervalMsec - 1));\r\n}\r\n\r\n//============================================================\r\n// L2DEyeBlink # setInterval()\r\n//============================================================\r\nL2DEyeBlink.prototype.setInterval = function(blinkIntervalMsec /*int*/)\r\n{\r\n this.blinkIntervalMsec = blinkIntervalMsec;\r\n}\r\n\r\n//============================================================\r\n// L2DEyeBlink # setEyeMotion()\r\n//============================================================\r\nL2DEyeBlink.prototype.setEyeMotion = function(closingMotionMsec/*int*/ , closedMotionMsec/*int*/ , openingMotionMsec/*int*/)\r\n{\r\n this.closingMotionMsec = closingMotionMsec;\r\n this.closedMotionMsec = closedMotionMsec;\r\n this.openingMotionMsec = openingMotionMsec;\r\n}\r\n\r\n//============================================================\r\n// L2DEyeBlink # updateParam()\r\n//============================================================\r\nL2DEyeBlink.prototype.updateParam = function(model/*ALive2DModel*/)\r\n{\r\n var time /*:long*/ = UtSystem.getUserTimeMSec();\r\n var eyeParamValue /*:Number*/;\r\n var t /*:Number*/ = 0;\r\n switch(this.eyeState){\r\n case EYE_STATE.STATE_CLOSING:\r\n t = (time - this.stateStartTime) / this.closingMotionMsec;\r\n if(t >= 1) {\r\n t = 1;\r\n this.eyeState = EYE_STATE.STATE_CLOSED;\r\n this.stateStartTime = time;\r\n }\r\n eyeParamValue = 1 - t;\r\n break;\r\n case EYE_STATE.STATE_CLOSED:\r\n t = (time - this.stateStartTime) / this.closedMotionMsec;\r\n if(t >= 1) {\r\n this.eyeState = EYE_STATE.STATE_OPENING;\r\n this.stateStartTime = time;\r\n }\r\n eyeParamValue = 0;\r\n break;\r\n case EYE_STATE.STATE_OPENING:\r\n t = (time - this.stateStartTime) / this.openingMotionMsec;\r\n if(t >= 1) {\r\n t = 1;\r\n this.eyeState = EYE_STATE.STATE_INTERVAL;\r\n this.nextBlinkTime = this.calcNextBlink();\r\n }\r\n eyeParamValue = t;\r\n break;\r\n case EYE_STATE.STATE_INTERVAL:\r\n if(this.nextBlinkTime < time) {\r\n this.eyeState = EYE_STATE.STATE_CLOSING;\r\n this.stateStartTime = time;\r\n }\r\n eyeParamValue = 1;\r\n break;\r\n case EYE_STATE.STATE_FIRST:\r\n default:\r\n this.eyeState = EYE_STATE.STATE_INTERVAL;\r\n this.nextBlinkTime = this.calcNextBlink();\r\n eyeParamValue = 1;\r\n break;\r\n }\r\n if(!this.closeIfZero) eyeParamValue = -eyeParamValue;\r\n model.setParamFloat(this.eyeID_L , eyeParamValue);\r\n model.setParamFloat(this.eyeID_R , eyeParamValue);\r\n}\r\n\r\n//== enum EYE_STATE ==\r\nvar EYE_STATE = function(){};\r\n\r\nEYE_STATE.STATE_FIRST = \"STATE_FIRST\"\r\nEYE_STATE.STATE_INTERVAL = \"STATE_INTERVAL\"\r\nEYE_STATE.STATE_CLOSING = \"STATE_CLOSING\"\r\nEYE_STATE.STATE_CLOSED = \"STATE_CLOSED\"\r\nEYE_STATE.STATE_OPENING = \"STATE_OPENING\"\r\n/**\r\n *\r\n * You can modify and use this source freely\r\n * only for the development of application related Live2D.\r\n *\r\n * (c) Live2D Inc. All rights reserved.\r\n */\r\n\r\n//============================================================\r\n//============================================================\r\n// class L2DMatrix44 \r\n//============================================================\r\n//============================================================\r\nfunction L2DMatrix44()\r\n{\r\n this.tr = new Float32Array(16); // \r\n this.identity();\r\n}\r\n\r\n//============================================================\r\n// static L2DMatrix44.mul()\r\n//============================================================\r\nL2DMatrix44.mul = function( a/*float[]*/, b/*float[]*/, dst/*float[]*/ )\r\n{\r\n var c = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ];\r\n var n = 4;\r\n var i, j, k;\r\n for( i = 0; i < n; i++ ) {\r\n for( j = 0; j < n; j++ ) {\r\n for( k = 0; k < n; k++ ) {\r\n c[i + j * 4] += a[i + k * 4] * b[k + j * 4];\r\n }\r\n }\r\n }\r\n for( i = 0; i < 16; i++ ) {\r\n dst[i] = c[i];\r\n }\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # identity()\r\n//============================================================\r\nL2DMatrix44.prototype.identity = function()\r\n{\r\n for( var i/*:int*/ = 0; i < 16; i++ ) \r\n this.tr[i] = ( ( i % 5 ) == 0 ) ? 1 : 0;\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # getArray()\r\n//============================================================\r\nL2DMatrix44.prototype.getArray = function()\r\n{\r\n return this.tr;\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # getCopyMatrix()\r\n//============================================================\r\nL2DMatrix44.prototype.getCopyMatrix = function()\r\n{\r\n return new Float32Array(this.tr); // this.tr.clone();\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # setMatrix()\r\n//============================================================\r\nL2DMatrix44.prototype.setMatrix = function( tr/*float[]*/ )\r\n{\r\n if( this.tr == null || this.tr.length != this.tr.length ) return ;\r\n for( var i/*:int*/ = 0; i < 16; i++ ) this.tr[i] = tr[i];\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # getScaleX()\r\n//============================================================\r\nL2DMatrix44.prototype.getScaleX = function()\r\n{\r\n return this.tr[0];\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # getScaleY()\r\n//============================================================\r\nL2DMatrix44.prototype.getScaleY = function()\r\n{\r\n return this.tr[5];\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # transformX()\r\n//============================================================\r\nL2DMatrix44.prototype.transformX = function( src/*float*/ )\r\n{\r\n return this.tr[0] * src + this.tr[12];\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # transformY()\r\n//============================================================\r\nL2DMatrix44.prototype.transformY = function( src/*float*/ )\r\n{\r\n return this.tr[5] * src + this.tr[13];\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # invertTransformX()\r\n//============================================================\r\nL2DMatrix44.prototype.invertTransformX = function( src/*float*/ )\r\n{\r\n return ( src - this.tr[12] ) / this.tr[0];\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # invertTransformY()\r\n//============================================================\r\nL2DMatrix44.prototype.invertTransformY = function( src/*float*/ )\r\n{\r\n return ( src - this.tr[13] ) / this.tr[5];\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # multTranslate()\r\n//============================================================\r\nL2DMatrix44.prototype.multTranslate = function( shiftX/*float*/, shiftY/*float*/ )\r\n{\r\n var tr1 = [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, shiftX, shiftY, 0, 1 ];\r\n L2DMatrix44.mul(tr1, this.tr, this.tr);\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # translate()\r\n//============================================================\r\nL2DMatrix44.prototype.translate = function( x/*float*/, y/*float*/ )\r\n{\r\n this.tr[12] = x;\r\n this.tr[13] = y;\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # translateX()\r\n//============================================================\r\nL2DMatrix44.prototype.translateX = function( x/*float*/ )\r\n{\r\n this.tr[12] = x;\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # translateY()\r\n//============================================================\r\nL2DMatrix44.prototype.translateY = function( y/*float*/ )\r\n{\r\n this.tr[13] = y;\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # multScale()\r\n//============================================================\r\nL2DMatrix44.prototype.multScale = function( scaleX/*float*/, scaleY/*float*/ )\r\n{\r\n var tr1 = [scaleX, 0, 0, 0, 0, scaleY, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\r\n L2DMatrix44.mul(tr1, this.tr, this.tr);\r\n}\r\n\r\n//============================================================\r\n// L2DMatrix44 # scale()\r\n//============================================================\r\nL2DMatrix44.prototype.scale = function( scaleX/*float*/, scaleY/*float*/ )\r\n{\r\n this.tr[0] = scaleX;\r\n this.tr[5] = scaleY;\r\n}\r\n/**\r\n *\r\n * You can modify and use this source freely\r\n * only for the development of application related Live2D.\r\n *\r\n * (c) Live2D Inc. All rights reserved.\r\n */\r\n\r\n//============================================================\r\n//============================================================\r\n// class L2DModelMatrix extends L2DMatrix44\r\n//============================================================\r\n//============================================================\r\nfunction L2DModelMatrix(w/*float*/, h/*float*/){\r\n L2DMatrix44.prototype.constructor.call(this);\r\n this.width = w;\r\n this.height = h;\r\n}\r\n\r\n//L2DModelMatrix extends L2DMatrix44\r\nL2DModelMatrix.prototype = new L2DMatrix44(); \r\n\r\n//============================================================\r\n// L2DModelMatrix # setPosition()\r\n//============================================================\r\nL2DModelMatrix.prototype.setPosition = function(x/*float*/, y/*float*/)\r\n{\r\n this.translate(x, y);\r\n}\r\n\r\n//============================================================\r\n// L2DModelMatrix # setCenterPosition()\r\n//============================================================\r\nL2DModelMatrix.prototype.setCenterPosition = function(x/*float*/, y/*float*/)\r\n{\r\n var w = this.width * this.getScaleX();\r\n var h = this.height * this.getScaleY();\r\n this.translate(x - w / 2, y - h / 2);\r\n}\r\n\r\n//============================================================\r\n// L2DModelMatrix # top()\r\n//============================================================\r\nL2DModelMatrix.prototype.top = function(y/*float*/)\r\n{\r\n this.setY(y);\r\n}\r\n\r\n//============================================================\r\n// L2DModelMatrix # bottom()\r\n//============================================================\r\nL2DModelMatrix.prototype.bottom = function(y/*float*/)\r\n{\r\n var h = this.height * this.getScaleY();\r\n this.translateY(y - h);\r\n}\r\n\r\n//============================================================\r\n// L2DModelMatrix # left()\r\n//============================================================\r\nL2DModelMatrix.prototype.left = function(x/*float*/)\r\n{\r\n this.setX(x);\r\n}\r\n\r\n//============================================================\r\n// L2DModelMatrix # right()\r\n//============================================================\r\nL2DModelMatrix.prototype.right = function(x/*float*/)\r\n{\r\n var w = this.width * this.getScaleX();\r\n this.translateX(x - w);\r\n}\r\n\r\n//============================================================\r\n// L2DModelMatrix # centerX()\r\n//============================================================\r\nL2DModelMatrix.prototype.centerX = function(x/*float*/)\r\n{\r\n var w = this.width * this.getScaleX();\r\n this.translateX(x - w / 2);\r\n}\r\n\r\n//============================================================\r\n// L2DModelMatrix # centerY()\r\n//============================================================\r\nL2DModelMatrix.prototype.centerY = function(y/*float*/)\r\n{\r\n var h = this.height * this.getScaleY();\r\n this.translateY(y - h / 2);\r\n}\r\n\r\n//============================================================\r\n// L2DModelMatrix # setX()\r\n//============================================================\r\nL2DModelMatrix.prototype.setX = function(x/*float*/)\r\n{\r\n this.translateX(x);\r\n}\r\n\r\n//============================================================\r\n// L2DModelMatrix # setY()\r\n//============================================================\r\nL2DModelMatrix.prototype.setY = function(y/*float*/)\r\n{\r\n this.translateY(y);\r\n}\r\n\r\n//============================================================\r\n// L2DModelMatrix # setHeight()\r\n//============================================================\r\nL2DModelMatrix.prototype.setHeight = function(h/*float*/)\r\n{\r\n var scaleX = h / this.height;\r\n var scaleY = -scaleX;\r\n this.scale(scaleX, scaleY);\r\n}\r\n\r\n//============================================================\r\n// L2DModelMatrix # setWidth()\r\n//============================================================\r\nL2DModelMatrix.prototype.setWidth = function(w/*float*/)\r\n{\r\n var scaleX = w / this.width;\r\n var scaleY = -scaleX;\r\n this.scale(scaleX, scaleY);\r\n}\r\n\r\n/**\r\n *\r\n * You can modify and use this source freely\r\n * only for the development of application related Live2D.\r\n *\r\n * (c) Live2D Inc. All rights reserved.\r\n */\r\n\r\n//============================================================\r\n//============================================================\r\n// class L2DMotionManager extends MotionQueueManager\r\n//============================================================\r\n//============================================================\r\nfunction L2DMotionManager()\r\n{\r\n MotionQueueManager.prototype.constructor.call(this);\r\n this.currentPriority = null;\r\n this.reservePriority = null;\r\n \r\n this.super = MotionQueueManager.prototype;\r\n}\r\n\r\n\r\nL2DMotionManager.prototype = new MotionQueueManager();\r\n\r\n//============================================================\r\n// L2DMotionManager # getCurrentPriority()\r\n//============================================================\r\nL2DMotionManager.prototype.getCurrentPriority = function()\r\n{\r\n return this.currentPriority;\r\n}\r\n\r\n//============================================================\r\n// L2DMotionManager # getReservePriority()\r\n//============================================================\r\nL2DMotionManager.prototype.getReservePriority = function()\r\n{\r\n return this.reservePriority;\r\n}\r\n\r\n//============================================================\r\n// L2DMotionManager # reserveMotion()\r\n//============================================================\r\nL2DMotionManager.prototype.reserveMotion = function(priority/*int*/)\r\n{\r\n if(this.reservePriority >= priority) {\r\n return false;\r\n }\r\n if(this.currentPriority >= priority) {\r\n return false;\r\n }\r\n \r\n this.reservePriority = priority;\r\n \r\n return true;\r\n}\r\n\r\n//============================================================\r\n// L2DMotionManager # setReservePriority()\r\n//============================================================\r\nL2DMotionManager.prototype.setReservePriority = function(val/*int*/)\r\n{\r\n this.reservePriority = val;\r\n}\r\n\r\n//============================================================\r\n// L2DMotionManager # updateParam()\r\n//============================================================\r\nL2DMotionManager.prototype.updateParam = function(model/*ALive2DModel*/)\r\n{\r\n var updated = MotionQueueManager.prototype.updateParam.call(this, model);\r\n \r\n if(this.isFinished()) {\r\n this.currentPriority = 0;\r\n }\r\n \r\n return updated;\r\n}\r\n\r\n//============================================================\r\n// L2DMotionManager # startMotionPrio()\r\n//============================================================\r\nL2DMotionManager.prototype.startMotionPrio = function(motion/*AMotion*/, priority/*int*/)\r\n{\r\n if(priority == this.reservePriority) {\r\n this.reservePriority = 0;\r\n }\r\n this.currentPriority = priority;\r\n return this.startMotion(motion, false);\r\n}\r\n\r\n/**\r\n *\r\n * You can modify and use this source freely\r\n * only for the development of application related Live2D.\r\n *\r\n * (c) Live2D Inc. All rights reserved.\r\n */\r\n\r\n//============================================================\r\n//============================================================\r\n// class L2DPhysics \r\n//============================================================\r\n//============================================================\r\nfunction L2DPhysics()\r\n{ \r\n this.physicsList = new Array(); //ArrayList\r\n this.startTimeMSec = UtSystem.getUserTimeMSec();\r\n}\r\n\r\n//============================================================\r\n// static L2DPhysics.load()\r\n//============================================================\r\nL2DPhysics.load = function(buf /*byte[]*/ )\r\n{\r\n var ret = new L2DPhysics(); //L2DPhysicsL2DPhysics\r\n var pm = Live2DFramework.getPlatformManager();\r\n var json = pm.jsonParseFromBytes(buf);\r\n var params = json.physics_hair;\r\n var paramNum = params.length;\r\n for(var i = 0; i < paramNum; i++) {\r\n var param = params[i]; //Value\r\n var physics = new PhysicsHair(); //PhysicsHairPhysicsHair\r\n var setup = param.setup; //Value\r\n var length = parseFloat(setup.length);\r\n var resist = parseFloat(setup.regist);\r\n var mass = parseFloat(setup.mass);\r\n physics.setup(length, resist, mass);\r\n var srcList = param.src; //Value\r\n var srcNum = srcList.length;\r\n for(var j = 0; j < srcNum; j++) {\r\n var src = srcList[j]; //Value\r\n var id = src.id; //String\r\n var type = PhysicsHair.Src.SRC_TO_X;\r\n var typeStr = src.ptype; //String\r\n if(typeStr === \"x\") {\r\n type = PhysicsHair.Src.SRC_TO_X;\r\n }\r\n else if(typeStr === \"y\") {\r\n type = PhysicsHair.Src.SRC_TO_Y;\r\n }\r\n else if(typeStr === \"angle\") {\r\n type = PhysicsHair.Src.SRC_TO_G_ANGLE;\r\n }\r\n else {\r\n UtDebug.error(\"live2d\", \"Invalid parameter:PhysicsHair.Src\");\r\n }\r\n var scale = parseFloat(src.scale);\r\n var weight = parseFloat(src.weight);\r\n physics.addSrcParam(type, id, scale, weight);\r\n }\r\n var targetList = param.targets; //Value\r\n var targetNum = targetList.length;\r\n for(var j = 0; j < targetNum; j++) {\r\n var target = targetList[j]; //Value\r\n var id = target.id; //String\r\n var type = PhysicsHair.Target.TARGET_FROM_ANGLE;\r\n var typeStr = target.ptype; //String\r\n if(typeStr === \"angle\") {\r\n type = PhysicsHair.Target.TARGET_FROM_ANGLE;\r\n }\r\n else if(typeStr === \"angle_v\") {\r\n type = PhysicsHair.Target.TARGET_FROM_ANGLE_V;\r\n }\r\n else {\r\n UtDebug.error(\"live2d\", \"Invalid parameter:PhysicsHair.Target\");\r\n }\r\n var scale = parseFloat(target.scale);\r\n var weight = parseFloat(target.weight);\r\n physics.addTargetParam(type, id, scale, weight);\r\n }\r\n ret.physicsList.push(physics);\r\n }\r\n return ret;\r\n}\r\n\r\n//============================================================\r\n// L2DPhysics # updateParam()\r\n//============================================================\r\nL2DPhysics.prototype.updateParam = function(model/*ALive2DModel*/)\r\n{\r\n var timeMSec = UtSystem.getUserTimeMSec() - this.startTimeMSec;\r\n for(var i = 0; i < this.physicsList.length; i++) {\r\n this.physicsList[i].update(model, timeMSec);\r\n }\r\n}\r\n\r\n/**\r\n *\r\n * You can modify and use this source freely\r\n * only for the development of application related Live2D.\r\n *\r\n * (c) Live2D Inc. All rights reserved.\r\n */\r\n\r\n//============================================================\r\n//============================================================\r\n// class L2DPose \r\n//============================================================\r\n//============================================================\r\nfunction L2DPose()\r\n{\r\n this.lastTime = 0;\r\n this.lastModel = null; //ALive2DModel\r\n this.partsGroups = new Array(); //ArrayList\r\n}\r\n\r\n\r\n//============================================================\r\n// static L2DPose.load()\r\n//============================================================\r\nL2DPose.load = function(buf/*byte[]*/)\r\n{ \r\n var ret = new L2DPose(); //L2DPose\r\n var pm = Live2DFramework.getPlatformManager();\r\n var json = pm.jsonParseFromBytes(buf);\r\n var poseListInfo = json.parts_visible; //Value\r\n var poseNum = poseListInfo.length;\r\n for(var i_pose = 0; i_pose < poseNum; i_pose++) {\r\n var poseInfo = poseListInfo[i_pose]; //Value\r\n var idListInfo = poseInfo.group; //Value\r\n var idNum = idListInfo.length;\r\n var partsGroup/*L2DPartsParam*/ = new Array();\r\n for(var i_group = 0; i_group < idNum; i_group++) {\r\n var partsInfo = idListInfo[i_group]; //Value\r\n var parts = new L2DPartsParam(partsInfo.id); //L2DPartsParamL2DPartsParam\r\n partsGroup[i_group] = parts;\r\n if(partsInfo.link == null) continue;\r\n var linkListInfo = partsInfo.link; //Value\r\n var linkNum = linkListInfo.length;\r\n parts.link = new Array(); //ArrayList\r\n for(var i_link = 0; i_link < linkNum; i_link++) {\r\n var linkParts = new L2DPartsParam(linkListInfo[i_link]); //L2DPartsParamL2DPartsParam\r\n parts.link.push(linkParts);\r\n }\r\n }\r\n ret.partsGroups.push(partsGroup);\r\n }\r\n \r\n return ret;\r\n}\r\n\r\n//============================================================\r\n// L2DPose # updateParam()\r\n//============================================================\r\nL2DPose.prototype.updateParam = function(model/*ALive2DModel*/)\r\n{\r\n if(model == null) return ;\r\n \r\n if(!(model == this.lastModel)) {\r\n this.initParam(model);\r\n }\r\n this.lastModel = model;\r\n \r\n var curTime = UtSystem.getUserTimeMSec();\r\n var deltaTimeSec = ((this.lastTime == 0) ? 0 : (curTime - this.lastTime) / 1000.0);\r\n this.lastTime = curTime;\r\n if(deltaTimeSec < 0) deltaTimeSec = 0;\r\n for(var i = 0; i < this.partsGroups.length; i++) {\r\n this.normalizePartsOpacityGroup(model, this.partsGroups[i], deltaTimeSec);\r\n this.copyOpacityOtherParts(model, this.partsGroups[i]);\r\n }\r\n}\r\n\r\n//============================================================\r\n// L2DPose # initParam()\r\n//============================================================\r\nL2DPose.prototype.initParam = function(model/*ALive2DModel*/)\r\n{\r\n if(model == null) return ;\r\n for(var i = 0; i < this.partsGroups.length; i++) {\r\n var partsGroup = this.partsGroups[i]; //L2DPartsParam\r\n for(var j = 0; j < partsGroup.length; j++) {\r\n partsGroup[j].initIndex(model);\r\n var partsIndex = partsGroup[j].partsIndex;\r\n var paramIndex = partsGroup[j].paramIndex;\r\n if(partsIndex < 0) continue;\r\n var v/*:Boolean*/ = (model.getParamFloat(paramIndex) != 0);\r\n model.setPartsOpacity(partsIndex, (v ? 1.0 : 0.0));\r\n model.setParamFloat(paramIndex, (v ? 1.0 : 0.0));\r\n if(partsGroup[j].link == null) continue;\r\n for(var k = 0; k < partsGroup[j].link.length; k++) {\r\n partsGroup[j].link[k].initIndex(model);\r\n }\r\n }\r\n }\r\n}\r\n\r\n//============================================================\r\n// L2DPose # normalizePartsOpacityGroup()\r\n//============================================================\r\nL2DPose.prototype.normalizePartsOpacityGroup = function(model/*ALive2DModel*/, partsGroup/*L2DPartsParam[]*/, deltaTimeSec/*float*/)\r\n{\r\n var visibleParts = -1;\r\n var visibleOpacity = 1.0;\r\n var CLEAR_TIME_SEC = 0.5;\r\n var phi = 0.5;\r\n var maxBackOpacity = 0.15;\r\n for(var i = 0; i < partsGroup.length; i++) {\r\n var partsIndex = partsGroup[i].partsIndex;\r\n var paramIndex = partsGroup[i].paramIndex;\r\n if(partsIndex < 0) continue;if(model.getParamFloat(paramIndex) != 0) {\r\n if(visibleParts >= 0) {\r\n break;\r\n }\r\n visibleParts = i;\r\n visibleOpacity = model.getPartsOpacity(partsIndex);\r\n visibleOpacity += deltaTimeSec / CLEAR_TIME_SEC;\r\n if(visibleOpacity > 1) {\r\n visibleOpacity = 1;\r\n }\r\n }\r\n }\r\n if(visibleParts < 0) {\r\n visibleParts = 0;\r\n visibleOpacity = 1;\r\n }\r\n for(var i = 0; i < partsGroup.length; i++) {\r\n var partsIndex = partsGroup[i].partsIndex;\r\n if(partsIndex < 0) continue;if(visibleParts == i) {\r\n model.setPartsOpacity(partsIndex, visibleOpacity);\r\n }\r\n else {\r\n var opacity = model.getPartsOpacity(partsIndex);\r\n var a1;\r\n if(visibleOpacity < phi) {\r\n a1 = visibleOpacity * (phi - 1) / phi + 1;\r\n }\r\n else {\r\n a1 = (1 - visibleOpacity) * phi / (1 - phi);\r\n }\r\n var backOp = (1 - a1) * (1 - visibleOpacity);\r\n if(backOp > maxBackOpacity) {\r\n a1 = 1 - maxBackOpacity / (1 - visibleOpacity);\r\n }\r\n if(opacity > a1) {\r\n opacity = a1;\r\n }\r\n model.setPartsOpacity(partsIndex, opacity);\r\n }\r\n }\r\n}\r\n\r\n//============================================================\r\n// L2DPose # copyOpacityOtherParts()\r\n//============================================================\r\nL2DPose.prototype.copyOpacityOtherParts = function(model/*ALive2DModel*/, partsGroup/*L2DPartsParam[]*/)\r\n{\r\n for(var i_group = 0; i_group < partsGroup.length; i_group++) {\r\n var partsParam = partsGroup[i_group]; //L2DPartsParam\r\n if(partsParam.link == null) continue;\r\n if(partsParam.partsIndex < 0) continue;\r\n var opacity = model.getPartsOpacity(partsParam.partsIndex);\r\n for(var i_link = 0; i_link < partsParam.link.length; i_link++) {\r\n var linkParts = partsParam.link[i_link]; //L2DPartsParam\r\n if(linkParts.partsIndex < 0) continue;\r\n model.setPartsOpacity(linkParts.partsIndex, opacity);\r\n }\r\n }\r\n}\r\n\r\n//============================================================\r\n//============================================================\r\n// class L2DPartsParam \r\n//============================================================\r\n//============================================================\r\nfunction L2DPartsParam(id/*String*/){\r\n this.paramIndex = -1;\r\n this.partsIndex = -1; \r\n this.link = null; // ArrayList\r\n this.id = id;\r\n}\r\n\r\n//============================================================\r\n// L2DPartsParam # initIndex()\r\n//============================================================\r\nL2DPartsParam.prototype.initIndex = function(model/*ALive2DModel*/)\r\n{ \r\n this.paramIndex = model.getParamIndex(\"VISIBLE:\" + this.id);\r\n this.partsIndex = model.getPartsDataIndex(PartsDataID.getID(this.id));\r\n model.setParamFloat(this.paramIndex, 1);\r\n}\r\n/**\r\n *\r\n * You can modify and use this source freely\r\n * only for the development of application related Live2D.\r\n *\r\n * (c) Live2D Inc. All rights reserved.\r\n */\r\n\r\n//============================================================\r\n//============================================================\r\n// class L2DTargetPoint \r\n//============================================================\r\n//============================================================\r\nfunction L2DTargetPoint()\r\n{\r\n this.EPSILON = 0.01; // 変化の最小値(この値以下は無視される)\r\n this.faceTargetX = 0;\r\n this.faceTargetY = 0;\r\n this.faceX = 0;\r\n this.faceY = 0;\r\n this.faceVX = 0;\r\n this.faceVY = 0;\r\n this.lastTimeSec = 0;\r\n}\r\n\r\n//============================================================\r\nL2DTargetPoint.FRAME_RATE = 30;\r\n\r\n//============================================================\r\n// L2DTargetPoint # set()\r\n//============================================================\r\nL2DTargetPoint.prototype.setPoint = function(x/*float*/, y/*float*/)\r\n{\r\n this.faceTargetX = x;\r\n this.faceTargetY = y;\r\n}\r\n\r\n//============================================================\r\n// L2DTargetPoint # getX()\r\n//============================================================\r\nL2DTargetPoint.prototype.getX = function()\r\n{\r\n return this.faceX;\r\n}\r\n\r\n//============================================================\r\n// L2DTargetPoint # getY()\r\n//============================================================\r\nL2DTargetPoint.prototype.getY = function()\r\n{\r\n return this.faceY;\r\n}\r\n\r\n//============================================================\r\n// L2DTargetPoint # update()\r\n//============================================================\r\nL2DTargetPoint.prototype.update = function()\r\n{\r\n var TIME_TO_MAX_SPEED = 0.15;\r\n var FACE_PARAM_MAX_V = 40.0 / 7.5;\r\n var MAX_V = FACE_PARAM_MAX_V / L2DTargetPoint.FRAME_RATE;\r\n if(this.lastTimeSec == 0) {\r\n this.lastTimeSec = UtSystem.getUserTimeMSec();\r\n return;\r\n }\r\n var curTimeSec = UtSystem.getUserTimeMSec();\r\n var deltaTimeWeight = (curTimeSec - this.lastTimeSec) * L2DTargetPoint.FRAME_RATE / 1000.0;\r\n this.lastTimeSec = curTimeSec;\r\n var FRAME_TO_MAX_SPEED = TIME_TO_MAX_SPEED * L2DTargetPoint.FRAME_RATE;\r\n var MAX_A = deltaTimeWeight * MAX_V / FRAME_TO_MAX_SPEED;\r\n var dx = (this.faceTargetX - this.faceX);\r\n var dy = (this.faceTargetY - this.faceY);\r\n // if(dx == 0 && dy == 0) return;\r\n if( Math.abs(dx) <= this.EPSILON && Math.abs(dy) <= this.EPSILON ) return;\r\n var d = Math.sqrt(dx * dx + dy * dy);\r\n var vx = MAX_V * dx / d;\r\n var vy = MAX_V * dy / d;\r\n var ax = vx - this.faceVX;\r\n var ay = vy - this.faceVY;\r\n var a = Math.sqrt(ax * ax + ay * ay);\r\n if(a < -MAX_A || a > MAX_A) {\r\n ax *= MAX_A / a;\r\n ay *= MAX_A / a;\r\n a = MAX_A;\r\n }\r\n this.faceVX += ax;\r\n this.faceVY += ay;\r\n {\r\n var max_v = 0.5 * ( Math.sqrt(MAX_A * MAX_A + 16 * MAX_A * d - 8 * MAX_A * d) - MAX_A);\r\n var cur_v = Math.sqrt(this.faceVX * this.faceVX + this.faceVY * this.faceVY);\r\n if(cur_v > max_v) {\r\n this.faceVX *= max_v / cur_v;\r\n this.faceVY *= max_v / cur_v;\r\n }\r\n }\r\n this.faceX += this.faceVX;\r\n this.faceY += this.faceVY;\r\n}\r\n/**\r\n *\r\n * You can modify and use this source freely\r\n * only for the development of application related Live2D.\r\n *\r\n * (c) Live2D Inc. All rights reserved.\r\n */\r\n\r\n//============================================================\r\n//============================================================\r\n// class L2DViewMatrix extends L2DMatrix44\r\n//============================================================\r\n//============================================================\r\nfunction L2DViewMatrix()\r\n{\r\n L2DMatrix44.prototype.constructor.call(this);\r\n this.screenLeft = null;\r\n this.screenRight = null;\r\n this.screenTop = null;\r\n this.screenBottom = null;\r\n this.maxLeft = null;\r\n this.maxRight = null;\r\n this.maxTop = null;\r\n this.maxBottom = null;\r\n this.max = Number.MAX_VALUE;\r\n this.min = 0;\r\n}\r\n\r\nL2DViewMatrix.prototype = new L2DMatrix44(); //L2DViewMatrix extends L2DMatrix44\r\n\r\n//============================================================\r\n// L2DViewMatrix # getMaxScale()\r\n//============================================================\r\nL2DViewMatrix.prototype.getMaxScale = function()\r\n{\r\n return this.max;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # getMinScale()\r\n//============================================================\r\nL2DViewMatrix.prototype.getMinScale = function()\r\n{\r\n return this.min;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # setMaxScale()\r\n//============================================================\r\nL2DViewMatrix.prototype.setMaxScale = function(v/*float*/)\r\n{\r\n this.max = v;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # setMinScale()\r\n//============================================================\r\nL2DViewMatrix.prototype.setMinScale = function(v/*float*/)\r\n{\r\n this.min = v;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # isMaxScale()\r\n//============================================================\r\nL2DViewMatrix.prototype.isMaxScale = function()\r\n{\r\n return this.getScaleX() == this.max;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # isMinScale()\r\n//============================================================\r\nL2DViewMatrix.prototype.isMinScale = function()\r\n{\r\n return this.getScaleX() == this.min;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # adjustTranslate()\r\n//============================================================\r\nL2DViewMatrix.prototype.adjustTranslate = function(shiftX/*float*/, shiftY/*float*/)\r\n{\r\n if(this.tr[0] * this.maxLeft + (this.tr[12] + shiftX) > this.screenLeft) \r\n shiftX = this.screenLeft - this.tr[0] * this.maxLeft - this.tr[12];\r\n if(this.tr[0] * this.maxRight + (this.tr[12] + shiftX) < this.screenRight) \r\n shiftX = this.screenRight - this.tr[0] * this.maxRight - this.tr[12];\r\n if(this.tr[5] * this.maxTop + (this.tr[13] + shiftY) < this.screenTop) \r\n shiftY = this.screenTop - this.tr[5] * this.maxTop - this.tr[13];\r\n if(this.tr[5] * this.maxBottom + (this.tr[13] + shiftY) > this.screenBottom) \r\n shiftY = this.screenBottom - this.tr[5] * this.maxBottom - this.tr[13];\r\n \r\n var tr1 = [1, 0, 0, 0, \r\n 0, 1, 0, 0,\r\n 0, 0, 1, 0, \r\n shiftX, shiftY, 0, 1 ];\r\n L2DMatrix44.mul(tr1, this.tr, this.tr);\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # adjustScale()\r\n//============================================================\r\nL2DViewMatrix.prototype.adjustScale = function(cx/*float*/, cy/*float*/, scale/*float*/)\r\n{\r\n var targetScale = scale * this.tr[0];\r\n if(targetScale < this.min) {\r\n if(this.tr[0] > 0) scale = this.min / this.tr[0];\r\n }\r\n else if(targetScale > this.max) {\r\n if(this.tr[0] > 0) scale = this.max / this.tr[0];\r\n }\r\n var tr1 = [1, 0, 0, 0, \r\n 0, 1, 0, 0, \r\n 0, 0, 1, 0, \r\n cx, cy, 0, 1];\r\n var tr2 = [scale, 0, 0, 0,\r\n 0, scale, 0, 0,\r\n 0, 0, 1, 0, \r\n 0, 0, 0, 1 ];\r\n var tr3 = [1, 0, 0, 0, \r\n 0, 1, 0, 0, \r\n 0, 0, 1, 0, \r\n -cx, -cy, 0, 1 ];\r\n L2DMatrix44.mul(tr3, this.tr, this.tr);\r\n L2DMatrix44.mul(tr2, this.tr, this.tr);\r\n L2DMatrix44.mul(tr1, this.tr, this.tr);\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # setScreenRect()\r\n//============================================================\r\nL2DViewMatrix.prototype.setScreenRect = function(left/*float*/, right/*float*/, bottom/*float*/, top/*float*/)\r\n{\r\n this.screenLeft = left;\r\n this.screenRight = right;\r\n this.screenTop = top;\r\n this.screenBottom = bottom;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # setMaxScreenRect()\r\n//============================================================\r\nL2DViewMatrix.prototype.setMaxScreenRect = function(left/*float*/, right/*float*/, bottom/*float*/, top/*float*/)\r\n{\r\n this.maxLeft = left;\r\n this.maxRight = right;\r\n this.maxTop = top;\r\n this.maxBottom = bottom;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # getScreenLeft()\r\n//============================================================\r\nL2DViewMatrix.prototype.getScreenLeft = function()\r\n{\r\n return this.screenLeft;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # getScreenRight()\r\n//============================================================\r\nL2DViewMatrix.prototype.getScreenRight = function()\r\n{\r\n return this.screenRight;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # getScreenBottom()\r\n//============================================================\r\nL2DViewMatrix.prototype.getScreenBottom = function()\r\n{\r\n return this.screenBottom;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # getScreenTop()\r\n//============================================================\r\nL2DViewMatrix.prototype.getScreenTop = function()\r\n{\r\n return this.screenTop;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # getMaxLeft()\r\n//============================================================\r\nL2DViewMatrix.prototype.getMaxLeft = function()\r\n{\r\n return this.maxLeft;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # getMaxRight()\r\n//============================================================\r\nL2DViewMatrix.prototype.getMaxRight = function()\r\n{\r\n return this.maxRight;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # getMaxBottom()\r\n//============================================================\r\nL2DViewMatrix.prototype.getMaxBottom = function()\r\n{\r\n return this.maxBottom;\r\n}\r\n\r\n//============================================================\r\n// L2DViewMatrix # getMaxTop()\r\n//============================================================\r\nL2DViewMatrix.prototype.getMaxTop = function()\r\n{\r\n return this.maxTop;\r\n}\r\n\r\n/**\r\n *\r\n * You can modify and use this source freely\r\n * only for the development of application related Live2D.\r\n *\r\n * (c) Live2D Inc. All rights reserved.\r\n */\r\n\r\n//============================================================\r\n//============================================================\r\n// class Live2DFramework \r\n//============================================================\r\n//============================================================\r\nfunction Live2DFramework()\r\n{\r\n}\r\n\r\n//============================================================\r\nLive2DFramework.platformManager = null;\r\n\r\n//============================================================\r\n// static Live2DFramework.getPlatformManager()\r\n//============================================================\r\nLive2DFramework.getPlatformManager = function()\r\n{\r\n return Live2DFramework.platformManager;\r\n}\r\n\r\n//============================================================\r\n// static Live2DFramework.setPlatformManager()\r\n//============================================================\r\nLive2DFramework.setPlatformManager = function( platformManager /*IPlatformManager*/ )\r\n{\r\n Live2DFramework.platformManager = platformManager;\r\n}", @@ -5229,7 +5640,7 @@ "lineNumber": 1 }, { - "__docId__": 224, + "__docId__": 229, "kind": "function", "name": "L2DBaseModel", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5248,7 +5659,7 @@ "ignore": true }, { - "__docId__": 225, + "__docId__": 230, "kind": "variable", "name": "texCounter", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5269,7 +5680,7 @@ "ignore": true }, { - "__docId__": 226, + "__docId__": 231, "kind": "function", "name": "getModelMatrix", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5293,7 +5704,7 @@ "ignore": true }, { - "__docId__": 227, + "__docId__": 232, "kind": "function", "name": "setAlpha", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5320,7 +5731,7 @@ "ignore": true }, { - "__docId__": 228, + "__docId__": 233, "kind": "function", "name": "getAlpha", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5344,7 +5755,7 @@ "ignore": true }, { - "__docId__": 229, + "__docId__": 234, "kind": "function", "name": "isInitialized", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5368,7 +5779,7 @@ "ignore": true }, { - "__docId__": 230, + "__docId__": 235, "kind": "function", "name": "setInitialized", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5395,7 +5806,7 @@ "ignore": true }, { - "__docId__": 231, + "__docId__": 236, "kind": "function", "name": "isUpdating", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5419,7 +5830,7 @@ "ignore": true }, { - "__docId__": 232, + "__docId__": 237, "kind": "function", "name": "setUpdating", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5446,7 +5857,7 @@ "ignore": true }, { - "__docId__": 233, + "__docId__": 238, "kind": "function", "name": "getLive2DModel", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5470,7 +5881,7 @@ "ignore": true }, { - "__docId__": 234, + "__docId__": 239, "kind": "function", "name": "setLipSync", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5497,7 +5908,7 @@ "ignore": true }, { - "__docId__": 235, + "__docId__": 240, "kind": "function", "name": "setLipSyncValue", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5524,7 +5935,7 @@ "ignore": true }, { - "__docId__": 236, + "__docId__": 241, "kind": "function", "name": "setAccel", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5563,7 +5974,7 @@ "ignore": true }, { - "__docId__": 237, + "__docId__": 242, "kind": "function", "name": "setDrag", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5596,7 +6007,7 @@ "ignore": true }, { - "__docId__": 238, + "__docId__": 243, "kind": "function", "name": "getMainMotionManager", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5620,7 +6031,7 @@ "ignore": true }, { - "__docId__": 239, + "__docId__": 244, "kind": "function", "name": "getExpressionManager", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5644,7 +6055,7 @@ "ignore": true }, { - "__docId__": 240, + "__docId__": 245, "kind": "function", "name": "loadModelData", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5677,7 +6088,7 @@ "ignore": true }, { - "__docId__": 241, + "__docId__": 246, "kind": "function", "name": "loadTexture", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5716,7 +6127,7 @@ "ignore": true }, { - "__docId__": 242, + "__docId__": 247, "kind": "function", "name": "loadMotion", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5755,7 +6166,7 @@ "ignore": true }, { - "__docId__": 243, + "__docId__": 248, "kind": "function", "name": "loadExpression", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5794,7 +6205,7 @@ "ignore": true }, { - "__docId__": 244, + "__docId__": 249, "kind": "function", "name": "loadPose", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5827,7 +6238,7 @@ "ignore": true }, { - "__docId__": 245, + "__docId__": 250, "kind": "function", "name": "loadPhysics", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5854,7 +6265,7 @@ "ignore": true }, { - "__docId__": 246, + "__docId__": 251, "kind": "function", "name": "hitTestSimple", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5897,7 +6308,7 @@ "ignore": true }, { - "__docId__": 247, + "__docId__": 252, "kind": "function", "name": "L2DExpressionMotion", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5916,7 +6327,7 @@ "ignore": true }, { - "__docId__": 248, + "__docId__": 253, "kind": "function", "name": "loadJson", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5947,7 +6358,7 @@ "ignore": true }, { - "__docId__": 249, + "__docId__": 254, "kind": "function", "name": "updateParamExe", "memberof": "src/lib/_Live2DFramework.official.js", @@ -5992,7 +6403,7 @@ "ignore": true }, { - "__docId__": 250, + "__docId__": 255, "kind": "function", "name": "L2DExpressionParam", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6012,7 +6423,7 @@ "ignore": true }, { - "__docId__": 251, + "__docId__": 256, "kind": "function", "name": "L2DEyeBlink", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6031,7 +6442,7 @@ "ignore": true }, { - "__docId__": 252, + "__docId__": 257, "kind": "function", "name": "calcNextBlink", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6055,7 +6466,7 @@ "ignore": true }, { - "__docId__": 253, + "__docId__": 258, "kind": "function", "name": "setInterval", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6082,7 +6493,7 @@ "ignore": true }, { - "__docId__": 254, + "__docId__": 259, "kind": "function", "name": "setEyeMotion", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6121,7 +6532,7 @@ "ignore": true }, { - "__docId__": 255, + "__docId__": 260, "kind": "function", "name": "updateParam", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6148,7 +6559,7 @@ "ignore": true }, { - "__docId__": 256, + "__docId__": 261, "kind": "function", "name": "EYE_STATE", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6168,7 +6579,7 @@ "ignore": true }, { - "__docId__": 257, + "__docId__": 262, "kind": "function", "name": "L2DMatrix44", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6187,7 +6598,7 @@ "ignore": true }, { - "__docId__": 258, + "__docId__": 263, "kind": "function", "name": "mul", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6226,7 +6637,7 @@ "ignore": true }, { - "__docId__": 259, + "__docId__": 264, "kind": "function", "name": "identity", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6246,7 +6657,7 @@ "ignore": true }, { - "__docId__": 260, + "__docId__": 265, "kind": "function", "name": "getArray", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6270,7 +6681,7 @@ "ignore": true }, { - "__docId__": 261, + "__docId__": 266, "kind": "function", "name": "getCopyMatrix", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6294,7 +6705,7 @@ "ignore": true }, { - "__docId__": 262, + "__docId__": 267, "kind": "function", "name": "setMatrix", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6321,7 +6732,7 @@ "ignore": true }, { - "__docId__": 263, + "__docId__": 268, "kind": "function", "name": "getScaleX", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6345,7 +6756,7 @@ "ignore": true }, { - "__docId__": 264, + "__docId__": 269, "kind": "function", "name": "getScaleY", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6369,7 +6780,7 @@ "ignore": true }, { - "__docId__": 265, + "__docId__": 270, "kind": "function", "name": "transformX", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6400,7 +6811,7 @@ "ignore": true }, { - "__docId__": 266, + "__docId__": 271, "kind": "function", "name": "transformY", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6431,7 +6842,7 @@ "ignore": true }, { - "__docId__": 267, + "__docId__": 272, "kind": "function", "name": "invertTransformX", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6462,7 +6873,7 @@ "ignore": true }, { - "__docId__": 268, + "__docId__": 273, "kind": "function", "name": "invertTransformY", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6493,7 +6904,7 @@ "ignore": true }, { - "__docId__": 269, + "__docId__": 274, "kind": "function", "name": "multTranslate", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6526,7 +6937,7 @@ "ignore": true }, { - "__docId__": 270, + "__docId__": 275, "kind": "function", "name": "translate", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6559,7 +6970,7 @@ "ignore": true }, { - "__docId__": 271, + "__docId__": 276, "kind": "function", "name": "translateX", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6586,7 +6997,7 @@ "ignore": true }, { - "__docId__": 272, + "__docId__": 277, "kind": "function", "name": "translateY", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6613,7 +7024,7 @@ "ignore": true }, { - "__docId__": 273, + "__docId__": 278, "kind": "function", "name": "multScale", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6646,7 +7057,7 @@ "ignore": true }, { - "__docId__": 274, + "__docId__": 279, "kind": "function", "name": "scale", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6679,7 +7090,7 @@ "ignore": true }, { - "__docId__": 275, + "__docId__": 280, "kind": "function", "name": "L2DModelMatrix", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6711,7 +7122,7 @@ "ignore": true }, { - "__docId__": 276, + "__docId__": 281, "kind": "function", "name": "setPosition", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6744,7 +7155,7 @@ "ignore": true }, { - "__docId__": 277, + "__docId__": 282, "kind": "function", "name": "setCenterPosition", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6777,7 +7188,7 @@ "ignore": true }, { - "__docId__": 278, + "__docId__": 283, "kind": "function", "name": "top", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6804,7 +7215,7 @@ "ignore": true }, { - "__docId__": 279, + "__docId__": 284, "kind": "function", "name": "bottom", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6831,7 +7242,7 @@ "ignore": true }, { - "__docId__": 280, + "__docId__": 285, "kind": "function", "name": "left", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6858,7 +7269,7 @@ "ignore": true }, { - "__docId__": 281, + "__docId__": 286, "kind": "function", "name": "right", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6885,7 +7296,7 @@ "ignore": true }, { - "__docId__": 282, + "__docId__": 287, "kind": "function", "name": "centerX", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6912,7 +7323,7 @@ "ignore": true }, { - "__docId__": 283, + "__docId__": 288, "kind": "function", "name": "centerY", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6939,7 +7350,7 @@ "ignore": true }, { - "__docId__": 284, + "__docId__": 289, "kind": "function", "name": "setX", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6966,7 +7377,7 @@ "ignore": true }, { - "__docId__": 285, + "__docId__": 290, "kind": "function", "name": "setY", "memberof": "src/lib/_Live2DFramework.official.js", @@ -6993,7 +7404,7 @@ "ignore": true }, { - "__docId__": 286, + "__docId__": 291, "kind": "function", "name": "setHeight", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7020,7 +7431,7 @@ "ignore": true }, { - "__docId__": 287, + "__docId__": 292, "kind": "function", "name": "setWidth", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7047,7 +7458,7 @@ "ignore": true }, { - "__docId__": 288, + "__docId__": 293, "kind": "function", "name": "L2DMotionManager", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7066,7 +7477,7 @@ "ignore": true }, { - "__docId__": 289, + "__docId__": 294, "kind": "function", "name": "getCurrentPriority", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7090,7 +7501,7 @@ "ignore": true }, { - "__docId__": 290, + "__docId__": 295, "kind": "function", "name": "getReservePriority", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7114,7 +7525,7 @@ "ignore": true }, { - "__docId__": 291, + "__docId__": 296, "kind": "function", "name": "reserveMotion", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7145,7 +7556,7 @@ "ignore": true }, { - "__docId__": 292, + "__docId__": 297, "kind": "function", "name": "setReservePriority", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7172,7 +7583,7 @@ "ignore": true }, { - "__docId__": 293, + "__docId__": 298, "kind": "function", "name": "updateParam", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7203,7 +7614,7 @@ "ignore": true }, { - "__docId__": 294, + "__docId__": 299, "kind": "function", "name": "startMotionPrio", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7240,7 +7651,7 @@ "ignore": true }, { - "__docId__": 295, + "__docId__": 300, "kind": "function", "name": "L2DPhysics", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7259,7 +7670,7 @@ "ignore": true }, { - "__docId__": 296, + "__docId__": 301, "kind": "function", "name": "load", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7290,7 +7701,7 @@ "ignore": true }, { - "__docId__": 297, + "__docId__": 302, "kind": "function", "name": "updateParam", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7317,7 +7728,7 @@ "ignore": true }, { - "__docId__": 298, + "__docId__": 303, "kind": "function", "name": "L2DPose", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7336,7 +7747,7 @@ "ignore": true }, { - "__docId__": 299, + "__docId__": 304, "kind": "function", "name": "load", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7367,7 +7778,7 @@ "ignore": true }, { - "__docId__": 300, + "__docId__": 305, "kind": "function", "name": "updateParam", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7394,7 +7805,7 @@ "ignore": true }, { - "__docId__": 301, + "__docId__": 306, "kind": "function", "name": "initParam", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7421,7 +7832,7 @@ "ignore": true }, { - "__docId__": 302, + "__docId__": 307, "kind": "function", "name": "normalizePartsOpacityGroup", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7460,7 +7871,7 @@ "ignore": true }, { - "__docId__": 303, + "__docId__": 308, "kind": "function", "name": "copyOpacityOtherParts", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7493,7 +7904,7 @@ "ignore": true }, { - "__docId__": 304, + "__docId__": 309, "kind": "function", "name": "L2DPartsParam", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7520,7 +7931,7 @@ "ignore": true }, { - "__docId__": 305, + "__docId__": 310, "kind": "function", "name": "initIndex", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7547,7 +7958,7 @@ "ignore": true }, { - "__docId__": 306, + "__docId__": 311, "kind": "function", "name": "L2DTargetPoint", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7566,7 +7977,7 @@ "ignore": true }, { - "__docId__": 307, + "__docId__": 312, "kind": "function", "name": "setPoint", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7599,7 +8010,7 @@ "ignore": true }, { - "__docId__": 308, + "__docId__": 313, "kind": "function", "name": "getX", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7623,7 +8034,7 @@ "ignore": true }, { - "__docId__": 309, + "__docId__": 314, "kind": "function", "name": "getY", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7647,7 +8058,7 @@ "ignore": true }, { - "__docId__": 310, + "__docId__": 315, "kind": "function", "name": "update", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7667,7 +8078,7 @@ "ignore": true }, { - "__docId__": 311, + "__docId__": 316, "kind": "function", "name": "L2DViewMatrix", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7686,7 +8097,7 @@ "ignore": true }, { - "__docId__": 312, + "__docId__": 317, "kind": "function", "name": "getMaxScale", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7710,7 +8121,7 @@ "ignore": true }, { - "__docId__": 313, + "__docId__": 318, "kind": "function", "name": "getMinScale", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7734,7 +8145,7 @@ "ignore": true }, { - "__docId__": 314, + "__docId__": 319, "kind": "function", "name": "setMaxScale", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7761,7 +8172,7 @@ "ignore": true }, { - "__docId__": 315, + "__docId__": 320, "kind": "function", "name": "setMinScale", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7788,7 +8199,7 @@ "ignore": true }, { - "__docId__": 316, + "__docId__": 321, "kind": "function", "name": "isMaxScale", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7812,7 +8223,7 @@ "ignore": true }, { - "__docId__": 317, + "__docId__": 322, "kind": "function", "name": "isMinScale", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7836,7 +8247,7 @@ "ignore": true }, { - "__docId__": 318, + "__docId__": 323, "kind": "function", "name": "adjustTranslate", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7869,7 +8280,7 @@ "ignore": true }, { - "__docId__": 319, + "__docId__": 324, "kind": "function", "name": "adjustScale", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7908,7 +8319,7 @@ "ignore": true }, { - "__docId__": 320, + "__docId__": 325, "kind": "function", "name": "setScreenRect", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7953,7 +8364,7 @@ "ignore": true }, { - "__docId__": 321, + "__docId__": 326, "kind": "function", "name": "setMaxScreenRect", "memberof": "src/lib/_Live2DFramework.official.js", @@ -7998,7 +8409,7 @@ "ignore": true }, { - "__docId__": 322, + "__docId__": 327, "kind": "function", "name": "getScreenLeft", "memberof": "src/lib/_Live2DFramework.official.js", @@ -8022,7 +8433,7 @@ "ignore": true }, { - "__docId__": 323, + "__docId__": 328, "kind": "function", "name": "getScreenRight", "memberof": "src/lib/_Live2DFramework.official.js", @@ -8046,7 +8457,7 @@ "ignore": true }, { - "__docId__": 324, + "__docId__": 329, "kind": "function", "name": "getScreenBottom", "memberof": "src/lib/_Live2DFramework.official.js", @@ -8070,7 +8481,7 @@ "ignore": true }, { - "__docId__": 325, + "__docId__": 330, "kind": "function", "name": "getScreenTop", "memberof": "src/lib/_Live2DFramework.official.js", @@ -8094,7 +8505,7 @@ "ignore": true }, { - "__docId__": 326, + "__docId__": 331, "kind": "function", "name": "getMaxLeft", "memberof": "src/lib/_Live2DFramework.official.js", @@ -8118,7 +8529,7 @@ "ignore": true }, { - "__docId__": 327, + "__docId__": 332, "kind": "function", "name": "getMaxRight", "memberof": "src/lib/_Live2DFramework.official.js", @@ -8142,7 +8553,7 @@ "ignore": true }, { - "__docId__": 328, + "__docId__": 333, "kind": "function", "name": "getMaxBottom", "memberof": "src/lib/_Live2DFramework.official.js", @@ -8166,7 +8577,7 @@ "ignore": true }, { - "__docId__": 329, + "__docId__": 334, "kind": "function", "name": "getMaxTop", "memberof": "src/lib/_Live2DFramework.official.js", @@ -8190,7 +8601,7 @@ "ignore": true }, { - "__docId__": 330, + "__docId__": 335, "kind": "function", "name": "Live2DFramework", "memberof": "src/lib/_Live2DFramework.official.js", @@ -8209,7 +8620,7 @@ "ignore": true }, { - "__docId__": 331, + "__docId__": 336, "kind": "function", "name": "getPlatformManager", "memberof": "src/lib/_Live2DFramework.official.js", @@ -8233,7 +8644,7 @@ "ignore": true }, { - "__docId__": 332, + "__docId__": 337, "kind": "function", "name": "setPlatformManager", "memberof": "src/lib/_Live2DFramework.official.js", @@ -8260,7 +8671,7 @@ "ignore": true }, { - "__docId__": 333, + "__docId__": 338, "kind": "file", "name": "src/PlatformManager.js", "content": "\n/**\n *\n * You can modify and use this source freely\n * only for the development of application related Live2D.\n *\n * (c) Live2D Inc. All rights reserved.\n */\n\n// Modified by xiazeyu.\n\n/**\n* @desc A library that provide basic IO and json function\n*/\n\nimport { currWebGL } from './elementMgr';\nimport { Live2DModelWebGL } from \"./lib/live2d.core\";\n\n\n//============================================================\n//============================================================\n// class PlatformManager extend IPlatformManager\n//============================================================\n//============================================================\n\n/**\n* @name PlatformManager\n* @desc Define the variable type of PlatformManager\n* @param null\n* @returns {Structure} PlatformManager\n*/\nexport function PlatformManager()\n{\n\n}\n\n\n//============================================================\n// PlatformManager # loadBytes()\n//============================================================\n\n/**\n* @name loadBytes\n* @desc load bytes from the path and callback\n* @param {String} path, {Function} callback\n* @returns callback {raw} context\n* @memberOf PlatformManager\n*/\n\nPlatformManager.prototype.loadBytes = function(path/*String*/, callback)\n{\n var request = new XMLHttpRequest();\n request.open(\"GET\", path, true);\n request.responseType = \"arraybuffer\";\n request.onload = function(){\n switch(request.status){\n case 200:\n callback(request.response);\n break;\n default:\n console.error(\"Failed to load (\" + request.status + \") : \" + path);\n break;\n }\n }\n request.send(null);\n // return request;\n}\n\n\n//============================================================\n// PlatformManager # loadString()\n//============================================================\n\n/**\n* @name loadString\n* @desc load bytes from the path and put it into buffer\n* @param {String} path\n* @returns buffer {raw} context\n* @memberOf PlatformManager\n*/\nPlatformManager.prototype.loadString = function(path/*String*/)\n{\n\n this.loadBytes(path, function(buf) {\n return buf;\n });\n\n}\n\n\n//============================================================\n// PlatformManager # loadLive2DModel()\n//============================================================\n\n/**\n* @name loadLive2DModel\n* @desc load Live2DModel from the path and put it into buffer\n* @param {String} path, {function} callback\n* @returns callback loaded model\n* @memberOf PlatformManager\n*/\nPlatformManager.prototype.loadLive2DModel = function(path/*String*/, callback)\n{\n var model = null;\n\n // load moc\n this.loadBytes(path, function(buf){\n model = Live2DModelWebGL.loadModel(buf);\n callback(model);\n });\n\n}\n\n\n//============================================================\n// PlatformManager # loadTexture()\n//============================================================\n\n/**\n* @name loadTexture\n* @desc load Live2DModel's Texture and callback\n* @param {Live2DModelWebGL}model, {int}no, {string}path, {function}callback\n* @returns callback\n* @memberOf PlatformManager\n*/\nPlatformManager.prototype.loadTexture = function(model/*ALive2DModel*/, no/*int*/, path/*String*/, callback)\n{\n // load textures\n var loadedImage = new Image();\n // Thanks to @mashirozx & @fghrsh\n // Issues:\n // @https://github.com/journey-ad/live2d_src/issues/1\n // @https://github.com/journey-ad/live2d_src/issues/3\n loadedImage.crossOrigin = 'Anonymous';\n loadedImage.src = path;\n loadedImage.onload = onload;\n loadedImage.onerror = onerror;\n\n // var thisRef = this;\n loadedImage.onload = function() {\n // create texture\n var gl = currWebGL;\n var texture = gl.createTexture();\n if (!texture){ console.error(\"Failed to generate gl texture name.\"); return -1; }\n\n if(!model.isPremultipliedAlpha()){\n // 乗算済アルファテクスチャ以外の場合\n // emmmm, maybe do something for textures with alpha layer.\n gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 1);\n }\n gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, 1);\n gl.activeTexture(gl.TEXTURE0);\n gl.bindTexture(gl.TEXTURE_2D, texture);\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA,\n gl.UNSIGNED_BYTE, loadedImage);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_NEAREST);\n gl.generateMipmap(gl.TEXTURE_2D);\n\n\n\n model.setTexture(no, texture);\n\n // テクスチャオブジェクトを解放\n // Release the texture object to prevent buffer overruns.\n texture = null;\n\n if (typeof callback == \"function\") callback();\n };\n\n loadedImage.onerror = function() {\n console.error(\"Failed to load image : \" + path);\n }\n}\n\n\n//============================================================\n// PlatformManager # parseFromBytes(buf)\n\n//============================================================\n\n/**\n* @name jsonParseFromBytes\n* @desc parse json file into arrays\n* @param {raw} buf\n* @returns {Array}jsonObj\n* @memberOf PlatformManager\n*/\nPlatformManager.prototype.jsonParseFromBytes = function(buf){\n\n var jsonStr;\n var bomCode = new Uint8Array(buf, 0, 3);\n if (bomCode[0] == 239 && bomCode[1] == 187 && bomCode[2] == 191) {\n jsonStr = String.fromCharCode.apply(null, new Uint8Array(buf, 3));\n } else {\n jsonStr = String.fromCharCode.apply(null, new Uint8Array(buf));\n }\n\n var jsonObj = JSON.parse(jsonStr);\n\n return jsonObj;\n};\n\n\n\n//============================================================\n// PlatformManager # log()\n//============================================================\n\n/**\n* @name log\n* @desc output log in console\n* @param {string} txt\n* @returns null\n* @memberOf PlatformManager\n*/\nPlatformManager.prototype.log = function(txt/*String*/)\n{\n console.log(txt);\n}\n", @@ -8271,7 +8682,7 @@ "lineNumber": 1 }, { - "__docId__": 334, + "__docId__": 339, "kind": "function", "name": "PlatformManager", "memberof": "src/PlatformManager.js", @@ -8313,7 +8724,7 @@ } }, { - "__docId__": 335, + "__docId__": 340, "kind": "function", "name": "loadBytes", "memberof": "src/PlatformManager.js", @@ -8360,7 +8771,7 @@ "ignore": true }, { - "__docId__": 336, + "__docId__": 341, "kind": "function", "name": "loadString", "memberof": "src/PlatformManager.js", @@ -8407,7 +8818,7 @@ "ignore": true }, { - "__docId__": 337, + "__docId__": 342, "kind": "function", "name": "loadLive2DModel", "memberof": "src/PlatformManager.js", @@ -8454,7 +8865,7 @@ "ignore": true }, { - "__docId__": 338, + "__docId__": 343, "kind": "function", "name": "loadTexture", "memberof": "src/PlatformManager.js", @@ -8501,7 +8912,7 @@ "ignore": true }, { - "__docId__": 339, + "__docId__": 344, "kind": "function", "name": "jsonParseFromBytes", "memberof": "src/PlatformManager.js", @@ -8548,7 +8959,7 @@ "ignore": true }, { - "__docId__": 340, + "__docId__": 345, "kind": "function", "name": "log", "memberof": "src/PlatformManager.js", @@ -8595,7 +9006,7 @@ "ignore": true }, { - "__docId__": 341, + "__docId__": 346, "kind": "file", "name": "src/utils/MatrixStack.js", "content": "/**\n *\n * You can modify and use this source freely\n * only for the development of application related Live2D.\n *\n * (c) Live2D Inc. All rights reserved.\n */\n\n/**\n * EYHN 修改\n *\n * Copyright © 2016 - 2017 EYHN\n */\n\n// Modified by xiazeyu.\n\n/**\n* @desc A matrix stack releated to draw the model\n*/\n\nexport function MatrixStack() {}\n\nMatrixStack.matrixStack = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\nMatrixStack.depth = 0;\nMatrixStack.currentMatrix = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\nMatrixStack.tmp = new Array(16);\n\n/**\n* @name reset\n* @desc reset the stack\n* @param null\n* @returns null\n* @memberOf MatrixStack\n*/\nMatrixStack.reset = function(){\n this.depth = 0;\n}\n\n/**\n* @name loadIdentity\n* @desc reset values in the stack to whether it can be divisible by 5\n* @param null\n* @returns null\n* @memberOf MatrixStack\n*/\nMatrixStack.loadIdentity = function(){\n var thisRef = this;\n for (var i = 0; i < 16; i++){\n thisRef.currentMatrix[i] = (i % 5 == 0) ? 1 : 0;\n }\n}\n\n/**\n* @name push\n* @desc push a new element into the stack\n* @param null\n* @returns null\n* @memberOf MatrixStack\n*/\nMatrixStack.push = function(){\n var thisRef = this;\n // var offset = thisRef.depth * 16;\n var nextOffset = (thisRef.depth + 1) * 16;\n\n if (thisRef.matrixStack.length < nextOffset + 16){\n thisRef.matrixStack.length = nextOffset + 16;\n }\n\n for (var i = 0; i < 16; i++){\n thisRef.matrixStack[nextOffset + i] = thisRef.currentMatrix[i];\n }\n\n thisRef.depth++;\n}\n\n/**\n* @name pop\n* @desc pop an element from the stack\n* @param null\n* @returns null\n* @memberOf MatrixStack\n*/\nMatrixStack.pop = function(){\n var thisRef = this;\n thisRef.depth--;\n if (thisRef.depth < 0){ // stack is underflow?????\n myError(\"Invalid matrix stack.\");\n thisRef.depth = 0;\n }\n\n var offset = thisRef.depth * 16;\n for (var i = 0; i < 16; i++){\n thisRef.currentMatrix[i] = thisRef.matrixStack[offset + i];\n }\n}\n\n/**\n* @name getMatrix\n* @desc return the current matrix stack\n* @param null\n* @returns {Array} current matrix stack\n* @memberOf MatrixStack\n*/\nMatrixStack.getMatrix = function(){\n return this.currentMatrix;\n}\n\n/**\n* @name multMatrix\n* @desc matrix multiplication, save to the currentMatrix\n* @param null\n* @returns null\n* @memberOf MatrixStack\n*/\nMatrixStack.multMatrix = function(matNew)\n{\n var thisRef = this;\n var i, j, k;\n\n for (i = 0; i < 16; i++){\n thisRef.tmp[i] = 0;\n }\n\n for (i = 0; i < 4; i++){\n for (j = 0; j < 4; j++){\n for (k = 0; k < 4; k++){\n thisRef.tmp[i + j * 4] += thisRef.currentMatrix[i + k * 4] * matNew[k + j * 4];\n }\n }\n }\n for (i = 0; i < 16; i++){\n thisRef.currentMatrix[i] = thisRef.tmp[i];\n }\n}\n", @@ -8606,7 +9017,7 @@ "lineNumber": 1 }, { - "__docId__": 342, + "__docId__": 347, "kind": "function", "name": "MatrixStack", "memberof": "src/utils/MatrixStack.js", @@ -8624,7 +9035,7 @@ "return": null }, { - "__docId__": 343, + "__docId__": 348, "kind": "function", "name": "reset", "memberof": "src/utils/MatrixStack.js", @@ -8671,7 +9082,7 @@ "ignore": true }, { - "__docId__": 344, + "__docId__": 349, "kind": "function", "name": "loadIdentity", "memberof": "src/utils/MatrixStack.js", @@ -8718,7 +9129,7 @@ "ignore": true }, { - "__docId__": 345, + "__docId__": 350, "kind": "function", "name": "push", "memberof": "src/utils/MatrixStack.js", @@ -8765,7 +9176,7 @@ "ignore": true }, { - "__docId__": 346, + "__docId__": 351, "kind": "function", "name": "pop", "memberof": "src/utils/MatrixStack.js", @@ -8812,7 +9223,7 @@ "ignore": true }, { - "__docId__": 347, + "__docId__": 352, "kind": "function", "name": "getMatrix", "memberof": "src/utils/MatrixStack.js", @@ -8859,7 +9270,7 @@ "ignore": true }, { - "__docId__": 348, + "__docId__": 353, "kind": "function", "name": "multMatrix", "memberof": "src/utils/MatrixStack.js", @@ -8906,7 +9317,7 @@ "ignore": true }, { - "__docId__": 349, + "__docId__": 354, "kind": "file", "name": "src/utils/ModelSettingJson.js", "content": "// Modified by xiazeyu.\n\n/**\n* @desc To get the model settings from given json file\n*/\n\nimport { Live2DFramework } from \"../lib/Live2DFramework\"\n\n/**\n* @name ModelSettingJson\n* @desc return the struct of ModelSettingJson\n* @param null\n* @returns {Structure} ModelSettingJson\n*/\nexport function ModelSettingJson()\n{ // Define the index in the json file.\n this.NAME = \"name\";\n this.ID = \"id\";\n this.MODEL = \"model\";\n this.TEXTURES = \"textures\";\n this.HIT_AREAS = \"hit_areas\";\n this.PHYSICS = \"physics\";\n this.POSE = \"pose\";\n this.EXPRESSIONS = \"expressions\";\n this.MOTION_GROUPS = \"motions\";\n this.SOUND = \"sound\";\n this.FADE_IN = \"fade_in\";\n this.FADE_OUT = \"fade_out\";\n this.LAYOUT = \"layout\";\n this.INIT_PARAM = \"init_param\";\n this.INIT_PARTS_VISIBLE = \"init_parts_visible\";\n this.VALUE = \"val\";\n this.FILE = \"file\";\n this.json = {};\n}\n\n/**\n* @name loadModelSetting\n* @desc load model settings from json\n* @param {string} jsonPath, {function} callback\n* @returns null\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.loadModelSetting = function(path, callback)\n{\n var thisRef = this;\n var pm = Live2DFramework.getPlatformManager();\n pm.loadBytes(path, function(buf) {\n var str = String.fromCharCode.apply(null,new Uint8Array(buf));\n thisRef.json = JSON.parse(str);\n callback();\n });\n};\n\n/**\n* @name getTextureFile\n* @desc get texture file from json\n* @param {int} order number of texture\n* @returns {string} file path\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getTextureFile = function(n)\n{\n if (this.json[this.TEXTURES] == null || this.json[this.TEXTURES][n] == null)\n return null;\n\n return this.json[this.TEXTURES][n];\n}\n\n/**\n* @name getModelFile\n* @desc get model file from json\n* @param null\n* @returns {string} file path\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getModelFile = function()\n{\n return this.json[this.MODEL];\n};\n\n/**\n* @name getTextureNum\n* @desc get the amount of textures from json\n* @param null\n* @returns {int} amout\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getTextureNum = function()\n{\n if (this.json[this.TEXTURES] == null) return 0;\n\n return this.json[this.TEXTURES].length;\n}\n\n/**\n* @name getHitAreaNum\n* @desc get the amount of hit area from json\n* @param null\n* @returns {int} amout\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getHitAreaNum = function()\n{\n if (this.json[this.HIT_AREAS] == null)\n return 0;\n\n return this.json[this.HIT_AREAS].length;\n}\n\n/**\n* @name getHitAreaID\n* @desc get the hit area ID of given index from json\n* @param {int} index\n* @returns {int} ID\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getHitAreaID = function(n)\n{\n if (this.json[this.HIT_AREAS] == null ||\n this.json[this.HIT_AREAS][n] == null)\n return null;\n\n return this.json[this.HIT_AREAS][n][this.ID];\n}\n\n/**\n* @name getHitAreaName\n* @desc get the hit area name of given index from json\n* @param {int} index\n* @returns {string} name\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getHitAreaName = function(n)\n{\n if (this.json[this.HIT_AREAS] == null ||\n this.json[this.HIT_AREAS][n] == null)\n return null;\n\n return this.json[this.HIT_AREAS][n][this.NAME];\n}\n\n/**\n* @name getPhysicsFile\n* @desc get physics file from json\n* @param null\n* @returns {string} file path\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getPhysicsFile = function()\n{\n return this.json[this.PHYSICS];\n}\n\n/**\n* @name getPoseFile\n* @desc get pose file from json\n* @param null\n* @returns {string} file path\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getPoseFile = function()\n{\n return this.json[this.POSE];\n}\n\n/**\n* @name getExpressionNum\n* @desc get the amount of expressions from json\n* @param null\n* @returns {int} amout\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getExpressionNum = function()\n{\n return (this.json[this.EXPRESSIONS] == null) ? 0 : this.json[this.EXPRESSIONS].length;\n}\n\n/**\n* @name getExpressionFile\n* @desc get expression file from json\n* @param null\n* @returns {string} file path\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getExpressionFile = function(n)\n{\n if (this.json[this.EXPRESSIONS] == null)\n return null;\n return this.json[this.EXPRESSIONS][n][this.FILE];\n}\n\n/**\n* @name getExpressionName\n* @desc get the hit expression name of given index from json\n* @param {int} index\n* @returns {string} name\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getExpressionName = function(n)\n{\n if (this.json[this.EXPRESSIONS] == null)\n return null;\n return this.json[this.EXPRESSIONS][n][this.NAME];\n}\n\n/**\n* @name getLayout\n* @desc get the layout from json\n* @param null\n* @returns {string} layout\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getLayout = function()\n{\n return this.json[this.LAYOUT];\n}\n\n/**\n* @name getInitParamNum\n* @desc get the amount of init parameter from json\n* @param null\n* @returns {int} amount\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getInitParamNum = function()\n{\n return (this.json[this.INIT_PARAM] == null) ? 0 : this.json[this.INIT_PARAM].length;\n}\n\n/**\n* @name getMotionNum\n* @desc get the amount of motions from json\n* @param null\n* @returns {int} amout\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getMotionNum = function(name)\n{\n if (this.json[this.MOTION_GROUPS] == null ||\n this.json[this.MOTION_GROUPS][name] == null)\n return 0;\n\n return this.json[this.MOTION_GROUPS][name].length;\n}\n\n/**\n* @name getMotionFile\n* @desc get motion file from json\n* @param null\n* @returns {string} file path\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getMotionFile = function(name, n)\n{\n if (this.json[this.MOTION_GROUPS] == null ||\n this.json[this.MOTION_GROUPS][name] == null ||\n this.json[this.MOTION_GROUPS][name][n] == null)\n return null;\n\n return this.json[this.MOTION_GROUPS][name][n][this.FILE];\n}\n\n/**\n* @name getMotionSound\n* @desc get motion's sound file from json\n* @param null\n* @returns {string} file path\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getMotionSound = function(name, n)\n{\n if (this.json[this.MOTION_GROUPS] == null ||\n this.json[this.MOTION_GROUPS][name] == null ||\n this.json[this.MOTION_GROUPS][name][n] == null ||\n this.json[this.MOTION_GROUPS][name][n][this.SOUND] == null)\n return null;\n\n return this.json[this.MOTION_GROUPS][name][n][this.SOUND];\n}\n\n/**\n* @name getMotionFadeIn\n* @desc get the motion's fade in setting from json\n* @param {string} name, {int} index\n* @returns {int} time (1000 if not found)\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getMotionFadeIn = function(name, n)\n{\n if (this.json[this.MOTION_GROUPS] == null ||\n this.json[this.MOTION_GROUPS][name] == null ||\n this.json[this.MOTION_GROUPS][name][n] == null ||\n this.json[this.MOTION_GROUPS][name][n][this.FADE_IN] == null)\n return 1000;\n\n return this.json[this.MOTION_GROUPS][name][n][this.FADE_IN];\n}\n\n/**\n* @name getMotionFadeOut\n* @desc get the motion's fade out setting from json\n* @param {string} name, {int} index\n* @returns {int} time (1000 if not found)\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getMotionFadeOut = function(name, n)\n{\n if (this.json[this.MOTION_GROUPS] == null ||\n this.json[this.MOTION_GROUPS][name] == null ||\n this.json[this.MOTION_GROUPS][name][n] == null ||\n this.json[this.MOTION_GROUPS][name][n][this.FADE_OUT] == null)\n return 1000;\n\n return this.json[this.MOTION_GROUPS][name][n][this.FADE_OUT];\n}\n\n/**\n* @name getInitParamID\n* @desc get the visible ID of init parameter from json\n* @param {(int)} index\n* @returns {int} ID\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getInitParamID = function(n)\n{\n if (this.json[this.INIT_PARAM] == null ||\n this.json[this.INIT_PARAM][n] == null)\n return null;\n\n return this.json[this.INIT_PARAM][n][this.ID];\n}\n\n/**\n* @name getInitParamValue\n* @desc get the visible value of init parameter from json\n* @param {(int)} index\n* @returns {int} value\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getInitParamValue = function(n)\n{\n if (this.json[this.INIT_PARAM] == null || this.json[this.INIT_PARAM][n] == null)\n return NaN;\n\n return this.json[this.INIT_PARAM][n][this.VALUE];\n}\n\n/**\n* @name getInitPartsVisibleNum\n* @desc get the amount of init parts visible from json\n* @param null\n* @returns {int} amout\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getInitPartsVisibleNum = function()\n{\n return (this.json[this.INIT_PARTS_VISIBLE] == null) ? 0 : this.json[this.INIT_PARTS_VISIBLE].length;\n}\n\n/**\n* @name getInitPartsVisibleID\n* @desc get the visible ID of init parts from json\n* @param {(int)} index\n* @returns {int} ID\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getInitPartsVisibleID = function(n)\n{\n if (this.json[this.INIT_PARTS_VISIBLE] == null || this.json[this.INIT_PARTS_VISIBLE][n] == null)\n return null;\n return this.json[this.INIT_PARTS_VISIBLE][n][this.ID];\n}\n\n/**\n* @name getInitPartsVisibleValue\n* @desc get the visible value of init parts from json\n* @param {(int)} index\n* @returns {int} value\n* @memberOf ModelSettingJson\n*/\nModelSettingJson.prototype.getInitPartsVisibleValue = function(n)\n{\n if (this.json[this.INIT_PARTS_VISIBLE] == null || this.json[this.INIT_PARTS_VISIBLE][n] == null)\n return NaN;\n\n return this.json[this.INIT_PARTS_VISIBLE][n][this.VALUE];\n}\n", @@ -8917,7 +9328,7 @@ "lineNumber": 1 }, { - "__docId__": 350, + "__docId__": 355, "kind": "function", "name": "ModelSettingJson", "memberof": "src/utils/ModelSettingJson.js", @@ -8959,7 +9370,7 @@ } }, { - "__docId__": 351, + "__docId__": 356, "kind": "function", "name": "loadModelSetting", "memberof": "src/utils/ModelSettingJson.js", @@ -9006,7 +9417,7 @@ "ignore": true }, { - "__docId__": 352, + "__docId__": 357, "kind": "function", "name": "getTextureFile", "memberof": "src/utils/ModelSettingJson.js", @@ -9053,7 +9464,7 @@ "ignore": true }, { - "__docId__": 353, + "__docId__": 358, "kind": "function", "name": "getModelFile", "memberof": "src/utils/ModelSettingJson.js", @@ -9100,7 +9511,7 @@ "ignore": true }, { - "__docId__": 354, + "__docId__": 359, "kind": "function", "name": "getTextureNum", "memberof": "src/utils/ModelSettingJson.js", @@ -9147,7 +9558,7 @@ "ignore": true }, { - "__docId__": 355, + "__docId__": 360, "kind": "function", "name": "getHitAreaNum", "memberof": "src/utils/ModelSettingJson.js", @@ -9194,7 +9605,7 @@ "ignore": true }, { - "__docId__": 356, + "__docId__": 361, "kind": "function", "name": "getHitAreaID", "memberof": "src/utils/ModelSettingJson.js", @@ -9241,7 +9652,7 @@ "ignore": true }, { - "__docId__": 357, + "__docId__": 362, "kind": "function", "name": "getHitAreaName", "memberof": "src/utils/ModelSettingJson.js", @@ -9288,7 +9699,7 @@ "ignore": true }, { - "__docId__": 358, + "__docId__": 363, "kind": "function", "name": "getPhysicsFile", "memberof": "src/utils/ModelSettingJson.js", @@ -9335,7 +9746,7 @@ "ignore": true }, { - "__docId__": 359, + "__docId__": 364, "kind": "function", "name": "getPoseFile", "memberof": "src/utils/ModelSettingJson.js", @@ -9382,7 +9793,7 @@ "ignore": true }, { - "__docId__": 360, + "__docId__": 365, "kind": "function", "name": "getExpressionNum", "memberof": "src/utils/ModelSettingJson.js", @@ -9429,7 +9840,7 @@ "ignore": true }, { - "__docId__": 361, + "__docId__": 366, "kind": "function", "name": "getExpressionFile", "memberof": "src/utils/ModelSettingJson.js", @@ -9476,7 +9887,7 @@ "ignore": true }, { - "__docId__": 362, + "__docId__": 367, "kind": "function", "name": "getExpressionName", "memberof": "src/utils/ModelSettingJson.js", @@ -9523,7 +9934,7 @@ "ignore": true }, { - "__docId__": 363, + "__docId__": 368, "kind": "function", "name": "getLayout", "memberof": "src/utils/ModelSettingJson.js", @@ -9570,7 +9981,7 @@ "ignore": true }, { - "__docId__": 364, + "__docId__": 369, "kind": "function", "name": "getInitParamNum", "memberof": "src/utils/ModelSettingJson.js", @@ -9617,7 +10028,7 @@ "ignore": true }, { - "__docId__": 365, + "__docId__": 370, "kind": "function", "name": "getMotionNum", "memberof": "src/utils/ModelSettingJson.js", @@ -9664,7 +10075,7 @@ "ignore": true }, { - "__docId__": 366, + "__docId__": 371, "kind": "function", "name": "getMotionFile", "memberof": "src/utils/ModelSettingJson.js", @@ -9711,7 +10122,7 @@ "ignore": true }, { - "__docId__": 367, + "__docId__": 372, "kind": "function", "name": "getMotionSound", "memberof": "src/utils/ModelSettingJson.js", @@ -9758,7 +10169,7 @@ "ignore": true }, { - "__docId__": 368, + "__docId__": 373, "kind": "function", "name": "getMotionFadeIn", "memberof": "src/utils/ModelSettingJson.js", @@ -9805,7 +10216,7 @@ "ignore": true }, { - "__docId__": 369, + "__docId__": 374, "kind": "function", "name": "getMotionFadeOut", "memberof": "src/utils/ModelSettingJson.js", @@ -9852,7 +10263,7 @@ "ignore": true }, { - "__docId__": 370, + "__docId__": 375, "kind": "function", "name": "getInitParamID", "memberof": "src/utils/ModelSettingJson.js", @@ -9899,7 +10310,7 @@ "ignore": true }, { - "__docId__": 371, + "__docId__": 376, "kind": "function", "name": "getInitParamValue", "memberof": "src/utils/ModelSettingJson.js", @@ -9946,7 +10357,7 @@ "ignore": true }, { - "__docId__": 372, + "__docId__": 377, "kind": "function", "name": "getInitPartsVisibleNum", "memberof": "src/utils/ModelSettingJson.js", @@ -9993,7 +10404,7 @@ "ignore": true }, { - "__docId__": 373, + "__docId__": 378, "kind": "function", "name": "getInitPartsVisibleID", "memberof": "src/utils/ModelSettingJson.js", @@ -10040,7 +10451,7 @@ "ignore": true }, { - "__docId__": 374, + "__docId__": 379, "kind": "function", "name": "getInitPartsVisibleValue", "memberof": "src/utils/ModelSettingJson.js", @@ -10087,10 +10498,10 @@ "ignore": true }, { - "__docId__": 375, + "__docId__": 380, "kind": "file", "name": "src/wpPublicPath.js", - "content": "/**\n * @description Automatic locate the publicPath and set it up for webpack.\n */\n\n\n'use strict';\n\n/**\n * Get current script path\n * @return {String} The path of current script\n * @example\n * get 'file:///C:/git/live2d-widget/dev/bundle.js' or 'https://www.host.com/test/js/bundle.js'\n */\n\nfunction getCurrentPath(){\n\n try{\n\n // FF, Chrome, Modern browsers\n // use their API to get the path of current script\n\n // a.b();\n // console.log('wpStage1');\n\n return document.currentScript.src;\n\n if(DOC.currentScript){ // FF 4+\n return DOC.currentScript.src;\n }\n\n }catch(e){\n\n // document.currentScript doesn't supports\n\n // console.log('wpStage2');\n\n // Method 1\n // https://github.com/mozilla/pdf.js/blob/e081a708c36cb2aacff7889048863723fcf23671/src/shared/compatibility.js#L97\n // IE, Chrome < 29\n\n let scripts = document.getElementsByTagName('script');\n return scripts[scripts.length - 1].src;\n\n/*\n // Method 2\n // parse the error stack trace maually\n // https://github.com/workhorsy/uncompress.js/blob/master/js/uncompress.js#L25\n\n let stack = e.stack;\n let line = null;\n\n // Chrome and IE\n if (stack.indexOf('@') !== -1) {\n line = stack.split('@')[1].split('\\n')[0];\n // Firefox\n } else {\n line = stack.split('(')[1].split(')')[0];\n }\n line = line.substring(0, line.lastIndexOf('/')) + '/';\n return line;\n*/\n/*\n // Method 3\n // https://www.cnblogs.com/rubylouvre/archive/2013/01/23/2872618.html\n\n let stack = e.stack;\n if(!stack && window.opera){\n // Opera 9没有e.stack,但有e.Backtrace,但不能直接取得,需要对e对象转字符串进行抽取\n stack = (String(e).match(/of linked script \\S+/g) || []).join(' ');\n }\n if(stack){\n // e.stack最后一行在所有支持的浏览器大致如下:\n      // chrome23:\n      // @ http://113.93.50.63/data.js:4:1\n      // firefox17:\n      // @http://113.93.50.63/query.js:4\n      // opera12:\n      // @http://113.93.50.63/data.js:4\n      // IE10:\n      // @ Global code (http://113.93.50.63/data.js:4:1)\n     stack = stack.split(/[@ ]/g).pop(); // 取得最后一行,最后一个空格或@之后的部分\n stack = stack[0] == '(' ? stack.slice(1,-1) : stack;\n return stack.replace(/(:\\d+)?:\\d+$/i, ''); // 去掉行号与或许存在的出错字符起始位置\n }\n let nodes = head.getElementsByTagName('script'); // 只在head标签中寻找\n for(var i = 0, node; node = nodes[i++];){\n if(node.readyState === 'interactive'){\n return node.className = node.src;\n }\n }\n*/\n }\n\n}\n\n// expose the path to the global,\n// and wp will finish the following work\n__webpack_public_path__ = getCurrentPath().replace(/[^/\\\\\\\\]+$/, '');\nif (process.env.NODE_ENV === 'development'){\n console.log(`wpPP: publicPath: ${__webpack_public_path__}`);\n}\n\nexport {\n getCurrentPath,\n}\n", + "content": "/**\n * @description Automatic locate the publicPath and set it up for webpack.\n */\n\n\n'use strict';\n\n/**\n * Get current script path\n * @return {String} The path of current script\n * @example\n * get 'file:///C:/git/live2d-widget/dev/bundle.js' or 'https://www.host.com/test/js/bundle.js'\n */\n\nfunction getCurrentPath(){\n\n try{\n\n // FF, Chrome, Modern browsers\n // use their API to get the path of current script\n\n // a.b();\n // console.log('wpStage1');\n\n return document.currentScript.src;\n\n if(DOC.currentScript){ // FF 4+\n return DOC.currentScript.src;\n }\n\n }catch(e){\n\n // document.currentScript doesn't supports\n\n // console.log('wpStage2');\n\n // Method 1\n // https://github.com/mozilla/pdf.js/blob/e081a708c36cb2aacff7889048863723fcf23671/src/shared/compatibility.js#L97\n // IE, Chrome < 29\n\n let scripts = document.getElementsByTagName('script');\n return scripts[scripts.length - 1].src;\n\n/*\n // Method 2\n // parse the error stack trace maually\n // https://github.com/workhorsy/uncompress.js/blob/master/js/uncompress.js#L25\n\n let stack = e.stack;\n let line = null;\n\n // Chrome and IE\n if (stack.indexOf('@') !== -1) {\n line = stack.split('@')[1].split('\\n')[0];\n // Firefox\n } else {\n line = stack.split('(')[1].split(')')[0];\n }\n line = line.substring(0, line.lastIndexOf('/')) + '/';\n return line;\n*/\n/*\n // Method 3\n // https://www.cnblogs.com/rubylouvre/archive/2013/01/23/2872618.html\n\n let stack = e.stack;\n if(!stack && window.opera){\n // Opera 9没有e.stack,但有e.Backtrace,但不能直接取得,需要对e对象转字符串进行抽取\n stack = (String(e).match(/of linked script \\S+/g) || []).join(' ');\n }\n if(stack){\n // e.stack最后一行在所有支持的浏览器大致如下:\n      // chrome23:\n      // @ http://113.93.50.63/data.js:4:1\n      // firefox17:\n      // @http://113.93.50.63/query.js:4\n      // opera12:\n      // @http://113.93.50.63/data.js:4\n      // IE10:\n      // @ Global code (http://113.93.50.63/data.js:4:1)\n     stack = stack.split(/[@ ]/g).pop(); // 取得最后一行,最后一个空格或@之后的部分\n stack = stack[0] == '(' ? stack.slice(1,-1) : stack;\n return stack.replace(/(:\\d+)?:\\d+$/i, ''); // 去掉行号与或许存在的出错字符起始位置\n }\n let nodes = head.getElementsByTagName('script'); // 只在head标签中寻找\n for(var i = 0, node; node = nodes[i++];){\n if(node.readyState === 'interactive'){\n return node.className = node.src;\n }\n }\n*/\n }\n\n}\n\n// expose the path to the global,\n// and wp will finish the following work\n__webpack_public_path__ = getCurrentPath().replace(/[^/\\\\\\\\]+$/, '');\nif (process.env.NODE_ENV === 'development'){\n console.log(`Live2Dwidget: publicPath: ${__webpack_public_path__}`);\n}\n\nexport {\n getCurrentPath,\n}\n", "static": true, "longname": "D:/git/live2d-widget.js/src/wpPublicPath.js", "access": "public", @@ -10098,7 +10509,7 @@ "lineNumber": 1 }, { - "__docId__": 376, + "__docId__": 381, "kind": "function", "name": "getCurrentPath", "memberof": "src/wpPublicPath.js", @@ -10127,7 +10538,7 @@ }, { "kind": "index", - "content": "[![npm][npm]][npm-url]\n[![deps][deps]][deps-url]\n[![devdeps][devdeps]][devdeps-url]\n\n[![downloads][downloads]][downloads-url]\n[![downloads-month][downloads-month]][downloads-month-url]\n\n[![GitHub stars][GitHub stars]][GitHub stars-url]\n[![GitHub forks][GitHub forks]][GitHub forks-url]\n[![GitHub issues][GitHub issues]][GitHub issues-url]\n\n[![Commitizen friendly][Commitizen friendly]][Commitizen friendly-url]\n[![PRs Welcome][PRs Welcome]][PRs Welcome-url]\n[![license][license]][license-url]\n\n\n# live2d-widget.js\n\nAdd the Sseexxyyy live2d to your webpages!\n\n[TOC]\n\nDemo: [Still working, but you can have a look~](https://xiazeyu.github.io/live2d-widget.js/dev.html)\n\nDocs(including APIs): [Click me!](https://xiazeyu.github.io/live2d-widget.js/)\n\nOnline generator: [TBD.](javascript:void(0);)\n\n\n## Useage\n\n### Hexo\n\nPlease visit [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d) for the hexo plugin.\n\n### Webpack\n\nInstall the module:\n\n```\nnpm install --save live2d-widget.js\n```\n\nImport the module:\n\n```js\n// using as es modules\nimport 'live2d-widget.js';\n```\n\nThen call the function along with your config.\n\n```js\nL2Dwidget.init({\n 'config1': 'value1',\n 'config2': 'value2',\n});\n```\n\n### Online\n\nhttps://github.com/jsdelivr/jsdelivr/\n\nTBD.\n\n## Settings\n\nSee src/SettingTip.txt\n\n
      Current supported models:
      \n\n - `chitose`\n - `Epsilon2.1`\n - `Gantzert_Felixander`\n - `haru01`\n - `haru02`\n - `haruto`\n - `hibiki`\n - `hijiki`\n - `izumi`\n - `koharu`\n - `miku`\n - `nico`\n - `ni-j`\n - `nipsilon`\n - `nito`\n - `shizuku`\n - `tororo`\n - `tsumiki`\n - `Unitychan`\n - `wanko`\n - `z16`\n\n
      \n\n## Custom model\n\n1. Create a `live2d_models` folder at your blog's root directory.\n\n2. Create a folder by the name of your model.\n\n3. Copy your model to this folder.\n\n**Attention! The path of the model's json must be `/live2d_models/{name}/{name}.model.json`**\n\n
      An Example:
      \n\nYour model is named `mymiku`.\n\nThen, create a folder at `/` (Which should exists `_config.yml` 、`sources` 、 `themes` ) named `mymiku`.\n\nCopy your model to `/live2d_models/mymiku/`.\n\nUp to now, there should be `mymiku.model.json` in the directory of `/live2d_models/mymiku/`.\n\n
      \n\n
      ~The problem was once releated to [(#22)](https://github.com/EYHN/hexo-helper-live2d/issues/22).~\n\n
      \n\nEnjoy!:beer:\n\n> This is my first hexo plugin, star :star: and watch :eyeglasses:, pull request is also welcomed.\n\nGithub: [https://github.com/EYHN/hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d)\n\nissues: [https://github.com/EYHN/hexo-helper-live2d/issues](https://github.com/EYHN/hexo-helper-live2d/issues)\n\n\n## Contribute\n\n**Please pay enough attention to this document if you want to commit your changes or submit issues.**\n\n[CONTRIBUTING](./CONTRIBUTING.md)\n\n## Releated projects\n\n- [Cubism SDK WebGL 2.1](http://sites.cybernoids.jp/cubism-sdk2_e/webgl2-1)\n\n- [pixi-live2d](https://github.com/avgjs/pixi-live2d)\n\n- [CubismJsComponents](https://github.com/Live2D/CubismJsComponents)\n\n- [live2d-widget.js](https://github.com/xiazeyu/live2d-widget.js)\n\n- [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d)\n\n\n## About me\n\n[![Author][author]][author-url]\n\n[![QQ][qq]][qq-url]\n\n[![Email][email]][email-url]\n\n\n## Imported\n\n[![current-device][current-device]][current-device-url]\n\n## Special Thanks\n\n- @mashirozx \n- @fghrsh\n- @journey-ad\n- @gwzz\n\n
      \n\nOpen sourced under the GPL v2.0 license.\n\n[npm]: https://badge.fury.io/js/hexo-helper-live2d.svg?label=hexo-helper-live2d\n[npm-url]: https://www.npmjs.com/package/hexo-helper-live2d\n\n[deps]: https://img.shields.io/david/EYHN/hexo-helper-live2d.svg\n[deps-url]: javascript:void(0);\n\n[devdeps]: https://img.shields.io/david/dev/EYHN/hexo-helper-live2d.svg\n[devdeps-url]: javascript:void(0);\n\n[license]: https://img.shields.io/github/license/EYHN/hexo-helper-live2d.svg\n[license-url]: https://github.com/EYHN/hexo-helper-live2d/blob/master/LICENSE\n\n[PRs Welcome]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[PRs Welcome-url]: http://makeapullrequest.com\n\n[downloads]: https://img.shields.io/npm/dt/hexo-helper-live2d.svg\n[downloads-url]: https://www.npmjs.com/package/hexo-helper-live2d\n\n[downloads-month]: https://img.shields.io/npm/dm/hexo-helper-live2d.svg\n[downloads-month-url]: https://www.npmjs.com/package/hexo-helper-live2d\n\n[Commitizen friendly]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[Commitizen friendly-url]: http://commitizen.github.io/cz-cli/\n\n[GitHub stars]: https://img.shields.io/github/stars/EYHN/hexo-helper-live2d.svg\n[GitHub stars-url]: https://github.com/EYHN/hexo-helper-live2d/stargazers\n\n[GitHub forks]: https://img.shields.io/github/forks/EYHN/hexo-helper-live2d.svg\n[GitHub forks-url]: https://github.com/EYHN/hexo-helper-live2d/network\n\n[GitHub issues]: https://img.shields.io/github/issues/EYHN/hexo-helper-live2d.svg\n[GitHub issues-url]: https://github.com/EYHN/hexo-helper-live2d/issues\n\n[author]: https://img.shields.io/badge/author-cneyhn-green.svg\n[author-url]: https://delusion.coding.me/\n\n[qq]: https://img.shields.io/badge/QQ-1106996185-blue.svg\n[qq-url]: http://wpa.qq.com/msgrd?v=3&uin=&site=qq&menu=yes\n\n[email]: https://img.shields.io/badge/Emali%20me-cneyhn@gmail.com-green.svg\n[email-url]: mailto:cneyhn@gmail.com\n\n[current-device]: https://img.shields.io/npm/v/current-device.svg?label=current-device\n[current-device-url]: https://github.com/matthewhudson/current-device\n", + "content": "[![npm][npm]][npm-url]\n[![deps][deps]][deps-url]\n[![devdeps][devdeps]][devdeps-url]\n\n[![downloads][downloads]][downloads-url]\n[![downloads-month][downloads-month]][downloads-month-url]\n\n[![GitHub stars][GitHub stars]][GitHub stars-url]\n[![GitHub forks][GitHub forks]][GitHub forks-url]\n[![GitHub issues][GitHub issues]][GitHub issues-url]\n\n[![Commitizen friendly][Commitizen friendly]][Commitizen friendly-url]\n[![PRs Welcome][PRs Welcome]][PRs Welcome-url]\n[![license][license]][license-url]\n\n\n# live2d-widget.js\n\nAdd the Sseexxyyy live2d to your webpages! Seperated from [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d).\n\nDemo: [Still working, but you can have a look~](https://xiazeyu.github.io/live2d-widget.js/dev.html)\n\nDocs(including APIs): [Click me!](https://xiazeyu.github.io/live2d-widget.js/)\n\nOnline generator: [TBD.](javascript:void(0);)\n\n\n## Useage\n\n### Hexo\n\nPlease visit [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d) for the hexo plugin.\n\n### Webpages\n\n#### File on your server\n\nDownload the [latest release](https://github.com/xiazeyu/live2d-widget.js/releases),\n\nand then copy and extract the `lib` folder to your website.\n\nUse [online generator](javascript:void(0);) **(recommended)** to generate codes.\n\n
      However, if you want to do it manually, follow the instruction below:
      \n\nimport the js:\n\n```html\n\n\n\n```\n\nThen call the function along with your config.\n\n```js\nL2Dwidget.init({\n 'config1': 'value1',\n 'config2': 'value2',\n});\n```\n\n
      \n\n### Bookmark (any pages)\n\nTBD.\n\nhttps://www.cnblogs.com/pcyy/p/5655542.html\n\n\n## Settings\n\nSee the [document](https://xiazeyu.github.io/live2d-widget.js/docs/class/src/index.js~L2Dwidget.html#instance-method-init).\n\n
      Current supported models:
      \n\n - `chitose`\n - `Epsilon2.1`\n - `Gantzert_Felixander`\n - `haru01`\n - `haru02`\n - `haruto`\n - `hibiki`\n - `hijiki`\n - `izumi`\n - `koharu`\n - `miku`\n - `nico`\n - `ni-j`\n - `nipsilon`\n - `nito`\n - `shizuku`\n - `tororo`\n - `tsumiki`\n - `Unitychan`\n - `wanko`\n - `z16`\n\n
      \n\n## Custom model\n\n1. Create a `live2d_models` folder at your blog's root directory.\n\n2. Create a folder by the name of your model.\n\n3. Copy your model to this folder.\n\n**Attention! The path of the model's json must be `/live2d_models/{name}/{name}.model.json`**\n\n
      An Example:
      \n\nYour model is named `mymiku`.\n\nThen, create a folder at `/` (Which should exists `_config.yml` 、`sources` 、 `themes` ) named `mymiku`.\n\nCopy your model to `/live2d_models/mymiku/`.\n\nUp to now, there should be `mymiku.model.json` in the directory of `/live2d_models/mymiku/`.\n\n
      \n\n
      ~The problem was once releated to [(#22)](https://github.com/EYHN/hexo-helper-live2d/issues/22).~\n\n
      \n\nEnjoy!:beer:\n\n> This is my first hexo plugin, star :star: and watch :eyeglasses:, pull request is also welcomed.\n\nGithub: [https://github.com/EYHN/hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d)\n\nissues: [https://github.com/EYHN/hexo-helper-live2d/issues](https://github.com/EYHN/hexo-helper-live2d/issues)\n\n\n## Contribute\n\n**Please pay enough attention to this document if you want to commit your changes or submit issues.**\n\n[CONTRIBUTING](./CONTRIBUTING.md)\n\n## Releated projects\n\n- [Cubism SDK WebGL 2.1](http://sites.cybernoids.jp/cubism-sdk2_e/webgl2-1)\n\n- [live2d-widget.js](https://github.com/xiazeyu/live2d-widget.js)\n\n- [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d)\n\n- [pixi-live2d](https://github.com/avgjs/pixi-live2d)\n\n- [CubismJsComponents](https://github.com/Live2D/CubismJsComponents)\n\n\n\n## About me\n\n[![Author][author]][author-url]\n\n[![Author QQ][author-qq]][author-qq-url]\n\n[![Author Email][author-email]][author-email-url]\n\n\n[![Collaborator 0][collaborator0]][collaborator0-url]\n\n[![Collaborator 0 QQ][collaborator0-qq]][collaborator0-qq-url]\n\n[![Collaborator 0 Email][collaborator0-email]][collaborator0-email-url]\n\n\n## Imported\n\n[![current-device][current-device]][current-device-url]\n\n## Special Thanks\n\n- @mashirozx \n- @fghrsh\n- @journey-ad\n- @gwzz\n\n
      \n\nOpen sourced under the GPL v2.0 license.\n\n[npm]: https://badge.fury.io/js/live2d-widget.svg?label=live2d-widget\n[npm-url]: https://www.npmjs.com/package/live2d-widget\n\n[deps]: https://img.shields.io/david/xiazeyu/live2d-widget.js.svg\n[deps-url]: javascript:void(0);\n\n[devdeps]: https://img.shields.io/david/dev/xiazeyu/live2d-widget.js.svg\n[devdeps-url]: javascript:void(0);\n\n[license]: https://img.shields.io/github/license/xiazeyu/live2d-widget.js.svg\n[license-url]: https://github.com/xiazeyu/live2d-widget.js/blob/master/LICENSE\n\n[PRs Welcome]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[PRs Welcome-url]: http://makeapullrequest.com\n\n[downloads]: https://img.shields.io/npm/dt/live2d-widget.svg\n[downloads-url]: https://www.npmjs.com/package/live2d-widget\n\n[downloads-month]: https://img.shields.io/npm/dm/live2d-widget.svg\n[downloads-month-url]: https://www.npmjs.com/package/live2d-widget\n\n[Commitizen friendly]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[Commitizen friendly-url]: http://commitizen.github.io/cz-cli/\n\n[GitHub stars]: https://img.shields.io/github/stars/xiazeyu/live2d-widget.js.svg\n[GitHub stars-url]: https://github.com/xiazeyu/live2d-widget.js/stargazers\n\n[GitHub forks]: https://img.shields.io/github/forks/xiazeyu/live2d-widget.js.svg\n[GitHub forks-url]: https://github.com/xiazeyu/live2d-widget.js/network\n\n[GitHub issues]: https://img.shields.io/github/issues/xiazeyu/live2d-widget.js.svg\n[GitHub issues-url]: https://github.com/xiazeyu/live2d-widget.js/issues\n\n[author]: https://img.shields.io/badge/author-cneyhn-green.svg\n[author-url]: https://delusion.coding.me/\n\n[author-qq]: https://img.shields.io/badge/QQ-1106996185-blue.svg\n[author-qq-url]: tencent://message/?uin=1106996185&Site=Senlon.Net&Menu=yes\n\n[author-email]: https://img.shields.io/badge/Emali%20me-cneyhn@gmail.com-green.svg\n[author-email-url]: mailto:cneyhn@gmail.com\n\n[collaborator0]: https://img.shields.io/badge/author-xiazeyu-green.svg\n[collaborator0-url]: https://xiazeyu.coding.me/\n\n[collaborator0-qq]: https://img.shields.io/badge/QQ-2320732807-blue.svg\n[collaborator0-qq-url]: tencent://message/?uin=2320732807&Site=Senlon.Net&Menu=yes\n\n[collaborator0-email]: https://img.shields.io/badge/Emali%20me-xiazeyu_2011@126.com-green.svg\n[collaborator0-email-url]: mailto:xiazeyu_2011@126.com\n\n[current-device]: https://img.shields.io/npm/v/current-device.svg?label=current-device\n[current-device-url]: https://github.com/matthewhudson/current-device\n", "longname": "D:\\git\\live2d-widget.js\\README.md", "name": "./README.md", "static": true, @@ -10135,7 +10546,7 @@ }, { "kind": "packageJSON", - "content": "{\n \"name\": \"live2d-widget\",\n \"version\": \"3.0.0\",\n \"description\": \"Add the Sseexxyyy live2d to webpages.\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"inst:dev\": \"npm install -g commitizen&&npm install\",\n \"build:dev\": \"webpack --progress --colors\",\n \"build:prod\": \"webpack --env prod --progress --colors\",\n \"build:doc\": \"./node_modules/.bin/esdoc\",\n \"commit\": \"git pull&&git-cz\",\n \"_changelog\": \"./node_modules/.bin/conventional-changelog -i docsrc/CHANGELOG.md -r 0 -s -u\",\n \"changelog\": \"git pull&&npm run _changelog&&git add doc/CHANGELOG.md&&git commit -m \\\"docs: update CHANGELOG\\\"&&git push&&git status\",\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n \"ghpages\": \"push-gh-pages\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/xiazeyu/live2d-widget.js.git\"\n },\n \"author\": \"xiazeyu \",\n \"contributors\": [\n \"xiazeyu \",\n \"EYHN \"\n ],\n \"maintainers\": [\n \"xiazeyu \",\n \"EYHN \"\n ],\n \"license\": \"GPL-2.0\",\n \"bugs\": {\n \"url\": \"https://github.com/xiazeyu/live2d-widget.js/issues\"\n },\n \"homepage\": \"https://github.com/xiazeyu/live2d-widget.js#readme\",\n \"devDependencies\": {\n \"babel-core\": \"~6.26.0\",\n \"babel-loader\": \"~7.1.2\",\n \"babel-plugin-lodash\": \"~3.3.2\",\n \"babel-plugin-syntax-dynamic-import\": \"~6.18.0\",\n \"babel-preset-env\": \"~1.6.1\",\n \"commitizen\": \"~2.9.6\",\n \"core-js\": \"~2.5.3\",\n \"current-device\": \"~0.7.2\",\n \"cz-conventional-changelog\": \"~2.1.0\",\n \"esdoc\": \"~1.0.4\",\n \"esdoc-ecmascript-proposal-plugin\": \"~1.0.0\",\n \"esdoc-standard-plugin\": \"~1.0.0\",\n \"html-loader\": \"~0.5.4\",\n \"lodash\": \"~4.17.4\",\n \"lodash-webpack-plugin\": \"~0.11.4\",\n \"path\": \"~0.12.7\",\n \"uglifyjs-webpack-plugin\": \"~1.1.6\",\n \"webpack\": \"~3.10.0\",\n \"webpack-manifest-plugin\": \"~1.3.2\",\n \"webpack-visualizer-plugin\": \"~0.1.11\"\n },\n \"config\": {\n \"commitizen\": {\n \"path\": \"./node_modules/cz-conventional-changelog\"\n }\n }\n}\n", + "content": "{\n \"name\": \"live2d-widget\",\n \"version\": \"3.0.1\",\n \"description\": \"Add the Sseexxyyy live2d to webpages.\",\n \"scripts\": {\n \"inst:dev\": \"npm install -g commitizen&&npm install\",\n \"build:dev\": \"webpack --progress --colors\",\n \"build:prod\": \"webpack --env prod --progress --colors\",\n \"build:doc\": \"./node_modules/.bin/esdoc\",\n \"commit\": \"git pull&&git-cz\",\n \"_changelog\": \"./node_modules/.bin/conventional-changelog -i docsrc/CHANGELOG.md -r 0 -s -u\",\n \"changelog\": \"git pull&&npm run _changelog&&git add docsrc/CHANGELOG.md&&git commit -m \\\"docs: update CHANGELOG\\\"&&git push&&git status\",\n \"v:major\": \"npm version major\",\n \"v:pmajor\": \"npm version premajor\",\n \"v:minor\": \"npm version minor\",\n \"v:pminor\": \"npm version preminor\",\n \"v:patch\": \"npm version patch\",\n \"v:ppatch\": \"npm version prepatch\",\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n \"ghpages\": \"push-gh-pages\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/xiazeyu/live2d-widget.js.git\"\n },\n \"author\": \"xiazeyu \",\n \"contributors\": [\n \"xiazeyu \",\n \"EYHN \"\n ],\n \"maintainers\": [\n \"xiazeyu \",\n \"EYHN \"\n ],\n \"license\": \"GPL-2.0\",\n \"bugs\": {\n \"url\": \"https://github.com/xiazeyu/live2d-widget.js/issues\"\n },\n \"homepage\": \"https://github.com/xiazeyu/live2d-widget.js#readme\",\n \"devDependencies\": {\n \"babel-core\": \"^6.26.0\",\n \"babel-loader\": \"^7.1.2\",\n \"babel-plugin-lodash\": \"^3.3.2\",\n \"babel-plugin-syntax-dynamic-import\": \"^6.18.0\",\n \"babel-preset-env\": \"^1.6.1\",\n \"commitizen\": \"^2.9.6\",\n \"core-js\": \"^2.5.3\",\n \"current-device\": \"^0.7.2\",\n \"cz-conventional-changelog\": \"^2.1.0\",\n \"esdoc\": \"^1.0.4\",\n \"esdoc-ecmascript-proposal-plugin\": \"^1.0.0\",\n \"esdoc-standard-plugin\": \"^1.0.0\",\n \"html-loader\": \"^0.5.4\",\n \"lodash\": \"^4.17.4\",\n \"lodash-webpack-plugin\": \"^0.11.4\",\n \"path\": \"^0.12.7\",\n \"uglifyjs-webpack-plugin\": \"^1.1.6\",\n \"webpack\": \"^3.10.0\",\n \"webpack-manifest-plugin\": \"^1.3.2\",\n \"webpack-visualizer-plugin\": \"^0.1.11\"\n },\n \"config\": {\n \"commitizen\": {\n \"path\": \"./node_modules/cz-conventional-changelog\"\n }\n }\n}\n", "longname": "D:\\git\\live2d-widget.js\\package.json", "name": "package.json", "static": true, @@ -10144,7 +10555,7 @@ { "kind": "manualIndex", "globalIndex": true, - "content": "[![npm][npm]][npm-url]\n[![deps][deps]][deps-url]\n[![devdeps][devdeps]][devdeps-url]\n\n[![downloads][downloads]][downloads-url]\n[![downloads-month][downloads-month]][downloads-month-url]\n\n[![GitHub stars][GitHub stars]][GitHub stars-url]\n[![GitHub forks][GitHub forks]][GitHub forks-url]\n[![GitHub issues][GitHub issues]][GitHub issues-url]\n\n[![Commitizen friendly][Commitizen friendly]][Commitizen friendly-url]\n[![PRs Welcome][PRs Welcome]][PRs Welcome-url]\n[![license][license]][license-url]\n\n\n# live2d-widget.js\n\nAdd the Sseexxyyy live2d to your webpages!\n\n[TOC]\n\nDemo: [Still working, but you can have a look~](https://xiazeyu.github.io/live2d-widget.js/dev.html)\n\nDocs(including APIs): [Click me!](https://xiazeyu.github.io/live2d-widget.js/)\n\nOnline generator: [TBD.](javascript:void(0);)\n\n\n## Useage\n\n### Hexo\n\nPlease visit [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d) for the hexo plugin.\n\n### Webpack\n\nInstall the module:\n\n```\nnpm install --save live2d-widget.js\n```\n\nImport the module:\n\n```js\n// using as es modules\nimport 'live2d-widget.js';\n```\n\nThen call the function along with your config.\n\n```js\nL2Dwidget.init({\n 'config1': 'value1',\n 'config2': 'value2',\n});\n```\n\n### Online\n\nhttps://github.com/jsdelivr/jsdelivr/\n\nTBD.\n\n## Settings\n\nSee src/SettingTip.txt\n\n
      Current supported models:
      \n\n - `chitose`\n - `Epsilon2.1`\n - `Gantzert_Felixander`\n - `haru01`\n - `haru02`\n - `haruto`\n - `hibiki`\n - `hijiki`\n - `izumi`\n - `koharu`\n - `miku`\n - `nico`\n - `ni-j`\n - `nipsilon`\n - `nito`\n - `shizuku`\n - `tororo`\n - `tsumiki`\n - `Unitychan`\n - `wanko`\n - `z16`\n\n
      \n\n## Custom model\n\n1. Create a `live2d_models` folder at your blog's root directory.\n\n2. Create a folder by the name of your model.\n\n3. Copy your model to this folder.\n\n**Attention! The path of the model's json must be `/live2d_models/{name}/{name}.model.json`**\n\n
      An Example:
      \n\nYour model is named `mymiku`.\n\nThen, create a folder at `/` (Which should exists `_config.yml` 、`sources` 、 `themes` ) named `mymiku`.\n\nCopy your model to `/live2d_models/mymiku/`.\n\nUp to now, there should be `mymiku.model.json` in the directory of `/live2d_models/mymiku/`.\n\n
      \n\n
      ~The problem was once releated to [(#22)](https://github.com/EYHN/hexo-helper-live2d/issues/22).~\n\n
      \n\nEnjoy!:beer:\n\n> This is my first hexo plugin, star :star: and watch :eyeglasses:, pull request is also welcomed.\n\nGithub: [https://github.com/EYHN/hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d)\n\nissues: [https://github.com/EYHN/hexo-helper-live2d/issues](https://github.com/EYHN/hexo-helper-live2d/issues)\n\n\n## Contribute\n\n**Please pay enough attention to this document if you want to commit your changes or submit issues.**\n\n[CONTRIBUTING](./CONTRIBUTING.md)\n\n## Releated projects\n\n- [Cubism SDK WebGL 2.1](http://sites.cybernoids.jp/cubism-sdk2_e/webgl2-1)\n\n- [pixi-live2d](https://github.com/avgjs/pixi-live2d)\n\n- [CubismJsComponents](https://github.com/Live2D/CubismJsComponents)\n\n- [live2d-widget.js](https://github.com/xiazeyu/live2d-widget.js)\n\n- [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d)\n\n\n## About me\n\n[![Author][author]][author-url]\n\n[![QQ][qq]][qq-url]\n\n[![Email][email]][email-url]\n\n\n## Imported\n\n[![current-device][current-device]][current-device-url]\n\n## Special Thanks\n\n- @mashirozx \n- @fghrsh\n- @journey-ad\n- @gwzz\n\n
      \n\nOpen sourced under the GPL v2.0 license.\n\n[npm]: https://badge.fury.io/js/hexo-helper-live2d.svg?label=hexo-helper-live2d\n[npm-url]: https://www.npmjs.com/package/hexo-helper-live2d\n\n[deps]: https://img.shields.io/david/EYHN/hexo-helper-live2d.svg\n[deps-url]: javascript:void(0);\n\n[devdeps]: https://img.shields.io/david/dev/EYHN/hexo-helper-live2d.svg\n[devdeps-url]: javascript:void(0);\n\n[license]: https://img.shields.io/github/license/EYHN/hexo-helper-live2d.svg\n[license-url]: https://github.com/EYHN/hexo-helper-live2d/blob/master/LICENSE\n\n[PRs Welcome]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[PRs Welcome-url]: http://makeapullrequest.com\n\n[downloads]: https://img.shields.io/npm/dt/hexo-helper-live2d.svg\n[downloads-url]: https://www.npmjs.com/package/hexo-helper-live2d\n\n[downloads-month]: https://img.shields.io/npm/dm/hexo-helper-live2d.svg\n[downloads-month-url]: https://www.npmjs.com/package/hexo-helper-live2d\n\n[Commitizen friendly]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[Commitizen friendly-url]: http://commitizen.github.io/cz-cli/\n\n[GitHub stars]: https://img.shields.io/github/stars/EYHN/hexo-helper-live2d.svg\n[GitHub stars-url]: https://github.com/EYHN/hexo-helper-live2d/stargazers\n\n[GitHub forks]: https://img.shields.io/github/forks/EYHN/hexo-helper-live2d.svg\n[GitHub forks-url]: https://github.com/EYHN/hexo-helper-live2d/network\n\n[GitHub issues]: https://img.shields.io/github/issues/EYHN/hexo-helper-live2d.svg\n[GitHub issues-url]: https://github.com/EYHN/hexo-helper-live2d/issues\n\n[author]: https://img.shields.io/badge/author-cneyhn-green.svg\n[author-url]: https://delusion.coding.me/\n\n[qq]: https://img.shields.io/badge/QQ-1106996185-blue.svg\n[qq-url]: http://wpa.qq.com/msgrd?v=3&uin=&site=qq&menu=yes\n\n[email]: https://img.shields.io/badge/Emali%20me-cneyhn@gmail.com-green.svg\n[email-url]: mailto:cneyhn@gmail.com\n\n[current-device]: https://img.shields.io/npm/v/current-device.svg?label=current-device\n[current-device-url]: https://github.com/matthewhudson/current-device\n", + "content": "[![npm][npm]][npm-url]\n[![deps][deps]][deps-url]\n[![devdeps][devdeps]][devdeps-url]\n\n[![downloads][downloads]][downloads-url]\n[![downloads-month][downloads-month]][downloads-month-url]\n\n[![GitHub stars][GitHub stars]][GitHub stars-url]\n[![GitHub forks][GitHub forks]][GitHub forks-url]\n[![GitHub issues][GitHub issues]][GitHub issues-url]\n\n[![Commitizen friendly][Commitizen friendly]][Commitizen friendly-url]\n[![PRs Welcome][PRs Welcome]][PRs Welcome-url]\n[![license][license]][license-url]\n\n\n# live2d-widget.js\n\nAdd the Sseexxyyy live2d to your webpages! Seperated from [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d).\n\nDemo: [Still working, but you can have a look~](https://xiazeyu.github.io/live2d-widget.js/dev.html)\n\nDocs(including APIs): [Click me!](https://xiazeyu.github.io/live2d-widget.js/)\n\nOnline generator: [TBD.](javascript:void(0);)\n\n\n## Useage\n\n### Hexo\n\nPlease visit [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d) for the hexo plugin.\n\n### Webpages\n\n#### File on your server\n\nDownload the [latest release](https://github.com/xiazeyu/live2d-widget.js/releases),\n\nand then copy and extract the `lib` folder to your website.\n\nUse [online generator](javascript:void(0);) **(recommended)** to generate codes.\n\n
      However, if you want to do it manually, follow the instruction below:
      \n\nimport the js:\n\n```html\n\n\n\n```\n\nThen call the function along with your config.\n\n```js\nL2Dwidget.init({\n 'config1': 'value1',\n 'config2': 'value2',\n});\n```\n\n
      \n\n### Bookmark (any pages)\n\nTBD.\n\nhttps://www.cnblogs.com/pcyy/p/5655542.html\n\n\n## Settings\n\nSee the [document](https://xiazeyu.github.io/live2d-widget.js/docs/class/src/index.js~L2Dwidget.html#instance-method-init).\n\n
      Current supported models:
      \n\n - `chitose`\n - `Epsilon2.1`\n - `Gantzert_Felixander`\n - `haru01`\n - `haru02`\n - `haruto`\n - `hibiki`\n - `hijiki`\n - `izumi`\n - `koharu`\n - `miku`\n - `nico`\n - `ni-j`\n - `nipsilon`\n - `nito`\n - `shizuku`\n - `tororo`\n - `tsumiki`\n - `Unitychan`\n - `wanko`\n - `z16`\n\n
      \n\n## Custom model\n\n1. Create a `live2d_models` folder at your blog's root directory.\n\n2. Create a folder by the name of your model.\n\n3. Copy your model to this folder.\n\n**Attention! The path of the model's json must be `/live2d_models/{name}/{name}.model.json`**\n\n
      An Example:
      \n\nYour model is named `mymiku`.\n\nThen, create a folder at `/` (Which should exists `_config.yml` 、`sources` 、 `themes` ) named `mymiku`.\n\nCopy your model to `/live2d_models/mymiku/`.\n\nUp to now, there should be `mymiku.model.json` in the directory of `/live2d_models/mymiku/`.\n\n
      \n\n
      ~The problem was once releated to [(#22)](https://github.com/EYHN/hexo-helper-live2d/issues/22).~\n\n
      \n\nEnjoy!:beer:\n\n> This is my first hexo plugin, star :star: and watch :eyeglasses:, pull request is also welcomed.\n\nGithub: [https://github.com/EYHN/hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d)\n\nissues: [https://github.com/EYHN/hexo-helper-live2d/issues](https://github.com/EYHN/hexo-helper-live2d/issues)\n\n\n## Contribute\n\n**Please pay enough attention to this document if you want to commit your changes or submit issues.**\n\n[CONTRIBUTING](./CONTRIBUTING.md)\n\n## Releated projects\n\n- [Cubism SDK WebGL 2.1](http://sites.cybernoids.jp/cubism-sdk2_e/webgl2-1)\n\n- [live2d-widget.js](https://github.com/xiazeyu/live2d-widget.js)\n\n- [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d)\n\n- [pixi-live2d](https://github.com/avgjs/pixi-live2d)\n\n- [CubismJsComponents](https://github.com/Live2D/CubismJsComponents)\n\n\n\n## About me\n\n[![Author][author]][author-url]\n\n[![Author QQ][author-qq]][author-qq-url]\n\n[![Author Email][author-email]][author-email-url]\n\n\n[![Collaborator 0][collaborator0]][collaborator0-url]\n\n[![Collaborator 0 QQ][collaborator0-qq]][collaborator0-qq-url]\n\n[![Collaborator 0 Email][collaborator0-email]][collaborator0-email-url]\n\n\n## Imported\n\n[![current-device][current-device]][current-device-url]\n\n## Special Thanks\n\n- @mashirozx \n- @fghrsh\n- @journey-ad\n- @gwzz\n\n
      \n\nOpen sourced under the GPL v2.0 license.\n\n[npm]: https://badge.fury.io/js/live2d-widget.svg?label=live2d-widget\n[npm-url]: https://www.npmjs.com/package/live2d-widget\n\n[deps]: https://img.shields.io/david/xiazeyu/live2d-widget.js.svg\n[deps-url]: javascript:void(0);\n\n[devdeps]: https://img.shields.io/david/dev/xiazeyu/live2d-widget.js.svg\n[devdeps-url]: javascript:void(0);\n\n[license]: https://img.shields.io/github/license/xiazeyu/live2d-widget.js.svg\n[license-url]: https://github.com/xiazeyu/live2d-widget.js/blob/master/LICENSE\n\n[PRs Welcome]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[PRs Welcome-url]: http://makeapullrequest.com\n\n[downloads]: https://img.shields.io/npm/dt/live2d-widget.svg\n[downloads-url]: https://www.npmjs.com/package/live2d-widget\n\n[downloads-month]: https://img.shields.io/npm/dm/live2d-widget.svg\n[downloads-month-url]: https://www.npmjs.com/package/live2d-widget\n\n[Commitizen friendly]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[Commitizen friendly-url]: http://commitizen.github.io/cz-cli/\n\n[GitHub stars]: https://img.shields.io/github/stars/xiazeyu/live2d-widget.js.svg\n[GitHub stars-url]: https://github.com/xiazeyu/live2d-widget.js/stargazers\n\n[GitHub forks]: https://img.shields.io/github/forks/xiazeyu/live2d-widget.js.svg\n[GitHub forks-url]: https://github.com/xiazeyu/live2d-widget.js/network\n\n[GitHub issues]: https://img.shields.io/github/issues/xiazeyu/live2d-widget.js.svg\n[GitHub issues-url]: https://github.com/xiazeyu/live2d-widget.js/issues\n\n[author]: https://img.shields.io/badge/author-cneyhn-green.svg\n[author-url]: https://delusion.coding.me/\n\n[author-qq]: https://img.shields.io/badge/QQ-1106996185-blue.svg\n[author-qq-url]: tencent://message/?uin=1106996185&Site=Senlon.Net&Menu=yes\n\n[author-email]: https://img.shields.io/badge/Emali%20me-cneyhn@gmail.com-green.svg\n[author-email-url]: mailto:cneyhn@gmail.com\n\n[collaborator0]: https://img.shields.io/badge/author-xiazeyu-green.svg\n[collaborator0-url]: https://xiazeyu.coding.me/\n\n[collaborator0-qq]: https://img.shields.io/badge/QQ-2320732807-blue.svg\n[collaborator0-qq-url]: tencent://message/?uin=2320732807&Site=Senlon.Net&Menu=yes\n\n[collaborator0-email]: https://img.shields.io/badge/Emali%20me-xiazeyu_2011@126.com-green.svg\n[collaborator0-email-url]: mailto:xiazeyu_2011@126.com\n\n[current-device]: https://img.shields.io/npm/v/current-device.svg?label=current-device\n[current-device-url]: https://github.com/matthewhudson/current-device\n", "longname": "D:\\git\\live2d-widget.js\\README.md", "name": "./README.md", "static": true, @@ -10161,7 +10572,7 @@ "kind": "manual", "longname": "D:\\git\\live2d-widget.js\\docsrc\\CHANGELOG.md", "name": "./docsrc/CHANGELOG.md", - "content": "\n# 3.0.0 (2018-01-12)\n\n* chore: add comments ([24b43e3](https://github.com/xiazeyu/live2d-widget.js/commit/24b43e3))\n* chore: new build version ([7216003](https://github.com/xiazeyu/live2d-widget.js/commit/7216003))\n* docs: add ESDoc ([9a67891](https://github.com/xiazeyu/live2d-widget.js/commit/9a67891))\n* docs: fix bugs, update ([14d0730](https://github.com/xiazeyu/live2d-widget.js/commit/14d0730))\n* docs: Update API varible types ([f3ab76b](https://github.com/xiazeyu/live2d-widget.js/commit/f3ab76b))\n* docs: update CHANGELOG ([89765f5](https://github.com/xiazeyu/live2d-widget.js/commit/89765f5))\n* docs(LICENSE): combine LICENSE ([6be306f](https://github.com/xiazeyu/live2d-widget.js/commit/6be306f))\n* feat: config ([62118e1](https://github.com/xiazeyu/live2d-widget.js/commit/62118e1))\n* feat: config validater ([cc587b2](https://github.com/xiazeyu/live2d-widget.js/commit/cc587b2))\n* feat: delete config validate function ([0234132](https://github.com/xiazeyu/live2d-widget.js/commit/0234132))\n* feat: finish config validater ([67a0558](https://github.com/xiazeyu/live2d-widget.js/commit/67a0558))\n* feat: fix webpack PublicPath prob. ([093ee10](https://github.com/xiazeyu/live2d-widget.js/commit/093ee10))\n* feat: import lodash ([be5531d](https://github.com/xiazeyu/live2d-widget.js/commit/be5531d))\n* feat: marked unfinished files, rebuild file structure, config works ([62555a9](https://github.com/xiazeyu/live2d-widget.js/commit/62555a9))\n* feat: update source code ([28d350b](https://github.com/xiazeyu/live2d-widget.js/commit/28d350b))\n* feat: use ~ to mark version ([4f0e865](https://github.com/xiazeyu/live2d-widget.js/commit/4f0e865))\n* feat(config): new config ([5f13a2b](https://github.com/xiazeyu/live2d-widget.js/commit/5f13a2b))\n* feat(Webpack): lazy load and chunks ([ccbe0d0](https://github.com/xiazeyu/live2d-widget.js/commit/ccbe0d0))\n* feat(Webpack): updated webpack config ([260cbad](https://github.com/xiazeyu/live2d-widget.js/commit/260cbad))\n* fix: old dependencies ([7a2f272](https://github.com/xiazeyu/live2d-widget.js/commit/7a2f272))\n* fix(webpack): fix webpack publicPath issue ([a8a630e](https://github.com/xiazeyu/live2d-widget.js/commit/a8a630e))\n* style: fix indent ([cb6f7d9](https://github.com/xiazeyu/live2d-widget.js/commit/cb6f7d9))\n* Initial commit ([cc61b39](https://github.com/xiazeyu/live2d-widget.js/commit/cc61b39))\n* The Real Initial Commit ([23ba71c](https://github.com/xiazeyu/live2d-widget.js/commit/23ba71c))\n\n\n\n", + "content": "\n# Unreleased (2018-01-19)\n\n\n\n\n\n## 3.0.1 (2018-01-19)\n\n* 3.0.1 ([34a76c8](https://github.com/xiazeyu/live2d-widget.js/commit/34a76c8))\n* docs: relink js to unpkg CDN ([bde33f6](https://github.com/xiazeyu/live2d-widget.js/commit/bde33f6))\n* fix: achieve frameshot, recover event system ([155d46b](https://github.com/xiazeyu/live2d-widget.js/commit/155d46b))\n* style: change L2Dwidget into Class ([c98040a](https://github.com/xiazeyu/live2d-widget.js/commit/c98040a))\n* build: add script to bump version better ([c304bc2](https://github.com/xiazeyu/live2d-widget.js/commit/c304bc2))\n\n\n\n\n## 3.0.6 (2018-01-19)\n\n* 3.0.6 ([15ebe5d](https://github.com/xiazeyu/live2d-widget.js/commit/15ebe5d))\n\n\n\n\n## 3.0.5 (2018-01-19)\n\n* 3.0.5 ([34514d6](https://github.com/xiazeyu/live2d-widget.js/commit/34514d6))\n\n\n\n\n## 3.0.4 (2018-01-19)\n\n* 3.0.4 ([d66ab98](https://github.com/xiazeyu/live2d-widget.js/commit/d66ab98))\n\n\n\n\n## 3.0.4-0 (2018-01-19)\n\n* 3.0.4-0 ([2c919c8](https://github.com/xiazeyu/live2d-widget.js/commit/2c919c8))\n\n\n\n\n## 3.0.3-0 (2018-01-19)\n\n* 3.0.3-0 ([70cfeda](https://github.com/xiazeyu/live2d-widget.js/commit/70cfeda))\n\n\n\n\n## 3.0.2-0 (2018-01-19)\n\n* 3.0.2-0 ([3d4f065](https://github.com/xiazeyu/live2d-widget.js/commit/3d4f065))\n\n\n\n\n## 3.0.1-0 (2018-01-19)\n\n* 3.0.1-0 ([8458a4f](https://github.com/xiazeyu/live2d-widget.js/commit/8458a4f))\n* build(fix changelog script path problem): ([67c56ee](https://github.com/xiazeyu/live2d-widget.js/commit/67c56ee))\n* chore(update dependency settings): ([7796aac](https://github.com/xiazeyu/live2d-widget.js/commit/7796aac))\n* docs: update CHANGELOG ([c840cfa](https://github.com/xiazeyu/live2d-widget.js/commit/c840cfa))\n* docs(method of execute): finish the doc of launch it (use var) ([1b43dc0](https://github.com/xiazeyu/live2d-widget.js/commit/1b43dc0))\n* build: remove ghpages from npm publish ([7401ffe](https://github.com/xiazeyu/live2d-widget.js/commit/7401ffe))\n\n\n\n\n# 3.0.0 (2018-01-13)\n\n* feat: 3.0 API now is fixed. reday to publish ([32a7b6d](https://github.com/xiazeyu/live2d-widget.js/commit/32a7b6d))\n* feat: API chanes again ! get current frame ([cc76f02](https://github.com/xiazeyu/live2d-widget.js/commit/cc76f02))\n* feat: config ([62118e1](https://github.com/xiazeyu/live2d-widget.js/commit/62118e1))\n* feat: config validater ([cc587b2](https://github.com/xiazeyu/live2d-widget.js/commit/cc587b2))\n* feat: delete config validate function ([0234132](https://github.com/xiazeyu/live2d-widget.js/commit/0234132))\n* feat: elementMgr codes, modify API ([e6433e3](https://github.com/xiazeyu/live2d-widget.js/commit/e6433e3))\n* feat: elementMgr functionally done ([aa09c5d](https://github.com/xiazeyu/live2d-widget.js/commit/aa09c5d))\n* feat: FINALLY USEABLE (basically) ([7c121a2](https://github.com/xiazeyu/live2d-widget.js/commit/7c121a2))\n* feat: finish config validater ([67a0558](https://github.com/xiazeyu/live2d-widget.js/commit/67a0558))\n* feat: fix webpack PublicPath prob. ([093ee10](https://github.com/xiazeyu/live2d-widget.js/commit/093ee10))\n* feat: http(s) protocol supports for model's json's textures ([d9b854a](https://github.com/xiazeyu/live2d-widget.js/commit/d9b854a))\n* feat: import lodash ([be5531d](https://github.com/xiazeyu/live2d-widget.js/commit/be5531d))\n* feat: marked unfinished files, rebuild file structure, config works ([62555a9](https://github.com/xiazeyu/live2d-widget.js/commit/62555a9))\n* feat: modified live2d core js ([d3c7ab5](https://github.com/xiazeyu/live2d-widget.js/commit/d3c7ab5))\n* feat: TEST Create DOM use js ([1a8db01](https://github.com/xiazeyu/live2d-widget.js/commit/1a8db01))\n* feat: update source code ([28d350b](https://github.com/xiazeyu/live2d-widget.js/commit/28d350b))\n* feat: use ~ to mark version ([4f0e865](https://github.com/xiazeyu/live2d-widget.js/commit/4f0e865))\n* feat(API): typo ([b342953](https://github.com/xiazeyu/live2d-widget.js/commit/b342953))\n* feat(config): new config ([5f13a2b](https://github.com/xiazeyu/live2d-widget.js/commit/5f13a2b))\n* feat(Webpack): lazy load and chunks ([ccbe0d0](https://github.com/xiazeyu/live2d-widget.js/commit/ccbe0d0))\n* feat(Webpack): updated webpack config ([260cbad](https://github.com/xiazeyu/live2d-widget.js/commit/260cbad))\n* chore: add comments ([24b43e3](https://github.com/xiazeyu/live2d-widget.js/commit/24b43e3))\n* chore: new build version ([c698c90](https://github.com/xiazeyu/live2d-widget.js/commit/c698c90))\n* chore: new build version ([7216003](https://github.com/xiazeyu/live2d-widget.js/commit/7216003))\n* docs: add ESDoc ([9a67891](https://github.com/xiazeyu/live2d-widget.js/commit/9a67891))\n* docs: added demo and doc ([5d4cddc](https://github.com/xiazeyu/live2d-widget.js/commit/5d4cddc))\n* docs: fix bugs, update ([14d0730](https://github.com/xiazeyu/live2d-widget.js/commit/14d0730))\n* docs: new doc build logic ([a7f1d54](https://github.com/xiazeyu/live2d-widget.js/commit/a7f1d54))\n* docs: Update API varible types ([f3ab76b](https://github.com/xiazeyu/live2d-widget.js/commit/f3ab76b))\n* docs: update CHANGELOG ([abf0618](https://github.com/xiazeyu/live2d-widget.js/commit/abf0618))\n* docs: update CHANGELOG ([89765f5](https://github.com/xiazeyu/live2d-widget.js/commit/89765f5))\n* docs: update docs ([0ec0dec](https://github.com/xiazeyu/live2d-widget.js/commit/0ec0dec))\n* docs: update docs ([3955611](https://github.com/xiazeyu/live2d-widget.js/commit/3955611))\n* docs(LICENSE): combine LICENSE ([6be306f](https://github.com/xiazeyu/live2d-widget.js/commit/6be306f))\n* feat: ([8c668b1](https://github.com/xiazeyu/live2d-widget.js/commit/8c668b1))\n* Initial commit ([cc61b39](https://github.com/xiazeyu/live2d-widget.js/commit/cc61b39))\n* The Real Initial Commit ([23ba71c](https://github.com/xiazeyu/live2d-widget.js/commit/23ba71c))\n* build: new doc build method ([6854707](https://github.com/xiazeyu/live2d-widget.js/commit/6854707))\n* fix: old dependencies ([7a2f272](https://github.com/xiazeyu/live2d-widget.js/commit/7a2f272))\n* fix(webpack): fix webpack publicPath issue ([a8a630e](https://github.com/xiazeyu/live2d-widget.js/commit/a8a630e))\n* style: fix indent ([cb6f7d9](https://github.com/xiazeyu/live2d-widget.js/commit/cb6f7d9))\n\n\n### BREAKING CHANGE\n\n* change userConfig.display.AA to userConfig.display.antialias\n* change userConfig.display.widght to userConfig.display.width\n* Please use L2DWidget.init() and L2DWidget.captureFrame() instead of initL2DWidget()\n\n\n", "static": true, "access": "public" } diff --git a/ghpages/docs/manual/CHANGELOG.html b/ghpages/docs/manual/CHANGELOG.html index ec2f507..0651296 100644 --- a/ghpages/docs/manual/CHANGELOG.html +++ b/ghpages/docs/manual/CHANGELOG.html @@ -31,38 +31,112 @@ -

      -

      3.0.0 (2018-01-12)

      -

      npm +

      npm

      -

      downloads -downloads-month

      -

      GitHub stars -GitHub forks -GitHub issues

      +

      downloads +downloads-month

      +

      GitHub stars +GitHub forks +GitHub issues

      Commitizen friendly PRs Welcome -license

      -

      live2d-widget.js

      Add the Sseexxyyy live2d to your webpages!

      -

      [TOC]

      +license

      +

      live2d-widget.js

      Add the Sseexxyyy live2d to your webpages! Seperated from hexo-helper-live2d.

      Demo: Still working, but you can have a look~

      Docs(including APIs): Click me!

      Online generator: ;)

      Useage

      Hexo

      Please visit hexo-helper-live2d for the hexo plugin.

      -

      Webpack

      Install the module:

      -
      npm install --save live2d-widget.js
      -

      Import the module:

      -
      // using as es modules
      -import 'live2d-widget.js';
      -
      -

      Then call the function along with your config.

      -
      L2Dwidget.init({
      +

      Webpages

      File on your server

      Download the latest release,

      +

      and then copy and extract the lib folder to your website.

      +

      Use ;) (recommended) to generate codes.

      +

      However, if you want to do it manually, follow the instruction below:
      + +import the js: + +html + +<script src = "( your script path here )"></script> + +Then call the function along with your config. + +js +L2Dwidget.init({ 'config1': 'value1', 'config2': 'value2', }); -
      -

      Online

      https://github.com/jsdelivr/jsdelivr/

      -

      TBD.

      -

      Settings

      See src/SettingTip.txt

      + +
+ +

+

Bookmark (any pages)

TBD.

+

https://www.cnblogs.com/pcyy/p/5655542.html

+

Settings

See the document.

Current supported models:
- chitose @@ -132,18 +151,21 @@

Contribute

Please pay enough attention to thi

Releated projects

About me

Author

-

QQ

-

Email

+

Author QQ

+

Author Email

+

Collaborator 0

+

Collaborator 0 QQ

+

Collaborator 0 Email

Imported

current-device

Special Thanks

  • @mashirozx
  • @@ -161,33 +183,54 @@

    Special Thanks

      -

      3.0.0 (2018-01-12)

        -
      • chore: add comments (24b43e3)
      • -
      • chore: new build version (7216003)
      • -
      • docs: add ESDoc (9a67891)
      • -
      • docs: fix bugs, update (14d0730)
      • -
      • docs: Update API varible types (f3ab76b)
      • -
      • docs: update CHANGELOG (89765f5)
      • -
      • docs(LICENSE): combine LICENSE (6be306f)
      • +

        3.0.0 (2018-01-13)

          +
        • feat: 3.0 API now is fixed. reday to publish (32a7b6d)
        • +
        • feat: API chanes again ! get current frame (cc76f02)
        • feat: config (62118e1)
        • feat: config validater (cc587b2)
        • feat: delete config validate function (0234132)
        • +
        • feat: elementMgr codes, modify API (e6433e3)
        • +
        • feat: elementMgr functionally done (aa09c5d)
        • +
        • feat: FINALLY USEABLE (basically) (7c121a2)
        • feat: finish config validater (67a0558)
        • feat: fix webpack PublicPath prob. (093ee10)
        • +
        • feat: http(s) protocol supports for model's json's textures (d9b854a)
        • feat: import lodash (be5531d)
        • feat: marked unfinished files, rebuild file structure, config works (62555a9)
        • +
        • feat: modified live2d core js (d3c7ab5)
        • +
        • feat: TEST Create DOM use js (1a8db01)
        • feat: update source code (28d350b)
        • feat: use ~ to mark version (4f0e865)
        • +
        • feat(API): typo (b342953)
        • feat(config): new config (5f13a2b)
        • feat(Webpack): lazy load and chunks (ccbe0d0)
        • feat(Webpack): updated webpack config (260cbad)
        • +
        • chore: add comments (24b43e3)
        • +
        • chore: new build version (c698c90)
        • +
        • chore: new build version (7216003)
        • +
        • docs: add ESDoc (9a67891)
        • +
        • docs: added demo and doc (5d4cddc)
        • +
        • docs: fix bugs, update (14d0730)
        • +
        • docs: new doc build logic (a7f1d54)
        • +
        • docs: Update API varible types (f3ab76b)
        • +
        • docs: update CHANGELOG (abf0618)
        • +
        • docs: update CHANGELOG (89765f5)
        • +
        • docs: update docs (0ec0dec)
        • +
        • docs: update docs (3955611)
        • +
        • docs(LICENSE): combine LICENSE (6be306f)
        • +
        • feat: (8c668b1)
        • +
        • Initial commit (cc61b39)
        • +
        • The Real Initial Commit (23ba71c)
        • +
        • build: new doc build method (6854707)
        • fix: old dependencies (7a2f272)
        • fix(webpack): fix webpack publicPath issue (a8a630e)
        • style: fix indent (cb6f7d9)
        • -
        • Initial commit (cc61b39)
        • -
        • The Real Initial Commit (23ba71c)
        • +

        BREAKING CHANGE

          +
        • change userConfig.display.AA to userConfig.display.antialias
        • +
        • change userConfig.display.widght to userConfig.display.width
        • +
        • Please use L2DWidget.init() and L2DWidget.captureFrame() instead of initL2DWidget()
        - +
      diff --git a/ghpages/docs/script/search_index.js b/ghpages/docs/script/search_index.js index 150952d..eb28720 100644 --- a/ghpages/docs/script/search_index.js +++ b/ghpages/docs/script/search_index.js @@ -79,9 +79,9 @@ window.esdocSearchIndex = [ ], [ "live2d-widget/src/index.js~l2dwidget", - "function/index.html#static-function-L2Dwidget", + "class/src/index.js~L2Dwidget.html", "L2Dwidget live2d-widget/src/index.js", - "function" + "class" ], [ "live2d-widget/src/lib/live2dframework.js~live2dframework", @@ -497,6 +497,24 @@ window.esdocSearchIndex = [ "src/index.js", "file" ], + [ + "src/index.js~l2dwidget#captureframe", + "class/src/index.js~L2Dwidget.html#instance-method-captureFrame", + "src/index.js~L2Dwidget#captureFrame", + "method" + ], + [ + "src/index.js~l2dwidget#downloadframe", + "class/src/index.js~L2Dwidget.html#instance-method-downloadFrame", + "src/index.js~L2Dwidget#downloadFrame", + "method" + ], + [ + "src/index.js~l2dwidget#init", + "class/src/index.js~L2Dwidget.html#instance-method-init", + "src/index.js~L2Dwidget#init", + "method" + ], [ "src/lib/live2dframework.js", "file/src/lib/Live2DFramework.js.html", diff --git a/ghpages/docs/source.html b/ghpages/docs/source.html index 476e129..8dbf2cb 100644 --- a/ghpages/docs/source.html +++ b/ghpages/docs/source.html @@ -29,13 +29,13 @@ -

      Source 61/315

      +

      Source 64/320

      @@ -92,13 +92,13 @@ - + - - - - + + + + @@ -120,9 +120,9 @@ - + - + @@ -142,12 +142,12 @@ - - - - - - + + + + + + @@ -198,9 +198,9 @@ - + - +
      2018-01-07 15:09:56 (UTC)
      src/cLive2DApp.jssrc/cLive2DApp.js captureFrame theRealInit6 %2/3210836 byte4162018-01-07 16:03:25 (UTC)6 %2/3311012 byte4282018-01-06 18:17:10 (UTC)
      src/cManager.jssrc/config/configMgr.js configApplyer 66 %2/31636 byte1653 byte 862018-01-07 16:18:15 (UTC)2018-01-06 17:43:27 (UTC)
      src/config/configValidater.js2018-01-07 16:18:33 (UTC)
      src/index.jsL2Dwidget100 %1/14441 byte952018-01-07 16:17:55 (UTC)src/index.jsL2Dwidget80 %4/54453 byte1062018-01-06 18:13:43 (UTC)
      src/lib/Live2DFramework.jssrc/wpPublicPath.js getCurrentPath 100 %1/12939 byte2947 byte 1052018-01-07 15:09:56 (UTC)2018-01-06 17:42:23 (UTC)
      diff --git a/ghpages/docs/variable/index.html b/ghpages/docs/variable/index.html index de811d7..ab43ba4 100644 --- a/ghpages/docs/variable/index.html +++ b/ghpages/docs/variable/index.html @@ -29,13 +29,13 @@