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.common.js
CHANGED
|
@@ -62581,6 +62581,20 @@ module.exports = exports;
|
|
|
62581
62581
|
|
|
62582
62582
|
}));
|
|
62583
62583
|
|
|
62584
|
+
/***/ }),
|
|
62585
|
+
|
|
62586
|
+
/***/ "6d12":
|
|
62587
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
62588
|
+
|
|
62589
|
+
// Imports
|
|
62590
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("a1a8");
|
|
62591
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
62592
|
+
// Module
|
|
62593
|
+
exports.push([module.i, ".c-fabric-chart[data-v-3bab1499]{position:relative}", ""]);
|
|
62594
|
+
// Exports
|
|
62595
|
+
module.exports = exports;
|
|
62596
|
+
|
|
62597
|
+
|
|
62584
62598
|
/***/ }),
|
|
62585
62599
|
|
|
62586
62600
|
/***/ "6d2f":
|
|
@@ -167823,6 +167837,22 @@ module.exports = { "default": __webpack_require__("9b21"), __esModule: true };
|
|
|
167823
167837
|
|
|
167824
167838
|
/***/ }),
|
|
167825
167839
|
|
|
167840
|
+
/***/ "ae0b":
|
|
167841
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
167842
|
+
|
|
167843
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
167844
|
+
|
|
167845
|
+
// load the styles
|
|
167846
|
+
var content = __webpack_require__("6d12");
|
|
167847
|
+
if(content.__esModule) content = content.default;
|
|
167848
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
167849
|
+
if(content.locals) module.exports = content.locals;
|
|
167850
|
+
// add the styles to the DOM
|
|
167851
|
+
var add = __webpack_require__("5925").default
|
|
167852
|
+
var update = add("9b703a60", content, true, {"sourceMap":false,"shadowMode":false});
|
|
167853
|
+
|
|
167854
|
+
/***/ }),
|
|
167855
|
+
|
|
167826
167856
|
/***/ "ae93":
|
|
167827
167857
|
/***/ (function(module, exports, __webpack_require__) {
|
|
167828
167858
|
|
|
@@ -175195,17 +175225,6 @@ return arrayTreeFilter;
|
|
|
175195
175225
|
})));
|
|
175196
175226
|
|
|
175197
175227
|
|
|
175198
|
-
/***/ }),
|
|
175199
|
-
|
|
175200
|
-
/***/ "b8b9":
|
|
175201
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
175202
|
-
|
|
175203
|
-
"use strict";
|
|
175204
|
-
/* 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");
|
|
175205
|
-
/* 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__);
|
|
175206
|
-
/* unused harmony reexport * */
|
|
175207
|
-
|
|
175208
|
-
|
|
175209
175228
|
/***/ }),
|
|
175210
175229
|
|
|
175211
175230
|
/***/ "b8e7":
|
|
@@ -175634,20 +175653,6 @@ function range (start, stop, step) {
|
|
|
175634
175653
|
module.exports = range
|
|
175635
175654
|
|
|
175636
175655
|
|
|
175637
|
-
/***/ }),
|
|
175638
|
-
|
|
175639
|
-
/***/ "ba5e":
|
|
175640
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
175641
|
-
|
|
175642
|
-
// Imports
|
|
175643
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("a1a8");
|
|
175644
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
175645
|
-
// Module
|
|
175646
|
-
exports.push([module.i, ".c-fabric-chart[data-v-6ad9fd30]{position:relative}", ""]);
|
|
175647
|
-
// Exports
|
|
175648
|
-
module.exports = exports;
|
|
175649
|
-
|
|
175650
|
-
|
|
175651
175656
|
/***/ }),
|
|
175652
175657
|
|
|
175653
175658
|
/***/ "ba9f":
|
|
@@ -193310,6 +193315,17 @@ $({ target: 'Array', proto: true }, {
|
|
|
193310
193315
|
addToUnscopables('fill');
|
|
193311
193316
|
|
|
193312
193317
|
|
|
193318
|
+
/***/ }),
|
|
193319
|
+
|
|
193320
|
+
/***/ "cb41":
|
|
193321
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
193322
|
+
|
|
193323
|
+
"use strict";
|
|
193324
|
+
/* 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");
|
|
193325
|
+
/* 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__);
|
|
193326
|
+
/* unused harmony reexport * */
|
|
193327
|
+
|
|
193328
|
+
|
|
193313
193329
|
/***/ }),
|
|
193314
193330
|
|
|
193315
193331
|
/***/ "cb44":
|
|
@@ -207765,22 +207781,6 @@ var isRegExp = helperCreateInInObjectString('RegExp')
|
|
|
207765
207781
|
module.exports = isRegExp
|
|
207766
207782
|
|
|
207767
207783
|
|
|
207768
|
-
/***/ }),
|
|
207769
|
-
|
|
207770
|
-
/***/ "ef6f":
|
|
207771
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
207772
|
-
|
|
207773
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
207774
|
-
|
|
207775
|
-
// load the styles
|
|
207776
|
-
var content = __webpack_require__("ba5e");
|
|
207777
|
-
if(content.__esModule) content = content.default;
|
|
207778
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
207779
|
-
if(content.locals) module.exports = content.locals;
|
|
207780
|
-
// add the styles to the DOM
|
|
207781
|
-
var add = __webpack_require__("5925").default
|
|
207782
|
-
var update = add("f6678db0", content, true, {"sourceMap":false,"shadowMode":false});
|
|
207783
|
-
|
|
207784
207784
|
/***/ }),
|
|
207785
207785
|
|
|
207786
207786
|
/***/ "ef86":
|
|
@@ -267988,19 +267988,19 @@ BigTable.install = function (Vue) {
|
|
|
267988
267988
|
|
|
267989
267989
|
|
|
267990
267990
|
/* harmony default export */ var packages_table = (BigTable);
|
|
267991
|
-
// 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=
|
|
267992
|
-
var
|
|
267993
|
-
var
|
|
267991
|
+
// 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&
|
|
267992
|
+
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)}
|
|
267993
|
+
var FabricChartvue_type_template_id_3bab1499_scoped_true_staticRenderFns = []
|
|
267994
267994
|
|
|
267995
267995
|
|
|
267996
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=
|
|
267996
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=3bab1499&scoped=true&
|
|
267997
267997
|
|
|
267998
|
-
// 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=
|
|
267999
|
-
var
|
|
268000
|
-
var
|
|
267998
|
+
// 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&
|
|
267999
|
+
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)}
|
|
268000
|
+
var FabricCanvasvue_type_template_id_5bce0101_staticRenderFns = []
|
|
268001
268001
|
|
|
268002
268002
|
|
|
268003
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=
|
|
268003
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=5bce0101&
|
|
268004
268004
|
|
|
268005
268005
|
// EXTERNAL MODULE: ./node_modules/fabric/dist/fabric.js
|
|
268006
268006
|
var fabric = __webpack_require__("7a94");
|
|
@@ -268021,6 +268021,14 @@ var fabric = __webpack_require__("7a94");
|
|
|
268021
268021
|
//
|
|
268022
268022
|
//
|
|
268023
268023
|
|
|
268024
|
+
var topSpaceHeight = 10; // templateData.top.spaceHeight
|
|
268025
|
+
|
|
268026
|
+
var topSpaceGridNumber = 3; // templateData.top.xScalevalue.spaceGridNumber
|
|
268027
|
+
|
|
268028
|
+
var leftSpaceGridNumber = 2; // templateData.left.leftYScalevalue.spaceGridNumber
|
|
268029
|
+
|
|
268030
|
+
var rightSpaceGridNumber = 2; // templateData.right.rightYScalevalue.spaceGridNumber
|
|
268031
|
+
|
|
268024
268032
|
/* harmony default export */ var FabricCanvasvue_type_script_lang_js_ = ({
|
|
268025
268033
|
name: 'FabricCanvas',
|
|
268026
268034
|
props: {
|
|
@@ -268094,14 +268102,23 @@ var fabric = __webpack_require__("7a94");
|
|
|
268094
268102
|
}
|
|
268095
268103
|
};
|
|
268096
268104
|
},
|
|
268097
|
-
|
|
268098
|
-
|
|
268099
|
-
|
|
268100
|
-
|
|
268101
|
-
|
|
268102
|
-
|
|
268103
|
-
|
|
268104
|
-
|
|
268105
|
+
created: function created() {
|
|
268106
|
+
if (!this.templateData.top) {
|
|
268107
|
+
try {
|
|
268108
|
+
throw new Error('缺少顶部数据对象, 无法生成水平方向刻度');
|
|
268109
|
+
} catch (error) {
|
|
268110
|
+
console.warn(error);
|
|
268111
|
+
}
|
|
268112
|
+
}
|
|
268113
|
+
|
|
268114
|
+
if (!this.templateData.left || !this.templateData.right) {
|
|
268115
|
+
try {
|
|
268116
|
+
throw new Error('缺少左/右侧数据对象, 无法生成垂直方向刻度');
|
|
268117
|
+
} catch (error) {
|
|
268118
|
+
console.warn(error);
|
|
268119
|
+
}
|
|
268120
|
+
}
|
|
268121
|
+
},
|
|
268105
268122
|
computed: {
|
|
268106
268123
|
canvasWidth: function canvasWidth() {
|
|
268107
268124
|
// 画布宽度
|
|
@@ -268112,67 +268129,41 @@ var fabric = __webpack_require__("7a94");
|
|
|
268112
268129
|
return this.templateData.canvasHeight;
|
|
268113
268130
|
},
|
|
268114
268131
|
treeTableminCellWidth: function treeTableminCellWidth() {
|
|
268115
|
-
var _this$templateData$to;
|
|
268132
|
+
var _this$templateData$to, _this$templateData$le;
|
|
268116
268133
|
|
|
268117
|
-
return ((_this$templateData$to = this.templateData.top) === null || _this$templateData$to === void 0 ? void 0 : _this$templateData$to.treeTableminCellWidth) || 20;
|
|
268134
|
+
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;
|
|
268118
268135
|
},
|
|
268119
268136
|
gridXNumber: function gridXNumber() {
|
|
268137
|
+
var _this$templateData$to2, _this$templateData$to3, _this$templateData$to4, _this$templateData$to5, _this$templateData$to6;
|
|
268138
|
+
|
|
268120
268139
|
// 网格水平方向总数 如果设置了默认值就直接取用
|
|
268121
268140
|
if (this.templateData.table.mainXCell && this.templateData.table.subXCell) {
|
|
268122
268141
|
return this.templateData.table.mainXCell * this.templateData.table.subXCell;
|
|
268123
268142
|
} // 如果没设置 就从顶部列表内自己计算一下 list遍历后将每一项完全展开后的数组长度存入topListLength取出最大值即可
|
|
268124
|
-
// const topLenList = [];
|
|
268125
|
-
// this.templateData.top.list.forEach(item => topLenList.push(item.flat(Infinity).length));
|
|
268126
|
-
// return Math.max(...topLenList);
|
|
268127
268143
|
|
|
268128
268144
|
|
|
268129
|
-
var spaceGridNumber = this.templateData.top.xScalevalue.spaceGridNumber ||
|
|
268130
|
-
return this.templateData.top.xScalevalue.list.length * spaceGridNumber;
|
|
268145
|
+
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;
|
|
268146
|
+
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;
|
|
268131
268147
|
},
|
|
268132
268148
|
gridYNumber: function gridYNumber() {
|
|
268133
268149
|
// 网格垂直方向总数
|
|
268134
|
-
|
|
268135
|
-
return this.templateData.table.mainYCell * this.templateData.table.subYCell; // }
|
|
268136
|
-
// const leftLenList = [];
|
|
268137
|
-
// this.templateData.left.list.forEach(item => {
|
|
268138
|
-
// if (isObject(item)) {
|
|
268139
|
-
// // 当前列内没有上下区分 左右区分针对item.list遍历即可 占用列数 => item.list.length 示例: 温度: 摄氏度 华氏度
|
|
268140
|
-
// leftLenList.push(item.list.length);
|
|
268141
|
-
// } else if (Array.isArray(item)) {
|
|
268142
|
-
// // 当前列内有上下之分 列数暂时默认 +1 ----- 若有更复杂情况(上下列中含有左右列的情况)可以改为递归形式
|
|
268143
|
-
// let len = 0;
|
|
268144
|
-
// item.forEach(v => (len += v.list.length));
|
|
268145
|
-
// leftLenList.push(len);
|
|
268146
|
-
// }
|
|
268147
|
-
// });
|
|
268148
|
-
// return Math.max(...leftLenList);
|
|
268150
|
+
return this.templateData.table.mainYCell * this.templateData.table.subYCell;
|
|
268149
268151
|
},
|
|
268150
268152
|
originX: function originX() {
|
|
268153
|
+
var _this$templateData$to7, _this$templateData$le2;
|
|
268154
|
+
|
|
268151
268155
|
// 网格左侧起始坐标 X, 也是整个区域左侧列表坐标最大坐标值 取出初始化后网格区域水平方向多出的余数 添加到左栏宽度上
|
|
268152
|
-
|
|
268153
|
-
// this.templateData.left.list.forEach(item => {
|
|
268154
|
-
// if (isObject(item)) { // 当前列内没有上下区分 左右区分针对item.list遍历即可 占用列数 => item.list.length 示例: 温度: 摄氏度 华氏度
|
|
268155
|
-
// columns += item.list.length;
|
|
268156
|
-
// } else if (Array.isArray(item)) { // 当前列内有上下之分 列数暂时默认 +1 ----- 若有更复杂情况(上下列中含有左右列的情况)可以改为递归形式
|
|
268157
|
-
// columns += 1;
|
|
268158
|
-
// }
|
|
268159
|
-
// })
|
|
268160
|
-
// const originX = this.templateData.left.width * columns;
|
|
268161
|
-
// const residue = (this.endX - originX) % this.gridXNumber;
|
|
268162
|
-
var originX = this.templateData.top.treeTableWidth;
|
|
268156
|
+
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;
|
|
268163
268157
|
var residue = (this.endX - originX) % this.gridXNumber;
|
|
268164
268158
|
return originX + residue;
|
|
268165
268159
|
},
|
|
268166
268160
|
originY: function originY() {
|
|
268161
|
+
var _this$templateData$to8;
|
|
268162
|
+
|
|
268167
268163
|
// 顶部列表高度 网格不需要的高度放到顶部,因为底部不一定存在列表
|
|
268168
|
-
// const height = this.templateData.top.height ? this.templateData.top.height : 30;
|
|
268169
|
-
// const topheight = this.templateData.top.list.length * height;
|
|
268170
|
-
// // const residue = (this.canvasHeight - topheight - this.endY) % this.gridYNumber; // 此处算法不对,会导致后面高度值计算出小数,造成表格重影
|
|
268171
|
-
// const residue = (this.endY - topheight) % this.gridYNumber;
|
|
268172
|
-
// return topheight + residue;
|
|
268173
268164
|
var topHeight = this.endYTop;
|
|
268174
268165
|
var residue = (this.endY - topHeight) % this.gridYNumber;
|
|
268175
|
-
return topHeight + residue + this.templateData.top.spaceHeight;
|
|
268166
|
+
return topHeight + residue + (((_this$templateData$to8 = this.templateData.top) === null || _this$templateData$to8 === void 0 ? void 0 : _this$templateData$to8.spaceHeight) || topSpaceHeight);
|
|
268176
268167
|
},
|
|
268177
268168
|
endX: function endX() {
|
|
268178
268169
|
// 网格区域水平方向最大坐标值, 也是整个画布右侧列表坐标起始值,网格右下角x轴坐标值
|
|
@@ -268194,21 +268185,27 @@ var fabric = __webpack_require__("7a94");
|
|
|
268194
268185
|
return (this.endY - this.originY) / this.gridYNumber;
|
|
268195
268186
|
},
|
|
268196
268187
|
spaceHeight: function spaceHeight() {
|
|
268188
|
+
var _this$templateData$to9;
|
|
268189
|
+
|
|
268197
268190
|
// 头部表格底部空白位置的高,用于显示x轴时间点
|
|
268198
268191
|
var topHeight = this.endYTop;
|
|
268199
268192
|
var residue = (this.endY - topHeight) % this.gridYNumber;
|
|
268200
|
-
return residue + this.templateData.top.spaceHeight;
|
|
268193
|
+
return residue + (((_this$templateData$to9 = this.templateData.top) === null || _this$templateData$to9 === void 0 ? void 0 : _this$templateData$to9.spaceHeight) || topSpaceHeight);
|
|
268201
268194
|
},
|
|
268202
268195
|
yCellHeightTop: function yCellHeightTop() {
|
|
268196
|
+
var _this$templateData$to10;
|
|
268197
|
+
|
|
268203
268198
|
// 头部表格垂直方向网格高度
|
|
268204
|
-
return this.templateData.top.treeTableminCellHeight;
|
|
268199
|
+
return ((_this$templateData$to10 = this.templateData.top) === null || _this$templateData$to10 === void 0 ? void 0 : _this$templateData$to10.treeTableminCellHeight) || 20;
|
|
268205
268200
|
},
|
|
268206
268201
|
endYTop: function endYTop() {
|
|
268207
268202
|
return this.gridYnumberTop * this.yCellHeightTop;
|
|
268208
268203
|
},
|
|
268209
268204
|
// 转换为时间戳的x轴时间列表
|
|
268210
268205
|
xScaleList: function xScaleList() {
|
|
268211
|
-
var
|
|
268206
|
+
var _this$templateData$to11, _this$templateData$to12;
|
|
268207
|
+
|
|
268208
|
+
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) || [];
|
|
268212
268209
|
return list.map(function (item) {
|
|
268213
268210
|
return new Date(item).getTime();
|
|
268214
268211
|
});
|
|
@@ -268246,13 +268243,17 @@ var fabric = __webpack_require__("7a94");
|
|
|
268246
268243
|
// },
|
|
268247
268244
|
// y轴每mmHg的脉搏/血压的高度值
|
|
268248
268245
|
yScaleCellLeft: function yScaleCellLeft() {
|
|
268249
|
-
var
|
|
268250
|
-
|
|
268246
|
+
var _this$templateData$le3, _this$templateData$le4, _this$templateData$le5, _this$templateData$le6;
|
|
268247
|
+
|
|
268248
|
+
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) || [];
|
|
268249
|
+
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;
|
|
268251
268250
|
},
|
|
268252
268251
|
// y轴每摄氏度的高度值
|
|
268253
268252
|
yScaleCellRight: function yScaleCellRight() {
|
|
268254
|
-
var
|
|
268255
|
-
|
|
268253
|
+
var _this$templateData$ri, _this$templateData$ri2, _this$templateData$ri3, _this$templateData$ri4;
|
|
268254
|
+
|
|
268255
|
+
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) || [];
|
|
268256
|
+
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;
|
|
268256
268257
|
},
|
|
268257
268258
|
eventStyle: function eventStyle() {
|
|
268258
268259
|
var _this$templateData$ta;
|
|
@@ -268268,17 +268269,24 @@ var fabric = __webpack_require__("7a94");
|
|
|
268268
268269
|
},
|
|
268269
268270
|
methods: {
|
|
268270
268271
|
init: function init() {
|
|
268272
|
+
var _this$templateData$to13, _this$templateData$to14;
|
|
268273
|
+
|
|
268271
268274
|
this.canvas = new this.fabric.Canvas('c-fabric-canvas', objectSpread2_objectSpread2({
|
|
268272
268275
|
width: this.templateData.canvasWidth,
|
|
268273
268276
|
height: this.templateData.canvasHeight
|
|
268274
268277
|
}, this.canvasAttr));
|
|
268275
|
-
|
|
268276
|
-
|
|
268278
|
+
|
|
268279
|
+
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) {
|
|
268280
|
+
this.getGridYnumberTop(this.templateData.top.list);
|
|
268281
|
+
this.treeList = this.setTreeStyle(this.templateData.top.list);
|
|
268282
|
+
}
|
|
268277
268283
|
},
|
|
268278
268284
|
getGridYnumberTop: function getGridYnumberTop(list) {
|
|
268279
268285
|
// 头部表格垂直方向网格总数
|
|
268280
268286
|
for (var i = 0; i < list.length; i++) {
|
|
268281
|
-
|
|
268287
|
+
var _list$i$children;
|
|
268288
|
+
|
|
268289
|
+
if ((_list$i$children = list[i].children) !== null && _list$i$children !== void 0 && _list$i$children.length) {
|
|
268282
268290
|
this.getGridYnumberTop(list[i].children);
|
|
268283
268291
|
} else {
|
|
268284
268292
|
this.gridYnumberTop++;
|
|
@@ -268295,28 +268303,33 @@ var fabric = __webpack_require__("7a94");
|
|
|
268295
268303
|
setTreeStyle: function setTreeStyle(list) {
|
|
268296
268304
|
var levelCol = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
268297
268305
|
var arr = [];
|
|
268306
|
+
var _this$templateData$to15 = this.templateData.top,
|
|
268307
|
+
treeTableminCellWidth = _this$templateData$to15.treeTableminCellWidth,
|
|
268308
|
+
treeTableminCellHeight = _this$templateData$to15.treeTableminCellHeight;
|
|
268298
268309
|
|
|
268299
268310
|
for (var i = 0; i < list.length; i++) {
|
|
268311
|
+
var _list$i$children2;
|
|
268312
|
+
|
|
268300
268313
|
var obj = {};
|
|
268301
|
-
obj
|
|
268302
|
-
|
|
268303
|
-
|
|
268314
|
+
Object.assign(obj, {
|
|
268315
|
+
title: list[i].title || '',
|
|
268316
|
+
left: levelCol * treeTableminCellWidth,
|
|
268317
|
+
top: this.levelRow * treeTableminCellHeight
|
|
268318
|
+
});
|
|
268304
268319
|
this.levelRow++;
|
|
268305
268320
|
|
|
268306
|
-
if (
|
|
268321
|
+
if ((_list$i$children2 = list[i].children) !== null && _list$i$children2 !== void 0 && _list$i$children2.length) {
|
|
268322
|
+
this.levelRow--;
|
|
268307
268323
|
obj.title = obj.title.split('').join('\n'); // 如果有子级则文字竖形排列
|
|
268308
268324
|
|
|
268309
|
-
|
|
268310
|
-
obj.width = this.templateData.top.treeTableminCellWidth;
|
|
268325
|
+
obj.width = treeTableminCellWidth;
|
|
268311
268326
|
obj.children = this.setTreeStyle(list[i].children, levelCol + 1);
|
|
268312
268327
|
obj.subSize = this.getChildrenSize(list[i].children);
|
|
268313
|
-
obj.height = obj.subSize *
|
|
268328
|
+
obj.height = obj.subSize * treeTableminCellHeight;
|
|
268314
268329
|
} else {
|
|
268315
268330
|
obj.width = this.originX - obj.left;
|
|
268316
|
-
obj.height =
|
|
268317
|
-
obj.
|
|
268318
|
-
obj.lineList = _toConsumableArray(list[i].lineList);
|
|
268319
|
-
obj.type = list[i].type;
|
|
268331
|
+
obj.height = treeTableminCellHeight;
|
|
268332
|
+
obj.lineList = JSON.parse(JSON.stringify(list[i].lineList));
|
|
268320
268333
|
}
|
|
268321
268334
|
|
|
268322
268335
|
arr.push(obj);
|
|
@@ -268328,7 +268341,9 @@ var fabric = __webpack_require__("7a94");
|
|
|
268328
268341
|
var subSize = 0;
|
|
268329
268342
|
|
|
268330
268343
|
for (var i = 0; i < list.length; i++) {
|
|
268331
|
-
|
|
268344
|
+
var _list$i$children3;
|
|
268345
|
+
|
|
268346
|
+
if ((_list$i$children3 = list[i].children) !== null && _list$i$children3 !== void 0 && _list$i$children3.length) {
|
|
268332
268347
|
subSize += this.getChildrenSize(list[i].children);
|
|
268333
268348
|
} else {
|
|
268334
268349
|
subSize += 1;
|
|
@@ -268366,8 +268381,8 @@ var fabric = __webpack_require__("7a94");
|
|
|
268366
268381
|
|
|
268367
268382
|
var FabricCanvas_component = normalizeComponent(
|
|
268368
268383
|
fabric_chart_FabricCanvasvue_type_script_lang_js_,
|
|
268369
|
-
|
|
268370
|
-
|
|
268384
|
+
FabricCanvasvue_type_template_id_5bce0101_render,
|
|
268385
|
+
FabricCanvasvue_type_template_id_5bce0101_staticRenderFns,
|
|
268371
268386
|
false,
|
|
268372
268387
|
null,
|
|
268373
268388
|
null,
|
|
@@ -268616,12 +268631,12 @@ var fabric_chart2_FabricCanvas_component = normalizeComponent(
|
|
|
268616
268631
|
)
|
|
268617
268632
|
|
|
268618
268633
|
/* harmony default export */ var fabric_chart2_FabricCanvas = (fabric_chart2_FabricCanvas_component.exports);
|
|
268619
|
-
// 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=
|
|
268620
|
-
var
|
|
268621
|
-
var
|
|
268634
|
+
// 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&
|
|
268635
|
+
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)}
|
|
268636
|
+
var FabricPolylinesvue_type_template_id_77eb0f8b_staticRenderFns = []
|
|
268622
268637
|
|
|
268623
268638
|
|
|
268624
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=
|
|
268639
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=77eb0f8b&
|
|
268625
268640
|
|
|
268626
268641
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
268627
268642
|
function _arrayWithHoles(arr) {
|
|
@@ -268676,6 +268691,9 @@ function _nonIterableRest() {
|
|
|
268676
268691
|
function _slicedToArray(arr, i) {
|
|
268677
268692
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
268678
268693
|
}
|
|
268694
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.fill.js
|
|
268695
|
+
var es_array_fill = __webpack_require__("cb29");
|
|
268696
|
+
|
|
268679
268697
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.freeze.js
|
|
268680
268698
|
var es_object_freeze = __webpack_require__("dca8");
|
|
268681
268699
|
|
|
@@ -268734,11 +268752,9 @@ var es_object_freeze = __webpack_require__("dca8");
|
|
|
268734
268752
|
var index = xScaleCellList.findIndex(function (v) {
|
|
268735
268753
|
return v.x >= left;
|
|
268736
268754
|
});
|
|
268737
|
-
|
|
268738
|
-
|
|
268739
|
-
|
|
268740
|
-
time = obj.time + (left - obj.x) * obj.xScaleTime;
|
|
268741
|
-
}
|
|
268755
|
+
!~index && (index = xScaleCellList.length);
|
|
268756
|
+
var obj = xScaleCellList[index - 1];
|
|
268757
|
+
time = obj.time + (left - obj.x) * obj.xScaleTime;
|
|
268742
268758
|
}
|
|
268743
268759
|
|
|
268744
268760
|
var d = new Date(time);
|
|
@@ -269106,7 +269122,8 @@ var type_isObject = function isObject(obj) {
|
|
|
269106
269122
|
methods: {
|
|
269107
269123
|
// 折线点移动限制 目前仅限制不能移动出画布
|
|
269108
269124
|
pointMoveLimit: function pointMoveLimit(point) {
|
|
269109
|
-
point.setCoords(); //
|
|
269125
|
+
point.setCoords(); // 需调用setCoords()才能重新计算控制位置(改变Object状态)
|
|
269126
|
+
// const objBoundingBox = point.getBoundingRect(); // 此方式会导致结果不精准,应该用point的top值判断
|
|
269110
269127
|
|
|
269111
269128
|
var leftLimit = point.prevPoint ? point.prevPoint.get('left') : this.propItems.originX;
|
|
269112
269129
|
var rightLimit = point.nextPoint ? point.nextPoint.get('left') : this.propItems.endX;
|
|
@@ -269126,8 +269143,9 @@ var type_isObject = function isObject(obj) {
|
|
|
269126
269143
|
if (point.left > rightLimit) {
|
|
269127
269144
|
point.set('left', rightLimit);
|
|
269128
269145
|
}
|
|
269129
|
-
|
|
269130
|
-
|
|
269146
|
+
},
|
|
269147
|
+
getContainer: function getContainer() {
|
|
269148
|
+
return this.$el;
|
|
269131
269149
|
},
|
|
269132
269150
|
|
|
269133
269151
|
/**
|
|
@@ -269446,6 +269464,7 @@ var defaultVaule_data = {
|
|
|
269446
269464
|
|
|
269447
269465
|
|
|
269448
269466
|
|
|
269467
|
+
|
|
269449
269468
|
|
|
269450
269469
|
|
|
269451
269470
|
//
|
|
@@ -269544,9 +269563,6 @@ var rightClickNode = [{
|
|
|
269544
269563
|
});
|
|
269545
269564
|
},
|
|
269546
269565
|
methods: {
|
|
269547
|
-
getContainer: function getContainer() {
|
|
269548
|
-
return this.$el;
|
|
269549
|
-
},
|
|
269550
269566
|
createEvent: function createEvent() {
|
|
269551
269567
|
var _this2 = this;
|
|
269552
269568
|
|
|
@@ -269727,9 +269743,10 @@ var rightClickNode = [{
|
|
|
269727
269743
|
};
|
|
269728
269744
|
leftTitleList.forEach( /*#__PURE__*/function () {
|
|
269729
269745
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(v, i) {
|
|
269730
|
-
var _v$
|
|
269746
|
+
var _v$pointAttr2;
|
|
269747
|
+
|
|
269748
|
+
var baseTop, top, left, pointId, _v$pointAttr, _v$pointAttr$fill, fillColor, stroke, text, isOriginXCenter, iconLeft, option, ele, icon, originTop, cloneIconId;
|
|
269731
269749
|
|
|
269732
|
-
var baseTop, top, left, pointId, text, isOriginXCenter, iconLeft, option, ele, icon, originTop, cloneIconId;
|
|
269733
269750
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
269734
269751
|
while (1) {
|
|
269735
269752
|
switch (_context.prev = _context.next) {
|
|
@@ -269738,9 +269755,10 @@ var rightClickNode = [{
|
|
|
269738
269755
|
top = baseTop - i * lableLineHeight;
|
|
269739
269756
|
left = lableMargin[0] + treeTableminCellWidth;
|
|
269740
269757
|
pointId = "".concat(v.polylineTypeId, "_").concat(v.polylineIndex, "_-1_polylinePoint_'").concat(new Date().getTime(), "_isTitle");
|
|
269758
|
+
_v$pointAttr = v.pointAttr, _v$pointAttr$fill = _v$pointAttr.fill, fillColor = _v$pointAttr$fill === void 0 ? '#000' : _v$pointAttr$fill, stroke = _v$pointAttr.stroke;
|
|
269741
269759
|
text = new _this5.fabric.Text(String(v.title), objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
269742
269760
|
fontSize: style.fontSize,
|
|
269743
|
-
fill:
|
|
269761
|
+
fill: fillColor && stroke ? stroke : fillColor,
|
|
269744
269762
|
left: left,
|
|
269745
269763
|
top: top,
|
|
269746
269764
|
originY: 'center'
|
|
@@ -269764,24 +269782,24 @@ var rightClickNode = [{
|
|
|
269764
269782
|
rightLimit: v.rightLimit || ''
|
|
269765
269783
|
});
|
|
269766
269784
|
|
|
269767
|
-
if (!(v.type === 'img' && (_v$
|
|
269768
|
-
_context.next =
|
|
269785
|
+
if (!(v.type === 'img' && (_v$pointAttr2 = v.pointAttr) !== null && _v$pointAttr2 !== void 0 && _v$pointAttr2.iconClassName)) {
|
|
269786
|
+
_context.next = 13;
|
|
269769
269787
|
break;
|
|
269770
269788
|
}
|
|
269771
269789
|
|
|
269772
|
-
_context.next =
|
|
269790
|
+
_context.next = 12;
|
|
269773
269791
|
return _this5.createImage(v.pointAttr.iconClassName, v.pointAttr);
|
|
269774
269792
|
|
|
269775
|
-
case
|
|
269793
|
+
case 12:
|
|
269776
269794
|
ele = _context.sent;
|
|
269777
269795
|
|
|
269778
|
-
case
|
|
269779
|
-
_context.next =
|
|
269796
|
+
case 13:
|
|
269797
|
+
_context.next = 15;
|
|
269780
269798
|
return _this5.createPoint(v.type, objectSpread2_objectSpread2({
|
|
269781
269799
|
ele: ele || ''
|
|
269782
269800
|
}, option));
|
|
269783
269801
|
|
|
269784
|
-
case
|
|
269802
|
+
case 15:
|
|
269785
269803
|
icon = _context.sent;
|
|
269786
269804
|
icon.hasControls = icon.hasBorders = false;
|
|
269787
269805
|
originTop = top;
|
|
@@ -269853,7 +269871,7 @@ var rightClickNode = [{
|
|
|
269853
269871
|
|
|
269854
269872
|
_this5.canvas.requestRenderAll();
|
|
269855
269873
|
|
|
269856
|
-
case
|
|
269874
|
+
case 22:
|
|
269857
269875
|
case "end":
|
|
269858
269876
|
return _context.stop();
|
|
269859
269877
|
}
|
|
@@ -270385,12 +270403,12 @@ var rightClickNode = [{
|
|
|
270385
270403
|
if (id && id.includes('_polylinePoint_')) {
|
|
270386
270404
|
_this10._currentPointId = id;
|
|
270387
270405
|
_this10.rightClickNode = Object.freeze(rightClickNode.slice());
|
|
270388
|
-
|
|
270406
|
+
_this10.isRightVisible = true;
|
|
270407
|
+
} else if (!id) {
|
|
270389
270408
|
_this10._currentPointId = '';
|
|
270390
270409
|
_this10.rightClickNode = Object.freeze(rightClickNode.slice(0, 1));
|
|
270410
|
+
_this10.isRightVisible = true;
|
|
270391
270411
|
}
|
|
270392
|
-
|
|
270393
|
-
_this10.isRightVisible = true;
|
|
270394
270412
|
});
|
|
270395
270413
|
},
|
|
270396
270414
|
// 关闭右键菜单,打开添加节点弹窗表单
|
|
@@ -270524,8 +270542,8 @@ var rightClickNode = [{
|
|
|
270524
270542
|
|
|
270525
270543
|
var FabricPolylines_component = normalizeComponent(
|
|
270526
270544
|
fabric_chart_FabricPolylinesvue_type_script_lang_js_,
|
|
270527
|
-
|
|
270528
|
-
|
|
270545
|
+
FabricPolylinesvue_type_template_id_77eb0f8b_render,
|
|
270546
|
+
FabricPolylinesvue_type_template_id_77eb0f8b_staticRenderFns,
|
|
270529
270547
|
false,
|
|
270530
270548
|
null,
|
|
270531
270549
|
null,
|
|
@@ -270629,12 +270647,12 @@ var FabricGrid_component = normalizeComponent(
|
|
|
270629
270647
|
)
|
|
270630
270648
|
|
|
270631
270649
|
/* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
|
|
270632
|
-
// 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=
|
|
270633
|
-
var
|
|
270634
|
-
var
|
|
270650
|
+
// 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&
|
|
270651
|
+
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)}
|
|
270652
|
+
var FabricTextGroupvue_type_template_id_e1c6fb02_staticRenderFns = []
|
|
270635
270653
|
|
|
270636
270654
|
|
|
270637
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=
|
|
270655
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=e1c6fb02&
|
|
270638
270656
|
|
|
270639
270657
|
// 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&
|
|
270640
270658
|
|
|
@@ -270648,6 +270666,12 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270648
270666
|
|
|
270649
270667
|
|
|
270650
270668
|
|
|
270669
|
+
|
|
270670
|
+
|
|
270671
|
+
|
|
270672
|
+
|
|
270673
|
+
|
|
270674
|
+
//
|
|
270651
270675
|
//
|
|
270652
270676
|
//
|
|
270653
270677
|
//
|
|
@@ -270658,35 +270682,44 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270658
270682
|
|
|
270659
270683
|
|
|
270660
270684
|
|
|
270685
|
+
|
|
270686
|
+
|
|
270687
|
+
var FabricTextGroupvue_type_script_lang_js_rightClickNode = [{
|
|
270688
|
+
name: '修改',
|
|
270689
|
+
type: 'edit'
|
|
270690
|
+
}, {
|
|
270691
|
+
name: '删除',
|
|
270692
|
+
type: 'delete'
|
|
270693
|
+
}];
|
|
270661
270694
|
/* harmony default export */ var FabricTextGroupvue_type_script_lang_js_ = ({
|
|
270662
270695
|
name: 'fabric-text-group',
|
|
270663
270696
|
components: {
|
|
270664
|
-
DropPopup: DropPopup
|
|
270697
|
+
DropPopup: DropPopup,
|
|
270698
|
+
MouseRightClick: MouseRightClick
|
|
270665
270699
|
},
|
|
270666
|
-
mixins: [fabricCommon, draw],
|
|
270700
|
+
mixins: [fabricCommon, draw, polylineCommon],
|
|
270667
270701
|
props: {
|
|
270668
270702
|
templateData: {
|
|
270669
270703
|
type: Object,
|
|
270670
270704
|
required: true
|
|
270671
|
-
}
|
|
270672
|
-
|
|
270673
|
-
|
|
270674
|
-
|
|
270675
|
-
|
|
270705
|
+
},
|
|
270706
|
+
other: {
|
|
270707
|
+
type: Object,
|
|
270708
|
+
default: function _default() {}
|
|
270709
|
+
}
|
|
270710
|
+
},
|
|
270711
|
+
watch: {
|
|
270712
|
+
other: {
|
|
270713
|
+
handler: function handler(value) {
|
|
270714
|
+
if (value) {
|
|
270715
|
+
this.removeOther();
|
|
270716
|
+
this.drawTextDataGroup(value);
|
|
270717
|
+
this.canvas.renderAll();
|
|
270718
|
+
}
|
|
270719
|
+
},
|
|
270720
|
+
deep: true
|
|
270721
|
+
}
|
|
270676
270722
|
},
|
|
270677
|
-
// watch: {
|
|
270678
|
-
// bottom: {
|
|
270679
|
-
// handler(value) {
|
|
270680
|
-
// if (value) {
|
|
270681
|
-
// if (value) {
|
|
270682
|
-
// this.removeMark();
|
|
270683
|
-
// this.drawBottomTextDataGroup(value);
|
|
270684
|
-
// }
|
|
270685
|
-
// }
|
|
270686
|
-
// },
|
|
270687
|
-
// deep: true
|
|
270688
|
-
// }
|
|
270689
|
-
// },
|
|
270690
270723
|
data: function data() {
|
|
270691
270724
|
return {
|
|
270692
270725
|
leftStartX: 0,
|
|
@@ -270695,7 +270728,15 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270695
270728
|
dropPos: {
|
|
270696
270729
|
clientX: 0,
|
|
270697
270730
|
clientY: 0
|
|
270698
|
-
}
|
|
270731
|
+
},
|
|
270732
|
+
isRightVisible: false,
|
|
270733
|
+
rightPos: {
|
|
270734
|
+
clientX: 0,
|
|
270735
|
+
clientY: 0
|
|
270736
|
+
},
|
|
270737
|
+
rightClickNode: [],
|
|
270738
|
+
activeEvent: null // 当前可右键活动的对象
|
|
270739
|
+
|
|
270699
270740
|
};
|
|
270700
270741
|
},
|
|
270701
270742
|
mounted: function mounted() {
|
|
@@ -270721,38 +270762,106 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270721
270762
|
this.canvas.add(this.drawLine([0, this.propItems.canvasHeight - 1, this.propItems.endX, this.propItems.canvasHeight - 1], objectSpread2_objectSpread2({}, this.girdLineStyle))); // 左侧边框线
|
|
270722
270763
|
|
|
270723
270764
|
this.canvas.add(this.drawLine([0, 0, 0, this.propItems.canvasHeight], objectSpread2_objectSpread2({}, this.girdLineStyle)));
|
|
270724
|
-
this.topTreeTextGroup(this.propItems.treeList);
|
|
270725
|
-
this.drawLeftScaleGroup(this.templateData);
|
|
270726
|
-
this.drawTextDataGroup(this.templateData.other);
|
|
270727
|
-
this.drawBottomTextDataGroup(this.templateData.bottom);
|
|
270765
|
+
this.propItems.treeList.length > 0 && this.topTreeTextGroup(this.propItems.treeList);
|
|
270766
|
+
this.templateData.left && this.drawLeftScaleGroup(this.templateData.left);
|
|
270767
|
+
this.templateData.other && this.drawTextDataGroup(this.templateData.other);
|
|
270768
|
+
this.templateData.bottom && this.drawBottomTextDataGroup(this.templateData.bottom);
|
|
270769
|
+
this.createEvent();
|
|
270728
270770
|
this.canvas.renderAll();
|
|
270729
270771
|
},
|
|
270730
|
-
|
|
270772
|
+
createEvent: function createEvent() {
|
|
270731
270773
|
var _this2 = this;
|
|
270732
270774
|
|
|
270775
|
+
this.canvas.on('mouse:up', function (event) {
|
|
270776
|
+
if (event.button === 3) {
|
|
270777
|
+
var _event$pointer = event.pointer,
|
|
270778
|
+
x = _event$pointer.x,
|
|
270779
|
+
y = _event$pointer.y;
|
|
270780
|
+
|
|
270781
|
+
var _this2$$propItems = _this2.$propItems(),
|
|
270782
|
+
originX = _this2$$propItems.originX,
|
|
270783
|
+
originY = _this2$$propItems.originY,
|
|
270784
|
+
endX = _this2$$propItems.endX,
|
|
270785
|
+
endY = _this2$$propItems.endY;
|
|
270786
|
+
|
|
270787
|
+
if (!(x < originX || x > endX || y < originY || y > endY)) {
|
|
270788
|
+
_this2.activeEvent = event;
|
|
270789
|
+
document.querySelector('.upper-canvas').addEventListener('contextmenu', _this2.addEventListenerContextmenu, true);
|
|
270790
|
+
}
|
|
270791
|
+
}
|
|
270792
|
+
});
|
|
270793
|
+
},
|
|
270794
|
+
// 打开右键菜单
|
|
270795
|
+
openRightModal: function openRightModal(event) {
|
|
270796
|
+
var _this3 = this;
|
|
270797
|
+
|
|
270798
|
+
if (!this.propItems.eventStyle.evented) {
|
|
270799
|
+
return;
|
|
270800
|
+
}
|
|
270801
|
+
|
|
270802
|
+
this.rightPos = {
|
|
270803
|
+
clientX: event.e.clientX || event.e.pageX,
|
|
270804
|
+
clientY: event.e.clientY || event.e.pageY
|
|
270805
|
+
};
|
|
270806
|
+
this.isRightVisible = false;
|
|
270807
|
+
var target = event.target;
|
|
270808
|
+
var id = target ? target.id : '';
|
|
270809
|
+
this.$nextTick(function () {
|
|
270810
|
+
if (id && id.includes('_other')) {
|
|
270811
|
+
_this3._currentPoint = target || '';
|
|
270812
|
+
_this3.rightClickNode = Object.freeze(FabricTextGroupvue_type_script_lang_js_rightClickNode.slice());
|
|
270813
|
+
_this3.isRightVisible = true;
|
|
270814
|
+
}
|
|
270815
|
+
});
|
|
270816
|
+
},
|
|
270817
|
+
// 关闭右键菜单,打开添加节点弹窗表单
|
|
270818
|
+
handleRightClick: function handleRightClick(_ref) {
|
|
270819
|
+
var type = _ref.type;
|
|
270820
|
+
this.isRightVisible = false;
|
|
270821
|
+
var text = this._currentPoint;
|
|
270822
|
+
this._currentPoint = '';
|
|
270823
|
+
var obj = {
|
|
270824
|
+
type: text.type,
|
|
270825
|
+
index: text.index,
|
|
270826
|
+
dataIndex: text.dataIndex
|
|
270827
|
+
};
|
|
270828
|
+
this.$emit("".concat(type, "Other"), obj);
|
|
270829
|
+
},
|
|
270830
|
+
removeOther: function removeOther() {
|
|
270831
|
+
var _this4 = this;
|
|
270832
|
+
|
|
270833
|
+
this.canvas.forEachObject(function (obj) {
|
|
270834
|
+
if (obj.id && obj.id.includes('_other')) {
|
|
270835
|
+
_this4.canvas.remove(obj);
|
|
270836
|
+
}
|
|
270837
|
+
});
|
|
270838
|
+
},
|
|
270839
|
+
topTreeTextGroup: function topTreeTextGroup(list) {
|
|
270840
|
+
var _this5 = this;
|
|
270841
|
+
|
|
270733
270842
|
list.forEach(function (item) {
|
|
270734
270843
|
if (item.children && Array.isArray(item.children) && item.children.length > 0) {
|
|
270735
|
-
|
|
270844
|
+
_this5.canvas.add(_this5.drawTextGroup({
|
|
270736
270845
|
width: item.width,
|
|
270737
270846
|
height: item.height,
|
|
270738
270847
|
strokeWidth: 1
|
|
270739
270848
|
}, objectSpread2_objectSpread2({
|
|
270740
270849
|
text: String(item.title)
|
|
270741
|
-
},
|
|
270850
|
+
}, _this5.templateData.top.treeTableTextStyle || {}), {
|
|
270742
270851
|
left: item.left,
|
|
270743
270852
|
top: item.top
|
|
270744
270853
|
}));
|
|
270745
270854
|
|
|
270746
|
-
|
|
270855
|
+
_this5.topTreeTextGroup(item.children);
|
|
270747
270856
|
} else {
|
|
270748
270857
|
// 此处的文本text的中心源的定位由于draw.js中封装反向的,所以此时文本需要向左排列originX值应为right
|
|
270749
|
-
|
|
270858
|
+
_this5.canvas.add(_this5.drawTextGroup({
|
|
270750
270859
|
width: item.width,
|
|
270751
270860
|
height: item.height,
|
|
270752
270861
|
strokeWidth: 1
|
|
270753
270862
|
}, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
270754
270863
|
text: String(item.title)
|
|
270755
|
-
},
|
|
270864
|
+
}, _this5.templateData.top.treeTableTextStyle || {}), {}, {
|
|
270756
270865
|
originX: 'right',
|
|
270757
270866
|
left: -Math.floor(item.width / 2) + 5
|
|
270758
270867
|
}), {
|
|
@@ -270773,22 +270882,32 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270773
270882
|
}
|
|
270774
270883
|
},
|
|
270775
270884
|
drawTextDataGroupColList: function drawTextDataGroupColList(colList) {
|
|
270776
|
-
var
|
|
270885
|
+
var _this6 = this,
|
|
270777
270886
|
_this$canvas;
|
|
270778
270887
|
|
|
270888
|
+
var _this$propItems = this.propItems,
|
|
270889
|
+
originY = _this$propItems.originY,
|
|
270890
|
+
eventStyle = _this$propItems.eventStyle;
|
|
270779
270891
|
var textList = [];
|
|
270780
270892
|
colList.forEach(function (item, index) {
|
|
270781
|
-
var baseTop =
|
|
270893
|
+
var baseTop = originY + (item.marginTop || 10);
|
|
270782
270894
|
|
|
270783
|
-
if (
|
|
270895
|
+
if (_this6.isLimit(item.scalevalue)) {
|
|
270784
270896
|
item.dataList.forEach(function (v, i) {
|
|
270785
270897
|
var top = baseTop + i * (item.lineHeight || 15);
|
|
270786
|
-
var text = new
|
|
270898
|
+
var text = new _this6.fabric.Text(String(v.value), objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
|
|
270787
270899
|
originX: 'left',
|
|
270788
270900
|
originY: 'center',
|
|
270789
|
-
left:
|
|
270790
|
-
top: top
|
|
270791
|
-
|
|
270901
|
+
left: _this6.cumputedX(item.scalevalue),
|
|
270902
|
+
top: top,
|
|
270903
|
+
lockMovementX: true,
|
|
270904
|
+
lockMovementY: true,
|
|
270905
|
+
dataIndex: index,
|
|
270906
|
+
index: i,
|
|
270907
|
+
type: 'colList',
|
|
270908
|
+
id: "".concat(index, "_").concat(i, "_other_").concat(Date.now())
|
|
270909
|
+
}, eventStyle));
|
|
270910
|
+
text.hasControls = text.hasBorders = false;
|
|
270792
270911
|
textList.push(text);
|
|
270793
270912
|
});
|
|
270794
270913
|
}
|
|
@@ -270797,37 +270916,46 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270797
270916
|
(_this$canvas = this.canvas).add.apply(_this$canvas, textList);
|
|
270798
270917
|
},
|
|
270799
270918
|
drawTextDataGroupList: function drawTextDataGroupList(list) {
|
|
270800
|
-
var
|
|
270919
|
+
var _this7 = this,
|
|
270801
270920
|
_this$canvas2;
|
|
270802
270921
|
|
|
270803
270922
|
var textList = [];
|
|
270804
|
-
var _this$
|
|
270805
|
-
originX = _this$
|
|
270806
|
-
originY = _this$
|
|
270923
|
+
var _this$propItems2 = this.propItems,
|
|
270924
|
+
originX = _this$propItems2.originX,
|
|
270925
|
+
originY = _this$propItems2.originY,
|
|
270926
|
+
eventStyle = _this$propItems2.eventStyle;
|
|
270807
270927
|
var top = originY + 10;
|
|
270808
|
-
list.forEach(function (item,
|
|
270809
|
-
var marginLeft =
|
|
270928
|
+
list.forEach(function (item, index) {
|
|
270929
|
+
var marginLeft = _this7.templateData.left.leftYScalevalue.spaceGridNumber || 3;
|
|
270810
270930
|
var left = originX - marginLeft * 4; // 默认减去4倍的左边距,防止最左边的数据与名称显示重合了
|
|
270811
270931
|
|
|
270812
|
-
if (list[
|
|
270932
|
+
if (list[index - 1]) {
|
|
270813
270933
|
top += item.lineHeight || 15;
|
|
270814
270934
|
}
|
|
270815
270935
|
|
|
270816
|
-
var title = new
|
|
270936
|
+
var title = new _this7.fabric.Text(String(item.title), objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
|
|
270817
270937
|
originX: 'right',
|
|
270818
270938
|
originY: 'center',
|
|
270819
270939
|
left: left,
|
|
270820
|
-
top: top
|
|
270940
|
+
top: top,
|
|
270941
|
+
id: "".concat(index, "_other_").concat(Date.now())
|
|
270821
270942
|
}));
|
|
270822
270943
|
textList.push(title);
|
|
270823
|
-
item.dataList.forEach(function (v) {
|
|
270824
|
-
if (
|
|
270825
|
-
var text = new
|
|
270944
|
+
item.dataList.forEach(function (v, i) {
|
|
270945
|
+
if (_this7.isLimit(v.time)) {
|
|
270946
|
+
var text = new _this7.fabric.Text(String(v.value), objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
|
|
270826
270947
|
originX: 'center',
|
|
270827
270948
|
originY: 'center',
|
|
270828
|
-
left:
|
|
270829
|
-
top: top
|
|
270830
|
-
|
|
270949
|
+
left: _this7.cumputedX(v.time),
|
|
270950
|
+
top: top,
|
|
270951
|
+
lockMovementX: true,
|
|
270952
|
+
lockMovementY: true,
|
|
270953
|
+
dataIndex: index,
|
|
270954
|
+
index: i,
|
|
270955
|
+
type: 'list',
|
|
270956
|
+
id: "".concat(index, "_").concat(i, "_other_").concat(Date.now())
|
|
270957
|
+
}, eventStyle));
|
|
270958
|
+
text.hasControls = text.hasBorders = false;
|
|
270831
270959
|
textList.push(text);
|
|
270832
270960
|
}
|
|
270833
270961
|
});
|
|
@@ -270844,82 +270972,95 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270844
270972
|
return time >= minTime && time <= maxTime;
|
|
270845
270973
|
},
|
|
270846
270974
|
removeMark: function removeMark() {
|
|
270847
|
-
var
|
|
270975
|
+
var _this8 = this;
|
|
270848
270976
|
|
|
270849
270977
|
this.canvas.forEachObject(function (obj) {
|
|
270850
270978
|
if (obj.type && obj.type === 'mark') {
|
|
270851
|
-
|
|
270979
|
+
_this8.canvas.remove(obj);
|
|
270852
270980
|
}
|
|
270853
270981
|
});
|
|
270854
270982
|
},
|
|
270855
270983
|
// 底部标记
|
|
270856
270984
|
drawBottomTextDataGroup: function drawBottomTextDataGroup(obj) {
|
|
270857
|
-
var
|
|
270985
|
+
var _obj$iconStyle,
|
|
270986
|
+
_this9 = this,
|
|
270858
270987
|
_this$canvas3;
|
|
270859
270988
|
|
|
270860
270989
|
if (!obj.list) {
|
|
270861
270990
|
return;
|
|
270862
270991
|
}
|
|
270863
270992
|
|
|
270864
|
-
var _this$
|
|
270865
|
-
originX = _this$
|
|
270866
|
-
endY = _this$
|
|
270867
|
-
canvasHeight = _this$
|
|
270868
|
-
eventStyle = _this$
|
|
270993
|
+
var _this$propItems3 = this.propItems,
|
|
270994
|
+
originX = _this$propItems3.originX,
|
|
270995
|
+
endY = _this$propItems3.endY,
|
|
270996
|
+
canvasHeight = _this$propItems3.canvasHeight,
|
|
270997
|
+
eventStyle = _this$propItems3.eventStyle;
|
|
270869
270998
|
var textList = [];
|
|
270870
270999
|
var marginLeft = this.templateData.left.leftYScalevalue.spaceGridNumber || 3;
|
|
270871
271000
|
var left = originX - marginLeft * 4; // 默认减去4倍的左边距,防止最左边的数据与名称显示重合了
|
|
270872
271001
|
|
|
270873
271002
|
var title = new this.fabric.Text(String(obj.title), objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.style), defaultVaule.textStyle), obj.style), {}, {
|
|
270874
271003
|
originX: 'right',
|
|
270875
|
-
originY: '
|
|
271004
|
+
originY: 'center',
|
|
270876
271005
|
left: left,
|
|
270877
|
-
top: canvasHeight -
|
|
271006
|
+
top: endY + (canvasHeight - endY) / 2,
|
|
270878
271007
|
type: 'mark'
|
|
270879
271008
|
}));
|
|
270880
271009
|
textList.push(title);
|
|
270881
|
-
var baseY = endY +
|
|
271010
|
+
var baseY = endY + 2; // 目前固定10像素的下边距
|
|
271011
|
+
|
|
271012
|
+
var baseYLimit = endY - 2; // 目前固定10像素的上边距
|
|
270882
271013
|
|
|
270883
|
-
var
|
|
271014
|
+
var lineHeight = ((_obj$iconStyle = obj.iconStyle) === null || _obj$iconStyle === void 0 ? void 0 : _obj$iconStyle.height) && obj.iconStyle.height + 2 || 14; // 标志点的line-height值
|
|
270884
271015
|
|
|
270885
271016
|
obj.list.forEach(function (item, index) {
|
|
270886
|
-
var limitIndex = -1;
|
|
271017
|
+
var limitIndex = -1; // 标志点是否往上排列的标志,大于-1则表示需要往上排列
|
|
271018
|
+
|
|
271019
|
+
var y = baseY;
|
|
270887
271020
|
|
|
270888
|
-
var x =
|
|
271021
|
+
var x = _this9.cumputedX(item[0]);
|
|
270889
271022
|
|
|
270890
|
-
if (
|
|
271023
|
+
if (_this9.isLimit(item[0])) {
|
|
270891
271024
|
item[1].forEach( /*#__PURE__*/function () {
|
|
270892
|
-
var
|
|
270893
|
-
var
|
|
271025
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(v, i) {
|
|
271026
|
+
var common, option, ele, img, text;
|
|
270894
271027
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
270895
271028
|
while (1) {
|
|
270896
271029
|
switch (_context.prev = _context.next) {
|
|
270897
271030
|
case 0:
|
|
270898
|
-
|
|
271031
|
+
if (!~limitIndex) {
|
|
271032
|
+
y += i === 0 ? lineHeight / 2 : lineHeight;
|
|
270899
271033
|
|
|
270900
|
-
|
|
270901
|
-
|
|
270902
|
-
y = baseYLimit - limitIndex * 14;
|
|
270903
|
-
}
|
|
271034
|
+
if (y >= canvasHeight - lineHeight / 2) {
|
|
271035
|
+
limitIndex++;
|
|
270904
271036
|
|
|
270905
|
-
|
|
270906
|
-
|
|
270907
|
-
|
|
271037
|
+
if (limitIndex === 0) {
|
|
271038
|
+
y = baseYLimit;
|
|
271039
|
+
y -= lineHeight / 2;
|
|
271040
|
+
}
|
|
271041
|
+
}
|
|
271042
|
+
} else {
|
|
271043
|
+
y -= lineHeight;
|
|
270908
271044
|
}
|
|
270909
271045
|
|
|
270910
|
-
|
|
271046
|
+
common = {
|
|
270911
271047
|
left: x,
|
|
270912
271048
|
top: y,
|
|
270913
271049
|
originX: 'center',
|
|
270914
|
-
|
|
271050
|
+
originY: 'center',
|
|
270915
271051
|
data: v.data || {},
|
|
270916
271052
|
other: v.other || {},
|
|
270917
271053
|
time: item[0],
|
|
270918
271054
|
name: v.name,
|
|
270919
|
-
// listIndex: index,
|
|
270920
|
-
// index: i,
|
|
270921
271055
|
type: 'mark'
|
|
270922
|
-
}
|
|
271056
|
+
};
|
|
271057
|
+
|
|
271058
|
+
if (!(_this9.isObject(v) && !v.value)) {
|
|
271059
|
+
_context.next = 17;
|
|
271060
|
+
break;
|
|
271061
|
+
}
|
|
271062
|
+
|
|
271063
|
+
option = Object.assign({}, obj.iconStyle || {}, v || {}, objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.style), common), eventStyle));
|
|
270923
271064
|
|
|
270924
271065
|
if (!(v !== null && v !== void 0 && v.iconClassName)) {
|
|
270925
271066
|
_context.next = 8;
|
|
@@ -270927,14 +271068,14 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270927
271068
|
}
|
|
270928
271069
|
|
|
270929
271070
|
_context.next = 7;
|
|
270930
|
-
return
|
|
271071
|
+
return _this9.createImage(v.iconClassName, v);
|
|
270931
271072
|
|
|
270932
271073
|
case 7:
|
|
270933
271074
|
ele = _context.sent;
|
|
270934
271075
|
|
|
270935
271076
|
case 8:
|
|
270936
271077
|
_context.next = 10;
|
|
270937
|
-
return
|
|
271078
|
+
return _this9.createPoint(v !== null && v !== void 0 && v.url || v !== null && v !== void 0 && v.iconClassName ? 'img' : v.type, objectSpread2_objectSpread2({
|
|
270938
271079
|
ele: ele || ''
|
|
270939
271080
|
}, option));
|
|
270940
271081
|
|
|
@@ -270942,33 +271083,21 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270942
271083
|
img = _context.sent;
|
|
270943
271084
|
img.hasControls = img.hasBorders = false;
|
|
270944
271085
|
|
|
270945
|
-
|
|
271086
|
+
_this9.pointEvent(img);
|
|
270946
271087
|
|
|
270947
|
-
|
|
271088
|
+
_this9.canvas.add(img);
|
|
270948
271089
|
|
|
270949
|
-
|
|
271090
|
+
_this9.canvas.requestRenderAll();
|
|
270950
271091
|
|
|
270951
271092
|
_context.next = 21;
|
|
270952
271093
|
break;
|
|
270953
271094
|
|
|
270954
271095
|
case 17:
|
|
270955
|
-
text = new
|
|
270956
|
-
originX: 'center',
|
|
270957
|
-
left: x,
|
|
270958
|
-
top: y,
|
|
270959
|
-
// lockMovementY: true, // 锁定Y轴,即只能x轴方向移动
|
|
270960
|
-
time: item[0],
|
|
270961
|
-
name: v.name,
|
|
270962
|
-
data: v.data || {},
|
|
270963
|
-
other: v.other || {},
|
|
270964
|
-
// listIndex: index,
|
|
270965
|
-
// index: i,
|
|
270966
|
-
type: 'mark'
|
|
270967
|
-
}, eventStyle));
|
|
271096
|
+
text = new _this9.fabric.Text(String(v.value), objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultVaule.textStyle), obj.style), common), eventStyle));
|
|
270968
271097
|
text.hasControls = text.hasBorders = false;
|
|
270969
271098
|
textList.push(text);
|
|
270970
271099
|
|
|
270971
|
-
|
|
271100
|
+
_this9.pointEvent(text);
|
|
270972
271101
|
|
|
270973
271102
|
case 21:
|
|
270974
271103
|
case "end":
|
|
@@ -270979,7 +271108,7 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270979
271108
|
}));
|
|
270980
271109
|
|
|
270981
271110
|
return function (_x, _x2) {
|
|
270982
|
-
return
|
|
271111
|
+
return _ref2.apply(this, arguments);
|
|
270983
271112
|
};
|
|
270984
271113
|
}());
|
|
270985
271114
|
}
|
|
@@ -270988,44 +271117,42 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
270988
271117
|
(_this$canvas3 = this.canvas).add.apply(_this$canvas3, textList);
|
|
270989
271118
|
},
|
|
270990
271119
|
pointEvent: function pointEvent(point) {
|
|
270991
|
-
var
|
|
271120
|
+
var _this10 = this;
|
|
270992
271121
|
|
|
270993
271122
|
point.on('mouseover', function () {
|
|
270994
|
-
|
|
271123
|
+
_this10.showDrapPopup(point, true);
|
|
270995
271124
|
});
|
|
270996
271125
|
point.on('mouseout', function () {
|
|
270997
|
-
|
|
271126
|
+
_this10.isDropVisible = false;
|
|
270998
271127
|
}); // 移动中 实时更新相关联的线的坐标
|
|
270999
271128
|
|
|
271000
271129
|
point.on('moving', function () {
|
|
271001
|
-
|
|
271130
|
+
_this10.moveLimit(point);
|
|
271002
271131
|
|
|
271003
|
-
|
|
271132
|
+
_this10.canvas.renderAll();
|
|
271004
271133
|
|
|
271005
|
-
|
|
271134
|
+
_this10.showDrapPopup(point);
|
|
271006
271135
|
});
|
|
271007
271136
|
point.on('moved', function () {
|
|
271008
|
-
|
|
271137
|
+
_this10.isDropVisible = false;
|
|
271009
271138
|
var value = {
|
|
271010
271139
|
data: point.data,
|
|
271011
271140
|
oldVal: point.time,
|
|
271012
|
-
newVal:
|
|
271013
|
-
// index: point.index
|
|
271014
|
-
|
|
271141
|
+
newVal: _this10.getXValue(point.left)
|
|
271015
271142
|
};
|
|
271016
271143
|
|
|
271017
|
-
|
|
271144
|
+
_this10.$emit('markChange', value);
|
|
271018
271145
|
});
|
|
271019
271146
|
},
|
|
271020
271147
|
moveLimit: function moveLimit(point) {
|
|
271021
271148
|
var _point$other;
|
|
271022
271149
|
|
|
271023
271150
|
point.setCoords();
|
|
271024
|
-
var _this$
|
|
271025
|
-
originX = _this$
|
|
271026
|
-
endX = _this$
|
|
271027
|
-
originY = _this$
|
|
271028
|
-
canvasHeight = _this$
|
|
271151
|
+
var _this$propItems4 = this.propItems,
|
|
271152
|
+
originX = _this$propItems4.originX,
|
|
271153
|
+
endX = _this$propItems4.endX,
|
|
271154
|
+
originY = _this$propItems4.originY,
|
|
271155
|
+
canvasHeight = _this$propItems4.canvasHeight;
|
|
271029
271156
|
var bottom = this.templateData.bottom; // 如果是起始标记,如入手术室时间
|
|
271030
271157
|
|
|
271031
271158
|
if ((_point$other = point.other) !== null && _point$other !== void 0 && _point$other.isStart) {
|
|
@@ -271095,8 +271222,6 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
271095
271222
|
if (point.top < originY) {
|
|
271096
271223
|
point.set('top', originY);
|
|
271097
271224
|
}
|
|
271098
|
-
|
|
271099
|
-
point.setCoords();
|
|
271100
271225
|
},
|
|
271101
271226
|
showDrapPopup: function showDrapPopup(point) {
|
|
271102
271227
|
var _point$other4;
|
|
@@ -271117,16 +271242,17 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
271117
271242
|
}]
|
|
271118
271243
|
};
|
|
271119
271244
|
},
|
|
271120
|
-
drawLeftScaleGroup: function drawLeftScaleGroup(
|
|
271121
|
-
this.drawLeftTitle(
|
|
271122
|
-
var _this$
|
|
271123
|
-
canvasHeight = _this$
|
|
271124
|
-
originX = _this$
|
|
271125
|
-
originY = _this$
|
|
271245
|
+
drawLeftScaleGroup: function drawLeftScaleGroup(dataLeft) {
|
|
271246
|
+
this.drawLeftTitle(dataLeft);
|
|
271247
|
+
var _this$propItems5 = this.propItems,
|
|
271248
|
+
canvasHeight = _this$propItems5.canvasHeight,
|
|
271249
|
+
originX = _this$propItems5.originX,
|
|
271250
|
+
originY = _this$propItems5.originY,
|
|
271251
|
+
treeTableminCellWidth = _this$propItems5.treeTableminCellWidth;
|
|
271126
271252
|
var rect = new this.fabric.Rect(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
271127
|
-
left:
|
|
271253
|
+
left: treeTableminCellWidth,
|
|
271128
271254
|
top: originY,
|
|
271129
|
-
width: originX -
|
|
271255
|
+
width: originX - treeTableminCellWidth,
|
|
271130
271256
|
height: canvasHeight - originY
|
|
271131
271257
|
}, defaultVaule.rectStyle), defaultVaule.style), {}, {
|
|
271132
271258
|
originX: 'left',
|
|
@@ -271136,14 +271262,14 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
271136
271262
|
|
|
271137
271263
|
this.canvas.add(rect);
|
|
271138
271264
|
},
|
|
271139
|
-
drawLeftTitle: function drawLeftTitle(
|
|
271140
|
-
if (
|
|
271265
|
+
drawLeftTitle: function drawLeftTitle(dataLeft) {
|
|
271266
|
+
if (dataLeft.title) {
|
|
271141
271267
|
this.canvas.add(this.drawTextGroup({
|
|
271142
|
-
width:
|
|
271268
|
+
width: this.propItems.treeTableminCellWidth,
|
|
271143
271269
|
height: this.propItems.canvasHeight - this.propItems.originY
|
|
271144
271270
|
}, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
271145
|
-
text: String(
|
|
271146
|
-
}, defaultVaule.textStyle),
|
|
271271
|
+
text: String(dataLeft.title.split('').join('\n'))
|
|
271272
|
+
}, defaultVaule.textStyle), dataLeft.titleStyle), {
|
|
271147
271273
|
left: 0,
|
|
271148
271274
|
top: this.propItems.originY
|
|
271149
271275
|
}));
|
|
@@ -271166,8 +271292,8 @@ var FabricTextGroupvue_type_template_id_f017a42a_staticRenderFns = []
|
|
|
271166
271292
|
|
|
271167
271293
|
var FabricTextGroup_component = normalizeComponent(
|
|
271168
271294
|
fabric_chart_FabricTextGroupvue_type_script_lang_js_,
|
|
271169
|
-
|
|
271170
|
-
|
|
271295
|
+
FabricTextGroupvue_type_template_id_e1c6fb02_render,
|
|
271296
|
+
FabricTextGroupvue_type_template_id_e1c6fb02_staticRenderFns,
|
|
271171
271297
|
false,
|
|
271172
271298
|
null,
|
|
271173
271299
|
null,
|
|
@@ -271338,12 +271464,12 @@ var FabricScaleValue_component = normalizeComponent(
|
|
|
271338
271464
|
)
|
|
271339
271465
|
|
|
271340
271466
|
/* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
|
|
271341
|
-
// 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=
|
|
271342
|
-
var
|
|
271343
|
-
var
|
|
271467
|
+
// 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&
|
|
271468
|
+
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)}
|
|
271469
|
+
var FabricLinesvue_type_template_id_efbd9346_staticRenderFns = []
|
|
271344
271470
|
|
|
271345
271471
|
|
|
271346
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=
|
|
271472
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=efbd9346&
|
|
271347
271473
|
|
|
271348
271474
|
// 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&
|
|
271349
271475
|
|
|
@@ -271355,6 +271481,8 @@ var FabricLinesvue_type_template_id_219caefc_staticRenderFns = []
|
|
|
271355
271481
|
|
|
271356
271482
|
|
|
271357
271483
|
|
|
271484
|
+
|
|
271485
|
+
|
|
271358
271486
|
//
|
|
271359
271487
|
//
|
|
271360
271488
|
//
|
|
@@ -271368,10 +271496,10 @@ var FabricLinesvue_type_template_id_219caefc_staticRenderFns = []
|
|
|
271368
271496
|
|
|
271369
271497
|
|
|
271370
271498
|
var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
271371
|
-
name: '
|
|
271372
|
-
type: '
|
|
271499
|
+
name: '修改',
|
|
271500
|
+
type: 'edit'
|
|
271373
271501
|
}, {
|
|
271374
|
-
name: '
|
|
271502
|
+
name: '删除',
|
|
271375
271503
|
type: 'delete'
|
|
271376
271504
|
}];
|
|
271377
271505
|
/* harmony default export */ var FabricLinesvue_type_script_lang_js_ = ({
|
|
@@ -271428,9 +271556,6 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271428
271556
|
});
|
|
271429
271557
|
},
|
|
271430
271558
|
methods: {
|
|
271431
|
-
getContainer: function getContainer() {
|
|
271432
|
-
return this.$el;
|
|
271433
|
-
},
|
|
271434
271559
|
init: function init() {
|
|
271435
271560
|
this.getLineList(this.linesObj.list);
|
|
271436
271561
|
this.createLine();
|
|
@@ -271495,7 +271620,7 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271495
271620
|
this.$nextTick(function () {
|
|
271496
271621
|
if (id && id.includes('_lineGroup_')) {
|
|
271497
271622
|
_this3._currentPoint = target || '';
|
|
271498
|
-
_this3.rightClickNode = Object.freeze(FabricLinesvue_type_script_lang_js_rightClickNode.slice(
|
|
271623
|
+
_this3.rightClickNode = Object.freeze(FabricLinesvue_type_script_lang_js_rightClickNode.slice());
|
|
271499
271624
|
_this3.isRightVisible = true;
|
|
271500
271625
|
}
|
|
271501
271626
|
});
|
|
@@ -271508,9 +271633,10 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271508
271633
|
this._currentPoint = '';
|
|
271509
271634
|
|
|
271510
271635
|
var _this$updateData = this.updateData(line, true),
|
|
271511
|
-
lineObj = _this$updateData.lineObj;
|
|
271636
|
+
lineObj = _this$updateData.lineObj; // editLine:编辑 deleteLine:删除
|
|
271637
|
+
|
|
271512
271638
|
|
|
271513
|
-
this.$emit(
|
|
271639
|
+
this.$emit("".concat(type, "Line"), lineObj);
|
|
271514
271640
|
},
|
|
271515
271641
|
// 递归返回一维数据
|
|
271516
271642
|
getLineList: function getLineList(list) {
|
|
@@ -271537,6 +271663,7 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271537
271663
|
var _this6 = this,
|
|
271538
271664
|
_this$canvas;
|
|
271539
271665
|
|
|
271666
|
+
var lineList = line.lineList || [];
|
|
271540
271667
|
var _this$propItems = this.propItems,
|
|
271541
271668
|
originX = _this$propItems.originX,
|
|
271542
271669
|
endX = _this$propItems.endX,
|
|
@@ -271548,7 +271675,10 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271548
271675
|
var lineItemList = [];
|
|
271549
271676
|
var y1 = i * yCellHeightTop;
|
|
271550
271677
|
var y2 = yCellHeightTop * (i + 1);
|
|
271551
|
-
|
|
271678
|
+
var textArr = []; // 用于存放多个线段的文字内容,显示格式为:第一段线的文字—第二段线的文字
|
|
271679
|
+
|
|
271680
|
+
var textList = [];
|
|
271681
|
+
lineList.forEach(function (item, j) {
|
|
271552
271682
|
if (!item[0] || type_isObject(item[0])) return;
|
|
271553
271683
|
var startMinute = new Date(item[0]).getTime();
|
|
271554
271684
|
var endMinute = item[1] ? new Date(item[1]).getTime() : '';
|
|
@@ -271558,7 +271688,8 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271558
271688
|
var x2 = _this6.cumputedX(item[1]); // 数字文字
|
|
271559
271689
|
|
|
271560
271690
|
|
|
271561
|
-
var textObj = item[3] || {};
|
|
271691
|
+
var textObj = item[3] || {};
|
|
271692
|
+
var textContent = textObj.content || ''; // 左边手柄竖线
|
|
271562
271693
|
|
|
271563
271694
|
var leftLine;
|
|
271564
271695
|
|
|
@@ -271632,19 +271763,30 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271632
271763
|
|
|
271633
271764
|
|
|
271634
271765
|
var textTop = x2 ? (y1 + y2) / 2 : y1 + yCellHeightTop / 2;
|
|
271635
|
-
var
|
|
271766
|
+
var textLimitRight;
|
|
271767
|
+
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; // 文字内容居右侧竖线且超出当前线段右边界则移除
|
|
271636
271768
|
|
|
271637
271769
|
if (text) {
|
|
271638
|
-
|
|
271770
|
+
var _lineList;
|
|
271771
|
+
|
|
271772
|
+
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;
|
|
271773
|
+
|
|
271774
|
+
if (text.originX === 'left' && text.left + text.width + 2 >= textLimitRight) {
|
|
271775
|
+
textLimitRight !== endX && textArr.push(textContent);
|
|
271776
|
+
|
|
271777
|
+
_this6.canvas.remove(text);
|
|
271778
|
+
|
|
271779
|
+
text = null;
|
|
271780
|
+
} else {
|
|
271781
|
+
textArr = [];
|
|
271782
|
+
|
|
271639
271783
|
_this6.hoverEvent(text, {
|
|
271640
271784
|
textObj: textObj,
|
|
271641
271785
|
startTime: item[0],
|
|
271642
271786
|
endTime: item[1]
|
|
271643
271787
|
});
|
|
271644
271788
|
|
|
271645
|
-
|
|
271646
|
-
} else {
|
|
271647
|
-
_this6.canvas.remove(text);
|
|
271789
|
+
textList.push(text);
|
|
271648
271790
|
}
|
|
271649
271791
|
} // 设置拖动限制值
|
|
271650
271792
|
|
|
@@ -271653,10 +271795,10 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271653
271795
|
leftLimit.x2 = x2 ? x2 : endX;
|
|
271654
271796
|
leftLimit.x1 = originX;
|
|
271655
271797
|
|
|
271656
|
-
if (
|
|
271657
|
-
var
|
|
271658
|
-
preItem0 =
|
|
271659
|
-
preItem1 =
|
|
271798
|
+
if (lineList[j - 1]) {
|
|
271799
|
+
var _lineList2 = _slicedToArray(lineList[j - 1], 2),
|
|
271800
|
+
preItem0 = _lineList2[0],
|
|
271801
|
+
preItem1 = _lineList2[1];
|
|
271660
271802
|
|
|
271661
271803
|
if (preItem1) {
|
|
271662
271804
|
var preEndMinute = new Date(preItem1).getTime();
|
|
@@ -271671,9 +271813,9 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271671
271813
|
rightLimt.x1 = x2 ? x1 : originX;
|
|
271672
271814
|
rightLimt.x2 = endX;
|
|
271673
271815
|
|
|
271674
|
-
if (
|
|
271675
|
-
var
|
|
271676
|
-
_preItem =
|
|
271816
|
+
if (lineList[j + 1]) {
|
|
271817
|
+
var _lineList3 = _slicedToArray(lineList[j + 1], 1),
|
|
271818
|
+
_preItem = _lineList3[0];
|
|
271677
271819
|
|
|
271678
271820
|
if (_preItem) {
|
|
271679
271821
|
var _preStartMinute = new Date(_preItem).getTime();
|
|
@@ -271689,7 +271831,9 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271689
271831
|
textObj: textObj,
|
|
271690
271832
|
limitX: leftLimit,
|
|
271691
271833
|
startTime: item[0],
|
|
271692
|
-
endTime: item[1]
|
|
271834
|
+
endTime: item[1],
|
|
271835
|
+
preText: textList[text ? textList.length - 2 : textList.length - 1] || null,
|
|
271836
|
+
textLimitRight: textLimitRight
|
|
271693
271837
|
});
|
|
271694
271838
|
|
|
271695
271839
|
_this6.lineEvent({
|
|
@@ -271699,19 +271843,26 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271699
271843
|
textObj: textObj,
|
|
271700
271844
|
limitX: rightLimt,
|
|
271701
271845
|
startTime: item[0],
|
|
271702
|
-
endTime: item[1]
|
|
271846
|
+
endTime: item[1],
|
|
271847
|
+
preText: null,
|
|
271848
|
+
textLimitRight: rightLimt.x2
|
|
271703
271849
|
});
|
|
271704
271850
|
});
|
|
271705
271851
|
|
|
271706
|
-
(_this$canvas = this.canvas).add.apply(_this$canvas, lineItemList);
|
|
271852
|
+
(_this$canvas = this.canvas).add.apply(_this$canvas, lineItemList.concat(textList));
|
|
271707
271853
|
|
|
271708
271854
|
this.canvas.requestRenderAll();
|
|
271709
271855
|
},
|
|
271710
|
-
drawLineText: function drawLineText(
|
|
271711
|
-
|
|
271712
|
-
|
|
271713
|
-
|
|
271714
|
-
|
|
271856
|
+
drawLineText: function drawLineText(textArr, top, i, j, centerLine, x1, x2) {
|
|
271857
|
+
// const value = textArr.map(v => {
|
|
271858
|
+
// const channel = v.channel ? `(${v.channel})` : '';
|
|
271859
|
+
// const consistence = v.consistence ? `(${v.consistence})` : '';
|
|
271860
|
+
// const total = v.total ? `(${v.total})` : '';
|
|
271861
|
+
// return `${v.currentSpeed || ''}${channel}${consistence}${total}`
|
|
271862
|
+
// }).join('—');
|
|
271863
|
+
var value = textArr.filter(function (v) {
|
|
271864
|
+
return v !== '';
|
|
271865
|
+
}).join('—');
|
|
271715
271866
|
if (value === '') return null;
|
|
271716
271867
|
var text = new this.fabric.Text(value, objectSpread2_objectSpread2({
|
|
271717
271868
|
top: top,
|
|
@@ -271817,7 +271968,9 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271817
271968
|
textObj = attr.textObj,
|
|
271818
271969
|
limitX = attr.limitX,
|
|
271819
271970
|
startTime = attr.startTime,
|
|
271820
|
-
endTime = attr.endTime
|
|
271971
|
+
endTime = attr.endTime,
|
|
271972
|
+
preText = attr.preText,
|
|
271973
|
+
textLimitRight = attr.textLimitRight;
|
|
271821
271974
|
|
|
271822
271975
|
if (line) {
|
|
271823
271976
|
line.hasControls = line.hasBorders = false;
|
|
@@ -271825,6 +271978,8 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271825
271978
|
line2 && (line.line2 = line2);
|
|
271826
271979
|
text && (line.text = text);
|
|
271827
271980
|
line.limitX = limitX;
|
|
271981
|
+
preText && (line.preText = preText);
|
|
271982
|
+
textLimitRight && (line.textLimitRight = textLimitRight);
|
|
271828
271983
|
this.hoverEvent(line, {
|
|
271829
271984
|
textObj: textObj,
|
|
271830
271985
|
startTime: startTime,
|
|
@@ -271984,18 +272139,15 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
271984
272139
|
return line;
|
|
271985
272140
|
},
|
|
271986
272141
|
lineMoveLimit: function lineMoveLimit(line) {
|
|
271987
|
-
line.setCoords();
|
|
271988
|
-
var objBoundingBox = line.getBoundingRect();
|
|
272142
|
+
line.setCoords(); // 需调用setCoords()才能重新计算控制位置(改变Object状态)
|
|
271989
272143
|
|
|
271990
|
-
if (
|
|
272144
|
+
if (line.left < line.limitX.x1) {
|
|
271991
272145
|
line.set('left', line.limitX.x1);
|
|
271992
272146
|
}
|
|
271993
272147
|
|
|
271994
|
-
if (
|
|
272148
|
+
if (line.left > line.limitX.x2) {
|
|
271995
272149
|
line.set('left', line.limitX.x2);
|
|
271996
272150
|
}
|
|
271997
|
-
|
|
271998
|
-
line.setCoords();
|
|
271999
272151
|
},
|
|
272000
272152
|
lineMoveUpdateLine: function lineMoveUpdateLine(line) {
|
|
272001
272153
|
if (line.line1) {
|
|
@@ -272014,27 +272166,50 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
272014
272166
|
},
|
|
272015
272167
|
textUpdatePositionX: function textUpdatePositionX(line) {
|
|
272016
272168
|
var text = line.text || null;
|
|
272017
|
-
if (!text) return; // 如果line2存在说明当前拖动的是右边手柄,line1存在则是左边手柄
|
|
272018
272169
|
|
|
272019
|
-
|
|
272020
|
-
|
|
272021
|
-
|
|
272022
|
-
|
|
272023
|
-
var v;
|
|
272170
|
+
if (text) {
|
|
272171
|
+
// 如果line2存在说明当前拖动的是右边手柄,line1存在则是左边手柄,都不存在说明不存在中间线
|
|
272172
|
+
var centerLine = line.line1 || line.line2 || null;
|
|
272173
|
+
var left = line.left;
|
|
272024
272174
|
|
|
272025
|
-
|
|
272026
|
-
v = left + centerLine.width / 2 * (line.line2 ? -1 : 1);
|
|
272027
|
-
originX = 'center';
|
|
272028
|
-
} else {
|
|
272029
|
-
v = this.textMarginLeft + (centerLine ? centerLine.x2 : left);
|
|
272030
|
-
originX = 'left';
|
|
272031
|
-
}
|
|
272175
|
+
var _limitWidth = text.width + 2;
|
|
272032
272176
|
|
|
272033
|
-
|
|
272034
|
-
|
|
272035
|
-
|
|
272036
|
-
|
|
272037
|
-
|
|
272177
|
+
var originX = text.originX;
|
|
272178
|
+
var v;
|
|
272179
|
+
|
|
272180
|
+
if ((centerLine === null || centerLine === void 0 ? void 0 : centerLine.x2) - (centerLine === null || centerLine === void 0 ? void 0 : centerLine.x1) > _limitWidth) {
|
|
272181
|
+
v = left + centerLine.width / 2 * (line.line2 ? -1 : 1);
|
|
272182
|
+
originX = 'center';
|
|
272183
|
+
} else {
|
|
272184
|
+
v = this.textMarginLeft + (centerLine ? centerLine.x2 : left);
|
|
272185
|
+
originX = 'left'; // 移动到最右边界时候文字超出当前线段可拖动的右边界的情况
|
|
272186
|
+
|
|
272187
|
+
if (line.textLimitRight && v + _limitWidth > line.textLimitRight) {
|
|
272188
|
+
v = this.propItems.endX + 100; // 此值随便设置,只要达到隐藏效果即可
|
|
272189
|
+
}
|
|
272190
|
+
}
|
|
272191
|
+
|
|
272192
|
+
text.setCoords();
|
|
272193
|
+
text.set({
|
|
272194
|
+
left: v,
|
|
272195
|
+
originX: originX
|
|
272196
|
+
});
|
|
272197
|
+
} // 拖动左侧竖线时需要更改上一线段文字的位置,以防止文字被遮挡
|
|
272198
|
+
|
|
272199
|
+
|
|
272200
|
+
var preText = line.preText || null;
|
|
272201
|
+
if (!preText) return;
|
|
272202
|
+
var limitWidth = preText.width + 2;
|
|
272203
|
+
|
|
272204
|
+
if (preText.originX === 'left' && preText.left + limitWidth > line.left) {
|
|
272205
|
+
var _v = this.propItems.endX + 100; // 此值随便设置,只要达到隐藏效果即可
|
|
272206
|
+
|
|
272207
|
+
|
|
272208
|
+
preText.setCoords();
|
|
272209
|
+
preText.set({
|
|
272210
|
+
left: _v
|
|
272211
|
+
});
|
|
272212
|
+
}
|
|
272038
272213
|
},
|
|
272039
272214
|
repaintLine: function repaintLine() {
|
|
272040
272215
|
if (this.lines.length) {
|
|
@@ -272059,8 +272234,8 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
272059
272234
|
|
|
272060
272235
|
var FabricLines_component = normalizeComponent(
|
|
272061
272236
|
fabric_chart_FabricLinesvue_type_script_lang_js_,
|
|
272062
|
-
|
|
272063
|
-
|
|
272237
|
+
FabricLinesvue_type_template_id_efbd9346_render,
|
|
272238
|
+
FabricLinesvue_type_template_id_efbd9346_staticRenderFns,
|
|
272064
272239
|
false,
|
|
272065
272240
|
null,
|
|
272066
272241
|
null,
|
|
@@ -272671,9 +272846,6 @@ var FabricCentervue_type_template_id_6617dc6c_staticRenderFns = []
|
|
|
272671
272846
|
|
|
272672
272847
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart2/FabricCenter.vue?vue&type=template&id=6617dc6c&
|
|
272673
272848
|
|
|
272674
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.fill.js
|
|
272675
|
-
var es_array_fill = __webpack_require__("cb29");
|
|
272676
|
-
|
|
272677
272849
|
// 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&
|
|
272678
272850
|
|
|
272679
272851
|
|
|
@@ -273393,6 +273565,9 @@ var FabricCenter_component = normalizeComponent(
|
|
|
273393
273565
|
//
|
|
273394
273566
|
//
|
|
273395
273567
|
//
|
|
273568
|
+
//
|
|
273569
|
+
//
|
|
273570
|
+
//
|
|
273396
273571
|
|
|
273397
273572
|
/**
|
|
273398
273573
|
* @author lujiafu
|
|
@@ -273442,25 +273617,46 @@ var FabricCenter_component = normalizeComponent(
|
|
|
273442
273617
|
},
|
|
273443
273618
|
computed: {
|
|
273444
273619
|
polylines: function polylines() {
|
|
273445
|
-
var _this$templateData, _this$templateData2;
|
|
273620
|
+
var _this$templateData, _this$templateData$ri, _this$templateData$ri2, _this$templateData$ri3, _this$templateData2, _this$templateData2$l, _this$templateData2$l2, _this$templateData2$l3;
|
|
273446
273621
|
|
|
273447
273622
|
var list = [];
|
|
273448
273623
|
|
|
273449
|
-
if ((_this$templateData = this.templateData) !== null && _this$templateData !== void 0 && _this$templateData.right &&
|
|
273450
|
-
var
|
|
273624
|
+
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) {
|
|
273625
|
+
var _this$templateData$ri4 = this.templateData.right,
|
|
273626
|
+
position = _this$templateData$ri4.position,
|
|
273627
|
+
rightYScalevalue = _this$templateData$ri4.rightYScalevalue;
|
|
273451
273628
|
list.push(objectSpread2_objectSpread2({
|
|
273452
273629
|
position: position
|
|
273453
|
-
},
|
|
273630
|
+
}, rightYScalevalue));
|
|
273454
273631
|
}
|
|
273455
273632
|
|
|
273456
|
-
if ((_this$templateData2 = this.templateData) !== null && _this$templateData2 !== void 0 && _this$templateData2.left &&
|
|
273457
|
-
var
|
|
273633
|
+
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) {
|
|
273634
|
+
var _this$templateData$le = this.templateData.left,
|
|
273635
|
+
_position = _this$templateData$le.position,
|
|
273636
|
+
leftYScalevalue = _this$templateData$le.leftYScalevalue;
|
|
273458
273637
|
list.push(objectSpread2_objectSpread2({
|
|
273459
273638
|
position: _position
|
|
273460
|
-
},
|
|
273639
|
+
}, leftYScalevalue));
|
|
273461
273640
|
}
|
|
273462
273641
|
|
|
273463
273642
|
return list;
|
|
273643
|
+
},
|
|
273644
|
+
hasTopTable: function hasTopTable() {
|
|
273645
|
+
var _this$templateData$to, _this$templateData$to2;
|
|
273646
|
+
|
|
273647
|
+
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;
|
|
273648
|
+
},
|
|
273649
|
+
hasTable: function hasTable() {
|
|
273650
|
+
var _this$templateData$le2, _this$templateData$le3, _this$templateData$le4, _this$templateData$ri5, _this$templateData$ri6, _this$templateData$ri7;
|
|
273651
|
+
|
|
273652
|
+
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;
|
|
273653
|
+
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;
|
|
273654
|
+
return this.hasXScalevalue && hasLeft && hasRight;
|
|
273655
|
+
},
|
|
273656
|
+
hasXScalevalue: function hasXScalevalue() {
|
|
273657
|
+
var _this$templateData$to3, _this$templateData$to4, _this$templateData$to5;
|
|
273658
|
+
|
|
273659
|
+
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;
|
|
273464
273660
|
}
|
|
273465
273661
|
},
|
|
273466
273662
|
data: function data() {
|
|
@@ -273528,8 +273724,8 @@ var FabricCenter_component = normalizeComponent(
|
|
|
273528
273724
|
}));
|
|
273529
273725
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=script&lang=js&
|
|
273530
273726
|
/* harmony default export */ var src_FabricChartvue_type_script_lang_js_ = (FabricChartvue_type_script_lang_js_);
|
|
273531
|
-
// EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=
|
|
273532
|
-
var
|
|
273727
|
+
// EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=3bab1499&lang=less&scoped=true&
|
|
273728
|
+
var FabricChartvue_type_style_index_0_id_3bab1499_lang_less_scoped_true_ = __webpack_require__("cb41");
|
|
273533
273729
|
|
|
273534
273730
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue
|
|
273535
273731
|
|
|
@@ -273542,11 +273738,11 @@ var FabricChartvue_type_style_index_0_id_6ad9fd30_lang_less_scoped_true_ = __web
|
|
|
273542
273738
|
|
|
273543
273739
|
var FabricChart_component = normalizeComponent(
|
|
273544
273740
|
src_FabricChartvue_type_script_lang_js_,
|
|
273545
|
-
|
|
273546
|
-
|
|
273741
|
+
FabricChartvue_type_template_id_3bab1499_scoped_true_render,
|
|
273742
|
+
FabricChartvue_type_template_id_3bab1499_scoped_true_staticRenderFns,
|
|
273547
273743
|
false,
|
|
273548
273744
|
null,
|
|
273549
|
-
"
|
|
273745
|
+
"3bab1499",
|
|
273550
273746
|
null
|
|
273551
273747
|
|
|
273552
273748
|
)
|