fl-web-component 2.1.1-beta.4 → 2.1.1-beta.6
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/dist/fl-web-component.common.js +314 -161
- 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-flcanvas/components/entityFormatting.js +6 -8
- package/packages/components/com-flcanvas/index.vue +61 -63
- package/packages/components/com-graphics/index.vue +239 -56
- package/src/utils/instance-parser.js +16 -16
|
@@ -202,13 +202,6 @@ module.exports =
|
|
|
202
202
|
/************************************************************************/
|
|
203
203
|
/******/ ({
|
|
204
204
|
|
|
205
|
-
/***/ "0125":
|
|
206
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
207
|
-
|
|
208
|
-
// extracted by mini-css-extract-plugin
|
|
209
|
-
|
|
210
|
-
/***/ }),
|
|
211
|
-
|
|
212
205
|
/***/ "03d6":
|
|
213
206
|
/***/ (function(module, exports, __webpack_require__) {
|
|
214
207
|
|
|
@@ -881,6 +874,13 @@ module.exports = function (it) {
|
|
|
881
874
|
|
|
882
875
|
/***/ }),
|
|
883
876
|
|
|
877
|
+
/***/ "0a00":
|
|
878
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
879
|
+
|
|
880
|
+
// extracted by mini-css-extract-plugin
|
|
881
|
+
|
|
882
|
+
/***/ }),
|
|
883
|
+
|
|
884
884
|
/***/ "0ae2":
|
|
885
885
|
/***/ (function(module, exports, __webpack_require__) {
|
|
886
886
|
|
|
@@ -2414,6 +2414,17 @@ var Posterize = function Posterize(imageData) {
|
|
|
2414
2414
|
exports.Posterize = Posterize;
|
|
2415
2415
|
Factory_1.Factory.addGetterSetter(Node_1.Node, 'levels', 0.5, (0, Validators_1.getNumberValidator)(), Factory_1.Factory.afterSetFilter);
|
|
2416
2416
|
|
|
2417
|
+
/***/ }),
|
|
2418
|
+
|
|
2419
|
+
/***/ "2098":
|
|
2420
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2421
|
+
|
|
2422
|
+
"use strict";
|
|
2423
|
+
/* 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_7f8842df_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3231");
|
|
2424
|
+
/* 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_7f8842df_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_7f8842df_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
2425
|
+
/* unused harmony reexport * */
|
|
2426
|
+
|
|
2427
|
+
|
|
2417
2428
|
/***/ }),
|
|
2418
2429
|
|
|
2419
2430
|
/***/ "21d3":
|
|
@@ -4053,6 +4064,17 @@ exports.default = {
|
|
|
4053
4064
|
|
|
4054
4065
|
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA/hJREFUeF7tmU1ME0EUgN8Q5UQTrnKCCxoTZEr4MZ64ElHgQhrEiAm/J0HFmwp6U6J4EoSEGAXREyBni9xsCV1KYkQP9gRXkuJFsE+nZZdtu+12Zqs72NmEkGZ+3nvfvPfmzQyBAv9IgdsPCoDygAInoEKgwB1AJUEVAioECpyACgEZHYDSxtIY/LhGikgjIFAEKGd6EoAIENAwBgthLfAyH7pL5wFVtL6VEJwBIKU2BkYAYcQpiLwBoLSOAgD7E/5iRUAByQ2uCUhsNLy+NsI1xtTZMQBKz5cjwRkEbBRVwvE4guPh9eCQyDyOADDjY+RXKAd35dJtoK/nj3cDTExOWY6zakeEtk0tsMAlKJFXxL9z3vrvcJigyspOwZUOH3g8JdwT3rv/0BjDjOvv647/fj45nQYhczvuFuF+haZpuzwKCAOg9AKNkYMQE8aMf/fmFXg8Hh7Z8b6LS8twb8QEoLcb+vt7jHnMEMzGxwFNTMHEi+kjmYiDYS34jEcJYQBVtK6LEDLDhA3fHoLODh+PXKPv4M1h8K+sJo0dsIDAFNU9w9J4AECEhU0t0MajSF4APBi9Cy2XmnnkGn3bfZ2w9fVb2thUCOYOaSt/1BgJhwIVPIq4DqC6piGjvlYQshgfnyccCnDZxNXZrKk5BJx4QFYApoSoy7ZKjGa9jh2ApoutsL2zkx4CFsbbQ0AtHAp6j1UIWCbBFOOZ28eTYIbdQTf4WCbB13Pz8HjsqbFo2bY6q90hqVhC6OI9G7ieA6LRKDQ1twH7zz6zkVYJL0s79w7A5LkOgCnh93+EwVt3jrygtztRCpuLHFNgMwhp7QKrLw0ApsijsScwO/eWJ38ZfRFj45va2r89DOVrG0wqcCxq/5yICK7+X/UAVuNn+1ouW1eOS0vL8UOQ1daYcT4ZAWQrcJghG+ufsgJiID6srML2zjZsbSVKZXboOl1ZCbW1NfHfxu7xPwKwc/2kU6SMABbf24SA4OFJByM9ALsVdNquAJgvUmQMAacrbDdeeYDsHmBXB9itcGp7at0gvQfY1QG8AFLrBgVA+hCwqQN4PSD10lV6D+A1kLe/AiBTCDh5GOFdeb1/0lWaG4VQvp7GRACw67N231XjyHyA6P2sBTWRuYSvxJiwKm+Dnxw+ixuPoyX8j6M8ikf39mB2dt58XyB0F6jLdATgDKXlxeRk3p/HcweCuz9x3/tF0yK5j0nu6QgAmyoBodivP5OLKsI7DhFX9mH/uhPjmUzHAHTFz9I6egJINa8hIv0PADdEYz5VXt4AiBgiwxgFQIZVcFMH5QFu0pdBtvIAGVbBTR2UB7hJXwbZygNkWAU3dVAe4CZ9GWQXvAf8Bn5sSl++Dyn0AAAAAElFTkSuQmCC"
|
|
4055
4066
|
|
|
4067
|
+
/***/ }),
|
|
4068
|
+
|
|
4069
|
+
/***/ "2f91":
|
|
4070
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4071
|
+
|
|
4072
|
+
"use strict";
|
|
4073
|
+
/* 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_cb260cfc_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fcd8");
|
|
4074
|
+
/* 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_cb260cfc_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_cb260cfc_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
4075
|
+
/* unused harmony reexport * */
|
|
4076
|
+
|
|
4077
|
+
|
|
4056
4078
|
/***/ }),
|
|
4057
4079
|
|
|
4058
4080
|
/***/ "2f9a":
|
|
@@ -12939,6 +12961,13 @@ function lib_esm_decodeApng(data, options) {
|
|
|
12939
12961
|
|
|
12940
12962
|
|
|
12941
12963
|
|
|
12964
|
+
/***/ }),
|
|
12965
|
+
|
|
12966
|
+
/***/ "3231":
|
|
12967
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
12968
|
+
|
|
12969
|
+
// extracted by mini-css-extract-plugin
|
|
12970
|
+
|
|
12942
12971
|
/***/ }),
|
|
12943
12972
|
|
|
12944
12973
|
/***/ "3397":
|
|
@@ -13528,17 +13557,6 @@ deepmerge.all = function deepmergeAll(array, optionsArgument) {
|
|
|
13528
13557
|
var deepmerge_1 = deepmerge;
|
|
13529
13558
|
module.exports = deepmerge_1;
|
|
13530
13559
|
|
|
13531
|
-
/***/ }),
|
|
13532
|
-
|
|
13533
|
-
/***/ "3e93":
|
|
13534
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13535
|
-
|
|
13536
|
-
"use strict";
|
|
13537
|
-
/* 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_3517cf88_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0125");
|
|
13538
|
-
/* 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_3517cf88_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_3517cf88_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
13539
|
-
/* unused harmony reexport * */
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
13560
|
/***/ }),
|
|
13543
13561
|
|
|
13544
13562
|
/***/ "3f6b":
|
|
@@ -14036,17 +14054,6 @@ Factory_1.Factory.addGetterSetter(Node_1.Node, 'hue', 0, (0, Validators_1.getNum
|
|
|
14036
14054
|
Factory_1.Factory.addGetterSetter(Node_1.Node, 'saturation', 0, (0, Validators_1.getNumberValidator)(), Factory_1.Factory.afterSetFilter);
|
|
14037
14055
|
Factory_1.Factory.addGetterSetter(Node_1.Node, 'value', 0, (0, Validators_1.getNumberValidator)(), Factory_1.Factory.afterSetFilter);
|
|
14038
14056
|
|
|
14039
|
-
/***/ }),
|
|
14040
|
-
|
|
14041
|
-
/***/ "469d":
|
|
14042
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14043
|
-
|
|
14044
|
-
"use strict";
|
|
14045
|
-
/* 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_0f76e7f4_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f323");
|
|
14046
|
-
/* 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_0f76e7f4_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_0f76e7f4_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
14047
|
-
/* unused harmony reexport * */
|
|
14048
|
-
|
|
14049
|
-
|
|
14050
14057
|
/***/ }),
|
|
14051
14058
|
|
|
14052
14059
|
/***/ "4726":
|
|
@@ -41728,6 +41735,17 @@ function unzipSync(data, opts) {
|
|
|
41728
41735
|
return files;
|
|
41729
41736
|
}
|
|
41730
41737
|
|
|
41738
|
+
/***/ }),
|
|
41739
|
+
|
|
41740
|
+
/***/ "73cd":
|
|
41741
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
41742
|
+
|
|
41743
|
+
"use strict";
|
|
41744
|
+
/* 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_7f8842df_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0a00");
|
|
41745
|
+
/* 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_7f8842df_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_7f8842df_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
41746
|
+
/* unused harmony reexport * */
|
|
41747
|
+
|
|
41748
|
+
|
|
41731
41749
|
/***/ }),
|
|
41732
41750
|
|
|
41733
41751
|
/***/ "769d":
|
|
@@ -43965,13 +43983,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
43965
43983
|
|
|
43966
43984
|
/***/ }),
|
|
43967
43985
|
|
|
43968
|
-
/***/ "89aa":
|
|
43969
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
43970
|
-
|
|
43971
|
-
// extracted by mini-css-extract-plugin
|
|
43972
|
-
|
|
43973
|
-
/***/ }),
|
|
43974
|
-
|
|
43975
43986
|
/***/ "89c1":
|
|
43976
43987
|
/***/ (function(module, exports, __webpack_require__) {
|
|
43977
43988
|
|
|
@@ -56507,7 +56518,7 @@ module.exports = document && document.documentElement;
|
|
|
56507
56518
|
/***/ "9224":
|
|
56508
56519
|
/***/ (function(module) {
|
|
56509
56520
|
|
|
56510
|
-
module.exports = JSON.parse("{\"name\":\"fl-web-component\",\"version\":\"2.1.1-beta.
|
|
56521
|
+
module.exports = JSON.parse("{\"name\":\"fl-web-component\",\"version\":\"2.1.1-beta.6\",\"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\"]}");
|
|
56511
56522
|
|
|
56512
56523
|
/***/ }),
|
|
56513
56524
|
|
|
@@ -73482,17 +73493,6 @@ $export($export.S + $export.F, 'Object', {
|
|
|
73482
73493
|
assign: __webpack_require__("072d")
|
|
73483
73494
|
});
|
|
73484
73495
|
|
|
73485
|
-
/***/ }),
|
|
73486
|
-
|
|
73487
|
-
/***/ "e54a":
|
|
73488
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
73489
|
-
|
|
73490
|
-
"use strict";
|
|
73491
|
-
/* 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_3517cf88_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("89aa");
|
|
73492
|
-
/* 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_3517cf88_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_3517cf88_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
73493
|
-
/* unused harmony reexport * */
|
|
73494
|
-
|
|
73495
|
-
|
|
73496
73496
|
/***/ }),
|
|
73497
73497
|
|
|
73498
73498
|
/***/ "e62d":
|
|
@@ -76346,13 +76346,6 @@ exports.default = {
|
|
|
76346
76346
|
|
|
76347
76347
|
/***/ }),
|
|
76348
76348
|
|
|
76349
|
-
/***/ "f323":
|
|
76350
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
76351
|
-
|
|
76352
|
-
// extracted by mini-css-extract-plugin
|
|
76353
|
-
|
|
76354
|
-
/***/ }),
|
|
76355
|
-
|
|
76356
76349
|
/***/ "f35c":
|
|
76357
76350
|
/***/ (function(module, exports, __webpack_require__) {
|
|
76358
76351
|
|
|
@@ -78634,8 +78627,8 @@ if (typeof window !== 'undefined') {
|
|
|
78634
78627
|
// Indicate to webpack that this file can be concatenated
|
|
78635
78628
|
/* harmony default export */ var setPublicPath = (null);
|
|
78636
78629
|
|
|
78637
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
78638
|
-
var
|
|
78630
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"fe6df7e8-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=7f8842df&scoped=true
|
|
78631
|
+
var com_graphicsvue_type_template_id_7f8842df_scoped_true_render = function render() {
|
|
78639
78632
|
var _vm = this,
|
|
78640
78633
|
_c = _vm._self._c;
|
|
78641
78634
|
return _c('div', {
|
|
@@ -78647,7 +78640,7 @@ var com_graphicsvue_type_template_id_3517cf88_scoped_true_render = function rend
|
|
|
78647
78640
|
};
|
|
78648
78641
|
var staticRenderFns = [];
|
|
78649
78642
|
|
|
78650
|
-
// CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=template&id=
|
|
78643
|
+
// CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=template&id=7f8842df&scoped=true
|
|
78651
78644
|
|
|
78652
78645
|
// CONCATENATED MODULE: ./node_modules/camera-controls/dist/camera-controls.module.js
|
|
78653
78646
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
@@ -121541,6 +121534,7 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
121541
121534
|
isPaused: false
|
|
121542
121535
|
},
|
|
121543
121536
|
isolateMode: false,
|
|
121537
|
+
sceneBoundingBoxDebugEnabled: false,
|
|
121544
121538
|
// collisionObbDebugEnabled: isDebug,
|
|
121545
121539
|
collisionObbDebugEnabled: false
|
|
121546
121540
|
};
|
|
@@ -121550,6 +121544,13 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
121550
121544
|
if (val) {
|
|
121551
121545
|
this.detachTransformControls();
|
|
121552
121546
|
}
|
|
121547
|
+
},
|
|
121548
|
+
sceneBoundingBoxDebugEnabled: function sceneBoundingBoxDebugEnabled(val) {
|
|
121549
|
+
if (val) {
|
|
121550
|
+
this.refreshSceneBoundingBoxHelper(true);
|
|
121551
|
+
} else {
|
|
121552
|
+
this.hideSceneBoundingBox();
|
|
121553
|
+
}
|
|
121553
121554
|
}
|
|
121554
121555
|
},
|
|
121555
121556
|
beforeCreate: function beforeCreate() {
|
|
@@ -121652,6 +121653,7 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
121652
121653
|
// 标记相机变更观察者是否启用
|
|
121653
121654
|
sceneBoxes: new Map(),
|
|
121654
121655
|
documentModelIds: new Map(),
|
|
121656
|
+
documentSceneBoundsIds: new Map(),
|
|
121655
121657
|
outlineInstanceProxyMap: new Map(),
|
|
121656
121658
|
occlusionWorker: null,
|
|
121657
121659
|
occlusionWorkerRequestMap: new Map(),
|
|
@@ -122756,61 +122758,100 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
122756
122758
|
updateGlobalSceneBoundingBox: function updateGlobalSceneBoundingBox() {
|
|
122757
122759
|
var state = this.noObserver || {};
|
|
122758
122760
|
var occScene = state.occlusionState && state.occlusionState._occScene;
|
|
122761
|
+
var mergedBox = new this.THREE.Box3();
|
|
122762
|
+
var hasValidBox = false;
|
|
122763
|
+
var mergeBox = function mergeBox(box) {
|
|
122764
|
+
if (!box || !box.isBox3 || box.isEmpty()) return;
|
|
122765
|
+
if (!hasValidBox) {
|
|
122766
|
+
mergedBox.copy(box);
|
|
122767
|
+
hasValidBox = true;
|
|
122768
|
+
return;
|
|
122769
|
+
}
|
|
122770
|
+
mergedBox.union(box);
|
|
122771
|
+
};
|
|
122759
122772
|
|
|
122760
|
-
//
|
|
122773
|
+
// 离屏遮挡场景只包含参与遮挡的模型,需要继续合并场景范围索引中的二维图形范围。
|
|
122761
122774
|
if (occScene && occScene.children && occScene.children.length > 0) {
|
|
122762
122775
|
var occBox = new this.THREE.Box3().setFromObject(occScene);
|
|
122763
|
-
|
|
122764
|
-
this.sceneBoundingBox = occBox;
|
|
122765
|
-
return this.sceneBoundingBox;
|
|
122766
|
-
}
|
|
122776
|
+
mergeBox(occBox);
|
|
122767
122777
|
}
|
|
122768
122778
|
|
|
122769
|
-
//
|
|
122770
|
-
if (this.
|
|
122771
|
-
|
|
122772
|
-
|
|
122773
|
-
minZ = Infinity;
|
|
122774
|
-
var maxX = -Infinity,
|
|
122775
|
-
maxY = -Infinity,
|
|
122776
|
-
maxZ = -Infinity;
|
|
122777
|
-
this._boxIndex.forEach(function (box) {
|
|
122778
|
-
if (!box || !box.isBox3 || box.isEmpty()) return;
|
|
122779
|
-
var mn = box.min;
|
|
122780
|
-
var mx = box.max;
|
|
122781
|
-
if (mn.x < minX) minX = mn.x;
|
|
122782
|
-
if (mn.y < minY) minY = mn.y;
|
|
122783
|
-
if (mn.z < minZ) minZ = mn.z;
|
|
122784
|
-
if (mx.x > maxX) maxX = mx.x;
|
|
122785
|
-
if (mx.y > maxY) maxY = mx.y;
|
|
122786
|
-
if (mx.z > maxZ) maxZ = mx.z;
|
|
122779
|
+
// sceneBoundsIndex 包含二维和三维图形,是全场景 dolly 距离的主要范围来源。
|
|
122780
|
+
if (this._sceneBoundsIndex && this._sceneBoundsIndex.size > 0) {
|
|
122781
|
+
this._sceneBoundsIndex.forEach(function (box) {
|
|
122782
|
+
mergeBox(box);
|
|
122787
122783
|
});
|
|
122788
|
-
if (Number.isFinite(minX) && Number.isFinite(minY) && Number.isFinite(minZ) && Number.isFinite(maxX) && Number.isFinite(maxY) && Number.isFinite(maxZ)) {
|
|
122789
|
-
this.sceneBoundingBox = new this.THREE.Box3(new this.THREE.Vector3(minX, minY, minZ), new this.THREE.Vector3(maxX, maxY, maxZ));
|
|
122790
|
-
return this.sceneBoundingBox;
|
|
122791
|
-
}
|
|
122792
122784
|
}
|
|
122793
122785
|
var boxes = Array.from(state.sceneBoxes && state.sceneBoxes.values() || []);
|
|
122794
122786
|
if (boxes.length > 0) {
|
|
122795
|
-
var
|
|
122796
|
-
|
|
122797
|
-
firstBox.union(boxes[i]);
|
|
122787
|
+
for (var i = 0; i < boxes.length; i++) {
|
|
122788
|
+
mergeBox(boxes[i]);
|
|
122798
122789
|
}
|
|
122799
|
-
|
|
122790
|
+
}
|
|
122791
|
+
if (hasValidBox) {
|
|
122792
|
+
this.sceneBoundingBox = mergedBox;
|
|
122793
|
+
this.refreshSceneBoundingBoxHelper(this.sceneBoundingBoxDebugEnabled);
|
|
122800
122794
|
return this.sceneBoundingBox;
|
|
122801
122795
|
}
|
|
122802
122796
|
this.sceneBoundingBox = new this.THREE.Box3();
|
|
122797
|
+
this.refreshSceneBoundingBoxHelper(this.sceneBoundingBoxDebugEnabled);
|
|
122803
122798
|
return this.sceneBoundingBox;
|
|
122804
122799
|
},
|
|
122800
|
+
upsertIndexedBox: function upsertIndexedBox(indexMap, modelId, box) {
|
|
122801
|
+
if (!indexMap || !modelId || !box || !box.isBox3) return null;
|
|
122802
|
+
var key = String(modelId);
|
|
122803
|
+
var existingBox = indexMap.get(key);
|
|
122804
|
+
if (!existingBox) {
|
|
122805
|
+
indexMap.set(key, box);
|
|
122806
|
+
return box;
|
|
122807
|
+
}
|
|
122808
|
+
existingBox.union(box);
|
|
122809
|
+
return existingBox;
|
|
122810
|
+
},
|
|
122811
|
+
mergeModelBoxUserData: function mergeModelBoxUserData(targetBox, sourceUserData) {
|
|
122812
|
+
if (!targetBox || !sourceUserData) return;
|
|
122813
|
+
if (!targetBox.userData) {
|
|
122814
|
+
targetBox.userData = sourceUserData;
|
|
122815
|
+
return;
|
|
122816
|
+
}
|
|
122817
|
+
var targetUserData = targetBox.userData;
|
|
122818
|
+
targetUserData.visible = targetUserData.visible !== false || sourceUserData.visible !== false;
|
|
122819
|
+
targetUserData.sourceVisible = targetUserData.sourceVisible !== false || sourceUserData.sourceVisible !== false;
|
|
122820
|
+
targetUserData.transparent = !!targetUserData.transparent && !!sourceUserData.transparent;
|
|
122821
|
+
targetUserData.mergedBoxCount = (targetUserData.mergedBoxCount || 1) + 1;
|
|
122822
|
+
// 同一模型包含多个图元时,单个图元的遮挡代理不再可靠,改由视锥体合并盒兜底加载。
|
|
122823
|
+
targetUserData.occlusionEnabled = false;
|
|
122824
|
+
var targetObbs = Array.isArray(targetUserData.collisionObbs) ? targetUserData.collisionObbs : [];
|
|
122825
|
+
var sourceObbs = Array.isArray(sourceUserData.collisionObbs) ? sourceUserData.collisionObbs : [];
|
|
122826
|
+
if (sourceObbs.length > 0) {
|
|
122827
|
+
targetUserData.collisionObbs = targetObbs.concat(sourceObbs);
|
|
122828
|
+
}
|
|
122829
|
+
},
|
|
122830
|
+
upsertModelBox: function upsertModelBox(modelId, box) {
|
|
122831
|
+
if (!this._boxIndex || !modelId || !box || !box.isBox3) return;
|
|
122832
|
+
var key = String(modelId);
|
|
122833
|
+
var existingBox = this._boxIndex.get(key);
|
|
122834
|
+
if (!existingBox) {
|
|
122835
|
+
this._boxIndex.set(key, box);
|
|
122836
|
+
return;
|
|
122837
|
+
}
|
|
122838
|
+
existingBox.union(box);
|
|
122839
|
+
this.mergeModelBoxUserData(existingBox, box.userData);
|
|
122840
|
+
},
|
|
122805
122841
|
setBoxIndex: function setBoxIndex(boxJson, documentId) {
|
|
122806
122842
|
var _this0 = this;
|
|
122807
122843
|
var isAdd = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
122808
122844
|
if (!this._boxIndex) this._boxIndex = new Map();
|
|
122845
|
+
if (!this._sceneBoundsIndex) this._sceneBoundsIndex = new Map();
|
|
122809
122846
|
if (!documentId) {
|
|
122810
122847
|
this._boxIndex.clear();
|
|
122848
|
+
this._sceneBoundsIndex.clear();
|
|
122811
122849
|
if (this.noObserver && this.noObserver.documentModelIds) {
|
|
122812
122850
|
this.noObserver.documentModelIds.clear();
|
|
122813
122851
|
}
|
|
122852
|
+
if (this.noObserver && this.noObserver.documentSceneBoundsIds) {
|
|
122853
|
+
this.noObserver.documentSceneBoundsIds.clear();
|
|
122854
|
+
}
|
|
122814
122855
|
this.hasExecutedCentering = false;
|
|
122815
122856
|
this.buildOctreeFromBoxIndex();
|
|
122816
122857
|
return;
|
|
@@ -122818,19 +122859,25 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
122818
122859
|
if (isAdd && boxJson) {
|
|
122819
122860
|
var arr = boxJson ? boxJson : [];
|
|
122820
122861
|
var modelIds = new Set();
|
|
122862
|
+
var sceneBoundIds = new Set();
|
|
122821
122863
|
var validGeomTypes = new Set(Object.values(GEOM_TYPES));
|
|
122822
122864
|
for (var i = 0; i < arr.length; i++) {
|
|
122823
122865
|
var it = arr[i];
|
|
122824
122866
|
if (!validGeomTypes.has(it.geomType)) {
|
|
122825
122867
|
continue;
|
|
122826
122868
|
}
|
|
122827
|
-
|
|
122869
|
+
var minSource = it.min;
|
|
122870
|
+
var maxSource = it.max;
|
|
122871
|
+
var hasValidMinMax = minSource && maxSource && minSource.length >= 3 && maxSource.length >= 3 && Number.isFinite(minSource[0]) && Number.isFinite(minSource[1]) && Number.isFinite(minSource[2]) && Number.isFinite(maxSource[0]) && Number.isFinite(maxSource[1]) && Number.isFinite(maxSource[2]);
|
|
122872
|
+
if (!hasValidMinMax) {
|
|
122828
122873
|
continue;
|
|
122829
122874
|
}
|
|
122875
|
+
var obbData = it.obb || [];
|
|
122876
|
+
var modelId = String(it.id);
|
|
122830
122877
|
|
|
122831
122878
|
// 使用新的 min/max 数据结构
|
|
122832
|
-
var min = new this.THREE.Vector3(
|
|
122833
|
-
var max = new this.THREE.Vector3(
|
|
122879
|
+
var min = new this.THREE.Vector3(minSource[0], minSource[1], minSource[2]);
|
|
122880
|
+
var max = new this.THREE.Vector3(maxSource[0], maxSource[1], maxSource[2]);
|
|
122834
122881
|
var sourceBox = new this.THREE.Box3(min.clone(), max.clone());
|
|
122835
122882
|
// 八叉树仍使用 AABB 粗筛,最终碰撞使用 sourceBox 派生的 OBB 精筛
|
|
122836
122883
|
var boxThree = sourceBox.clone();
|
|
@@ -122860,11 +122907,18 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
122860
122907
|
collisionMatrix = this.bizToThreeMatrix.clone();
|
|
122861
122908
|
boxThree.applyMatrix4(collisionMatrix);
|
|
122862
122909
|
}
|
|
122910
|
+
this.upsertIndexedBox(this._sceneBoundsIndex, modelId, boxThree.clone());
|
|
122911
|
+
sceneBoundIds.add(modelId);
|
|
122912
|
+
|
|
122913
|
+
// 没有 OBB 数据的二维图形只参与全场景范围,不纳入碰撞和遮挡索引。
|
|
122914
|
+
if (obbData.length === 0) {
|
|
122915
|
+
continue;
|
|
122916
|
+
}
|
|
122863
122917
|
var userData = {
|
|
122864
122918
|
flag: it.flag || 1,
|
|
122865
122919
|
// 默认为 1
|
|
122866
122920
|
geomType: it.geomType,
|
|
122867
|
-
obbData:
|
|
122921
|
+
obbData: obbData,
|
|
122868
122922
|
// 存储原始 OBB 数据
|
|
122869
122923
|
transparent: it.transp > 0,
|
|
122870
122924
|
sourceVisible: it.visible === false ? false : true,
|
|
@@ -122879,8 +122933,7 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
122879
122933
|
// userData.matrix = new this.THREE.Matrix4().identity();
|
|
122880
122934
|
}
|
|
122881
122935
|
// 如果是 flag=3,解析并存储中心点、半轴长、旋转矩阵
|
|
122882
|
-
else if (it.flag === 3 &&
|
|
122883
|
-
var obbData = it.obb;
|
|
122936
|
+
else if (it.flag === 3 && obbData.length === 15) {
|
|
122884
122937
|
var center = new this.THREE.Vector3(obbData[0], obbData[1], obbData[2]);
|
|
122885
122938
|
var halfSize = new this.THREE.Vector3(obbData[3], obbData[4], obbData[5]);
|
|
122886
122939
|
var rotation = new this.THREE.Matrix3().fromArray(obbData.slice(6, 15));
|
|
@@ -122904,13 +122957,13 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
122904
122957
|
userData.collisionObbs = [collisionObb];
|
|
122905
122958
|
}
|
|
122906
122959
|
// 如果是 flag=2,解析并存储多个子包围盒 (min, max)
|
|
122907
|
-
else if (it.flag === 2 &&
|
|
122960
|
+
else if (it.flag === 2 && obbData.length > 0) {
|
|
122908
122961
|
var subBoxes = [];
|
|
122909
122962
|
var collisionObbs = [];
|
|
122910
|
-
for (var k = 0; k <
|
|
122911
|
-
if (k + 5 <
|
|
122912
|
-
var _min = new this.THREE.Vector3(
|
|
122913
|
-
var _max = new this.THREE.Vector3(
|
|
122963
|
+
for (var k = 0; k < obbData.length; k += 6) {
|
|
122964
|
+
if (k + 5 < obbData.length) {
|
|
122965
|
+
var _min = new this.THREE.Vector3(obbData[k], obbData[k + 1], obbData[k + 2]);
|
|
122966
|
+
var _max = new this.THREE.Vector3(obbData[k + 3], obbData[k + 4], obbData[k + 5]);
|
|
122914
122967
|
subBoxes.push({
|
|
122915
122968
|
min: _min,
|
|
122916
122969
|
max: _max
|
|
@@ -122936,11 +122989,11 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
122936
122989
|
userData.collisionObbs = [_collisionObb2];
|
|
122937
122990
|
}
|
|
122938
122991
|
boxThree.userData = userData;
|
|
122939
|
-
|
|
122940
|
-
this._boxIndex.set(modelId, boxThree);
|
|
122992
|
+
this.upsertModelBox(modelId, boxThree);
|
|
122941
122993
|
modelIds.add(modelId);
|
|
122942
122994
|
}
|
|
122943
122995
|
this.noObserver.documentModelIds.set(documentId, modelIds);
|
|
122996
|
+
this.noObserver.documentSceneBoundsIds.set(documentId, sceneBoundIds);
|
|
122944
122997
|
} else {
|
|
122945
122998
|
var _modelIds = this.noObserver.documentModelIds.get(documentId);
|
|
122946
122999
|
if (_modelIds) {
|
|
@@ -122954,6 +123007,13 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
122954
123007
|
this.hasExecutedCentering = false;
|
|
122955
123008
|
}
|
|
122956
123009
|
}
|
|
123010
|
+
var _sceneBoundIds = this.noObserver.documentSceneBoundsIds && this.noObserver.documentSceneBoundsIds.get(documentId);
|
|
123011
|
+
if (_sceneBoundIds) {
|
|
123012
|
+
_sceneBoundIds.forEach(function (id) {
|
|
123013
|
+
_this0._sceneBoundsIndex.delete(id);
|
|
123014
|
+
});
|
|
123015
|
+
this.noObserver.documentSceneBoundsIds.delete(documentId);
|
|
123016
|
+
}
|
|
122957
123017
|
}
|
|
122958
123018
|
this.buildOctreeFromBoxIndex();
|
|
122959
123019
|
this.refreshCollisionObbDebug();
|
|
@@ -122965,7 +123025,9 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
122965
123025
|
tryInitialCenterAfterBoundsReady: function tryInitialCenterAfterBoundsReady() {
|
|
122966
123026
|
if (this.hasExecutedCentering || this.userInteracting) return;
|
|
122967
123027
|
if (!this.sceneBoundingBox || !this.sceneBoundingBox.isBox3 || this.sceneBoundingBox.isEmpty()) return;
|
|
122968
|
-
|
|
123028
|
+
var hasBoxIndex = this._boxIndex && this._boxIndex.size > 0;
|
|
123029
|
+
var hasSceneBoundsIndex = this._sceneBoundsIndex && this._sceneBoundsIndex.size > 0;
|
|
123030
|
+
if (!hasBoxIndex && !hasSceneBoundsIndex) return;
|
|
122969
123031
|
this.smartModelCenter(this.sceneBoundingBox, 0);
|
|
122970
123032
|
},
|
|
122971
123033
|
buildOctreeFromBoxIndex: function buildOctreeFromBoxIndex() {
|
|
@@ -125427,12 +125489,33 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
125427
125489
|
},
|
|
125428
125490
|
// 动态设置视角滚轮的距离
|
|
125429
125491
|
setCameraConfig: function setCameraConfig() {
|
|
125492
|
+
if (!this.sceneBoundingBox || !this.sceneBoundingBox.isBox3 || this.sceneBoundingBox.isEmpty()) {
|
|
125493
|
+
return;
|
|
125494
|
+
}
|
|
125430
125495
|
// let box3 = new this.THREE.Box3().setFromObject(this.sceneBoundingBox);
|
|
125431
125496
|
var size = new this.THREE.Vector3();
|
|
125432
125497
|
this.sceneBoundingBox.getSize(size);
|
|
125433
125498
|
var maxBorder = Math.max(size.x, size.y, size.z);
|
|
125499
|
+
if (isDebug) {
|
|
125500
|
+
var center = this.sceneBoundingBox.getCenter(new this.THREE.Vector3());
|
|
125501
|
+
console.log('sceneBoundingBox 调试信息', {
|
|
125502
|
+
size: {
|
|
125503
|
+
x: size.x,
|
|
125504
|
+
y: size.y,
|
|
125505
|
+
z: size.z
|
|
125506
|
+
},
|
|
125507
|
+
center: {
|
|
125508
|
+
x: center.x,
|
|
125509
|
+
y: center.y,
|
|
125510
|
+
z: center.z
|
|
125511
|
+
},
|
|
125512
|
+
maxBorder: maxBorder
|
|
125513
|
+
});
|
|
125514
|
+
this.refreshSceneBoundingBoxHelper(this.sceneBoundingBoxDebugEnabled);
|
|
125515
|
+
}
|
|
125434
125516
|
// this.cameraControls.this.camera.far = maxBorder * 10; // 设置相机的远裁剪面
|
|
125435
125517
|
this.cameraControls.minDistance = maxBorder * 0.2; // 动态设置视角滚轮的距离
|
|
125518
|
+
// this.cameraControls.minDistance = 1000; // 动态设置视角滚轮的距离
|
|
125436
125519
|
this.camera.updateProjectionMatrix();
|
|
125437
125520
|
},
|
|
125438
125521
|
// 获取mesh的中心点
|
|
@@ -128511,9 +128594,71 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
128511
128594
|
/**
|
|
128512
128595
|
* 隐藏场景包围盒
|
|
128513
128596
|
*/
|
|
128597
|
+
refreshSceneBoundingBoxHelper: function refreshSceneBoundingBoxHelper() {
|
|
128598
|
+
var forceVisible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.boundingBoxVisible;
|
|
128599
|
+
if (this.sceneBoundingBoxHelper && this.scene) {
|
|
128600
|
+
this.scene.remove(this.sceneBoundingBoxHelper);
|
|
128601
|
+
this.sceneBoundingBoxHelper.geometry && this.sceneBoundingBoxHelper.geometry.dispose();
|
|
128602
|
+
if (Array.isArray(this.sceneBoundingBoxHelper.material)) {
|
|
128603
|
+
this.sceneBoundingBoxHelper.material.forEach(function (material) {
|
|
128604
|
+
material && material.dispose && material.dispose();
|
|
128605
|
+
});
|
|
128606
|
+
} else if (this.sceneBoundingBoxHelper.material && this.sceneBoundingBoxHelper.material.dispose) {
|
|
128607
|
+
this.sceneBoundingBoxHelper.material.dispose();
|
|
128608
|
+
}
|
|
128609
|
+
this.sceneBoundingBoxHelper = null;
|
|
128610
|
+
}
|
|
128611
|
+
if (!forceVisible || !this.scene || !this.sceneBoundingBox || !this.sceneBoundingBox.isBox3 || this.sceneBoundingBox.isEmpty()) {
|
|
128612
|
+
this.boundingBoxVisible = false;
|
|
128613
|
+
return false;
|
|
128614
|
+
}
|
|
128615
|
+
var helper = new this.THREE.Box3Helper(this.sceneBoundingBox, 0x00ff88);
|
|
128616
|
+
helper.name = 'sceneBoundingBoxHelper';
|
|
128617
|
+
helper.renderOrder = 999;
|
|
128618
|
+
if (helper.material) {
|
|
128619
|
+
helper.material.depthTest = false;
|
|
128620
|
+
helper.material.transparent = true;
|
|
128621
|
+
helper.material.opacity = 0.9;
|
|
128622
|
+
}
|
|
128623
|
+
this.scene.add(helper);
|
|
128624
|
+
this.sceneBoundingBoxHelper = helper;
|
|
128625
|
+
this.boundingBoxVisible = true;
|
|
128626
|
+
return true;
|
|
128627
|
+
},
|
|
128628
|
+
showSceneBoundingBox: function showSceneBoundingBox() {
|
|
128629
|
+
this.sceneBoundingBoxDebugEnabled = true;
|
|
128630
|
+
var shown = this.refreshSceneBoundingBoxHelper(true);
|
|
128631
|
+
if (!shown) {
|
|
128632
|
+
console.warn('sceneBoundingBox 无有效范围,无法绘制调试线框');
|
|
128633
|
+
return;
|
|
128634
|
+
}
|
|
128635
|
+
var size = this.sceneBoundingBox.getSize(new this.THREE.Vector3());
|
|
128636
|
+
var center = this.sceneBoundingBox.getCenter(new this.THREE.Vector3());
|
|
128637
|
+
console.log('sceneBoundingBox 线框已绘制', {
|
|
128638
|
+
size: {
|
|
128639
|
+
x: size.x,
|
|
128640
|
+
y: size.y,
|
|
128641
|
+
z: size.z
|
|
128642
|
+
},
|
|
128643
|
+
center: {
|
|
128644
|
+
x: center.x,
|
|
128645
|
+
y: center.y,
|
|
128646
|
+
z: center.z
|
|
128647
|
+
}
|
|
128648
|
+
});
|
|
128649
|
+
},
|
|
128514
128650
|
hideSceneBoundingBox: function hideSceneBoundingBox() {
|
|
128651
|
+
this.sceneBoundingBoxDebugEnabled = false;
|
|
128515
128652
|
if (this.sceneBoundingBoxHelper && this.scene) {
|
|
128516
128653
|
this.scene.remove(this.sceneBoundingBoxHelper);
|
|
128654
|
+
this.sceneBoundingBoxHelper.geometry && this.sceneBoundingBoxHelper.geometry.dispose();
|
|
128655
|
+
if (Array.isArray(this.sceneBoundingBoxHelper.material)) {
|
|
128656
|
+
this.sceneBoundingBoxHelper.material.forEach(function (material) {
|
|
128657
|
+
material && material.dispose && material.dispose();
|
|
128658
|
+
});
|
|
128659
|
+
} else if (this.sceneBoundingBoxHelper.material && this.sceneBoundingBoxHelper.material.dispose) {
|
|
128660
|
+
this.sceneBoundingBoxHelper.material.dispose();
|
|
128661
|
+
}
|
|
128517
128662
|
this.sceneBoundingBoxHelper = null;
|
|
128518
128663
|
this.boundingBoxVisible = false;
|
|
128519
128664
|
console.log('场景包围盒已隐藏');
|
|
@@ -128523,7 +128668,7 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
128523
128668
|
* 切换场景包围盒显示状态
|
|
128524
128669
|
*/
|
|
128525
128670
|
toggleSceneBoundingBox: function toggleSceneBoundingBox() {
|
|
128526
|
-
if (this.
|
|
128671
|
+
if (this.sceneBoundingBoxDebugEnabled) {
|
|
128527
128672
|
this.hideSceneBoundingBox();
|
|
128528
128673
|
} else {
|
|
128529
128674
|
this.showSceneBoundingBox();
|
|
@@ -128533,11 +128678,11 @@ var COLLISION_DEBUG_GROUP_NAME = '__collision_obb_debug_group__';
|
|
|
128533
128678
|
});
|
|
128534
128679
|
// CONCATENATED MODULE: ./packages/components/com-graphics/index.vue?vue&type=script&lang=js
|
|
128535
128680
|
/* harmony default export */ var components_com_graphicsvue_type_script_lang_js = (com_graphicsvue_type_script_lang_js);
|
|
128536
|
-
// EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=0&id=
|
|
128537
|
-
var
|
|
128681
|
+
// EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=0&id=7f8842df&prod&lang=scss&scoped=true
|
|
128682
|
+
var com_graphicsvue_type_style_index_0_id_7f8842df_prod_lang_scss_scoped_true = __webpack_require__("2098");
|
|
128538
128683
|
|
|
128539
|
-
// EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=1&id=
|
|
128540
|
-
var
|
|
128684
|
+
// EXTERNAL MODULE: ./packages/components/com-graphics/index.vue?vue&type=style&index=1&id=7f8842df&prod&lang=css
|
|
128685
|
+
var com_graphicsvue_type_style_index_1_id_7f8842df_prod_lang_css = __webpack_require__("73cd");
|
|
128541
128686
|
|
|
128542
128687
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
128543
128688
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -128649,18 +128794,18 @@ function normalizeComponent(
|
|
|
128649
128794
|
|
|
128650
128795
|
var component = normalizeComponent(
|
|
128651
128796
|
components_com_graphicsvue_type_script_lang_js,
|
|
128652
|
-
|
|
128797
|
+
com_graphicsvue_type_template_id_7f8842df_scoped_true_render,
|
|
128653
128798
|
staticRenderFns,
|
|
128654
128799
|
false,
|
|
128655
128800
|
null,
|
|
128656
|
-
"
|
|
128801
|
+
"7f8842df",
|
|
128657
128802
|
null
|
|
128658
128803
|
|
|
128659
128804
|
)
|
|
128660
128805
|
|
|
128661
128806
|
/* harmony default export */ var com_graphics = (component.exports);
|
|
128662
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
128663
|
-
var
|
|
128807
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"fe6df7e8-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=cb260cfc&scoped=true
|
|
128808
|
+
var com_flcanvasvue_type_template_id_cb260cfc_scoped_true_render = function render() {
|
|
128664
128809
|
var _vm = this,
|
|
128665
128810
|
_c = _vm._self._c;
|
|
128666
128811
|
return _c('div', {
|
|
@@ -128673,9 +128818,9 @@ var com_flcanvasvue_type_template_id_0f76e7f4_scoped_true_render = function rend
|
|
|
128673
128818
|
}
|
|
128674
128819
|
});
|
|
128675
128820
|
};
|
|
128676
|
-
var
|
|
128821
|
+
var com_flcanvasvue_type_template_id_cb260cfc_scoped_true_staticRenderFns = [];
|
|
128677
128822
|
|
|
128678
|
-
// CONCATENATED MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=template&id=
|
|
128823
|
+
// CONCATENATED MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=template&id=cb260cfc&scoped=true
|
|
128679
128824
|
|
|
128680
128825
|
// EXTERNAL MODULE: ./node_modules/konva/lib/index.js
|
|
128681
128826
|
var lib = __webpack_require__("362d");
|
|
@@ -133722,7 +133867,6 @@ function decimalToRGBHex(decimalValue) {
|
|
|
133722
133867
|
};
|
|
133723
133868
|
}
|
|
133724
133869
|
function handleFn(functionName, recordDxf, entity, group, key, configParams, konvaLayer) {
|
|
133725
|
-
console.log(functionName);
|
|
133726
133870
|
switch (functionName) {
|
|
133727
133871
|
case 'LINE':
|
|
133728
133872
|
drawLine(recordDxf, entity, group, key, configParams);
|
|
@@ -133893,7 +134037,6 @@ function mtextContentAndFormattingToTextAndStyle(textAndControlChars, entity, co
|
|
|
133893
134037
|
function drawArc(recordDxf, entity, group, key, configParams) {
|
|
133894
134038
|
var color = entity.color;
|
|
133895
134039
|
var rgb = decimalToRGBHex(color);
|
|
133896
|
-
console.log(rgb);
|
|
133897
134040
|
var hex = rgb.hex;
|
|
133898
134041
|
var startAngle, endAngle;
|
|
133899
134042
|
if (entity.type === 'CIRCLE') {
|
|
@@ -133946,8 +134089,6 @@ function drawEllpse(recordDxf, entity, group, key, configParams) {
|
|
|
133946
134089
|
var xrad = Math.sqrt(Math.pow(parseFloat(entity.majorAxisEndPoint.x), 2) + Math.pow(parseFloat(entity.majorAxisEndPoint.y), 2));
|
|
133947
134090
|
var yrad = xrad * parseFloat(entity.axisRatio);
|
|
133948
134091
|
var rotation = Math.atan2(parseFloat(entity.majorAxisEndPoint.y), parseFloat(entity.majorAxisEndPoint.x));
|
|
133949
|
-
console.log(entity.startAngle);
|
|
133950
|
-
console.log(entity.endAngle);
|
|
133951
134092
|
var curve = new EllipseCurve(parseFloat(entity.center.x), parseFloat(entity.center.y), xrad, yrad, parseFloat(entity.startAngle), parseFloat(entity.endAngle), false,
|
|
133952
134093
|
// Always counterclockwise
|
|
133953
134094
|
rotation);
|
|
@@ -133989,7 +134130,6 @@ function drawEllpse(recordDxf, entity, group, key, configParams) {
|
|
|
133989
134130
|
function drawLine(recordDxf, entity, group, key, configParams) {
|
|
133990
134131
|
var color = entity.color;
|
|
133991
134132
|
var rgb = decimalToRGBHex(color);
|
|
133992
|
-
console.log(rgb);
|
|
133993
134133
|
var hex = rgb.hex;
|
|
133994
134134
|
var x1 = entity.vertices[0].x;
|
|
133995
134135
|
var y1 = entity.vertices[0].y;
|
|
@@ -134036,7 +134176,6 @@ function drawLine(recordDxf, entity, group, key, configParams) {
|
|
|
134036
134176
|
function entityFormatting_drawText(recordDxf, entity, group, key, configParams) {
|
|
134037
134177
|
var color = entity.color;
|
|
134038
134178
|
var rgb = decimalToRGBHex(color);
|
|
134039
|
-
console.log(rgb);
|
|
134040
134179
|
var hex = rgb.hex;
|
|
134041
134180
|
if (hex == '#FFFFFF') {
|
|
134042
134181
|
hex = '#000';
|
|
@@ -134124,13 +134263,10 @@ function entityFormatting_drawText(recordDxf, entity, group, key, configParams)
|
|
|
134124
134263
|
});
|
|
134125
134264
|
// group.add(dim);
|
|
134126
134265
|
}
|
|
134127
|
-
function drawHatch(recordDxf, entity, group, key, configParams) {
|
|
134128
|
-
console.log('hatch');
|
|
134129
|
-
}
|
|
134266
|
+
function drawHatch(recordDxf, entity, group, key, configParams) {}
|
|
134130
134267
|
function drawLwLine(recordDxf, entity, group, key, configParams) {
|
|
134131
134268
|
var color = entity.color;
|
|
134132
134269
|
var rgb = decimalToRGBHex(color);
|
|
134133
|
-
console.log(rgb);
|
|
134134
134270
|
var hex = rgb.hex;
|
|
134135
134271
|
if (hex == '#FFFFFF') {
|
|
134136
134272
|
hex = '#000';
|
|
@@ -134981,6 +135117,7 @@ function downloadPDF(base64, fileName) {
|
|
|
134981
135117
|
}
|
|
134982
135118
|
});
|
|
134983
135119
|
this.$nextTick(function () {
|
|
135120
|
+
console.log(_this2.$refs.svgDraw.clientHeight);
|
|
134984
135121
|
_this2.konvaStage = new lib_default.a.Stage({
|
|
134985
135122
|
className: 'stage',
|
|
134986
135123
|
container: 'konva-container',
|
|
@@ -135001,7 +135138,6 @@ function downloadPDF(base64, fileName) {
|
|
|
135001
135138
|
var scaleBy = 1.1;
|
|
135002
135139
|
//初始化缩放方法
|
|
135003
135140
|
_this2.konvaStage.on('wheel', function (e) {
|
|
135004
|
-
console.log(e);
|
|
135005
135141
|
e.evt.preventDefault();
|
|
135006
135142
|
var oldScale = _this2.konvaStage.scaleX();
|
|
135007
135143
|
var pointer = _this2.konvaStage.getPointerPosition();
|
|
@@ -135054,20 +135190,18 @@ function downloadPDF(base64, fileName) {
|
|
|
135054
135190
|
this.konvaStage.setY(y2); // 750
|
|
135055
135191
|
*/
|
|
135056
135192
|
|
|
135057
|
-
|
|
135058
|
-
|
|
135059
|
-
|
|
135060
|
-
|
|
135061
|
-
|
|
135062
|
-
|
|
135063
|
-
|
|
135064
|
-
|
|
135065
|
-
});
|
|
135066
|
-
|
|
135067
|
-
|
|
135068
|
-
|
|
135069
|
-
});
|
|
135070
|
-
_this2.konvaStage.batchDraw();
|
|
135193
|
+
// const { scale, x, y } = this.calculateScaleAndPosition(
|
|
135194
|
+
// this.bounds,
|
|
135195
|
+
// this.konvaStage.width(),
|
|
135196
|
+
// this.konvaStage.height(),
|
|
135197
|
+
// 0.05 // 5% 边距
|
|
135198
|
+
// );
|
|
135199
|
+
|
|
135200
|
+
// this.konvaStage.position({ x: x, y: y });
|
|
135201
|
+
// this.konvaStage.scale({ x: scale, y: scale });
|
|
135202
|
+
|
|
135203
|
+
// this.konvaStage.batchDraw();
|
|
135204
|
+
_this2.centerDraw();
|
|
135071
135205
|
});
|
|
135072
135206
|
_this2.konvaStage.on('click', function (e) {
|
|
135073
135207
|
var target = _this2.konvaStage.mouseClickEndShape;
|
|
@@ -135078,6 +135212,23 @@ function downloadPDF(base64, fileName) {
|
|
|
135078
135212
|
//销毁方法
|
|
135079
135213
|
|
|
135080
135214
|
methods: {
|
|
135215
|
+
// 图纸居中展示
|
|
135216
|
+
centerDraw: function centerDraw() {
|
|
135217
|
+
var _this$calculateScaleA = this.calculateScaleAndPosition(this.bounds, this.konvaStage.width(), this.konvaStage.height(), 0.05 // 5% 边距
|
|
135218
|
+
),
|
|
135219
|
+
scale = _this$calculateScaleA.scale,
|
|
135220
|
+
x = _this$calculateScaleA.x,
|
|
135221
|
+
y = _this$calculateScaleA.y;
|
|
135222
|
+
this.konvaStage.position({
|
|
135223
|
+
x: x,
|
|
135224
|
+
y: y
|
|
135225
|
+
});
|
|
135226
|
+
this.konvaStage.scale({
|
|
135227
|
+
x: scale,
|
|
135228
|
+
y: scale
|
|
135229
|
+
});
|
|
135230
|
+
this.konvaStage.batchDraw();
|
|
135231
|
+
},
|
|
135081
135232
|
calculateScaleAndPosition: function calculateScaleAndPosition(contentBounds, stageWidth, stageHeight) {
|
|
135082
135233
|
var padding = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0.1;
|
|
135083
135234
|
// 1. 计算内容的实际宽高
|
|
@@ -135191,10 +135342,10 @@ function downloadPDF(base64, fileName) {
|
|
|
135191
135342
|
var entity = hatchEntitys[i];
|
|
135192
135343
|
var layerConfig = this.recordLayerConfig[entity.layer];
|
|
135193
135344
|
var configParams = layerConfig && Object.keys(layerConfig).length > 0 ? layerConfig : null;
|
|
135194
|
-
var color = configParams ? configParams.color :
|
|
135345
|
+
var color = configParams ? configParams.color : '#000';
|
|
135195
135346
|
var visible = configParams ? configParams.visible : true;
|
|
135196
|
-
var name = entity.layer.replace(/\s*/g,
|
|
135197
|
-
if (entity.type ==
|
|
135347
|
+
var name = entity.layer.replace(/\s*/g, '');
|
|
135348
|
+
if (entity.type == 'HATCH') {
|
|
135198
135349
|
var boundaryLoops = entity.boundaryLoops;
|
|
135199
135350
|
for (var j = 0; j < boundaryLoops.length; j++) {
|
|
135200
135351
|
var list = [];
|
|
@@ -135332,7 +135483,6 @@ function downloadPDF(base64, fileName) {
|
|
|
135332
135483
|
}
|
|
135333
135484
|
}
|
|
135334
135485
|
if (group[0].stroke == undefined) {
|
|
135335
|
-
console.log(group);
|
|
135336
135486
|
group[0].stroke = '#000';
|
|
135337
135487
|
}
|
|
135338
135488
|
var customShape = new lib_default.a.Shape({
|
|
@@ -135436,6 +135586,7 @@ function downloadPDF(base64, fileName) {
|
|
|
135436
135586
|
this.activedSvgPan.x = x;
|
|
135437
135587
|
this.activedSvgPan.y = x;
|
|
135438
135588
|
setTimeout(function () {
|
|
135589
|
+
_this3.centerDraw();
|
|
135439
135590
|
_this3.$emit('loaded');
|
|
135440
135591
|
}, 100);
|
|
135441
135592
|
},
|
|
@@ -135528,8 +135679,6 @@ function downloadPDF(base64, fileName) {
|
|
|
135528
135679
|
}
|
|
135529
135680
|
}
|
|
135530
135681
|
}
|
|
135531
|
-
console.log('bounds1');
|
|
135532
|
-
console.log(_this.bounds1);
|
|
135533
135682
|
var _loop2 = function _loop2() {
|
|
135534
135683
|
if (entities[_key]) {
|
|
135535
135684
|
var _group = [];
|
|
@@ -135550,7 +135699,6 @@ function downloadPDF(base64, fileName) {
|
|
|
135550
135699
|
}
|
|
135551
135700
|
}
|
|
135552
135701
|
if (_group[0].stroke == undefined) {
|
|
135553
|
-
console.log(_group);
|
|
135554
135702
|
_group[0].stroke = '#000';
|
|
135555
135703
|
}
|
|
135556
135704
|
var customShape = new lib_default.a.Shape({
|
|
@@ -135613,13 +135761,11 @@ function downloadPDF(base64, fileName) {
|
|
|
135613
135761
|
_ret2 = _loop2();
|
|
135614
135762
|
if (_ret2) return _ret2.v;
|
|
135615
135763
|
}
|
|
135616
|
-
var _this$
|
|
135764
|
+
var _this$calculateScaleA2 = this.calculateScaleAndPosition(_this.bounds1, this.konvaStage.width(), this.konvaStage.height(), 0.05 // 5% 边距
|
|
135617
135765
|
),
|
|
135618
|
-
scale = _this$
|
|
135619
|
-
x = _this$
|
|
135620
|
-
y = _this$
|
|
135621
|
-
console.log('test1:');
|
|
135622
|
-
console.log(this.bounds1);
|
|
135766
|
+
scale = _this$calculateScaleA2.scale,
|
|
135767
|
+
x = _this$calculateScaleA2.x,
|
|
135768
|
+
y = _this$calculateScaleA2.y;
|
|
135623
135769
|
_this.bounds1 = null;
|
|
135624
135770
|
this.konvaStage.position({
|
|
135625
135771
|
x: x,
|
|
@@ -135662,7 +135808,7 @@ function downloadPDF(base64, fileName) {
|
|
|
135662
135808
|
setColorScheme: function setColorScheme(colorType) {
|
|
135663
135809
|
var _this5 = this;
|
|
135664
135810
|
// const backgroundColor = colorType === "darkness" ? "#000" : "transparent";
|
|
135665
|
-
var color = colorType ===
|
|
135811
|
+
var color = colorType === 'darkness' ? '#fff' : '#000';
|
|
135666
135812
|
// konvaStage.container().style.background = backgroundColor;
|
|
135667
135813
|
this.konvaLayer.children.forEach(function (item) {
|
|
135668
135814
|
_this5.traverseLayer(item, color);
|
|
@@ -135699,8 +135845,8 @@ function downloadPDF(base64, fileName) {
|
|
|
135699
135845
|
});
|
|
135700
135846
|
// CONCATENATED MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=script&lang=js
|
|
135701
135847
|
/* harmony default export */ var components_com_flcanvasvue_type_script_lang_js = (com_flcanvasvue_type_script_lang_js);
|
|
135702
|
-
// EXTERNAL MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=style&index=0&id=
|
|
135703
|
-
var
|
|
135848
|
+
// EXTERNAL MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=style&index=0&id=cb260cfc&prod&lang=scss&scoped=true
|
|
135849
|
+
var com_flcanvasvue_type_style_index_0_id_cb260cfc_prod_lang_scss_scoped_true = __webpack_require__("2f91");
|
|
135704
135850
|
|
|
135705
135851
|
// CONCATENATED MODULE: ./packages/components/com-flcanvas/index.vue
|
|
135706
135852
|
|
|
@@ -135713,17 +135859,17 @@ var com_flcanvasvue_type_style_index_0_id_0f76e7f4_prod_lang_scss_scoped_true =
|
|
|
135713
135859
|
|
|
135714
135860
|
var com_flcanvas_component = normalizeComponent(
|
|
135715
135861
|
components_com_flcanvasvue_type_script_lang_js,
|
|
135716
|
-
|
|
135717
|
-
|
|
135862
|
+
com_flcanvasvue_type_template_id_cb260cfc_scoped_true_render,
|
|
135863
|
+
com_flcanvasvue_type_template_id_cb260cfc_scoped_true_staticRenderFns,
|
|
135718
135864
|
false,
|
|
135719
135865
|
null,
|
|
135720
|
-
"
|
|
135866
|
+
"cb260cfc",
|
|
135721
135867
|
null
|
|
135722
135868
|
|
|
135723
135869
|
)
|
|
135724
135870
|
|
|
135725
135871
|
/* harmony default export */ var com_flcanvas = (com_flcanvas_component.exports);
|
|
135726
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135872
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"fe6df7e8-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
|
|
135727
135873
|
var per_controlvue_type_template_id_f547d5c6_scoped_true_render = function render() {
|
|
135728
135874
|
var _vm = this,
|
|
135729
135875
|
_c = _vm._self._c;
|
|
@@ -135831,7 +135977,7 @@ var per_control_component = normalizeComponent(
|
|
|
135831
135977
|
)
|
|
135832
135978
|
|
|
135833
135979
|
/* harmony default export */ var per_control = (per_control_component.exports);
|
|
135834
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135980
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"fe6df7e8-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
|
|
135835
135981
|
var pidvue_type_template_id_2572c0e2_scoped_true_render = function render() {
|
|
135836
135982
|
var _vm = this,
|
|
135837
135983
|
_c = _vm._self._c;
|
|
@@ -135878,7 +136024,7 @@ var browserify_default = /*#__PURE__*/__webpack_require__.n(browserify);
|
|
|
135878
136024
|
var html2canvas = __webpack_require__("c0e9");
|
|
135879
136025
|
var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
135880
136026
|
|
|
135881
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
136027
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"fe6df7e8-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
|
|
135882
136028
|
var ann_toolvue_type_template_id_4b17bce0_scoped_true_render = function render() {
|
|
135883
136029
|
var _vm = this,
|
|
135884
136030
|
_c = _vm._self._c;
|
|
@@ -136910,6 +137056,13 @@ exports.f = __webpack_require__("cc15");
|
|
|
136910
137056
|
|
|
136911
137057
|
/***/ }),
|
|
136912
137058
|
|
|
137059
|
+
/***/ "fcd8":
|
|
137060
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
137061
|
+
|
|
137062
|
+
// extracted by mini-css-extract-plugin
|
|
137063
|
+
|
|
137064
|
+
/***/ }),
|
|
137065
|
+
|
|
136913
137066
|
/***/ "fce6":
|
|
136914
137067
|
/***/ (function(module, exports, __webpack_require__) {
|
|
136915
137068
|
|