fl-web-component 2.1.17 → 2.1.18

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.
@@ -896,6 +896,13 @@ module.exports = function (it) {
896
896
 
897
897
  /***/ }),
898
898
 
899
+ /***/ "0b0c":
900
+ /***/ (function(module, exports, __webpack_require__) {
901
+
902
+ // extracted by mini-css-extract-plugin
903
+
904
+ /***/ }),
905
+
899
906
  /***/ "0b99":
900
907
  /***/ (function(module, exports, __webpack_require__) {
901
908
 
@@ -22668,6 +22675,17 @@ module.exports = {
22668
22675
  }
22669
22676
  };
22670
22677
 
22678
+ /***/ }),
22679
+
22680
+ /***/ "35d8":
22681
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
22682
+
22683
+ "use strict";
22684
+ /* 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_5d8eba59_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9194");
22685
+ /* 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_5d8eba59_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_5d8eba59_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
22686
+ /* unused harmony reexport * */
22687
+
22688
+
22671
22689
  /***/ }),
22672
22690
 
22673
22691
  /***/ "362d":
@@ -39821,17 +39839,6 @@ module.exports = function (delay, noTrailing, callback, debounceMode) {
39821
39839
  return wrapper;
39822
39840
  };
39823
39841
 
39824
- /***/ }),
39825
-
39826
- /***/ "5a20":
39827
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
39828
-
39829
- "use strict";
39830
- /* 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_23daca8a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("76f8");
39831
- /* 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_23daca8a_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_23daca8a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
39832
- /* unused harmony reexport * */
39833
-
39834
-
39835
39842
  /***/ }),
39836
39843
 
39837
39844
  /***/ "5a43":
@@ -45160,17 +45167,6 @@ Rect.prototype.className = 'Rect';
45160
45167
  (0, Global_1._registerNode)(Rect);
45161
45168
  Factory_1.Factory.addGetterSetter(Rect, 'cornerRadius', 0, (0, Validators_1.getNumberOrArrayOfNumbersValidator)(4));
45162
45169
 
45163
- /***/ }),
45164
-
45165
- /***/ "5fa7":
45166
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
45167
-
45168
- "use strict";
45169
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_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_1_id_23daca8a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a31d");
45170
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_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_1_id_23daca8a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_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_1_id_23daca8a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
45171
- /* unused harmony reexport * */
45172
-
45173
-
45174
45170
  /***/ }),
45175
45171
 
45176
45172
  /***/ "6167":
@@ -51257,13 +51253,6 @@ exports.Sepia = Sepia;
51257
51253
 
51258
51254
  /***/ }),
51259
51255
 
51260
- /***/ "76f8":
51261
- /***/ (function(module, exports, __webpack_require__) {
51262
-
51263
- // extracted by mini-css-extract-plugin
51264
-
51265
- /***/ }),
51266
-
51267
51256
  /***/ "77e9":
51268
51257
  /***/ (function(module, exports, __webpack_require__) {
51269
51258
 
@@ -51445,6 +51434,17 @@ function releaseCapture(pointerId, target) {
51445
51434
  }
51446
51435
  }
51447
51436
 
51437
+ /***/ }),
51438
+
51439
+ /***/ "7d3c":
51440
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
51441
+
51442
+ "use strict";
51443
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_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_1_id_5d8eba59_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0b0c");
51444
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_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_1_id_5d8eba59_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_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_1_id_5d8eba59_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
51445
+ /* unused harmony reexport * */
51446
+
51447
+
51448
51448
  /***/ }),
51449
51449
 
51450
51450
  /***/ "7e1b":
@@ -66005,10 +66005,17 @@ module.exports = document && document.documentElement;
66005
66005
 
66006
66006
  /***/ }),
66007
66007
 
66008
+ /***/ "9194":
66009
+ /***/ (function(module, exports, __webpack_require__) {
66010
+
66011
+ // extracted by mini-css-extract-plugin
66012
+
66013
+ /***/ }),
66014
+
66008
66015
  /***/ "9224":
66009
66016
  /***/ (function(module) {
66010
66017
 
66011
- module.exports = JSON.parse("{\"name\":\"fl-web-component\",\"version\":\"2.1.17\",\"scripts\":{\"postinstall\":\"patch-package\",\"tip1\":\"仅调试本组件不涉及业务组件,请执行dev\",\"dev\":\"vue-cli-service serve\",\"lint\":\"eslint \\\"{src,packages}/**/*.{vue,js}\\\" --fix\",\"prettier\":\"prettier --write \\\"packages/**/*.{js,css,less,scss,vue,html}\\\"\",\"=\":\"=============================================================\",\"tip2\":\"同时调试本组件与业务组件,请执行watch,生产模式监听请执行watch:prod\",\"watch\":\"vue-cli-service build --watch --mode development --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"watch:prod\":\"vue-cli-service build --watch --mode production --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"build\":\"npm run lint && vue-cli-service build --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"build:test\":\"vue-cli-service build --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"publish:base\":\"npm run build && npm publish --registry https://registry.npmjs.org/\",\"publish:beta:base\":\"npm run build && npm publish --tag beta --registry https://registry.npmjs.org/\",\"==\":\"=============================================================\",\"tip3\":\"发版注意: 【测试版执行publish:beta】【修改bug执行publish:fix】【新增功能执行publish:feat】【新特性执行publish:perf】\",\"publish:beta\":\"npm version prerelease --preid=beta && npm run publish:beta:base\",\"publish:fix\":\"npm version patch && npm run publish:base\",\"publish:feat\":\"npm version minor && npm run publish:base\",\"publish:perf\":\"npm version major && npm run publish:base\"},\"files\":[\"dist\",\"packages\",\"src\"],\"main\":\"dist/fl-web-component.common.js\",\"dependencies\":{\"camera-controls\":\"2.9.0\",\"core-js\":\"^3.42.0\",\"dxf-parser\":\"^1.1.2\",\"element-ui\":\"2.15.14\",\"fflate\":\"^0.8.2\",\"html2canvas\":\"^1.4.1\",\"jspdf\":\"^3.0.1\",\"konva\":\"^9.3.12\",\"lodash\":\"^4.17.21\",\"meshline\":\"^3.3.1\",\"regenerator-runtime\":\"^0.14.1\",\"svg-pan-zoom\":\"^3.6.2\",\"three\":\"^0.176.0\",\"three.path\":\"^1.0.1\",\"vue\":\"^2.6.11\"},\"devDependencies\":{\"@babel/core\":\"^7.12.16\",\"@babel/plugin-proposal-nullish-coalescing-operator\":\"^7.18.6\",\"@babel/plugin-proposal-optional-chaining\":\"^7.21.0\",\"@babel/preset-env\":\"^7.0.0\",\"@babel/runtime-corejs3\":\"^7.27.1\",\"@vue/cli-plugin-babel\":\"~4.4.0\",\"@vue/cli-plugin-eslint\":\"~4.4.0\",\"@vue/cli-service\":\"~4.4.0\",\"babel-eslint\":\"^10.1.0\",\"babel-loader\":\"^8.0.0\",\"copy-webpack-plugin\":\"^4.0.1\",\"eslint\":\"^6.7.2\",\"eslint-config-prettier\":\"^6.15.0\",\"eslint-plugin-prettier\":\"^3.4.1\",\"eslint-plugin-vue\":\"^6.2.2\",\"patch-package\":\"^6.4.7\",\"prettier\":\"^2.8.8\",\"sass\":\"1.32.13\",\"sass-loader\":\"10.1.1\",\"vue-template-compiler\":\"^2.6.11\",\"worker-loader\":\"^3.0.8\"},\"browserslist\":[\"> 1%\",\"last 2 versions\"]}");
66018
+ module.exports = JSON.parse("{\"name\":\"fl-web-component\",\"version\":\"2.1.18\",\"scripts\":{\"postinstall\":\"patch-package\",\"tip1\":\"仅调试本组件不涉及业务组件,请执行dev\",\"dev\":\"vue-cli-service serve\",\"lint\":\"eslint \\\"{src,packages}/**/*.{vue,js}\\\" --fix\",\"prettier\":\"prettier --write \\\"packages/**/*.{js,css,less,scss,vue,html}\\\"\",\"=\":\"=============================================================\",\"tip2\":\"同时调试本组件与业务组件,请执行watch,生产模式监听请执行watch:prod\",\"watch\":\"vue-cli-service build --watch --mode development --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"watch:prod\":\"vue-cli-service build --watch --mode production --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"build\":\"npm run lint && vue-cli-service build --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"build:test\":\"vue-cli-service build --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"publish:base\":\"npm run build && npm publish --registry https://registry.npmjs.org/\",\"publish:beta:base\":\"npm run build && npm publish --tag beta --registry https://registry.npmjs.org/\",\"==\":\"=============================================================\",\"tip3\":\"发版注意: 【测试版执行publish:beta】【修改bug执行publish:fix】【新增功能执行publish:feat】【新特性执行publish:perf】\",\"publish:beta\":\"npm version prerelease --preid=beta && npm run publish:beta:base\",\"publish:fix\":\"npm version patch && npm run publish:base\",\"publish:feat\":\"npm version minor && npm run publish:base\",\"publish:perf\":\"npm version major && npm run publish:base\"},\"files\":[\"dist\",\"packages\",\"src\"],\"main\":\"dist/fl-web-component.common.js\",\"dependencies\":{\"camera-controls\":\"2.9.0\",\"core-js\":\"^3.42.0\",\"dxf-parser\":\"^1.1.2\",\"element-ui\":\"2.15.14\",\"fflate\":\"^0.8.2\",\"html2canvas\":\"^1.4.1\",\"jspdf\":\"^3.0.1\",\"konva\":\"^9.3.12\",\"lodash\":\"^4.17.21\",\"meshline\":\"^3.3.1\",\"regenerator-runtime\":\"^0.14.1\",\"svg-pan-zoom\":\"^3.6.2\",\"three\":\"^0.176.0\",\"three.path\":\"^1.0.1\",\"vue\":\"^2.6.11\"},\"devDependencies\":{\"@babel/core\":\"^7.12.16\",\"@babel/plugin-proposal-nullish-coalescing-operator\":\"^7.18.6\",\"@babel/plugin-proposal-optional-chaining\":\"^7.21.0\",\"@babel/preset-env\":\"^7.0.0\",\"@babel/runtime-corejs3\":\"^7.27.1\",\"@vue/cli-plugin-babel\":\"~4.4.0\",\"@vue/cli-plugin-eslint\":\"~4.4.0\",\"@vue/cli-service\":\"~4.4.0\",\"babel-eslint\":\"^10.1.0\",\"babel-loader\":\"^8.0.0\",\"copy-webpack-plugin\":\"^4.0.1\",\"eslint\":\"^6.7.2\",\"eslint-config-prettier\":\"^6.15.0\",\"eslint-plugin-prettier\":\"^3.4.1\",\"eslint-plugin-vue\":\"^6.2.2\",\"patch-package\":\"^6.4.7\",\"prettier\":\"^2.8.8\",\"sass\":\"1.32.13\",\"sass-loader\":\"10.1.1\",\"vue-template-compiler\":\"^2.6.11\",\"worker-loader\":\"^3.0.8\"},\"browserslist\":[\"> 1%\",\"last 2 versions\"]}");
66012
66019
 
66013
66020
  /***/ }),
66014
66021
 
@@ -68561,13 +68568,6 @@ Schema.messages = messages_messages;
68561
68568
 
68562
68569
  /***/ }),
68563
68570
 
68564
- /***/ "a31d":
68565
- /***/ (function(module, exports, __webpack_require__) {
68566
-
68567
- // extracted by mini-css-extract-plugin
68568
-
68569
- /***/ }),
68570
-
68571
68571
  /***/ "a34e":
68572
68572
  /***/ (function(module, exports, __webpack_require__) {
68573
68573
 
@@ -88142,8 +88142,8 @@ if (typeof window !== 'undefined') {
88142
88142
  // Indicate to webpack that this file can be concatenated
88143
88143
  /* harmony default export */ var setPublicPath = (null);
88144
88144
 
88145
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8217a8-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=23daca8a&scoped=true
88146
- var com_graphicsvue_type_template_id_23daca8a_scoped_true_render = function render() {
88145
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0b7ccd2d-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=5d8eba59&scoped=true
88146
+ var com_graphicsvue_type_template_id_5d8eba59_scoped_true_render = function render() {
88147
88147
  var _vm = this,
88148
88148
  _c = _vm._self._c;
88149
88149
  return _c('div', {
@@ -88155,7 +88155,7 @@ var com_graphicsvue_type_template_id_23daca8a_scoped_true_render = function rend
88155
88155
  };
88156
88156
  var staticRenderFns = [];
88157
88157
 
88158
- // CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=template&id=23daca8a&scoped=true
88158
+ // CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=template&id=5d8eba59&scoped=true
88159
88159
 
88160
88160
  // CONCATENATED MODULE: ./node_modules/camera-controls/dist/camera-controls.module.js
88161
88161
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
@@ -138116,7 +138116,14 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138116
138116
  };
138117
138117
  this.clippingPlanesConstants = null;
138118
138118
  this.renderer.clippingPlanes = Object.freeze([]);
138119
- this.gui && this.gui.destroy();
138119
+ if (this.gui) {
138120
+ this.gui.destroy();
138121
+ this.gui = null;
138122
+ }
138123
+ },
138124
+ closeGlobalClipping: function closeGlobalClipping() {
138125
+ this.cancelGlobalClipping();
138126
+ this.$emit('globalClippingClosed');
138120
138127
  },
138121
138128
  // 单个实体的剖切/ 局部剖切 obj 实体对象 flag 代表是否使用图形组件自带的剖切面板 默认为true
138122
138129
  setLocalClipping: function setLocalClipping(obj) {
@@ -138210,6 +138217,11 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138210
138217
  },
138211
138218
  // 添加剖切轴工具
138212
138219
  addClippingGui: function addClippingGui(title, boudingValue, objClipp1, objClipp2) {
138220
+ var _this64 = this;
138221
+ if (this.gui) {
138222
+ this.gui.destroy();
138223
+ this.gui = null;
138224
+ }
138213
138225
  var xRange = this.getExpandedClippingRange(boudingValue.min.x, boudingValue.max.x);
138214
138226
  var yRange = this.getExpandedClippingRange(boudingValue.min.y, boudingValue.max.y);
138215
138227
  var zRange = this.getExpandedClippingRange(boudingValue.min.z, boudingValue.max.z);
@@ -138231,6 +138243,19 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138231
138243
  this.gui = new lil_gui_module_min_g({
138232
138244
  title: title
138233
138245
  });
138246
+ if (title === '全局剖切') {
138247
+ var closeButton = document.createElement('button');
138248
+ closeButton.type = 'button';
138249
+ closeButton.className = 'global-clipping-close';
138250
+ closeButton.textContent = '关闭';
138251
+ closeButton.title = '关闭全局剖切';
138252
+ closeButton.addEventListener('click', function (event) {
138253
+ event.preventDefault();
138254
+ event.stopPropagation();
138255
+ _this64.closeGlobalClipping();
138256
+ });
138257
+ this.gui.domElement.querySelector('.title').appendChild(closeButton);
138258
+ }
138234
138259
  this.gui.add(this.guiParams, 'x轴').step(0.001).min(xRange.min).max(xRange.max).onChange(function (d) {
138235
138260
  objClipp1[0].constant = d;
138236
138261
  objClipp2 && (objClipp2[0].constant = d);
@@ -138317,71 +138342,71 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138317
138342
  },
138318
138343
  // 页面是否锁定
138319
138344
  initPointerLock: function initPointerLock() {
138320
- var _this64 = this;
138345
+ var _this65 = this;
138321
138346
  // this.home();
138322
138347
  setTimeout(function () {
138323
138348
  // 开启第一视角时,将相机与水平面保持水平
138324
- _this64.camera.rotation.x = 0;
138325
- _this64.camera.rotation.z = 0;
138326
- _this64.pointControls = new PointerLockControls(_this64.camera, _this64.renderer.domElement);
138327
- _this64.pointControls.lock();
138328
- if (!_this64._onFirstPersonChange) {
138329
- _this64._onFirstPersonChange = function () {
138330
- if (typeof _this64._cameraChangeObserver === 'function') {
138331
- _this64._cameraChangeObserver('firstPerson');
138349
+ _this65.camera.rotation.x = 0;
138350
+ _this65.camera.rotation.z = 0;
138351
+ _this65.pointControls = new PointerLockControls(_this65.camera, _this65.renderer.domElement);
138352
+ _this65.pointControls.lock();
138353
+ if (!_this65._onFirstPersonChange) {
138354
+ _this65._onFirstPersonChange = function () {
138355
+ if (typeof _this65._cameraChangeObserver === 'function') {
138356
+ _this65._cameraChangeObserver('firstPerson');
138332
138357
  }
138333
138358
  };
138334
138359
  }
138335
138360
  try {
138336
- _this64.pointControls.addEventListener('change', _this64._onFirstPersonChange);
138361
+ _this65.pointControls.addEventListener('change', _this65._onFirstPersonChange);
138337
138362
  } catch (e) {}
138338
138363
  // 锁定
138339
- _this64.pointControls.addEventListener('lock', function () {
138340
- _this64.detachTransformControls();
138341
- if (_this64.cameraControls) {
138342
- _this64.cameraControls.enabled = false;
138364
+ _this65.pointControls.addEventListener('lock', function () {
138365
+ _this65.detachTransformControls();
138366
+ if (_this65.cameraControls) {
138367
+ _this65.cameraControls.enabled = false;
138343
138368
  }
138344
- window.addEventListener('keydown', _this64.onKeyDown, false);
138345
- window.addEventListener('keyup', _this64.onKeyUp, false);
138346
- _this64.unbindScenePointerEvents();
138347
- if (typeof _this64._cameraChangeObserver === 'function') {
138348
- _this64._cameraChangeObserver('firstPersonLock');
138369
+ window.addEventListener('keydown', _this65.onKeyDown, false);
138370
+ window.addEventListener('keyup', _this65.onKeyUp, false);
138371
+ _this65.unbindScenePointerEvents();
138372
+ if (typeof _this65._cameraChangeObserver === 'function') {
138373
+ _this65._cameraChangeObserver('firstPersonLock');
138349
138374
  }
138350
138375
  });
138351
138376
  // 解锁
138352
- _this64.pointControls.addEventListener('unlock', function () {
138353
- _this64.firstPerSign = false;
138354
- if (_this64.cameraControls) {
138355
- _this64.cameraControls.enabled = true;
138377
+ _this65.pointControls.addEventListener('unlock', function () {
138378
+ _this65.firstPerSign = false;
138379
+ if (_this65.cameraControls) {
138380
+ _this65.cameraControls.enabled = true;
138356
138381
  }
138357
138382
  // 返回初始视角
138358
- if (_this64.cameraControls && _this64.camera && _this64.sceneBoundingBox) {
138359
- _this64.home();
138383
+ if (_this65.cameraControls && _this65.camera && _this65.sceneBoundingBox) {
138384
+ _this65.home();
138360
138385
  }
138361
138386
  try {
138362
- if (_this64._onFirstPersonChange && _this64.pointControls) {
138363
- _this64.pointControls.removeEventListener('change', _this64._onFirstPersonChange);
138387
+ if (_this65._onFirstPersonChange && _this65.pointControls) {
138388
+ _this65.pointControls.removeEventListener('change', _this65._onFirstPersonChange);
138364
138389
  }
138365
138390
  } catch (e) {}
138366
- if (_this64.noObserver) {
138367
- _this64.noObserver._firstPersonLastPos = null;
138391
+ if (_this65.noObserver) {
138392
+ _this65.noObserver._firstPersonLastPos = null;
138368
138393
  }
138369
138394
  setTimeout(function () {
138370
- window.removeEventListener('keydown', _this64.onKeyDown);
138371
- window.removeEventListener('keyup', _this64.onKeyUp);
138372
- if (_this64.renderer && _this64.renderer.domElement) {
138373
- _this64.bindScenePointerEvents();
138395
+ window.removeEventListener('keydown', _this65.onKeyDown);
138396
+ window.removeEventListener('keyup', _this65.onKeyUp);
138397
+ if (_this65.renderer && _this65.renderer.domElement) {
138398
+ _this65.bindScenePointerEvents();
138374
138399
  }
138375
- if (_this64.scene) {
138376
- _this64.ensureTransformSelectionValid();
138400
+ if (_this65.scene) {
138401
+ _this65.ensureTransformSelectionValid();
138377
138402
  }
138378
138403
  // this.timeRender()
138379
138404
  }, 0);
138380
- if (typeof _this64._cameraChangeObserver === 'function') {
138381
- _this64._cameraChangeObserver('firstPersonUnlock');
138405
+ if (typeof _this65._cameraChangeObserver === 'function') {
138406
+ _this65._cameraChangeObserver('firstPersonUnlock');
138382
138407
  }
138383
138408
  });
138384
- if (_this64.scene) _this64.scene.add(_this64.pointControls.object);
138409
+ if (_this65.scene) _this65.scene.add(_this65.pointControls.object);
138385
138410
  }, 10);
138386
138411
  },
138387
138412
  // 第一视角运动
@@ -138536,7 +138561,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138536
138561
  return this.scene && this.scene.children ? this.scene.children : [];
138537
138562
  },
138538
138563
  openMeasure: function openMeasure(type) {
138539
- var _this65 = this;
138564
+ var _this66 = this;
138540
138565
  var isClear = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
138541
138566
  if (this.threeMeasure) {
138542
138567
  this.threeMeasure.close(isClear);
@@ -138548,7 +138573,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138548
138573
  case 'distance':
138549
138574
  this.threeMeasure = new measure_distance.MeasureDistance(this.renderer, this.scene, this.camera, this.instructions.offsetWidth, this.instructions.offsetHeight, {
138550
138575
  pickRoots: function pickRoots() {
138551
- return _this65.getMeasurePickRoots();
138576
+ return _this66.getMeasurePickRoots();
138552
138577
  }
138553
138578
  });
138554
138579
  this.threeMeasure.start();
@@ -138556,7 +138581,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138556
138581
  case 'area':
138557
138582
  this.threeMeasure = new measure_area.MeasureArea(this.renderer, this.scene, this.camera, this.instructions.offsetWidth, this.instructions.offsetHeight, {
138558
138583
  pickRoots: function pickRoots() {
138559
- return _this65.getMeasurePickRoots();
138584
+ return _this66.getMeasurePickRoots();
138560
138585
  }
138561
138586
  });
138562
138587
  this.threeMeasure.start();
@@ -138564,7 +138589,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138564
138589
  case 'angle':
138565
138590
  this.threeMeasure = new measure_angle.MeasureAngle(this.renderer, this.scene, this.camera, this.instructions.offsetWidth, this.instructions.offsetHeight, {
138566
138591
  pickRoots: function pickRoots() {
138567
- return _this65.getMeasurePickRoots();
138592
+ return _this66.getMeasurePickRoots();
138568
138593
  }
138569
138594
  });
138570
138595
  this.threeMeasure.start();
@@ -138572,7 +138597,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138572
138597
  case 'height':
138573
138598
  this.threeMeasure = new measure_height.MeasureHeight(this.renderer, this.scene, this.camera, this.instructions.offsetWidth, this.instructions.offsetHeight, {
138574
138599
  pickRoots: function pickRoots() {
138575
- return _this65.getMeasurePickRoots();
138600
+ return _this66.getMeasurePickRoots();
138576
138601
  }
138577
138602
  });
138578
138603
  this.threeMeasure.start();
@@ -138618,11 +138643,11 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138618
138643
  return object.name === 'measureObj' || userData.isMeasureObject === true;
138619
138644
  },
138620
138645
  removeMeasureObjectsFromScene: function removeMeasureObjectsFromScene() {
138621
- var _this66 = this;
138646
+ var _this67 = this;
138622
138647
  if (!this.scene) return;
138623
138648
  var measureObjects = [];
138624
138649
  this.scene.traverse(function (object) {
138625
- if (_this66.isMeasureObject(object)) {
138650
+ if (_this67.isMeasureObject(object)) {
138626
138651
  measureObjects.push(object);
138627
138652
  }
138628
138653
  });
@@ -138630,9 +138655,9 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138630
138655
  if (object.parent) {
138631
138656
  object.parent.remove(object);
138632
138657
  } else {
138633
- _this66.scene.remove(object);
138658
+ _this67.scene.remove(object);
138634
138659
  }
138635
- _this66.disposeMeasureObject(object);
138660
+ _this67.disposeMeasureObject(object);
138636
138661
  });
138637
138662
  },
138638
138663
  // 增加一个清除所有测量结果的方法,清理历史测量实例遗留的对象
@@ -138705,12 +138730,12 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138705
138730
  参数: object, 目标实体,
138706
138731
  */
138707
138732
  isolate: function isolate(object) {
138708
- var _this67 = this;
138733
+ var _this68 = this;
138709
138734
  if (!this.scene) return;
138710
138735
  // 隔离 将目标实体以外的实体隐藏掉
138711
138736
  this.scene.traverse(function (item) {
138712
138737
  if (item.isMesh && item.name !== object.name) {
138713
- var offsetMatrix = new _this67.THREE.Matrix4().copy(item.userData.copyMatrix).makeTranslation(9999999, 9999999, 9999999);
138738
+ var offsetMatrix = new _this68.THREE.Matrix4().copy(item.userData.copyMatrix).makeTranslation(9999999, 9999999, 9999999);
138714
138739
  item.setMatrixAt(item.userData.instanceIndex, offsetMatrix);
138715
138740
  item.instanceMatrix.needsUpdate = true;
138716
138741
  }
@@ -138718,7 +138743,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138718
138743
  },
138719
138744
  // 还原操作 将修改过的实体进行恢复
138720
138745
  restore: function restore() {
138721
- var _this68 = this;
138746
+ var _this69 = this;
138722
138747
  if (!this.scene) return;
138723
138748
  this.scene.traverse(function (item) {
138724
138749
  if (item.isMesh) {
@@ -138740,20 +138765,20 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138740
138765
  item.userData.translateMatrixInvert = null;
138741
138766
  }
138742
138767
  if (item.userData.combineMatrixInvert) {
138743
- _this68.rotateMesh(item, {
138768
+ _this69.rotateMesh(item, {
138744
138769
  x: 0,
138745
138770
  y: 0,
138746
138771
  z: 0
138747
138772
  });
138748
138773
  item.userData.combineMatrixInvert = null;
138749
138774
  }
138750
- var copyMatrix = _this68.getInstanceCopyMatrix(item, instanceId);
138775
+ var copyMatrix = _this69.getInstanceCopyMatrix(item, instanceId);
138751
138776
  if (!copyMatrix) return;
138752
- var sourceHidden = _this68.isSourceHiddenInstance(item, instanceId);
138753
- var offsetMatrix = new _this68.THREE.Matrix4().copy(copyMatrix);
138777
+ var sourceHidden = _this69.isSourceHiddenInstance(item, instanceId);
138778
+ var offsetMatrix = new _this69.THREE.Matrix4().copy(copyMatrix);
138754
138779
  if (sourceHidden) {
138755
138780
  offsetMatrix.makeTranslation(9999999, 9999999, 9999999);
138756
- _this68.removeOutlineInstanceProxy(item, item.userData.instanceIndex);
138781
+ _this69.removeOutlineInstanceProxy(item, item.userData.instanceIndex);
138757
138782
  }
138758
138783
  item.setMatrixAt(item.userData.instanceIndex, offsetMatrix);
138759
138784
  item.instanceMatrix.needsUpdate = true;
@@ -138762,7 +138787,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138762
138787
  },
138763
138788
  // 添加自定义模型, 暂时只支持glb、gltf格式
138764
138789
  addCustomModel: function addCustomModel(name, position, url) {
138765
- var _this69 = this;
138790
+ var _this70 = this;
138766
138791
  var scale = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
138767
138792
  var immediately = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
138768
138793
  var callback = arguments.length > 5 ? arguments[5] : undefined;
@@ -138773,41 +138798,41 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138773
138798
  locationModel.scale.set(scale, scale, scale);
138774
138799
  locationModel.updateMatrixWorld();
138775
138800
  if (immediately) {
138776
- _this69.cameraControls.fitToSphere(gltf.this.scene, true);
138801
+ _this70.cameraControls.fitToSphere(gltf.this.scene, true);
138777
138802
  }
138778
138803
  // 动画混合器
138779
138804
  // 不参与裁剪
138780
138805
  locationModel.userData.cull = false;
138781
138806
  locationModel.name = name;
138782
- if (_this69.scene) _this69.scene.add(locationModel);
138783
- locationModel.position.copy(new _this69.THREE.Vector3(position.x, position.y, position.z));
138807
+ if (_this70.scene) _this70.scene.add(locationModel);
138808
+ locationModel.position.copy(new _this70.THREE.Vector3(position.x, position.y, position.z));
138784
138809
  if (gltf.animations.length > 0) {
138785
- var actionMixer = new _this69.THREE.AnimationMixer(gltf.this.scene);
138810
+ var actionMixer = new _this70.THREE.AnimationMixer(gltf.this.scene);
138786
138811
  var walkActive = actionMixer.clipAction(gltf.animations[0]);
138787
138812
  walkActive.play();
138788
- _this69.modelActive.push(walkActive);
138789
- _this69.modelActions.push(actionMixer);
138813
+ _this70.modelActive.push(walkActive);
138814
+ _this70.modelActions.push(actionMixer);
138790
138815
  }
138791
138816
  callback && callback();
138792
138817
  });
138793
138818
  },
138794
138819
  // 删除添加的自定义模型
138795
138820
  removeCustomModel: function removeCustomModel(name) {
138796
- var _this70 = this;
138821
+ var _this71 = this;
138797
138822
  var obj = this.getObjectByName(name);
138798
138823
  obj.forEach(function (item, index) {
138799
138824
  if (item.animations > 0) {
138800
138825
  item.removeFromParent();
138801
- _this70.modelActions[index].uncacheRoot(item);
138802
- _this70.modelActions[index].uncacheRoot(_this70.modelActive[index]);
138826
+ _this71.modelActions[index].uncacheRoot(item);
138827
+ _this71.modelActions[index].uncacheRoot(_this71.modelActive[index]);
138803
138828
  }
138804
138829
  item.traverse(function (child) {
138805
- if (child instanceof _this70.THREE.Mesh) {
138830
+ if (child instanceof _this71.THREE.Mesh) {
138806
138831
  child.geometry.dispose();
138807
138832
  child.material.dispose();
138808
138833
  }
138809
138834
  });
138810
- if (_this70.scene) _this70.scene.remove(item);
138835
+ if (_this71.scene) _this71.scene.remove(item);
138811
138836
  });
138812
138837
  this.modelActions.splice(0);
138813
138838
  this.modelActive.splice(0);
@@ -138869,7 +138894,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138869
138894
  return size;
138870
138895
  },
138871
138896
  animate: function animate() {
138872
- var _this71 = this;
138897
+ var _this72 = this;
138873
138898
  if (isDebug) {
138874
138899
  this.stats && this.stats.begin(); // 开始帧率统计
138875
138900
  }
@@ -138883,7 +138908,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
138883
138908
  if (this.timeStamp > singleFrameTime) {
138884
138909
  if (this.modelActions.length > 0) {
138885
138910
  this.modelActions.forEach(function (item) {
138886
- item.update(_this71.timeStamp);
138911
+ item.update(_this72.timeStamp);
138887
138912
  });
138888
138913
  }
138889
138914
  this.cameraControls.enabled && this.cameraControls.update(this.timeStamp);
@@ -139259,25 +139284,25 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139259
139284
  * 加载下一批数据
139260
139285
  */
139261
139286
  loadNextBatch: function loadNextBatch() {
139262
- var _this72 = this;
139287
+ var _this73 = this;
139263
139288
  return com_graphicsvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/com_graphicsvue_type_script_lang_js_regenerator().m(function _callee1() {
139264
139289
  var loadingState, batch, _t3;
139265
139290
  return com_graphicsvue_type_script_lang_js_regenerator().w(function (_context1) {
139266
139291
  while (1) switch (_context1.p = _context1.n) {
139267
139292
  case 0:
139268
- loadingState = _this72.noObserver ? _this72.noObserver.batchLoadingState : _this72.batchLoadingState;
139269
- if (_this72.isBatchLoadingSceneReady()) {
139293
+ loadingState = _this73.noObserver ? _this73.noObserver.batchLoadingState : _this73.batchLoadingState;
139294
+ if (_this73.isBatchLoadingSceneReady()) {
139270
139295
  _context1.n = 1;
139271
139296
  break;
139272
139297
  }
139273
- _this72.stopBatchLoading('scene_unavailable');
139298
+ _this73.stopBatchLoading('scene_unavailable');
139274
139299
  return _context1.a(2);
139275
139300
  case 1:
139276
139301
  if (!(!loadingState.isLoading || loadingState.currentBatch >= loadingState.pendingData.length)) {
139277
139302
  _context1.n = 2;
139278
139303
  break;
139279
139304
  }
139280
- _this72.completeBatchLoading();
139305
+ _this73.completeBatchLoading();
139281
139306
  return _context1.a(2);
139282
139307
  case 2:
139283
139308
  if (!loadingState.isPaused) {
@@ -139286,7 +139311,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139286
139311
  }
139287
139312
  // 如果暂停,延迟一段时间后再次检查
139288
139313
  loadingState.animationFrameId = requestAnimationFrame(function () {
139289
- _this72.loadNextBatch();
139314
+ _this73.loadNextBatch();
139290
139315
  });
139291
139316
  return _context1.a(2);
139292
139317
  case 3:
@@ -139296,7 +139321,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139296
139321
  }
139297
139322
  // 如果正在交互,延迟一段时间后再次检查
139298
139323
  loadingState.animationFrameId = requestAnimationFrame(function () {
139299
- _this72.loadNextBatch();
139324
+ _this73.loadNextBatch();
139300
139325
  });
139301
139326
  return _context1.a(2);
139302
139327
  case 4:
@@ -139305,13 +139330,13 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139305
139330
  _context1.n = 5;
139306
139331
  break;
139307
139332
  }
139308
- _this72.completeBatchLoading();
139333
+ _this73.completeBatchLoading();
139309
139334
  return _context1.a(2);
139310
139335
  case 5:
139311
139336
  _context1.p = 5;
139312
139337
  console.log('加载批次:', loadingState.currentBatch);
139313
139338
  _context1.n = 6;
139314
- return _this72.processWithMainThread(batch);
139339
+ return _this73.processWithMainThread(batch);
139315
139340
  case 6:
139316
139341
  if (loadingState.isLoading) {
139317
139342
  _context1.n = 7;
@@ -139319,11 +139344,11 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139319
139344
  }
139320
139345
  return _context1.a(2);
139321
139346
  case 7:
139322
- if (_this72.isBatchLoadingSceneReady()) {
139347
+ if (_this73.isBatchLoadingSceneReady()) {
139323
139348
  _context1.n = 8;
139324
139349
  break;
139325
139350
  }
139326
- _this72.stopBatchLoading('scene_unavailable');
139351
+ _this73.stopBatchLoading('scene_unavailable');
139327
139352
  return _context1.a(2);
139328
139353
  case 8:
139329
139354
  // 更新进度
@@ -139332,8 +139357,8 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139332
139357
  loadingState.currentBatch++;
139333
139358
 
139334
139359
  // 同步到响应式状态
139335
- _this72.batchLoadingState.loadedCount = loadingState.loadedCount;
139336
- _this72.batchLoadingState.currentBatch = loadingState.currentBatch;
139360
+ _this73.batchLoadingState.loadedCount = loadingState.loadedCount;
139361
+ _this73.batchLoadingState.currentBatch = loadingState.currentBatch;
139337
139362
 
139338
139363
  // 调用进度回调
139339
139364
  if (loadingState.onProgress) {
@@ -139347,7 +139372,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139347
139372
 
139348
139373
  // 使用 requestAnimationFrame 在下一帧继续加载
139349
139374
  loadingState.animationFrameId = requestAnimationFrame(function () {
139350
- _this72.loadNextBatch();
139375
+ _this73.loadNextBatch();
139351
139376
  });
139352
139377
  _context1.n = 10;
139353
139378
  break;
@@ -139358,7 +139383,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139358
139383
 
139359
139384
  // 继续下一批次
139360
139385
  loadingState.animationFrameId = requestAnimationFrame(function () {
139361
- _this72.loadNextBatch();
139386
+ _this73.loadNextBatch();
139362
139387
  });
139363
139388
  case 10:
139364
139389
  return _context1.a(2);
@@ -139370,20 +139395,20 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139370
139395
  * 使用主线程处理批次数据
139371
139396
  */
139372
139397
  processWithMainThread: function processWithMainThread(batch) {
139373
- var _this73 = this;
139398
+ var _this74 = this;
139374
139399
  return com_graphicsvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/com_graphicsvue_type_script_lang_js_regenerator().m(function _callee10() {
139375
139400
  var loadingState;
139376
139401
  return com_graphicsvue_type_script_lang_js_regenerator().w(function (_context10) {
139377
139402
  while (1) switch (_context10.n) {
139378
139403
  case 0:
139379
- loadingState = _this73.noObserver ? _this73.noObserver.batchLoadingState : _this73.batchLoadingState;
139404
+ loadingState = _this74.noObserver ? _this74.noObserver.batchLoadingState : _this74.batchLoadingState;
139380
139405
  loadingState.options.batchSize = loadingState.batchSize;
139381
139406
  loadingState.options.resetState = loadingState.currentBatch === 0;
139382
139407
  // 使用原始的handleInstancedMeshModel方法
139383
139408
 
139384
139409
  isDebug && performance.mark('handleInstancedMeshModel-start');
139385
139410
  _context10.n = 1;
139386
- return handleInstancedMeshModel(_this73.modelGroup, batch.instances, batch.drawObjs, '', _this73.scene, loadingState.color, loadingState.meshNameConfig, '', loadingState.options);
139411
+ return handleInstancedMeshModel(_this74.modelGroup, batch.instances, batch.drawObjs, '', _this74.scene, loadingState.color, loadingState.meshNameConfig, '', loadingState.options);
139387
139412
  case 1:
139388
139413
  isDebug && performance.mark('handleInstancedMeshModel-end');
139389
139414
  isDebug && performance.measure('handleInstancedMeshModel', 'handleInstancedMeshModel-start', 'handleInstancedMeshModel-end');
@@ -139411,7 +139436,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139411
139436
  * 完成批量加载
139412
139437
  */
139413
139438
  completeBatchLoading: function completeBatchLoading() {
139414
- var _this74 = this;
139439
+ var _this75 = this;
139415
139440
  var loadingState = this.noObserver ? this.noObserver.batchLoadingState : this.batchLoadingState;
139416
139441
  if (!loadingState.isLoading) return;
139417
139442
  if (!this.isBatchLoadingSceneReady()) {
@@ -139444,17 +139469,17 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139444
139469
  this.modelGroup.traverse(function (child) {
139445
139470
  if (child.isMesh && !child.userData.batchInitDone) {
139446
139471
  markRendered(child);
139447
- var json = _this74.getMeshCenterAndVolume(child);
139448
- var meshBox3 = new _this74.THREE.Box3();
139472
+ var json = _this75.getMeshCenterAndVolume(child);
139473
+ var meshBox3 = new _this75.THREE.Box3();
139449
139474
  meshBox3.setFromObject(child);
139450
- var worldPs = new _this74.THREE.Vector3().addVectors(meshBox3.max, meshBox3.min).multiplyScalar(0.5);
139475
+ var worldPs = new _this75.THREE.Vector3().addVectors(meshBox3.max, meshBox3.min).multiplyScalar(0.5);
139451
139476
  if (isNaN(worldPs.x)) return;
139452
- child.worldDir = new _this74.THREE.Vector3().subVectors(worldPs, modelWorldPs).normalize();
139477
+ child.worldDir = new _this75.THREE.Vector3().subVectors(worldPs, modelWorldPs).normalize();
139453
139478
  child.userData.center = json.center;
139454
139479
  child.userData.worldPs = worldPs;
139455
- child.userData.oldPs = child.getWorldPosition(new _this74.THREE.Vector3());
139480
+ child.userData.oldPs = child.getWorldPosition(new _this75.THREE.Vector3());
139456
139481
  child.userData.box = json.box;
139457
- child.userData.position = new _this74.THREE.Vector3().copy(child.position);
139482
+ child.userData.position = new _this75.THREE.Vector3().copy(child.position);
139458
139483
  child.userData.translate = {
139459
139484
  x: 0,
139460
139485
  y: 0,
@@ -139551,7 +139576,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139551
139576
  * @param {Object} options - 配置项 { immediate: boolean }
139552
139577
  */
139553
139578
  setSystemInterruption: function setSystemInterruption(active) {
139554
- var _this75 = this;
139579
+ var _this76 = this;
139555
139580
  var reason = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'user_interaction';
139556
139581
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
139557
139582
  var loadingState = this.noObserver ? this.noObserver.batchLoadingState : this.batchLoadingState;
@@ -139617,7 +139642,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139617
139642
  if (loadingState.interactionState.wheelTimeout) return;
139618
139643
 
139619
139644
  // 2. 如果是 wheel 结束,但 this.userInteracting (this.camera) 还在进行,则不恢复
139620
- if (reason === 'wheel' && _this75.userInteracting) return;
139645
+ if (reason === 'wheel' && _this76.userInteracting) return;
139621
139646
 
139622
139647
  // 3. 检查是否有强制跳过标记 (可能由其他逻辑触发)
139623
139648
  // if (this.forceSkipRendering && reason !== 'user_interaction') return; // 视情况而定
@@ -139628,15 +139653,15 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139628
139653
  loadingState.pauseReason = '';
139629
139654
  loadingState.interactionState.isInteracting = false;
139630
139655
  loadingState.interactionState.interactionType = '';
139631
- _this75.forceSkipRendering = false;
139656
+ _this76.forceSkipRendering = false;
139632
139657
 
139633
139658
  // 恢复本地批量加载 (如果未完成)
139634
139659
  if (loadingState.isLoading && loadingState.currentBatch < loadingState.totalBatches) {
139635
- _this75.loadNextBatch();
139660
+ _this76.loadNextBatch();
139636
139661
  }
139637
139662
 
139638
139663
  // 恢复 StreamLoader
139639
- var streamLoader = _this75.noObserver.streamLoader;
139664
+ var streamLoader = _this76.noObserver.streamLoader;
139640
139665
  if (streamLoader && typeof streamLoader.handleControlEnd === 'function') {
139641
139666
  // StreamLoader 内部通常有防抖或延迟,这里直接通知结束即可
139642
139667
  streamLoader.handleControlEnd();
@@ -139689,7 +139714,7 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139689
139714
  * 滚轮交互结束的定时检测
139690
139715
  */
139691
139716
  scheduleWheelInteractionEnd: function scheduleWheelInteractionEnd(event) {
139692
- var _this76 = this;
139717
+ var _this77 = this;
139693
139718
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
139694
139719
  var loadingState = this.noObserver ? this.noObserver.batchLoadingState : this.batchLoadingState;
139695
139720
  if (loadingState.interactionState.wheelTimeout) {
@@ -139697,16 +139722,16 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139697
139722
  loadingState.interactionState.wheelTimeout = null;
139698
139723
  }
139699
139724
  loadingState.interactionState.wheelTimeout = setTimeout(function () {
139700
- _this76.$emit('wheelEnd', event);
139725
+ _this77.$emit('wheelEnd', event);
139701
139726
  loadingState.interactionState.wheelTimeout = null;
139702
- _this76.clearSettlePrefetchTimer();
139703
- if (_this76.isCameraControlMoveObserverEnabled()) {
139704
- _this76.resetCameraControlMoveSnapshot(false);
139705
- if (typeof _this76._cameraChangeObserver === 'function') {
139706
- _this76._cameraChangeObserver('wheel');
139727
+ _this77.clearSettlePrefetchTimer();
139728
+ if (_this77.isCameraControlMoveObserverEnabled()) {
139729
+ _this77.resetCameraControlMoveSnapshot(false);
139730
+ if (typeof _this77._cameraChangeObserver === 'function') {
139731
+ _this77._cameraChangeObserver('wheel');
139707
139732
  }
139708
139733
  } else {
139709
- _this76.endInteraction('wheel', event, {
139734
+ _this77.endInteraction('wheel', event, {
139710
139735
  immediateResume: false
139711
139736
  });
139712
139737
  }
@@ -139821,11 +139846,11 @@ var OCCLUSION_DEBUG_FLAG_COLORS = {
139821
139846
  });
139822
139847
  // CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=script&lang=js
139823
139848
  /* harmony default export */ var components_com_graphicsvue_type_script_lang_js = (com_graphicsvue_type_script_lang_js);
139824
- // EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=0&id=23daca8a&prod&lang=scss&scoped=true
139825
- var com_graphicsvue_type_style_index_0_id_23daca8a_prod_lang_scss_scoped_true = __webpack_require__("5a20");
139849
+ // EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=0&id=5d8eba59&prod&lang=scss&scoped=true
139850
+ var com_graphicsvue_type_style_index_0_id_5d8eba59_prod_lang_scss_scoped_true = __webpack_require__("35d8");
139826
139851
 
139827
- // EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=1&id=23daca8a&prod&lang=css
139828
- var com_graphicsvue_type_style_index_1_id_23daca8a_prod_lang_css = __webpack_require__("5fa7");
139852
+ // EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=1&id=5d8eba59&prod&lang=css
139853
+ var com_graphicsvue_type_style_index_1_id_5d8eba59_prod_lang_css = __webpack_require__("7d3c");
139829
139854
 
139830
139855
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
139831
139856
  /* globals __VUE_SSR_CONTEXT__ */
@@ -139937,17 +139962,17 @@ function normalizeComponent(
139937
139962
 
139938
139963
  var component = normalizeComponent(
139939
139964
  components_com_graphicsvue_type_script_lang_js,
139940
- com_graphicsvue_type_template_id_23daca8a_scoped_true_render,
139965
+ com_graphicsvue_type_template_id_5d8eba59_scoped_true_render,
139941
139966
  staticRenderFns,
139942
139967
  false,
139943
139968
  null,
139944
- "23daca8a",
139969
+ "5d8eba59",
139945
139970
  null
139946
139971
 
139947
139972
  )
139948
139973
 
139949
139974
  /* harmony default export */ var com_graphics = (component.exports);
139950
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8217a8-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=e9d7a15c&scoped=true
139975
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0b7ccd2d-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=e9d7a15c&scoped=true
139951
139976
  var com_flcanvasvue_type_template_id_e9d7a15c_scoped_true_render = function render() {
139952
139977
  var _vm = this,
139953
139978
  _c = _vm._self._c;
@@ -144376,7 +144401,7 @@ var com_flcanvas_component = normalizeComponent(
144376
144401
  )
144377
144402
 
144378
144403
  /* harmony default export */ var com_flcanvas = (com_flcanvas_component.exports);
144379
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8217a8-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=3fceaac3&scoped=true
144404
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0b7ccd2d-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=3fceaac3&scoped=true
144380
144405
  var per_controlvue_type_template_id_3fceaac3_scoped_true_render = function render() {
144381
144406
  var _vm = this,
144382
144407
  _c = _vm._self._c;
@@ -144490,7 +144515,7 @@ var per_control_component = normalizeComponent(
144490
144515
  )
144491
144516
 
144492
144517
  /* harmony default export */ var per_control = (per_control_component.exports);
144493
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8217a8-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/pid.vue?vue&type=template&id=2572c0e2&scoped=true
144518
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0b7ccd2d-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/pid.vue?vue&type=template&id=2572c0e2&scoped=true
144494
144519
  var pidvue_type_template_id_2572c0e2_scoped_true_render = function render() {
144495
144520
  var _vm = this,
144496
144521
  _c = _vm._self._c;
@@ -144537,7 +144562,7 @@ var browserify_default = /*#__PURE__*/__webpack_require__.n(browserify);
144537
144562
  var html2canvas = __webpack_require__("c0e9");
144538
144563
  var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
144539
144564
 
144540
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b8217a8-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/component/ann-tool.vue?vue&type=template&id=4b17bce0&scoped=true
144565
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0b7ccd2d-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/component/ann-tool.vue?vue&type=template&id=4b17bce0&scoped=true
144541
144566
  var ann_toolvue_type_template_id_4b17bce0_scoped_true_render = function render() {
144542
144567
  var _vm = this,
144543
144568
  _c = _vm._self._c;