fl-web-component 2.1.1-beta.5 → 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 +72 -71
- 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 +34 -34
- package/src/utils/instance-parser.js +16 -16
|
@@ -4064,6 +4064,17 @@ exports.default = {
|
|
|
4064
4064
|
|
|
4065
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"
|
|
4066
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
|
+
|
|
4067
4078
|
/***/ }),
|
|
4068
4079
|
|
|
4069
4080
|
/***/ "2f9a":
|
|
@@ -14043,17 +14054,6 @@ Factory_1.Factory.addGetterSetter(Node_1.Node, 'hue', 0, (0, Validators_1.getNum
|
|
|
14043
14054
|
Factory_1.Factory.addGetterSetter(Node_1.Node, 'saturation', 0, (0, Validators_1.getNumberValidator)(), Factory_1.Factory.afterSetFilter);
|
|
14044
14055
|
Factory_1.Factory.addGetterSetter(Node_1.Node, 'value', 0, (0, Validators_1.getNumberValidator)(), Factory_1.Factory.afterSetFilter);
|
|
14045
14056
|
|
|
14046
|
-
/***/ }),
|
|
14047
|
-
|
|
14048
|
-
/***/ "469d":
|
|
14049
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14050
|
-
|
|
14051
|
-
"use strict";
|
|
14052
|
-
/* 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");
|
|
14053
|
-
/* 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__);
|
|
14054
|
-
/* unused harmony reexport * */
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
14057
|
/***/ }),
|
|
14058
14058
|
|
|
14059
14059
|
/***/ "4726":
|
|
@@ -56518,7 +56518,7 @@ module.exports = document && document.documentElement;
|
|
|
56518
56518
|
/***/ "9224":
|
|
56519
56519
|
/***/ (function(module) {
|
|
56520
56520
|
|
|
56521
|
-
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\"]}");
|
|
56522
56522
|
|
|
56523
56523
|
/***/ }),
|
|
56524
56524
|
|
|
@@ -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,7 +78627,7 @@ 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":"
|
|
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
|
|
78638
78631
|
var com_graphicsvue_type_template_id_7f8842df_scoped_true_render = function render() {
|
|
78639
78632
|
var _vm = this,
|
|
78640
78633
|
_c = _vm._self._c;
|
|
@@ -128811,8 +128804,8 @@ var component = normalizeComponent(
|
|
|
128811
128804
|
)
|
|
128812
128805
|
|
|
128813
128806
|
/* harmony default export */ var com_graphics = (component.exports);
|
|
128814
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
128815
|
-
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() {
|
|
128816
128809
|
var _vm = this,
|
|
128817
128810
|
_c = _vm._self._c;
|
|
128818
128811
|
return _c('div', {
|
|
@@ -128825,9 +128818,9 @@ var com_flcanvasvue_type_template_id_0f76e7f4_scoped_true_render = function rend
|
|
|
128825
128818
|
}
|
|
128826
128819
|
});
|
|
128827
128820
|
};
|
|
128828
|
-
var
|
|
128821
|
+
var com_flcanvasvue_type_template_id_cb260cfc_scoped_true_staticRenderFns = [];
|
|
128829
128822
|
|
|
128830
|
-
// 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
|
|
128831
128824
|
|
|
128832
128825
|
// EXTERNAL MODULE: ./node_modules/konva/lib/index.js
|
|
128833
128826
|
var lib = __webpack_require__("362d");
|
|
@@ -133874,7 +133867,6 @@ function decimalToRGBHex(decimalValue) {
|
|
|
133874
133867
|
};
|
|
133875
133868
|
}
|
|
133876
133869
|
function handleFn(functionName, recordDxf, entity, group, key, configParams, konvaLayer) {
|
|
133877
|
-
console.log(functionName);
|
|
133878
133870
|
switch (functionName) {
|
|
133879
133871
|
case 'LINE':
|
|
133880
133872
|
drawLine(recordDxf, entity, group, key, configParams);
|
|
@@ -134045,7 +134037,6 @@ function mtextContentAndFormattingToTextAndStyle(textAndControlChars, entity, co
|
|
|
134045
134037
|
function drawArc(recordDxf, entity, group, key, configParams) {
|
|
134046
134038
|
var color = entity.color;
|
|
134047
134039
|
var rgb = decimalToRGBHex(color);
|
|
134048
|
-
console.log(rgb);
|
|
134049
134040
|
var hex = rgb.hex;
|
|
134050
134041
|
var startAngle, endAngle;
|
|
134051
134042
|
if (entity.type === 'CIRCLE') {
|
|
@@ -134098,8 +134089,6 @@ function drawEllpse(recordDxf, entity, group, key, configParams) {
|
|
|
134098
134089
|
var xrad = Math.sqrt(Math.pow(parseFloat(entity.majorAxisEndPoint.x), 2) + Math.pow(parseFloat(entity.majorAxisEndPoint.y), 2));
|
|
134099
134090
|
var yrad = xrad * parseFloat(entity.axisRatio);
|
|
134100
134091
|
var rotation = Math.atan2(parseFloat(entity.majorAxisEndPoint.y), parseFloat(entity.majorAxisEndPoint.x));
|
|
134101
|
-
console.log(entity.startAngle);
|
|
134102
|
-
console.log(entity.endAngle);
|
|
134103
134092
|
var curve = new EllipseCurve(parseFloat(entity.center.x), parseFloat(entity.center.y), xrad, yrad, parseFloat(entity.startAngle), parseFloat(entity.endAngle), false,
|
|
134104
134093
|
// Always counterclockwise
|
|
134105
134094
|
rotation);
|
|
@@ -134141,7 +134130,6 @@ function drawEllpse(recordDxf, entity, group, key, configParams) {
|
|
|
134141
134130
|
function drawLine(recordDxf, entity, group, key, configParams) {
|
|
134142
134131
|
var color = entity.color;
|
|
134143
134132
|
var rgb = decimalToRGBHex(color);
|
|
134144
|
-
console.log(rgb);
|
|
134145
134133
|
var hex = rgb.hex;
|
|
134146
134134
|
var x1 = entity.vertices[0].x;
|
|
134147
134135
|
var y1 = entity.vertices[0].y;
|
|
@@ -134188,7 +134176,6 @@ function drawLine(recordDxf, entity, group, key, configParams) {
|
|
|
134188
134176
|
function entityFormatting_drawText(recordDxf, entity, group, key, configParams) {
|
|
134189
134177
|
var color = entity.color;
|
|
134190
134178
|
var rgb = decimalToRGBHex(color);
|
|
134191
|
-
console.log(rgb);
|
|
134192
134179
|
var hex = rgb.hex;
|
|
134193
134180
|
if (hex == '#FFFFFF') {
|
|
134194
134181
|
hex = '#000';
|
|
@@ -134276,13 +134263,10 @@ function entityFormatting_drawText(recordDxf, entity, group, key, configParams)
|
|
|
134276
134263
|
});
|
|
134277
134264
|
// group.add(dim);
|
|
134278
134265
|
}
|
|
134279
|
-
function drawHatch(recordDxf, entity, group, key, configParams) {
|
|
134280
|
-
console.log('hatch');
|
|
134281
|
-
}
|
|
134266
|
+
function drawHatch(recordDxf, entity, group, key, configParams) {}
|
|
134282
134267
|
function drawLwLine(recordDxf, entity, group, key, configParams) {
|
|
134283
134268
|
var color = entity.color;
|
|
134284
134269
|
var rgb = decimalToRGBHex(color);
|
|
134285
|
-
console.log(rgb);
|
|
134286
134270
|
var hex = rgb.hex;
|
|
134287
134271
|
if (hex == '#FFFFFF') {
|
|
134288
134272
|
hex = '#000';
|
|
@@ -135133,6 +135117,7 @@ function downloadPDF(base64, fileName) {
|
|
|
135133
135117
|
}
|
|
135134
135118
|
});
|
|
135135
135119
|
this.$nextTick(function () {
|
|
135120
|
+
console.log(_this2.$refs.svgDraw.clientHeight);
|
|
135136
135121
|
_this2.konvaStage = new lib_default.a.Stage({
|
|
135137
135122
|
className: 'stage',
|
|
135138
135123
|
container: 'konva-container',
|
|
@@ -135153,7 +135138,6 @@ function downloadPDF(base64, fileName) {
|
|
|
135153
135138
|
var scaleBy = 1.1;
|
|
135154
135139
|
//初始化缩放方法
|
|
135155
135140
|
_this2.konvaStage.on('wheel', function (e) {
|
|
135156
|
-
console.log(e);
|
|
135157
135141
|
e.evt.preventDefault();
|
|
135158
135142
|
var oldScale = _this2.konvaStage.scaleX();
|
|
135159
135143
|
var pointer = _this2.konvaStage.getPointerPosition();
|
|
@@ -135206,20 +135190,18 @@ function downloadPDF(base64, fileName) {
|
|
|
135206
135190
|
this.konvaStage.setY(y2); // 750
|
|
135207
135191
|
*/
|
|
135208
135192
|
|
|
135209
|
-
|
|
135210
|
-
|
|
135211
|
-
|
|
135212
|
-
|
|
135213
|
-
|
|
135214
|
-
|
|
135215
|
-
|
|
135216
|
-
|
|
135217
|
-
});
|
|
135218
|
-
|
|
135219
|
-
|
|
135220
|
-
|
|
135221
|
-
});
|
|
135222
|
-
_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();
|
|
135223
135205
|
});
|
|
135224
135206
|
_this2.konvaStage.on('click', function (e) {
|
|
135225
135207
|
var target = _this2.konvaStage.mouseClickEndShape;
|
|
@@ -135230,6 +135212,23 @@ function downloadPDF(base64, fileName) {
|
|
|
135230
135212
|
//销毁方法
|
|
135231
135213
|
|
|
135232
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
|
+
},
|
|
135233
135232
|
calculateScaleAndPosition: function calculateScaleAndPosition(contentBounds, stageWidth, stageHeight) {
|
|
135234
135233
|
var padding = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0.1;
|
|
135235
135234
|
// 1. 计算内容的实际宽高
|
|
@@ -135343,10 +135342,10 @@ function downloadPDF(base64, fileName) {
|
|
|
135343
135342
|
var entity = hatchEntitys[i];
|
|
135344
135343
|
var layerConfig = this.recordLayerConfig[entity.layer];
|
|
135345
135344
|
var configParams = layerConfig && Object.keys(layerConfig).length > 0 ? layerConfig : null;
|
|
135346
|
-
var color = configParams ? configParams.color :
|
|
135345
|
+
var color = configParams ? configParams.color : '#000';
|
|
135347
135346
|
var visible = configParams ? configParams.visible : true;
|
|
135348
|
-
var name = entity.layer.replace(/\s*/g,
|
|
135349
|
-
if (entity.type ==
|
|
135347
|
+
var name = entity.layer.replace(/\s*/g, '');
|
|
135348
|
+
if (entity.type == 'HATCH') {
|
|
135350
135349
|
var boundaryLoops = entity.boundaryLoops;
|
|
135351
135350
|
for (var j = 0; j < boundaryLoops.length; j++) {
|
|
135352
135351
|
var list = [];
|
|
@@ -135484,7 +135483,6 @@ function downloadPDF(base64, fileName) {
|
|
|
135484
135483
|
}
|
|
135485
135484
|
}
|
|
135486
135485
|
if (group[0].stroke == undefined) {
|
|
135487
|
-
console.log(group);
|
|
135488
135486
|
group[0].stroke = '#000';
|
|
135489
135487
|
}
|
|
135490
135488
|
var customShape = new lib_default.a.Shape({
|
|
@@ -135588,6 +135586,7 @@ function downloadPDF(base64, fileName) {
|
|
|
135588
135586
|
this.activedSvgPan.x = x;
|
|
135589
135587
|
this.activedSvgPan.y = x;
|
|
135590
135588
|
setTimeout(function () {
|
|
135589
|
+
_this3.centerDraw();
|
|
135591
135590
|
_this3.$emit('loaded');
|
|
135592
135591
|
}, 100);
|
|
135593
135592
|
},
|
|
@@ -135680,8 +135679,6 @@ function downloadPDF(base64, fileName) {
|
|
|
135680
135679
|
}
|
|
135681
135680
|
}
|
|
135682
135681
|
}
|
|
135683
|
-
console.log('bounds1');
|
|
135684
|
-
console.log(_this.bounds1);
|
|
135685
135682
|
var _loop2 = function _loop2() {
|
|
135686
135683
|
if (entities[_key]) {
|
|
135687
135684
|
var _group = [];
|
|
@@ -135702,7 +135699,6 @@ function downloadPDF(base64, fileName) {
|
|
|
135702
135699
|
}
|
|
135703
135700
|
}
|
|
135704
135701
|
if (_group[0].stroke == undefined) {
|
|
135705
|
-
console.log(_group);
|
|
135706
135702
|
_group[0].stroke = '#000';
|
|
135707
135703
|
}
|
|
135708
135704
|
var customShape = new lib_default.a.Shape({
|
|
@@ -135765,13 +135761,11 @@ function downloadPDF(base64, fileName) {
|
|
|
135765
135761
|
_ret2 = _loop2();
|
|
135766
135762
|
if (_ret2) return _ret2.v;
|
|
135767
135763
|
}
|
|
135768
|
-
var _this$
|
|
135764
|
+
var _this$calculateScaleA2 = this.calculateScaleAndPosition(_this.bounds1, this.konvaStage.width(), this.konvaStage.height(), 0.05 // 5% 边距
|
|
135769
135765
|
),
|
|
135770
|
-
scale = _this$
|
|
135771
|
-
x = _this$
|
|
135772
|
-
y = _this$
|
|
135773
|
-
console.log('test1:');
|
|
135774
|
-
console.log(this.bounds1);
|
|
135766
|
+
scale = _this$calculateScaleA2.scale,
|
|
135767
|
+
x = _this$calculateScaleA2.x,
|
|
135768
|
+
y = _this$calculateScaleA2.y;
|
|
135775
135769
|
_this.bounds1 = null;
|
|
135776
135770
|
this.konvaStage.position({
|
|
135777
135771
|
x: x,
|
|
@@ -135814,7 +135808,7 @@ function downloadPDF(base64, fileName) {
|
|
|
135814
135808
|
setColorScheme: function setColorScheme(colorType) {
|
|
135815
135809
|
var _this5 = this;
|
|
135816
135810
|
// const backgroundColor = colorType === "darkness" ? "#000" : "transparent";
|
|
135817
|
-
var color = colorType ===
|
|
135811
|
+
var color = colorType === 'darkness' ? '#fff' : '#000';
|
|
135818
135812
|
// konvaStage.container().style.background = backgroundColor;
|
|
135819
135813
|
this.konvaLayer.children.forEach(function (item) {
|
|
135820
135814
|
_this5.traverseLayer(item, color);
|
|
@@ -135851,8 +135845,8 @@ function downloadPDF(base64, fileName) {
|
|
|
135851
135845
|
});
|
|
135852
135846
|
// CONCATENATED MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=script&lang=js
|
|
135853
135847
|
/* harmony default export */ var components_com_flcanvasvue_type_script_lang_js = (com_flcanvasvue_type_script_lang_js);
|
|
135854
|
-
// EXTERNAL MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=style&index=0&id=
|
|
135855
|
-
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");
|
|
135856
135850
|
|
|
135857
135851
|
// CONCATENATED MODULE: ./packages/components/com-flcanvas/index.vue
|
|
135858
135852
|
|
|
@@ -135865,17 +135859,17 @@ var com_flcanvasvue_type_style_index_0_id_0f76e7f4_prod_lang_scss_scoped_true =
|
|
|
135865
135859
|
|
|
135866
135860
|
var com_flcanvas_component = normalizeComponent(
|
|
135867
135861
|
components_com_flcanvasvue_type_script_lang_js,
|
|
135868
|
-
|
|
135869
|
-
|
|
135862
|
+
com_flcanvasvue_type_template_id_cb260cfc_scoped_true_render,
|
|
135863
|
+
com_flcanvasvue_type_template_id_cb260cfc_scoped_true_staticRenderFns,
|
|
135870
135864
|
false,
|
|
135871
135865
|
null,
|
|
135872
|
-
"
|
|
135866
|
+
"cb260cfc",
|
|
135873
135867
|
null
|
|
135874
135868
|
|
|
135875
135869
|
)
|
|
135876
135870
|
|
|
135877
135871
|
/* harmony default export */ var com_flcanvas = (com_flcanvas_component.exports);
|
|
135878
|
-
// 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
|
|
135879
135873
|
var per_controlvue_type_template_id_f547d5c6_scoped_true_render = function render() {
|
|
135880
135874
|
var _vm = this,
|
|
135881
135875
|
_c = _vm._self._c;
|
|
@@ -135983,7 +135977,7 @@ var per_control_component = normalizeComponent(
|
|
|
135983
135977
|
)
|
|
135984
135978
|
|
|
135985
135979
|
/* harmony default export */ var per_control = (per_control_component.exports);
|
|
135986
|
-
// 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
|
|
135987
135981
|
var pidvue_type_template_id_2572c0e2_scoped_true_render = function render() {
|
|
135988
135982
|
var _vm = this,
|
|
135989
135983
|
_c = _vm._self._c;
|
|
@@ -136030,7 +136024,7 @@ var browserify_default = /*#__PURE__*/__webpack_require__.n(browserify);
|
|
|
136030
136024
|
var html2canvas = __webpack_require__("c0e9");
|
|
136031
136025
|
var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
136032
136026
|
|
|
136033
|
-
// 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
|
|
136034
136028
|
var ann_toolvue_type_template_id_4b17bce0_scoped_true_render = function render() {
|
|
136035
136029
|
var _vm = this,
|
|
136036
136030
|
_c = _vm._self._c;
|
|
@@ -137062,6 +137056,13 @@ exports.f = __webpack_require__("cc15");
|
|
|
137062
137056
|
|
|
137063
137057
|
/***/ }),
|
|
137064
137058
|
|
|
137059
|
+
/***/ "fcd8":
|
|
137060
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
137061
|
+
|
|
137062
|
+
// extracted by mini-css-extract-plugin
|
|
137063
|
+
|
|
137064
|
+
/***/ }),
|
|
137065
|
+
|
|
137065
137066
|
/***/ "fce6":
|
|
137066
137067
|
/***/ (function(module, exports, __webpack_require__) {
|
|
137067
137068
|
|