cnhis-design-vue 0.1.32 → 0.1.36
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/{docs_202193.zip → docs_2021926.zip} +0 -0
- package/lib/cui.common.js +564 -368
- package/lib/cui.umd.js +564 -368
- package/lib/cui.umd.min.js +6 -6
- package/package.json +1 -1
- package/packages/fabric-chart/src/FabricChart.vue +23 -9
- package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +52 -71
- package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +74 -49
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +5 -6
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +158 -81
- package/packages/fabric-chart/src/mixins/fabricCommon.js +4 -5
- package/packages/fabric-chart/src/mixins/polylineCommon.js +4 -2
package/lib/cui.umd.js
CHANGED
|
@@ -62590,6 +62590,20 @@ module.exports = exports;
|
|
|
62590
62590
|
|
|
62591
62591
|
}));
|
|
62592
62592
|
|
|
62593
|
+
/***/ }),
|
|
62594
|
+
|
|
62595
|
+
/***/ "6d12":
|
|
62596
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
62597
|
+
|
|
62598
|
+
// Imports
|
|
62599
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("a1a8");
|
|
62600
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
62601
|
+
// Module
|
|
62602
|
+
exports.push([module.i, ".c-fabric-chart[data-v-3bab1499]{position:relative}", ""]);
|
|
62603
|
+
// Exports
|
|
62604
|
+
module.exports = exports;
|
|
62605
|
+
|
|
62606
|
+
|
|
62593
62607
|
/***/ }),
|
|
62594
62608
|
|
|
62595
62609
|
/***/ "6d2f":
|
|
@@ -167832,6 +167846,22 @@ module.exports = { "default": __webpack_require__("9b21"), __esModule: true };
|
|
|
167832
167846
|
|
|
167833
167847
|
/***/ }),
|
|
167834
167848
|
|
|
167849
|
+
/***/ "ae0b":
|
|
167850
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
167851
|
+
|
|
167852
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
167853
|
+
|
|
167854
|
+
// load the styles
|
|
167855
|
+
var content = __webpack_require__("6d12");
|
|
167856
|
+
if(content.__esModule) content = content.default;
|
|
167857
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
167858
|
+
if(content.locals) module.exports = content.locals;
|
|
167859
|
+
// add the styles to the DOM
|
|
167860
|
+
var add = __webpack_require__("5925").default
|
|
167861
|
+
var update = add("9b703a60", content, true, {"sourceMap":false,"shadowMode":false});
|
|
167862
|
+
|
|
167863
|
+
/***/ }),
|
|
167864
|
+
|
|
167835
167865
|
/***/ "ae93":
|
|
167836
167866
|
/***/ (function(module, exports, __webpack_require__) {
|
|
167837
167867
|
|
|
@@ -175204,17 +175234,6 @@ return arrayTreeFilter;
|
|
|
175204
175234
|
})));
|
|
175205
175235
|
|
|
175206
175236
|
|
|
175207
|
-
/***/ }),
|
|
175208
|
-
|
|
175209
|
-
/***/ "b8b9":
|
|
175210
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
175211
|
-
|
|
175212
|
-
"use strict";
|
|
175213
|
-
/* harmony import */ var _node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_9_8_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_8_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_6ad9fd30_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ef6f");
|
|
175214
|
-
/* harmony import */ var _node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_9_8_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_8_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_6ad9fd30_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_9_8_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_8_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_6ad9fd30_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
175215
|
-
/* unused harmony reexport * */
|
|
175216
|
-
|
|
175217
|
-
|
|
175218
175237
|
/***/ }),
|
|
175219
175238
|
|
|
175220
175239
|
/***/ "b8e7":
|
|
@@ -175643,20 +175662,6 @@ function range (start, stop, step) {
|
|
|
175643
175662
|
module.exports = range
|
|
175644
175663
|
|
|
175645
175664
|
|
|
175646
|
-
/***/ }),
|
|
175647
|
-
|
|
175648
|
-
/***/ "ba5e":
|
|
175649
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
175650
|
-
|
|
175651
|
-
// Imports
|
|
175652
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("a1a8");
|
|
175653
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
175654
|
-
// Module
|
|
175655
|
-
exports.push([module.i, ".c-fabric-chart[data-v-6ad9fd30]{position:relative}", ""]);
|
|
175656
|
-
// Exports
|
|
175657
|
-
module.exports = exports;
|
|
175658
|
-
|
|
175659
|
-
|
|
175660
175665
|
/***/ }),
|
|
175661
175666
|
|
|
175662
175667
|
/***/ "ba9f":
|
|
@@ -193319,6 +193324,17 @@ $({ target: 'Array', proto: true }, {
|
|
|
193319
193324
|
addToUnscopables('fill');
|
|
193320
193325
|
|
|
193321
193326
|
|
|
193327
|
+
/***/ }),
|
|
193328
|
+
|
|
193329
|
+
/***/ "cb41":
|
|
193330
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
193331
|
+
|
|
193332
|
+
"use strict";
|
|
193333
|
+
/* harmony import */ var _node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_9_8_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_8_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_3bab1499_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ae0b");
|
|
193334
|
+
/* harmony import */ var _node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_9_8_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_8_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_3bab1499_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_15_9_8_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_8_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_3bab1499_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
193335
|
+
/* unused harmony reexport * */
|
|
193336
|
+
|
|
193337
|
+
|
|
193322
193338
|
/***/ }),
|
|
193323
193339
|
|
|
193324
193340
|
/***/ "cb44":
|
|
@@ -207774,22 +207790,6 @@ var isRegExp = helperCreateInInObjectString('RegExp')
|
|
|
207774
207790
|
module.exports = isRegExp
|
|
207775
207791
|
|
|
207776
207792
|
|
|
207777
|
-
/***/ }),
|
|
207778
|
-
|
|
207779
|
-
/***/ "ef6f":
|
|
207780
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
207781
|
-
|
|
207782
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
207783
|
-
|
|
207784
|
-
// load the styles
|
|
207785
|
-
var content = __webpack_require__("ba5e");
|
|
207786
|
-
if(content.__esModule) content = content.default;
|
|
207787
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
207788
|
-
if(content.locals) module.exports = content.locals;
|
|
207789
|
-
// add the styles to the DOM
|
|
207790
|
-
var add = __webpack_require__("5925").default
|
|
207791
|
-
var update = add("f6678db0", content, true, {"sourceMap":false,"shadowMode":false});
|
|
207792
|
-
|
|
207793
207793
|
/***/ }),
|
|
207794
207794
|
|
|
207795
207795
|
/***/ "ef86":
|
|
@@ -267997,19 +267997,19 @@ BigTable.install = function (Vue) {
|
|
|
267997
267997
|
|
|
267998
267998
|
|
|
267999
267999
|
/* harmony default export */ var packages_table = (BigTable);
|
|
268000
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4214fed6-vue-loader-template"}!./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=
|
|
268001
|
-
var
|
|
268002
|
-
var
|
|
268000
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4214fed6-vue-loader-template"}!./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=3bab1499&scoped=true&
|
|
268001
|
+
var FabricChartvue_type_template_id_3bab1499_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-fabric-chart",style:({'width': _vm.canvasWidth})},[(_vm.rendercanvas)?_c(("FabricCanvas" + (_vm.templateData.type || '')),{ref:"canvasEle",tag:"component",attrs:{"id":_vm.id,"templateData":_vm.templateData}},[(_vm.templateData.type)?[_c('fabric-grid'),_c('fabric-top2',{attrs:{"templateData":_vm.templateData}}),_c('fabric-left2',{attrs:{"templateData":_vm.templateData}}),_c('fabric-right2',{attrs:{"templateData":_vm.templateData}}),_c('fabric-bottom2',{attrs:{"templateData":_vm.templateData}}),_c('fabric-center2',_vm._g({attrs:{"other":_vm.templateData.other,"polyline":_vm.templateData.left.leftYScalevalue},on:{"pointOperation":_vm.pointOperation}},_vm.$listeners))]:[(_vm.hasXScalevalue)?_c('fabric-text-group',_vm._g({attrs:{"templateData":_vm.templateData,"other":_vm.templateData.other}},_vm.$listeners)):_vm._e(),_c('fabric-grid'),(_vm.hasTable)?_c('fabric-scale-value',{attrs:{"templateData":_vm.templateData}}):_vm._e(),(_vm.hasTopTable)?_c('fabric-lines',_vm._g({ref:"lines",attrs:{"linesObj":_vm.templateData.top}},_vm.$listeners)):_vm._e(),(_vm.hasTable)?_c('fabric-polylines',_vm._g({ref:"polylines",attrs:{"polyline":_vm.polylines,"other":_vm.templateData.left.other || {}},on:{"pointOperation":_vm.pointOperation}},_vm.$listeners)):_vm._e()]],2):_vm._e()],1)}
|
|
268002
|
+
var FabricChartvue_type_template_id_3bab1499_scoped_true_staticRenderFns = []
|
|
268003
268003
|
|
|
268004
268004
|
|
|
268005
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=
|
|
268005
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=3bab1499&scoped=true&
|
|
268006
268006
|
|
|
268007
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4214fed6-vue-loader-template"}!./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=
|
|
268008
|
-
var
|
|
268009
|
-
var
|
|
268007
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4214fed6-vue-loader-template"}!./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=5bce0101&
|
|
268008
|
+
var FabricCanvasvue_type_template_id_5bce0101_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('canvas',{attrs:{"id":_vm.id}}),_vm._t("default")],2)}
|
|
268009
|
+
var FabricCanvasvue_type_template_id_5bce0101_staticRenderFns = []
|
|
268010
268010
|
|
|
268011
268011
|
|
|
268012
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=
|
|
268012
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=5bce0101&
|
|
268013
268013
|
|
|
268014
268014
|
// EXTERNAL MODULE: ./node_modules/fabric/dist/fabric.js
|
|
268015
268015
|
var fabric = __webpack_require__("7a94");
|
|
@@ -268030,6 +268030,14 @@ var fabric = __webpack_require__("7a94");
|
|
|
268030
268030
|
//
|
|
268031
268031
|
//
|
|
268032
268032
|
|
|
268033
|
+
var topSpaceHeight = 10; // templateData.top.spaceHeight
|
|
268034
|
+
|
|
268035
|
+
var topSpaceGridNumber = 3; // templateData.top.xScalevalue.spaceGridNumber
|
|
268036
|
+
|
|
268037
|
+
var leftSpaceGridNumber = 2; // templateData.left.leftYScalevalue.spaceGridNumber
|
|
268038
|
+
|
|
268039
|
+
var rightSpaceGridNumber = 2; // templateData.right.rightYScalevalue.spaceGridNumber
|
|
268040
|
+
|
|
268033
268041
|
/* harmony default export */ var FabricCanvasvue_type_script_lang_js_ = ({
|
|
268034
268042
|
name: 'FabricCanvas',
|
|
268035
268043
|
props: {
|
|
@@ -268103,14 +268111,23 @@ var fabric = __webpack_require__("7a94");
|
|
|
268103
268111
|
}
|
|
268104
268112
|
};
|
|
268105
268113
|
},
|
|
268106
|
-
|
|
268107
|
-
|
|
268108
|
-
|
|
268109
|
-
|
|
268110
|
-
|
|
268111
|
-
|
|
268112
|
-
|
|
268113
|
-
|
|
268114
|
+
created: function created() {
|
|
268115
|
+
if (!this.templateData.top) {
|
|
268116
|
+
try {
|
|
268117
|
+
throw new Error('缺少顶部数据对象, 无法生成水平方向刻度');
|
|
268118
|
+
} catch (error) {
|
|
268119
|
+
console.warn(error);
|
|
268120
|
+
}
|
|
268121
|
+
}
|
|
268122
|
+
|
|
268123
|
+
if (!this.templateData.left || !this.templateData.right) {
|
|
268124
|
+
try {
|
|
268125
|
+
throw new Error('缺少左/右侧数据对象, 无法生成垂直方向刻度');
|
|
268126
|
+
} catch (error) {
|
|
268127
|
+
console.warn(error);
|
|
268128
|
+
}
|
|
268129
|
+
}
|
|
268130
|
+
},
|
|
268114
268131
|
computed: {
|
|
268115
268132
|
canvasWidth: function canvasWidth() {
|
|
268116
268133
|
// 画布宽度
|
|
@@ -268121,67 +268138,41 @@ var fabric = __webpack_require__("7a94");
|
|
|
268121
268138
|
return this.templateData.canvasHeight;
|
|
268122
268139
|
},
|
|
268123
268140
|
treeTableminCellWidth: function treeTableminCellWidth() {
|
|
268124
|
-
var _this$templateData$to;
|
|
268141
|
+
var _this$templateData$to, _this$templateData$le;
|
|
268125
268142
|
|
|
268126
|
-
return ((_this$templateData$to = this.templateData.top) === null || _this$templateData$to === void 0 ? void 0 : _this$templateData$to.treeTableminCellWidth) || 20;
|
|
268143
|
+
return ((_this$templateData$to = this.templateData.top) === null || _this$templateData$to === void 0 ? void 0 : _this$templateData$to.treeTableminCellWidth) || ((_this$templateData$le = this.templateData.left) === null || _this$templateData$le === void 0 ? void 0 : _this$templateData$le.titleWidth) || 20;
|
|
268127
268144
|
},
|
|
268128
268145
|
gridXNumber: function gridXNumber() {
|
|
268146
|
+
var _this$templateData$to2, _this$templateData$to3, _this$templateData$to4, _this$templateData$to5, _this$templateData$to6;
|
|
268147
|
+
|
|
268129
268148
|
// 网格水平方向总数 如果设置了默认值就直接取用
|
|
268130
268149
|
if (this.templateData.table.mainXCell && this.templateData.table.subXCell) {
|
|
268131
268150
|
return this.templateData.table.mainXCell * this.templateData.table.subXCell;
|
|
268132
268151
|
} // 如果没设置 就从顶部列表内自己计算一下 list遍历后将每一项完全展开后的数组长度存入topListLength取出最大值即可
|
|
268133
|
-
// const topLenList = [];
|
|
268134
|
-
// this.templateData.top.list.forEach(item => topLenList.push(item.flat(Infinity).length));
|
|
268135
|
-
// return Math.max(...topLenList);
|
|
268136
268152
|
|
|
268137
268153
|
|
|
268138
|
-
var spaceGridNumber = this.templateData.top.xScalevalue.spaceGridNumber ||
|
|
268139
|
-
return this.templateData.top.xScalevalue.list.length * spaceGridNumber;
|
|
268154
|
+
var spaceGridNumber = ((_this$templateData$to2 = this.templateData.top) === null || _this$templateData$to2 === void 0 ? void 0 : (_this$templateData$to3 = _this$templateData$to2.xScalevalue) === null || _this$templateData$to3 === void 0 ? void 0 : _this$templateData$to3.spaceGridNumber) || topSpaceGridNumber;
|
|
268155
|
+
return (((_this$templateData$to4 = this.templateData.top) === null || _this$templateData$to4 === void 0 ? void 0 : (_this$templateData$to5 = _this$templateData$to4.xScalevalue) === null || _this$templateData$to5 === void 0 ? void 0 : (_this$templateData$to6 = _this$templateData$to5.list) === null || _this$templateData$to6 === void 0 ? void 0 : _this$templateData$to6.length) || 1) * spaceGridNumber;
|
|
268140
268156
|
},
|
|
268141
268157
|
gridYNumber: function gridYNumber() {
|
|
268142
268158
|
// 网格垂直方向总数
|
|
268143
|
-
|
|
268144
|
-
return this.templateData.table.mainYCell * this.templateData.table.subYCell; // }
|
|
268145
|
-
// const leftLenList = [];
|
|
268146
|
-
// this.templateData.left.list.forEach(item => {
|
|
268147
|
-
// if (isObject(item)) {
|
|
268148
|
-
// // 当前列内没有上下区分 左右区分针对item.list遍历即可 占用列数 => item.list.length 示例: 温度: 摄氏度 华氏度
|
|
268149
|
-
// leftLenList.push(item.list.length);
|
|
268150
|
-
// } else if (Array.isArray(item)) {
|
|
268151
|
-
// // 当前列内有上下之分 列数暂时默认 +1 ----- 若有更复杂情况(上下列中含有左右列的情况)可以改为递归形式
|
|
268152
|
-
// let len = 0;
|
|
268153
|
-
// item.forEach(v => (len += v.list.length));
|
|
268154
|
-
// leftLenList.push(len);
|
|
268155
|
-
// }
|
|
268156
|
-
// });
|
|
268157
|
-
// return Math.max(...leftLenList);
|
|
268159
|
+
return this.templateData.table.mainYCell * this.templateData.table.subYCell;
|
|
268158
268160
|
},
|
|
268159
268161
|
originX: function originX() {
|
|
268162
|
+
var _this$templateData$to7, _this$templateData$le2;
|
|
268163
|
+
|
|
268160
268164
|
// 网格左侧起始坐标 X, 也是整个区域左侧列表坐标最大坐标值 取出初始化后网格区域水平方向多出的余数 添加到左栏宽度上
|
|
268161
|
-
|
|
268162
|
-
// this.templateData.left.list.forEach(item => {
|
|
268163
|
-
// if (isObject(item)) { // 当前列内没有上下区分 左右区分针对item.list遍历即可 占用列数 => item.list.length 示例: 温度: 摄氏度 华氏度
|
|
268164
|
-
// columns += item.list.length;
|
|
268165
|
-
// } else if (Array.isArray(item)) { // 当前列内有上下之分 列数暂时默认 +1 ----- 若有更复杂情况(上下列中含有左右列的情况)可以改为递归形式
|
|
268166
|
-
// columns += 1;
|
|
268167
|
-
// }
|
|
268168
|
-
// })
|
|
268169
|
-
// const originX = this.templateData.left.width * columns;
|
|
268170
|
-
// const residue = (this.endX - originX) % this.gridXNumber;
|
|
268171
|
-
var originX = this.templateData.top.treeTableWidth;
|
|
268165
|
+
var originX = ((_this$templateData$to7 = this.templateData.top) === null || _this$templateData$to7 === void 0 ? void 0 : _this$templateData$to7.treeTableWidth) || ((_this$templateData$le2 = this.templateData.left) === null || _this$templateData$le2 === void 0 ? void 0 : _this$templateData$le2.width) || 200;
|
|
268172
268166
|
var residue = (this.endX - originX) % this.gridXNumber;
|
|
268173
268167
|
return originX + residue;
|
|
268174
268168
|
},
|
|
268175
268169
|
originY: function originY() {
|
|
268170
|
+
var _this$templateData$to8;
|
|
268171
|
+
|
|
268176
268172
|
// 顶部列表高度 网格不需要的高度放到顶部,因为底部不一定存在列表
|
|
268177
|
-
// const height = this.templateData.top.height ? this.templateData.top.height : 30;
|
|
268178
|
-
// const topheight = this.templateData.top.list.length * height;
|
|
268179
|
-
// // const residue = (this.canvasHeight - topheight - this.endY) % this.gridYNumber; // 此处算法不对,会导致后面高度值计算出小数,造成表格重影
|
|
268180
|
-
// const residue = (this.endY - topheight) % this.gridYNumber;
|
|
268181
|
-
// return topheight + residue;
|
|
268182
268173
|
var topHeight = this.endYTop;
|
|
268183
268174
|
var residue = (this.endY - topHeight) % this.gridYNumber;
|
|
268184
|
-
return topHeight + residue + this.templateData.top.spaceHeight;
|
|
268175
|
+
return topHeight + residue + (((_this$templateData$to8 = this.templateData.top) === null || _this$templateData$to8 === void 0 ? void 0 : _this$templateData$to8.spaceHeight) || topSpaceHeight);
|
|
268185
268176
|
},
|
|
268186
268177
|
endX: function endX() {
|
|
268187
268178
|
// 网格区域水平方向最大坐标值, 也是整个画布右侧列表坐标起始值,网格右下角x轴坐标值
|
|
@@ -268203,21 +268194,27 @@ var fabric = __webpack_require__("7a94");
|
|
|
268203
268194
|
return (this.endY - this.originY) / this.gridYNumber;
|
|
268204
268195
|
},
|
|
268205
268196
|
spaceHeight: function spaceHeight() {
|
|
268197
|
+
var _this$templateData$to9;
|
|
268198
|
+
|
|
268206
268199
|
// 头部表格底部空白位置的高,用于显示x轴时间点
|
|
268207
268200
|
var topHeight = this.endYTop;
|
|
268208
268201
|
var residue = (this.endY - topHeight) % this.gridYNumber;
|
|
268209
|
-
return residue + this.templateData.top.spaceHeight;
|
|
268202
|
+
return residue + (((_this$templateData$to9 = this.templateData.top) === null || _this$templateData$to9 === void 0 ? void 0 : _this$templateData$to9.spaceHeight) || topSpaceHeight);
|
|
268210
268203
|
},
|
|
268211
268204
|
yCellHeightTop: function yCellHeightTop() {
|
|
268205
|
+
var _this$templateData$to10;
|
|
268206
|
+
|
|
268212
268207
|
// 头部表格垂直方向网格高度
|
|
268213
|
-
return this.templateData.top.treeTableminCellHeight;
|
|
268208
|
+
return ((_this$templateData$to10 = this.templateData.top) === null || _this$templateData$to10 === void 0 ? void 0 : _this$templateData$to10.treeTableminCellHeight) || 20;
|
|
268214
268209
|
},
|
|
268215
268210
|
endYTop: function endYTop() {
|
|
268216
268211
|
return this.gridYnumberTop * this.yCellHeightTop;
|
|
268217
268212
|
},
|
|
268218
268213
|
// 转换为时间戳的x轴时间列表
|
|
268219
268214
|
xScaleList: function xScaleList() {
|
|
268220
|
-
var
|
|
268215
|
+
var _this$templateData$to11, _this$templateData$to12;
|
|
268216
|
+
|
|
268217
|
+
var list = ((_this$templateData$to11 = this.templateData.top) === null || _this$templateData$to11 === void 0 ? void 0 : (_this$templateData$to12 = _this$templateData$to11.xScalevalue) === null || _this$templateData$to12 === void 0 ? void 0 : _this$templateData$to12.list) || [];
|
|
268221
268218
|
return list.map(function (item) {
|
|
268222
268219
|
return new Date(item).getTime();
|
|
268223
268220
|
});
|
|
@@ -268255,13 +268252,17 @@ var fabric = __webpack_require__("7a94");
|
|
|
268255
268252
|
// },
|
|
268256
268253
|
// y轴每mmHg的脉搏/血压的高度值
|
|
268257
268254
|
yScaleCellLeft: function yScaleCellLeft() {
|
|
268258
|
-
var
|
|
268259
|
-
|
|
268255
|
+
var _this$templateData$le3, _this$templateData$le4, _this$templateData$le5, _this$templateData$le6;
|
|
268256
|
+
|
|
268257
|
+
var list = ((_this$templateData$le3 = this.templateData.left) === null || _this$templateData$le3 === void 0 ? void 0 : (_this$templateData$le4 = _this$templateData$le3.leftYScalevalue) === null || _this$templateData$le4 === void 0 ? void 0 : _this$templateData$le4.list) || [];
|
|
268258
|
+
return list !== null && list !== void 0 && list.length ? this.yCellHeight / ((parseInt(list[1]) - parseInt(list[0])) / (((_this$templateData$le5 = this.templateData.left) === null || _this$templateData$le5 === void 0 ? void 0 : (_this$templateData$le6 = _this$templateData$le5.leftYScalevalue) === null || _this$templateData$le6 === void 0 ? void 0 : _this$templateData$le6.spaceGridNumber) || leftSpaceGridNumber)) : 10;
|
|
268260
268259
|
},
|
|
268261
268260
|
// y轴每摄氏度的高度值
|
|
268262
268261
|
yScaleCellRight: function yScaleCellRight() {
|
|
268263
|
-
var
|
|
268264
|
-
|
|
268262
|
+
var _this$templateData$ri, _this$templateData$ri2, _this$templateData$ri3, _this$templateData$ri4;
|
|
268263
|
+
|
|
268264
|
+
var list = ((_this$templateData$ri = this.templateData.right) === null || _this$templateData$ri === void 0 ? void 0 : (_this$templateData$ri2 = _this$templateData$ri.rightYScalevalue) === null || _this$templateData$ri2 === void 0 ? void 0 : _this$templateData$ri2.list) || [];
|
|
268265
|
+
return list !== null && list !== void 0 && list.length ? this.yCellHeight / ((parseInt(list[1]) - parseInt(list[0])) / (((_this$templateData$ri3 = this.templateData.right) === null || _this$templateData$ri3 === void 0 ? void 0 : (_this$templateData$ri4 = _this$templateData$ri3.rightYScalevalue) === null || _this$templateData$ri4 === void 0 ? void 0 : _this$templateData$ri4.spaceGridNumber) || rightSpaceGridNumber)) : 10;
|
|
268265
268266
|
},
|
|
268266
268267
|
eventStyle: function eventStyle() {
|
|
268267
268268
|
var _this$templateData$ta;
|
|
@@ -268277,17 +268278,24 @@ var fabric = __webpack_require__("7a94");
|
|
|
268277
268278
|
},
|
|
268278
268279
|
methods: {
|
|
268279
268280
|
init: function init() {
|
|
268281
|
+
var _this$templateData$to13, _this$templateData$to14;
|
|
268282
|
+
|
|
268280
268283
|
this.canvas = new this.fabric.Canvas('c-fabric-canvas', objectSpread2_objectSpread2({
|
|
268281
268284
|
width: this.templateData.canvasWidth,
|
|
268282
268285
|
height: this.templateData.canvasHeight
|
|
268283
268286
|
}, this.canvasAttr));
|
|
268284
|
-
|
|
268285
|
-
|
|
268287
|
+
|
|
268288
|
+
if ((_this$templateData$to13 = this.templateData.top) !== null && _this$templateData$to13 !== void 0 && (_this$templateData$to14 = _this$templateData$to13.list) !== null && _this$templateData$to14 !== void 0 && _this$templateData$to14.length) {
|
|
268289
|
+
this.getGridYnumberTop(this.templateData.top.list);
|
|
268290
|
+
this.treeList = this.setTreeStyle(this.templateData.top.list);
|
|
268291
|
+
}
|
|
268286
268292
|
},
|
|
268287
268293
|
getGridYnumberTop: function getGridYnumberTop(list) {
|
|
268288
268294
|
// 头部表格垂直方向网格总数
|
|
268289
268295
|
for (var i = 0; i < list.length; i++) {
|
|
268290
|
-
|
|
268296
|
+
var _list$i$children;
|
|
268297
|
+
|
|
268298
|
+
if ((_list$i$children = list[i].children) !== null && _list$i$children !== void 0 && _list$i$children.length) {
|
|
268291
268299
|
this.getGridYnumberTop(list[i].children);
|
|
268292
268300
|
} else {
|
|
268293
268301
|
this.gridYnumberTop++;
|
|
@@ -268304,28 +268312,33 @@ var fabric = __webpack_require__("7a94");
|
|
|
268304
268312
|
setTreeStyle: function setTreeStyle(list) {
|
|
268305
268313
|
var levelCol = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
268306
268314
|
var arr = [];
|
|
268315
|
+
var _this$templateData$to15 = this.templateData.top,
|
|
268316
|
+
treeTableminCellWidth = _this$templateData$to15.treeTableminCellWidth,
|
|
268317
|
+
treeTableminCellHeight = _this$templateData$to15.treeTableminCellHeight;
|
|
268307
268318
|
|
|
268308
268319
|
for (var i = 0; i < list.length; i++) {
|
|
268320
|
+
var _list$i$children2;
|
|
268321
|
+
|
|
268309
268322
|
var obj = {};
|
|
268310
|
-
obj
|
|
268311
|
-
|
|
268312
|
-
|
|
268323
|
+
Object.assign(obj, {
|
|
268324
|
+
title: list[i].title || '',
|
|
268325
|
+
left: levelCol * treeTableminCellWidth,
|
|
268326
|
+
top: this.levelRow * treeTableminCellHeight
|
|
268327
|
+
});
|
|
268313
268328
|
this.levelRow++;
|
|
268314
268329
|
|
|
268315
|
-
if (
|
|
268330
|
+
if ((_list$i$children2 = list[i].children) !== null && _list$i$children2 !== void 0 && _list$i$children2.length) {
|
|
268331
|
+
this.levelRow--;
|
|
268316
268332
|
obj.title = obj.title.split('').join('\n'); // 如果有子级则文字竖形排列
|
|
268317
268333
|
|
|
268318
|
-
|
|
268319
|
-
obj.width = this.templateData.top.treeTableminCellWidth;
|
|
268334
|
+
obj.width = treeTableminCellWidth;
|
|
268320
268335
|
obj.children = this.setTreeStyle(list[i].children, levelCol + 1);
|
|
268321
268336
|
obj.subSize = this.getChildrenSize(list[i].children);
|
|
268322
|
-
obj.height = obj.subSize *
|
|
268337
|
+
obj.height = obj.subSize * treeTableminCellHeight;
|
|
268323
268338
|
} else {
|
|
268324
268339
|
obj.width = this.originX - obj.left;
|
|
268325
|
-
obj.height =
|
|
268326
|
-
obj.
|
|
268327
|
-
obj.lineList = _toConsumableArray(list[i].lineList);
|
|
268328
|
-
obj.type = list[i].type;
|
|
268340
|
+
obj.height = treeTableminCellHeight;
|
|
268341
|
+
obj.lineList = JSON.parse(JSON.stringify(list[i].lineList));
|
|
268329
268342
|
}
|
|
268330
268343
|
|
|
268331
268344
|
arr.push(obj);
|
|
@@ -268337,7 +268350,9 @@ var fabric = __webpack_require__("7a94");
|
|
|
268337
268350
|
var subSize = 0;
|
|
268338
268351
|
|
|
268339
268352
|
for (var i = 0; i < list.length; i++) {
|
|
268340
|
-
|
|
268353
|
+
var _list$i$children3;
|
|
268354
|
+
|
|
268355
|
+
if ((_list$i$children3 = list[i].children) !== null && _list$i$children3 !== void 0 && _list$i$children3.length) {
|
|
268341
268356
|
subSize += this.getChildrenSize(list[i].children);
|
|
268342
268357
|
} else {
|
|
268343
268358
|
subSize += 1;
|
|
@@ -268375,8 +268390,8 @@ var fabric = __webpack_require__("7a94");
|
|
|
268375
268390
|
|
|
268376
268391
|
var FabricCanvas_component = normalizeComponent(
|
|
268377
268392
|
fabric_chart_FabricCanvasvue_type_script_lang_js_,
|
|
268378
|
-
|
|
268379
|
-
|
|
268393
|
+
FabricCanvasvue_type_template_id_5bce0101_render,
|
|
268394
|
+
FabricCanvasvue_type_template_id_5bce0101_staticRenderFns,
|
|
268380
268395
|
false,
|
|
268381
268396
|
null,
|
|
268382
268397
|
null,
|
|
@@ -268625,12 +268640,12 @@ var fabric_chart2_FabricCanvas_component = normalizeComponent(
|
|
|
268625
268640
|
)
|
|
268626
268641
|
|
|
268627
268642
|
/* harmony default export */ var fabric_chart2_FabricCanvas = (fabric_chart2_FabricCanvas_component.exports);
|
|
268628
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4214fed6-vue-loader-template"}!./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=
|
|
268629
|
-
var
|
|
268630
|
-
var
|
|
268643
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4214fed6-vue-loader-template"}!./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=77eb0f8b&
|
|
268644
|
+
var FabricPolylinesvue_type_template_id_77eb0f8b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"poly-line"},[(_vm.isRightVisible)?_c('MouseRightClick',{attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}):_vm._e(),(_vm.isDropVisible)?_c('DropPopup',{attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}}):_vm._e()],1)}
|
|
268645
|
+
var FabricPolylinesvue_type_template_id_77eb0f8b_staticRenderFns = []
|
|
268631
268646
|
|
|
268632
268647
|
|
|
268633
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=
|
|
268648
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=77eb0f8b&
|
|
268634
268649
|
|
|
268635
268650
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
268636
268651
|
function _arrayWithHoles(arr) {
|
|
@@ -268685,6 +268700,9 @@ function _nonIterableRest() {
|
|
|
268685
268700
|
function _slicedToArray(arr, i) {
|
|
268686
268701
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
268687
268702
|
}
|
|
268703
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.fill.js
|
|
268704
|
+
var es_array_fill = __webpack_require__("cb29");
|
|
268705
|
+
|
|
268688
268706
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.freeze.js
|
|
268689
268707
|
var es_object_freeze = __webpack_require__("dca8");
|
|
268690
268708
|
|
|
@@ -268743,11 +268761,9 @@ var es_object_freeze = __webpack_require__("dca8");
|
|
|
268743
268761
|
var index = xScaleCellList.findIndex(function (v) {
|
|
268744
268762
|
return v.x >= left;
|
|
268745
268763
|
});
|
|
268746
|
-
|
|
268747
|
-
|
|
268748
|
-
|
|
268749
|
-
time = obj.time + (left - obj.x) * obj.xScaleTime;
|
|
268750
|
-
}
|
|
268764
|
+
!~index && (index = xScaleCellList.length);
|
|
268765
|
+
var obj = xScaleCellList[index - 1];
|
|
268766
|
+
time = obj.time + (left - obj.x) * obj.xScaleTime;
|
|
268751
268767
|
}
|
|
268752
268768
|
|
|
268753
268769
|
var d = new Date(time);
|
|
@@ -269115,7 +269131,8 @@ var type_isObject = function isObject(obj) {
|
|
|
269115
269131
|
methods: {
|
|
269116
269132
|
// 折线点移动限制 目前仅限制不能移动出画布
|
|
269117
269133
|
pointMoveLimit: function pointMoveLimit(point) {
|
|
269118
|
-
point.setCoords(); //
|
|
269134
|
+
point.setCoords(); // 需调用setCoords()才能重新计算控制位置(改变Object状态)
|
|
269135
|
+
// const objBoundingBox = point.getBoundingRect(); // 此方式会导致结果不精准,应该用point的top值判断
|
|
269119
269136
|
|
|
269120
269137
|
var leftLimit = point.prevPoint ? point.prevPoint.get('left') : this.propItems.originX;
|
|
269121
269138
|
var rightLimit = point.nextPoint ? point.nextPoint.get('left') : this.propItems.endX;
|
|
@@ -269135,8 +269152,9 @@ var type_isObject = function isObject(obj) {
|
|
|
269135
269152
|
if (point.left > rightLimit) {
|
|
269136
269153
|
point.set('left', rightLimit);
|
|
269137
269154
|
}
|
|
269138
|
-
|
|
269139
|
-
|
|
269155
|
+
},
|
|
269156
|
+
getContainer: function getContainer() {
|
|
269157
|
+
return this.$el;
|
|
269140
269158
|
},
|
|
269141
269159
|
|
|
269142
269160
|
/**
|
|
@@ -269455,6 +269473,7 @@ var defaultVaule_data = {
|
|
|
269455
269473
|
|
|
269456
269474
|
|
|
269457
269475
|
|
|
269476
|
+
|
|
269458
269477
|
|
|
269459
269478
|
|
|
269460
269479
|
//
|
|
@@ -269553,9 +269572,6 @@ var rightClickNode = [{
|
|
|
269553
269572
|
});
|
|
269554
269573
|
},
|
|
269555
269574
|
methods: {
|
|
269556
|
-
getContainer: function getContainer() {
|
|
269557
|
-
return this.$el;
|
|
269558
|
-
},
|
|
269559
269575
|
createEvent: function createEvent() {
|
|
269560
269576
|
var _this2 = this;
|
|
269561
269577
|
|
|
@@ -269736,9 +269752,10 @@ var rightClickNode = [{
|
|
|
269736
269752
|
};
|
|
269737
269753
|
leftTitleList.forEach( /*#__PURE__*/function () {
|
|
269738
269754
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(v, i) {
|
|
269739
|
-
var _v$
|
|
269755
|
+
var _v$pointAttr2;
|
|
269756
|
+
|
|
269757
|
+
var baseTop, top, left, pointId, _v$pointAttr, _v$pointAttr$fill, fillColor, stroke, text, isOriginXCenter, iconLeft, option, ele, icon, originTop, cloneIconId;
|
|
269740
269758
|
|
|
269741
|
-
var baseTop, top, left, pointId, text, isOriginXCenter, iconLeft, option, ele, icon, originTop, cloneIconId;
|
|
269742
269759
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
269743
269760
|
while (1) {
|
|
269744
269761
|
switch (_context.prev = _context.next) {
|
|
@@ -269747,9 +269764,10 @@ var rightClickNode = [{
|
|
|
269747
269764
|
top = baseTop - i * lableLineHeight;
|
|
269748
269765
|
left = lableMargin[0] + treeTableminCellWidth;
|
|
269749
269766
|
pointId = "".concat(v.polylineTypeId, "_").concat(v.polylineIndex, "_-1_polylinePoint_'").concat(new Date().getTime(), "_isTitle");
|
|
269767
|
+
_v$pointAttr = v.pointAttr, _v$pointAttr$fill = _v$pointAttr.fill, fillColor = _v$pointAttr$fill === void 0 ? '#000' : _v$pointAttr$fill, stroke = _v$pointAttr.stroke;
|
|
269750
269768
|
text = new _this5.fabric.Text(String(v.title), objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
269751
269769
|
fontSize: style.fontSize,
|
|
269752
|
-
fill:
|
|
269770
|
+
fill: fillColor && stroke ? stroke : fillColor,
|
|
269753
269771
|
left: left,
|
|
269754
269772
|
top: top,
|
|
269755
269773
|
originY: 'center'
|
|
@@ -269773,24 +269791,24 @@ var rightClickNode = [{
|
|
|
269773
269791
|
rightLimit: v.rightLimit || ''
|
|
269774
269792
|
});
|
|
269775
269793
|
|
|
269776
|
-
if (!(v.type === 'img' && (_v$
|
|
269777
|
-
_context.next =
|
|
269794
|
+
if (!(v.type === 'img' && (_v$pointAttr2 = v.pointAttr) !== null && _v$pointAttr2 !== void 0 && _v$pointAttr2.iconClassName)) {
|
|
269795
|
+
_context.next = 13;
|
|
269778
269796
|
break;
|
|
269779
269797
|
}
|
|
269780
269798
|
|
|
269781
|
-
_context.next =
|
|
269799
|
+
_context.next = 12;
|
|
269782
269800
|
return _this5.createImage(v.pointAttr.iconClassName, v.pointAttr);
|
|
269783
269801
|
|
|
269784
|
-
case
|
|
269802
|
+
case 12:
|
|
269785
269803
|
ele = _context.sent;
|
|
269786
269804
|
|
|
269787
|
-
case
|
|
269788
|
-
_context.next =
|
|
269805
|
+
case 13:
|
|
269806
|
+
_context.next = 15;
|
|
269789
269807
|
return _this5.createPoint(v.type, objectSpread2_objectSpread2({
|
|
269790
269808
|
ele: ele || ''
|
|
269791
269809
|
}, option));
|
|
269792
269810
|
|
|
269793
|
-
case
|
|
269811
|
+
case 15:
|
|
269794
269812
|
icon = _context.sent;
|
|
269795
269813
|
icon.hasControls = icon.hasBorders = false;
|
|
269796
269814
|
originTop = top;
|
|
@@ -269862,7 +269880,7 @@ var rightClickNode = [{
|
|
|
269862
269880
|
|
|
269863
269881
|
_this5.canvas.requestRenderAll();
|
|
269864
269882
|
|
|
269865
|
-
case
|
|
269883
|
+
case 22:
|
|
269866
269884
|
case "end":
|
|
269867
269885
|
return _context.stop();
|
|
269868
269886
|
}
|
|
@@ -270394,12 +270412,12 @@ var rightClickNode = [{
|
|
|
270394
270412
|
if (id && id.includes('_polylinePoint_')) {
|
|
270395
270413
|
_this10._currentPointId = id;
|
|
270396
270414
|
_this10.rightClickNode = Object.freeze(rightClickNode.slice());
|
|
270397
|
-
|
|
270415
|
+
_this10.isRightVisible = true;
|
|
270416
|
+
} else if (!id) {
|
|
270398
270417
|
_this10._currentPointId = '';
|
|
270399
270418
|
_this10.rightClickNode = Object.freeze(rightClickNode.slice(0, 1));
|
|
270419
|
+
_this10.isRightVisible = true;
|
|
270400
270420
|
}
|
|
270401
|
-
|
|
270402
|
-
_this10.isRightVisible = true;
|
|
270403
270421
|
});
|
|
270404
270422
|
},
|
|
270405
270423
|
// 关闭右键菜单,打开添加节点弹窗表单
|
|
@@ -270533,8 +270551,8 @@ var rightClickNode = [{
|
|
|
270533
270551
|
|
|
270534
270552
|
var FabricPolylines_component = normalizeComponent(
|
|
270535
270553
|
fabric_chart_FabricPolylinesvue_type_script_lang_js_,
|
|
270536
|
-
|
|
270537
|
-
|
|
270554
|
+
FabricPolylinesvue_type_template_id_77eb0f8b_render,
|
|
270555
|
+
FabricPolylinesvue_type_template_id_77eb0f8b_staticRenderFns,
|
|
270538
270556
|
false,
|
|
270539
270557
|
null,
|
|
270540
270558
|
null,
|
|
@@ -270638,12 +270656,12 @@ var FabricGrid_component = normalizeComponent(
|
|
|
270638
270656
|
)
|
|
270639
270657
|
|
|
270640
270658
|
/* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
|
|
270641
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4214fed6-vue-loader-template"}!./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=
|
|
270642
|
-
var
|
|
270643
|
-
var
|
|
270659
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4214fed6-vue-loader-template"}!./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=e1c6fb02&
|
|
270660
|
+
var FabricTextGroupvue_type_template_id_e1c6fb02_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"text-group"},[(_vm.isRightVisible)?_c('MouseRightClick',{attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}):_vm._e(),(_vm.isDropVisible)?_c('DropPopup',{attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}}):_vm._e()],1)}
|
|
270661
|
+
var FabricTextGroupvue_type_template_id_e1c6fb02_staticRenderFns = []
|
|
270644
270662
|
|
|
270645
270663
|
|
|
270646
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=
|
|
270664
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=e1c6fb02&
|
|
270647
270665
|
|
|
270648
270666
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=script&lang=js&
|
|
270649
270667
|
|
|
@@ -270657,6 +270675,12 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270657
270675
|
|
|
270658
270676
|
|
|
270659
270677
|
|
|
270678
|
+
|
|
270679
|
+
|
|
270680
|
+
|
|
270681
|
+
|
|
270682
|
+
|
|
270683
|
+
//
|
|
270660
270684
|
//
|
|
270661
270685
|
//
|
|
270662
270686
|
//
|
|
@@ -270667,35 +270691,44 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270667
270691
|
|
|
270668
270692
|
|
|
270669
270693
|
|
|
270694
|
+
|
|
270695
|
+
|
|
270696
|
+
var FabricTextGroupvue_type_script_lang_js_rightClickNode = [{
|
|
270697
|
+
name: '修改',
|
|
270698
|
+
type: 'edit'
|
|
270699
|
+
}, {
|
|
270700
|
+
name: '删除',
|
|
270701
|
+
type: 'delete'
|
|
270702
|
+
}];
|
|
270670
270703
|
/* harmony default export */ var FabricTextGroupvue_type_script_lang_js_ = ({
|
|
270671
270704
|
name: 'fabric-text-group',
|
|
270672
270705
|
components: {
|
|
270673
|
-
DropPopup: DropPopup
|
|
270706
|
+
DropPopup: DropPopup,
|
|
270707
|
+
MouseRightClick: MouseRightClick
|
|
270674
270708
|
},
|
|
270675
|
-
mixins: [fabricCommon, draw],
|
|
270709
|
+
mixins: [fabricCommon, draw, polylineCommon],
|
|
270676
270710
|
props: {
|
|
270677
270711
|
templateData: {
|
|
270678
270712
|
type: Object,
|
|
270679
270713
|
required: true
|
|
270680
|
-
}
|
|
270681
|
-
|
|
270682
|
-
|
|
270683
|
-
|
|
270684
|
-
|
|
270714
|
+
},
|
|
270715
|
+
other: {
|
|
270716
|
+
type: Object,
|
|
270717
|
+
default: function _default() {}
|
|
270718
|
+
}
|
|
270719
|
+
},
|
|
270720
|
+
watch: {
|
|
270721
|
+
other: {
|
|
270722
|
+
handler: function handler(value) {
|
|
270723
|
+
if (value) {
|
|
270724
|
+
this.removeOther();
|
|
270725
|
+
this.drawTextDataGroup(value);
|
|
270726
|
+
this.canvas.renderAll();
|
|
270727
|
+
}
|
|
270728
|
+
},
|
|
270729
|
+
deep: true
|
|
270730
|
+
}
|
|
270685
270731
|
},
|
|
270686
|
-
// watch: {
|
|
270687
|
-
// bottom: {
|
|
270688
|
-
// handler(value) {
|
|
270689
|
-
// if (value) {
|
|
270690
|
-
// if (value) {
|
|
270691
|
-
// this.removeMark();
|
|
270692
|
-
// this.drawBottomTextDataGroup(value);
|
|
270693
|
-
// }
|
|
270694
|
-
// }
|
|
270695
|
-
// },
|
|
270696
|
-
// deep: true
|
|
270697
|
-
// }
|
|
270698
|
-
// },
|
|
270699
270732
|
data: function data() {
|
|
270700
270733
|
return {
|
|
270701
270734
|
leftStartX: 0,
|
|
@@ -270704,7 +270737,15 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270704
270737
|
dropPos: {
|
|
270705
270738
|
clientX: 0,
|
|
270706
270739
|
clientY: 0
|
|
270707
|
-
}
|
|
270740
|
+
},
|
|
270741
|
+
isRightVisible: false,
|
|
270742
|
+
rightPos: {
|
|
270743
|
+
clientX: 0,
|
|
270744
|
+
clientY: 0
|
|
270745
|
+
},
|
|
270746
|
+
rightClickNode: [],
|
|
270747
|
+
activeEvent: null // 当前可右键活动的对象
|
|
270748
|
+
|
|
270708
270749
|
};
|
|
270709
270750
|
},
|
|
270710
270751
|
mounted: function mounted() {
|
|
@@ -270730,38 +270771,106 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270730
270771
|
this.canvas.add(this.drawLine([0, this.propItems.canvasHeight - 1, this.propItems.endX, this.propItems.canvasHeight - 1], objectSpread2_objectSpread2({}, this.girdLineStyle))); // 左侧边框线
|
|
270731
270772
|
|
|
270732
270773
|
this.canvas.add(this.drawLine([0, 0, 0, this.propItems.canvasHeight], objectSpread2_objectSpread2({}, this.girdLineStyle)));
|
|
270733
|
-
this.topTreeTextGroup(this.propItems.treeList);
|
|
270734
|
-
this.drawLeftScaleGroup(this.templateData);
|
|
270735
|
-
this.drawTextDataGroup(this.templateData.other);
|
|
270736
|
-
this.drawBottomTextDataGroup(this.templateData.bottom);
|
|
270774
|
+
this.propItems.treeList.length > 0 && this.topTreeTextGroup(this.propItems.treeList);
|
|
270775
|
+
this.templateData.left && this.drawLeftScaleGroup(this.templateData.left);
|
|
270776
|
+
this.templateData.other && this.drawTextDataGroup(this.templateData.other);
|
|
270777
|
+
this.templateData.bottom && this.drawBottomTextDataGroup(this.templateData.bottom);
|
|
270778
|
+
this.createEvent();
|
|
270737
270779
|
this.canvas.renderAll();
|
|
270738
270780
|
},
|
|
270739
|
-
|
|
270781
|
+
createEvent: function createEvent() {
|
|
270740
270782
|
var _this2 = this;
|
|
270741
270783
|
|
|
270784
|
+
this.canvas.on('mouse:up', function (event) {
|
|
270785
|
+
if (event.button === 3) {
|
|
270786
|
+
var _event$pointer = event.pointer,
|
|
270787
|
+
x = _event$pointer.x,
|
|
270788
|
+
y = _event$pointer.y;
|
|
270789
|
+
|
|
270790
|
+
var _this2$$propItems = _this2.$propItems(),
|
|
270791
|
+
originX = _this2$$propItems.originX,
|
|
270792
|
+
originY = _this2$$propItems.originY,
|
|
270793
|
+
endX = _this2$$propItems.endX,
|
|
270794
|
+
endY = _this2$$propItems.endY;
|
|
270795
|
+
|
|
270796
|
+
if (!(x < originX || x > endX || y < originY || y > endY)) {
|
|
270797
|
+
_this2.activeEvent = event;
|
|
270798
|
+
document.querySelector('.upper-canvas').addEventListener('contextmenu', _this2.addEventListenerContextmenu, true);
|
|
270799
|
+
}
|
|
270800
|
+
}
|
|
270801
|
+
});
|
|
270802
|
+
},
|
|
270803
|
+
// 打开右键菜单
|
|
270804
|
+
openRightModal: function openRightModal(event) {
|
|
270805
|
+
var _this3 = this;
|
|
270806
|
+
|
|
270807
|
+
if (!this.propItems.eventStyle.evented) {
|
|
270808
|
+
return;
|
|
270809
|
+
}
|
|
270810
|
+
|
|
270811
|
+
this.rightPos = {
|
|
270812
|
+
clientX: event.e.clientX || event.e.pageX,
|
|
270813
|
+
clientY: event.e.clientY || event.e.pageY
|
|
270814
|
+
};
|
|
270815
|
+
this.isRightVisible = false;
|
|
270816
|
+
var target = event.target;
|
|
270817
|
+
var id = target ? target.id : '';
|
|
270818
|
+
this.$nextTick(function () {
|
|
270819
|
+
if (id && id.includes('_other')) {
|
|
270820
|
+
_this3._currentPoint = target || '';
|
|
270821
|
+
_this3.rightClickNode = Object.freeze(FabricTextGroupvue_type_script_lang_js_rightClickNode.slice());
|
|
270822
|
+
_this3.isRightVisible = true;
|
|
270823
|
+
}
|
|
270824
|
+
});
|
|
270825
|
+
},
|
|
270826
|
+
// 关闭右键菜单,打开添加节点弹窗表单
|
|
270827
|
+
handleRightClick: function handleRightClick(_ref) {
|
|
270828
|
+
var type = _ref.type;
|
|
270829
|
+
this.isRightVisible = false;
|
|
270830
|
+
var text = this._currentPoint;
|
|
270831
|
+
this._currentPoint = '';
|
|
270832
|
+
var obj = {
|
|
270833
|
+
type: text.type,
|
|
270834
|
+
index: text.index,
|
|
270835
|
+
dataIndex: text.dataIndex
|
|
270836
|
+
};
|
|
270837
|
+
this.$emit("".concat(type, "Other"), obj);
|
|
270838
|
+
},
|
|
270839
|
+
removeOther: function removeOther() {
|
|
270840
|
+
var _this4 = this;
|
|
270841
|
+
|
|
270842
|
+
this.canvas.forEachObject(function (obj) {
|
|
270843
|
+
if (obj.id && obj.id.includes('_other')) {
|
|
270844
|
+
_this4.canvas.remove(obj);
|
|
270845
|
+
}
|
|
270846
|
+
});
|
|
270847
|
+
},
|
|
270848
|
+
topTreeTextGroup: function topTreeTextGroup(list) {
|
|
270849
|
+
var _this5 = this;
|
|
270850
|
+
|
|
270742
270851
|
list.forEach(function (item) {
|
|
270743
270852
|
if (item.children && Array.isArray(item.children) && item.children.length > 0) {
|
|
270744
|
-
|
|
270853
|
+
_this5.canvas.add(_this5.drawTextGroup({
|
|
270745
270854
|
width: item.width,
|
|
270746
270855
|
height: item.height,
|
|
270747
270856
|
strokeWidth: 1
|
|
270748
270857
|
}, objectSpread2_objectSpread2({
|
|
270749
270858
|
text: String(item.title)
|
|
270750
|
-
},
|
|
270859
|
+
}, _this5.templateData.top.treeTableTextStyle || {}), {
|
|
270751
270860
|
left: item.left,
|
|
270752
270861
|
top: item.top
|
|
270753
270862
|
}));
|
|
270754
270863
|
|
|
270755
|
-
|
|
270864
|
+
_this5.topTreeTextGroup(item.children);
|
|
270756
270865
|
} else {
|
|
270757
270866
|
// 此处的文本text的中心源的定位由于draw.js中封装反向的,所以此时文本需要向左排列originX值应为right
|
|
270758
|
-
|
|
270867
|
+
_this5.canvas.add(_this5.drawTextGroup({
|
|
270759
270868
|
width: item.width,
|
|
270760
270869
|
height: item.height,
|
|
270761
270870
|
strokeWidth: 1
|
|
270762
270871
|
}, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
270763
270872
|
text: String(item.title)
|
|
270764
|
-
},
|
|
270873
|
+
}, _this5.templateData.top.treeTableTextStyle || {}), {}, {
|
|
270765
270874
|
originX: 'right',
|
|
270766
270875
|
left: -Math.floor(item.width / 2) + 5
|
|
270767
270876
|
}), {
|
|
@@ -270782,22 +270891,32 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270782
270891
|
}
|
|
270783
270892
|
},
|
|
270784
270893
|
drawTextDataGroupColList: function drawTextDataGroupColList(colList) {
|
|
270785
|
-
var
|
|
270894
|
+
var _this6 = this,
|
|
270786
270895
|
_this$canvas;
|
|
270787
270896
|
|
|
270897
|
+
var _this$propItems = this.propItems,
|
|
270898
|
+
originY = _this$propItems.originY,
|
|
270899
|
+
eventStyle = _this$propItems.eventStyle;
|
|
270788
270900
|
var textList = [];
|
|
270789
270901
|
colList.forEach(function (item, index) {
|
|
270790
|
-
var baseTop =
|
|
270902
|
+
var baseTop = originY + (item.marginTop || 10);
|
|
270791
270903
|
|
|
270792
|
-
if (
|
|
270904
|
+
if (_this6.isLimit(item.scalevalue)) {
|
|
270793
270905
|
item.dataList.forEach(function (v, i) {
|
|
270794
270906
|
var top = baseTop + i * (item.lineHeight || 15);
|
|
270795
|
-
var text = new
|
|
270907
|
+
var text = new _this6.fabric.Text(String(v.value), objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
|
|
270796
270908
|
originX: 'left',
|
|
270797
270909
|
originY: 'center',
|
|
270798
|
-
left:
|
|
270799
|
-
top: top
|
|
270800
|
-
|
|
270910
|
+
left: _this6.cumputedX(item.scalevalue),
|
|
270911
|
+
top: top,
|
|
270912
|
+
lockMovementX: true,
|
|
270913
|
+
lockMovementY: true,
|
|
270914
|
+
dataIndex: index,
|
|
270915
|
+
index: i,
|
|
270916
|
+
type: 'colList',
|
|
270917
|
+
id: "".concat(index, "_").concat(i, "_other_").concat(Date.now())
|
|
270918
|
+
}, eventStyle));
|
|
270919
|
+
text.hasControls = text.hasBorders = false;
|
|
270801
270920
|
textList.push(text);
|
|
270802
270921
|
});
|
|
270803
270922
|
}
|
|
@@ -270806,37 +270925,46 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270806
270925
|
(_this$canvas = this.canvas).add.apply(_this$canvas, textList);
|
|
270807
270926
|
},
|
|
270808
270927
|
drawTextDataGroupList: function drawTextDataGroupList(list) {
|
|
270809
|
-
var
|
|
270928
|
+
var _this7 = this,
|
|
270810
270929
|
_this$canvas2;
|
|
270811
270930
|
|
|
270812
270931
|
var textList = [];
|
|
270813
|
-
var _this$
|
|
270814
|
-
originX = _this$
|
|
270815
|
-
originY = _this$
|
|
270932
|
+
var _this$propItems2 = this.propItems,
|
|
270933
|
+
originX = _this$propItems2.originX,
|
|
270934
|
+
originY = _this$propItems2.originY,
|
|
270935
|
+
eventStyle = _this$propItems2.eventStyle;
|
|
270816
270936
|
var top = originY + 10;
|
|
270817
|
-
list.forEach(function (item,
|
|
270818
|
-
var marginLeft =
|
|
270937
|
+
list.forEach(function (item, index) {
|
|
270938
|
+
var marginLeft = _this7.templateData.left.leftYScalevalue.spaceGridNumber || 3;
|
|
270819
270939
|
var left = originX - marginLeft * 4; // 默认减去4倍的左边距,防止最左边的数据与名称显示重合了
|
|
270820
270940
|
|
|
270821
|
-
if (list[
|
|
270941
|
+
if (list[index - 1]) {
|
|
270822
270942
|
top += item.lineHeight || 15;
|
|
270823
270943
|
}
|
|
270824
270944
|
|
|
270825
|
-
var title = new
|
|
270945
|
+
var title = new _this7.fabric.Text(String(item.title), objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
|
|
270826
270946
|
originX: 'right',
|
|
270827
270947
|
originY: 'center',
|
|
270828
270948
|
left: left,
|
|
270829
|
-
top: top
|
|
270949
|
+
top: top,
|
|
270950
|
+
id: "".concat(index, "_other_").concat(Date.now())
|
|
270830
270951
|
}));
|
|
270831
270952
|
textList.push(title);
|
|
270832
|
-
item.dataList.forEach(function (v) {
|
|
270833
|
-
if (
|
|
270834
|
-
var text = new
|
|
270953
|
+
item.dataList.forEach(function (v, i) {
|
|
270954
|
+
if (_this7.isLimit(v.time)) {
|
|
270955
|
+
var text = new _this7.fabric.Text(String(v.value), objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
|
|
270835
270956
|
originX: 'center',
|
|
270836
270957
|
originY: 'center',
|
|
270837
|
-
left:
|
|
270838
|
-
top: top
|
|
270839
|
-
|
|
270958
|
+
left: _this7.cumputedX(v.time),
|
|
270959
|
+
top: top,
|
|
270960
|
+
lockMovementX: true,
|
|
270961
|
+
lockMovementY: true,
|
|
270962
|
+
dataIndex: index,
|
|
270963
|
+
index: i,
|
|
270964
|
+
type: 'list',
|
|
270965
|
+
id: "".concat(index, "_").concat(i, "_other_").concat(Date.now())
|
|
270966
|
+
}, eventStyle));
|
|
270967
|
+
text.hasControls = text.hasBorders = false;
|
|
270840
270968
|
textList.push(text);
|
|
270841
270969
|
}
|
|
270842
270970
|
});
|
|
@@ -270853,82 +270981,95 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270853
270981
|
return time >= minTime && time <= maxTime;
|
|
270854
270982
|
},
|
|
270855
270983
|
removeMark: function removeMark() {
|
|
270856
|
-
var
|
|
270984
|
+
var _this8 = this;
|
|
270857
270985
|
|
|
270858
270986
|
this.canvas.forEachObject(function (obj) {
|
|
270859
270987
|
if (obj.type && obj.type === 'mark') {
|
|
270860
|
-
|
|
270988
|
+
_this8.canvas.remove(obj);
|
|
270861
270989
|
}
|
|
270862
270990
|
});
|
|
270863
270991
|
},
|
|
270864
270992
|
// 底部标记
|
|
270865
270993
|
drawBottomTextDataGroup: function drawBottomTextDataGroup(obj) {
|
|
270866
|
-
var
|
|
270994
|
+
var _obj$iconStyle,
|
|
270995
|
+
_this9 = this,
|
|
270867
270996
|
_this$canvas3;
|
|
270868
270997
|
|
|
270869
270998
|
if (!obj.list) {
|
|
270870
270999
|
return;
|
|
270871
271000
|
}
|
|
270872
271001
|
|
|
270873
|
-
var _this$
|
|
270874
|
-
originX = _this$
|
|
270875
|
-
endY = _this$
|
|
270876
|
-
canvasHeight = _this$
|
|
270877
|
-
eventStyle = _this$
|
|
271002
|
+
var _this$propItems3 = this.propItems,
|
|
271003
|
+
originX = _this$propItems3.originX,
|
|
271004
|
+
endY = _this$propItems3.endY,
|
|
271005
|
+
canvasHeight = _this$propItems3.canvasHeight,
|
|
271006
|
+
eventStyle = _this$propItems3.eventStyle;
|
|
270878
271007
|
var textList = [];
|
|
270879
271008
|
var marginLeft = this.templateData.left.leftYScalevalue.spaceGridNumber || 3;
|
|
270880
271009
|
var left = originX - marginLeft * 4; // 默认减去4倍的左边距,防止最左边的数据与名称显示重合了
|
|
270881
271010
|
|
|
270882
271011
|
var title = new this.fabric.Text(String(obj.title), objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.style), defaultVaule.textStyle), obj.style), {}, {
|
|
270883
271012
|
originX: 'right',
|
|
270884
|
-
originY: '
|
|
271013
|
+
originY: 'center',
|
|
270885
271014
|
left: left,
|
|
270886
|
-
top: canvasHeight -
|
|
271015
|
+
top: endY + (canvasHeight - endY) / 2,
|
|
270887
271016
|
type: 'mark'
|
|
270888
271017
|
}));
|
|
270889
271018
|
textList.push(title);
|
|
270890
|
-
var baseY = endY +
|
|
271019
|
+
var baseY = endY + 2; // 目前固定10像素的下边距
|
|
271020
|
+
|
|
271021
|
+
var baseYLimit = endY - 2; // 目前固定10像素的上边距
|
|
270891
271022
|
|
|
270892
|
-
var
|
|
271023
|
+
var lineHeight = ((_obj$iconStyle = obj.iconStyle) === null || _obj$iconStyle === void 0 ? void 0 : _obj$iconStyle.height) && obj.iconStyle.height + 2 || 14; // 标志点的line-height值
|
|
270893
271024
|
|
|
270894
271025
|
obj.list.forEach(function (item, index) {
|
|
270895
|
-
var limitIndex = -1;
|
|
271026
|
+
var limitIndex = -1; // 标志点是否往上排列的标志,大于-1则表示需要往上排列
|
|
271027
|
+
|
|
271028
|
+
var y = baseY;
|
|
270896
271029
|
|
|
270897
|
-
var x =
|
|
271030
|
+
var x = _this9.cumputedX(item[0]);
|
|
270898
271031
|
|
|
270899
|
-
if (
|
|
271032
|
+
if (_this9.isLimit(item[0])) {
|
|
270900
271033
|
item[1].forEach( /*#__PURE__*/function () {
|
|
270901
|
-
var
|
|
270902
|
-
var
|
|
271034
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(v, i) {
|
|
271035
|
+
var common, option, ele, img, text;
|
|
270903
271036
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
270904
271037
|
while (1) {
|
|
270905
271038
|
switch (_context.prev = _context.next) {
|
|
270906
271039
|
case 0:
|
|
270907
|
-
|
|
271040
|
+
if (!~limitIndex) {
|
|
271041
|
+
y += i === 0 ? lineHeight / 2 : lineHeight;
|
|
270908
271042
|
|
|
270909
|
-
|
|
270910
|
-
|
|
270911
|
-
y = baseYLimit - limitIndex * 14;
|
|
270912
|
-
}
|
|
271043
|
+
if (y >= canvasHeight - lineHeight / 2) {
|
|
271044
|
+
limitIndex++;
|
|
270913
271045
|
|
|
270914
|
-
|
|
270915
|
-
|
|
270916
|
-
|
|
271046
|
+
if (limitIndex === 0) {
|
|
271047
|
+
y = baseYLimit;
|
|
271048
|
+
y -= lineHeight / 2;
|
|
271049
|
+
}
|
|
271050
|
+
}
|
|
271051
|
+
} else {
|
|
271052
|
+
y -= lineHeight;
|
|
270917
271053
|
}
|
|
270918
271054
|
|
|
270919
|
-
|
|
271055
|
+
common = {
|
|
270920
271056
|
left: x,
|
|
270921
271057
|
top: y,
|
|
270922
271058
|
originX: 'center',
|
|
270923
|
-
|
|
271059
|
+
originY: 'center',
|
|
270924
271060
|
data: v.data || {},
|
|
270925
271061
|
other: v.other || {},
|
|
270926
271062
|
time: item[0],
|
|
270927
271063
|
name: v.name,
|
|
270928
|
-
// listIndex: index,
|
|
270929
|
-
// index: i,
|
|
270930
271064
|
type: 'mark'
|
|
270931
|
-
}
|
|
271065
|
+
};
|
|
271066
|
+
|
|
271067
|
+
if (!(_this9.isObject(v) && !v.value)) {
|
|
271068
|
+
_context.next = 17;
|
|
271069
|
+
break;
|
|
271070
|
+
}
|
|
271071
|
+
|
|
271072
|
+
option = Object.assign({}, obj.iconStyle || {}, v || {}, objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.style), common), eventStyle));
|
|
270932
271073
|
|
|
270933
271074
|
if (!(v !== null && v !== void 0 && v.iconClassName)) {
|
|
270934
271075
|
_context.next = 8;
|
|
@@ -270936,14 +271077,14 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270936
271077
|
}
|
|
270937
271078
|
|
|
270938
271079
|
_context.next = 7;
|
|
270939
|
-
return
|
|
271080
|
+
return _this9.createImage(v.iconClassName, v);
|
|
270940
271081
|
|
|
270941
271082
|
case 7:
|
|
270942
271083
|
ele = _context.sent;
|
|
270943
271084
|
|
|
270944
271085
|
case 8:
|
|
270945
271086
|
_context.next = 10;
|
|
270946
|
-
return
|
|
271087
|
+
return _this9.createPoint(v !== null && v !== void 0 && v.url || v !== null && v !== void 0 && v.iconClassName ? 'img' : v.type, objectSpread2_objectSpread2({
|
|
270947
271088
|
ele: ele || ''
|
|
270948
271089
|
}, option));
|
|
270949
271090
|
|
|
@@ -270951,33 +271092,21 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270951
271092
|
img = _context.sent;
|
|
270952
271093
|
img.hasControls = img.hasBorders = false;
|
|
270953
271094
|
|
|
270954
|
-
|
|
271095
|
+
_this9.pointEvent(img);
|
|
270955
271096
|
|
|
270956
|
-
|
|
271097
|
+
_this9.canvas.add(img);
|
|
270957
271098
|
|
|
270958
|
-
|
|
271099
|
+
_this9.canvas.requestRenderAll();
|
|
270959
271100
|
|
|
270960
271101
|
_context.next = 21;
|
|
270961
271102
|
break;
|
|
270962
271103
|
|
|
270963
271104
|
case 17:
|
|
270964
|
-
text = new
|
|
270965
|
-
originX: 'center',
|
|
270966
|
-
left: x,
|
|
270967
|
-
top: y,
|
|
270968
|
-
// lockMovementY: true, // 锁定Y轴,即只能x轴方向移动
|
|
270969
|
-
time: item[0],
|
|
270970
|
-
name: v.name,
|
|
270971
|
-
data: v.data || {},
|
|
270972
|
-
other: v.other || {},
|
|
270973
|
-
// listIndex: index,
|
|
270974
|
-
// index: i,
|
|
270975
|
-
type: 'mark'
|
|
270976
|
-
}, eventStyle));
|
|
271105
|
+
text = new _this9.fabric.Text(String(v.value), objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.textStyle), obj.style), common), eventStyle));
|
|
270977
271106
|
text.hasControls = text.hasBorders = false;
|
|
270978
271107
|
textList.push(text);
|
|
270979
271108
|
|
|
270980
|
-
|
|
271109
|
+
_this9.pointEvent(text);
|
|
270981
271110
|
|
|
270982
271111
|
case 21:
|
|
270983
271112
|
case "end":
|
|
@@ -270988,7 +271117,7 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270988
271117
|
}));
|
|
270989
271118
|
|
|
270990
271119
|
return function (_x, _x2) {
|
|
270991
|
-
return
|
|
271120
|
+
return _ref2.apply(this, arguments);
|
|
270992
271121
|
};
|
|
270993
271122
|
}());
|
|
270994
271123
|
}
|
|
@@ -270997,44 +271126,42 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270997
271126
|
(_this$canvas3 = this.canvas).add.apply(_this$canvas3, textList);
|
|
270998
271127
|
},
|
|
270999
271128
|
pointEvent: function pointEvent(point) {
|
|
271000
|
-
var
|
|
271129
|
+
var _this10 = this;
|
|
271001
271130
|
|
|
271002
271131
|
point.on('mouseover', function () {
|
|
271003
|
-
|
|
271132
|
+
_this10.showDrapPopup(point, true);
|
|
271004
271133
|
});
|
|
271005
271134
|
point.on('mouseout', function () {
|
|
271006
|
-
|
|
271135
|
+
_this10.isDropVisible = false;
|
|
271007
271136
|
}); // 移动中 实时更新相关联的线的坐标
|
|
271008
271137
|
|
|
271009
271138
|
point.on('moving', function () {
|
|
271010
|
-
|
|
271139
|
+
_this10.moveLimit(point);
|
|
271011
271140
|
|
|
271012
|
-
|
|
271141
|
+
_this10.canvas.renderAll();
|
|
271013
271142
|
|
|
271014
|
-
|
|
271143
|
+
_this10.showDrapPopup(point);
|
|
271015
271144
|
});
|
|
271016
271145
|
point.on('moved', function () {
|
|
271017
|
-
|
|
271146
|
+
_this10.isDropVisible = false;
|
|
271018
271147
|
var value = {
|
|
271019
271148
|
data: point.data,
|
|
271020
271149
|
oldVal: point.time,
|
|
271021
|
-
newVal:
|
|
271022
|
-
// index: point.index
|
|
271023
|
-
|
|
271150
|
+
newVal: _this10.getXValue(point.left)
|
|
271024
271151
|
};
|
|
271025
271152
|
|
|
271026
|
-
|
|
271153
|
+
_this10.$emit('markChange', value);
|
|
271027
271154
|
});
|
|
271028
271155
|
},
|
|
271029
271156
|
moveLimit: function moveLimit(point) {
|
|
271030
271157
|
var _point$other;
|
|
271031
271158
|
|
|
271032
271159
|
point.setCoords();
|
|
271033
|
-
var _this$
|
|
271034
|
-
originX = _this$
|
|
271035
|
-
endX = _this$
|
|
271036
|
-
originY = _this$
|
|
271037
|
-
canvasHeight = _this$
|
|
271160
|
+
var _this$propItems4 = this.propItems,
|
|
271161
|
+
originX = _this$propItems4.originX,
|
|
271162
|
+
endX = _this$propItems4.endX,
|
|
271163
|
+
originY = _this$propItems4.originY,
|
|
271164
|
+
canvasHeight = _this$propItems4.canvasHeight;
|
|
271038
271165
|
var bottom = this.templateData.bottom; // 如果是起始标记,如入手术室时间
|
|
271039
271166
|
|
|
271040
271167
|
if ((_point$other = point.other) !== null && _point$other !== void 0 && _point$other.isStart) {
|
|
@@ -271104,8 +271231,6 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
271104
271231
|
if (point.top < originY) {
|
|
271105
271232
|
point.set('top', originY);
|
|
271106
271233
|
}
|
|
271107
|
-
|
|
271108
|
-
point.setCoords();
|
|
271109
271234
|
},
|
|
271110
271235
|
showDrapPopup: function showDrapPopup(point) {
|
|
271111
271236
|
var _point$other4;
|
|
@@ -271126,16 +271251,17 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
271126
271251
|
}]
|
|
271127
271252
|
};
|
|
271128
271253
|
},
|
|
271129
|
-
drawLeftScaleGroup: function drawLeftScaleGroup(
|
|
271130
|
-
this.drawLeftTitle(
|
|
271131
|
-
var _this$
|
|
271132
|
-
canvasHeight = _this$
|
|
271133
|
-
originX = _this$
|
|
271134
|
-
originY = _this$
|
|
271254
|
+
drawLeftScaleGroup: function drawLeftScaleGroup(dataLeft) {
|
|
271255
|
+
this.drawLeftTitle(dataLeft);
|
|
271256
|
+
var _this$propItems5 = this.propItems,
|
|
271257
|
+
canvasHeight = _this$propItems5.canvasHeight,
|
|
271258
|
+
originX = _this$propItems5.originX,
|
|
271259
|
+
originY = _this$propItems5.originY,
|
|
271260
|
+
treeTableminCellWidth = _this$propItems5.treeTableminCellWidth;
|
|
271135
271261
|
var rect = new this.fabric.Rect(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
271136
|
-
left:
|
|
271262
|
+
left: treeTableminCellWidth,
|
|
271137
271263
|
top: originY,
|
|
271138
|
-
width: originX -
|
|
271264
|
+
width: originX - treeTableminCellWidth,
|
|
271139
271265
|
height: canvasHeight - originY
|
|
271140
271266
|
}, defaultVaule.rectStyle), defaultVaule.style), {}, {
|
|
271141
271267
|
originX: 'left',
|
|
@@ -271145,14 +271271,14 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
271145
271271
|
|
|
271146
271272
|
this.canvas.add(rect);
|
|
271147
271273
|
},
|
|
271148
|
-
drawLeftTitle: function drawLeftTitle(
|
|
271149
|
-
if (
|
|
271274
|
+
drawLeftTitle: function drawLeftTitle(dataLeft) {
|
|
271275
|
+
if (dataLeft.title) {
|
|
271150
271276
|
this.canvas.add(this.drawTextGroup({
|
|
271151
|
-
width:
|
|
271277
|
+
width: this.propItems.treeTableminCellWidth,
|
|
271152
271278
|
height: this.propItems.canvasHeight - this.propItems.originY
|
|
271153
271279
|
}, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
271154
|
-
text: String(
|
|
271155
|
-
}, defaultVaule.textStyle),
|
|
271280
|
+
text: String(dataLeft.title.split('').join('\n'))
|
|
271281
|
+
}, defaultVaule.textStyle), dataLeft.titleStyle), {
|
|
271156
271282
|
left: 0,
|
|
271157
271283
|
top: this.propItems.originY
|
|
271158
271284
|
}));
|
|
@@ -271175,8 +271301,8 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
271175
271301
|
|
|
271176
271302
|
var FabricTextGroup_component = normalizeComponent(
|
|
271177
271303
|
fabric_chart_FabricTextGroupvue_type_script_lang_js_,
|
|
271178
|
-
|
|
271179
|
-
|
|
271304
|
+
FabricTextGroupvue_type_template_id_e1c6fb02_render,
|
|
271305
|
+
FabricTextGroupvue_type_template_id_e1c6fb02_staticRenderFns,
|
|
271180
271306
|
false,
|
|
271181
271307
|
null,
|
|
271182
271308
|
null,
|
|
@@ -271347,12 +271473,12 @@ var FabricScaleValue_component = normalizeComponent(
|
|
|
271347
271473
|
)
|
|
271348
271474
|
|
|
271349
271475
|
/* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
|
|
271350
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4214fed6-vue-loader-template"}!./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=
|
|
271351
|
-
var
|
|
271352
|
-
var
|
|
271476
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4214fed6-vue-loader-template"}!./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=efbd9346&
|
|
271477
|
+
var FabricLinesvue_type_template_id_efbd9346_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"line"},[(_vm.isRightVisible)?_c('MouseRightClick',{attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}):_vm._e(),(_vm.isDropVisible)?_c('DropPopup',{attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}}):_vm._e()],1)}
|
|
271478
|
+
var FabricLinesvue_type_template_id_efbd9346_staticRenderFns = []
|
|
271353
271479
|
|
|
271354
271480
|
|
|
271355
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=
|
|
271481
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=efbd9346&
|
|
271356
271482
|
|
|
271357
271483
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=script&lang=js&
|
|
271358
271484
|
|
|
@@ -271364,6 +271490,8 @@ var FabricLinesvue_type_template_id_219caefc_staticRenderFns = []
|
|
|
271364
271490
|
|
|
271365
271491
|
|
|
271366
271492
|
|
|
271493
|
+
|
|
271494
|
+
|
|
271367
271495
|
//
|
|
271368
271496
|
//
|
|
271369
271497
|
//
|
|
@@ -271377,10 +271505,10 @@ var FabricLinesvue_type_template_id_219caefc_staticRenderFns = []
|
|
|
271377
271505
|
|
|
271378
271506
|
|
|
271379
271507
|
var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
271380
|
-
name: '
|
|
271381
|
-
type: '
|
|
271508
|
+
name: '修改',
|
|
271509
|
+
type: 'edit'
|
|
271382
271510
|
}, {
|
|
271383
|
-
name: '
|
|
271511
|
+
name: '删除',
|
|
271384
271512
|
type: 'delete'
|
|
271385
271513
|
}];
|
|
271386
271514
|
/* harmony default export */ var FabricLinesvue_type_script_lang_js_ = ({
|
|
@@ -271437,9 +271565,6 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271437
271565
|
});
|
|
271438
271566
|
},
|
|
271439
271567
|
methods: {
|
|
271440
|
-
getContainer: function getContainer() {
|
|
271441
|
-
return this.$el;
|
|
271442
|
-
},
|
|
271443
271568
|
init: function init() {
|
|
271444
271569
|
this.getLineList(this.linesObj.list);
|
|
271445
271570
|
this.createLine();
|
|
@@ -271504,7 +271629,7 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271504
271629
|
this.$nextTick(function () {
|
|
271505
271630
|
if (id && id.includes('_lineGroup_')) {
|
|
271506
271631
|
_this3._currentPoint = target || '';
|
|
271507
|
-
_this3.rightClickNode = Object.freeze(FabricLinesvue_type_script_lang_js_rightClickNode.slice(
|
|
271632
|
+
_this3.rightClickNode = Object.freeze(FabricLinesvue_type_script_lang_js_rightClickNode.slice());
|
|
271508
271633
|
_this3.isRightVisible = true;
|
|
271509
271634
|
}
|
|
271510
271635
|
});
|
|
@@ -271517,9 +271642,10 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271517
271642
|
this._currentPoint = '';
|
|
271518
271643
|
|
|
271519
271644
|
var _this$updateData = this.updateData(line, true),
|
|
271520
|
-
lineObj = _this$updateData.lineObj;
|
|
271645
|
+
lineObj = _this$updateData.lineObj; // editLine:编辑 deleteLine:删除
|
|
271646
|
+
|
|
271521
271647
|
|
|
271522
|
-
this.$emit(
|
|
271648
|
+
this.$emit("".concat(type, "Line"), lineObj);
|
|
271523
271649
|
},
|
|
271524
271650
|
// 递归返回一维数据
|
|
271525
271651
|
getLineList: function getLineList(list) {
|
|
@@ -271546,6 +271672,7 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271546
271672
|
var _this6 = this,
|
|
271547
271673
|
_this$canvas;
|
|
271548
271674
|
|
|
271675
|
+
var lineList = line.lineList || [];
|
|
271549
271676
|
var _this$propItems = this.propItems,
|
|
271550
271677
|
originX = _this$propItems.originX,
|
|
271551
271678
|
endX = _this$propItems.endX,
|
|
@@ -271557,7 +271684,10 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271557
271684
|
var lineItemList = [];
|
|
271558
271685
|
var y1 = i * yCellHeightTop;
|
|
271559
271686
|
var y2 = yCellHeightTop * (i + 1);
|
|
271560
|
-
|
|
271687
|
+
var textArr = []; // 用于存放多个线段的文字内容,显示格式为:第一段线的文字—第二段线的文字
|
|
271688
|
+
|
|
271689
|
+
var textList = [];
|
|
271690
|
+
lineList.forEach(function (item, j) {
|
|
271561
271691
|
if (!item[0] || type_isObject(item[0])) return;
|
|
271562
271692
|
var startMinute = new Date(item[0]).getTime();
|
|
271563
271693
|
var endMinute = item[1] ? new Date(item[1]).getTime() : '';
|
|
@@ -271567,7 +271697,8 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271567
271697
|
var x2 = _this6.cumputedX(item[1]); // 数字文字
|
|
271568
271698
|
|
|
271569
271699
|
|
|
271570
|
-
var textObj = item[3] || {};
|
|
271700
|
+
var textObj = item[3] || {};
|
|
271701
|
+
var textContent = textObj.content || ''; // 左边手柄竖线
|
|
271571
271702
|
|
|
271572
271703
|
var leftLine;
|
|
271573
271704
|
|
|
@@ -271641,19 +271772,30 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271641
271772
|
|
|
271642
271773
|
|
|
271643
271774
|
var textTop = x2 ? (y1 + y2) / 2 : y1 + yCellHeightTop / 2;
|
|
271644
|
-
var
|
|
271775
|
+
var textLimitRight;
|
|
271776
|
+
var text = endMinute === '' && leftLine || item[1] && !(x1 === originX && x2 === originX) && !(x1 === endX && x2 === endX) ? _this6.drawLineText(textArr.concat([textContent]), textTop, i, j, centerLine, x1, x2) : null; // 文字内容居右侧竖线且超出当前线段右边界则移除
|
|
271645
271777
|
|
|
271646
271778
|
if (text) {
|
|
271647
|
-
|
|
271779
|
+
var _lineList;
|
|
271780
|
+
|
|
271781
|
+
textLimitRight = (_lineList = lineList[j + 1]) !== null && _lineList !== void 0 && _lineList[0] && _this6.cumputedX(lineList[j + 1][0]) <= endX ? _this6.cumputedX(lineList[j + 1][0]) : endX;
|
|
271782
|
+
|
|
271783
|
+
if (text.originX === 'left' && text.left + text.width + 2 >= textLimitRight) {
|
|
271784
|
+
textLimitRight !== endX && textArr.push(textContent);
|
|
271785
|
+
|
|
271786
|
+
_this6.canvas.remove(text);
|
|
271787
|
+
|
|
271788
|
+
text = null;
|
|
271789
|
+
} else {
|
|
271790
|
+
textArr = [];
|
|
271791
|
+
|
|
271648
271792
|
_this6.hoverEvent(text, {
|
|
271649
271793
|
textObj: textObj,
|
|
271650
271794
|
startTime: item[0],
|
|
271651
271795
|
endTime: item[1]
|
|
271652
271796
|
});
|
|
271653
271797
|
|
|
271654
|
-
|
|
271655
|
-
} else {
|
|
271656
|
-
_this6.canvas.remove(text);
|
|
271798
|
+
textList.push(text);
|
|
271657
271799
|
}
|
|
271658
271800
|
} // 设置拖动限制值
|
|
271659
271801
|
|
|
@@ -271662,10 +271804,10 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271662
271804
|
leftLimit.x2 = x2 ? x2 : endX;
|
|
271663
271805
|
leftLimit.x1 = originX;
|
|
271664
271806
|
|
|
271665
|
-
if (
|
|
271666
|
-
var
|
|
271667
|
-
preItem0 =
|
|
271668
|
-
preItem1 =
|
|
271807
|
+
if (lineList[j - 1]) {
|
|
271808
|
+
var _lineList2 = _slicedToArray(lineList[j - 1], 2),
|
|
271809
|
+
preItem0 = _lineList2[0],
|
|
271810
|
+
preItem1 = _lineList2[1];
|
|
271669
271811
|
|
|
271670
271812
|
if (preItem1) {
|
|
271671
271813
|
var preEndMinute = new Date(preItem1).getTime();
|
|
@@ -271680,9 +271822,9 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271680
271822
|
rightLimt.x1 = x2 ? x1 : originX;
|
|
271681
271823
|
rightLimt.x2 = endX;
|
|
271682
271824
|
|
|
271683
|
-
if (
|
|
271684
|
-
var
|
|
271685
|
-
_preItem =
|
|
271825
|
+
if (lineList[j + 1]) {
|
|
271826
|
+
var _lineList3 = _slicedToArray(lineList[j + 1], 1),
|
|
271827
|
+
_preItem = _lineList3[0];
|
|
271686
271828
|
|
|
271687
271829
|
if (_preItem) {
|
|
271688
271830
|
var _preStartMinute = new Date(_preItem).getTime();
|
|
@@ -271698,7 +271840,9 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271698
271840
|
textObj: textObj,
|
|
271699
271841
|
limitX: leftLimit,
|
|
271700
271842
|
startTime: item[0],
|
|
271701
|
-
endTime: item[1]
|
|
271843
|
+
endTime: item[1],
|
|
271844
|
+
preText: textList[text ? textList.length - 2 : textList.length - 1] || null,
|
|
271845
|
+
textLimitRight: textLimitRight
|
|
271702
271846
|
});
|
|
271703
271847
|
|
|
271704
271848
|
_this6.lineEvent({
|
|
@@ -271708,19 +271852,26 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271708
271852
|
textObj: textObj,
|
|
271709
271853
|
limitX: rightLimt,
|
|
271710
271854
|
startTime: item[0],
|
|
271711
|
-
endTime: item[1]
|
|
271855
|
+
endTime: item[1],
|
|
271856
|
+
preText: null,
|
|
271857
|
+
textLimitRight: rightLimt.x2
|
|
271712
271858
|
});
|
|
271713
271859
|
});
|
|
271714
271860
|
|
|
271715
|
-
(_this$canvas = this.canvas).add.apply(_this$canvas, lineItemList);
|
|
271861
|
+
(_this$canvas = this.canvas).add.apply(_this$canvas, lineItemList.concat(textList));
|
|
271716
271862
|
|
|
271717
271863
|
this.canvas.requestRenderAll();
|
|
271718
271864
|
},
|
|
271719
|
-
drawLineText: function drawLineText(
|
|
271720
|
-
|
|
271721
|
-
|
|
271722
|
-
|
|
271723
|
-
|
|
271865
|
+
drawLineText: function drawLineText(textArr, top, i, j, centerLine, x1, x2) {
|
|
271866
|
+
// const value = textArr.map(v => {
|
|
271867
|
+
// const channel = v.channel ? `(${v.channel})` : '';
|
|
271868
|
+
// const consistence = v.consistence ? `(${v.consistence})` : '';
|
|
271869
|
+
// const total = v.total ? `(${v.total})` : '';
|
|
271870
|
+
// return `${v.currentSpeed || ''}${channel}${consistence}${total}`
|
|
271871
|
+
// }).join('—');
|
|
271872
|
+
var value = textArr.filter(function (v) {
|
|
271873
|
+
return v !== '';
|
|
271874
|
+
}).join('—');
|
|
271724
271875
|
if (value === '') return null;
|
|
271725
271876
|
var text = new this.fabric.Text(value, objectSpread2_objectSpread2({
|
|
271726
271877
|
top: top,
|
|
@@ -271826,7 +271977,9 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271826
271977
|
textObj = attr.textObj,
|
|
271827
271978
|
limitX = attr.limitX,
|
|
271828
271979
|
startTime = attr.startTime,
|
|
271829
|
-
endTime = attr.endTime
|
|
271980
|
+
endTime = attr.endTime,
|
|
271981
|
+
preText = attr.preText,
|
|
271982
|
+
textLimitRight = attr.textLimitRight;
|
|
271830
271983
|
|
|
271831
271984
|
if (line) {
|
|
271832
271985
|
line.hasControls = line.hasBorders = false;
|
|
@@ -271834,6 +271987,8 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271834
271987
|
line2 && (line.line2 = line2);
|
|
271835
271988
|
text && (line.text = text);
|
|
271836
271989
|
line.limitX = limitX;
|
|
271990
|
+
preText && (line.preText = preText);
|
|
271991
|
+
textLimitRight && (line.textLimitRight = textLimitRight);
|
|
271837
271992
|
this.hoverEvent(line, {
|
|
271838
271993
|
textObj: textObj,
|
|
271839
271994
|
startTime: startTime,
|
|
@@ -271993,18 +272148,15 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271993
272148
|
return line;
|
|
271994
272149
|
},
|
|
271995
272150
|
lineMoveLimit: function lineMoveLimit(line) {
|
|
271996
|
-
line.setCoords();
|
|
271997
|
-
var objBoundingBox = line.getBoundingRect();
|
|
272151
|
+
line.setCoords(); // 需调用setCoords()才能重新计算控制位置(改变Object状态)
|
|
271998
272152
|
|
|
271999
|
-
if (
|
|
272153
|
+
if (line.left < line.limitX.x1) {
|
|
272000
272154
|
line.set('left', line.limitX.x1);
|
|
272001
272155
|
}
|
|
272002
272156
|
|
|
272003
|
-
if (
|
|
272157
|
+
if (line.left > line.limitX.x2) {
|
|
272004
272158
|
line.set('left', line.limitX.x2);
|
|
272005
272159
|
}
|
|
272006
|
-
|
|
272007
|
-
line.setCoords();
|
|
272008
272160
|
},
|
|
272009
272161
|
lineMoveUpdateLine: function lineMoveUpdateLine(line) {
|
|
272010
272162
|
if (line.line1) {
|
|
@@ -272023,27 +272175,50 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
272023
272175
|
},
|
|
272024
272176
|
textUpdatePositionX: function textUpdatePositionX(line) {
|
|
272025
272177
|
var text = line.text || null;
|
|
272026
|
-
if (!text) return; // 如果line2存在说明当前拖动的是右边手柄,line1存在则是左边手柄
|
|
272027
272178
|
|
|
272028
|
-
|
|
272029
|
-
|
|
272030
|
-
|
|
272031
|
-
|
|
272032
|
-
var v;
|
|
272179
|
+
if (text) {
|
|
272180
|
+
// 如果line2存在说明当前拖动的是右边手柄,line1存在则是左边手柄,都不存在说明不存在中间线
|
|
272181
|
+
var centerLine = line.line1 || line.line2 || null;
|
|
272182
|
+
var left = line.left;
|
|
272033
272183
|
|
|
272034
|
-
|
|
272035
|
-
v = left + centerLine.width / 2 * (line.line2 ? -1 : 1);
|
|
272036
|
-
originX = 'center';
|
|
272037
|
-
} else {
|
|
272038
|
-
v = this.textMarginLeft + (centerLine ? centerLine.x2 : left);
|
|
272039
|
-
originX = 'left';
|
|
272040
|
-
}
|
|
272184
|
+
var _limitWidth = text.width + 2;
|
|
272041
272185
|
|
|
272042
|
-
|
|
272043
|
-
|
|
272044
|
-
|
|
272045
|
-
|
|
272046
|
-
|
|
272186
|
+
var originX = text.originX;
|
|
272187
|
+
var v;
|
|
272188
|
+
|
|
272189
|
+
if ((centerLine === null || centerLine === void 0 ? void 0 : centerLine.x2) - (centerLine === null || centerLine === void 0 ? void 0 : centerLine.x1) > _limitWidth) {
|
|
272190
|
+
v = left + centerLine.width / 2 * (line.line2 ? -1 : 1);
|
|
272191
|
+
originX = 'center';
|
|
272192
|
+
} else {
|
|
272193
|
+
v = this.textMarginLeft + (centerLine ? centerLine.x2 : left);
|
|
272194
|
+
originX = 'left'; // 移动到最右边界时候文字超出当前线段可拖动的右边界的情况
|
|
272195
|
+
|
|
272196
|
+
if (line.textLimitRight && v + _limitWidth > line.textLimitRight) {
|
|
272197
|
+
v = this.propItems.endX + 100; // 此值随便设置,只要达到隐藏效果即可
|
|
272198
|
+
}
|
|
272199
|
+
}
|
|
272200
|
+
|
|
272201
|
+
text.setCoords();
|
|
272202
|
+
text.set({
|
|
272203
|
+
left: v,
|
|
272204
|
+
originX: originX
|
|
272205
|
+
});
|
|
272206
|
+
} // 拖动左侧竖线时需要更改上一线段文字的位置,以防止文字被遮挡
|
|
272207
|
+
|
|
272208
|
+
|
|
272209
|
+
var preText = line.preText || null;
|
|
272210
|
+
if (!preText) return;
|
|
272211
|
+
var limitWidth = preText.width + 2;
|
|
272212
|
+
|
|
272213
|
+
if (preText.originX === 'left' && preText.left + limitWidth > line.left) {
|
|
272214
|
+
var _v = this.propItems.endX + 100; // 此值随便设置,只要达到隐藏效果即可
|
|
272215
|
+
|
|
272216
|
+
|
|
272217
|
+
preText.setCoords();
|
|
272218
|
+
preText.set({
|
|
272219
|
+
left: _v
|
|
272220
|
+
});
|
|
272221
|
+
}
|
|
272047
272222
|
},
|
|
272048
272223
|
repaintLine: function repaintLine() {
|
|
272049
272224
|
if (this.lines.length) {
|
|
@@ -272068,8 +272243,8 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
272068
272243
|
|
|
272069
272244
|
var FabricLines_component = normalizeComponent(
|
|
272070
272245
|
fabric_chart_FabricLinesvue_type_script_lang_js_,
|
|
272071
|
-
|
|
272072
|
-
|
|
272246
|
+
FabricLinesvue_type_template_id_efbd9346_render,
|
|
272247
|
+
FabricLinesvue_type_template_id_efbd9346_staticRenderFns,
|
|
272073
272248
|
false,
|
|
272074
272249
|
null,
|
|
272075
272250
|
null,
|
|
@@ -272680,9 +272855,6 @@ var FabricCentervue_type_template_id_6617dc6c_staticRenderFns = []
|
|
|
272680
272855
|
|
|
272681
272856
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart2/FabricCenter.vue?vue&type=template&id=6617dc6c&
|
|
272682
272857
|
|
|
272683
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.fill.js
|
|
272684
|
-
var es_array_fill = __webpack_require__("cb29");
|
|
272685
|
-
|
|
272686
272858
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart2/FabricCenter.vue?vue&type=script&lang=js&
|
|
272687
272859
|
|
|
272688
272860
|
|
|
@@ -273402,6 +273574,9 @@ var FabricCenter_component = normalizeComponent(
|
|
|
273402
273574
|
//
|
|
273403
273575
|
//
|
|
273404
273576
|
//
|
|
273577
|
+
//
|
|
273578
|
+
//
|
|
273579
|
+
//
|
|
273405
273580
|
|
|
273406
273581
|
/**
|
|
273407
273582
|
* @author lujiafu
|
|
@@ -273451,25 +273626,46 @@ var FabricCenter_component = normalizeComponent(
|
|
|
273451
273626
|
},
|
|
273452
273627
|
computed: {
|
|
273453
273628
|
polylines: function polylines() {
|
|
273454
|
-
var _this$templateData, _this$templateData2;
|
|
273629
|
+
var _this$templateData, _this$templateData$ri, _this$templateData$ri2, _this$templateData$ri3, _this$templateData2, _this$templateData2$l, _this$templateData2$l2, _this$templateData2$l3;
|
|
273455
273630
|
|
|
273456
273631
|
var list = [];
|
|
273457
273632
|
|
|
273458
|
-
if ((_this$templateData = this.templateData) !== null && _this$templateData !== void 0 && _this$templateData.right &&
|
|
273459
|
-
var
|
|
273633
|
+
if ((_this$templateData = this.templateData) !== null && _this$templateData !== void 0 && (_this$templateData$ri = _this$templateData.right) !== null && _this$templateData$ri !== void 0 && (_this$templateData$ri2 = _this$templateData$ri.rightYScalevalue) !== null && _this$templateData$ri2 !== void 0 && (_this$templateData$ri3 = _this$templateData$ri2.dataList) !== null && _this$templateData$ri3 !== void 0 && _this$templateData$ri3.length) {
|
|
273634
|
+
var _this$templateData$ri4 = this.templateData.right,
|
|
273635
|
+
position = _this$templateData$ri4.position,
|
|
273636
|
+
rightYScalevalue = _this$templateData$ri4.rightYScalevalue;
|
|
273460
273637
|
list.push(objectSpread2_objectSpread2({
|
|
273461
273638
|
position: position
|
|
273462
|
-
},
|
|
273639
|
+
}, rightYScalevalue));
|
|
273463
273640
|
}
|
|
273464
273641
|
|
|
273465
|
-
if ((_this$templateData2 = this.templateData) !== null && _this$templateData2 !== void 0 && _this$templateData2.left &&
|
|
273466
|
-
var
|
|
273642
|
+
if ((_this$templateData2 = this.templateData) !== null && _this$templateData2 !== void 0 && (_this$templateData2$l = _this$templateData2.left) !== null && _this$templateData2$l !== void 0 && (_this$templateData2$l2 = _this$templateData2$l.leftYScalevalue) !== null && _this$templateData2$l2 !== void 0 && (_this$templateData2$l3 = _this$templateData2$l2.dataList) !== null && _this$templateData2$l3 !== void 0 && _this$templateData2$l3.length) {
|
|
273643
|
+
var _this$templateData$le = this.templateData.left,
|
|
273644
|
+
_position = _this$templateData$le.position,
|
|
273645
|
+
leftYScalevalue = _this$templateData$le.leftYScalevalue;
|
|
273467
273646
|
list.push(objectSpread2_objectSpread2({
|
|
273468
273647
|
position: _position
|
|
273469
|
-
},
|
|
273648
|
+
}, leftYScalevalue));
|
|
273470
273649
|
}
|
|
273471
273650
|
|
|
273472
273651
|
return list;
|
|
273652
|
+
},
|
|
273653
|
+
hasTopTable: function hasTopTable() {
|
|
273654
|
+
var _this$templateData$to, _this$templateData$to2;
|
|
273655
|
+
|
|
273656
|
+
return ((_this$templateData$to = this.templateData.top) === null || _this$templateData$to === void 0 ? void 0 : (_this$templateData$to2 = _this$templateData$to.list) === null || _this$templateData$to2 === void 0 ? void 0 : _this$templateData$to2.length) > 0;
|
|
273657
|
+
},
|
|
273658
|
+
hasTable: function hasTable() {
|
|
273659
|
+
var _this$templateData$le2, _this$templateData$le3, _this$templateData$le4, _this$templateData$ri5, _this$templateData$ri6, _this$templateData$ri7;
|
|
273660
|
+
|
|
273661
|
+
var hasLeft = ((_this$templateData$le2 = this.templateData.left) === null || _this$templateData$le2 === void 0 ? void 0 : (_this$templateData$le3 = _this$templateData$le2.leftYScalevalue) === null || _this$templateData$le3 === void 0 ? void 0 : (_this$templateData$le4 = _this$templateData$le3.list) === null || _this$templateData$le4 === void 0 ? void 0 : _this$templateData$le4.length) > 0;
|
|
273662
|
+
var hasRight = ((_this$templateData$ri5 = this.templateData.right) === null || _this$templateData$ri5 === void 0 ? void 0 : (_this$templateData$ri6 = _this$templateData$ri5.rightYScalevalue) === null || _this$templateData$ri6 === void 0 ? void 0 : (_this$templateData$ri7 = _this$templateData$ri6.list) === null || _this$templateData$ri7 === void 0 ? void 0 : _this$templateData$ri7.length) > 0;
|
|
273663
|
+
return this.hasXScalevalue && hasLeft && hasRight;
|
|
273664
|
+
},
|
|
273665
|
+
hasXScalevalue: function hasXScalevalue() {
|
|
273666
|
+
var _this$templateData$to3, _this$templateData$to4, _this$templateData$to5;
|
|
273667
|
+
|
|
273668
|
+
return ((_this$templateData$to3 = this.templateData.top) === null || _this$templateData$to3 === void 0 ? void 0 : (_this$templateData$to4 = _this$templateData$to3.xScalevalue) === null || _this$templateData$to4 === void 0 ? void 0 : (_this$templateData$to5 = _this$templateData$to4.list) === null || _this$templateData$to5 === void 0 ? void 0 : _this$templateData$to5.length) > 0;
|
|
273473
273669
|
}
|
|
273474
273670
|
},
|
|
273475
273671
|
data: function data() {
|
|
@@ -273537,8 +273733,8 @@ var FabricCenter_component = normalizeComponent(
|
|
|
273537
273733
|
}));
|
|
273538
273734
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=script&lang=js&
|
|
273539
273735
|
/* harmony default export */ var src_FabricChartvue_type_script_lang_js_ = (FabricChartvue_type_script_lang_js_);
|
|
273540
|
-
// EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=
|
|
273541
|
-
var
|
|
273736
|
+
// EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=3bab1499&lang=less&scoped=true&
|
|
273737
|
+
var FabricChartvue_type_style_index_0_id_3bab1499_lang_less_scoped_true_ = __webpack_require__("cb41");
|
|
273542
273738
|
|
|
273543
273739
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue
|
|
273544
273740
|
|
|
@@ -273551,11 +273747,11 @@ var FabricChartvue_type_style_index_0_id_6ad9fd30_lang_less_scoped_true_ = __web
|
|
|
273551
273747
|
|
|
273552
273748
|
var FabricChart_component = normalizeComponent(
|
|
273553
273749
|
src_FabricChartvue_type_script_lang_js_,
|
|
273554
|
-
|
|
273555
|
-
|
|
273750
|
+
FabricChartvue_type_template_id_3bab1499_scoped_true_render,
|
|
273751
|
+
FabricChartvue_type_template_id_3bab1499_scoped_true_staticRenderFns,
|
|
273556
273752
|
false,
|
|
273557
273753
|
null,
|
|
273558
|
-
"
|
|
273754
|
+
"3bab1499",
|
|
273559
273755
|
null
|
|
273560
273756
|
|
|
273561
273757
|
)
|