fl-web-component 2.0.9 → 2.0.11
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.
- package/README.md +4 -0
- package/dist/fl-web-component.common.2.js +126 -48
- package/dist/fl-web-component.common.2.js.map +1 -1
- package/dist/fl-web-component.common.js +369 -191
- package/dist/fl-web-component.common.js.map +1 -1
- package/dist/fl-web-component.css +1 -1
- package/package.json +1 -1
- package/packages/components/com-graphics/index.vue +145 -24
- package/src/utils/threejs/measure-angle.js +22 -2
- package/src/utils/threejs/measure-area.js +23 -3
- package/src/utils/threejs/measure-distance.js +20 -1
- package/src/utils/threejs/measure-height.js +17 -1
|
@@ -966,6 +966,17 @@ module.exports = function (delay, atBegin, callback) {
|
|
|
966
966
|
return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
|
|
967
967
|
};
|
|
968
968
|
|
|
969
|
+
/***/ }),
|
|
970
|
+
|
|
971
|
+
/***/ "0eb9":
|
|
972
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
973
|
+
|
|
974
|
+
"use strict";
|
|
975
|
+
/* 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_bfae141c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3139");
|
|
976
|
+
/* 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_bfae141c_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_bfae141c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
977
|
+
/* unused harmony reexport * */
|
|
978
|
+
|
|
979
|
+
|
|
969
980
|
/***/ }),
|
|
970
981
|
|
|
971
982
|
/***/ "0ff5":
|
|
@@ -4106,6 +4117,13 @@ __webpack_require__("e198")('asyncIterator');
|
|
|
4106
4117
|
|
|
4107
4118
|
/***/ }),
|
|
4108
4119
|
|
|
4120
|
+
/***/ "3139":
|
|
4121
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4122
|
+
|
|
4123
|
+
// extracted by mini-css-extract-plugin
|
|
4124
|
+
|
|
4125
|
+
/***/ }),
|
|
4126
|
+
|
|
4109
4127
|
/***/ "31b9":
|
|
4110
4128
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4111
4129
|
|
|
@@ -41877,13 +41895,6 @@ exports.Solarize = Solarize;
|
|
|
41877
41895
|
|
|
41878
41896
|
/***/ }),
|
|
41879
41897
|
|
|
41880
|
-
/***/ "7d26":
|
|
41881
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
41882
|
-
|
|
41883
|
-
// extracted by mini-css-extract-plugin
|
|
41884
|
-
|
|
41885
|
-
/***/ }),
|
|
41886
|
-
|
|
41887
41898
|
/***/ "7d2a":
|
|
41888
41899
|
/***/ (function(module, exports, __webpack_require__) {
|
|
41889
41900
|
|
|
@@ -42564,13 +42575,6 @@ var isMac = exports.isMac = function isMac() {
|
|
|
42564
42575
|
|
|
42565
42576
|
/***/ }),
|
|
42566
42577
|
|
|
42567
|
-
/***/ "8292":
|
|
42568
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
42569
|
-
|
|
42570
|
-
// extracted by mini-css-extract-plugin
|
|
42571
|
-
|
|
42572
|
-
/***/ }),
|
|
42573
|
-
|
|
42574
42578
|
/***/ "83bc":
|
|
42575
42579
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
42576
42580
|
|
|
@@ -56503,7 +56507,7 @@ module.exports = document && document.documentElement;
|
|
|
56503
56507
|
/***/ "9224":
|
|
56504
56508
|
/***/ (function(module) {
|
|
56505
56509
|
|
|
56506
|
-
module.exports = JSON.parse("{\"name\":\"fl-web-component\",\"version\":\"2.0.
|
|
56510
|
+
module.exports = JSON.parse("{\"name\":\"fl-web-component\",\"version\":\"2.0.11\",\"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\":\"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\"]}");
|
|
56507
56511
|
|
|
56508
56512
|
/***/ }),
|
|
56509
56513
|
|
|
@@ -70527,6 +70531,13 @@ module.exports = normalizeWheel;
|
|
|
70527
70531
|
|
|
70528
70532
|
/***/ }),
|
|
70529
70533
|
|
|
70534
|
+
/***/ "d501":
|
|
70535
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
70536
|
+
|
|
70537
|
+
// extracted by mini-css-extract-plugin
|
|
70538
|
+
|
|
70539
|
+
/***/ }),
|
|
70540
|
+
|
|
70530
70541
|
/***/ "d777":
|
|
70531
70542
|
/***/ (function(module, exports, __webpack_require__) {
|
|
70532
70543
|
|
|
@@ -72061,17 +72072,6 @@ module.exports = /******/function (modules) {
|
|
|
72061
72072
|
/******/
|
|
72062
72073
|
});
|
|
72063
72074
|
|
|
72064
|
-
/***/ }),
|
|
72065
|
-
|
|
72066
|
-
/***/ "dd3d":
|
|
72067
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
72068
|
-
|
|
72069
|
-
"use strict";
|
|
72070
|
-
/* 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_a7768a4e_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7d26");
|
|
72071
|
-
/* 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_a7768a4e_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_a7768a4e_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
72072
|
-
/* unused harmony reexport * */
|
|
72073
|
-
|
|
72074
|
-
|
|
72075
72075
|
/***/ }),
|
|
72076
72076
|
|
|
72077
72077
|
/***/ "df93":
|
|
@@ -74019,6 +74019,17 @@ module.exports = /******/function (modules) {
|
|
|
74019
74019
|
/******/
|
|
74020
74020
|
});
|
|
74021
74021
|
|
|
74022
|
+
/***/ }),
|
|
74023
|
+
|
|
74024
|
+
/***/ "e884":
|
|
74025
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
74026
|
+
|
|
74027
|
+
"use strict";
|
|
74028
|
+
/* 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_bfae141c_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d501");
|
|
74029
|
+
/* 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_bfae141c_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_bfae141c_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
74030
|
+
/* unused harmony reexport * */
|
|
74031
|
+
|
|
74032
|
+
|
|
74022
74033
|
/***/ }),
|
|
74023
74034
|
|
|
74024
74035
|
/***/ "e974":
|
|
@@ -78630,8 +78641,8 @@ if (typeof window !== 'undefined') {
|
|
|
78630
78641
|
// Indicate to webpack that this file can be concatenated
|
|
78631
78642
|
/* harmony default export */ var setPublicPath = (null);
|
|
78632
78643
|
|
|
78633
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
78634
|
-
var
|
|
78644
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5f0ec2c6-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=bfae141c&scoped=true
|
|
78645
|
+
var com_graphicsvue_type_template_id_bfae141c_scoped_true_render = function render() {
|
|
78635
78646
|
var _vm = this,
|
|
78636
78647
|
_c = _vm._self._c;
|
|
78637
78648
|
return _c('div', {
|
|
@@ -78643,7 +78654,7 @@ var com_graphicsvue_type_template_id_a7768a4e_scoped_true_render = function rend
|
|
|
78643
78654
|
};
|
|
78644
78655
|
var staticRenderFns = [];
|
|
78645
78656
|
|
|
78646
|
-
// CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=template&id=
|
|
78657
|
+
// CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=template&id=bfae141c&scoped=true
|
|
78647
78658
|
|
|
78648
78659
|
// CONCATENATED MODULE: ./node_modules/camera-controls/dist/camera-controls.module.js
|
|
78649
78660
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
@@ -107044,7 +107055,7 @@ var measure_distance_MeasureDistance = function MeasureDistance(renderer, scene,
|
|
|
107044
107055
|
this.width = width;
|
|
107045
107056
|
this.height = height;
|
|
107046
107057
|
this.firstTime = 0;
|
|
107047
|
-
|
|
107058
|
+
this.measureName = 'measureObj';
|
|
107048
107059
|
// 创建一个辅助平面来捕获鼠标事件
|
|
107049
107060
|
this.plane = new Plane(new Vector3(0, 0, 1), 0);
|
|
107050
107061
|
};
|
|
@@ -107120,6 +107131,7 @@ measure_distance_MeasureDistance.prototype = {
|
|
|
107120
107131
|
});
|
|
107121
107132
|
var lineGeometry = new BufferGeometry().setFromPoints([p1, p2]);
|
|
107122
107133
|
var line = new three_core_Line(lineGeometry, lineMaterial);
|
|
107134
|
+
line.name = this.measureName;
|
|
107123
107135
|
line.renderOrder = 999;
|
|
107124
107136
|
line.frustumCulled = false;
|
|
107125
107137
|
return line;
|
|
@@ -107129,6 +107141,7 @@ measure_distance_MeasureDistance.prototype = {
|
|
|
107129
107141
|
div.className = name;
|
|
107130
107142
|
div.textContent = text;
|
|
107131
107143
|
var divLabel = new CSS2DRenderer_CSS2DObject(div);
|
|
107144
|
+
divLabel.name = this.measureName;
|
|
107132
107145
|
divLabel.position.set(position.x, position.y, position.z);
|
|
107133
107146
|
return divLabel;
|
|
107134
107147
|
},
|
|
@@ -107174,6 +107187,7 @@ measure_distance_MeasureDistance.prototype = {
|
|
|
107174
107187
|
div.className = 'tips-label';
|
|
107175
107188
|
div.textContent = label;
|
|
107176
107189
|
var tipsLabel = new CSS2DRenderer_CSS2DObject(div);
|
|
107190
|
+
tipsLabel.name = this.measureName;
|
|
107177
107191
|
tipsLabel.position.set(position.x + 0.1, position.y, position.z + 0.05);
|
|
107178
107192
|
return tipsLabel;
|
|
107179
107193
|
},
|
|
@@ -107181,6 +107195,7 @@ measure_distance_MeasureDistance.prototype = {
|
|
|
107181
107195
|
this.firstTime = new Date().getTime();
|
|
107182
107196
|
},
|
|
107183
107197
|
click: function click(e) {
|
|
107198
|
+
console.log(measure_distance_this.points);
|
|
107184
107199
|
var lastTime = new Date().getTime();
|
|
107185
107200
|
if (lastTime - this.firstTime < 300) {
|
|
107186
107201
|
if (measure_distance_this.isCompleted) {
|
|
@@ -107258,6 +107273,21 @@ measure_distance_MeasureDistance.prototype = {
|
|
|
107258
107273
|
}
|
|
107259
107274
|
this.renderer.domElement.style.cursor = 'pointer';
|
|
107260
107275
|
},
|
|
107276
|
+
clear: function clear() {
|
|
107277
|
+
this.remove(this.points);
|
|
107278
|
+
this.remove(this.polyline);
|
|
107279
|
+
this.remove(this.labels);
|
|
107280
|
+
this.pointArray.splice(0);
|
|
107281
|
+
this.points.splice(0);
|
|
107282
|
+
this.polyline.splice(0);
|
|
107283
|
+
this.labels.splice(0);
|
|
107284
|
+
this.tempPoints = undefined;
|
|
107285
|
+
this.tempLabel = undefined;
|
|
107286
|
+
this.tempLine = undefined;
|
|
107287
|
+
this.scene.remove(this.tipsLabel);
|
|
107288
|
+
this.tipsLabel = undefined;
|
|
107289
|
+
this.firstTime = 0;
|
|
107290
|
+
},
|
|
107261
107291
|
remove: function remove(array) {
|
|
107262
107292
|
for (var index = 0; index < array.length; index++) {
|
|
107263
107293
|
var element = array[index];
|
|
@@ -107311,7 +107341,7 @@ var measure_area_MeasureArea = function MeasureArea(renderer, scene, camera, wid
|
|
|
107311
107341
|
this.width = width;
|
|
107312
107342
|
this.height = height;
|
|
107313
107343
|
this.firstTime = 0;
|
|
107314
|
-
|
|
107344
|
+
this.measureName = 'measureObj';
|
|
107315
107345
|
// 创建一个辅助平面来捕获鼠标事件
|
|
107316
107346
|
this.plane = new Plane(new Vector3(0, 0, 1), 0);
|
|
107317
107347
|
};
|
|
@@ -107387,6 +107417,7 @@ measure_area_MeasureArea.prototype = {
|
|
|
107387
107417
|
});
|
|
107388
107418
|
var lineGeometry = new BufferGeometry().setFromPoints([p1, p2]);
|
|
107389
107419
|
var line = new three_core_Line(lineGeometry, lineMaterial);
|
|
107420
|
+
line.name = this.measureName;
|
|
107390
107421
|
line.renderOrder = 999;
|
|
107391
107422
|
line.frustumCulled = false;
|
|
107392
107423
|
return line;
|
|
@@ -107396,6 +107427,7 @@ measure_area_MeasureArea.prototype = {
|
|
|
107396
107427
|
div.className = name;
|
|
107397
107428
|
div.textContent = text;
|
|
107398
107429
|
var divLabel = new CSS2DRenderer_CSS2DObject(div);
|
|
107430
|
+
divLabel.name = this.measureName;
|
|
107399
107431
|
divLabel.position.set(position.x, position.y, position.z);
|
|
107400
107432
|
return divLabel;
|
|
107401
107433
|
},
|
|
@@ -107448,6 +107480,7 @@ measure_area_MeasureArea.prototype = {
|
|
|
107448
107480
|
div.className = 'tips-label';
|
|
107449
107481
|
div.textContent = label;
|
|
107450
107482
|
var tipsLabel = new CSS2DRenderer_CSS2DObject(div);
|
|
107483
|
+
tipsLabel.name = this.measureName;
|
|
107451
107484
|
tipsLabel.position.set(position.x + 0.1, position.y, position.z + 0.05);
|
|
107452
107485
|
return tipsLabel;
|
|
107453
107486
|
},
|
|
@@ -107535,6 +107568,21 @@ measure_area_MeasureArea.prototype = {
|
|
|
107535
107568
|
}
|
|
107536
107569
|
this.renderer.domElement.style.cursor = 'pointer';
|
|
107537
107570
|
},
|
|
107571
|
+
clear: function clear() {
|
|
107572
|
+
this.remove(this.points);
|
|
107573
|
+
this.remove(this.polyline);
|
|
107574
|
+
this.remove(this.labels);
|
|
107575
|
+
this.remove(this.polygons);
|
|
107576
|
+
this.pointArray.splice(0);
|
|
107577
|
+
this.points.splice(0);
|
|
107578
|
+
this.polyline.splice(0);
|
|
107579
|
+
this.labels.splice(0);
|
|
107580
|
+
this.tempPoints = undefined;
|
|
107581
|
+
this.tempLabel = undefined;
|
|
107582
|
+
this.tempLine = undefined;
|
|
107583
|
+
this.scene.remove(this.tipsLabel);
|
|
107584
|
+
this.tipsLabel = undefined;
|
|
107585
|
+
},
|
|
107538
107586
|
remove: function remove(array) {
|
|
107539
107587
|
for (var index = 0; index < array.length; index++) {
|
|
107540
107588
|
var element = array[index];
|
|
@@ -107585,11 +107633,13 @@ measure_area_MeasureArea.prototype = {
|
|
|
107585
107633
|
color: 0xffffff,
|
|
107586
107634
|
transparent: true,
|
|
107587
107635
|
opacity: 0.5,
|
|
107588
|
-
side: DoubleSide
|
|
107636
|
+
side: DoubleSide,
|
|
107637
|
+
name: this.measureName
|
|
107589
107638
|
});
|
|
107590
107639
|
var mesh = new Mesh(geom, material);
|
|
107591
107640
|
mesh.frustumCulled = false;
|
|
107592
|
-
mesh.name = 'polygonMesh';
|
|
107641
|
+
// mesh.name = 'polygonMesh';
|
|
107642
|
+
mesh.name = measure_area_this.measureName;
|
|
107593
107643
|
measure_area_this.polygonMesh = mesh;
|
|
107594
107644
|
measure_area_this.scene.add(mesh);
|
|
107595
107645
|
measure_area_this.polygons.push(mesh);
|
|
@@ -107630,7 +107680,7 @@ var measure_angle_MeasureAngle = function MeasureAngle(renderer, scene, camera,
|
|
|
107630
107680
|
this.firstTime = 0;
|
|
107631
107681
|
// 创建一个辅助平面来捕获鼠标事件
|
|
107632
107682
|
this.plane = new Plane(new Vector3(0, 0, 1), 0);
|
|
107633
|
-
|
|
107683
|
+
this.measureName = 'measureObj';
|
|
107634
107684
|
// this.POINT_MATERIAL = new THREE.PointsMaterial({ color: 0xff5000, size: 1, opacity: 0.6, transparent: true, depthWrite: false, depthTest: false })
|
|
107635
107685
|
// this.LINE_MATERIAL = new THREE.LineBasicMaterial({ color: 0xff0000, linewidth: 3, opacity: 0.8, transparent: true, side: THREE.DoubleSide, depthWrite: false, depthTest: false })
|
|
107636
107686
|
};
|
|
@@ -107704,6 +107754,7 @@ measure_angle_MeasureAngle.prototype = {
|
|
|
107704
107754
|
var geom = new SphereGeometry(config.size || 0.3, 28, 28);
|
|
107705
107755
|
var sphere = new Mesh(geom, mesh);
|
|
107706
107756
|
sphere.frustumCulled = false;
|
|
107757
|
+
sphere.name = this.measureName;
|
|
107707
107758
|
sphere.position.set(pos.x, pos.y, pos.z);
|
|
107708
107759
|
return sphere;
|
|
107709
107760
|
},
|
|
@@ -107720,6 +107771,7 @@ measure_angle_MeasureAngle.prototype = {
|
|
|
107720
107771
|
});
|
|
107721
107772
|
var lineGeometry = new BufferGeometry().setFromPoints([p1, p2]);
|
|
107722
107773
|
var line = new three_core_Line(lineGeometry, lineMaterial);
|
|
107774
|
+
line.name = this.measureName;
|
|
107723
107775
|
line.renderOrder = 999;
|
|
107724
107776
|
line.frustumCulled = false;
|
|
107725
107777
|
return line;
|
|
@@ -107729,6 +107781,7 @@ measure_angle_MeasureAngle.prototype = {
|
|
|
107729
107781
|
div.className = name;
|
|
107730
107782
|
div.textContent = text;
|
|
107731
107783
|
var divLabel = new CSS2DRenderer_CSS2DObject(div);
|
|
107784
|
+
divLabel.name = this.measureName;
|
|
107732
107785
|
divLabel.position.set(position.x, position.y, position.z);
|
|
107733
107786
|
return divLabel;
|
|
107734
107787
|
},
|
|
@@ -107787,6 +107840,7 @@ measure_angle_MeasureAngle.prototype = {
|
|
|
107787
107840
|
div.className = 'tips-label';
|
|
107788
107841
|
div.textContent = label;
|
|
107789
107842
|
var tipsLabel = new CSS2DRenderer_CSS2DObject(div);
|
|
107843
|
+
tipsLabel.name = this.measureName;
|
|
107790
107844
|
tipsLabel.position.set(position.x + 0.1, position.y, position.z + 0.05);
|
|
107791
107845
|
return tipsLabel;
|
|
107792
107846
|
},
|
|
@@ -107871,6 +107925,22 @@ measure_angle_MeasureAngle.prototype = {
|
|
|
107871
107925
|
}
|
|
107872
107926
|
this.renderer.domElement.style.cursor = 'pointer';
|
|
107873
107927
|
},
|
|
107928
|
+
clear: function clear() {
|
|
107929
|
+
this.remove(this.points);
|
|
107930
|
+
this.remove(this.polyline);
|
|
107931
|
+
this.remove(this.labels);
|
|
107932
|
+
this.remove(this.curves);
|
|
107933
|
+
this.pointArray.splice(0);
|
|
107934
|
+
this.points.splice(0);
|
|
107935
|
+
this.polyline.splice(0);
|
|
107936
|
+
this.labels.splice(0);
|
|
107937
|
+
this.curves.splice(0);
|
|
107938
|
+
this.tempPoints = undefined;
|
|
107939
|
+
this.tempLabel = undefined;
|
|
107940
|
+
this.tempLine = undefined;
|
|
107941
|
+
this.scene.remove(this.tipsLabel);
|
|
107942
|
+
this.tipsLabel = undefined;
|
|
107943
|
+
},
|
|
107874
107944
|
remove: function remove(array) {
|
|
107875
107945
|
for (var index = 0; index < array.length; index++) {
|
|
107876
107946
|
var element = array[index];
|
|
@@ -107946,6 +108016,7 @@ var measure_height_MeasureHeight = function MeasureHeight(renderer, scene, camer
|
|
|
107946
108016
|
this.height = height;
|
|
107947
108017
|
this.firstTime = 0;
|
|
107948
108018
|
this.plane = new Plane(new Vector3(0, 0, 1), 0);
|
|
108019
|
+
this.measureName = 'measureObj';
|
|
107949
108020
|
};
|
|
107950
108021
|
measure_height_MeasureHeight.prototype = {
|
|
107951
108022
|
start: function start() {
|
|
@@ -108014,6 +108085,7 @@ measure_height_MeasureHeight.prototype = {
|
|
|
108014
108085
|
});
|
|
108015
108086
|
var lineGeometry = new BufferGeometry().setFromPoints([p1, p2]);
|
|
108016
108087
|
var line = new three_core_Line(lineGeometry, lineMaterial);
|
|
108088
|
+
line.name = this.measureName;
|
|
108017
108089
|
line.renderOrder = 999;
|
|
108018
108090
|
line.frustumCulled = false;
|
|
108019
108091
|
return line;
|
|
@@ -108023,6 +108095,7 @@ measure_height_MeasureHeight.prototype = {
|
|
|
108023
108095
|
div.className = name;
|
|
108024
108096
|
div.textContent = text;
|
|
108025
108097
|
var divLabel = new CSS2DRenderer_CSS2DObject(div);
|
|
108098
|
+
divLabel.name = this.measureName;
|
|
108026
108099
|
divLabel.position.set(position.x, position.y, position.z);
|
|
108027
108100
|
return divLabel;
|
|
108028
108101
|
},
|
|
@@ -108048,6 +108121,7 @@ measure_height_MeasureHeight.prototype = {
|
|
|
108048
108121
|
div.className = 'tips-label';
|
|
108049
108122
|
div.textContent = label;
|
|
108050
108123
|
var tipsLabel = new CSS2DRenderer_CSS2DObject(div);
|
|
108124
|
+
tipsLabel.name = this.measureName;
|
|
108051
108125
|
tipsLabel.position.set(position.x + 0.1, position.y, position.z + 0.05);
|
|
108052
108126
|
return tipsLabel;
|
|
108053
108127
|
},
|
|
@@ -108109,6 +108183,17 @@ measure_height_MeasureHeight.prototype = {
|
|
|
108109
108183
|
this.firstTime = 0;
|
|
108110
108184
|
}
|
|
108111
108185
|
},
|
|
108186
|
+
clear: function clear() {
|
|
108187
|
+
this.remove(this.points);
|
|
108188
|
+
this.remove(this.polyline);
|
|
108189
|
+
this.remove(this.labels);
|
|
108190
|
+
this.pointArray.splice(0);
|
|
108191
|
+
this.points.splice(0);
|
|
108192
|
+
this.polyline.splice(0);
|
|
108193
|
+
this.labels.splice(0);
|
|
108194
|
+
this.scene.remove(this.tipsLabel);
|
|
108195
|
+
this.tipsLabel = undefined;
|
|
108196
|
+
},
|
|
108112
108197
|
remove: function remove(array) {
|
|
108113
108198
|
for (var index = 0; index < array.length; index++) {
|
|
108114
108199
|
var element = array[index];
|
|
@@ -123817,8 +123902,10 @@ var isDebug = false || false === true;
|
|
|
123817
123902
|
case 'color':
|
|
123818
123903
|
targetObj.forEach(function (children) {
|
|
123819
123904
|
if (children.isMesh) {
|
|
123820
|
-
var _children$userData
|
|
123821
|
-
|
|
123905
|
+
var _children$userData;
|
|
123906
|
+
var instanceInfo = (_children$userData = children.userData) === null || _children$userData === void 0 || (_children$userData = _children$userData.instancesMap) === null || _children$userData === void 0 ? void 0 : _children$userData.get(instanceId);
|
|
123907
|
+
if (!instanceInfo) return;
|
|
123908
|
+
var instanceIndex = instanceInfo.instanceIndex;
|
|
123822
123909
|
children.setColorAt(instanceIndex, new _this25.THREE.Color(ele.attr[key]));
|
|
123823
123910
|
children.instanceColor.needsUpdate = true;
|
|
123824
123911
|
if (!_this25.isCurrentVisible(instanceId, children)) {
|
|
@@ -123854,6 +123941,7 @@ var isDebug = false || false === true;
|
|
|
123854
123941
|
}
|
|
123855
123942
|
targetObj.forEach(function (children) {
|
|
123856
123943
|
var instanceInfo = children.userData.instancesMap.get(instanceId);
|
|
123944
|
+
if (!instanceInfo) return;
|
|
123857
123945
|
var instanceIndex = instanceInfo.instanceIndex,
|
|
123858
123946
|
copyMatrix = instanceInfo.copyMatrix;
|
|
123859
123947
|
var nextVisible = requestedVisible && _this25.isSourceVisible(instanceId, children);
|
|
@@ -123876,9 +123964,11 @@ var isDebug = false || false === true;
|
|
|
123876
123964
|
case 'opacity':
|
|
123877
123965
|
targetObj.forEach(function (children) {
|
|
123878
123966
|
if (children.isMesh) {
|
|
123967
|
+
var _children$userData2;
|
|
123879
123968
|
var opacity = children.geometry.attributes.opacity.array;
|
|
123880
|
-
var _children$
|
|
123881
|
-
|
|
123969
|
+
var instanceInfo = (_children$userData2 = children.userData) === null || _children$userData2 === void 0 || (_children$userData2 = _children$userData2.instancesMap) === null || _children$userData2 === void 0 ? void 0 : _children$userData2.get(instanceId);
|
|
123970
|
+
if (!instanceInfo) return;
|
|
123971
|
+
var instanceIndex = instanceInfo.instanceIndex;
|
|
123882
123972
|
opacity[instanceIndex] = ele.attr[key];
|
|
123883
123973
|
children.geometry.attributes.opacity.needsUpdate = true;
|
|
123884
123974
|
}
|
|
@@ -123948,8 +124038,10 @@ var isDebug = false || false === true;
|
|
|
123948
124038
|
var targetObj = this.getObjectByName(instanceId);
|
|
123949
124039
|
targetObj.forEach(function (children) {
|
|
123950
124040
|
if (children.isMesh) {
|
|
123951
|
-
var _children$
|
|
123952
|
-
|
|
124041
|
+
var _children$userData3;
|
|
124042
|
+
var instanceInfo = (_children$userData3 = children.userData) === null || _children$userData3 === void 0 || (_children$userData3 = _children$userData3.instancesMap) === null || _children$userData3 === void 0 ? void 0 : _children$userData3.get(instanceId);
|
|
124043
|
+
if (!instanceInfo) return;
|
|
124044
|
+
var instanceIndex = instanceInfo.instanceIndex;
|
|
123953
124045
|
if (!_this27.isSourceVisible(instanceId, children)) {
|
|
123954
124046
|
_this27.removeOutlineObject(children, instanceIndex);
|
|
123955
124047
|
return;
|
|
@@ -123974,8 +124066,10 @@ var isDebug = false || false === true;
|
|
|
123974
124066
|
var targetObj = this.getObjectByName(instanceId);
|
|
123975
124067
|
targetObj.forEach(function (children) {
|
|
123976
124068
|
if (children.isMesh) {
|
|
123977
|
-
var _children$
|
|
123978
|
-
|
|
124069
|
+
var _children$userData4;
|
|
124070
|
+
var instanceInfo = (_children$userData4 = children.userData) === null || _children$userData4 === void 0 || (_children$userData4 = _children$userData4.instancesMap) === null || _children$userData4 === void 0 ? void 0 : _children$userData4.get(instanceId);
|
|
124071
|
+
if (!instanceInfo) return;
|
|
124072
|
+
var instanceIndex = instanceInfo.instanceIndex;
|
|
123979
124073
|
_this28.removeOutlineObject(children, instanceIndex);
|
|
123980
124074
|
}
|
|
123981
124075
|
});
|
|
@@ -124036,8 +124130,10 @@ var isDebug = false || false === true;
|
|
|
124036
124130
|
case 'nColor':
|
|
124037
124131
|
targetObj.forEach(function (children) {
|
|
124038
124132
|
if (children.isMesh) {
|
|
124039
|
-
var _children$
|
|
124040
|
-
|
|
124133
|
+
var _children$userData5;
|
|
124134
|
+
var instanceInfo = (_children$userData5 = children.userData) === null || _children$userData5 === void 0 || (_children$userData5 = _children$userData5.instancesMap) === null || _children$userData5 === void 0 ? void 0 : _children$userData5.get(instanceId);
|
|
124135
|
+
if (!instanceInfo) return;
|
|
124136
|
+
var instanceIndex = instanceInfo.instanceIndex;
|
|
124041
124137
|
children.setColorAt(instanceIndex, children.material.userData['oColor']);
|
|
124042
124138
|
children.instanceColor.needsUpdate = true;
|
|
124043
124139
|
children.material.userData[key] = children.material.userData['oColor'];
|
|
@@ -124067,8 +124163,10 @@ var isDebug = false || false === true;
|
|
|
124067
124163
|
case 'color':
|
|
124068
124164
|
obj.forEach(function (children) {
|
|
124069
124165
|
if (children.isMesh) {
|
|
124070
|
-
var _children$
|
|
124071
|
-
|
|
124166
|
+
var _children$userData6;
|
|
124167
|
+
var instanceInfo = (_children$userData6 = children.userData) === null || _children$userData6 === void 0 || (_children$userData6 = _children$userData6.instancesMap) === null || _children$userData6 === void 0 ? void 0 : _children$userData6.get(instanceId);
|
|
124168
|
+
if (!instanceInfo) return;
|
|
124169
|
+
var instanceIndex = instanceInfo.instanceIndex;
|
|
124072
124170
|
children.setColorAt(instanceIndex, children.material.userData.nColor);
|
|
124073
124171
|
children.instanceColor.needsUpdate = true;
|
|
124074
124172
|
if (_this31.outlinePass) {
|
|
@@ -124086,6 +124184,7 @@ var isDebug = false || false === true;
|
|
|
124086
124184
|
{
|
|
124087
124185
|
obj.forEach(function (children) {
|
|
124088
124186
|
var instanceInfo = children.userData.instancesMap.get(instanceId);
|
|
124187
|
+
if (!instanceInfo) return;
|
|
124089
124188
|
var instanceIndex = instanceInfo.instanceIndex,
|
|
124090
124189
|
copyMatrix = instanceInfo.copyMatrix;
|
|
124091
124190
|
if (_this31.isSourceVisible(instanceId, children)) {
|
|
@@ -124105,8 +124204,10 @@ var isDebug = false || false === true;
|
|
|
124105
124204
|
case 'opacity':
|
|
124106
124205
|
obj.forEach(function (children) {
|
|
124107
124206
|
if (children.isMesh) {
|
|
124108
|
-
var _children$
|
|
124109
|
-
|
|
124207
|
+
var _children$userData7;
|
|
124208
|
+
var instanceInfo = (_children$userData7 = children.userData) === null || _children$userData7 === void 0 || (_children$userData7 = _children$userData7.instancesMap) === null || _children$userData7 === void 0 ? void 0 : _children$userData7.get(instanceId);
|
|
124209
|
+
if (!instanceInfo) return;
|
|
124210
|
+
var instanceIndex = instanceInfo.instanceIndex;
|
|
124110
124211
|
var opacity = children.geometry.attributes.opacity.array;
|
|
124111
124212
|
opacity[instanceIndex] = children.material.userData.nOpacity;
|
|
124112
124213
|
children.geometry.attributes.opacity.needsUpdate = true;
|
|
@@ -124284,13 +124385,31 @@ var isDebug = false || false === true;
|
|
|
124284
124385
|
passType: 要过滤的类型,默认是group,不返回group类型的实体
|
|
124285
124386
|
*/
|
|
124286
124387
|
getObjectByName: function getObjectByName(name) {
|
|
124388
|
+
var _this34 = this;
|
|
124287
124389
|
var passType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'group';
|
|
124288
124390
|
if (!this.scene) return [];
|
|
124391
|
+
if (Array.isArray(name)) {
|
|
124392
|
+
var result = [];
|
|
124393
|
+
var exist = new Set();
|
|
124394
|
+
name.forEach(function (item) {
|
|
124395
|
+
_this34.getObjectByName(item, passType).forEach(function (obj) {
|
|
124396
|
+
if (!obj || exist.has(obj.uuid)) return;
|
|
124397
|
+
exist.add(obj.uuid);
|
|
124398
|
+
result.push(obj);
|
|
124399
|
+
});
|
|
124400
|
+
});
|
|
124401
|
+
return result;
|
|
124402
|
+
}
|
|
124289
124403
|
var object = [];
|
|
124404
|
+
var added = new Set();
|
|
124290
124405
|
var instancedMeshProps = instanceToInstancedMeshMap.get(name);
|
|
124291
124406
|
this.scene.traverse(function (item) {
|
|
124292
124407
|
var tempName = instancedMeshProps ? instancedMeshProps.drawObjectId : name;
|
|
124293
|
-
|
|
124408
|
+
var itemType = item.type ? item.type.toLowerCase() : '';
|
|
124409
|
+
var isPassType = itemType == passType.toLowerCase();
|
|
124410
|
+
var hasTargetInstance = item.userData && item.userData.instancesMap instanceof Map && item.userData.instancesMap.has(name);
|
|
124411
|
+
if (!isPassType && (item.name == tempName || hasTargetInstance) && !added.has(item.uuid)) {
|
|
124412
|
+
added.add(item.uuid);
|
|
124294
124413
|
object.push(item);
|
|
124295
124414
|
}
|
|
124296
124415
|
});
|
|
@@ -124311,12 +124430,12 @@ var isDebug = false || false === true;
|
|
|
124311
124430
|
return modelState.colorConfig;
|
|
124312
124431
|
},
|
|
124313
124432
|
addBypassCullingModelIds: function addBypassCullingModelIds(modelIds) {
|
|
124314
|
-
var
|
|
124433
|
+
var _this35 = this;
|
|
124315
124434
|
var modelState = this.noObserver ? this.noObserver.modelStateManager : this.modelStateManager;
|
|
124316
124435
|
if (!modelIds) return;
|
|
124317
124436
|
if (Array.isArray(modelIds)) {
|
|
124318
124437
|
modelIds.forEach(function (id) {
|
|
124319
|
-
var modelId =
|
|
124438
|
+
var modelId = _this35.formatModelId(id);
|
|
124320
124439
|
modelState.bypassCullingModelIds.add(modelId);
|
|
124321
124440
|
});
|
|
124322
124441
|
} else {
|
|
@@ -124329,12 +124448,12 @@ var isDebug = false || false === true;
|
|
|
124329
124448
|
return com_graphicsvue_type_script_lang_js_toConsumableArray(modelState.bypassCullingModelIds);
|
|
124330
124449
|
},
|
|
124331
124450
|
removeBypassCullingModelIds: function removeBypassCullingModelIds(modelIds) {
|
|
124332
|
-
var
|
|
124451
|
+
var _this36 = this;
|
|
124333
124452
|
var modelState = this.noObserver ? this.noObserver.modelStateManager : this.modelStateManager;
|
|
124334
124453
|
if (!modelIds) return;
|
|
124335
124454
|
if (Array.isArray(modelIds)) {
|
|
124336
124455
|
modelIds.forEach(function (id) {
|
|
124337
|
-
var modelId =
|
|
124456
|
+
var modelId = _this36.formatModelId(id);
|
|
124338
124457
|
modelState.bypassCullingModelIds.delete(modelId);
|
|
124339
124458
|
});
|
|
124340
124459
|
} else {
|
|
@@ -124348,7 +124467,7 @@ var isDebug = false || false === true;
|
|
|
124348
124467
|
},
|
|
124349
124468
|
// 通过id删除对象
|
|
124350
124469
|
removeObjectById: function removeObjectById(id) {
|
|
124351
|
-
var
|
|
124470
|
+
var _this37 = this;
|
|
124352
124471
|
if (!this.scene) return;
|
|
124353
124472
|
var array = this.getObjectByName(id);
|
|
124354
124473
|
array.forEach(function (item) {
|
|
@@ -124358,13 +124477,13 @@ var isDebug = false || false === true;
|
|
|
124358
124477
|
if (item.isMesh) {
|
|
124359
124478
|
item.clear();
|
|
124360
124479
|
}
|
|
124361
|
-
|
|
124480
|
+
_this37.scene.remove(item);
|
|
124362
124481
|
}
|
|
124363
124482
|
});
|
|
124364
124483
|
},
|
|
124365
124484
|
// 通过名称删除对象
|
|
124366
124485
|
removeObjectByName: function removeObjectByName(name) {
|
|
124367
|
-
var
|
|
124486
|
+
var _this38 = this;
|
|
124368
124487
|
if (!this.scene) return;
|
|
124369
124488
|
var array = this.getObjectByName(name);
|
|
124370
124489
|
array.forEach(function (item) {
|
|
@@ -124373,17 +124492,17 @@ var isDebug = false || false === true;
|
|
|
124373
124492
|
if (item.isMesh) {
|
|
124374
124493
|
item.clear();
|
|
124375
124494
|
}
|
|
124376
|
-
if (
|
|
124495
|
+
if (_this38.scene) _this38.scene.remove(item);
|
|
124377
124496
|
});
|
|
124378
124497
|
},
|
|
124379
124498
|
// 删除场景中所有的实体
|
|
124380
124499
|
removeAll: function removeAll() {
|
|
124381
|
-
var
|
|
124500
|
+
var _this39 = this;
|
|
124382
124501
|
return new Promise(function (resolve) {
|
|
124383
|
-
if (
|
|
124384
|
-
|
|
124385
|
-
|
|
124386
|
-
|
|
124502
|
+
if (_this39.scene) {
|
|
124503
|
+
_this39.removeAllCustomElements();
|
|
124504
|
+
_this39.removeTraverse();
|
|
124505
|
+
_this39.removeModelByDocumentId();
|
|
124387
124506
|
resolve();
|
|
124388
124507
|
} else {
|
|
124389
124508
|
resolve();
|
|
@@ -124391,7 +124510,7 @@ var isDebug = false || false === true;
|
|
|
124391
124510
|
});
|
|
124392
124511
|
},
|
|
124393
124512
|
removeTraverse: function removeTraverse() {
|
|
124394
|
-
var
|
|
124513
|
+
var _this40 = this;
|
|
124395
124514
|
if (!this.modelGroup) return;
|
|
124396
124515
|
var length = this.modelGroup.children.length;
|
|
124397
124516
|
if (length > 0) {
|
|
@@ -124404,7 +124523,7 @@ var isDebug = false || false === true;
|
|
|
124404
124523
|
item.clear();
|
|
124405
124524
|
item.material = null;
|
|
124406
124525
|
item.geometry = null;
|
|
124407
|
-
|
|
124526
|
+
_this40.modelGroup && _this40.modelGroup.remove(item);
|
|
124408
124527
|
item = null;
|
|
124409
124528
|
}
|
|
124410
124529
|
});
|
|
@@ -124421,7 +124540,7 @@ var isDebug = false || false === true;
|
|
|
124421
124540
|
},
|
|
124422
124541
|
// 销毁场景 释放内存
|
|
124423
124542
|
destroyScene: function destroyScene() {
|
|
124424
|
-
var
|
|
124543
|
+
var _this41 = this;
|
|
124425
124544
|
cancelAnimationFrame(this.animateId);
|
|
124426
124545
|
this.disposeTransformControls();
|
|
124427
124546
|
if (this.sceneCommandEventDisposers.length > 0) {
|
|
@@ -124436,11 +124555,11 @@ var isDebug = false || false === true;
|
|
|
124436
124555
|
}
|
|
124437
124556
|
if (this.noObserver && this.noObserver.outlineInstanceProxyMap) {
|
|
124438
124557
|
this.noObserver.outlineInstanceProxyMap.forEach(function (proxy) {
|
|
124439
|
-
if (
|
|
124440
|
-
var idx =
|
|
124441
|
-
if (idx !== -1)
|
|
124558
|
+
if (_this41.outlinePass) {
|
|
124559
|
+
var idx = _this41.outlinePass.selectedObjects.indexOf(proxy);
|
|
124560
|
+
if (idx !== -1) _this41.outlinePass.selectedObjects.splice(idx, 1);
|
|
124442
124561
|
}
|
|
124443
|
-
if (
|
|
124562
|
+
if (_this41.scene) _this41.scene.remove(proxy);
|
|
124444
124563
|
if (proxy && proxy.material && proxy.material.dispose) proxy.material.dispose();
|
|
124445
124564
|
});
|
|
124446
124565
|
this.noObserver.outlineInstanceProxyMap.clear();
|
|
@@ -124552,11 +124671,11 @@ var isDebug = false || false === true;
|
|
|
124552
124671
|
}
|
|
124553
124672
|
*/
|
|
124554
124673
|
drawCurve: function drawCurve(params) {
|
|
124555
|
-
var
|
|
124674
|
+
var _this42 = this;
|
|
124556
124675
|
this.removeObjectByName(params.name);
|
|
124557
124676
|
var route = [];
|
|
124558
124677
|
params.path.forEach(function (element) {
|
|
124559
|
-
route.push(new
|
|
124678
|
+
route.push(new _this42.THREE.Vector3(element.x, element.y, element.z));
|
|
124560
124679
|
});
|
|
124561
124680
|
if (route.length > 1) {
|
|
124562
124681
|
this.curve = new this.THREE.CatmullRomCurve3(route);
|
|
@@ -124580,11 +124699,11 @@ var isDebug = false || false === true;
|
|
|
124580
124699
|
}
|
|
124581
124700
|
*/
|
|
124582
124701
|
drawTextureCurve: function drawTextureCurve(params) {
|
|
124583
|
-
var
|
|
124702
|
+
var _this43 = this;
|
|
124584
124703
|
this.removeObjectByName(params.name);
|
|
124585
124704
|
var route = [];
|
|
124586
124705
|
params.path.forEach(function (element) {
|
|
124587
|
-
route.push(new
|
|
124706
|
+
route.push(new _this43.THREE.Vector3(element.x, element.y, element.z));
|
|
124588
124707
|
});
|
|
124589
124708
|
// 画曲线
|
|
124590
124709
|
if (route.length > 1) {
|
|
@@ -124689,14 +124808,14 @@ var isDebug = false || false === true;
|
|
|
124689
124808
|
* 参数val: 爆炸的值
|
|
124690
124809
|
*/
|
|
124691
124810
|
globalBomb: function globalBomb(val) {
|
|
124692
|
-
var
|
|
124811
|
+
var _this44 = this;
|
|
124693
124812
|
if (this.scene.children.length === 0) return;
|
|
124694
124813
|
for (var i = 0; i < this.scene.children.length; i++) {
|
|
124695
124814
|
console.log('this.scene', this.scene);
|
|
124696
124815
|
this.scene.children[i].traverse(function (item) {
|
|
124697
124816
|
if (!item.isMesh || !item.worldDir) return;
|
|
124698
124817
|
// 爆炸公式
|
|
124699
|
-
|
|
124818
|
+
_this44.computedBomb(item, val);
|
|
124700
124819
|
});
|
|
124701
124820
|
}
|
|
124702
124821
|
// this.timeRender();
|
|
@@ -124738,13 +124857,13 @@ var isDebug = false || false === true;
|
|
|
124738
124857
|
return object.type === 'CSS2DObject' || object.type === 'TransformControlsRoot';
|
|
124739
124858
|
},
|
|
124740
124859
|
getGlobalClippingRoots: function getGlobalClippingRoots() {
|
|
124741
|
-
var
|
|
124860
|
+
var _this45 = this;
|
|
124742
124861
|
if (this.modelGroup && this.modelGroup.children && this.modelGroup.children.length) {
|
|
124743
124862
|
return [this.modelGroup];
|
|
124744
124863
|
}
|
|
124745
124864
|
if (!this.scene || !this.scene.children || this.scene.children.length === 0) return [];
|
|
124746
124865
|
return this.scene.children.filter(function (child) {
|
|
124747
|
-
return !
|
|
124866
|
+
return !_this45.isGlobalClippingExcludedNode(child);
|
|
124748
124867
|
});
|
|
124749
124868
|
},
|
|
124750
124869
|
getGlobalClippingBox: function getGlobalClippingBox() {
|
|
@@ -124932,6 +125051,47 @@ var isDebug = false || false === true;
|
|
|
124932
125051
|
objClipp2 && (objClipp2[4].constant = -d);
|
|
124933
125052
|
});
|
|
124934
125053
|
},
|
|
125054
|
+
getFirstPersonMoveSpeed: function getFirstPersonMoveSpeed(customMoveSpeed) {
|
|
125055
|
+
var defaultMoveSpeed = 800;
|
|
125056
|
+
var optionMoveSpeed = Number.isFinite(customMoveSpeed) && customMoveSpeed > 0 ? customMoveSpeed : defaultMoveSpeed;
|
|
125057
|
+
var minMoveSpeed = Math.max(450, optionMoveSpeed * 0.1);
|
|
125058
|
+
var maxMoveSpeed = Math.max(16000, optionMoveSpeed * 2);
|
|
125059
|
+
var nextMoveSpeed = optionMoveSpeed;
|
|
125060
|
+
if (this.sceneBoundingBox && this.sceneBoundingBox.isBox3 && !this.sceneBoundingBox.isEmpty()) {
|
|
125061
|
+
var size = this.sceneBoundingBox.getSize(new this.THREE.Vector3());
|
|
125062
|
+
var horizontalSpan = Math.max(size.x, size.z);
|
|
125063
|
+
if (Number.isFinite(horizontalSpan) && horizontalSpan > 0) {
|
|
125064
|
+
var moveScale = Math.sqrt(horizontalSpan / 2500);
|
|
125065
|
+
// 使用平方根缩放,避免小场景过快,同时让大场景提升更明显
|
|
125066
|
+
nextMoveSpeed = optionMoveSpeed * Math.min(Math.max(moveScale, 0.1), 2);
|
|
125067
|
+
}
|
|
125068
|
+
}
|
|
125069
|
+
return Math.min(Math.max(nextMoveSpeed, minMoveSpeed), maxMoveSpeed);
|
|
125070
|
+
},
|
|
125071
|
+
getFirstPersonJumpConfig: function getFirstPersonJumpConfig(customJumpSpeed) {
|
|
125072
|
+
var defaultJumpSpeed = 350;
|
|
125073
|
+
var optionJumpSpeed = Number.isFinite(customJumpSpeed) && customJumpSpeed > 0 ? customJumpSpeed : defaultJumpSpeed;
|
|
125074
|
+
var minJumpSpeed = Math.max(220, optionJumpSpeed * 0.45);
|
|
125075
|
+
var maxJumpSpeed = Math.max(1800, optionJumpSpeed * 3.6);
|
|
125076
|
+
var defaultGravity = 980;
|
|
125077
|
+
var nextJumpSpeed = optionJumpSpeed;
|
|
125078
|
+
if (this.sceneBoundingBox && this.sceneBoundingBox.isBox3 && !this.sceneBoundingBox.isEmpty()) {
|
|
125079
|
+
var size = this.sceneBoundingBox.getSize(new this.THREE.Vector3());
|
|
125080
|
+
var verticalSpan = size.y;
|
|
125081
|
+
var horizontalSpan = Math.max(size.x, size.z);
|
|
125082
|
+
var dominantSpan = Math.max(verticalSpan, horizontalSpan * 0.5);
|
|
125083
|
+
if (Number.isFinite(dominantSpan) && dominantSpan > 0) {
|
|
125084
|
+
var jumpScale = Math.sqrt(dominantSpan / 1000);
|
|
125085
|
+
// 跳跃也按场景尺寸平滑缩放,避免小场景过高、大场景过低
|
|
125086
|
+
nextJumpSpeed = optionJumpSpeed * Math.min(Math.max(jumpScale, 0.45), 3.6);
|
|
125087
|
+
}
|
|
125088
|
+
}
|
|
125089
|
+
nextJumpSpeed = Math.min(Math.max(nextJumpSpeed, minJumpSpeed), maxJumpSpeed);
|
|
125090
|
+
return {
|
|
125091
|
+
jumpSpeed: nextJumpSpeed,
|
|
125092
|
+
gravity: Math.max(nextJumpSpeed * 2.2, defaultGravity)
|
|
125093
|
+
};
|
|
125094
|
+
},
|
|
124935
125095
|
// 开启第一视角
|
|
124936
125096
|
startFirstPer: function startFirstPer(options) {
|
|
124937
125097
|
var _ref5 = options || {},
|
|
@@ -124939,8 +125099,10 @@ var isDebug = false || false === true;
|
|
|
124939
125099
|
moveSpeed = _ref5$moveSpeed === void 0 ? 200 : _ref5$moveSpeed,
|
|
124940
125100
|
_ref5$jumpSpeed = _ref5.jumpSpeed,
|
|
124941
125101
|
jumpSpeed = _ref5$jumpSpeed === void 0 ? 200 : _ref5$jumpSpeed;
|
|
124942
|
-
this.removeSpeed = moveSpeed;
|
|
124943
|
-
|
|
125102
|
+
this.removeSpeed = this.getFirstPersonMoveSpeed(moveSpeed);
|
|
125103
|
+
var jumpConfig = this.getFirstPersonJumpConfig(jumpSpeed);
|
|
125104
|
+
this.upSpeed = jumpConfig.jumpSpeed;
|
|
125105
|
+
this.firstPersonGravity = jumpConfig.gravity;
|
|
124944
125106
|
this.clock = new this.THREE.Clock();
|
|
124945
125107
|
this.downRaycaster = new this.THREE.Raycaster(new this.THREE.Vector3(), new this.THREE.Vector3(0, -1, 0), 0, 10);
|
|
124946
125108
|
this.velocity = new this.THREE.Vector3(); //移动速度变量
|
|
@@ -124950,61 +125112,71 @@ var isDebug = false || false === true;
|
|
|
124950
125112
|
},
|
|
124951
125113
|
// 页面是否锁定
|
|
124952
125114
|
initPointerLock: function initPointerLock() {
|
|
124953
|
-
var
|
|
125115
|
+
var _this46 = this;
|
|
124954
125116
|
this.home();
|
|
124955
125117
|
setTimeout(function () {
|
|
124956
125118
|
// 开启第一视角时,将相机与水平面保持水平
|
|
124957
|
-
|
|
124958
|
-
|
|
124959
|
-
|
|
124960
|
-
|
|
124961
|
-
if (!
|
|
124962
|
-
|
|
124963
|
-
if (typeof
|
|
124964
|
-
|
|
125119
|
+
_this46.camera.rotation.x = 0;
|
|
125120
|
+
_this46.camera.rotation.z = 0;
|
|
125121
|
+
_this46.pointControls = new PointerLockControls(_this46.camera, _this46.renderer.domElement);
|
|
125122
|
+
_this46.pointControls.lock();
|
|
125123
|
+
if (!_this46._onFirstPersonChange) {
|
|
125124
|
+
_this46._onFirstPersonChange = function () {
|
|
125125
|
+
if (typeof _this46._cameraChangeObserver === 'function') {
|
|
125126
|
+
_this46._cameraChangeObserver('firstPerson');
|
|
124965
125127
|
}
|
|
124966
125128
|
};
|
|
124967
125129
|
}
|
|
124968
125130
|
try {
|
|
124969
|
-
|
|
125131
|
+
_this46.pointControls.addEventListener('change', _this46._onFirstPersonChange);
|
|
124970
125132
|
} catch (e) {}
|
|
124971
125133
|
// 锁定
|
|
124972
|
-
|
|
124973
|
-
|
|
124974
|
-
|
|
124975
|
-
|
|
124976
|
-
|
|
124977
|
-
|
|
124978
|
-
|
|
124979
|
-
|
|
125134
|
+
_this46.pointControls.addEventListener('lock', function () {
|
|
125135
|
+
_this46.detachTransformControls();
|
|
125136
|
+
if (_this46.cameraControls) {
|
|
125137
|
+
_this46.cameraControls.enabled = false;
|
|
125138
|
+
}
|
|
125139
|
+
window.addEventListener('keydown', _this46.onKeyDown, false);
|
|
125140
|
+
window.addEventListener('keyup', _this46.onKeyUp, false);
|
|
125141
|
+
_this46.unbindScenePointerEvents();
|
|
125142
|
+
if (typeof _this46._cameraChangeObserver === 'function') {
|
|
125143
|
+
_this46._cameraChangeObserver('firstPersonLock');
|
|
124980
125144
|
}
|
|
124981
125145
|
});
|
|
124982
125146
|
// 解锁
|
|
124983
|
-
|
|
124984
|
-
|
|
124985
|
-
|
|
125147
|
+
_this46.pointControls.addEventListener('unlock', function () {
|
|
125148
|
+
_this46.firstPerSign = false;
|
|
125149
|
+
if (_this46.cameraControls) {
|
|
125150
|
+
_this46.cameraControls.enabled = true;
|
|
125151
|
+
}
|
|
124986
125152
|
// 返回初始视角
|
|
124987
|
-
|
|
125153
|
+
if (_this46.cameraControls && _this46.camera && _this46.sceneBoundingBox) {
|
|
125154
|
+
_this46.home();
|
|
125155
|
+
}
|
|
124988
125156
|
try {
|
|
124989
|
-
if (
|
|
124990
|
-
|
|
125157
|
+
if (_this46._onFirstPersonChange && _this46.pointControls) {
|
|
125158
|
+
_this46.pointControls.removeEventListener('change', _this46._onFirstPersonChange);
|
|
124991
125159
|
}
|
|
124992
125160
|
} catch (e) {}
|
|
124993
|
-
if (
|
|
124994
|
-
|
|
125161
|
+
if (_this46.noObserver) {
|
|
125162
|
+
_this46.noObserver._firstPersonLastPos = null;
|
|
124995
125163
|
}
|
|
124996
125164
|
setTimeout(function () {
|
|
124997
|
-
window.removeEventListener('keydown',
|
|
124998
|
-
window.removeEventListener('keyup',
|
|
124999
|
-
|
|
125000
|
-
|
|
125165
|
+
window.removeEventListener('keydown', _this46.onKeyDown);
|
|
125166
|
+
window.removeEventListener('keyup', _this46.onKeyUp);
|
|
125167
|
+
if (_this46.renderer && _this46.renderer.domElement) {
|
|
125168
|
+
_this46.bindScenePointerEvents();
|
|
125169
|
+
}
|
|
125170
|
+
if (_this46.scene) {
|
|
125171
|
+
_this46.ensureTransformSelectionValid();
|
|
125172
|
+
}
|
|
125001
125173
|
// this.timeRender()
|
|
125002
125174
|
}, 0);
|
|
125003
|
-
if (typeof
|
|
125004
|
-
|
|
125175
|
+
if (typeof _this46._cameraChangeObserver === 'function') {
|
|
125176
|
+
_this46._cameraChangeObserver('firstPersonUnlock');
|
|
125005
125177
|
}
|
|
125006
125178
|
});
|
|
125007
|
-
if (
|
|
125179
|
+
if (_this46.scene) _this46.scene.add(_this46.pointControls.object);
|
|
125008
125180
|
}, 10);
|
|
125009
125181
|
},
|
|
125010
125182
|
// 第一视角运动
|
|
@@ -125014,16 +125186,17 @@ var isDebug = false || false === true;
|
|
|
125014
125186
|
var control = this.pointControls.object;
|
|
125015
125187
|
// 获取刷新时间
|
|
125016
125188
|
var delta = this.clock.getDelta();
|
|
125189
|
+
var forwardMoveScale = 0.35;
|
|
125017
125190
|
// velocity每次的速度,为了保证有过渡
|
|
125018
125191
|
this.velocity.x -= this.velocity.x * 10.0 * delta;
|
|
125019
125192
|
this.velocity.z -= this.velocity.z * 10.0 * delta;
|
|
125020
|
-
this.velocity.y -= 9.8 * 100.0 * delta; // 默认下降的速度
|
|
125193
|
+
this.velocity.y -= (this.firstPersonGravity || 9.8 * 100.0) * delta; // 默认下降的速度
|
|
125021
125194
|
// 获取当前按键的方向并获取朝哪个方向移动
|
|
125022
125195
|
this.direction.z = Number(this.moveForward) - Number(this.moveBackward);
|
|
125023
125196
|
this.direction.x = Number(this.moveRight) - Number(this.moveLeft);
|
|
125024
125197
|
// 将法向量的值归一化
|
|
125025
125198
|
this.direction.normalize();
|
|
125026
|
-
if (this.moveForward || this.moveBackward) this.velocity.z -= this.direction.z * this.removeSpeed * delta;
|
|
125199
|
+
if (this.moveForward || this.moveBackward) this.velocity.z -= this.direction.z * this.removeSpeed * forwardMoveScale * delta;
|
|
125027
125200
|
if (this.moveLeft || this.moveRight) this.velocity.x -= this.direction.x * this.removeSpeed * delta;
|
|
125028
125201
|
// }
|
|
125029
125202
|
// 复制相机的位置
|
|
@@ -125038,8 +125211,8 @@ var isDebug = false || false === true;
|
|
|
125038
125211
|
this.canJump = true;
|
|
125039
125212
|
}
|
|
125040
125213
|
// 根据速度值移动控制器
|
|
125041
|
-
this.pointControls.
|
|
125042
|
-
this.pointControls.
|
|
125214
|
+
this.pointControls.moveRight(-this.velocity.x * delta);
|
|
125215
|
+
this.pointControls.moveForward(-this.velocity.z * delta);
|
|
125043
125216
|
control.position.y += this.velocity.y * delta;
|
|
125044
125217
|
// 保证控制器的y轴在平面上
|
|
125045
125218
|
if (control.position.y < 3 - 0 / 10) {
|
|
@@ -125089,9 +125262,9 @@ var isDebug = false || false === true;
|
|
|
125089
125262
|
break;
|
|
125090
125263
|
// 跳跃
|
|
125091
125264
|
case 32:
|
|
125092
|
-
if (this.canJump && spaceUp) this.velocity.y += this.upSpeed;
|
|
125265
|
+
if (this.canJump && this.spaceUp) this.velocity.y += this.upSpeed;
|
|
125093
125266
|
this.canJump = false;
|
|
125094
|
-
spaceUp = false;
|
|
125267
|
+
this.spaceUp = false;
|
|
125095
125268
|
break;
|
|
125096
125269
|
}
|
|
125097
125270
|
},
|
|
@@ -125121,7 +125294,7 @@ var isDebug = false || false === true;
|
|
|
125121
125294
|
break;
|
|
125122
125295
|
// 跳跃
|
|
125123
125296
|
case 32:
|
|
125124
|
-
spaceUp = true;
|
|
125297
|
+
this.spaceUp = true;
|
|
125125
125298
|
break;
|
|
125126
125299
|
}
|
|
125127
125300
|
},
|
|
@@ -125152,8 +125325,9 @@ var isDebug = false || false === true;
|
|
|
125152
125325
|
参数: type: '', distance、area、angle、height, 暂时只提供距离、面积、角度、高度这四种方式
|
|
125153
125326
|
*/
|
|
125154
125327
|
openMeasure: function openMeasure(type) {
|
|
125328
|
+
var isClear = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
125155
125329
|
if (this.threeMeasure) {
|
|
125156
|
-
this.threeMeasure.close(
|
|
125330
|
+
this.threeMeasure.close(isClear);
|
|
125157
125331
|
this.threeMeasure = null;
|
|
125158
125332
|
}
|
|
125159
125333
|
this.measureFlag = true;
|
|
@@ -125190,6 +125364,21 @@ var isDebug = false || false === true;
|
|
|
125190
125364
|
// 移除键盘事件监听器
|
|
125191
125365
|
document.removeEventListener('keydown', this.handleMeasureKeyDown, false);
|
|
125192
125366
|
},
|
|
125367
|
+
// 增加一个清除所有测量结果的方法 使用统一名字的
|
|
125368
|
+
clearMeasureByName: function clearMeasureByName() {
|
|
125369
|
+
var _this47 = this;
|
|
125370
|
+
var list = this.getObjectByName('measureObj');
|
|
125371
|
+
list.forEach(function (item) {
|
|
125372
|
+
if (item.geometry) {
|
|
125373
|
+
item.geometry.dispose();
|
|
125374
|
+
item.material.dispose();
|
|
125375
|
+
}
|
|
125376
|
+
if (_this47.scene) _this47.scene.remove(item);
|
|
125377
|
+
});
|
|
125378
|
+
if (this.threeMeasure) {
|
|
125379
|
+
this.threeMeasure.clear();
|
|
125380
|
+
}
|
|
125381
|
+
},
|
|
125193
125382
|
handleMeasureKeyDown: function handleMeasureKeyDown(event) {
|
|
125194
125383
|
// 检查是否按下了ESC键
|
|
125195
125384
|
var keyParam = {
|
|
@@ -125251,12 +125440,12 @@ var isDebug = false || false === true;
|
|
|
125251
125440
|
参数: object, 目标实体,
|
|
125252
125441
|
*/
|
|
125253
125442
|
isolate: function isolate(object) {
|
|
125254
|
-
var
|
|
125443
|
+
var _this48 = this;
|
|
125255
125444
|
if (!this.scene) return;
|
|
125256
125445
|
// 隔离 将目标实体以外的实体隐藏掉
|
|
125257
125446
|
this.scene.traverse(function (item) {
|
|
125258
125447
|
if (item.isMesh && item.name !== object.name) {
|
|
125259
|
-
var offsetMatrix = new
|
|
125448
|
+
var offsetMatrix = new _this48.THREE.Matrix4().copy(item.userData.copyMatrix).makeTranslation(9999999, 9999999, 9999999);
|
|
125260
125449
|
item.setMatrixAt(item.userData.instanceIndex, offsetMatrix);
|
|
125261
125450
|
item.instanceMatrix.needsUpdate = true;
|
|
125262
125451
|
}
|
|
@@ -125264,7 +125453,7 @@ var isDebug = false || false === true;
|
|
|
125264
125453
|
},
|
|
125265
125454
|
// 还原操作 将修改过的实体进行恢复
|
|
125266
125455
|
restore: function restore() {
|
|
125267
|
-
var
|
|
125456
|
+
var _this49 = this;
|
|
125268
125457
|
if (!this.scene) return;
|
|
125269
125458
|
this.scene.traverse(function (item) {
|
|
125270
125459
|
if (item.isMesh) {
|
|
@@ -125286,20 +125475,20 @@ var isDebug = false || false === true;
|
|
|
125286
125475
|
item.userData.translateMatrixInvert = null;
|
|
125287
125476
|
}
|
|
125288
125477
|
if (item.userData.combineMatrixInvert) {
|
|
125289
|
-
|
|
125478
|
+
_this49.rotateMesh(item, {
|
|
125290
125479
|
x: 0,
|
|
125291
125480
|
y: 0,
|
|
125292
125481
|
z: 0
|
|
125293
125482
|
});
|
|
125294
125483
|
item.userData.combineMatrixInvert = null;
|
|
125295
125484
|
}
|
|
125296
|
-
var copyMatrix =
|
|
125485
|
+
var copyMatrix = _this49.getInstanceCopyMatrix(item, instanceId);
|
|
125297
125486
|
if (!copyMatrix) return;
|
|
125298
|
-
var sourceHidden =
|
|
125299
|
-
var offsetMatrix = new
|
|
125487
|
+
var sourceHidden = _this49.isSourceHiddenInstance(item, instanceId);
|
|
125488
|
+
var offsetMatrix = new _this49.THREE.Matrix4().copy(copyMatrix);
|
|
125300
125489
|
if (sourceHidden) {
|
|
125301
125490
|
offsetMatrix.makeTranslation(9999999, 9999999, 9999999);
|
|
125302
|
-
|
|
125491
|
+
_this49.removeOutlineInstanceProxy(item, item.userData.instanceIndex);
|
|
125303
125492
|
}
|
|
125304
125493
|
item.setMatrixAt(item.userData.instanceIndex, offsetMatrix);
|
|
125305
125494
|
item.instanceMatrix.needsUpdate = true;
|
|
@@ -125308,7 +125497,7 @@ var isDebug = false || false === true;
|
|
|
125308
125497
|
},
|
|
125309
125498
|
// 添加自定义模型, 暂时只支持glb、gltf格式
|
|
125310
125499
|
addCustomModel: function addCustomModel(name, position, url) {
|
|
125311
|
-
var
|
|
125500
|
+
var _this50 = this;
|
|
125312
125501
|
var scale = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
125313
125502
|
var immediately = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
125314
125503
|
var callback = arguments.length > 5 ? arguments[5] : undefined;
|
|
@@ -125319,41 +125508,41 @@ var isDebug = false || false === true;
|
|
|
125319
125508
|
locationModel.scale.set(scale, scale, scale);
|
|
125320
125509
|
locationModel.updateMatrixWorld();
|
|
125321
125510
|
if (immediately) {
|
|
125322
|
-
|
|
125511
|
+
_this50.cameraControls.fitToSphere(gltf.this.scene, true);
|
|
125323
125512
|
}
|
|
125324
125513
|
// 动画混合器
|
|
125325
125514
|
// 不参与裁剪
|
|
125326
125515
|
locationModel.userData.cull = false;
|
|
125327
125516
|
locationModel.name = name;
|
|
125328
|
-
if (
|
|
125329
|
-
locationModel.position.copy(new
|
|
125517
|
+
if (_this50.scene) _this50.scene.add(locationModel);
|
|
125518
|
+
locationModel.position.copy(new _this50.THREE.Vector3(position.x, position.y, position.z));
|
|
125330
125519
|
if (gltf.animations.length > 0) {
|
|
125331
|
-
var actionMixer = new
|
|
125520
|
+
var actionMixer = new _this50.THREE.AnimationMixer(gltf.this.scene);
|
|
125332
125521
|
var walkActive = actionMixer.clipAction(gltf.animations[0]);
|
|
125333
125522
|
walkActive.play();
|
|
125334
|
-
|
|
125335
|
-
|
|
125523
|
+
_this50.modelActive.push(walkActive);
|
|
125524
|
+
_this50.modelActions.push(actionMixer);
|
|
125336
125525
|
}
|
|
125337
125526
|
callback && callback();
|
|
125338
125527
|
});
|
|
125339
125528
|
},
|
|
125340
125529
|
// 删除添加的自定义模型
|
|
125341
125530
|
removeCustomModel: function removeCustomModel(name) {
|
|
125342
|
-
var
|
|
125531
|
+
var _this51 = this;
|
|
125343
125532
|
var obj = this.getObjectByName(name);
|
|
125344
125533
|
obj.forEach(function (item, index) {
|
|
125345
125534
|
if (item.animations > 0) {
|
|
125346
125535
|
item.removeFromParent();
|
|
125347
|
-
|
|
125348
|
-
|
|
125536
|
+
_this51.modelActions[index].uncacheRoot(item);
|
|
125537
|
+
_this51.modelActions[index].uncacheRoot(_this51.modelActive[index]);
|
|
125349
125538
|
}
|
|
125350
125539
|
item.traverse(function (child) {
|
|
125351
|
-
if (child instanceof
|
|
125540
|
+
if (child instanceof _this51.THREE.Mesh) {
|
|
125352
125541
|
child.geometry.dispose();
|
|
125353
125542
|
child.material.dispose();
|
|
125354
125543
|
}
|
|
125355
125544
|
});
|
|
125356
|
-
if (
|
|
125545
|
+
if (_this51.scene) _this51.scene.remove(item);
|
|
125357
125546
|
});
|
|
125358
125547
|
this.modelActions.splice(0);
|
|
125359
125548
|
this.modelActive.splice(0);
|
|
@@ -125415,7 +125604,7 @@ var isDebug = false || false === true;
|
|
|
125415
125604
|
return size;
|
|
125416
125605
|
},
|
|
125417
125606
|
animate: function animate() {
|
|
125418
|
-
var
|
|
125607
|
+
var _this52 = this;
|
|
125419
125608
|
if (isDebug) {
|
|
125420
125609
|
this.stats && this.stats.begin(); // 开始帧率统计
|
|
125421
125610
|
}
|
|
@@ -125429,7 +125618,7 @@ var isDebug = false || false === true;
|
|
|
125429
125618
|
if (this.timeStamp > singleFrameTime) {
|
|
125430
125619
|
if (this.modelActions.length > 0) {
|
|
125431
125620
|
this.modelActions.forEach(function (item) {
|
|
125432
|
-
item.update(
|
|
125621
|
+
item.update(_this52.timeStamp);
|
|
125433
125622
|
});
|
|
125434
125623
|
}
|
|
125435
125624
|
this.cameraControls.enabled && this.cameraControls.update(this.timeStamp);
|
|
@@ -125784,18 +125973,18 @@ var isDebug = false || false === true;
|
|
|
125784
125973
|
* 加载下一批数据
|
|
125785
125974
|
*/
|
|
125786
125975
|
loadNextBatch: function loadNextBatch() {
|
|
125787
|
-
var
|
|
125976
|
+
var _this53 = this;
|
|
125788
125977
|
return com_graphicsvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/com_graphicsvue_type_script_lang_js_regenerator().m(function _callee1() {
|
|
125789
125978
|
var loadingState, batch, _t3;
|
|
125790
125979
|
return com_graphicsvue_type_script_lang_js_regenerator().w(function (_context1) {
|
|
125791
125980
|
while (1) switch (_context1.p = _context1.n) {
|
|
125792
125981
|
case 0:
|
|
125793
|
-
loadingState =
|
|
125982
|
+
loadingState = _this53.noObserver ? _this53.noObserver.batchLoadingState : _this53.batchLoadingState;
|
|
125794
125983
|
if (!(!loadingState.isLoading || loadingState.currentBatch >= loadingState.pendingData.length)) {
|
|
125795
125984
|
_context1.n = 1;
|
|
125796
125985
|
break;
|
|
125797
125986
|
}
|
|
125798
|
-
|
|
125987
|
+
_this53.completeBatchLoading();
|
|
125799
125988
|
return _context1.a(2);
|
|
125800
125989
|
case 1:
|
|
125801
125990
|
if (!loadingState.isPaused) {
|
|
@@ -125804,7 +125993,7 @@ var isDebug = false || false === true;
|
|
|
125804
125993
|
}
|
|
125805
125994
|
// 如果暂停,延迟一段时间后再次检查
|
|
125806
125995
|
loadingState.animationFrameId = requestAnimationFrame(function () {
|
|
125807
|
-
|
|
125996
|
+
_this53.loadNextBatch();
|
|
125808
125997
|
});
|
|
125809
125998
|
return _context1.a(2);
|
|
125810
125999
|
case 2:
|
|
@@ -125814,7 +126003,7 @@ var isDebug = false || false === true;
|
|
|
125814
126003
|
}
|
|
125815
126004
|
// 如果正在交互,延迟一段时间后再次检查
|
|
125816
126005
|
loadingState.animationFrameId = requestAnimationFrame(function () {
|
|
125817
|
-
|
|
126006
|
+
_this53.loadNextBatch();
|
|
125818
126007
|
});
|
|
125819
126008
|
return _context1.a(2);
|
|
125820
126009
|
case 3:
|
|
@@ -125822,15 +126011,15 @@ var isDebug = false || false === true;
|
|
|
125822
126011
|
_context1.p = 4;
|
|
125823
126012
|
console.log('加载批次:', loadingState.currentBatch);
|
|
125824
126013
|
_context1.n = 5;
|
|
125825
|
-
return
|
|
126014
|
+
return _this53.processWithMainThread(batch);
|
|
125826
126015
|
case 5:
|
|
125827
126016
|
// 更新进度
|
|
125828
126017
|
loadingState.loadedCount += batch.instances.length;
|
|
125829
126018
|
loadingState.currentBatch++;
|
|
125830
126019
|
|
|
125831
126020
|
// 同步到响应式状态
|
|
125832
|
-
|
|
125833
|
-
|
|
126021
|
+
_this53.batchLoadingState.loadedCount = loadingState.loadedCount;
|
|
126022
|
+
_this53.batchLoadingState.currentBatch = loadingState.currentBatch;
|
|
125834
126023
|
|
|
125835
126024
|
// 调用进度回调
|
|
125836
126025
|
if (loadingState.onProgress) {
|
|
@@ -125844,7 +126033,7 @@ var isDebug = false || false === true;
|
|
|
125844
126033
|
|
|
125845
126034
|
// 使用 requestAnimationFrame 在下一帧继续加载
|
|
125846
126035
|
loadingState.animationFrameId = requestAnimationFrame(function () {
|
|
125847
|
-
|
|
126036
|
+
_this53.loadNextBatch();
|
|
125848
126037
|
});
|
|
125849
126038
|
_context1.n = 7;
|
|
125850
126039
|
break;
|
|
@@ -125855,7 +126044,7 @@ var isDebug = false || false === true;
|
|
|
125855
126044
|
|
|
125856
126045
|
// 继续下一批次
|
|
125857
126046
|
loadingState.animationFrameId = requestAnimationFrame(function () {
|
|
125858
|
-
|
|
126047
|
+
_this53.loadNextBatch();
|
|
125859
126048
|
});
|
|
125860
126049
|
case 7:
|
|
125861
126050
|
return _context1.a(2);
|
|
@@ -125867,20 +126056,20 @@ var isDebug = false || false === true;
|
|
|
125867
126056
|
* 使用主线程处理批次数据
|
|
125868
126057
|
*/
|
|
125869
126058
|
processWithMainThread: function processWithMainThread(batch) {
|
|
125870
|
-
var
|
|
126059
|
+
var _this54 = this;
|
|
125871
126060
|
return com_graphicsvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/com_graphicsvue_type_script_lang_js_regenerator().m(function _callee10() {
|
|
125872
126061
|
var loadingState;
|
|
125873
126062
|
return com_graphicsvue_type_script_lang_js_regenerator().w(function (_context10) {
|
|
125874
126063
|
while (1) switch (_context10.n) {
|
|
125875
126064
|
case 0:
|
|
125876
|
-
loadingState =
|
|
126065
|
+
loadingState = _this54.noObserver ? _this54.noObserver.batchLoadingState : _this54.batchLoadingState;
|
|
125877
126066
|
loadingState.options.batchSize = loadingState.batchSize;
|
|
125878
126067
|
loadingState.options.resetState = loadingState.currentBatch === 0;
|
|
125879
126068
|
// 使用原始的handleInstancedMeshModel方法
|
|
125880
126069
|
|
|
125881
126070
|
isDebug && performance.mark('handleInstancedMeshModel-start');
|
|
125882
126071
|
_context10.n = 1;
|
|
125883
|
-
return handleInstancedMeshModel(
|
|
126072
|
+
return handleInstancedMeshModel(_this54.modelGroup, batch.instances, batch.drawObjs, '', _this54.scene, loadingState.color, loadingState.meshNameConfig, '', loadingState.options);
|
|
125884
126073
|
case 1:
|
|
125885
126074
|
isDebug && performance.mark('handleInstancedMeshModel-end');
|
|
125886
126075
|
isDebug && performance.measure('handleInstancedMeshModel', 'handleInstancedMeshModel-start', 'handleInstancedMeshModel-end');
|
|
@@ -125894,7 +126083,7 @@ var isDebug = false || false === true;
|
|
|
125894
126083
|
* 完成批量加载
|
|
125895
126084
|
*/
|
|
125896
126085
|
completeBatchLoading: function completeBatchLoading() {
|
|
125897
|
-
var
|
|
126086
|
+
var _this55 = this;
|
|
125898
126087
|
var loadingState = this.noObserver ? this.noObserver.batchLoadingState : this.batchLoadingState;
|
|
125899
126088
|
if (!loadingState.isLoading) return;
|
|
125900
126089
|
|
|
@@ -125923,17 +126112,17 @@ var isDebug = false || false === true;
|
|
|
125923
126112
|
this.modelGroup.traverse(function (child) {
|
|
125924
126113
|
if (child.isMesh && !child.userData.batchInitDone) {
|
|
125925
126114
|
markRendered(child);
|
|
125926
|
-
var json =
|
|
125927
|
-
var meshBox3 = new
|
|
126115
|
+
var json = _this55.getMeshCenterAndVolume(child);
|
|
126116
|
+
var meshBox3 = new _this55.THREE.Box3();
|
|
125928
126117
|
meshBox3.setFromObject(child);
|
|
125929
|
-
var worldPs = new
|
|
126118
|
+
var worldPs = new _this55.THREE.Vector3().addVectors(meshBox3.max, meshBox3.min).multiplyScalar(0.5);
|
|
125930
126119
|
if (isNaN(worldPs.x)) return;
|
|
125931
|
-
child.worldDir = new
|
|
126120
|
+
child.worldDir = new _this55.THREE.Vector3().subVectors(worldPs, modelWorldPs).normalize();
|
|
125932
126121
|
child.userData.center = json.center;
|
|
125933
126122
|
child.userData.worldPs = worldPs;
|
|
125934
|
-
child.userData.oldPs = child.getWorldPosition(new
|
|
126123
|
+
child.userData.oldPs = child.getWorldPosition(new _this55.THREE.Vector3());
|
|
125935
126124
|
child.userData.box = json.box;
|
|
125936
|
-
child.userData.position = new
|
|
126125
|
+
child.userData.position = new _this55.THREE.Vector3().copy(child.position);
|
|
125937
126126
|
child.userData.translate = {
|
|
125938
126127
|
x: 0,
|
|
125939
126128
|
y: 0,
|
|
@@ -126025,7 +126214,7 @@ var isDebug = false || false === true;
|
|
|
126025
126214
|
* @param {Object} options - 配置项 { immediate: boolean }
|
|
126026
126215
|
*/
|
|
126027
126216
|
setSystemInterruption: function setSystemInterruption(active) {
|
|
126028
|
-
var
|
|
126217
|
+
var _this56 = this;
|
|
126029
126218
|
var reason = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'user_interaction';
|
|
126030
126219
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
126031
126220
|
var loadingState = this.noObserver ? this.noObserver.batchLoadingState : this.batchLoadingState;
|
|
@@ -126091,7 +126280,7 @@ var isDebug = false || false === true;
|
|
|
126091
126280
|
if (loadingState.interactionState.wheelTimeout) return;
|
|
126092
126281
|
|
|
126093
126282
|
// 2. 如果是 wheel 结束,但 this.userInteracting (this.camera) 还在进行,则不恢复
|
|
126094
|
-
if (reason === 'wheel' &&
|
|
126283
|
+
if (reason === 'wheel' && _this56.userInteracting) return;
|
|
126095
126284
|
|
|
126096
126285
|
// 3. 检查是否有强制跳过标记 (可能由其他逻辑触发)
|
|
126097
126286
|
// if (this.forceSkipRendering && reason !== 'user_interaction') return; // 视情况而定
|
|
@@ -126102,15 +126291,15 @@ var isDebug = false || false === true;
|
|
|
126102
126291
|
loadingState.pauseReason = '';
|
|
126103
126292
|
loadingState.interactionState.isInteracting = false;
|
|
126104
126293
|
loadingState.interactionState.interactionType = '';
|
|
126105
|
-
|
|
126294
|
+
_this56.forceSkipRendering = false;
|
|
126106
126295
|
|
|
126107
126296
|
// 恢复本地批量加载 (如果未完成)
|
|
126108
126297
|
if (loadingState.isLoading && loadingState.currentBatch < loadingState.totalBatches) {
|
|
126109
|
-
|
|
126298
|
+
_this56.loadNextBatch();
|
|
126110
126299
|
}
|
|
126111
126300
|
|
|
126112
126301
|
// 恢复 StreamLoader
|
|
126113
|
-
var streamLoader =
|
|
126302
|
+
var streamLoader = _this56.noObserver.streamLoader;
|
|
126114
126303
|
if (streamLoader && typeof streamLoader.handleControlEnd === 'function') {
|
|
126115
126304
|
// StreamLoader 内部通常有防抖或延迟,这里直接通知结束即可
|
|
126116
126305
|
streamLoader.handleControlEnd();
|
|
@@ -126163,7 +126352,7 @@ var isDebug = false || false === true;
|
|
|
126163
126352
|
* 滚轮交互结束的定时检测
|
|
126164
126353
|
*/
|
|
126165
126354
|
scheduleWheelInteractionEnd: function scheduleWheelInteractionEnd(event) {
|
|
126166
|
-
var
|
|
126355
|
+
var _this57 = this;
|
|
126167
126356
|
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
|
|
126168
126357
|
var loadingState = this.noObserver ? this.noObserver.batchLoadingState : this.batchLoadingState;
|
|
126169
126358
|
if (loadingState.interactionState.wheelTimeout) {
|
|
@@ -126171,8 +126360,8 @@ var isDebug = false || false === true;
|
|
|
126171
126360
|
loadingState.interactionState.wheelTimeout = null;
|
|
126172
126361
|
}
|
|
126173
126362
|
loadingState.interactionState.wheelTimeout = setTimeout(function () {
|
|
126174
|
-
|
|
126175
|
-
|
|
126363
|
+
_this57.$emit('wheelEnd', event);
|
|
126364
|
+
_this57.endInteraction('wheel', event, {
|
|
126176
126365
|
immediateResume: false
|
|
126177
126366
|
});
|
|
126178
126367
|
loadingState.interactionState.wheelTimeout = null;
|
|
@@ -126225,11 +126414,11 @@ var isDebug = false || false === true;
|
|
|
126225
126414
|
});
|
|
126226
126415
|
// CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=script&lang=js
|
|
126227
126416
|
/* harmony default export */ var components_com_graphicsvue_type_script_lang_js = (com_graphicsvue_type_script_lang_js);
|
|
126228
|
-
// EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=0&id=
|
|
126229
|
-
var
|
|
126417
|
+
// EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=0&id=bfae141c&prod&lang=scss&scoped=true
|
|
126418
|
+
var com_graphicsvue_type_style_index_0_id_bfae141c_prod_lang_scss_scoped_true = __webpack_require__("0eb9");
|
|
126230
126419
|
|
|
126231
|
-
// EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=1&id=
|
|
126232
|
-
var
|
|
126420
|
+
// EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=1&id=bfae141c&prod&lang=css
|
|
126421
|
+
var com_graphicsvue_type_style_index_1_id_bfae141c_prod_lang_css = __webpack_require__("e884");
|
|
126233
126422
|
|
|
126234
126423
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
126235
126424
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -126341,17 +126530,17 @@ function normalizeComponent(
|
|
|
126341
126530
|
|
|
126342
126531
|
var component = normalizeComponent(
|
|
126343
126532
|
components_com_graphicsvue_type_script_lang_js,
|
|
126344
|
-
|
|
126533
|
+
com_graphicsvue_type_template_id_bfae141c_scoped_true_render,
|
|
126345
126534
|
staticRenderFns,
|
|
126346
126535
|
false,
|
|
126347
126536
|
null,
|
|
126348
|
-
"
|
|
126537
|
+
"bfae141c",
|
|
126349
126538
|
null
|
|
126350
126539
|
|
|
126351
126540
|
)
|
|
126352
126541
|
|
|
126353
126542
|
/* harmony default export */ var com_graphics = (component.exports);
|
|
126354
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
126543
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5f0ec2c6-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=21bcf2d9&scoped=true
|
|
126355
126544
|
var com_flcanvasvue_type_template_id_21bcf2d9_scoped_true_render = function render() {
|
|
126356
126545
|
var _vm = this,
|
|
126357
126546
|
_c = _vm._self._c;
|
|
@@ -130271,7 +130460,7 @@ var com_flcanvas_component = normalizeComponent(
|
|
|
130271
130460
|
)
|
|
130272
130461
|
|
|
130273
130462
|
/* harmony default export */ var com_flcanvas = (com_flcanvas_component.exports);
|
|
130274
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
130463
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5f0ec2c6-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
|
|
130275
130464
|
var per_controlvue_type_template_id_f547d5c6_scoped_true_render = function render() {
|
|
130276
130465
|
var _vm = this,
|
|
130277
130466
|
_c = _vm._self._c;
|
|
@@ -130379,7 +130568,7 @@ var per_control_component = normalizeComponent(
|
|
|
130379
130568
|
)
|
|
130380
130569
|
|
|
130381
130570
|
/* harmony default export */ var per_control = (per_control_component.exports);
|
|
130382
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
130571
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5f0ec2c6-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
|
|
130383
130572
|
var pidvue_type_template_id_2572c0e2_scoped_true_render = function render() {
|
|
130384
130573
|
var _vm = this,
|
|
130385
130574
|
_c = _vm._self._c;
|
|
@@ -130426,7 +130615,7 @@ var browserify_default = /*#__PURE__*/__webpack_require__.n(browserify);
|
|
|
130426
130615
|
var html2canvas = __webpack_require__("c0e9");
|
|
130427
130616
|
var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
130428
130617
|
|
|
130429
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
130618
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5f0ec2c6-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
|
|
130430
130619
|
var ann_toolvue_type_template_id_4b17bce0_scoped_true_render = function render() {
|
|
130431
130620
|
var _vm = this,
|
|
130432
130621
|
_c = _vm._self._c;
|
|
@@ -132146,17 +132335,6 @@ exports.Konva = _CoreInternals_1.Konva.Util._assign(_CoreInternals_1.Konva, {
|
|
|
132146
132335
|
|
|
132147
132336
|
exports.f = Object.getOwnPropertySymbols;
|
|
132148
132337
|
|
|
132149
|
-
/***/ }),
|
|
132150
|
-
|
|
132151
|
-
/***/ "ff78":
|
|
132152
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
132153
|
-
|
|
132154
|
-
"use strict";
|
|
132155
|
-
/* 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_a7768a4e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8292");
|
|
132156
|
-
/* 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_a7768a4e_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_a7768a4e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
132157
|
-
/* unused harmony reexport * */
|
|
132158
|
-
|
|
132159
|
-
|
|
132160
132338
|
/***/ })
|
|
132161
132339
|
|
|
132162
132340
|
/******/ });
|