diff --git a/ghpages/docs/ast/source/index.js.json b/ghpages/docs/ast/source/index.js.json index b83e1f1..57728cd 100644 --- a/ghpages/docs/ast/source/index.js.json +++ b/ghpages/docs/ast/source/index.js.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 2811, + "end": 2857, "loc": { "start": { "line": 1, @@ -15,7 +15,7 @@ "program": { "type": "Program", "start": 0, - "end": 2811, + "end": 2857, "loc": { "start": { "line": 1, @@ -234,9 +234,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config\n * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json\n * @param {Number} [model.scale = 1] Scale between the model and the canvas\n * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head\n * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head\n * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine\n * @param {Number} [display.AA = 2] Antialiasing grade\n * @param {Number} [display.widget = 150] Widget to the canvas which shows the model\n * @param {Number} [display.height = 300] Height to the canvas which shows the model\n * @param {String} [display.position = 'right'] Left of right side to show\n * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas\n * @param {Number} [display.vOffset = -20] Vertical offset of the canvas\n * @param {Bool} [mobile.show = true] Whether to show on mobile device\n * @param {Number} [mobile.scale = 0.5] Scale on mobile device\n * @param {Bool} [mobile.motion = true] Whether to enable motion detection on mobile devices\n * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas\n * @param {String} [name.div = 'live2d-widget'] ID name of the div\n * @param {Number} [react.opacityDefault = 0.7] Default opacity\n * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity\n * @param {Func} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type.\n * @param {Bool} [dev.log = false] Whether to show log\n * @param {Bool} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled\n * @param {Func} [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 ", + "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config\n * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json\n * @param {Number} [model.scale = 1] Scale between the model and the canvas\n * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head\n * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head\n * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine\n * @param {Number} [display.AA = 2] Antialiasing grade\n * @param {Number} [display.widget = 150] Widget to the canvas which shows the model\n * @param {Number} [display.height = 300] Height to the canvas which shows the model\n * @param {String} [display.position = 'right'] Left of right side to show\n * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas\n * @param {Number} [display.vOffset = -20] Vertical offset of the canvas\n * @param {Boolean} [mobile.show = true] Whether to show on mobile device\n * @param {Number} [mobile.scale = 0.5] Scale on mobile device\n * @param {Boolean} [mobile.motion = true] Whether to enable motion detection on mobile devices\n * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas\n * @param {String} [name.div = 'live2d-widget'] ID name of the div\n * @param {Number} [react.opacityDefault = 0.7] Default opacity\n * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity\n * @param {Function} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type.\n * @param {Boolean} [dev.log = false] Whether to show log\n * @param {Boolean} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled\n * @param {Function} [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 ", "start": 308, - "end": 2264, + "end": 2310, "loc": { "start": { "line": 17, @@ -252,8 +252,8 @@ }, { "type": "Identifier", - "start": 2266, - "end": 2790, + "start": 2312, + "end": 2836, "loc": { "start": { "line": 44, @@ -266,8 +266,8 @@ }, "id": { "type": "Identifier", - "start": 2275, - "end": 2279, + "start": 2321, + "end": 2325, "loc": { "start": { "line": 44, @@ -288,8 +288,8 @@ "params": [ { "type": "Identifier", - "start": 2280, - "end": 2290, + "start": 2326, + "end": 2336, "loc": { "start": { "line": 44, @@ -306,8 +306,8 @@ ], "body": { "type": "BlockStatement", - "start": 2291, - "end": 2790, + "start": 2337, + "end": 2836, "loc": { "start": { "line": 44, @@ -321,8 +321,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2296, - "end": 2361, + "start": 2342, + "end": 2407, "loc": { "start": { "line": 46, @@ -335,8 +335,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 2296, - "end": 2360, + "start": 2342, + "end": 2406, "loc": { "start": { "line": 46, @@ -350,8 +350,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 2296, - "end": 2306, + "start": 2342, + "end": 2352, "loc": { "start": { "line": 46, @@ -367,8 +367,8 @@ }, "right": { "type": "ConditionalExpression", - "start": 2309, - "end": 2360, + "start": 2355, + "end": 2406, "loc": { "start": { "line": 46, @@ -381,8 +381,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2309, - "end": 2342, + "start": 2355, + "end": 2388, "loc": { "start": { "line": 46, @@ -395,8 +395,8 @@ }, "left": { "type": "UnaryExpression", - "start": 2309, - "end": 2326, + "start": 2355, + "end": 2372, "loc": { "start": { "line": 46, @@ -411,8 +411,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 2316, - "end": 2326, + "start": 2362, + "end": 2372, "loc": { "start": { "line": 46, @@ -433,8 +433,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 2331, - "end": 2342, + "start": 2377, + "end": 2388, "loc": { "start": { "line": 46, @@ -454,8 +454,8 @@ }, "consequent": { "type": "ObjectExpression", - "start": 2345, - "end": 2347, + "start": 2391, + "end": 2393, "loc": { "start": { "line": 46, @@ -470,8 +470,8 @@ }, "alternate": { "type": "Identifier", - "start": 2350, - "end": 2360, + "start": 2396, + "end": 2406, "loc": { "start": { "line": 46, @@ -490,8 +490,8 @@ }, { "type": "IfStatement", - "start": 2365, - "end": 2560, + "start": 2411, + "end": 2606, "loc": { "start": { "line": 48, @@ -504,8 +504,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2369, - "end": 2407, + "start": 2415, + "end": 2453, "loc": { "start": { "line": 48, @@ -518,8 +518,8 @@ }, "left": { "type": "MemberExpression", - "start": 2369, - "end": 2389, + "start": 2415, + "end": 2435, "loc": { "start": { "line": 48, @@ -532,8 +532,8 @@ }, "object": { "type": "MemberExpression", - "start": 2369, - "end": 2380, + "start": 2415, + "end": 2426, "loc": { "start": { "line": 48, @@ -546,8 +546,8 @@ }, "object": { "type": "Identifier", - "start": 2369, - "end": 2376, + "start": 2415, + "end": 2422, "loc": { "start": { "line": 48, @@ -563,8 +563,8 @@ }, "property": { "type": "Identifier", - "start": 2377, - "end": 2380, + "start": 2423, + "end": 2426, "loc": { "start": { "line": 48, @@ -582,8 +582,8 @@ }, "property": { "type": "Identifier", - "start": 2381, - "end": 2389, + "start": 2427, + "end": 2435, "loc": { "start": { "line": 48, @@ -602,8 +602,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 2394, - "end": 2407, + "start": 2440, + "end": 2453, "loc": { "start": { "line": 48, @@ -623,8 +623,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2408, - "end": 2560, + "start": 2454, + "end": 2606, "loc": { "start": { "line": 48, @@ -638,8 +638,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2414, - "end": 2449, + "start": 2460, + "end": 2495, "loc": { "start": { "line": 49, @@ -652,8 +652,8 @@ }, "expression": { "type": "CallExpression", - "start": 2414, - "end": 2448, + "start": 2460, + "end": 2494, "loc": { "start": { "line": 49, @@ -666,8 +666,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2414, - "end": 2425, + "start": 2460, + "end": 2471, "loc": { "start": { "line": 49, @@ -680,8 +680,8 @@ }, "object": { "type": "Identifier", - "start": 2414, - "end": 2421, + "start": 2460, + "end": 2467, "loc": { "start": { "line": 49, @@ -697,8 +697,8 @@ }, "property": { "type": "Identifier", - "start": 2422, - "end": 2425, + "start": 2468, + "end": 2471, "loc": { "start": { "line": 49, @@ -717,8 +717,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2426, - "end": 2447, + "start": 2472, + "end": 2493, "loc": { "start": { "line": 49, @@ -740,8 +740,8 @@ }, { "type": "ExpressionStatement", - "start": 2454, - "end": 2516, + "start": 2500, + "end": 2562, "loc": { "start": { "line": 50, @@ -754,8 +754,8 @@ }, "expression": { "type": "CallExpression", - "start": 2454, - "end": 2515, + "start": 2500, + "end": 2561, "loc": { "start": { "line": 50, @@ -768,8 +768,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2454, - "end": 2465, + "start": 2500, + "end": 2511, "loc": { "start": { "line": 50, @@ -782,8 +782,8 @@ }, "object": { "type": "Identifier", - "start": 2454, - "end": 2461, + "start": 2500, + "end": 2507, "loc": { "start": { "line": 50, @@ -799,8 +799,8 @@ }, "property": { "type": "Identifier", - "start": 2462, - "end": 2465, + "start": 2508, + "end": 2511, "loc": { "start": { "line": 50, @@ -819,8 +819,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2466, - "end": 2514, + "start": 2512, + "end": 2560, "loc": { "start": { "line": 50, @@ -842,8 +842,8 @@ }, { "type": "ExpressionStatement", - "start": 2521, - "end": 2556, + "start": 2567, + "end": 2602, "loc": { "start": { "line": 51, @@ -856,8 +856,8 @@ }, "expression": { "type": "CallExpression", - "start": 2521, - "end": 2555, + "start": 2567, + "end": 2601, "loc": { "start": { "line": 51, @@ -870,8 +870,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2521, - "end": 2532, + "start": 2567, + "end": 2578, "loc": { "start": { "line": 51, @@ -884,8 +884,8 @@ }, "object": { "type": "Identifier", - "start": 2521, - "end": 2528, + "start": 2567, + "end": 2574, "loc": { "start": { "line": 51, @@ -901,8 +901,8 @@ }, "property": { "type": "Identifier", - "start": 2529, - "end": 2532, + "start": 2575, + "end": 2578, "loc": { "start": { "line": 51, @@ -921,8 +921,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2533, - "end": 2554, + "start": 2579, + "end": 2600, "loc": { "start": { "line": 51, @@ -949,8 +949,8 @@ }, { "type": "ExpressionStatement", - "start": 2564, - "end": 2590, + "start": 2610, + "end": 2636, "loc": { "start": { "line": 54, @@ -963,8 +963,8 @@ }, "expression": { "type": "CallExpression", - "start": 2564, - "end": 2589, + "start": 2610, + "end": 2635, "loc": { "start": { "line": 54, @@ -977,8 +977,8 @@ }, "callee": { "type": "Identifier", - "start": 2564, - "end": 2577, + "start": 2610, + "end": 2623, "loc": { "start": { "line": 54, @@ -995,8 +995,8 @@ "arguments": [ { "type": "Identifier", - "start": 2578, - "end": 2588, + "start": 2624, + "end": 2634, "loc": { "start": { "line": 54, @@ -1015,8 +1015,8 @@ }, { "type": "IfStatement", - "start": 2594, - "end": 2655, + "start": 2640, + "end": 2701, "loc": { "start": { "line": 56, @@ -1029,8 +1029,8 @@ }, "test": { "type": "LogicalExpression", - "start": 2597, - "end": 2637, + "start": 2643, + "end": 2683, "loc": { "start": { "line": 56, @@ -1043,8 +1043,8 @@ }, "left": { "type": "UnaryExpression", - "start": 2598, - "end": 2617, + "start": 2644, + "end": 2663, "loc": { "start": { "line": 56, @@ -1059,8 +1059,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 2599, - "end": 2617, + "start": 2645, + "end": 2663, "loc": { "start": { "line": 56, @@ -1073,8 +1073,8 @@ }, "object": { "type": "MemberExpression", - "start": 2599, - "end": 2612, + "start": 2645, + "end": 2658, "loc": { "start": { "line": 56, @@ -1087,8 +1087,8 @@ }, "object": { "type": "Identifier", - "start": 2599, - "end": 2605, + "start": 2645, + "end": 2651, "loc": { "start": { "line": 56, @@ -1104,8 +1104,8 @@ }, "property": { "type": "Identifier", - "start": 2606, - "end": 2612, + "start": 2652, + "end": 2658, "loc": { "start": { "line": 56, @@ -1123,8 +1123,8 @@ }, "property": { "type": "Identifier", - "start": 2613, - "end": 2617, + "start": 2659, + "end": 2663, "loc": { "start": { "line": 56, @@ -1143,14 +1143,14 @@ "extra": { "parenthesizedArgument": false, "parenthesized": true, - "parenStart": 2597 + "parenStart": 2643 } }, "operator": "&&", "right": { "type": "CallExpression", - "start": 2621, - "end": 2636, + "start": 2667, + "end": 2682, "loc": { "start": { "line": 56, @@ -1163,8 +1163,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2621, - "end": 2634, + "start": 2667, + "end": 2680, "loc": { "start": { "line": 56, @@ -1177,8 +1177,8 @@ }, "object": { "type": "Identifier", - "start": 2621, - "end": 2627, + "start": 2667, + "end": 2673, "loc": { "start": { "line": 56, @@ -1194,8 +1194,8 @@ }, "property": { "type": "Identifier", - "start": 2628, - "end": 2634, + "start": 2674, + "end": 2680, "loc": { "start": { "line": 56, @@ -1214,14 +1214,14 @@ "arguments": [], "extra": { "parenthesized": true, - "parenStart": 2620 + "parenStart": 2666 } } }, "consequent": { "type": "BlockStatement", - "start": 2638, - "end": 2655, + "start": 2684, + "end": 2701, "loc": { "start": { "line": 56, @@ -1235,8 +1235,8 @@ "body": [ { "type": "ReturnStatement", - "start": 2644, - "end": 2651, + "start": 2690, + "end": 2697, "loc": { "start": { "line": 57, @@ -1256,8 +1256,8 @@ }, { "type": "ExpressionStatement", - "start": 2659, - "end": 2787, + "start": 2705, + "end": 2833, "loc": { "start": { "line": 60, @@ -1270,8 +1270,8 @@ }, "expression": { "type": "CallExpression", - "start": 2659, - "end": 2786, + "start": 2705, + "end": 2832, "loc": { "start": { "line": 60, @@ -1284,8 +1284,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2659, - "end": 2748, + "start": 2705, + "end": 2794, "loc": { "start": { "line": 60, @@ -1298,8 +1298,8 @@ }, "object": { "type": "CallExpression", - "start": 2659, - "end": 2742, + "start": 2705, + "end": 2788, "loc": { "start": { "line": 60, @@ -1312,8 +1312,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2659, - "end": 2713, + "start": 2705, + "end": 2759, "loc": { "start": { "line": 60, @@ -1326,8 +1326,8 @@ }, "object": { "type": "CallExpression", - "start": 2659, - "end": 2708, + "start": 2705, + "end": 2754, "loc": { "start": { "line": 60, @@ -1340,8 +1340,8 @@ }, "callee": { "type": "Import", - "start": 2659, - "end": 2665, + "start": 2705, + "end": 2711, "loc": { "start": { "line": 60, @@ -1356,8 +1356,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2692, - "end": 2707, + "start": 2738, + "end": 2753, "loc": { "start": { "line": 60, @@ -1377,8 +1377,8 @@ { "type": "CommentBlock", "value": " webpackMode: \"lazy\" ", - "start": 2666, - "end": 2691, + "start": 2712, + "end": 2737, "loc": { "start": { "line": 60, @@ -1396,8 +1396,8 @@ }, "property": { "type": "Identifier", - "start": 2709, - "end": 2713, + "start": 2755, + "end": 2759, "loc": { "start": { "line": 60, @@ -1416,8 +1416,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 2714, - "end": 2741, + "start": 2760, + "end": 2787, "loc": { "start": { "line": 60, @@ -1435,8 +1435,8 @@ "params": [ { "type": "Identifier", - "start": 2714, - "end": 2715, + "start": 2760, + "end": 2761, "loc": { "start": { "line": 60, @@ -1453,8 +1453,8 @@ ], "body": { "type": "BlockStatement", - "start": 2719, - "end": 2741, + "start": 2765, + "end": 2787, "loc": { "start": { "line": 60, @@ -1468,8 +1468,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2725, - "end": 2737, + "start": 2771, + "end": 2783, "loc": { "start": { "line": 61, @@ -1482,8 +1482,8 @@ }, "expression": { "type": "CallExpression", - "start": 2725, - "end": 2736, + "start": 2771, + "end": 2782, "loc": { "start": { "line": 61, @@ -1496,8 +1496,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2725, - "end": 2734, + "start": 2771, + "end": 2780, "loc": { "start": { "line": 61, @@ -1510,8 +1510,8 @@ }, "object": { "type": "Identifier", - "start": 2725, - "end": 2726, + "start": 2771, + "end": 2772, "loc": { "start": { "line": 61, @@ -1527,8 +1527,8 @@ }, "property": { "type": "Identifier", - "start": 2727, - "end": 2734, + "start": 2773, + "end": 2780, "loc": { "start": { "line": 61, @@ -1555,8 +1555,8 @@ }, "property": { "type": "Identifier", - "start": 2743, - "end": 2748, + "start": 2789, + "end": 2794, "loc": { "start": { "line": 62, @@ -1575,8 +1575,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 2749, - "end": 2785, + "start": 2795, + "end": 2831, "loc": { "start": { "line": 62, @@ -1594,8 +1594,8 @@ "params": [ { "type": "Identifier", - "start": 2749, - "end": 2752, + "start": 2795, + "end": 2798, "loc": { "start": { "line": 62, @@ -1612,8 +1612,8 @@ ], "body": { "type": "BlockStatement", - "start": 2756, - "end": 2785, + "start": 2802, + "end": 2831, "loc": { "start": { "line": 62, @@ -1627,8 +1627,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2762, - "end": 2781, + "start": 2808, + "end": 2827, "loc": { "start": { "line": 63, @@ -1641,8 +1641,8 @@ }, "expression": { "type": "CallExpression", - "start": 2762, - "end": 2780, + "start": 2808, + "end": 2826, "loc": { "start": { "line": 63, @@ -1655,8 +1655,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2762, - "end": 2775, + "start": 2808, + "end": 2821, "loc": { "start": { "line": 63, @@ -1669,8 +1669,8 @@ }, "object": { "type": "Identifier", - "start": 2762, - "end": 2769, + "start": 2808, + "end": 2815, "loc": { "start": { "line": 63, @@ -1686,8 +1686,8 @@ }, "property": { "type": "Identifier", - "start": 2770, - "end": 2775, + "start": 2816, + "end": 2821, "loc": { "start": { "line": 63, @@ -1706,8 +1706,8 @@ "arguments": [ { "type": "Identifier", - "start": 2776, - "end": 2779, + "start": 2822, + "end": 2825, "loc": { "start": { "line": 63, @@ -1740,8 +1740,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 2792, - "end": 2810, + "start": 2838, + "end": 2856, "loc": { "start": { "line": 68, @@ -1756,8 +1756,8 @@ "specifiers": [ { "type": "ExportSpecifier", - "start": 2803, - "end": 2807, + "start": 2849, + "end": 2853, "loc": { "start": { "line": 69, @@ -1770,8 +1770,8 @@ }, "local": { "type": "Identifier", - "start": 2803, - "end": 2807, + "start": 2849, + "end": 2853, "loc": { "start": { "line": 69, @@ -1787,8 +1787,8 @@ }, "exported": { "type": "Identifier", - "start": 2803, - "end": 2807, + "start": 2849, + "end": 2853, "loc": { "start": { "line": 69, @@ -1808,8 +1808,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 2792, - "end": 2810, + "start": 2838, + "end": 2856, "loc": { "start": { "line": 68, @@ -1822,8 +1822,8 @@ }, "declaration": { "type": "FunctionDeclaration", - "start": 2266, - "end": 2790, + "start": 2312, + "end": 2836, "loc": { "start": { "line": 44, @@ -1836,8 +1836,8 @@ }, "id": { "type": "Identifier", - "start": 2275, - "end": 2279, + "start": 2321, + "end": 2325, "loc": { "start": { "line": 44, @@ -1858,8 +1858,8 @@ "params": [ { "type": "Identifier", - "start": 2280, - "end": 2290, + "start": 2326, + "end": 2336, "loc": { "start": { "line": 44, @@ -1876,8 +1876,8 @@ ], "body": { "type": "BlockStatement", - "start": 2291, - "end": 2790, + "start": 2337, + "end": 2836, "loc": { "start": { "line": 44, @@ -1891,8 +1891,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2296, - "end": 2361, + "start": 2342, + "end": 2407, "loc": { "start": { "line": 46, @@ -1905,8 +1905,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 2296, - "end": 2360, + "start": 2342, + "end": 2406, "loc": { "start": { "line": 46, @@ -1920,8 +1920,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 2296, - "end": 2306, + "start": 2342, + "end": 2352, "loc": { "start": { "line": 46, @@ -1937,8 +1937,8 @@ }, "right": { "type": "ConditionalExpression", - "start": 2309, - "end": 2360, + "start": 2355, + "end": 2406, "loc": { "start": { "line": 46, @@ -1951,8 +1951,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2309, - "end": 2342, + "start": 2355, + "end": 2388, "loc": { "start": { "line": 46, @@ -1965,8 +1965,8 @@ }, "left": { "type": "UnaryExpression", - "start": 2309, - "end": 2326, + "start": 2355, + "end": 2372, "loc": { "start": { "line": 46, @@ -1981,8 +1981,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 2316, - "end": 2326, + "start": 2362, + "end": 2372, "loc": { "start": { "line": 46, @@ -2003,8 +2003,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 2331, - "end": 2342, + "start": 2377, + "end": 2388, "loc": { "start": { "line": 46, @@ -2024,8 +2024,8 @@ }, "consequent": { "type": "ObjectExpression", - "start": 2345, - "end": 2347, + "start": 2391, + "end": 2393, "loc": { "start": { "line": 46, @@ -2040,8 +2040,8 @@ }, "alternate": { "type": "Identifier", - "start": 2350, - "end": 2360, + "start": 2396, + "end": 2406, "loc": { "start": { "line": 46, @@ -2060,8 +2060,8 @@ }, { "type": "IfStatement", - "start": 2365, - "end": 2560, + "start": 2411, + "end": 2606, "loc": { "start": { "line": 48, @@ -2074,8 +2074,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2369, - "end": 2407, + "start": 2415, + "end": 2453, "loc": { "start": { "line": 48, @@ -2088,8 +2088,8 @@ }, "left": { "type": "MemberExpression", - "start": 2369, - "end": 2389, + "start": 2415, + "end": 2435, "loc": { "start": { "line": 48, @@ -2102,8 +2102,8 @@ }, "object": { "type": "MemberExpression", - "start": 2369, - "end": 2380, + "start": 2415, + "end": 2426, "loc": { "start": { "line": 48, @@ -2116,8 +2116,8 @@ }, "object": { "type": "Identifier", - "start": 2369, - "end": 2376, + "start": 2415, + "end": 2422, "loc": { "start": { "line": 48, @@ -2133,8 +2133,8 @@ }, "property": { "type": "Identifier", - "start": 2377, - "end": 2380, + "start": 2423, + "end": 2426, "loc": { "start": { "line": 48, @@ -2152,8 +2152,8 @@ }, "property": { "type": "Identifier", - "start": 2381, - "end": 2389, + "start": 2427, + "end": 2435, "loc": { "start": { "line": 48, @@ -2172,8 +2172,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 2394, - "end": 2407, + "start": 2440, + "end": 2453, "loc": { "start": { "line": 48, @@ -2193,8 +2193,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2408, - "end": 2560, + "start": 2454, + "end": 2606, "loc": { "start": { "line": 48, @@ -2208,8 +2208,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2414, - "end": 2449, + "start": 2460, + "end": 2495, "loc": { "start": { "line": 49, @@ -2222,8 +2222,8 @@ }, "expression": { "type": "CallExpression", - "start": 2414, - "end": 2448, + "start": 2460, + "end": 2494, "loc": { "start": { "line": 49, @@ -2236,8 +2236,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2414, - "end": 2425, + "start": 2460, + "end": 2471, "loc": { "start": { "line": 49, @@ -2250,8 +2250,8 @@ }, "object": { "type": "Identifier", - "start": 2414, - "end": 2421, + "start": 2460, + "end": 2467, "loc": { "start": { "line": 49, @@ -2267,8 +2267,8 @@ }, "property": { "type": "Identifier", - "start": 2422, - "end": 2425, + "start": 2468, + "end": 2471, "loc": { "start": { "line": 49, @@ -2287,8 +2287,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2426, - "end": 2447, + "start": 2472, + "end": 2493, "loc": { "start": { "line": 49, @@ -2310,8 +2310,8 @@ }, { "type": "ExpressionStatement", - "start": 2454, - "end": 2516, + "start": 2500, + "end": 2562, "loc": { "start": { "line": 50, @@ -2324,8 +2324,8 @@ }, "expression": { "type": "CallExpression", - "start": 2454, - "end": 2515, + "start": 2500, + "end": 2561, "loc": { "start": { "line": 50, @@ -2338,8 +2338,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2454, - "end": 2465, + "start": 2500, + "end": 2511, "loc": { "start": { "line": 50, @@ -2352,8 +2352,8 @@ }, "object": { "type": "Identifier", - "start": 2454, - "end": 2461, + "start": 2500, + "end": 2507, "loc": { "start": { "line": 50, @@ -2369,8 +2369,8 @@ }, "property": { "type": "Identifier", - "start": 2462, - "end": 2465, + "start": 2508, + "end": 2511, "loc": { "start": { "line": 50, @@ -2389,8 +2389,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2466, - "end": 2514, + "start": 2512, + "end": 2560, "loc": { "start": { "line": 50, @@ -2412,8 +2412,8 @@ }, { "type": "ExpressionStatement", - "start": 2521, - "end": 2556, + "start": 2567, + "end": 2602, "loc": { "start": { "line": 51, @@ -2426,8 +2426,8 @@ }, "expression": { "type": "CallExpression", - "start": 2521, - "end": 2555, + "start": 2567, + "end": 2601, "loc": { "start": { "line": 51, @@ -2440,8 +2440,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2521, - "end": 2532, + "start": 2567, + "end": 2578, "loc": { "start": { "line": 51, @@ -2454,8 +2454,8 @@ }, "object": { "type": "Identifier", - "start": 2521, - "end": 2528, + "start": 2567, + "end": 2574, "loc": { "start": { "line": 51, @@ -2471,8 +2471,8 @@ }, "property": { "type": "Identifier", - "start": 2529, - "end": 2532, + "start": 2575, + "end": 2578, "loc": { "start": { "line": 51, @@ -2491,8 +2491,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2533, - "end": 2554, + "start": 2579, + "end": 2600, "loc": { "start": { "line": 51, @@ -2519,8 +2519,8 @@ }, { "type": "ExpressionStatement", - "start": 2564, - "end": 2590, + "start": 2610, + "end": 2636, "loc": { "start": { "line": 54, @@ -2533,8 +2533,8 @@ }, "expression": { "type": "CallExpression", - "start": 2564, - "end": 2589, + "start": 2610, + "end": 2635, "loc": { "start": { "line": 54, @@ -2547,8 +2547,8 @@ }, "callee": { "type": "Identifier", - "start": 2564, - "end": 2577, + "start": 2610, + "end": 2623, "loc": { "start": { "line": 54, @@ -2565,8 +2565,8 @@ "arguments": [ { "type": "Identifier", - "start": 2578, - "end": 2588, + "start": 2624, + "end": 2634, "loc": { "start": { "line": 54, @@ -2585,8 +2585,8 @@ }, { "type": "IfStatement", - "start": 2594, - "end": 2655, + "start": 2640, + "end": 2701, "loc": { "start": { "line": 56, @@ -2599,8 +2599,8 @@ }, "test": { "type": "LogicalExpression", - "start": 2597, - "end": 2637, + "start": 2643, + "end": 2683, "loc": { "start": { "line": 56, @@ -2613,8 +2613,8 @@ }, "left": { "type": "UnaryExpression", - "start": 2598, - "end": 2617, + "start": 2644, + "end": 2663, "loc": { "start": { "line": 56, @@ -2629,8 +2629,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 2599, - "end": 2617, + "start": 2645, + "end": 2663, "loc": { "start": { "line": 56, @@ -2643,8 +2643,8 @@ }, "object": { "type": "MemberExpression", - "start": 2599, - "end": 2612, + "start": 2645, + "end": 2658, "loc": { "start": { "line": 56, @@ -2657,8 +2657,8 @@ }, "object": { "type": "Identifier", - "start": 2599, - "end": 2605, + "start": 2645, + "end": 2651, "loc": { "start": { "line": 56, @@ -2674,8 +2674,8 @@ }, "property": { "type": "Identifier", - "start": 2606, - "end": 2612, + "start": 2652, + "end": 2658, "loc": { "start": { "line": 56, @@ -2693,8 +2693,8 @@ }, "property": { "type": "Identifier", - "start": 2613, - "end": 2617, + "start": 2659, + "end": 2663, "loc": { "start": { "line": 56, @@ -2713,14 +2713,14 @@ "extra": { "parenthesizedArgument": false, "parenthesized": true, - "parenStart": 2597 + "parenStart": 2643 } }, "operator": "&&", "right": { "type": "CallExpression", - "start": 2621, - "end": 2636, + "start": 2667, + "end": 2682, "loc": { "start": { "line": 56, @@ -2733,8 +2733,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2621, - "end": 2634, + "start": 2667, + "end": 2680, "loc": { "start": { "line": 56, @@ -2747,8 +2747,8 @@ }, "object": { "type": "Identifier", - "start": 2621, - "end": 2627, + "start": 2667, + "end": 2673, "loc": { "start": { "line": 56, @@ -2764,8 +2764,8 @@ }, "property": { "type": "Identifier", - "start": 2628, - "end": 2634, + "start": 2674, + "end": 2680, "loc": { "start": { "line": 56, @@ -2784,14 +2784,14 @@ "arguments": [], "extra": { "parenthesized": true, - "parenStart": 2620 + "parenStart": 2666 } } }, "consequent": { "type": "BlockStatement", - "start": 2638, - "end": 2655, + "start": 2684, + "end": 2701, "loc": { "start": { "line": 56, @@ -2805,8 +2805,8 @@ "body": [ { "type": "ReturnStatement", - "start": 2644, - "end": 2651, + "start": 2690, + "end": 2697, "loc": { "start": { "line": 57, @@ -2826,8 +2826,8 @@ }, { "type": "ExpressionStatement", - "start": 2659, - "end": 2787, + "start": 2705, + "end": 2833, "loc": { "start": { "line": 60, @@ -2840,8 +2840,8 @@ }, "expression": { "type": "CallExpression", - "start": 2659, - "end": 2786, + "start": 2705, + "end": 2832, "loc": { "start": { "line": 60, @@ -2854,8 +2854,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2659, - "end": 2748, + "start": 2705, + "end": 2794, "loc": { "start": { "line": 60, @@ -2868,8 +2868,8 @@ }, "object": { "type": "CallExpression", - "start": 2659, - "end": 2742, + "start": 2705, + "end": 2788, "loc": { "start": { "line": 60, @@ -2882,8 +2882,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2659, - "end": 2713, + "start": 2705, + "end": 2759, "loc": { "start": { "line": 60, @@ -2896,8 +2896,8 @@ }, "object": { "type": "CallExpression", - "start": 2659, - "end": 2708, + "start": 2705, + "end": 2754, "loc": { "start": { "line": 60, @@ -2910,8 +2910,8 @@ }, "callee": { "type": "Import", - "start": 2659, - "end": 2665, + "start": 2705, + "end": 2711, "loc": { "start": { "line": 60, @@ -2926,8 +2926,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2692, - "end": 2707, + "start": 2738, + "end": 2753, "loc": { "start": { "line": 60, @@ -2947,8 +2947,8 @@ { "type": "CommentBlock", "value": " webpackMode: \"lazy\" ", - "start": 2666, - "end": 2691, + "start": 2712, + "end": 2737, "loc": { "start": { "line": 60, @@ -2966,8 +2966,8 @@ }, "property": { "type": "Identifier", - "start": 2709, - "end": 2713, + "start": 2755, + "end": 2759, "loc": { "start": { "line": 60, @@ -2986,8 +2986,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 2714, - "end": 2741, + "start": 2760, + "end": 2787, "loc": { "start": { "line": 60, @@ -3005,8 +3005,8 @@ "params": [ { "type": "Identifier", - "start": 2714, - "end": 2715, + "start": 2760, + "end": 2761, "loc": { "start": { "line": 60, @@ -3023,8 +3023,8 @@ ], "body": { "type": "BlockStatement", - "start": 2719, - "end": 2741, + "start": 2765, + "end": 2787, "loc": { "start": { "line": 60, @@ -3038,8 +3038,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2725, - "end": 2737, + "start": 2771, + "end": 2783, "loc": { "start": { "line": 61, @@ -3052,8 +3052,8 @@ }, "expression": { "type": "CallExpression", - "start": 2725, - "end": 2736, + "start": 2771, + "end": 2782, "loc": { "start": { "line": 61, @@ -3066,8 +3066,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2725, - "end": 2734, + "start": 2771, + "end": 2780, "loc": { "start": { "line": 61, @@ -3080,8 +3080,8 @@ }, "object": { "type": "Identifier", - "start": 2725, - "end": 2726, + "start": 2771, + "end": 2772, "loc": { "start": { "line": 61, @@ -3097,8 +3097,8 @@ }, "property": { "type": "Identifier", - "start": 2727, - "end": 2734, + "start": 2773, + "end": 2780, "loc": { "start": { "line": 61, @@ -3125,8 +3125,8 @@ }, "property": { "type": "Identifier", - "start": 2743, - "end": 2748, + "start": 2789, + "end": 2794, "loc": { "start": { "line": 62, @@ -3145,8 +3145,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 2749, - "end": 2785, + "start": 2795, + "end": 2831, "loc": { "start": { "line": 62, @@ -3164,8 +3164,8 @@ "params": [ { "type": "Identifier", - "start": 2749, - "end": 2752, + "start": 2795, + "end": 2798, "loc": { "start": { "line": 62, @@ -3182,8 +3182,8 @@ ], "body": { "type": "BlockStatement", - "start": 2756, - "end": 2785, + "start": 2802, + "end": 2831, "loc": { "start": { "line": 62, @@ -3197,8 +3197,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2762, - "end": 2781, + "start": 2808, + "end": 2827, "loc": { "start": { "line": 63, @@ -3211,8 +3211,8 @@ }, "expression": { "type": "CallExpression", - "start": 2762, - "end": 2780, + "start": 2808, + "end": 2826, "loc": { "start": { "line": 63, @@ -3225,8 +3225,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2762, - "end": 2775, + "start": 2808, + "end": 2821, "loc": { "start": { "line": 63, @@ -3239,8 +3239,8 @@ }, "object": { "type": "Identifier", - "start": 2762, - "end": 2769, + "start": 2808, + "end": 2815, "loc": { "start": { "line": 63, @@ -3256,8 +3256,8 @@ }, "property": { "type": "Identifier", - "start": 2770, - "end": 2775, + "start": 2816, + "end": 2821, "loc": { "start": { "line": 63, @@ -3276,8 +3276,8 @@ "arguments": [ { "type": "Identifier", - "start": 2776, - "end": 2779, + "start": 2822, + "end": 2825, "loc": { "start": { "line": 63, @@ -3307,9 +3307,9 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config\n * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json\n * @param {Number} [model.scale = 1] Scale between the model and the canvas\n * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head\n * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head\n * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine\n * @param {Number} [display.AA = 2] Antialiasing grade\n * @param {Number} [display.widget = 150] Widget to the canvas which shows the model\n * @param {Number} [display.height = 300] Height to the canvas which shows the model\n * @param {String} [display.position = 'right'] Left of right side to show\n * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas\n * @param {Number} [display.vOffset = -20] Vertical offset of the canvas\n * @param {Bool} [mobile.show = true] Whether to show on mobile device\n * @param {Number} [mobile.scale = 0.5] Scale on mobile device\n * @param {Bool} [mobile.motion = true] Whether to enable motion detection on mobile devices\n * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas\n * @param {String} [name.div = 'live2d-widget'] ID name of the div\n * @param {Number} [react.opacityDefault = 0.7] Default opacity\n * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity\n * @param {Func} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type.\n * @param {Bool} [dev.log = false] Whether to show log\n * @param {Bool} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled\n * @param {Func} [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 ", + "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config\n * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json\n * @param {Number} [model.scale = 1] Scale between the model and the canvas\n * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head\n * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head\n * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine\n * @param {Number} [display.AA = 2] Antialiasing grade\n * @param {Number} [display.widget = 150] Widget to the canvas which shows the model\n * @param {Number} [display.height = 300] Height to the canvas which shows the model\n * @param {String} [display.position = 'right'] Left of right side to show\n * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas\n * @param {Number} [display.vOffset = -20] Vertical offset of the canvas\n * @param {Boolean} [mobile.show = true] Whether to show on mobile device\n * @param {Number} [mobile.scale = 0.5] Scale on mobile device\n * @param {Boolean} [mobile.motion = true] Whether to enable motion detection on mobile devices\n * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas\n * @param {String} [name.div = 'live2d-widget'] ID name of the div\n * @param {Number} [react.opacityDefault = 0.7] Default opacity\n * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity\n * @param {Function} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type.\n * @param {Boolean} [dev.log = false] Whether to show log\n * @param {Boolean} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled\n * @param {Function} [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 ", "start": 308, - "end": 2264, + "end": 2310, "loc": { "start": { "line": 17, @@ -3533,9 +3533,9 @@ }, { "type": "CommentBlock", - "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config\n * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json\n * @param {Number} [model.scale = 1] Scale between the model and the canvas\n * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head\n * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head\n * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine\n * @param {Number} [display.AA = 2] Antialiasing grade\n * @param {Number} [display.widget = 150] Widget to the canvas which shows the model\n * @param {Number} [display.height = 300] Height to the canvas which shows the model\n * @param {String} [display.position = 'right'] Left of right side to show\n * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas\n * @param {Number} [display.vOffset = -20] Vertical offset of the canvas\n * @param {Bool} [mobile.show = true] Whether to show on mobile device\n * @param {Number} [mobile.scale = 0.5] Scale on mobile device\n * @param {Bool} [mobile.motion = true] Whether to enable motion detection on mobile devices\n * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas\n * @param {String} [name.div = 'live2d-widget'] ID name of the div\n * @param {Number} [react.opacityDefault = 0.7] Default opacity\n * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity\n * @param {Func} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type.\n * @param {Bool} [dev.log = false] Whether to show log\n * @param {Bool} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled\n * @param {Func} [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 ", + "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config\n * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json\n * @param {Number} [model.scale = 1] Scale between the model and the canvas\n * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head\n * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head\n * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine\n * @param {Number} [display.AA = 2] Antialiasing grade\n * @param {Number} [display.widget = 150] Widget to the canvas which shows the model\n * @param {Number} [display.height = 300] Height to the canvas which shows the model\n * @param {String} [display.position = 'right'] Left of right side to show\n * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas\n * @param {Number} [display.vOffset = -20] Vertical offset of the canvas\n * @param {Boolean} [mobile.show = true] Whether to show on mobile device\n * @param {Number} [mobile.scale = 0.5] Scale on mobile device\n * @param {Boolean} [mobile.motion = true] Whether to enable motion detection on mobile devices\n * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas\n * @param {String} [name.div = 'live2d-widget'] ID name of the div\n * @param {Number} [react.opacityDefault = 0.7] Default opacity\n * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity\n * @param {Function} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type.\n * @param {Boolean} [dev.log = false] Whether to show log\n * @param {Boolean} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled\n * @param {Function} [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 ", "start": 308, - "end": 2264, + "end": 2310, "loc": { "start": { "line": 17, @@ -3550,8 +3550,8 @@ { "type": "CommentBlock", "value": " webpackMode: \"lazy\" ", - "start": 2666, - "end": 2691, + "start": 2712, + "end": 2737, "loc": { "start": { "line": 60, @@ -4068,9 +4068,9 @@ }, { "type": "CommentBlock", - "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config\n * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json\n * @param {Number} [model.scale = 1] Scale between the model and the canvas\n * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head\n * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head\n * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine\n * @param {Number} [display.AA = 2] Antialiasing grade\n * @param {Number} [display.widget = 150] Widget to the canvas which shows the model\n * @param {Number} [display.height = 300] Height to the canvas which shows the model\n * @param {String} [display.position = 'right'] Left of right side to show\n * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas\n * @param {Number} [display.vOffset = -20] Vertical offset of the canvas\n * @param {Bool} [mobile.show = true] Whether to show on mobile device\n * @param {Number} [mobile.scale = 0.5] Scale on mobile device\n * @param {Bool} [mobile.motion = true] Whether to enable motion detection on mobile devices\n * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas\n * @param {String} [name.div = 'live2d-widget'] ID name of the div\n * @param {Number} [react.opacityDefault = 0.7] Default opacity\n * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity\n * @param {Func} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type.\n * @param {Bool} [dev.log = false] Whether to show log\n * @param {Bool} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled\n * @param {Func} [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 ", + "value": "*\n * The public entry point\n * @param {Object} [userConfig] User's custom config\n * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json\n * @param {Number} [model.scale = 1] Scale between the model and the canvas\n * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head\n * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head\n * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine\n * @param {Number} [display.AA = 2] Antialiasing grade\n * @param {Number} [display.widget = 150] Widget to the canvas which shows the model\n * @param {Number} [display.height = 300] Height to the canvas which shows the model\n * @param {String} [display.position = 'right'] Left of right side to show\n * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas\n * @param {Number} [display.vOffset = -20] Vertical offset of the canvas\n * @param {Boolean} [mobile.show = true] Whether to show on mobile device\n * @param {Number} [mobile.scale = 0.5] Scale on mobile device\n * @param {Boolean} [mobile.motion = true] Whether to enable motion detection on mobile devices\n * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas\n * @param {String} [name.div = 'live2d-widget'] ID name of the div\n * @param {Number} [react.opacityDefault = 0.7] Default opacity\n * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity\n * @param {Function} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type.\n * @param {Boolean} [dev.log = false] Whether to show log\n * @param {Boolean} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled\n * @param {Function} [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 ", "start": 308, - "end": 2264, + "end": 2310, "loc": { "start": { "line": 17, @@ -4096,8 +4096,8 @@ "binop": null }, "value": "function", - "start": 2266, - "end": 2274, + "start": 2312, + "end": 2320, "loc": { "start": { "line": 44, @@ -4122,8 +4122,8 @@ "binop": null }, "value": "init", - "start": 2275, - "end": 2279, + "start": 2321, + "end": 2325, "loc": { "start": { "line": 44, @@ -4147,8 +4147,8 @@ "postfix": false, "binop": null }, - "start": 2279, - "end": 2280, + "start": 2325, + "end": 2326, "loc": { "start": { "line": 44, @@ -4173,8 +4173,8 @@ "binop": null }, "value": "userConfig", - "start": 2280, - "end": 2290, + "start": 2326, + "end": 2336, "loc": { "start": { "line": 44, @@ -4198,8 +4198,8 @@ "postfix": false, "binop": null }, - "start": 2290, - "end": 2291, + "start": 2336, + "end": 2337, "loc": { "start": { "line": 44, @@ -4223,8 +4223,8 @@ "postfix": false, "binop": null }, - "start": 2291, - "end": 2292, + "start": 2337, + "end": 2338, "loc": { "start": { "line": 44, @@ -4249,8 +4249,8 @@ "binop": null }, "value": "userConfig", - "start": 2296, - "end": 2306, + "start": 2342, + "end": 2352, "loc": { "start": { "line": 46, @@ -4276,8 +4276,8 @@ "updateContext": null }, "value": "=", - "start": 2307, - "end": 2308, + "start": 2353, + "end": 2354, "loc": { "start": { "line": 46, @@ -4304,8 +4304,8 @@ "updateContext": null }, "value": "typeof", - "start": 2309, - "end": 2315, + "start": 2355, + "end": 2361, "loc": { "start": { "line": 46, @@ -4330,8 +4330,8 @@ "binop": null }, "value": "userConfig", - "start": 2316, - "end": 2326, + "start": 2362, + "end": 2372, "loc": { "start": { "line": 46, @@ -4357,8 +4357,8 @@ "updateContext": null }, "value": "===", - "start": 2327, - "end": 2330, + "start": 2373, + "end": 2376, "loc": { "start": { "line": 46, @@ -4384,8 +4384,8 @@ "updateContext": null }, "value": "undefined", - "start": 2331, - "end": 2342, + "start": 2377, + "end": 2388, "loc": { "start": { "line": 46, @@ -4410,8 +4410,8 @@ "binop": null, "updateContext": null }, - "start": 2343, - "end": 2344, + "start": 2389, + "end": 2390, "loc": { "start": { "line": 46, @@ -4435,8 +4435,8 @@ "postfix": false, "binop": null }, - "start": 2345, - "end": 2346, + "start": 2391, + "end": 2392, "loc": { "start": { "line": 46, @@ -4460,8 +4460,8 @@ "postfix": false, "binop": null }, - "start": 2346, - "end": 2347, + "start": 2392, + "end": 2393, "loc": { "start": { "line": 46, @@ -4486,8 +4486,8 @@ "binop": null, "updateContext": null }, - "start": 2348, - "end": 2349, + "start": 2394, + "end": 2395, "loc": { "start": { "line": 46, @@ -4512,8 +4512,8 @@ "binop": null }, "value": "userConfig", - "start": 2350, - "end": 2360, + "start": 2396, + "end": 2406, "loc": { "start": { "line": 46, @@ -4538,8 +4538,8 @@ "binop": null, "updateContext": null }, - "start": 2360, - "end": 2361, + "start": 2406, + "end": 2407, "loc": { "start": { "line": 46, @@ -4566,8 +4566,8 @@ "updateContext": null }, "value": "if", - "start": 2365, - "end": 2367, + "start": 2411, + "end": 2413, "loc": { "start": { "line": 48, @@ -4591,8 +4591,8 @@ "postfix": false, "binop": null }, - "start": 2368, - "end": 2369, + "start": 2414, + "end": 2415, "loc": { "start": { "line": 48, @@ -4617,8 +4617,8 @@ "binop": null }, "value": "process", - "start": 2369, - "end": 2376, + "start": 2415, + "end": 2422, "loc": { "start": { "line": 48, @@ -4643,8 +4643,8 @@ "binop": null, "updateContext": null }, - "start": 2376, - "end": 2377, + "start": 2422, + "end": 2423, "loc": { "start": { "line": 48, @@ -4669,8 +4669,8 @@ "binop": null }, "value": "env", - "start": 2377, - "end": 2380, + "start": 2423, + "end": 2426, "loc": { "start": { "line": 48, @@ -4695,8 +4695,8 @@ "binop": null, "updateContext": null }, - "start": 2380, - "end": 2381, + "start": 2426, + "end": 2427, "loc": { "start": { "line": 48, @@ -4721,8 +4721,8 @@ "binop": null }, "value": "NODE_ENV", - "start": 2381, - "end": 2389, + "start": 2427, + "end": 2435, "loc": { "start": { "line": 48, @@ -4748,8 +4748,8 @@ "updateContext": null }, "value": "===", - "start": 2390, - "end": 2393, + "start": 2436, + "end": 2439, "loc": { "start": { "line": 48, @@ -4775,8 +4775,8 @@ "updateContext": null }, "value": "development", - "start": 2394, - "end": 2407, + "start": 2440, + "end": 2453, "loc": { "start": { "line": 48, @@ -4800,8 +4800,8 @@ "postfix": false, "binop": null }, - "start": 2407, - "end": 2408, + "start": 2453, + "end": 2454, "loc": { "start": { "line": 48, @@ -4825,8 +4825,8 @@ "postfix": false, "binop": null }, - "start": 2408, - "end": 2409, + "start": 2454, + "end": 2455, "loc": { "start": { "line": 48, @@ -4851,8 +4851,8 @@ "binop": null }, "value": "console", - "start": 2414, - "end": 2421, + "start": 2460, + "end": 2467, "loc": { "start": { "line": 49, @@ -4877,8 +4877,8 @@ "binop": null, "updateContext": null }, - "start": 2421, - "end": 2422, + "start": 2467, + "end": 2468, "loc": { "start": { "line": 49, @@ -4903,8 +4903,8 @@ "binop": null }, "value": "log", - "start": 2422, - "end": 2425, + "start": 2468, + "end": 2471, "loc": { "start": { "line": 49, @@ -4928,8 +4928,8 @@ "postfix": false, "binop": null }, - "start": 2425, - "end": 2426, + "start": 2471, + "end": 2472, "loc": { "start": { "line": 49, @@ -4955,8 +4955,8 @@ "updateContext": null }, "value": "--- --- --- --- ---", - "start": 2426, - "end": 2447, + "start": 2472, + "end": 2493, "loc": { "start": { "line": 49, @@ -4980,8 +4980,8 @@ "postfix": false, "binop": null }, - "start": 2447, - "end": 2448, + "start": 2493, + "end": 2494, "loc": { "start": { "line": 49, @@ -5006,8 +5006,8 @@ "binop": null, "updateContext": null }, - "start": 2448, - "end": 2449, + "start": 2494, + "end": 2495, "loc": { "start": { "line": 49, @@ -5032,8 +5032,8 @@ "binop": null }, "value": "console", - "start": 2454, - "end": 2461, + "start": 2500, + "end": 2507, "loc": { "start": { "line": 50, @@ -5058,8 +5058,8 @@ "binop": null, "updateContext": null }, - "start": 2461, - "end": 2462, + "start": 2507, + "end": 2508, "loc": { "start": { "line": 50, @@ -5084,8 +5084,8 @@ "binop": null }, "value": "log", - "start": 2462, - "end": 2465, + "start": 2508, + "end": 2511, "loc": { "start": { "line": 50, @@ -5109,8 +5109,8 @@ "postfix": false, "binop": null }, - "start": 2465, - "end": 2466, + "start": 2511, + "end": 2512, "loc": { "start": { "line": 50, @@ -5136,8 +5136,8 @@ "updateContext": null }, "value": "Hey that, notice that you are now in DEV MODE.", - "start": 2466, - "end": 2514, + "start": 2512, + "end": 2560, "loc": { "start": { "line": 50, @@ -5161,8 +5161,8 @@ "postfix": false, "binop": null }, - "start": 2514, - "end": 2515, + "start": 2560, + "end": 2561, "loc": { "start": { "line": 50, @@ -5187,8 +5187,8 @@ "binop": null, "updateContext": null }, - "start": 2515, - "end": 2516, + "start": 2561, + "end": 2562, "loc": { "start": { "line": 50, @@ -5213,8 +5213,8 @@ "binop": null }, "value": "console", - "start": 2521, - "end": 2528, + "start": 2567, + "end": 2574, "loc": { "start": { "line": 51, @@ -5239,8 +5239,8 @@ "binop": null, "updateContext": null }, - "start": 2528, - "end": 2529, + "start": 2574, + "end": 2575, "loc": { "start": { "line": 51, @@ -5265,8 +5265,8 @@ "binop": null }, "value": "log", - "start": 2529, - "end": 2532, + "start": 2575, + "end": 2578, "loc": { "start": { "line": 51, @@ -5290,8 +5290,8 @@ "postfix": false, "binop": null }, - "start": 2532, - "end": 2533, + "start": 2578, + "end": 2579, "loc": { "start": { "line": 51, @@ -5317,8 +5317,8 @@ "updateContext": null }, "value": "--- --- --- --- ---", - "start": 2533, - "end": 2554, + "start": 2579, + "end": 2600, "loc": { "start": { "line": 51, @@ -5342,8 +5342,8 @@ "postfix": false, "binop": null }, - "start": 2554, - "end": 2555, + "start": 2600, + "end": 2601, "loc": { "start": { "line": 51, @@ -5368,8 +5368,8 @@ "binop": null, "updateContext": null }, - "start": 2555, - "end": 2556, + "start": 2601, + "end": 2602, "loc": { "start": { "line": 51, @@ -5393,8 +5393,8 @@ "postfix": false, "binop": null }, - "start": 2559, - "end": 2560, + "start": 2605, + "end": 2606, "loc": { "start": { "line": 52, @@ -5419,8 +5419,8 @@ "binop": null }, "value": "configApplyer", - "start": 2564, - "end": 2577, + "start": 2610, + "end": 2623, "loc": { "start": { "line": 54, @@ -5444,8 +5444,8 @@ "postfix": false, "binop": null }, - "start": 2577, - "end": 2578, + "start": 2623, + "end": 2624, "loc": { "start": { "line": 54, @@ -5470,8 +5470,8 @@ "binop": null }, "value": "userConfig", - "start": 2578, - "end": 2588, + "start": 2624, + "end": 2634, "loc": { "start": { "line": 54, @@ -5495,8 +5495,8 @@ "postfix": false, "binop": null }, - "start": 2588, - "end": 2589, + "start": 2634, + "end": 2635, "loc": { "start": { "line": 54, @@ -5521,8 +5521,8 @@ "binop": null, "updateContext": null }, - "start": 2589, - "end": 2590, + "start": 2635, + "end": 2636, "loc": { "start": { "line": 54, @@ -5549,8 +5549,8 @@ "updateContext": null }, "value": "if", - "start": 2594, - "end": 2596, + "start": 2640, + "end": 2642, "loc": { "start": { "line": 56, @@ -5574,8 +5574,8 @@ "postfix": false, "binop": null }, - "start": 2596, - "end": 2597, + "start": 2642, + "end": 2643, "loc": { "start": { "line": 56, @@ -5599,8 +5599,8 @@ "postfix": false, "binop": null }, - "start": 2597, - "end": 2598, + "start": 2643, + "end": 2644, "loc": { "start": { "line": 56, @@ -5626,8 +5626,8 @@ "updateContext": null }, "value": "!", - "start": 2598, - "end": 2599, + "start": 2644, + "end": 2645, "loc": { "start": { "line": 56, @@ -5652,8 +5652,8 @@ "binop": null }, "value": "config", - "start": 2599, - "end": 2605, + "start": 2645, + "end": 2651, "loc": { "start": { "line": 56, @@ -5678,8 +5678,8 @@ "binop": null, "updateContext": null }, - "start": 2605, - "end": 2606, + "start": 2651, + "end": 2652, "loc": { "start": { "line": 56, @@ -5704,8 +5704,8 @@ "binop": null }, "value": "mobile", - "start": 2606, - "end": 2612, + "start": 2652, + "end": 2658, "loc": { "start": { "line": 56, @@ -5730,8 +5730,8 @@ "binop": null, "updateContext": null }, - "start": 2612, - "end": 2613, + "start": 2658, + "end": 2659, "loc": { "start": { "line": 56, @@ -5756,8 +5756,8 @@ "binop": null }, "value": "show", - "start": 2613, - "end": 2617, + "start": 2659, + "end": 2663, "loc": { "start": { "line": 56, @@ -5781,8 +5781,8 @@ "postfix": false, "binop": null }, - "start": 2617, - "end": 2618, + "start": 2663, + "end": 2664, "loc": { "start": { "line": 56, @@ -5808,8 +5808,8 @@ "updateContext": null }, "value": "&&", - "start": 2618, - "end": 2620, + "start": 2664, + "end": 2666, "loc": { "start": { "line": 56, @@ -5833,8 +5833,8 @@ "postfix": false, "binop": null }, - "start": 2620, - "end": 2621, + "start": 2666, + "end": 2667, "loc": { "start": { "line": 56, @@ -5859,8 +5859,8 @@ "binop": null }, "value": "device", - "start": 2621, - "end": 2627, + "start": 2667, + "end": 2673, "loc": { "start": { "line": 56, @@ -5885,8 +5885,8 @@ "binop": null, "updateContext": null }, - "start": 2627, - "end": 2628, + "start": 2673, + "end": 2674, "loc": { "start": { "line": 56, @@ -5911,8 +5911,8 @@ "binop": null }, "value": "mobile", - "start": 2628, - "end": 2634, + "start": 2674, + "end": 2680, "loc": { "start": { "line": 56, @@ -5936,8 +5936,8 @@ "postfix": false, "binop": null }, - "start": 2634, - "end": 2635, + "start": 2680, + "end": 2681, "loc": { "start": { "line": 56, @@ -5961,8 +5961,8 @@ "postfix": false, "binop": null }, - "start": 2635, - "end": 2636, + "start": 2681, + "end": 2682, "loc": { "start": { "line": 56, @@ -5986,8 +5986,8 @@ "postfix": false, "binop": null }, - "start": 2636, - "end": 2637, + "start": 2682, + "end": 2683, "loc": { "start": { "line": 56, @@ -6011,8 +6011,8 @@ "postfix": false, "binop": null }, - "start": 2637, - "end": 2638, + "start": 2683, + "end": 2684, "loc": { "start": { "line": 56, @@ -6036,8 +6036,8 @@ "postfix": false, "binop": null }, - "start": 2638, - "end": 2639, + "start": 2684, + "end": 2685, "loc": { "start": { "line": 56, @@ -6064,8 +6064,8 @@ "updateContext": null }, "value": "return", - "start": 2644, - "end": 2650, + "start": 2690, + "end": 2696, "loc": { "start": { "line": 57, @@ -6090,8 +6090,8 @@ "binop": null, "updateContext": null }, - "start": 2650, - "end": 2651, + "start": 2696, + "end": 2697, "loc": { "start": { "line": 57, @@ -6115,8 +6115,8 @@ "postfix": false, "binop": null }, - "start": 2654, - "end": 2655, + "start": 2700, + "end": 2701, "loc": { "start": { "line": 58, @@ -6143,8 +6143,8 @@ "updateContext": null }, "value": "import", - "start": 2659, - "end": 2665, + "start": 2705, + "end": 2711, "loc": { "start": { "line": 60, @@ -6168,8 +6168,8 @@ "postfix": false, "binop": null }, - "start": 2665, - "end": 2666, + "start": 2711, + "end": 2712, "loc": { "start": { "line": 60, @@ -6184,8 +6184,8 @@ { "type": "CommentBlock", "value": " webpackMode: \"lazy\" ", - "start": 2666, - "end": 2691, + "start": 2712, + "end": 2737, "loc": { "start": { "line": 60, @@ -6211,8 +6211,8 @@ "updateContext": null }, "value": "./_cLive2DApp", - "start": 2692, - "end": 2707, + "start": 2738, + "end": 2753, "loc": { "start": { "line": 60, @@ -6236,8 +6236,8 @@ "postfix": false, "binop": null }, - "start": 2707, - "end": 2708, + "start": 2753, + "end": 2754, "loc": { "start": { "line": 60, @@ -6262,8 +6262,8 @@ "binop": null, "updateContext": null }, - "start": 2708, - "end": 2709, + "start": 2754, + "end": 2755, "loc": { "start": { "line": 60, @@ -6288,8 +6288,8 @@ "binop": null }, "value": "then", - "start": 2709, - "end": 2713, + "start": 2755, + "end": 2759, "loc": { "start": { "line": 60, @@ -6313,8 +6313,8 @@ "postfix": false, "binop": null }, - "start": 2713, - "end": 2714, + "start": 2759, + "end": 2760, "loc": { "start": { "line": 60, @@ -6339,8 +6339,8 @@ "binop": null }, "value": "f", - "start": 2714, - "end": 2715, + "start": 2760, + "end": 2761, "loc": { "start": { "line": 60, @@ -6365,8 +6365,8 @@ "binop": null, "updateContext": null }, - "start": 2716, - "end": 2718, + "start": 2762, + "end": 2764, "loc": { "start": { "line": 60, @@ -6390,8 +6390,8 @@ "postfix": false, "binop": null }, - "start": 2719, - "end": 2720, + "start": 2765, + "end": 2766, "loc": { "start": { "line": 60, @@ -6416,8 +6416,8 @@ "binop": null }, "value": "f", - "start": 2725, - "end": 2726, + "start": 2771, + "end": 2772, "loc": { "start": { "line": 61, @@ -6442,8 +6442,8 @@ "binop": null, "updateContext": null }, - "start": 2726, - "end": 2727, + "start": 2772, + "end": 2773, "loc": { "start": { "line": 61, @@ -6470,8 +6470,8 @@ "updateContext": null }, "value": "default", - "start": 2727, - "end": 2734, + "start": 2773, + "end": 2780, "loc": { "start": { "line": 61, @@ -6495,8 +6495,8 @@ "postfix": false, "binop": null }, - "start": 2734, - "end": 2735, + "start": 2780, + "end": 2781, "loc": { "start": { "line": 61, @@ -6520,8 +6520,8 @@ "postfix": false, "binop": null }, - "start": 2735, - "end": 2736, + "start": 2781, + "end": 2782, "loc": { "start": { "line": 61, @@ -6546,8 +6546,8 @@ "binop": null, "updateContext": null }, - "start": 2736, - "end": 2737, + "start": 2782, + "end": 2783, "loc": { "start": { "line": 61, @@ -6571,8 +6571,8 @@ "postfix": false, "binop": null }, - "start": 2740, - "end": 2741, + "start": 2786, + "end": 2787, "loc": { "start": { "line": 62, @@ -6596,8 +6596,8 @@ "postfix": false, "binop": null }, - "start": 2741, - "end": 2742, + "start": 2787, + "end": 2788, "loc": { "start": { "line": 62, @@ -6622,8 +6622,8 @@ "binop": null, "updateContext": null }, - "start": 2742, - "end": 2743, + "start": 2788, + "end": 2789, "loc": { "start": { "line": 62, @@ -6650,8 +6650,8 @@ "updateContext": null }, "value": "catch", - "start": 2743, - "end": 2748, + "start": 2789, + "end": 2794, "loc": { "start": { "line": 62, @@ -6675,8 +6675,8 @@ "postfix": false, "binop": null }, - "start": 2748, - "end": 2749, + "start": 2794, + "end": 2795, "loc": { "start": { "line": 62, @@ -6701,8 +6701,8 @@ "binop": null }, "value": "err", - "start": 2749, - "end": 2752, + "start": 2795, + "end": 2798, "loc": { "start": { "line": 62, @@ -6727,8 +6727,8 @@ "binop": null, "updateContext": null }, - "start": 2753, - "end": 2755, + "start": 2799, + "end": 2801, "loc": { "start": { "line": 62, @@ -6752,8 +6752,8 @@ "postfix": false, "binop": null }, - "start": 2756, - "end": 2757, + "start": 2802, + "end": 2803, "loc": { "start": { "line": 62, @@ -6778,8 +6778,8 @@ "binop": null }, "value": "console", - "start": 2762, - "end": 2769, + "start": 2808, + "end": 2815, "loc": { "start": { "line": 63, @@ -6804,8 +6804,8 @@ "binop": null, "updateContext": null }, - "start": 2769, - "end": 2770, + "start": 2815, + "end": 2816, "loc": { "start": { "line": 63, @@ -6830,8 +6830,8 @@ "binop": null }, "value": "error", - "start": 2770, - "end": 2775, + "start": 2816, + "end": 2821, "loc": { "start": { "line": 63, @@ -6855,8 +6855,8 @@ "postfix": false, "binop": null }, - "start": 2775, - "end": 2776, + "start": 2821, + "end": 2822, "loc": { "start": { "line": 63, @@ -6881,8 +6881,8 @@ "binop": null }, "value": "err", - "start": 2776, - "end": 2779, + "start": 2822, + "end": 2825, "loc": { "start": { "line": 63, @@ -6906,8 +6906,8 @@ "postfix": false, "binop": null }, - "start": 2779, - "end": 2780, + "start": 2825, + "end": 2826, "loc": { "start": { "line": 63, @@ -6932,8 +6932,8 @@ "binop": null, "updateContext": null }, - "start": 2780, - "end": 2781, + "start": 2826, + "end": 2827, "loc": { "start": { "line": 63, @@ -6957,8 +6957,8 @@ "postfix": false, "binop": null }, - "start": 2784, - "end": 2785, + "start": 2830, + "end": 2831, "loc": { "start": { "line": 64, @@ -6982,8 +6982,8 @@ "postfix": false, "binop": null }, - "start": 2785, - "end": 2786, + "start": 2831, + "end": 2832, "loc": { "start": { "line": 64, @@ -7008,8 +7008,8 @@ "binop": null, "updateContext": null }, - "start": 2786, - "end": 2787, + "start": 2832, + "end": 2833, "loc": { "start": { "line": 64, @@ -7033,8 +7033,8 @@ "postfix": false, "binop": null }, - "start": 2789, - "end": 2790, + "start": 2835, + "end": 2836, "loc": { "start": { "line": 66, @@ -7061,8 +7061,8 @@ "updateContext": null }, "value": "export", - "start": 2792, - "end": 2798, + "start": 2838, + "end": 2844, "loc": { "start": { "line": 68, @@ -7086,8 +7086,8 @@ "postfix": false, "binop": null }, - "start": 2799, - "end": 2800, + "start": 2845, + "end": 2846, "loc": { "start": { "line": 68, @@ -7112,8 +7112,8 @@ "binop": null }, "value": "init", - "start": 2803, - "end": 2807, + "start": 2849, + "end": 2853, "loc": { "start": { "line": 69, @@ -7138,8 +7138,8 @@ "binop": null, "updateContext": null }, - "start": 2807, - "end": 2808, + "start": 2853, + "end": 2854, "loc": { "start": { "line": 69, @@ -7163,8 +7163,8 @@ "postfix": false, "binop": null }, - "start": 2809, - "end": 2810, + "start": 2855, + "end": 2856, "loc": { "start": { "line": 70, @@ -7189,8 +7189,8 @@ "binop": null, "updateContext": null }, - "start": 2811, - "end": 2811, + "start": 2857, + "end": 2857, "loc": { "start": { "line": 71, diff --git a/ghpages/docs/file/src/index.js.html b/ghpages/docs/file/src/index.js.html index 7744b6e..8b8f39f 100644 --- a/ghpages/docs/file/src/index.js.html +++ b/ghpages/docs/file/src/index.js.html @@ -64,29 +64,29 @@ /** * The public entry point - * @param {Object} [userConfig] User's custom config - * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json - * @param {Number} [model.scale = 1] Scale between the model and the canvas - * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head - * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head - * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine - * @param {Number} [display.AA = 2] Antialiasing grade - * @param {Number} [display.widget = 150] Widget to the canvas which shows the model - * @param {Number} [display.height = 300] Height to the canvas which shows the model - * @param {String} [display.position = 'right'] Left of right side to show - * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas - * @param {Number} [display.vOffset = -20] Vertical offset of the canvas - * @param {Bool} [mobile.show = true] Whether to show on mobile device - * @param {Number} [mobile.scale = 0.5] Scale on mobile device - * @param {Bool} [mobile.motion = true] Whether to enable motion detection on mobile devices - * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas - * @param {String} [name.div = 'live2d-widget'] ID name of the div - * @param {Number} [react.opacityDefault = 0.7] Default opacity - * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity - * @param {Func} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. - * @param {Bool} [dev.log = false] Whether to show log - * @param {Bool} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled - * @param {Func} [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 + * @param {Object} [userConfig] User's custom config + * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json + * @param {Number} [model.scale = 1] Scale between the model and the canvas + * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head + * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head + * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine + * @param {Number} [display.AA = 2] Antialiasing grade + * @param {Number} [display.widget = 150] Widget to the canvas which shows the model + * @param {Number} [display.height = 300] Height to the canvas which shows the model + * @param {String} [display.position = 'right'] Left of right side to show + * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas + * @param {Number} [display.vOffset = -20] Vertical offset of the canvas + * @param {Boolean} [mobile.show = true] Whether to show on mobile device + * @param {Number} [mobile.scale = 0.5] Scale on mobile device + * @param {Boolean} [mobile.motion = true] Whether to enable motion detection on mobile devices + * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas + * @param {String} [name.div = 'live2d-widget'] ID name of the div + * @param {Number} [react.opacityDefault = 0.7] Default opacity + * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity + * @param {Function} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. + * @param {Boolean} [dev.log = false] Whether to show log + * @param {Boolean} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled + * @param {Function} [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 */ function init(userConfig){ diff --git a/ghpages/docs/function/index.html b/ghpages/docs/function/index.html index 78febf3..0dc9851 100644 --- a/ghpages/docs/function/index.html +++ b/ghpages/docs/function/index.html @@ -1019,7 +1019,7 @@

Params:

mobile.show - Bool + Boolean

Whether to show on mobile device

@@ -1035,7 +1035,7 @@

Params:

mobile.motion - Bool + Boolean

Whether to enable motion detection on mobile devices

@@ -1075,7 +1075,7 @@

Params:

react.myFunc - Func + Function

Custom event handler, won't override main handler, will reveice the event type.

@@ -1083,7 +1083,7 @@

Params:

dev.log - Bool + Boolean

Whether to show log

@@ -1091,7 +1091,7 @@

Params:

dev.mouseLog - Bool + Boolean

Whether to show mouse log (tons of log), only work when dev.log is enabled

@@ -1099,7 +1099,7 @@

Params:

dev.mouseFunc - Func + Function

Custom logger, only work when dev.log is enabled, will receive (x, y, ix, iy), which presents the actucally position and vitural position

diff --git a/ghpages/docs/index.json b/ghpages/docs/index.json index 72ff5d2..933ab18 100644 --- a/ghpages/docs/index.json +++ b/ghpages/docs/index.json @@ -732,7 +732,7 @@ "__docId__": 56, "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\n/**\n * The public entry point\n * @param {Object} [userConfig] User's custom config\n * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json\n * @param {Number} [model.scale = 1] Scale between the model and the canvas\n * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head\n * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head\n * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine\n * @param {Number} [display.AA = 2] Antialiasing grade\n * @param {Number} [display.widget = 150] Widget to the canvas which shows the model\n * @param {Number} [display.height = 300] Height to the canvas which shows the model\n * @param {String} [display.position = 'right'] Left of right side to show\n * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas\n * @param {Number} [display.vOffset = -20] Vertical offset of the canvas\n * @param {Bool} [mobile.show = true] Whether to show on mobile device\n * @param {Number} [mobile.scale = 0.5] Scale on mobile device\n * @param {Bool} [mobile.motion = true] Whether to enable motion detection on mobile devices\n * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas\n * @param {String} [name.div = 'live2d-widget'] ID name of the div\n * @param {Number} [react.opacityDefault = 0.7] Default opacity\n * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity\n * @param {Func} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type.\n * @param {Bool} [dev.log = false] Whether to show log\n * @param {Bool} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled\n * @param {Func} [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 */\n\nfunction init(userConfig){\n\n userConfig = typeof userConfig === 'undefined' ? {} : userConfig;\n\n if (process.env.NODE_ENV === 'development'){\n console.log('--- --- --- --- ---');\n console.log('Hey that, notice that you are now in DEV MODE.');\n console.log('--- --- --- --- ---');\n }\n\n configApplyer(userConfig);\n\n if((!config.mobile.show)&&(device.mobile())){\n return;\n }\n\n import(/* webpackMode: \"lazy\" */ './_cLive2DApp').then(f => {\n f.default();\n }).catch(err => {\n console.error(err);\n });\n\n}\n\nexport {\n init,\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\n/**\n * The public entry point\n * @param {Object} [userConfig] User's custom config\n * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json\n * @param {Number} [model.scale = 1] Scale between the model and the canvas\n * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head\n * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head\n * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine\n * @param {Number} [display.AA = 2] Antialiasing grade\n * @param {Number} [display.widget = 150] Widget to the canvas which shows the model\n * @param {Number} [display.height = 300] Height to the canvas which shows the model\n * @param {String} [display.position = 'right'] Left of right side to show\n * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas\n * @param {Number} [display.vOffset = -20] Vertical offset of the canvas\n * @param {Boolean} [mobile.show = true] Whether to show on mobile device\n * @param {Number} [mobile.scale = 0.5] Scale on mobile device\n * @param {Boolean} [mobile.motion = true] Whether to enable motion detection on mobile devices\n * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas\n * @param {String} [name.div = 'live2d-widget'] ID name of the div\n * @param {Number} [react.opacityDefault = 0.7] Default opacity\n * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity\n * @param {Function} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type.\n * @param {Boolean} [dev.log = false] Whether to show log\n * @param {Boolean} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled\n * @param {Function} [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 */\n\nfunction init(userConfig){\n\n userConfig = typeof userConfig === 'undefined' ? {} : userConfig;\n\n if (process.env.NODE_ENV === 'development'){\n console.log('--- --- --- --- ---');\n console.log('Hey that, notice that you are now in DEV MODE.');\n console.log('--- --- --- --- ---');\n }\n\n configApplyer(userConfig);\n\n if((!config.mobile.show)&&(device.mobile())){\n return;\n }\n\n import(/* webpackMode: \"lazy\" */ './_cLive2DApp').then(f => {\n f.default();\n }).catch(err => {\n console.error(err);\n });\n\n}\n\nexport {\n init,\n}\n", "static": true, "longname": "D:/git/live2d-widget.js/src/index.js", "access": "public", @@ -900,7 +900,7 @@ { "nullable": null, "types": [ - "Bool" + "Boolean" ], "spread": false, "optional": true, @@ -924,7 +924,7 @@ { "nullable": null, "types": [ - "Bool" + "Boolean" ], "spread": false, "optional": true, @@ -984,7 +984,7 @@ { "nullable": null, "types": [ - "Func" + "Function" ], "spread": false, "optional": true, @@ -996,7 +996,7 @@ { "nullable": null, "types": [ - "Bool" + "Boolean" ], "spread": false, "optional": true, @@ -1008,7 +1008,7 @@ { "nullable": null, "types": [ - "Bool" + "Boolean" ], "spread": false, "optional": true, @@ -1020,7 +1020,7 @@ { "nullable": null, "types": [ - "Func" + "Function" ], "spread": false, "optional": true, diff --git a/ghpages/docs/source.html b/ghpages/docs/source.html index bb8bef0..dcee58f 100644 --- a/ghpages/docs/source.html +++ b/ghpages/docs/source.html @@ -178,9 +178,9 @@ src/index.js init 100 %1/1 - 2811 byte + 2857 byte 70 - 2018-01-01 04:38:17 (UTC) + 2018-01-01 04:48:45 (UTC) src/wpPublicPath.js diff --git a/src/index.js b/src/index.js index 8483445..d68ead6 100644 --- a/src/index.js +++ b/src/index.js @@ -16,29 +16,29 @@ import { config, configApplyer }from './config/configMgr'; /** * The public entry point - * @param {Object} [userConfig] User's custom config - * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json - * @param {Number} [model.scale = 1] Scale between the model and the canvas - * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head - * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head - * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine - * @param {Number} [display.AA = 2] Antialiasing grade - * @param {Number} [display.widget = 150] Widget to the canvas which shows the model - * @param {Number} [display.height = 300] Height to the canvas which shows the model - * @param {String} [display.position = 'right'] Left of right side to show - * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas - * @param {Number} [display.vOffset = -20] Vertical offset of the canvas - * @param {Bool} [mobile.show = true] Whether to show on mobile device - * @param {Number} [mobile.scale = 0.5] Scale on mobile device - * @param {Bool} [mobile.motion = true] Whether to enable motion detection on mobile devices - * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas - * @param {String} [name.div = 'live2d-widget'] ID name of the div - * @param {Number} [react.opacityDefault = 0.7] Default opacity - * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity - * @param {Func} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. - * @param {Bool} [dev.log = false] Whether to show log - * @param {Bool} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled - * @param {Func} [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 + * @param {Object} [userConfig] User's custom config + * @param {String} [model.jsonPath = ''] Path to Live2D model's main json eg. https://test.com/miku.model.json + * @param {Number} [model.scale = 1] Scale between the model and the canvas + * @param {Number} [model.hHeadPos = 0.5] Horizontal position of model's head + * @param {Number} [model.vHeadPos = 0.618] Vertical position of model's head + * @param {Array} [model.myDefine = []] User's custom Defines which will override LDefine + * @param {Number} [display.AA = 2] Antialiasing grade + * @param {Number} [display.widget = 150] Widget to the canvas which shows the model + * @param {Number} [display.height = 300] Height to the canvas which shows the model + * @param {String} [display.position = 'right'] Left of right side to show + * @param {Number} [display.hOffset = 0] Horizontal offset of the canvas + * @param {Number} [display.vOffset = -20] Vertical offset of the canvas + * @param {Boolean} [mobile.show = true] Whether to show on mobile device + * @param {Number} [mobile.scale = 0.5] Scale on mobile device + * @param {Boolean} [mobile.motion = true] Whether to enable motion detection on mobile devices + * @param {String} [name.canvas = 'live2dcanvas'] ID name of the canvas + * @param {String} [name.div = 'live2d-widget'] ID name of the div + * @param {Number} [react.opacityDefault = 0.7] Default opacity + * @param {Number} [react.opacityOnHover = 0.2] OnHover opacity + * @param {Function} [react.myFunc = func(e)] Custom event handler, won't override main handler, will reveice the event type. + * @param {Boolean} [dev.log = false] Whether to show log + * @param {Boolean} [dev.mouseLog = false] Whether to show mouse log (tons of log), only work when dev.log is enabled + * @param {Function} [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 */ function init(userConfig){