fl-web-component 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2705,13 +2705,6 @@ Factory_1.Factory.addGetterSetter(TextPath, 'textDecoration', '');
2705
2705
  Factory_1.Factory.addGetterSetter(TextPath, 'kerningFunc', undefined);
2706
2706
 
2707
2707
 
2708
- /***/ }),
2709
-
2710
- /***/ "2d3b":
2711
- /***/ (function(module, exports, __webpack_require__) {
2712
-
2713
- // extracted by mini-css-extract-plugin
2714
-
2715
2708
  /***/ }),
2716
2709
 
2717
2710
  /***/ "2fb2":
@@ -2854,13 +2847,6 @@ Factory_1.Factory.addGetterSetter(Ellipse, 'radiusX', 0, (0, Validators_1.getNum
2854
2847
  Factory_1.Factory.addGetterSetter(Ellipse, 'radiusY', 0, (0, Validators_1.getNumberValidator)());
2855
2848
 
2856
2849
 
2857
- /***/ }),
2858
-
2859
- /***/ "3846":
2860
- /***/ (function(module, exports) {
2861
-
2862
- module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHWlUWHRTb2Z0d2FyZQAAAAAAQWRvYmUgSW1hZ2VSZWFkeQatApcAAAMjaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0OCA3OS4xNjQwMzYsIDIwMTkvMDgvMTMtMDE6MDY6NTcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozQTZEQkVBMjIxRjcxMUVEOTlGOEMyREEyQzFENDlGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozQTZEQkVBMzIxRjcxMUVEOTlGOEMyREEyQzFENDlGNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjNBNkRCRUEwMjFGNzExRUQ5OUY4QzJEQTJDMUQ0OUY2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjNBNkRCRUExMjFGNzExRUQ5OUY4QzJEQTJDMUQ0OUY2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+4creZwAABhhJREFUSIldV0uIHFUUPfe9etVV/Zv0JH6SGTQuwiQTMSqO+EEQURF04U7EjYiCuBGjbhQFXYgrEcSFC1H3sxIRf5EERchSFM0kIRqZwQwzmu6Z7q6uz6vrou6dKiwo+tX73M+55953m1ZWE4PqYQABAAcgB1AAiGW+lLkAAAHIABhZzwBEAGYyDmUPiQwvY5YXEEGQhbJxoGwcDAC0RfFMBLVFMcn5RAwuAVgAqfyqUzrvVbl6UIrVubxGLG/JmpM5lv3txt52wwkjxipqgSjkxlkAYFWs1tsGVEaEzmRzD8CcCJ6KoaG8pXjTl7VcFLVkrAoD2Vco1EaU5iKwkEOQb4UtRBXHDoD5BvwsZ1gM3EEdNn31KQGYpscsELVFwVCEXdM45ERpLGOgiq+R+Uzm9gMYAZiI0V1UcVfCJuqxkqnbgCZCzQGFNEKDmSLEyli9LsWQCDV/VH4ge9D0OBSrShl3UMU0BMNTCccWXYFyAqBjPMZskDChJ5578boUo8rGN8QpAKBAlAeomW0ERvWArGdfGopNgdA7GADX2QIpCI48WrBgJrQkLKXAnIgjyuhc1noKdY6aWJoqFkCXGNbm7P9eds8MF81DR05nb7amnOct8kWIuT/udm/t2yh/OvRL8UnWoWuY9lKsJzJKVCzPxLmWhiMQWKeoUqEtllZQMywY0zzG9cP9ZvnifeHbS9+n70W75Wh00C6PD9ilq9fZpXDKkwMX/Zdpl+ZBmKBieht1mqliNYxoZTWJxYquKHRicQ8AUYkoSJk2bnXPX745eGKwVZ5fOpW+F054PFq0x8890DqZObSOncne33+p+GLWMwdAKAFsoM75XdT5PQbAtLKa9BowdwAMBJI+gAiEOVPAuoR5/Tb39J+3BI8NtsoLS6eyd6NR+c/wBnvH7w+Gr2SOouXT2bvzf/jvZj3qg7AtChWBQmI+A1DQymoSSvBjIZd63pV3DoTIFJh3E766fnvw1J8n3GPzm/7ckTP5B/Go3Bou2OO/PRy+7gMKjp3K3pjb8N9kXRqAsSmKJqJ4KIjOaGU10XztC9ULVAWgJwYdAnAQBEMeQTwqr2zc4h6/eKd7cu7f8vKRM9lHnW3+a3KArv310dY7aUjRsdPZa/vW/Xd5TP5/7L4qhqBZQDLUl4ERuJ2mGwMUFCjziPrJPrqWAES7PDQeCVvmZM4e8o6iVgEfZDxjgkF9weSoyqjeBYlWEv0NhY2ZWNkBkDNhx80YYPCF+8OXtxbtiYW14vRNZ/OPbcazzWPu4XP3uufihCfHv05faO3w5bRLA2JcEVbrdZqKU6GmE4R1bdT3cApgzISBm/G/AOYv3h+e3FqwJxbW/A+HK6XjzaPukXP3uufiGafHv85ei0b8V9qjmBhTkVOgLqHaUHDQgDhu5FwosMDmGPqQepfuCl/cXjC3Lq4V3994Nv+UGO7KcvDo+Xvcs3HCk+Vv0jejEV9Ie9QHY1e81FCypJc2BFZbHW179sokAE+M3BbsL62EL20vmtsX1oqvbjybf0iMzs5Bc/T8PeGzUcLj5W/TV+MRb6Y92gfGTkOWhmwonPGKgnYIRjZ1UXciUyY4HxAP1v2PQcHjhZ+Lz7yjfhkgcgmvL6wVnw8u+zPRkC/MujRPjH8kZCHqu3qK+tqditdGK5eVTX2BXAnXA6FtM2ZbYJy36HBpMQCQGA/jUh75ALYIqUW8Vw4L+U0AbKPuxzSXGVKrtWoFqMtaLO8EDOMddb2r2h5iXAVQsgFnMRkAjip49crLBdqJfDtBU6/fGRo9V4I6b7XBm6Bu/LSlyVGVQeVEIGeVrV7WVZFvzEN+98ilSV2gfhLU7FZ4lDRKPoeamLsNb/V20/67EB3a/uYKtbYlthEfRlU8jMAP2aNh0DT0qMiYou6Zx6irlfbXaOxnhVr/Kahgi4pkepP0URcCJZDCTOKtb4RE4dcwOfnWZrIA4NVjRt3iBqjj60R5R6yeoe4ak0Z4tLvUOq+oFI15LU57/yS0J9Kqor1Rs8TtoL4uFX4lj5bDiQjW9oZlXYkFVdpUrI/GQJVmYkyToYqKcmEvbv/7VkVlY7z3/Acev8pOdpGW/AAAAABJRU5ErkJggg=="
2863
-
2864
2850
  /***/ }),
2865
2851
 
2866
2852
  /***/ "3c96":
@@ -4644,6 +4630,17 @@ function _setPrototypeOf(t, e) {
4644
4630
  }
4645
4631
  module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
4646
4632
 
4633
+ /***/ }),
4634
+
4635
+ /***/ "52b4":
4636
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4637
+
4638
+ "use strict";
4639
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_6e37e043_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("acad");
4640
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_6e37e043_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_6e37e043_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
4641
+ /* unused harmony reexport * */
4642
+
4643
+
4647
4644
  /***/ }),
4648
4645
 
4649
4646
  /***/ "5414":
@@ -11181,14 +11178,10 @@ module.exports = toPropertyKey, module.exports.__esModule = true, module.exports
11181
11178
 
11182
11179
  /***/ }),
11183
11180
 
11184
- /***/ "b003":
11185
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11186
-
11187
- "use strict";
11188
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_dd89824e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2d3b");
11189
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_dd89824e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_dd89824e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
11190
- /* unused harmony reexport * */
11181
+ /***/ "acad":
11182
+ /***/ (function(module, exports, __webpack_require__) {
11191
11183
 
11184
+ // extracted by mini-css-extract-plugin
11192
11185
 
11193
11186
  /***/ }),
11194
11187
 
@@ -11206,6 +11199,17 @@ function _construct(t, e, r) {
11206
11199
  }
11207
11200
  module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
11208
11201
 
11202
+ /***/ }),
11203
+
11204
+ /***/ "b2fd":
11205
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11206
+
11207
+ "use strict";
11208
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_per_control_vue_vue_type_style_index_0_id_f547d5c6_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e24a");
11209
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_per_control_vue_vue_type_style_index_0_id_f547d5c6_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_per_control_vue_vue_type_style_index_0_id_f547d5c6_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
11210
+ /* unused harmony reexport * */
11211
+
11212
+
11209
11213
  /***/ }),
11210
11214
 
11211
11215
  /***/ "b33b":
@@ -13809,6 +13813,13 @@ if (Global_1.Konva.isBrowser) {
13809
13813
  }
13810
13814
 
13811
13815
 
13816
+ /***/ }),
13817
+
13818
+ /***/ "e24a":
13819
+ /***/ (function(module, exports, __webpack_require__) {
13820
+
13821
+ // extracted by mini-css-extract-plugin
13822
+
13812
13823
  /***/ }),
13813
13824
 
13814
13825
  /***/ "e3af":
@@ -16116,8 +16127,8 @@ if (typeof window !== 'undefined') {
16116
16127
  // Indicate to webpack that this file can be concatenated
16117
16128
  /* harmony default export */ var setPublicPath = (null);
16118
16129
 
16119
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"433047de-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/index.vue?vue&type=template&id=dd89824e&scoped=true
16120
- var com_graphicsvue_type_template_id_dd89824e_scoped_true_render = function render() {
16130
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4217f59c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/index.vue?vue&type=template&id=6e37e043&scoped=true
16131
+ var com_graphicsvue_type_template_id_6e37e043_scoped_true_render = function render() {
16121
16132
  var _vm = this,
16122
16133
  _c = _vm._self._c;
16123
16134
  return _c('div', {
@@ -16128,7 +16139,7 @@ var com_graphicsvue_type_template_id_dd89824e_scoped_true_render = function rend
16128
16139
  };
16129
16140
  var staticRenderFns = [];
16130
16141
 
16131
- // CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=template&id=dd89824e&scoped=true
16142
+ // CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=template&id=6e37e043&scoped=true
16132
16143
 
16133
16144
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
16134
16145
  var slicedToArray = __webpack_require__("278c");
@@ -38150,6 +38161,755 @@ function onPointerlockError() {
38150
38161
  console.error('THREE.PointerLockControls: Unable to use Pointer Lock API');
38151
38162
  }
38152
38163
 
38164
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/typeof.js
38165
+ var helpers_typeof = __webpack_require__("7037");
38166
+ var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
38167
+
38168
+ // CONCATENATED MODULE: ./node_modules/three/examples/jsm/libs/lil-gui.module.min.js
38169
+
38170
+
38171
+
38172
+
38173
+
38174
+
38175
+
38176
+ function lil_gui_module_min_callSuper(t, o, e) { return o = getPrototypeOf_default()(o), possibleConstructorReturn_default()(t, lil_gui_module_min_isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf_default()(t).constructor) : o.apply(t, e)); }
38177
+ function lil_gui_module_min_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (lil_gui_module_min_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
38178
+ /**
38179
+ * lil-gui
38180
+ * https://lil-gui.georgealways.com
38181
+ * @version 0.17.0
38182
+ * @author George Michael Brower
38183
+ * @license MIT
38184
+ */
38185
+ var lil_gui_module_min_t = /*#__PURE__*/function () {
38186
+ function t(i, e, s, n) {
38187
+ var l = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : "div";
38188
+ classCallCheck_default()(this, t);
38189
+ this.parent = i, this.object = e, this.property = s, this._disabled = !1, this._hidden = !1, this.initialValue = this.getValue(), this.domElement = document.createElement("div"), this.domElement.classList.add("controller"), this.domElement.classList.add(n), this.$name = document.createElement("div"), this.$name.classList.add("name"), t.nextNameID = t.nextNameID || 0, this.$name.id = "lil-gui-name-" + ++t.nextNameID, this.$widget = document.createElement(l), this.$widget.classList.add("widget"), this.$disable = this.$widget, this.domElement.appendChild(this.$name), this.domElement.appendChild(this.$widget), this.parent.children.push(this), this.parent.controllers.push(this), this.parent.$children.appendChild(this.domElement), this._listenCallback = this._listenCallback.bind(this), this.name(s);
38190
+ }
38191
+ return createClass_default()(t, [{
38192
+ key: "name",
38193
+ value: function name(_t) {
38194
+ return this._name = _t, this.$name.innerHTML = _t, this;
38195
+ }
38196
+ }, {
38197
+ key: "onChange",
38198
+ value: function onChange(_t2) {
38199
+ return this._onChange = _t2, this;
38200
+ }
38201
+ }, {
38202
+ key: "_callOnChange",
38203
+ value: function _callOnChange() {
38204
+ this.parent._callOnChange(this), void 0 !== this._onChange && this._onChange.call(this, this.getValue()), this._changed = !0;
38205
+ }
38206
+ }, {
38207
+ key: "onFinishChange",
38208
+ value: function onFinishChange(_t3) {
38209
+ return this._onFinishChange = _t3, this;
38210
+ }
38211
+ }, {
38212
+ key: "_callOnFinishChange",
38213
+ value: function _callOnFinishChange() {
38214
+ this._changed && (this.parent._callOnFinishChange(this), void 0 !== this._onFinishChange && this._onFinishChange.call(this, this.getValue())), this._changed = !1;
38215
+ }
38216
+ }, {
38217
+ key: "reset",
38218
+ value: function reset() {
38219
+ return this.setValue(this.initialValue), this._callOnFinishChange(), this;
38220
+ }
38221
+ }, {
38222
+ key: "enable",
38223
+ value: function enable() {
38224
+ var _t4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
38225
+ return this.disable(!_t4);
38226
+ }
38227
+ }, {
38228
+ key: "disable",
38229
+ value: function disable() {
38230
+ var _t5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
38231
+ return _t5 === this._disabled || (this._disabled = _t5, this.domElement.classList.toggle("disabled", _t5), this.$disable.toggleAttribute("disabled", _t5)), this;
38232
+ }
38233
+ }, {
38234
+ key: "show",
38235
+ value: function show() {
38236
+ var _t6 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
38237
+ return this._hidden = !_t6, this.domElement.style.display = this._hidden ? "none" : "", this;
38238
+ }
38239
+ }, {
38240
+ key: "hide",
38241
+ value: function hide() {
38242
+ return this.show(!1);
38243
+ }
38244
+ }, {
38245
+ key: "options",
38246
+ value: function options(_t7) {
38247
+ var i = this.parent.add(this.object, this.property, _t7);
38248
+ return i.name(this._name), this.destroy(), i;
38249
+ }
38250
+ }, {
38251
+ key: "min",
38252
+ value: function min(_t8) {
38253
+ return this;
38254
+ }
38255
+ }, {
38256
+ key: "max",
38257
+ value: function max(_t9) {
38258
+ return this;
38259
+ }
38260
+ }, {
38261
+ key: "step",
38262
+ value: function step(_t0) {
38263
+ return this;
38264
+ }
38265
+ }, {
38266
+ key: "decimals",
38267
+ value: function decimals(_t1) {
38268
+ return this;
38269
+ }
38270
+ }, {
38271
+ key: "listen",
38272
+ value: function listen() {
38273
+ var _t10 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
38274
+ return this._listening = _t10, void 0 !== this._listenCallbackID && (cancelAnimationFrame(this._listenCallbackID), this._listenCallbackID = void 0), this._listening && this._listenCallback(), this;
38275
+ }
38276
+ }, {
38277
+ key: "_listenCallback",
38278
+ value: function _listenCallback() {
38279
+ this._listenCallbackID = requestAnimationFrame(this._listenCallback);
38280
+ var _t11 = this.save();
38281
+ _t11 !== this._listenPrevValue && this.updateDisplay(), this._listenPrevValue = _t11;
38282
+ }
38283
+ }, {
38284
+ key: "getValue",
38285
+ value: function getValue() {
38286
+ return this.object[this.property];
38287
+ }
38288
+ }, {
38289
+ key: "setValue",
38290
+ value: function setValue(_t12) {
38291
+ return this.object[this.property] = _t12, this._callOnChange(), this.updateDisplay(), this;
38292
+ }
38293
+ }, {
38294
+ key: "updateDisplay",
38295
+ value: function updateDisplay() {
38296
+ return this;
38297
+ }
38298
+ }, {
38299
+ key: "load",
38300
+ value: function load(_t13) {
38301
+ return this.setValue(_t13), this._callOnFinishChange(), this;
38302
+ }
38303
+ }, {
38304
+ key: "save",
38305
+ value: function save() {
38306
+ return this.getValue();
38307
+ }
38308
+ }, {
38309
+ key: "destroy",
38310
+ value: function destroy() {
38311
+ this.listen(!1), this.parent.children.splice(this.parent.children.indexOf(this), 1), this.parent.controllers.splice(this.parent.controllers.indexOf(this), 1), this.parent.$children.removeChild(this.domElement);
38312
+ }
38313
+ }]);
38314
+ }();
38315
+ var lil_gui_module_min_i = /*#__PURE__*/function (_t14) {
38316
+ function i(t, _i, e) {
38317
+ var _this;
38318
+ classCallCheck_default()(this, i);
38319
+ _this = lil_gui_module_min_callSuper(this, i, [t, _i, e, "boolean", "label"]), _this.$input = document.createElement("input"), _this.$input.setAttribute("type", "checkbox"), _this.$input.setAttribute("aria-labelledby", _this.$name.id), _this.$widget.appendChild(_this.$input), _this.$input.addEventListener("change", function () {
38320
+ _this.setValue(_this.$input.checked), _this._callOnFinishChange();
38321
+ }), _this.$disable = _this.$input, _this.updateDisplay();
38322
+ return _this;
38323
+ }
38324
+ inherits_default()(i, _t14);
38325
+ return createClass_default()(i, [{
38326
+ key: "updateDisplay",
38327
+ value: function updateDisplay() {
38328
+ return this.$input.checked = this.getValue(), this;
38329
+ }
38330
+ }]);
38331
+ }(lil_gui_module_min_t);
38332
+ function lil_gui_module_min_e(t) {
38333
+ var i, e;
38334
+ return (i = t.match(/(#|0x)?([a-f0-9]{6})/i)) ? e = i[2] : (i = t.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/)) ? e = parseInt(i[1]).toString(16).padStart(2, 0) + parseInt(i[2]).toString(16).padStart(2, 0) + parseInt(i[3]).toString(16).padStart(2, 0) : (i = t.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i)) && (e = i[1] + i[1] + i[2] + i[2] + i[3] + i[3]), !!e && "#" + e;
38335
+ }
38336
+ var lil_gui_module_min_s = {
38337
+ isPrimitive: !0,
38338
+ match: function match(t) {
38339
+ return "string" == typeof t;
38340
+ },
38341
+ fromHexString: lil_gui_module_min_e,
38342
+ toHexString: lil_gui_module_min_e
38343
+ },
38344
+ lil_gui_module_min_n = {
38345
+ isPrimitive: !0,
38346
+ match: function match(t) {
38347
+ return "number" == typeof t;
38348
+ },
38349
+ fromHexString: function fromHexString(t) {
38350
+ return parseInt(t.substring(1), 16);
38351
+ },
38352
+ toHexString: function toHexString(t) {
38353
+ return "#" + t.toString(16).padStart(6, 0);
38354
+ }
38355
+ },
38356
+ lil_gui_module_min_l = {
38357
+ isPrimitive: !1,
38358
+ match: Array.isArray,
38359
+ fromHexString: function fromHexString(t, i) {
38360
+ var e = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
38361
+ var s = lil_gui_module_min_n.fromHexString(t);
38362
+ i[0] = (s >> 16 & 255) / 255 * e, i[1] = (s >> 8 & 255) / 255 * e, i[2] = (255 & s) / 255 * e;
38363
+ },
38364
+ toHexString: function toHexString(_ref) {
38365
+ var _ref2 = slicedToArray_default()(_ref, 3),
38366
+ t = _ref2[0],
38367
+ i = _ref2[1],
38368
+ e = _ref2[2];
38369
+ var s = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
38370
+ return lil_gui_module_min_n.toHexString(t * (s = 255 / s) << 16 ^ i * s << 8 ^ e * s << 0);
38371
+ }
38372
+ },
38373
+ lil_gui_module_min_r = {
38374
+ isPrimitive: !1,
38375
+ match: function match(t) {
38376
+ return Object(t) === t;
38377
+ },
38378
+ fromHexString: function fromHexString(t, i) {
38379
+ var e = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
38380
+ var s = lil_gui_module_min_n.fromHexString(t);
38381
+ i.r = (s >> 16 & 255) / 255 * e, i.g = (s >> 8 & 255) / 255 * e, i.b = (255 & s) / 255 * e;
38382
+ },
38383
+ toHexString: function toHexString(_ref3) {
38384
+ var t = _ref3.r,
38385
+ i = _ref3.g,
38386
+ e = _ref3.b;
38387
+ var s = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
38388
+ return lil_gui_module_min_n.toHexString(t * (s = 255 / s) << 16 ^ i * s << 8 ^ e * s << 0);
38389
+ }
38390
+ },
38391
+ lil_gui_module_min_o = [lil_gui_module_min_s, lil_gui_module_min_n, lil_gui_module_min_l, lil_gui_module_min_r];
38392
+ var lil_gui_module_min_a = /*#__PURE__*/function (_t15) {
38393
+ function a(t, i, s, n) {
38394
+ var _this2;
38395
+ classCallCheck_default()(this, a);
38396
+ var l;
38397
+ _this2 = lil_gui_module_min_callSuper(this, a, [t, i, s, "color"]), _this2.$input = document.createElement("input"), _this2.$input.setAttribute("type", "color"), _this2.$input.setAttribute("tabindex", -1), _this2.$input.setAttribute("aria-labelledby", _this2.$name.id), _this2.$text = document.createElement("input"), _this2.$text.setAttribute("type", "text"), _this2.$text.setAttribute("spellcheck", "false"), _this2.$text.setAttribute("aria-labelledby", _this2.$name.id), _this2.$display = document.createElement("div"), _this2.$display.classList.add("display"), _this2.$display.appendChild(_this2.$input), _this2.$widget.appendChild(_this2.$display), _this2.$widget.appendChild(_this2.$text), _this2._format = (l = _this2.initialValue, lil_gui_module_min_o.find(function (t) {
38398
+ return t.match(l);
38399
+ })), _this2._rgbScale = n, _this2._initialValueHexString = _this2.save(), _this2._textFocused = !1, _this2.$input.addEventListener("input", function () {
38400
+ _this2._setValueFromHexString(_this2.$input.value);
38401
+ }), _this2.$input.addEventListener("blur", function () {
38402
+ _this2._callOnFinishChange();
38403
+ }), _this2.$text.addEventListener("input", function () {
38404
+ var t = lil_gui_module_min_e(_this2.$text.value);
38405
+ t && _this2._setValueFromHexString(t);
38406
+ }), _this2.$text.addEventListener("focus", function () {
38407
+ _this2._textFocused = !0, _this2.$text.select();
38408
+ }), _this2.$text.addEventListener("blur", function () {
38409
+ _this2._textFocused = !1, _this2.updateDisplay(), _this2._callOnFinishChange();
38410
+ }), _this2.$disable = _this2.$text, _this2.updateDisplay();
38411
+ return _this2;
38412
+ }
38413
+ inherits_default()(a, _t15);
38414
+ return createClass_default()(a, [{
38415
+ key: "reset",
38416
+ value: function reset() {
38417
+ return this._setValueFromHexString(this._initialValueHexString), this;
38418
+ }
38419
+ }, {
38420
+ key: "_setValueFromHexString",
38421
+ value: function _setValueFromHexString(t) {
38422
+ if (this._format.isPrimitive) {
38423
+ var _i2 = this._format.fromHexString(t);
38424
+ this.setValue(_i2);
38425
+ } else this._format.fromHexString(t, this.getValue(), this._rgbScale), this._callOnChange(), this.updateDisplay();
38426
+ }
38427
+ }, {
38428
+ key: "save",
38429
+ value: function save() {
38430
+ return this._format.toHexString(this.getValue(), this._rgbScale);
38431
+ }
38432
+ }, {
38433
+ key: "load",
38434
+ value: function load(t) {
38435
+ return this._setValueFromHexString(t), this._callOnFinishChange(), this;
38436
+ }
38437
+ }, {
38438
+ key: "updateDisplay",
38439
+ value: function updateDisplay() {
38440
+ return this.$input.value = this._format.toHexString(this.getValue(), this._rgbScale), this._textFocused || (this.$text.value = this.$input.value.substring(1)), this.$display.style.backgroundColor = this.$input.value, this;
38441
+ }
38442
+ }]);
38443
+ }(lil_gui_module_min_t);
38444
+ var lil_gui_module_min_h = /*#__PURE__*/function (_t16) {
38445
+ function h(t, i, e) {
38446
+ var _this3;
38447
+ classCallCheck_default()(this, h);
38448
+ _this3 = lil_gui_module_min_callSuper(this, h, [t, i, e, "function"]), _this3.$button = document.createElement("button"), _this3.$button.appendChild(_this3.$name), _this3.$widget.appendChild(_this3.$button), _this3.$button.addEventListener("click", function (t) {
38449
+ t.preventDefault(), _this3.getValue().call(_this3.object);
38450
+ }), _this3.$button.addEventListener("touchstart", function () {}, {
38451
+ passive: !0
38452
+ }), _this3.$disable = _this3.$button;
38453
+ return _this3;
38454
+ }
38455
+ inherits_default()(h, _t16);
38456
+ return createClass_default()(h);
38457
+ }(lil_gui_module_min_t);
38458
+ var lil_gui_module_min_d = /*#__PURE__*/function (_t17) {
38459
+ function d(t, i, e, s, n, l) {
38460
+ var _this4;
38461
+ classCallCheck_default()(this, d);
38462
+ _this4 = lil_gui_module_min_callSuper(this, d, [t, i, e, "number"]), _this4._initInput(), _this4.min(s), _this4.max(n);
38463
+ var r = void 0 !== l;
38464
+ _this4.step(r ? l : _this4._getImplicitStep(), r), _this4.updateDisplay();
38465
+ return _this4;
38466
+ }
38467
+ inherits_default()(d, _t17);
38468
+ return createClass_default()(d, [{
38469
+ key: "decimals",
38470
+ value: function decimals(t) {
38471
+ return this._decimals = t, this.updateDisplay(), this;
38472
+ }
38473
+ }, {
38474
+ key: "min",
38475
+ value: function min(t) {
38476
+ return this._min = t, this._onUpdateMinMax(), this;
38477
+ }
38478
+ }, {
38479
+ key: "max",
38480
+ value: function max(t) {
38481
+ return this._max = t, this._onUpdateMinMax(), this;
38482
+ }
38483
+ }, {
38484
+ key: "step",
38485
+ value: function step(t) {
38486
+ var i = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
38487
+ return this._step = t, this._stepExplicit = i, this;
38488
+ }
38489
+ }, {
38490
+ key: "updateDisplay",
38491
+ value: function updateDisplay() {
38492
+ var t = this.getValue();
38493
+ if (this._hasSlider) {
38494
+ var _i3 = (t - this._min) / (this._max - this._min);
38495
+ _i3 = Math.max(0, Math.min(_i3, 1)), this.$fill.style.width = 100 * _i3 + "%";
38496
+ }
38497
+ return this._inputFocused || (this.$input.value = void 0 === this._decimals ? t : t.toFixed(this._decimals)), this;
38498
+ }
38499
+ }, {
38500
+ key: "_initInput",
38501
+ value: function _initInput() {
38502
+ var _this5 = this;
38503
+ this.$input = document.createElement("input"), this.$input.setAttribute("type", "number"), this.$input.setAttribute("step", "any"), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$widget.appendChild(this.$input), this.$disable = this.$input;
38504
+ var t = function t(_t18) {
38505
+ var i = parseFloat(_this5.$input.value);
38506
+ isNaN(i) || (_this5._snapClampSetValue(i + _t18), _this5.$input.value = _this5.getValue());
38507
+ };
38508
+ var i,
38509
+ e,
38510
+ s,
38511
+ n,
38512
+ l,
38513
+ r = !1;
38514
+ var o = function o(t) {
38515
+ if (r) {
38516
+ var _s = t.clientX - i,
38517
+ _n = t.clientY - e;
38518
+ Math.abs(_n) > 5 ? (t.preventDefault(), _this5.$input.blur(), r = !1, _this5._setDraggingStyle(!0, "vertical")) : Math.abs(_s) > 5 && _a();
38519
+ }
38520
+ if (!r) {
38521
+ var _i4 = t.clientY - s;
38522
+ l -= _i4 * _this5._step * _this5._arrowKeyMultiplier(t), n + l > _this5._max ? l = _this5._max - n : n + l < _this5._min && (l = _this5._min - n), _this5._snapClampSetValue(n + l);
38523
+ }
38524
+ s = t.clientY;
38525
+ },
38526
+ _a = function a() {
38527
+ _this5._setDraggingStyle(!1, "vertical"), _this5._callOnFinishChange(), window.removeEventListener("mousemove", o), window.removeEventListener("mouseup", _a);
38528
+ };
38529
+ this.$input.addEventListener("input", function () {
38530
+ var t = parseFloat(_this5.$input.value);
38531
+ isNaN(t) || (_this5._stepExplicit && (t = _this5._snap(t)), _this5.setValue(_this5._clamp(t)));
38532
+ }), this.$input.addEventListener("keydown", function (i) {
38533
+ "Enter" === i.code && _this5.$input.blur(), "ArrowUp" === i.code && (i.preventDefault(), t(_this5._step * _this5._arrowKeyMultiplier(i))), "ArrowDown" === i.code && (i.preventDefault(), t(_this5._step * _this5._arrowKeyMultiplier(i) * -1));
38534
+ }), this.$input.addEventListener("wheel", function (i) {
38535
+ _this5._inputFocused && (i.preventDefault(), t(_this5._step * _this5._normalizeMouseWheel(i)));
38536
+ }, {
38537
+ passive: !1
38538
+ }), this.$input.addEventListener("mousedown", function (t) {
38539
+ i = t.clientX, e = s = t.clientY, r = !0, n = _this5.getValue(), l = 0, window.addEventListener("mousemove", o), window.addEventListener("mouseup", _a);
38540
+ }), this.$input.addEventListener("focus", function () {
38541
+ _this5._inputFocused = !0;
38542
+ }), this.$input.addEventListener("blur", function () {
38543
+ _this5._inputFocused = !1, _this5.updateDisplay(), _this5._callOnFinishChange();
38544
+ });
38545
+ }
38546
+ }, {
38547
+ key: "_initSlider",
38548
+ value: function _initSlider() {
38549
+ var _this6 = this;
38550
+ this._hasSlider = !0, this.$slider = document.createElement("div"), this.$slider.classList.add("slider"), this.$fill = document.createElement("div"), this.$fill.classList.add("fill"), this.$slider.appendChild(this.$fill), this.$widget.insertBefore(this.$slider, this.$input), this.domElement.classList.add("hasSlider");
38551
+ var t = function t(_t19) {
38552
+ var i = _this6.$slider.getBoundingClientRect();
38553
+ var e = (s = _t19, n = i.left, l = i.right, r = _this6._min, o = _this6._max, (s - n) / (l - n) * (o - r) + r);
38554
+ var s, n, l, r, o;
38555
+ _this6._snapClampSetValue(e);
38556
+ },
38557
+ i = function i(_i5) {
38558
+ t(_i5.clientX);
38559
+ },
38560
+ _e = function e() {
38561
+ _this6._callOnFinishChange(), _this6._setDraggingStyle(!1), window.removeEventListener("mousemove", i), window.removeEventListener("mouseup", _e);
38562
+ };
38563
+ var s,
38564
+ n,
38565
+ l = !1;
38566
+ var r = function r(i) {
38567
+ i.preventDefault(), _this6._setDraggingStyle(!0), t(i.touches[0].clientX), l = !1;
38568
+ },
38569
+ _o = function o(i) {
38570
+ if (l) {
38571
+ var _t20 = i.touches[0].clientX - s,
38572
+ _e2 = i.touches[0].clientY - n;
38573
+ Math.abs(_t20) > Math.abs(_e2) ? r(i) : (window.removeEventListener("touchmove", _o), window.removeEventListener("touchend", _a2));
38574
+ } else i.preventDefault(), t(i.touches[0].clientX);
38575
+ },
38576
+ _a2 = function a() {
38577
+ _this6._callOnFinishChange(), _this6._setDraggingStyle(!1), window.removeEventListener("touchmove", _o), window.removeEventListener("touchend", _a2);
38578
+ },
38579
+ h = this._callOnFinishChange.bind(this);
38580
+ var _d;
38581
+ this.$slider.addEventListener("mousedown", function (s) {
38582
+ _this6._setDraggingStyle(!0), t(s.clientX), window.addEventListener("mousemove", i), window.addEventListener("mouseup", _e);
38583
+ }), this.$slider.addEventListener("touchstart", function (t) {
38584
+ t.touches.length > 1 || (_this6._hasScrollBar ? (s = t.touches[0].clientX, n = t.touches[0].clientY, l = !0) : r(t), window.addEventListener("touchmove", _o, {
38585
+ passive: !1
38586
+ }), window.addEventListener("touchend", _a2));
38587
+ }, {
38588
+ passive: !1
38589
+ }), this.$slider.addEventListener("wheel", function (t) {
38590
+ if (Math.abs(t.deltaX) < Math.abs(t.deltaY) && _this6._hasScrollBar) return;
38591
+ t.preventDefault();
38592
+ var i = _this6._normalizeMouseWheel(t) * _this6._step;
38593
+ _this6._snapClampSetValue(_this6.getValue() + i), _this6.$input.value = _this6.getValue(), clearTimeout(_d), _d = setTimeout(h, 400);
38594
+ }, {
38595
+ passive: !1
38596
+ });
38597
+ }
38598
+ }, {
38599
+ key: "_setDraggingStyle",
38600
+ value: function _setDraggingStyle(t) {
38601
+ var i = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "horizontal";
38602
+ this.$slider && this.$slider.classList.toggle("active", t), document.body.classList.toggle("lil-gui-dragging", t), document.body.classList.toggle("lil-gui-" + i, t);
38603
+ }
38604
+ }, {
38605
+ key: "_getImplicitStep",
38606
+ value: function _getImplicitStep() {
38607
+ return this._hasMin && this._hasMax ? (this._max - this._min) / 1e3 : .1;
38608
+ }
38609
+ }, {
38610
+ key: "_onUpdateMinMax",
38611
+ value: function _onUpdateMinMax() {
38612
+ !this._hasSlider && this._hasMin && this._hasMax && (this._stepExplicit || this.step(this._getImplicitStep(), !1), this._initSlider(), this.updateDisplay());
38613
+ }
38614
+ }, {
38615
+ key: "_normalizeMouseWheel",
38616
+ value: function _normalizeMouseWheel(t) {
38617
+ var i = t.deltaX,
38618
+ e = t.deltaY;
38619
+ Math.floor(t.deltaY) !== t.deltaY && t.wheelDelta && (i = 0, e = -t.wheelDelta / 120, e *= this._stepExplicit ? 1 : 10);
38620
+ return i + -e;
38621
+ }
38622
+ }, {
38623
+ key: "_arrowKeyMultiplier",
38624
+ value: function _arrowKeyMultiplier(t) {
38625
+ var i = this._stepExplicit ? 1 : 10;
38626
+ return t.shiftKey ? i *= 10 : t.altKey && (i /= 10), i;
38627
+ }
38628
+ }, {
38629
+ key: "_snap",
38630
+ value: function _snap(t) {
38631
+ var i = Math.round(t / this._step) * this._step;
38632
+ return parseFloat(i.toPrecision(15));
38633
+ }
38634
+ }, {
38635
+ key: "_clamp",
38636
+ value: function _clamp(t) {
38637
+ return t < this._min && (t = this._min), t > this._max && (t = this._max), t;
38638
+ }
38639
+ }, {
38640
+ key: "_snapClampSetValue",
38641
+ value: function _snapClampSetValue(t) {
38642
+ this.setValue(this._clamp(this._snap(t)));
38643
+ }
38644
+ }, {
38645
+ key: "_hasScrollBar",
38646
+ get: function get() {
38647
+ var t = this.parent.root.$children;
38648
+ return t.scrollHeight > t.clientHeight;
38649
+ }
38650
+ }, {
38651
+ key: "_hasMin",
38652
+ get: function get() {
38653
+ return void 0 !== this._min;
38654
+ }
38655
+ }, {
38656
+ key: "_hasMax",
38657
+ get: function get() {
38658
+ return void 0 !== this._max;
38659
+ }
38660
+ }]);
38661
+ }(lil_gui_module_min_t);
38662
+ var lil_gui_module_min_c = /*#__PURE__*/function (_t21) {
38663
+ function c(t, i, e, s) {
38664
+ var _this7;
38665
+ classCallCheck_default()(this, c);
38666
+ _this7 = lil_gui_module_min_callSuper(this, c, [t, i, e, "option"]), _this7.$select = document.createElement("select"), _this7.$select.setAttribute("aria-labelledby", _this7.$name.id), _this7.$display = document.createElement("div"), _this7.$display.classList.add("display"), _this7._values = Array.isArray(s) ? s : Object.values(s), _this7._names = Array.isArray(s) ? s : Object.keys(s), _this7._names.forEach(function (t) {
38667
+ var i = document.createElement("option");
38668
+ i.innerHTML = t, _this7.$select.appendChild(i);
38669
+ }), _this7.$select.addEventListener("change", function () {
38670
+ _this7.setValue(_this7._values[_this7.$select.selectedIndex]), _this7._callOnFinishChange();
38671
+ }), _this7.$select.addEventListener("focus", function () {
38672
+ _this7.$display.classList.add("focus");
38673
+ }), _this7.$select.addEventListener("blur", function () {
38674
+ _this7.$display.classList.remove("focus");
38675
+ }), _this7.$widget.appendChild(_this7.$select), _this7.$widget.appendChild(_this7.$display), _this7.$disable = _this7.$select, _this7.updateDisplay();
38676
+ return _this7;
38677
+ }
38678
+ inherits_default()(c, _t21);
38679
+ return createClass_default()(c, [{
38680
+ key: "updateDisplay",
38681
+ value: function updateDisplay() {
38682
+ var t = this.getValue(),
38683
+ i = this._values.indexOf(t);
38684
+ return this.$select.selectedIndex = i, this.$display.innerHTML = -1 === i ? t : this._names[i], this;
38685
+ }
38686
+ }]);
38687
+ }(lil_gui_module_min_t);
38688
+ var lil_gui_module_min_u = /*#__PURE__*/function (_t22) {
38689
+ function u(t, i, e) {
38690
+ var _this8;
38691
+ classCallCheck_default()(this, u);
38692
+ _this8 = lil_gui_module_min_callSuper(this, u, [t, i, e, "string"]), _this8.$input = document.createElement("input"), _this8.$input.setAttribute("type", "text"), _this8.$input.setAttribute("aria-labelledby", _this8.$name.id), _this8.$input.addEventListener("input", function () {
38693
+ _this8.setValue(_this8.$input.value);
38694
+ }), _this8.$input.addEventListener("keydown", function (t) {
38695
+ "Enter" === t.code && _this8.$input.blur();
38696
+ }), _this8.$input.addEventListener("blur", function () {
38697
+ _this8._callOnFinishChange();
38698
+ }), _this8.$widget.appendChild(_this8.$input), _this8.$disable = _this8.$input, _this8.updateDisplay();
38699
+ return _this8;
38700
+ }
38701
+ inherits_default()(u, _t22);
38702
+ return createClass_default()(u, [{
38703
+ key: "updateDisplay",
38704
+ value: function updateDisplay() {
38705
+ return this.$input.value = this.getValue(), this;
38706
+ }
38707
+ }]);
38708
+ }(lil_gui_module_min_t);
38709
+ var lil_gui_module_min_p = !1;
38710
+ var lil_gui_module_min_g = /*#__PURE__*/function () {
38711
+ function g() {
38712
+ var _this9 = this;
38713
+ var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
38714
+ t = _ref4.parent,
38715
+ _ref4$autoPlace = _ref4.autoPlace,
38716
+ i = _ref4$autoPlace === void 0 ? void 0 === t : _ref4$autoPlace,
38717
+ e = _ref4.container,
38718
+ s = _ref4.width,
38719
+ _ref4$title = _ref4.title,
38720
+ n = _ref4$title === void 0 ? "Controls" : _ref4$title,
38721
+ _ref4$injectStyles = _ref4.injectStyles,
38722
+ l = _ref4$injectStyles === void 0 ? !0 : _ref4$injectStyles,
38723
+ _ref4$touchStyles = _ref4.touchStyles,
38724
+ r = _ref4$touchStyles === void 0 ? !0 : _ref4$touchStyles;
38725
+ classCallCheck_default()(this, g);
38726
+ if (this.parent = t, this.root = t ? t.root : this, this.children = [], this.controllers = [], this.folders = [], this._closed = !1, this._hidden = !1, this.domElement = document.createElement("div"), this.domElement.classList.add("lil-gui"), this.$title = document.createElement("div"), this.$title.classList.add("title"), this.$title.setAttribute("role", "button"), this.$title.setAttribute("aria-expanded", !0), this.$title.setAttribute("tabindex", 0), this.$title.addEventListener("click", function () {
38727
+ return _this9.openAnimated(_this9._closed);
38728
+ }), this.$title.addEventListener("keydown", function (t) {
38729
+ "Enter" !== t.code && "Space" !== t.code || (t.preventDefault(), _this9.$title.click());
38730
+ }), this.$title.addEventListener("touchstart", function () {}, {
38731
+ passive: !0
38732
+ }), this.$children = document.createElement("div"), this.$children.classList.add("children"), this.domElement.appendChild(this.$title), this.domElement.appendChild(this.$children), this.title(n), r && this.domElement.classList.add("allow-touch-styles"), this.parent) return this.parent.children.push(this), this.parent.folders.push(this), void this.parent.$children.appendChild(this.domElement);
38733
+ this.domElement.classList.add("root"), !lil_gui_module_min_p && l && (!function (t) {
38734
+ var i = document.createElement("style");
38735
+ i.innerHTML = t;
38736
+ var e = document.querySelector("head link[rel=stylesheet], head style");
38737
+ e ? document.head.insertBefore(i, e) : document.head.appendChild(i);
38738
+ }('.lil-gui{--background-color:#1f1f1f;--text-color:#ebebeb;--title-background-color:#111;--title-text-color:#ebebeb;--widget-color:#424242;--hover-color:#4f4f4f;--focus-color:#595959;--number-color:#2cc9ff;--string-color:#a2db3c;--font-size:11px;--input-font-size:11px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;--font-family-mono:Menlo,Monaco,Consolas,"Droid Sans Mono",monospace;--padding:4px;--spacing:4px;--widget-height:20px;--name-width:45%;--slider-knob-width:2px;--slider-input-width:27%;--color-input-width:27%;--slider-input-min-width:45px;--color-input-min-width:45px;--folder-indent:7px;--widget-padding:0 0 0 3px;--widget-border-radius:2px;--checkbox-size:calc(var(--widget-height)*0.75);--scrollbar-width:5px;background-color:var(--background-color);color:var(--text-color);font-family:var(--font-family);font-size:var(--font-size);font-style:normal;font-weight:400;line-height:1;text-align:left;touch-action:manipulation;user-select:none;-webkit-user-select:none}.lil-gui,.lil-gui *{box-sizing:border-box;margin:0;padding:0}.lil-gui.root{display:flex;flex-direction:column;width:var(--width,245px)}.lil-gui.root>.title{background:var(--title-background-color);color:var(--title-text-color)}.lil-gui.root>.children{overflow-x:hidden;overflow-y:auto}.lil-gui.root>.children::-webkit-scrollbar{background:var(--background-color);height:var(--scrollbar-width);width:var(--scrollbar-width)}.lil-gui.root>.children::-webkit-scrollbar-thumb{background:var(--focus-color);border-radius:var(--scrollbar-width)}.lil-gui.force-touch-styles{--widget-height:28px;--padding:6px;--spacing:6px;--font-size:13px;--input-font-size:16px;--folder-indent:10px;--scrollbar-width:7px;--slider-input-min-width:50px;--color-input-min-width:65px}.lil-gui.autoPlace{max-height:100%;position:fixed;right:15px;top:0;z-index:1001}.lil-gui .controller{align-items:center;display:flex;margin:var(--spacing) 0;padding:0 var(--padding)}.lil-gui .controller.disabled{opacity:.5}.lil-gui .controller.disabled,.lil-gui .controller.disabled *{pointer-events:none!important}.lil-gui .controller>.name{flex-shrink:0;line-height:var(--widget-height);min-width:var(--name-width);padding-right:var(--spacing);white-space:pre}.lil-gui .controller .widget{align-items:center;display:flex;min-height:var(--widget-height);position:relative;width:100%}.lil-gui .controller.string input{color:var(--string-color)}.lil-gui .controller.boolean .widget{cursor:pointer}.lil-gui .controller.color .display{border-radius:var(--widget-border-radius);height:var(--widget-height);position:relative;width:100%}.lil-gui .controller.color input[type=color]{cursor:pointer;height:100%;opacity:0;width:100%}.lil-gui .controller.color input[type=text]{flex-shrink:0;font-family:var(--font-family-mono);margin-left:var(--spacing);min-width:var(--color-input-min-width);width:var(--color-input-width)}.lil-gui .controller.option select{max-width:100%;opacity:0;position:absolute;width:100%}.lil-gui .controller.option .display{background:var(--widget-color);border-radius:var(--widget-border-radius);height:var(--widget-height);line-height:var(--widget-height);max-width:100%;overflow:hidden;padding-left:.55em;padding-right:1.75em;pointer-events:none;position:relative;word-break:break-all}.lil-gui .controller.option .display.active{background:var(--focus-color)}.lil-gui .controller.option .display:after{bottom:0;content:"↕";font-family:lil-gui;padding-right:.375em;position:absolute;right:0;top:0}.lil-gui .controller.option .widget,.lil-gui .controller.option select{cursor:pointer}.lil-gui .controller.number input{color:var(--number-color)}.lil-gui .controller.number.hasSlider input{flex-shrink:0;margin-left:var(--spacing);min-width:var(--slider-input-min-width);width:var(--slider-input-width)}.lil-gui .controller.number .slider{background-color:var(--widget-color);border-radius:var(--widget-border-radius);cursor:ew-resize;height:var(--widget-height);overflow:hidden;padding-right:var(--slider-knob-width);touch-action:pan-y;width:100%}.lil-gui .controller.number .slider.active{background-color:var(--focus-color)}.lil-gui .controller.number .slider.active .fill{opacity:.95}.lil-gui .controller.number .fill{border-right:var(--slider-knob-width) solid var(--number-color);box-sizing:content-box;height:100%}.lil-gui-dragging .lil-gui{--hover-color:var(--widget-color)}.lil-gui-dragging *{cursor:ew-resize!important}.lil-gui-dragging.lil-gui-vertical *{cursor:ns-resize!important}.lil-gui .title{--title-height:calc(var(--widget-height) + var(--spacing)*1.25);-webkit-tap-highlight-color:transparent;text-decoration-skip:objects;cursor:pointer;font-weight:600;height:var(--title-height);line-height:calc(var(--title-height) - 4px);outline:none;padding:0 var(--padding)}.lil-gui .title:before{content:"▾";display:inline-block;font-family:lil-gui;padding-right:2px}.lil-gui .title:active{background:var(--title-background-color);opacity:.75}.lil-gui.root>.title:focus{text-decoration:none!important}.lil-gui.closed>.title:before{content:"▸"}.lil-gui.closed>.children{opacity:0;transform:translateY(-7px)}.lil-gui.closed:not(.transition)>.children{display:none}.lil-gui.transition>.children{overflow:hidden;pointer-events:none;transition-duration:.3s;transition-property:height,opacity,transform;transition-timing-function:cubic-bezier(.2,.6,.35,1)}.lil-gui .children:empty:before{content:"Empty";display:block;font-style:italic;height:var(--widget-height);line-height:var(--widget-height);margin:var(--spacing) 0;opacity:.5;padding:0 var(--padding)}.lil-gui.root>.children>.lil-gui>.title{border-width:0;border-bottom:1px solid var(--widget-color);border-left:0 solid var(--widget-color);border-right:0 solid var(--widget-color);border-top:1px solid var(--widget-color);transition:border-color .3s}.lil-gui.root>.children>.lil-gui.closed>.title{border-bottom-color:transparent}.lil-gui+.controller{border-top:1px solid var(--widget-color);margin-top:0;padding-top:var(--spacing)}.lil-gui .lil-gui .lil-gui>.title{border:none}.lil-gui .lil-gui .lil-gui>.children{border:none;border-left:2px solid var(--widget-color);margin-left:var(--folder-indent)}.lil-gui .lil-gui .controller{border:none}.lil-gui input{-webkit-tap-highlight-color:transparent;background:var(--widget-color);border:0;border-radius:var(--widget-border-radius);color:var(--text-color);font-family:var(--font-family);font-size:var(--input-font-size);height:var(--widget-height);outline:none;width:100%}.lil-gui input:disabled{opacity:1}.lil-gui input[type=number],.lil-gui input[type=text]{padding:var(--widget-padding)}.lil-gui input[type=number]:focus,.lil-gui input[type=text]:focus{background:var(--focus-color)}.lil-gui input::-webkit-inner-spin-button,.lil-gui input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.lil-gui input[type=number]{-moz-appearance:textfield}.lil-gui input[type=checkbox]{appearance:none;-webkit-appearance:none;border-radius:var(--widget-border-radius);cursor:pointer;height:var(--checkbox-size);text-align:center;width:var(--checkbox-size)}.lil-gui input[type=checkbox]:checked:before{content:"✓";font-family:lil-gui;font-size:var(--checkbox-size);line-height:var(--checkbox-size)}.lil-gui button{-webkit-tap-highlight-color:transparent;background:var(--widget-color);border:1px solid var(--widget-color);border-radius:var(--widget-border-radius);color:var(--text-color);cursor:pointer;font-family:var(--font-family);font-size:var(--font-size);height:var(--widget-height);line-height:calc(var(--widget-height) - 4px);outline:none;text-align:center;text-transform:none;width:100%}.lil-gui button:active{background:var(--focus-color)}@font-face{font-family:lil-gui;src:url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAUsAAsAAAAACJwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAH4AAADAImwmYE9TLzIAAAGIAAAAPwAAAGBKqH5SY21hcAAAAcgAAAD0AAACrukyyJBnbHlmAAACvAAAAF8AAACEIZpWH2hlYWQAAAMcAAAAJwAAADZfcj2zaGhlYQAAA0QAAAAYAAAAJAC5AHhobXR4AAADXAAAABAAAABMAZAAAGxvY2EAAANsAAAAFAAAACgCEgIybWF4cAAAA4AAAAAeAAAAIAEfABJuYW1lAAADoAAAASIAAAIK9SUU/XBvc3QAAATEAAAAZgAAAJCTcMc2eJxVjbEOgjAURU+hFRBK1dGRL+ALnAiToyMLEzFpnPz/eAshwSa97517c/MwwJmeB9kwPl+0cf5+uGPZXsqPu4nvZabcSZldZ6kfyWnomFY/eScKqZNWupKJO6kXN3K9uCVoL7iInPr1X5baXs3tjuMqCtzEuagm/AAlzQgPAAB4nGNgYRBlnMDAysDAYM/gBiT5oLQBAwuDJAMDEwMrMwNWEJDmmsJwgCFeXZghBcjlZMgFCzOiKOIFAB71Bb8AeJy1kjFuwkAQRZ+DwRAwBtNQRUGKQ8OdKCAWUhAgKLhIuAsVSpWz5Bbkj3dEgYiUIszqWdpZe+Z7/wB1oCYmIoboiwiLT2WjKl/jscrHfGg/pKdMkyklC5Zs2LEfHYpjcRoPzme9MWWmk3dWbK9ObkWkikOetJ554fWyoEsmdSlt+uR0pCJR34b6t/TVg1SY3sYvdf8vuiKrpyaDXDISiegp17p7579Gp3p++y7HPAiY9pmTibljrr85qSidtlg4+l25GLCaS8e6rRxNBmsnERunKbaOObRz7N72ju5vdAjYpBXHgJylOAVsMseDAPEP8LYoUHicY2BiAAEfhiAGJgZWBgZ7RnFRdnVJELCQlBSRlATJMoLV2DK4glSYs6ubq5vbKrJLSbGrgEmovDuDJVhe3VzcXFwNLCOILB/C4IuQ1xTn5FPilBTj5FPmBAB4WwoqAHicY2BkYGAA4sk1sR/j+W2+MnAzpDBgAyEMQUCSg4EJxAEAwUgFHgB4nGNgZGBgSGFggJMhDIwMqEAYAByHATJ4nGNgAIIUNEwmAABl3AGReJxjYAACIQYlBiMGJ3wQAEcQBEV4nGNgZGBgEGZgY2BiAAEQyQWEDAz/wXwGAAsPATIAAHicXdBNSsNAHAXwl35iA0UQXYnMShfS9GPZA7T7LgIu03SSpkwzYTIt1BN4Ak/gKTyAeCxfw39jZkjymzcvAwmAW/wgwHUEGDb36+jQQ3GXGot79L24jxCP4gHzF/EIr4jEIe7wxhOC3g2TMYy4Q7+Lu/SHuEd/ivt4wJd4wPxbPEKMX3GI5+DJFGaSn4qNzk8mcbKSR6xdXdhSzaOZJGtdapd4vVPbi6rP+cL7TGXOHtXKll4bY1Xl7EGnPtp7Xy2n00zyKLVHfkHBa4IcJ2oD3cgggWvt/V/FbDrUlEUJhTn/0azVWbNTNr0Ens8de1tceK9xZmfB1CPjOmPH4kitmvOubcNpmVTN3oFJyjzCvnmrwhJTzqzVj9jiSX911FjeAAB4nG3HMRKCMBBA0f0giiKi4DU8k0V2GWbIZDOh4PoWWvq6J5V8If9NVNQcaDhyouXMhY4rPTcG7jwYmXhKq8Wz+p762aNaeYXom2n3m2dLTVgsrCgFJ7OTmIkYbwIbC6vIB7WmFfAAAA==") format("woff")}@media (pointer:coarse){.lil-gui.allow-touch-styles{--widget-height:28px;--padding:6px;--spacing:6px;--font-size:13px;--input-font-size:16px;--folder-indent:10px;--scrollbar-width:7px;--slider-input-min-width:50px;--color-input-min-width:65px}}@media (hover:hover){.lil-gui .controller.color .display:hover:before{border:1px solid #fff9;border-radius:var(--widget-border-radius);bottom:0;content:" ";display:block;left:0;position:absolute;right:0;top:0}.lil-gui .controller.option .display.focus{background:var(--focus-color)}.lil-gui .controller.option .widget:hover .display{background:var(--hover-color)}.lil-gui .controller.number .slider:hover{background-color:var(--hover-color)}body:not(.lil-gui-dragging) .lil-gui .title:hover{background:var(--title-background-color);opacity:.85}.lil-gui .title:focus{text-decoration:underline var(--focus-color)}.lil-gui input:hover{background:var(--hover-color)}.lil-gui input:active{background:var(--focus-color)}.lil-gui input[type=checkbox]:focus{box-shadow:inset 0 0 0 1px var(--focus-color)}.lil-gui button:hover{background:var(--hover-color);border-color:var(--hover-color)}.lil-gui button:focus{border-color:var(--focus-color)}}'), lil_gui_module_min_p = !0), e ? e.appendChild(this.domElement) : i && (this.domElement.classList.add("autoPlace"), document.body.appendChild(this.domElement)), s && this.domElement.style.setProperty("--width", s + "px"), this.domElement.addEventListener("keydown", function (t) {
38739
+ return t.stopPropagation();
38740
+ }), this.domElement.addEventListener("keyup", function (t) {
38741
+ return t.stopPropagation();
38742
+ });
38743
+ }
38744
+ return createClass_default()(g, [{
38745
+ key: "add",
38746
+ value: function add(t, e, s, n, l) {
38747
+ if (Object(s) === s) return new lil_gui_module_min_c(this, t, e, s);
38748
+ var r = t[e];
38749
+ switch (typeof_default()(r)) {
38750
+ case "number":
38751
+ return new lil_gui_module_min_d(this, t, e, s, n, l);
38752
+ case "boolean":
38753
+ return new lil_gui_module_min_i(this, t, e);
38754
+ case "string":
38755
+ return new lil_gui_module_min_u(this, t, e);
38756
+ case "function":
38757
+ return new lil_gui_module_min_h(this, t, e);
38758
+ }
38759
+ console.error("gui.add failed\n\tproperty:", e, "\n\tobject:", t, "\n\tvalue:", r);
38760
+ }
38761
+ }, {
38762
+ key: "addColor",
38763
+ value: function addColor(t, i) {
38764
+ var e = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
38765
+ return new lil_gui_module_min_a(this, t, i, e);
38766
+ }
38767
+ }, {
38768
+ key: "addFolder",
38769
+ value: function addFolder(t) {
38770
+ return new g({
38771
+ parent: this,
38772
+ title: t
38773
+ });
38774
+ }
38775
+ }, {
38776
+ key: "load",
38777
+ value: function load(t) {
38778
+ var i = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
38779
+ return t.controllers && this.controllers.forEach(function (i) {
38780
+ i instanceof lil_gui_module_min_h || i._name in t.controllers && i.load(t.controllers[i._name]);
38781
+ }), i && t.folders && this.folders.forEach(function (i) {
38782
+ i._title in t.folders && i.load(t.folders[i._title]);
38783
+ }), this;
38784
+ }
38785
+ }, {
38786
+ key: "save",
38787
+ value: function save() {
38788
+ var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
38789
+ var i = {
38790
+ controllers: {},
38791
+ folders: {}
38792
+ };
38793
+ return this.controllers.forEach(function (t) {
38794
+ if (!(t instanceof lil_gui_module_min_h)) {
38795
+ if (t._name in i.controllers) throw new Error("Cannot save GUI with duplicate property \"".concat(t._name, "\""));
38796
+ i.controllers[t._name] = t.save();
38797
+ }
38798
+ }), t && this.folders.forEach(function (t) {
38799
+ if (t._title in i.folders) throw new Error("Cannot save GUI with duplicate folder \"".concat(t._title, "\""));
38800
+ i.folders[t._title] = t.save();
38801
+ }), i;
38802
+ }
38803
+ }, {
38804
+ key: "open",
38805
+ value: function open() {
38806
+ var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
38807
+ return this._closed = !t, this.$title.setAttribute("aria-expanded", !this._closed), this.domElement.classList.toggle("closed", this._closed), this;
38808
+ }
38809
+ }, {
38810
+ key: "close",
38811
+ value: function close() {
38812
+ return this.open(!1);
38813
+ }
38814
+ }, {
38815
+ key: "show",
38816
+ value: function show() {
38817
+ var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
38818
+ return this._hidden = !t, this.domElement.style.display = this._hidden ? "none" : "", this;
38819
+ }
38820
+ }, {
38821
+ key: "hide",
38822
+ value: function hide() {
38823
+ return this.show(!1);
38824
+ }
38825
+ }, {
38826
+ key: "openAnimated",
38827
+ value: function openAnimated() {
38828
+ var _this0 = this;
38829
+ var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
38830
+ return this._closed = !t, this.$title.setAttribute("aria-expanded", !this._closed), requestAnimationFrame(function () {
38831
+ var i = _this0.$children.clientHeight;
38832
+ _this0.$children.style.height = i + "px", _this0.domElement.classList.add("transition");
38833
+ var _e3 = function e(t) {
38834
+ t.target === _this0.$children && (_this0.$children.style.height = "", _this0.domElement.classList.remove("transition"), _this0.$children.removeEventListener("transitionend", _e3));
38835
+ };
38836
+ _this0.$children.addEventListener("transitionend", _e3);
38837
+ var s = t ? _this0.$children.scrollHeight : 0;
38838
+ _this0.domElement.classList.toggle("closed", !t), requestAnimationFrame(function () {
38839
+ _this0.$children.style.height = s + "px";
38840
+ });
38841
+ }), this;
38842
+ }
38843
+ }, {
38844
+ key: "title",
38845
+ value: function title(t) {
38846
+ return this._title = t, this.$title.innerHTML = t, this;
38847
+ }
38848
+ }, {
38849
+ key: "reset",
38850
+ value: function reset() {
38851
+ var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
38852
+ return (t ? this.controllersRecursive() : this.controllers).forEach(function (t) {
38853
+ return t.reset();
38854
+ }), this;
38855
+ }
38856
+ }, {
38857
+ key: "onChange",
38858
+ value: function onChange(t) {
38859
+ return this._onChange = t, this;
38860
+ }
38861
+ }, {
38862
+ key: "_callOnChange",
38863
+ value: function _callOnChange(t) {
38864
+ this.parent && this.parent._callOnChange(t), void 0 !== this._onChange && this._onChange.call(this, {
38865
+ object: t.object,
38866
+ property: t.property,
38867
+ value: t.getValue(),
38868
+ controller: t
38869
+ });
38870
+ }
38871
+ }, {
38872
+ key: "onFinishChange",
38873
+ value: function onFinishChange(t) {
38874
+ return this._onFinishChange = t, this;
38875
+ }
38876
+ }, {
38877
+ key: "_callOnFinishChange",
38878
+ value: function _callOnFinishChange(t) {
38879
+ this.parent && this.parent._callOnFinishChange(t), void 0 !== this._onFinishChange && this._onFinishChange.call(this, {
38880
+ object: t.object,
38881
+ property: t.property,
38882
+ value: t.getValue(),
38883
+ controller: t
38884
+ });
38885
+ }
38886
+ }, {
38887
+ key: "destroy",
38888
+ value: function destroy() {
38889
+ this.parent && (this.parent.children.splice(this.parent.children.indexOf(this), 1), this.parent.folders.splice(this.parent.folders.indexOf(this), 1)), this.domElement.parentElement && this.domElement.parentElement.removeChild(this.domElement), Array.from(this.children).forEach(function (t) {
38890
+ return t.destroy();
38891
+ });
38892
+ }
38893
+ }, {
38894
+ key: "controllersRecursive",
38895
+ value: function controllersRecursive() {
38896
+ var t = Array.from(this.controllers);
38897
+ return this.folders.forEach(function (i) {
38898
+ t = t.concat(i.controllersRecursive());
38899
+ }), t;
38900
+ }
38901
+ }, {
38902
+ key: "foldersRecursive",
38903
+ value: function foldersRecursive() {
38904
+ var t = Array.from(this.folders);
38905
+ return this.folders.forEach(function (i) {
38906
+ t = t.concat(i.foldersRecursive());
38907
+ }), t;
38908
+ }
38909
+ }]);
38910
+ }();
38911
+ /* harmony default export */ var lil_gui_module_min = (lil_gui_module_min_g);
38912
+
38153
38913
  // CONCATENATED MODULE: ./src/utils/threejs/measure-distance.js
38154
38914
 
38155
38915
 
@@ -41263,17 +42023,20 @@ function handleInstancedMeshModel(instances, drawObjs, type, scene, customColor,
41263
42023
  model.userData[key] = meshNameConfig[key];
41264
42024
  meshName += ':' + meshNameConfig[key];
41265
42025
  }
41266
- drawObj.MapInstance.forEach(function (instance, index) {
41267
- if (instance.instanceId == instances[_i].instanceId) {
41268
- var _instance$matrix;
42026
+ drawObj.MapInstance.forEach(function (item, index) {
42027
+ if (item.instanceId == instances[_i].instanceId) {
42028
+ var _item$matrix;
41269
42029
  model.userData.instanceIndex = index;
42030
+ model.userData.instanceId = instances[_i].instanceId;
41270
42031
  model.name = meshName !== '' ? instances[_i].instanceId + meshName : instances[_i].instanceId;
41271
- var matrixVal = (_instance$matrix = instance.matrix) === null || _instance$matrix === void 0 ? void 0 : _instance$matrix.val;
42032
+ var matrixVal = (_item$matrix = item.matrix) === null || _item$matrix === void 0 ? void 0 : _item$matrix.val;
41272
42033
  if (matrixVal) {
41273
42034
  var m4 = new three_core_Matrix4();
41274
42035
  // m4.setPosition(new THREE.Vector3(9999999, 9999999, 9999999)); // TODO 临时隐藏方案
41275
- m4.elements = instance.matrix.val;
42036
+ m4.elements = item.matrix.val;
41276
42037
  model.setMatrixAt(index, m4);
42038
+ var copyMatrix = new three_core_Matrix4().copy(m4);
42039
+ model.userData.copyMatrix = copyMatrix;
41277
42040
  }
41278
42041
  // 需要先设置全部实例颜色,否则后续设置颜色无效
41279
42042
  var color = mesh.prop.color;
@@ -41596,7 +42359,7 @@ var com_graphicsvue_type_script_lang_js_ref = /*#__PURE__*/regenerator_default.a
41596
42359
  }
41597
42360
  }, _callee);
41598
42361
  })(null),
41599
- com_graphicsvue_type_script_lang_js_ref2 = slicedToArray_default()(com_graphicsvue_type_script_lang_js_ref, 17),
42362
+ com_graphicsvue_type_script_lang_js_ref2 = slicedToArray_default()(com_graphicsvue_type_script_lang_js_ref, 19),
41600
42363
  com_graphicsvue_type_script_lang_js_renderer = com_graphicsvue_type_script_lang_js_ref2[0],
41601
42364
  com_graphicsvue_type_script_lang_js_scene = com_graphicsvue_type_script_lang_js_ref2[1],
41602
42365
  com_graphicsvue_type_script_lang_js_camera = com_graphicsvue_type_script_lang_js_ref2[2],
@@ -41613,7 +42376,9 @@ var com_graphicsvue_type_script_lang_js_ref = /*#__PURE__*/regenerator_default.a
41613
42376
  clock = com_graphicsvue_type_script_lang_js_ref2[13],
41614
42377
  pointControls = com_graphicsvue_type_script_lang_js_ref2[14],
41615
42378
  threeMeasure = com_graphicsvue_type_script_lang_js_ref2[15],
41616
- com_graphicsvue_type_script_lang_js_modelGroup = com_graphicsvue_type_script_lang_js_ref2[16];
42379
+ com_graphicsvue_type_script_lang_js_modelGroup = com_graphicsvue_type_script_lang_js_ref2[16],
42380
+ gui = com_graphicsvue_type_script_lang_js_ref2[17],
42381
+ animateId = com_graphicsvue_type_script_lang_js_ref2[18];
41617
42382
  var _ref3 = /*#__PURE__*/regenerator_default.a.mark(function _callee2(v) {
41618
42383
  return regenerator_default.a.wrap(function _callee2$(_context2) {
41619
42384
  while (1) switch (_context2.prev = _context2.next) {
@@ -41630,12 +42395,12 @@ var _ref3 = /*#__PURE__*/regenerator_default.a.mark(function _callee2(v) {
41630
42395
  }
41631
42396
  }, _callee2);
41632
42397
  })(0),
41633
- _ref4 = slicedToArray_default()(_ref3, 5),
41634
- lastTime = _ref4[0],
41635
- firstTime = _ref4[1],
41636
- fpsClock = _ref4[2],
41637
- timeStamp = _ref4[3],
41638
- progress = _ref4[4];
42398
+ com_graphicsvue_type_script_lang_js_ref4 = slicedToArray_default()(_ref3, 5),
42399
+ lastTime = com_graphicsvue_type_script_lang_js_ref4[0],
42400
+ firstTime = com_graphicsvue_type_script_lang_js_ref4[1],
42401
+ fpsClock = com_graphicsvue_type_script_lang_js_ref4[2],
42402
+ timeStamp = com_graphicsvue_type_script_lang_js_ref4[3],
42403
+ progress = com_graphicsvue_type_script_lang_js_ref4[4];
41639
42404
  var _ref5 = /*#__PURE__*/regenerator_default.a.mark(function _callee3(v) {
41640
42405
  return regenerator_default.a.wrap(function _callee3$(_context3) {
41641
42406
  while (1) switch (_context3.prev = _context3.next) {
@@ -41679,18 +42444,22 @@ var _ref7 = /*#__PURE__*/regenerator_default.a.mark(function _callee4(v) {
41679
42444
  })(true),
41680
42445
  _ref8 = slicedToArray_default()(_ref7, 1),
41681
42446
  spaceUp = _ref8[0];
41682
- var clippingPlanes = [];
42447
+ var clippingMesh = [];
41683
42448
  var removeSpeed = 200,
41684
42449
  upSpeed = 200; //控制器移动速度 , //控制跳起时的速度
41685
- var com_graphicsvue_type_script_lang_js_modelGroup;
41686
42450
  var roamConfig = {
41687
42451
  loop: false,
41688
42452
  speed: 0,
41689
42453
  // 最大值为3
41690
42454
  name: ''
41691
42455
  };
42456
+ var guiParams = {
42457
+ 'x轴': 0,
42458
+ 'y轴': 0,
42459
+ 'z轴': 0
42460
+ };
41692
42461
  // 绘制对象映射实例表
41693
- var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42462
+
41694
42463
 
41695
42464
 
41696
42465
 
@@ -41712,9 +42481,7 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
41712
42481
  }
41713
42482
  },
41714
42483
  data: function data() {
41715
- return {
41716
- arrowImg: __webpack_require__("3846")
41717
- };
42484
+ return {};
41718
42485
  },
41719
42486
  created: function created() {
41720
42487
  CameraControls.install({
@@ -41797,11 +42564,12 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
41797
42564
  /*
41798
42565
  参数:data 模型数据
41799
42566
  color: '' 初始化模型的颜色 在业务方 有这个需求
41800
- meshNameConfig: {}
42567
+ meshNameConfig: {}
41801
42568
  */
41802
42569
  drawModel: function drawModel(data) {
42570
+ var _this = this;
41803
42571
  var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
41804
- var meshNameConfig = arguments.length > 2 ? arguments[2] : undefined;
42572
+ var meshNameConfig = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
41805
42573
  if (Object.keys(data).length === 0) {
41806
42574
  return;
41807
42575
  }
@@ -41810,13 +42578,57 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
41810
42578
  drawObjs = _parseData.drawObjs;
41811
42579
  if (instances.length > 0) {
41812
42580
  com_graphicsvue_type_script_lang_js_modelGroup = handleInstancedMeshModel(instances, drawObjs, '', com_graphicsvue_type_script_lang_js_scene, color, meshNameConfig);
42581
+ var modelBox3 = new this.THREE.Box3();
42582
+ modelBox3.expandByObject(com_graphicsvue_type_script_lang_js_modelGroup);
42583
+ var modelWorldPs = new this.THREE.Vector3().addVectors(modelBox3.max, modelBox3.min).multiplyScalar(0.5);
41813
42584
  com_graphicsvue_type_script_lang_js_scene.add(com_graphicsvue_type_script_lang_js_modelGroup);
42585
+ com_graphicsvue_type_script_lang_js_modelGroup.traverse(function (child) {
42586
+ if (child.isMesh) {
42587
+ var json = _this.getMeshCenterAndVolume(child);
42588
+ var meshBox3 = new _this.THREE.Box3();
42589
+ meshBox3.setFromObject(child);
42590
+ // 获取每个mesh的中心点,爆炸方向为爆炸中心点指向mesh中心点
42591
+ var worldPs = new _this.THREE.Vector3().addVectors(meshBox3.max, meshBox3.min).multiplyScalar(0.5);
42592
+ if (isNaN(worldPs.x)) return;
42593
+ // 计算爆炸方向
42594
+ child.worldDir = new _this.THREE.Vector3().subVectors(worldPs, modelWorldPs).normalize();
42595
+ // 保存初始坐标
42596
+ child.userData.center = json.center;
42597
+ child.userData.worldPs = worldPs;
42598
+ child.userData.oldPs = child.getWorldPosition(new _this.THREE.Vector3());
42599
+ child.userData.box = json.box;
42600
+ child.userData.position = new _this.THREE.Vector3().copy(child.position);
42601
+ child.userData.translate = {
42602
+ x: 0,
42603
+ y: 0,
42604
+ z: 0
42605
+ };
42606
+ child.userData.rotate = {
42607
+ x: 0,
42608
+ y: 0,
42609
+ z: 0
42610
+ };
42611
+ child.userData.modelWorldPs = modelWorldPs;
42612
+ }
42613
+ });
41814
42614
  // this.compileShader();
41815
42615
  // cameraControls.fitToSphere(scene, true); // TODO 待处理,先用 setModelCenter 进行定位
41816
42616
  this.setModelCenter(com_graphicsvue_type_script_lang_js_modelGroup);
41817
42617
  // cameraControls.saveState();
41818
42618
  }
41819
42619
  },
42620
+ // 获取mesh的中心点
42621
+ getMeshCenterAndVolume: function getMeshCenterAndVolume(mesh) {
42622
+ var box = new this.THREE.Box3().setFromObject(mesh);
42623
+ var volume = box.getSize(new this.THREE.Vector3());
42624
+ var geometry = mesh.geometry;
42625
+ geometry.computeBoundingBox();
42626
+ var center = geometry.boundingBox.getCenter(new this.THREE.Vector3());
42627
+ return {
42628
+ 'center': center,
42629
+ 'box': volume
42630
+ };
42631
+ },
41820
42632
  compileShader: function compileShader() {
41821
42633
  com_graphicsvue_type_script_lang_js_scene.traverse(function (child) {
41822
42634
  if (child.isMesh) {
@@ -41940,16 +42752,16 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
41940
42752
  * }
41941
42753
  */
41942
42754
  updateProperty: function updateProperty(list) {
41943
- var _this = this;
42755
+ var _this2 = this;
41944
42756
  var _loop = function _loop() {
41945
42757
  var ele = list[index];
41946
- var targetObj = _this.getObjectByName(ele.name);
42758
+ var targetObj = _this2.getObjectByName(ele.name);
41947
42759
  var _loop2 = function _loop2(key) {
41948
42760
  switch (key) {
41949
42761
  case 'color':
41950
42762
  targetObj.forEach(function (children) {
41951
42763
  if (children.isMesh) {
41952
- children.setColorAt(children.userData.instanceIndex, new _this.THREE.Color(ele.attr[key]));
42764
+ children.setColorAt(children.userData.instanceIndex, new _this2.THREE.Color(ele.attr[key]));
41953
42765
  children.instanceColor.needsUpdate = true;
41954
42766
  }
41955
42767
  });
@@ -41957,8 +42769,14 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
41957
42769
  case 'visible':
41958
42770
  targetObj.forEach(function (children) {
41959
42771
  var index = children.userData.instanceIndex;
41960
- children.geometry.attributes.visible.array[index] = ele.attr[key] ? 1.0 : 0.0;
41961
- children.geometry.attributes.visible.needsUpdate = true;
42772
+ if (ele.attr[key]) {
42773
+ var restoreMatrix = new _this2.THREE.Matrix4().copy(children.userData.copyMatrix);
42774
+ children.setMatrixAt(index, restoreMatrix);
42775
+ } else {
42776
+ var offsetMatrix = new _this2.THREE.Matrix4().copy(children.userData.copyMatrix).makeTranslation(9999999, 9999999, 9999999);
42777
+ children.setMatrixAt(index, offsetMatrix);
42778
+ }
42779
+ children.instanceMatrix.needsUpdate = true;
41962
42780
  });
41963
42781
  break;
41964
42782
  case 'opacity':
@@ -41981,7 +42799,7 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
41981
42799
  _loop();
41982
42800
  }
41983
42801
  },
41984
- // 修改整体模型实体的属性
42802
+ // 修改整个场景中模型实体的属性
41985
42803
  /*
41986
42804
  {
41987
42805
  attr: '', 需要修改属性名(color、visible(true / false)、opacity(0-1),
@@ -41989,13 +42807,14 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
41989
42807
  }
41990
42808
  */
41991
42809
  updateWholeProperty: function updateWholeProperty(params) {
41992
- var _this2 = this;
42810
+ var _this3 = this;
41993
42811
  if (com_graphicsvue_type_script_lang_js_scene) {
41994
42812
  com_graphicsvue_type_script_lang_js_scene.traverse(function (obj) {
41995
- if (obj instanceof _this2.THREE.Mesh) {
42813
+ if (obj instanceof _this3.THREE.Mesh) {
41996
42814
  switch (params.attr) {
41997
42815
  case 'color':
41998
- obj.material.color = new _this2.THREE.Color(params.value);
42816
+ obj.setColorAt(obj.userData.instanceIndex, new _this3.THREE.Color(params.value));
42817
+ obj.instanceColor.needsUpdate = true;
41999
42818
  break;
42000
42819
  case 'visible':
42001
42820
  obj.material.visible = params.value;
@@ -42012,6 +42831,7 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42012
42831
  },
42013
42832
  // 清除上一次的属性修改操作 为了方便业务平台参数跟updateProperty方法的参数一样
42014
42833
  resetProperty: function resetProperty(list) {
42834
+ var _this4 = this;
42015
42835
  for (var index = 0; index < list.length; index++) {
42016
42836
  var ele = list[index];
42017
42837
  var _obj = this.getObjectByName(ele.name);
@@ -42026,20 +42846,64 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42026
42846
  }
42027
42847
  });
42028
42848
  break;
42849
+ case 'visible':
42850
+ _obj.forEach(function (children) {
42851
+ var index = children.userData.instanceIndex;
42852
+ var restoreMatrix = new _this4.THREE.Matrix4().copy(children.userData.copyMatrix);
42853
+ children.setMatrixAt(index, restoreMatrix);
42854
+ children.instanceMatrix.needsUpdate = true;
42855
+ });
42856
+ break;
42029
42857
  }
42030
42858
  }
42031
42859
  }
42032
42860
  }
42033
42861
  },
42034
42862
  // 定位到模型
42035
- locateModel: function locateModel(id) {
42036
- var obj = com_graphicsvue_type_script_lang_js_scene.getObjectByName(id);
42863
+ locateModel: function locateModel(name) {
42864
+ var obj = com_graphicsvue_type_script_lang_js_scene.getObjectByName(name);
42037
42865
  if (obj) {
42038
42866
  // cameraControls.fitToSphere(obj.parent, true); // TODO 待处理,先用 setModelCenter 进行定位
42039
42867
  this.setModelCenter(obj.parent);
42040
42868
  // cameraControls.fitToBox( obj, true);
42041
42869
  }
42042
42870
  },
42871
+ // 根据自定义参数修改模型
42872
+ /*
42873
+ 自定义参数指的是在调用drawModel时配置的meshNameConfig里面的字段来修改某一类模型实体的属性
42874
+ {
42875
+ customName: '', 自定义字段名称
42876
+ customValue: '' 自定义字段的值
42877
+ attr: {
42878
+ color: '',
42879
+ opacity: 0 -1,
42880
+ visiable: true/false
42881
+ }
42882
+ }
42883
+ */
42884
+ updatePropertyByCustom: function updatePropertyByCustom(params) {
42885
+ var _this5 = this;
42886
+ com_graphicsvue_type_script_lang_js_scene.traverse(function (child) {
42887
+ if (child.isMesh && child.userData[params.customName] === params.customValue) {
42888
+ for (var key in params.attr) {
42889
+ switch (key) {
42890
+ case 'color':
42891
+ child.setColorAt(obj.userData.instanceIndex, new _this5.THREE.Color(params.attr[key]));
42892
+ child.instanceColor.needsUpdate = true;
42893
+ break;
42894
+ case 'visible':
42895
+ child.material.visible = params.attr[key];
42896
+ break;
42897
+ case 'opacity':
42898
+ child.material.opacity = params.attr[key];
42899
+ child.material.transparent = true;
42900
+ break;
42901
+ }
42902
+ child.material.needsUpdate = true;
42903
+ }
42904
+ }
42905
+ });
42906
+ },
42043
42907
  // 相机定位
42044
42908
  /*
42045
42909
  定位参数:x: 相机的x位置, y: 相机的y位置, z: 相机的z位置
@@ -42110,12 +42974,12 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42110
42974
  },
42111
42975
  // 删除场景中所有的实体
42112
42976
  removeAll: function removeAll() {
42113
- var _this3 = this;
42977
+ var _this6 = this;
42114
42978
  if (com_graphicsvue_type_script_lang_js_scene) {
42115
42979
  com_graphicsvue_type_script_lang_js_scene.traverse(function (item) {
42116
42980
  item.material && item.material.dispose();
42117
42981
  item.geometry && item.geometry.dispose();
42118
- if (item instanceof _this3.THREE.Mesh) {
42982
+ if (item instanceof _this6.THREE.Mesh) {
42119
42983
  item.clear();
42120
42984
  }
42121
42985
  com_graphicsvue_type_script_lang_js_scene.remove(item);
@@ -42152,11 +43016,11 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42152
43016
  }
42153
43017
  */
42154
43018
  drawCurve: function drawCurve(params) {
42155
- var _this4 = this;
43019
+ var _this7 = this;
42156
43020
  this.removeObjectByName(params.name);
42157
43021
  var route = [];
42158
43022
  params.path.forEach(function (element) {
42159
- route.push(new _this4.THREE.Vector3(element.x, element.y, element.z));
43023
+ route.push(new _this7.THREE.Vector3(element.x, element.y, element.z));
42160
43024
  });
42161
43025
  if (route.length > 1) {
42162
43026
  com_graphicsvue_type_script_lang_js_curve = new this.THREE.CatmullRomCurve3(route);
@@ -42180,11 +43044,11 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42180
43044
  }
42181
43045
  */
42182
43046
  drawTextureCurve: function drawTextureCurve(params) {
42183
- var _this5 = this;
43047
+ var _this8 = this;
42184
43048
  this.removeObjectByName(params.name);
42185
43049
  var route = [];
42186
43050
  params.path.forEach(function (element) {
42187
- route.push(new _this5.THREE.Vector3(element.x, element.y, element.z));
43051
+ route.push(new _this8.THREE.Vector3(element.x, element.y, element.z));
42188
43052
  });
42189
43053
  // 画曲线
42190
43054
  if (route.length > 1) {
@@ -42192,7 +43056,7 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42192
43056
  com_graphicsvue_type_script_lang_js_curve = new this.THREE.CatmullRomCurve3(route, false, 'catmullrom', 0);
42193
43057
  var geometry = new this.THREE.TubeGeometry(com_graphicsvue_type_script_lang_js_curve, 5000, 0.5, 4);
42194
43058
  //加载纹理
42195
- lineTexture = new this.THREE.TextureLoader().load(this.arrowImg);
43059
+ lineTexture = new this.THREE.TextureLoader().load('/static/arrow/arrow-right.png');
42196
43060
  lineTexture.wrapS = this.THREE.RepeatWrapping;
42197
43061
  lineTexture.wrapT = this.THREE.RepeatWrapping;
42198
43062
  lineTexture.repeat.set(20, 1); //水平重复20次
@@ -42230,7 +43094,7 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42230
43094
  path: params.path
42231
43095
  });
42232
43096
  roaming = true;
42233
- clock = new this.THREE.Clock();
43097
+ // clock = new this.THREE.Clock();
42234
43098
  },
42235
43099
  // 更新漫游的配置
42236
43100
  /*
@@ -42238,14 +43102,14 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42238
43102
  */
42239
43103
  updateRoamConfig: function updateRoamConfig(params) {
42240
43104
  for (var key in params) {
42241
- roamConfig[key] = key === 'speed' ? params[key] / 300 : params[key];
43105
+ roamConfig[key] = params[key];
42242
43106
  }
42243
43107
  },
42244
43108
  // 结束/退出漫游
42245
43109
  endRoam: function endRoam() {
42246
43110
  roaming = false;
42247
43111
  progress = 0;
42248
- this.removeObjectByName(this.roamConfig.name);
43112
+ this.removeObjectByName(roamConfig.name);
42249
43113
  roamConfig = {
42250
43114
  loop: false,
42251
43115
  speed: 0,
@@ -42286,16 +43150,16 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42286
43150
  * 参数val: 爆炸的值
42287
43151
  */
42288
43152
  globalBomb: function globalBomb(val) {
42289
- var _this6 = this;
43153
+ var _this9 = this;
42290
43154
  if (com_graphicsvue_type_script_lang_js_scene.children.length === 0) return;
42291
43155
  for (var i = 0; i < com_graphicsvue_type_script_lang_js_scene.children.length; i++) {
42292
43156
  com_graphicsvue_type_script_lang_js_scene.children[i].traverse(function (item) {
42293
43157
  if (!item.isMesh || !item.worldDir) return;
42294
43158
  // 爆炸公式
42295
- _this6.computedBomb(item, val);
43159
+ _this9.computedBomb(item, val);
42296
43160
  });
42297
43161
  }
42298
- this.timeRender();
43162
+ // this.timeRender();
42299
43163
  },
42300
43164
  // 单个实体模型炸开
42301
43165
  /*
@@ -42319,11 +43183,24 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42319
43183
  剖切值变换时, 使用
42320
43184
  */
42321
43185
  setGlobalClipping: function setGlobalClipping() {
43186
+ var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
42322
43187
  var box3 = new this.THREE.Box3().setFromObject(com_graphicsvue_type_script_lang_js_scene.children[0]);
42323
43188
  var max = box3.max;
42324
43189
  var min = box3.min;
42325
43190
  var clippingPlanes = [new this.THREE.Plane(new this.THREE.Vector3(-1, 0, 0), max.x), new this.THREE.Plane(new this.THREE.Vector3(0, -1, 0), max.y), new this.THREE.Plane(new this.THREE.Vector3(0, 0, -1), max.z)];
42326
43191
  com_graphicsvue_type_script_lang_js_renderer.clippingPlanes = clippingPlanes;
43192
+ if (flag) {
43193
+ guiParams = {
43194
+ 'x轴': clippingPlanes[0].constant,
43195
+ 'y轴': clippingPlanes[2].constant,
43196
+ 'z轴': clippingPlanes[1].constant
43197
+ };
43198
+ this.addClippingGui('全局剖切', {
43199
+ x: min.x,
43200
+ y: min.z,
43201
+ z: min.y
43202
+ }, clippingPlanes);
43203
+ }
42327
43204
  return {
42328
43205
  min: min,
42329
43206
  max: max
@@ -42347,18 +43224,45 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42347
43224
  },
42348
43225
  // 取消全局剖切
42349
43226
  cancelGlobalClipping: function cancelGlobalClipping() {
43227
+ guiParams = {
43228
+ 'x轴': 0,
43229
+ 'y轴': 0,
43230
+ 'z轴': 0
43231
+ };
42350
43232
  com_graphicsvue_type_script_lang_js_renderer.clippingPlanes = Object.freeze([]);
43233
+ gui && gui.destroy();
42351
43234
  },
42352
- // 单个实体的剖切/ 局部剖切 obj 实体对象
43235
+ // 单个实体的剖切/ 局部剖切 obj 实体对象 flag 代表是否使用图形组件自带的剖切面板 默认为true
42353
43236
  setLocalClipping: function setLocalClipping(obj) {
43237
+ var flag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
43238
+ clippingMesh.splice(0);
43239
+ clippingMesh.push(obj);
42354
43240
  com_graphicsvue_type_script_lang_js_renderer.localClippingEnabled = true;
42355
43241
  // mesh的boundingBox 可以获取到该对象位置的最大最小值 但是在这里我们需要把y、z轴互换
42356
- var boundingBox = new this.THREE.Box3().copy(obj.geometry.boundingBox);
43242
+ var boundingBox = new this.THREE.Box3().copy(obj.boundingBox);
42357
43243
  boundingBox.applyMatrix4(obj.matrixWorld);
42358
- clippingPlanes = [new this.THREE.Plane(new this.THREE.Vector3(-1, 0, 0), Math.ceil(boundingBox.max.x)), new this.THREE.Plane(new this.THREE.Vector3(0, -1, 0), Math.ceil(boundingBox.max.y)), new this.THREE.Plane(new this.THREE.Vector3(0, 0, -1), Math.ceil(boundingBox.max.z))];
43244
+ var clippingPlanes = [new this.THREE.Plane(new this.THREE.Vector3(-1, 0, 0), Math.ceil(boundingBox.max.x)), new this.THREE.Plane(new this.THREE.Vector3(0, -1, 0), Math.ceil(boundingBox.max.y)), new this.THREE.Plane(new this.THREE.Vector3(0, 0, -1), Math.ceil(boundingBox.max.z))];
42359
43245
  obj.material.clippingPlanes = clippingPlanes;
42360
43246
  obj.material.needsUpdate = true;
42361
43247
  // 将局部剖切的对象记录下来
43248
+ if (flag) {
43249
+ guiParams = {
43250
+ 'x轴': clippingPlanes[0].constant,
43251
+ 'y轴': clippingPlanes[2].constant,
43252
+ 'z轴': clippingPlanes[1].constant
43253
+ };
43254
+ this.addClippingGui('局部剖切', {
43255
+ x: Math.floor(boundingBox.min.x),
43256
+ y: Math.floor(boundingBox.min.z),
43257
+ z: Math.floor(boundingBox.min.y)
43258
+ }, obj.material.clippingPlanes);
43259
+ // cube.material.clippingPlanes
43260
+ }
43261
+ ;
43262
+ return {
43263
+ min: boundingBox.min,
43264
+ max: boundingBox.max
43265
+ };
42362
43266
  },
42363
43267
  // 更新局部剖切的值
42364
43268
  /*
@@ -42371,14 +43275,43 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42371
43275
  y: 1,
42372
43276
  z: 2
42373
43277
  };
43278
+ var obj = clippingMesh[clippingMesh.length - 1];
42374
43279
  for (var key in params) {
42375
- clippingPlanes[axis[key]].constant = params[key];
43280
+ obj.material.clippingPlanes[axis[key]].constant = params[key];
43281
+ obj.material.needsUpdate = true;
42376
43282
  }
42377
43283
  // this.timeRender()
42378
43284
  },
42379
43285
  // 取消局部/单个实体的剖切
42380
43286
  cancelLocalClipping: function cancelLocalClipping() {
42381
- clippingPlanes = Object.freeze([]);
43287
+ guiParams = {
43288
+ 'x轴': 0,
43289
+ 'y轴': 0,
43290
+ 'z轴': 0
43291
+ };
43292
+ gui && gui.destroy();
43293
+ clippingMesh.forEach(function (item) {
43294
+ item.material.clippingPlanes = Object.freeze([]);
43295
+ item.material.needsUpdate = true;
43296
+ });
43297
+ clippingMesh.splice(0);
43298
+ },
43299
+ // 添加剖切轴工具
43300
+ addClippingGui: function addClippingGui(title, minValue, objClipp1, objClipp2) {
43301
+ gui = new lil_gui_module_min_g({
43302
+ title: title
43303
+ });
43304
+ gui.add(guiParams, 'x轴').min(minValue.x).max(Math.abs(guiParams['x轴'])).onChange(function (d) {
43305
+ objClipp1[0].constant = d;
43306
+ objClipp2 && (objClipp2[0].constant = d);
43307
+ });
43308
+ gui.add(guiParams, 'y轴').min(minValue.y).max(Math.abs(guiParams['y轴'])).onChange(function (d) {
43309
+ objClipp1[2].constant = d;
43310
+ objClipp2 && (objClipp2[2].constant = d);
43311
+ });
43312
+ gui.add(guiParams, 'z轴').min(minValue.z).max(Math.abs(guiParams['z轴'])).onChange(function (d) {
43313
+ objClipp1[1].constant = d;
43314
+ });
42382
43315
  },
42383
43316
  // 开启第一视角
42384
43317
  startFirstPer: function startFirstPer() {
@@ -42391,7 +43324,7 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42391
43324
  },
42392
43325
  // 页面是否锁定
42393
43326
  initPointerLock: function initPointerLock() {
42394
- var _this7 = this;
43327
+ var _this0 = this;
42395
43328
  this.home();
42396
43329
  setTimeout(function () {
42397
43330
  pointControls = new PointerLockControls_PointerLockControls(com_graphicsvue_type_script_lang_js_camera, com_graphicsvue_type_script_lang_js_renderer.domElement);
@@ -42399,10 +43332,10 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42399
43332
  // 锁定
42400
43333
  pointControls.addEventListener('lock', function () {
42401
43334
  cameraControls.enabled = false;
42402
- window.addEventListener('keydown', _this7.onKeyDown, false);
42403
- window.addEventListener('keyup', _this7.onKeyUp, false);
42404
- com_graphicsvue_type_script_lang_js_renderer.domElement.removeEventListener('mouseup', _this7.mouseClick, false);
42405
- com_graphicsvue_type_script_lang_js_renderer.domElement.removeEventListener('mousedown', _this7.mouseDown, false);
43335
+ window.addEventListener('keydown', _this0.onKeyDown, false);
43336
+ window.addEventListener('keyup', _this0.onKeyUp, false);
43337
+ com_graphicsvue_type_script_lang_js_renderer.domElement.removeEventListener('mouseup', _this0.mouseClick, false);
43338
+ com_graphicsvue_type_script_lang_js_renderer.domElement.removeEventListener('mousedown', _this0.mouseDown, false);
42406
43339
  });
42407
43340
  // 解锁
42408
43341
  pointControls.addEventListener('unlock', function () {
@@ -42412,10 +43345,10 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42412
43345
  cameraControls.reset(true);
42413
43346
  cameraControls.update(0);
42414
43347
  setTimeout(function () {
42415
- window.removeEventListener('keydown', _this7.onKeyDown);
42416
- window.removeEventListener('keyup', _this7.onKeyUp);
42417
- com_graphicsvue_type_script_lang_js_renderer.domElement.addEventListener('mouseup', _this7.mouseClick, false);
42418
- com_graphicsvue_type_script_lang_js_renderer.domElement.addEventListener('mousedown', _this7.mouseDown, false);
43348
+ window.removeEventListener('keydown', _this0.onKeyDown);
43349
+ window.removeEventListener('keyup', _this0.onKeyUp);
43350
+ com_graphicsvue_type_script_lang_js_renderer.domElement.addEventListener('mouseup', _this0.mouseClick, false);
43351
+ com_graphicsvue_type_script_lang_js_renderer.domElement.addEventListener('mousedown', _this0.mouseDown, false);
42419
43352
  // this.timeRender()
42420
43353
  }, 0);
42421
43354
  });
@@ -42530,9 +43463,9 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42530
43463
  },
42531
43464
  // 返回主视角/恢复相机初始状态
42532
43465
  home: function home() {
42533
- // if (roaming) {
42534
- // this.disposeRoaming()
42535
- // }
43466
+ if (roaming) {
43467
+ this.endRoam();
43468
+ }
42536
43469
  cameraControls.reset(true);
42537
43470
  cameraControls.update(0);
42538
43471
  // this.timeRender()
@@ -42638,7 +43571,7 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42638
43571
  },
42639
43572
  // 还原操作 将修改过的实体进行恢复
42640
43573
  restore: function restore() {
42641
- var _this8 = this;
43574
+ var _this1 = this;
42642
43575
  com_graphicsvue_type_script_lang_js_scene.traverse(function (item) {
42643
43576
  if (item.isMesh) {
42644
43577
  item.material.opacity = 1.0;
@@ -42661,7 +43594,7 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42661
43594
  item.userData.translateMatrixInvert = null;
42662
43595
  }
42663
43596
  if (item.userData.combineMatrixInvert) {
42664
- _this8.rotateMesh(item, {
43597
+ _this1.rotateMesh(item, {
42665
43598
  x: 0,
42666
43599
  y: 0,
42667
43600
  z: 0
@@ -42674,7 +43607,7 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42674
43607
  animate: function animate() {
42675
43608
  var delta = fpsClock.getDelta();
42676
43609
  timeStamp += delta;
42677
- requestAnimationFrame(this.animate);
43610
+ animateId = requestAnimationFrame(this.animate);
42678
43611
  cameraControls.enabled && cameraControls.update(timeStamp);
42679
43612
  this.cameraTrack();
42680
43613
  this.firstPerspective();
@@ -42685,8 +43618,8 @@ var com_graphicsvue_type_script_lang_js_drawObjMapInstance = {};
42685
43618
  });
42686
43619
  // CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=script&lang=js
42687
43620
  /* harmony default export */ var components_com_graphicsvue_type_script_lang_js = (com_graphicsvue_type_script_lang_js);
42688
- // EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=0&id=dd89824e&prod&lang=scss&scoped=true
42689
- var com_graphicsvue_type_style_index_0_id_dd89824e_prod_lang_scss_scoped_true = __webpack_require__("b003");
43621
+ // EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=0&id=6e37e043&prod&lang=scss&scoped=true
43622
+ var com_graphicsvue_type_style_index_0_id_6e37e043_prod_lang_scss_scoped_true = __webpack_require__("52b4");
42690
43623
 
42691
43624
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
42692
43625
  /* globals __VUE_SSR_CONTEXT__ */
@@ -42797,17 +43730,17 @@ function normalizeComponent(
42797
43730
 
42798
43731
  var component = normalizeComponent(
42799
43732
  components_com_graphicsvue_type_script_lang_js,
42800
- com_graphicsvue_type_template_id_dd89824e_scoped_true_render,
43733
+ com_graphicsvue_type_template_id_6e37e043_scoped_true_render,
42801
43734
  staticRenderFns,
42802
43735
  false,
42803
43736
  null,
42804
- "dd89824e",
43737
+ "6e37e043",
42805
43738
  null
42806
43739
 
42807
43740
  )
42808
43741
 
42809
43742
  /* harmony default export */ var com_graphics = (component.exports);
42810
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"433047de-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-flcanvas/index.vue?vue&type=template&id=83d38700&scoped=true
43743
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4217f59c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-flcanvas/index.vue?vue&type=template&id=83d38700&scoped=true
42811
43744
  var com_flcanvasvue_type_template_id_83d38700_scoped_true_render = function render() {
42812
43745
  var _vm = this,
42813
43746
  _c = _vm._self._c;
@@ -45052,10 +45985,6 @@ function DxfParser_getAcadColor(index) {
45052
45985
  // EXTERNAL MODULE: ./node_modules/jspdf/dist/jspdf.es.min.js
45053
45986
  var jspdf_es_min = __webpack_require__("8baf");
45054
45987
 
45055
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/typeof.js
45056
- var helpers_typeof = __webpack_require__("7037");
45057
- var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
45058
-
45059
45988
  // CONCATENATED MODULE: ./packages/components/com-flcanvas/components/round10.js
45060
45989
  // This is based on the example code found from:
45061
45990
  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor
@@ -45907,11 +46836,120 @@ var com_flcanvas_component = normalizeComponent(
45907
46836
  )
45908
46837
 
45909
46838
  /* harmony default export */ var com_flcanvas = (com_flcanvas_component.exports);
46839
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4217f59c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/per-control.vue?vue&type=template&id=f547d5c6&scoped=true
46840
+ var per_controlvue_type_template_id_f547d5c6_scoped_true_render = function render() {
46841
+ var _vm = this,
46842
+ _c = _vm._self._c;
46843
+ return _c('div', [_vm._m(0), _c('div', {
46844
+ staticClass: "line"
46845
+ }), _vm._m(1), _c('div', {
46846
+ staticClass: "line"
46847
+ }), _vm._m(2), _c('div', {
46848
+ staticClass: "button"
46849
+ }, [_c('el-button', {
46850
+ on: {
46851
+ "click": function click($event) {
46852
+ return _vm.start(false);
46853
+ }
46854
+ }
46855
+ }, [_vm._v("好的,知道了")]), _c('el-button', {
46856
+ attrs: {
46857
+ "type": "primary"
46858
+ },
46859
+ on: {
46860
+ "click": function click($event) {
46861
+ return _vm.start(true);
46862
+ }
46863
+ }
46864
+ }, [_vm._v("不再提示")])], 1)]);
46865
+ };
46866
+ var per_controlvue_type_template_id_f547d5c6_scoped_true_staticRenderFns = [function () {
46867
+ var _vm = this,
46868
+ _c = _vm._self._c;
46869
+ return _c('div', {
46870
+ staticClass: "key"
46871
+ }, [_c('span', [_vm._v("漫游")]), _c('div', {
46872
+ staticClass: "center"
46873
+ }, [_c('div', {
46874
+ staticClass: "top"
46875
+ }, [_c('span', [_vm._v("W")])]), _c('div', {
46876
+ staticClass: "cen"
46877
+ }, [_c('span', [_vm._v("A")]), _c('span', [_vm._v("S")]), _c('span', [_vm._v("D")])]), _c('span', {
46878
+ staticClass: "text"
46879
+ }, [_vm._v("W向前移动、S向后移动、A向左移动、D向右移动")])])]);
46880
+ }, function () {
46881
+ var _vm = this,
46882
+ _c = _vm._self._c;
46883
+ return _c('div', {
46884
+ staticClass: "mouse"
46885
+ }, [_c('span', [_vm._v("环视")]), _c('div', {
46886
+ staticClass: "center"
46887
+ }, [_c('i', {
46888
+ staticClass: "iconfont icon-shubiao"
46889
+ }), _c('span', {
46890
+ staticClass: "text"
46891
+ }, [_vm._v("鼠标控制方向")])])]);
46892
+ }, function () {
46893
+ var _vm = this,
46894
+ _c = _vm._self._c;
46895
+ return _c('div', {
46896
+ staticClass: "quit"
46897
+ }, [_c('span', [_vm._v("退出")]), _c('div', {
46898
+ staticClass: "center"
46899
+ }, [_c('div', {
46900
+ staticClass: "cen"
46901
+ }, [_c('span', [_vm._v("Esc")])]), _c('span', {
46902
+ staticClass: "text"
46903
+ }, [_vm._v("使用Esc键退出漫游")])])]);
46904
+ }];
46905
+
46906
+ // CONCATENATED MODULE: ./packages/components/com-graphics/per-control.vue?vue&type=template&id=f547d5c6&scoped=true
46907
+
46908
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/per-control.vue?vue&type=script&lang=js
46909
+ /* harmony default export */ var per_controlvue_type_script_lang_js = ({
46910
+ name: 'FLPerControl',
46911
+ data: function data() {
46912
+ return {};
46913
+ },
46914
+ created: function created() {},
46915
+ methods: {
46916
+ start: function start(val) {
46917
+ this.$emit('start', val);
46918
+ }
46919
+ }
46920
+ });
46921
+ // CONCATENATED MODULE: ./packages/components/com-graphics/per-control.vue?vue&type=script&lang=js
46922
+ /* harmony default export */ var com_graphics_per_controlvue_type_script_lang_js = (per_controlvue_type_script_lang_js);
46923
+ // EXTERNAL MODULE: ./packages/components/com-graphics/per-control.vue?vue&type=style&index=0&id=f547d5c6&prod&lang=scss&scoped=true
46924
+ var per_controlvue_type_style_index_0_id_f547d5c6_prod_lang_scss_scoped_true = __webpack_require__("b2fd");
46925
+
46926
+ // CONCATENATED MODULE: ./packages/components/com-graphics/per-control.vue
46927
+
46928
+
46929
+
46930
+
46931
+
46932
+
46933
+ /* normalize component */
46934
+
46935
+ var per_control_component = normalizeComponent(
46936
+ com_graphics_per_controlvue_type_script_lang_js,
46937
+ per_controlvue_type_template_id_f547d5c6_scoped_true_render,
46938
+ per_controlvue_type_template_id_f547d5c6_scoped_true_staticRenderFns,
46939
+ false,
46940
+ null,
46941
+ "f547d5c6",
46942
+ null
46943
+
46944
+ )
46945
+
46946
+ /* harmony default export */ var per_control = (per_control_component.exports);
45910
46947
  // CONCATENATED MODULE: ./src/main.js
45911
46948
 
45912
46949
 
45913
46950
 
45914
- var components = [com_graphics, com_flcanvas];
46951
+
46952
+ var components = [com_graphics, com_flcanvas, per_control];
45915
46953
  var main_install = function install(Vue) {
45916
46954
  Vue.prototype.THREE = three_module_namespaceObject;
45917
46955
  components.forEach(function (component) {
@@ -45926,7 +46964,8 @@ if (typeof window !== 'undefined' && window.Vue) {
45926
46964
  /* harmony default export */ var main = ({
45927
46965
  install: main_install,
45928
46966
  FlModel: com_graphics,
45929
- Fl2dcanvas: com_flcanvas
46967
+ Fl2dcanvas: com_flcanvas,
46968
+ FLPerControl: per_control
45930
46969
  });
45931
46970
  // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
45932
46971