cnhis-design-vue 2.1.100 → 2.1.102

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/es/age/index.js +2 -2
  3. package/es/big-table/index.js +141 -101
  4. package/es/big-table/style.css +1 -1
  5. package/es/button/index.js +2 -2
  6. package/es/captcha/index.js +3 -3
  7. package/es/card-reader-sdk/index.js +1 -1
  8. package/es/checkbox/index.js +1 -1
  9. package/es/color-picker/index.js +1 -1
  10. package/es/drag-layout/index.js +3 -3
  11. package/es/editor/index.js +1 -1
  12. package/es/ellipsis/index.js +1 -1
  13. package/es/fabric-chart/index.js +522 -340
  14. package/es/fabric-chart/style.css +1 -1
  15. package/es/form-table/index.js +20 -20
  16. package/es/index/index.js +1048 -671
  17. package/es/index/style.css +1 -1
  18. package/es/input/index.js +1 -1
  19. package/es/map/index.js +1 -1
  20. package/es/multi-chat/index.js +25 -25
  21. package/es/multi-chat-client/index.js +19 -19
  22. package/es/multi-chat-history/index.js +4 -4
  23. package/es/multi-chat-record/index.js +4 -4
  24. package/es/multi-chat-setting/index.js +20 -20
  25. package/es/multi-chat-sip/index.js +1 -1
  26. package/es/radio/index.js +1 -1
  27. package/es/scale-container/index.js +1 -1
  28. package/es/scale-view/index.js +27 -27
  29. package/es/select/index.js +4 -4
  30. package/es/select-label/index.js +3 -3
  31. package/es/select-person/index.js +2 -2
  32. package/es/select-tag/index.js +4 -4
  33. package/es/shortcut-setter/index.js +2 -2
  34. package/es/table-filter/index.js +270 -115
  35. package/es/table-filter/style.css +1 -1
  36. package/es/tag/index.js +1 -1
  37. package/es/verification-code/index.js +2 -2
  38. package/lib/cui.common.js +1175 -773
  39. package/lib/cui.umd.js +1175 -773
  40. package/lib/cui.umd.min.js +26 -26
  41. package/package.json +1 -1
  42. package/packages/big-table/src/BigTable.vue +33 -5
  43. package/packages/big-table/src/assets/style/table-global.less +4 -5
  44. package/packages/fabric-chart/src/FabricChart.vue +1 -1
  45. package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +10 -8
  46. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +83 -47
  47. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +149 -97
  48. package/packages/fabric-chart/src/mixins/draw.js +1 -1
  49. package/packages/table-filter/src/base-search-com/BaseSearch.vue +1 -0
  50. package/packages/table-filter/src/components/render-widget/components/Text.vue +58 -0
  51. package/packages/table-filter/src/components/render-widget/components/index.js +3 -2
  52. package/packages/table-filter/src/components/render-widget/index.vue +11 -3
  53. package/packages/table-filter/src/components/render-widget/widgetCfgMaps.js +5 -5
  54. package/packages/table-filter/src/mixins/renderWidget.js +21 -5
  55. package/packages/table-filter/src/quick-search/QuickSearch.vue +10 -1
@@ -288,12 +288,12 @@ var es_promise_finally = __webpack_require__("a79d");
288
288
  // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
289
289
  var es_function_name_js_ = __webpack_require__("db0a");
290
290
 
291
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7ebb9ffc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=bbb2d972&scoped=true&
291
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fee42d6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=3aefcf44&scoped=true&
292
292
  var 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('fabric-canvas',_vm._b({ref:"canvasEle",attrs:{"templateData":_vm.templateData}},'fabric-canvas',_vm.$attrs,false),[_c('fabric-grid'),(_vm.hasXScalevalue)?_c('fabric-text-group',_vm._g({attrs:{"templateData":_vm.templateData}},_vm.$listeners)):_vm._e(),(_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 || {},"timeRangeStyle":_vm.templateData.timeRangeStyle || {}},on:{"pointOperation":_vm.pointOperation}},_vm.$listeners)):_vm._e()],1):_vm._e()],1)}
293
293
  var staticRenderFns = []
294
294
 
295
295
 
296
- // CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=bbb2d972&scoped=true&
296
+ // CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=3aefcf44&scoped=true&
297
297
 
298
298
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
299
299
  var objectSpread2 = __webpack_require__("5530");
@@ -301,12 +301,12 @@ var objectSpread2 = __webpack_require__("5530");
301
301
  // EXTERNAL MODULE: ./src/core/create.js
302
302
  var create = __webpack_require__("8aef");
303
303
 
304
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7ebb9ffc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=198a3c0c&
305
- var FabricCanvasvue_type_template_id_198a3c0c_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)}
306
- var FabricCanvasvue_type_template_id_198a3c0c_staticRenderFns = []
304
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fee42d6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=7911dd3e&
305
+ var FabricCanvasvue_type_template_id_7911dd3e_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)}
306
+ var FabricCanvasvue_type_template_id_7911dd3e_staticRenderFns = []
307
307
 
308
308
 
309
- // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=198a3c0c&
309
+ // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=7911dd3e&
310
310
 
311
311
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
312
312
  var toConsumableArray = __webpack_require__("2909");
@@ -537,6 +537,7 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
537
537
  }
538
538
 
539
539
  this.throttleEvent = vexutils_default.a.throttle(function (event, componentInstance) {
540
+ if (!componentInstance) return;
540
541
  var _componentInstance$ev = componentInstance.eventStyle,
541
542
  eventStyle = _componentInstance$ev === void 0 ? null : _componentInstance$ev,
542
543
  _componentInstance$ha = componentInstance.handleMoving,
@@ -727,7 +728,7 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
727
728
  var _this$$slots$default$;
728
729
 
729
730
  return (_this$$slots$default$ = this.$slots.default.find(function (VNode) {
730
- return /lines/.test(VNode.tag);
731
+ return /fabric-lines/.test(VNode.tag);
731
732
  })) === null || _this$$slots$default$ === void 0 ? void 0 : _this$$slots$default$.componentInstance;
732
733
  },
733
734
  fabricPolylinesInstances: function fabricPolylinesInstances() {
@@ -744,18 +745,21 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
744
745
  },
745
746
  methods: {
746
747
  init: function init() {
747
- var _this$templateData$to13,
748
- _this$templateData$to14,
748
+ var _top$list,
749
749
  _this3 = this;
750
750
 
751
+ var _this$templateData = this.templateData,
752
+ canvasWidth = _this$templateData.canvasWidth,
753
+ canvasHeight = _this$templateData.canvasHeight,
754
+ top = _this$templateData.top;
751
755
  this.canvas = new this.fabric.Canvas(this.id, Object(objectSpread2["a" /* default */])({
752
- width: this.templateData.canvasWidth,
753
- height: this.templateData.canvasHeight
756
+ width: canvasWidth,
757
+ height: canvasHeight
754
758
  }, this.canvasAttr));
755
759
 
756
- 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) {
757
- this.getGridYnumberTop(this.templateData.top.list);
758
- this.treeList = this.setTreeStyle(vexutils_default.a.clone(this.templateData.top.list, true));
760
+ if ((typeof (top === null || top === void 0 ? void 0 : top.show) === 'undefined' || top !== null && top !== void 0 && top.show) && top !== null && top !== void 0 && (_top$list = top.list) !== null && _top$list !== void 0 && _top$list.length) {
761
+ this.getGridYnumberTop(top.list);
762
+ this.treeList = this.setTreeStyle(vexutils_default.a.clone(top.list, true));
759
763
  }
760
764
 
761
765
  this.canvas.on('mouse:move', function (event) {
@@ -779,10 +783,10 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
779
783
  var _this3$throttleEvent2;
780
784
 
781
785
  (_this3$throttleEvent2 = _this3.throttleEvent) === null || _this3$throttleEvent2 === void 0 ? void 0 : _this3$throttleEvent2.call(_this3, event, _this3.fabricPolylinesInstances);
782
- _this3.fabricLinesInstances.isDropVisible = false;
786
+ if (_this3.fabricLinesInstances) _this3.fabricLinesInstances.isDropVisible = false;
783
787
  } else if (x <= originX || x >= endX || !(y > originY && y < endY || y > originYTop && y < endYTop)) {
784
788
  _this3.fabricPolylinesInstances.isDropVisible = false;
785
- _this3.fabricLinesInstances.isDropVisible = false;
789
+ if (_this3.fabricLinesInstances) _this3.fabricLinesInstances.isDropVisible = false;
786
790
  }
787
791
  });
788
792
  },
@@ -856,9 +860,9 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
856
860
  var _node = arguments.length > 2 ? arguments[2] : undefined;
857
861
 
858
862
  var arr = [];
859
- var _this$templateData$to15 = this.templateData.top,
860
- treeTableminCellWidth = _this$templateData$to15.treeTableminCellWidth,
861
- treeTableminCellHeight = _this$templateData$to15.treeTableminCellHeight;
863
+ var _this$templateData$to13 = this.templateData.top,
864
+ treeTableminCellWidth = _this$templateData$to13.treeTableminCellWidth,
865
+ treeTableminCellHeight = _this$templateData$to13.treeTableminCellHeight;
862
866
 
863
867
  for (var i = 0; i < list.length; i++) {
864
868
  var _node$children;
@@ -946,8 +950,8 @@ var componentNormalizer = __webpack_require__("2877");
946
950
 
947
951
  var component = Object(componentNormalizer["a" /* default */])(
948
952
  fabric_chart_FabricCanvasvue_type_script_lang_js_,
949
- FabricCanvasvue_type_template_id_198a3c0c_render,
950
- FabricCanvasvue_type_template_id_198a3c0c_staticRenderFns,
953
+ FabricCanvasvue_type_template_id_7911dd3e_render,
954
+ FabricCanvasvue_type_template_id_7911dd3e_staticRenderFns,
951
955
  false,
952
956
  null,
953
957
  null,
@@ -956,12 +960,12 @@ var component = Object(componentNormalizer["a" /* default */])(
956
960
  )
957
961
 
958
962
  /* harmony default export */ var FabricCanvas = (component.exports);
959
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7ebb9ffc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=2dfd3d2b&
960
- var FabricPolylinesvue_type_template_id_2dfd3d2b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"poly-line"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
961
- var FabricPolylinesvue_type_template_id_2dfd3d2b_staticRenderFns = []
963
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fee42d6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=181e62f0&
964
+ var FabricPolylinesvue_type_template_id_181e62f0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"poly-line"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
965
+ var FabricPolylinesvue_type_template_id_181e62f0_staticRenderFns = []
962
966
 
963
967
 
964
- // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=2dfd3d2b&
968
+ // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=181e62f0&
965
969
 
966
970
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
967
971
  var asyncToGenerator = __webpack_require__("1da1");
@@ -1277,7 +1281,7 @@ var type_isObject = function isObject(obj) {
1277
1281
  return new this.fabric.Circle(Object(objectSpread2["a" /* default */])({
1278
1282
  objectCaching: false,
1279
1283
  strokeWidth: 1,
1280
- radius: data.width / 2,
1284
+ radius: data.width ? data.width / 2 : data.radius,
1281
1285
  scale: 1,
1282
1286
  fill: '#fff'
1283
1287
  }, data));
@@ -1629,7 +1633,7 @@ var type_isObject = function isObject(obj) {
1629
1633
  }
1630
1634
  }
1631
1635
  });
1632
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7ebb9ffc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/MouseRightClick.vue?vue&type=template&id=25d4407a&scoped=true&
1636
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fee42d6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/MouseRightClick.vue?vue&type=template&id=25d4407a&scoped=true&
1633
1637
  var MouseRightClickvue_type_template_id_25d4407a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-mouse-right-menu-popup c-animation-in",style:(_vm.dialogStyle)},[_c('div',{staticClass:"c-mouse-right-menu"},_vm._l((_vm.nodeList),function(item,index){return _c('div',{key:index,staticClass:"c-mouse-menu-item",on:{"click":function($event){return _vm.handleNodeClick(item)}}},[_c('span',[_vm._v(_vm._s(item.name))])])}),0)])}
1634
1638
  var MouseRightClickvue_type_template_id_25d4407a_scoped_true_staticRenderFns = []
1635
1639
 
@@ -1737,7 +1741,7 @@ var MouseRightClick_component = Object(componentNormalizer["a" /* default */])(
1737
1741
  )
1738
1742
 
1739
1743
  /* harmony default export */ var MouseRightClick = (MouseRightClick_component.exports);
1740
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7ebb9ffc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/DropPopup.vue?vue&type=template&id=c4db0ace&scoped=true&
1744
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fee42d6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/DropPopup.vue?vue&type=template&id=c4db0ace&scoped=true&
1741
1745
  var DropPopupvue_type_template_id_c4db0ace_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-drop-popup",style:(_vm.dialogStyle)},[_c('div',{staticClass:"c-drop-popup-list"},[_c('span',[_vm._v(_vm._s(_vm.val.title))]),_vm._l((_vm.val.list),function(item){return _c('span',{key:item.id},[_vm._v(" "+_vm._s(((item.name) + ": " + (item.value)))+" ")])})],2)])}
1742
1746
  var DropPopupvue_type_template_id_c4db0ace_scoped_true_staticRenderFns = []
1743
1747
 
@@ -1921,10 +1925,11 @@ function resetPointColor(pointArr, color) {
1921
1925
  }
1922
1926
 
1923
1927
  var setPointLineColor = function setPointLineColor(point, color, conditionHasLine2) {
1924
- var _point$line, _point$line2;
1928
+ var _point$prevPoint, _point$prevPoint$__at, _point$prevPoint$__at2, _point$line, _point$line2;
1925
1929
 
1930
+ var line1Color = color === 'transparent' ? color : ((_point$prevPoint = point.prevPoint) === null || _point$prevPoint === void 0 ? void 0 : (_point$prevPoint$__at = _point$prevPoint.__attrs) === null || _point$prevPoint$__at === void 0 ? void 0 : (_point$prevPoint$__at2 = _point$prevPoint$__at.lineAttr) === null || _point$prevPoint$__at2 === void 0 ? void 0 : _point$prevPoint$__at2.stroke) || color;
1926
1931
  (_point$line = point.line1) === null || _point$line === void 0 ? void 0 : _point$line.set({
1927
- stroke: color
1932
+ stroke: line1Color
1928
1933
  });
1929
1934
  conditionHasLine2 && ((_point$line2 = point.line2) === null || _point$line2 === void 0 ? void 0 : _point$line2.set({
1930
1935
  stroke: color
@@ -2081,11 +2086,9 @@ var rightClickNodeConnect = [{
2081
2086
  _this4.isSelectArea = false;
2082
2087
 
2083
2088
  if (event.button === 1 && _this4.selectArea) {
2084
- var points = _this4.selectArea.ponits;
2085
-
2086
- var _this4$getAreaPonits = _this4.getAreaPonits(points),
2087
- polylineList = _this4$getAreaPonits.polylineList,
2088
- otherList = _this4$getAreaPonits.otherList;
2089
+ var _this4$getAreaPoints = _this4.getAreaPoints(),
2090
+ polylineList = _this4$getAreaPoints.polylineList,
2091
+ otherList = _this4$getAreaPoints.otherList;
2089
2092
 
2090
2093
  !polylineList.length && !otherList.length && _this4.removeSelectArea();
2091
2094
 
@@ -2101,10 +2104,7 @@ var rightClickNodeConnect = [{
2101
2104
  }
2102
2105
  }
2103
2106
  });
2104
- var selectAreaOrigin = {
2105
- left: 0,
2106
- top: 0
2107
- };
2107
+ var startPos;
2108
2108
  this.canvas.on('mouse:down', function (event) {
2109
2109
  if (event.button !== 1) return; // 处理时间范围选区
2110
2110
 
@@ -2168,12 +2168,11 @@ var rightClickNodeConnect = [{
2168
2168
 
2169
2169
  if (!event.target) {
2170
2170
  _this4.isSelectArea = true;
2171
- selectAreaOrigin.left = event.pointer.x;
2172
- selectAreaOrigin.top = event.pointer.y;
2171
+ startPos = event.pointer;
2173
2172
  }
2174
2173
  });
2175
2174
  this.canvas.on('mouse:move', function (event) {
2176
- _this4.isSelectArea && _this4.createSelectArea(event, selectAreaOrigin);
2175
+ _this4.isSelectArea && _this4.createSelectArea(event, startPos);
2177
2176
 
2178
2177
  _this4.setTimeRange(event.pointer);
2179
2178
  });
@@ -2199,17 +2198,33 @@ var rightClickNodeConnect = [{
2199
2198
  this.movingShowPopup(movingPopupContentList);
2200
2199
  },
2201
2200
  // 获取选区内包含的节点
2202
- getAreaPonits: function getAreaPonits(points) {
2203
- var _this5 = this;
2201
+ getAreaPoints: function getAreaPoints() {
2202
+ var _this$selectArea,
2203
+ _this5 = this;
2204
2204
 
2205
2205
  var polylineList = [];
2206
2206
  var otherList = [];
2207
-
2208
- var _points = Object(slicedToArray["a" /* default */])(points, 4),
2209
- x1 = _points[0],
2210
- y1 = _points[1],
2211
- x2 = _points[2],
2212
- y2 = _points[3];
2207
+ if (!((_this$selectArea = this.selectArea) !== null && _this$selectArea !== void 0 && _this$selectArea.areaPos)) return {
2208
+ polylineList: polylineList,
2209
+ otherList: otherList
2210
+ };
2211
+ var _this$selectArea$area = this.selectArea.areaPos,
2212
+ startPos = _this$selectArea$area.startPos,
2213
+ endPos = _this$selectArea$area.endPos;
2214
+
2215
+ var _sort3 = [startPos.x, endPos.x].sort(function (a, b) {
2216
+ return a - b;
2217
+ }),
2218
+ _sort4 = Object(slicedToArray["a" /* default */])(_sort3, 2),
2219
+ x1 = _sort4[0],
2220
+ x2 = _sort4[1];
2221
+
2222
+ var _sort5 = [startPos.y, endPos.y].sort(function (a, b) {
2223
+ return a - b;
2224
+ }),
2225
+ _sort6 = Object(slicedToArray["a" /* default */])(_sort5, 2),
2226
+ y1 = _sort6[0],
2227
+ y2 = _sort6[1];
2213
2228
 
2214
2229
  this.canvas.forEachObject(function (obj) {
2215
2230
  var id = obj.id,
@@ -2220,7 +2235,7 @@ var rightClickNodeConnect = [{
2220
2235
 
2221
2236
  if (isArea && _this5.isGridLimit(left, top) && id) {
2222
2237
  if (/_polyline(Point)_/.test(id)) {
2223
- var data = _this5.getDataById(id);
2238
+ var data = _this5.getDataByPoint(obj);
2224
2239
 
2225
2240
  if (currentDelPoint) {
2226
2241
  if (currentDelPoint.polylineIndex == obj.polylineIndex) {
@@ -2232,12 +2247,12 @@ var rightClickNodeConnect = [{
2232
2247
  }
2233
2248
 
2234
2249
  if (id.includes('_other') && obj.type === 'list' && !_this5.currentDelPoint) {
2235
- var _data = {
2250
+ var _data2 = {
2236
2251
  type: obj.type,
2237
2252
  index: obj.index,
2238
2253
  dataIndex: obj.dataIndex
2239
2254
  };
2240
- otherList.push(_data);
2255
+ otherList.push(_data2);
2241
2256
  }
2242
2257
  }
2243
2258
  });
@@ -2252,23 +2267,25 @@ var rightClickNodeConnect = [{
2252
2267
  };
2253
2268
  },
2254
2269
  // 创建选区
2255
- createSelectArea: function createSelectArea(event, selectAreaOrigin) {
2270
+ createSelectArea: function createSelectArea(event, startPos) {
2256
2271
  this.selectArea && this.canvas.remove(this.selectArea);
2257
- var _ref = [selectAreaOrigin.left, selectAreaOrigin.top],
2258
- x1 = _ref[0],
2259
- y1 = _ref[1];
2260
- var _ref2 = [event.pointer.x, event.pointer.y],
2261
- x2 = _ref2[0],
2262
- y2 = _ref2[1];
2272
+ var x1 = startPos.x,
2273
+ y1 = startPos.y;
2274
+ var _event$pointer2 = event.pointer,
2275
+ x2 = _event$pointer2.x,
2276
+ y2 = _event$pointer2.y;
2263
2277
  this.selectArea = new this.fabric.Rect(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), {}, {
2264
2278
  fill: '#CAF982',
2265
2279
  opacity: 0.4,
2266
2280
  left: x1,
2267
2281
  top: y1,
2268
2282
  width: x2 - x1,
2269
- height: y2 - y1,
2270
- ponits: x1 < x2 ? [x1, y1, x2, y2] : [x2, y2, x1, y1]
2283
+ height: y2 - y1
2271
2284
  }));
2285
+ this.selectArea.areaPos = {
2286
+ startPos: startPos,
2287
+ endPos: event.pointer
2288
+ };
2272
2289
  this.canvas.add(this.selectArea);
2273
2290
  },
2274
2291
  createTimeRangeLine: function createTimeRangeLine(line, pointer) {
@@ -2333,7 +2350,21 @@ var rightClickNodeConnect = [{
2333
2350
  var maxTime = Math.max.apply(Math, Object(toConsumableArray["a" /* default */])(xScaleList));
2334
2351
  this.polyline.forEach(function (item, index) {
2335
2352
  item.dataList.forEach(function (v, i) {
2336
- var point = v.list.find(function (k) {
2353
+ var targetList = v.list;
2354
+ var linkKey = '';
2355
+
2356
+ if (v.linkKey) {
2357
+ var target = item.dataList.find(function (_data) {
2358
+ return _data.key === v.linkKey;
2359
+ });
2360
+
2361
+ if (target) {
2362
+ targetList = target.list;
2363
+ linkKey = v.linkKey;
2364
+ }
2365
+ }
2366
+
2367
+ var point = targetList.find(function (k) {
2337
2368
  return isEffectiveNode(k) && new Date(k.time).getTime() >= minTime && new Date(k.time).getTime() <= maxTime;
2338
2369
  });
2339
2370
  var firstPointLeft = point ? _this7.cumputedX(point.time) : 0;
@@ -2348,7 +2379,14 @@ var rightClickNodeConnect = [{
2348
2379
  polylineTypeId: index,
2349
2380
  polylineIndex: i,
2350
2381
  isAdd: isAdd,
2351
- rightLimit: rightLimit
2382
+ rightLimit: rightLimit,
2383
+ __attrs: {
2384
+ title: v.title,
2385
+ pointAttr: v.pointAttr,
2386
+ lineAttr: v.pointAttr,
2387
+ key: v.key,
2388
+ linkKey: linkKey
2389
+ }
2352
2390
  });
2353
2391
  });
2354
2392
  }); // 配置左侧title图标(但不是折线项目)
@@ -2377,7 +2415,7 @@ var rightClickNodeConnect = [{
2377
2415
  evented: false
2378
2416
  };
2379
2417
  leftTitleList.forEach( /*#__PURE__*/function () {
2380
- var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee(v, i) {
2418
+ var _ref = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee(v, i) {
2381
2419
  var _v$pointAttr2;
2382
2420
 
2383
2421
  var baseTop, top, left, pointId, _v$pointAttr, _v$pointAttr$fill, fillColor, stroke, text, iconLeft, option, ele, icon, originTop, cloneIconId, maxVal;
@@ -2413,7 +2451,8 @@ var rightClickNodeConnect = [{
2413
2451
  polylineTypeId: v.polylineTypeId,
2414
2452
  polylineIndex: v.polylineIndex
2415
2453
  }, v.isAdd && _this7.eventStyle.evented ? {} : eventStyle), {}, {
2416
- rightLimit: v.rightLimit || ''
2454
+ rightLimit: v.rightLimit || '',
2455
+ __attrs: v.__attrs
2417
2456
  });
2418
2457
 
2419
2458
  if (!(v.type === 'img' && (_v$pointAttr2 = v.pointAttr) !== null && _v$pointAttr2 !== void 0 && _v$pointAttr2.iconClassName)) {
@@ -2529,7 +2568,7 @@ var rightClickNodeConnect = [{
2529
2568
  }));
2530
2569
 
2531
2570
  return function (_x, _x2) {
2532
- return _ref3.apply(this, arguments);
2571
+ return _ref.apply(this, arguments);
2533
2572
  };
2534
2573
  }());
2535
2574
  },
@@ -2609,20 +2648,20 @@ var rightClickNodeConnect = [{
2609
2648
  });
2610
2649
  },
2611
2650
  // 创建危急值和差异值
2612
- createAttrVaule: function createAttrVaule(_ref4) {
2651
+ createAttrVaule: function createAttrVaule(_ref2) {
2613
2652
  var _this10 = this,
2614
2653
  _this$canvas;
2615
2654
 
2616
- var attr = _ref4.attr,
2617
- polyline = _ref4.polyline,
2618
- polylineIndex = _ref4.polylineIndex,
2619
- polylineType = _ref4.polylineType,
2620
- polylineTypeId = _ref4.polylineTypeId;
2655
+ var attr = _ref2.attr,
2656
+ polyline = _ref2.polyline,
2657
+ polylineIndex = _ref2.polylineIndex,
2658
+ polylineType = _ref2.polylineType,
2659
+ polylineTypeId = _ref2.polylineTypeId;
2621
2660
  var list = polyline.list;
2622
2661
 
2623
- var _ref5 = polyline[attr] || {},
2624
- max = _ref5.max,
2625
- min = _ref5.min;
2662
+ var _ref3 = polyline[attr] || {},
2663
+ max = _ref3.max,
2664
+ min = _ref3.min;
2626
2665
 
2627
2666
  if (!max && !min) return;
2628
2667
  var _this$propItems5 = this.propItems,
@@ -2636,9 +2675,9 @@ var rightClickNodeConnect = [{
2636
2675
  });
2637
2676
  var lines = [];
2638
2677
 
2639
- var drawLine = function drawLine(_ref6) {
2640
- var value = _ref6.value,
2641
- lineStyle = _ref6.lineStyle;
2678
+ var drawLine = function drawLine(_ref4) {
2679
+ var value = _ref4.value,
2680
+ lineStyle = _ref4.lineStyle;
2642
2681
 
2643
2682
  var top = _this10.cumputedY(polylineType, +value);
2644
2683
 
@@ -2649,9 +2688,9 @@ var rightClickNodeConnect = [{
2649
2688
  }, lineStyle || defaultVaule.criticalStyle));
2650
2689
  };
2651
2690
 
2652
- var drawText = function drawText(_ref7, top) {
2653
- var name = _ref7.name,
2654
- nameStyle = _ref7.nameStyle;
2691
+ var drawText = function drawText(_ref5, top) {
2692
+ var name = _ref5.name,
2693
+ nameStyle = _ref5.nameStyle;
2655
2694
  return new _this10.fabric.Text(String(name || ''), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), nameStyle), {}, {
2656
2695
  originY: 'bottom',
2657
2696
  left: originX + 5,
@@ -2696,15 +2735,12 @@ var rightClickNodeConnect = [{
2696
2735
  var _this$propItems6 = this.propItems,
2697
2736
  originY = _this$propItems6.originY,
2698
2737
  endY = _this$propItems6.endY;
2699
- var pointAttr = polyline.pointAttr,
2700
- lineAttr = polyline.lineAttr,
2701
- _polyline$list = polyline.list,
2738
+ var _polyline$list = polyline.list,
2702
2739
  list = _polyline$list === void 0 ? [] : _polyline$list,
2703
2740
  _polyline$critical = polyline.critical,
2704
2741
  critical = _polyline$critical === void 0 ? {} : _polyline$critical,
2705
2742
  _polyline$diffValue = polyline.diffValue,
2706
2743
  diffValue = _polyline$diffValue === void 0 ? {} : _polyline$diffValue;
2707
- this._iconClassName = polyline.type === 'img' && pointAttr.iconClassName ? pointAttr.iconClassName : '';
2708
2744
  var pointList = [];
2709
2745
  var lineList = [];
2710
2746
 
@@ -2733,7 +2769,24 @@ var rightClickNodeConnect = [{
2733
2769
  return point.polylineTypeId !== polylineTypeId && point.polylineIndex !== polylineIndex;
2734
2770
  });
2735
2771
  list.forEach(function (linePoints, index) {
2736
- // 当前点
2772
+ var pointAttr = polyline.pointAttr,
2773
+ _polyline$lineAttr = polyline.lineAttr,
2774
+ lineAttr = _polyline$lineAttr === void 0 ? {} : _polyline$lineAttr,
2775
+ type = polyline.type,
2776
+ title = polyline.title;
2777
+ var target = polylineType.dataList.find(function (_data) {
2778
+ return linePoints.key && _data.key === linePoints.key;
2779
+ });
2780
+
2781
+ if (target) {
2782
+ type = target.type;
2783
+ pointAttr = target.pointAttr;
2784
+ lineAttr = target.lineAttr;
2785
+ title = target.title;
2786
+ }
2787
+
2788
+ _this11._iconClassName = polyline.type === 'img' && pointAttr.iconClassName ? pointAttr.iconClassName : ''; // 当前点
2789
+
2737
2790
  var _getPointer = getPointer(linePoints),
2738
2791
  points = _getPointer.points,
2739
2792
  isInit = _getPointer.isInit; // 下一个点
@@ -2767,9 +2820,16 @@ var rightClickNodeConnect = [{
2767
2820
  originLeft: points[0],
2768
2821
  originTop: points[1],
2769
2822
  time: linePoints.time,
2770
- __value: linePoints.value
2823
+ __value: linePoints.value,
2824
+ __attrs: {
2825
+ type: type,
2826
+ pointAttr: pointAttr,
2827
+ lineAttr: lineAttr,
2828
+ title: title,
2829
+ key: linePoints.key
2830
+ }
2771
2831
  });
2772
- point = previousLine ? _this11.drawPoint.apply(_this11, Object(toConsumableArray["a" /* default */])(points).concat([previousLine, line, polyline.type, pointOthers, isInit])) : _this11.drawPoint.apply(_this11, Object(toConsumableArray["a" /* default */])(points).concat([null, line, polyline.type, pointOthers, isInit]));
2832
+ point = previousLine ? _this11.drawPoint.apply(_this11, Object(toConsumableArray["a" /* default */])(points).concat([previousLine, line, type, pointOthers, isInit])) : _this11.drawPoint.apply(_this11, Object(toConsumableArray["a" /* default */])(points).concat([null, line, type, pointOthers, isInit]));
2773
2833
  }
2774
2834
 
2775
2835
  lineList.push(line);
@@ -2797,7 +2857,6 @@ var rightClickNodeConnect = [{
2797
2857
  polylineTypeId: polylineTypeId,
2798
2858
  polylineIndex: polylineIndex,
2799
2859
  pointerList: pointerList,
2800
- color: lineAttr.stroke,
2801
2860
  pointList: res
2802
2861
  });
2803
2862
  }
@@ -2992,7 +3051,8 @@ var rightClickNodeConnect = [{
2992
3051
  },
2993
3052
  // 拖动停止后 设置回调触发方法
2994
3053
  setEmitFunction: function setEmitFunction(point) {
2995
- var _this14 = this;
3054
+ var _point$__attrs,
3055
+ _this14 = this;
2996
3056
 
2997
3057
  var isInit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
2998
3058
  var operable = this.propItems.operable;
@@ -3003,17 +3063,19 @@ var rightClickNodeConnect = [{
3003
3063
  y = _this$getValue.y;
3004
3064
 
3005
3065
  Object.assign(data, {
3006
- value: {
3066
+ value: Object(objectSpread2["a" /* default */])({
3007
3067
  time: operable.lockMovementX ? point.time : x,
3008
3068
  value: y
3009
- },
3069
+ }, (_point$__attrs = point.__attrs) !== null && _point$__attrs !== void 0 && _point$__attrs.key ? {
3070
+ key: point.__attrs.key
3071
+ } : {}),
3010
3072
  isInit: isInit
3011
3073
  });
3012
3074
 
3013
3075
  if (this.addPointList.length === 0) {
3014
- var _point$prevPoint, _point$nextPoint;
3076
+ var _point$prevPoint2, _point$nextPoint;
3015
3077
 
3016
- if ((_point$prevPoint = point.prevPoint) !== null && _point$prevPoint !== void 0 && _point$prevPoint.time.includes(x) || (_point$nextPoint = point.nextPoint) !== null && _point$nextPoint !== void 0 && _point$nextPoint.time.includes(x)) {
3078
+ if ((_point$prevPoint2 = point.prevPoint) !== null && _point$prevPoint2 !== void 0 && _point$prevPoint2.time.includes(x) || (_point$nextPoint = point.nextPoint) !== null && _point$nextPoint !== void 0 && _point$nextPoint.time.includes(x)) {
3017
3079
  // 此方法更新节点后其事件都失效了,暂时采用下方repaintPolyline方法更新整条节点
3018
3080
  // point.setCoords();
3019
3081
  // point.set('left', point.originLeft);
@@ -3040,13 +3102,15 @@ var rightClickNodeConnect = [{
3040
3102
 
3041
3103
 
3042
3104
  if (point.get('scaleX') !== point.scale) {
3043
- var _this$_concatPoint, _this$_concatPoint2;
3105
+ var _this$_concatPoint, _this$_concatPoint2, _point$__attrs2;
3044
3106
 
3045
3107
  var addOjb = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, lastPoint), {}, {
3046
- value: {
3108
+ value: Object(objectSpread2["a" /* default */])({
3047
3109
  time: this.getXValue((_this$_concatPoint = this._concatPoint) === null || _this$_concatPoint === void 0 ? void 0 : _this$_concatPoint.left),
3048
3110
  value: this.getYValue(position, (_this$_concatPoint2 = this._concatPoint) === null || _this$_concatPoint2 === void 0 ? void 0 : _this$_concatPoint2.top)
3049
- }
3111
+ }, (_point$__attrs2 = point.__attrs) !== null && _point$__attrs2 !== void 0 && _point$__attrs2.key ? {
3112
+ key: point.__attrs.key
3113
+ } : {})
3050
3114
  });
3051
3115
 
3052
3116
  if (lastPoint.value.time == addOjb.value.time) {
@@ -3086,12 +3150,15 @@ var rightClickNodeConnect = [{
3086
3150
  x = _this$getValue2.x,
3087
3151
  y = _this$getValue2.y;
3088
3152
 
3089
- data.value = {
3153
+ data.value = Object(objectSpread2["a" /* default */])({
3090
3154
  time: x,
3091
3155
  value: y
3092
- };
3156
+ }, point.__attrs.linkKey ? {
3157
+ key: point.__attrs.key
3158
+ } : {});
3093
3159
  data.left = point.left;
3094
3160
  data.top = top;
3161
+ if (point.__attrs.linkKey) data.linkKey = point.__attrs.linkKey;
3095
3162
  this.addPointList.push(data);
3096
3163
  },
3097
3164
  // 纠正线段坐标
@@ -3176,6 +3243,7 @@ var rightClickNodeConnect = [{
3176
3243
  cloneObj.top = prePoint.top + spaceHeight;
3177
3244
  cloneObj.value.time = _this16.getXValue(curLeft);
3178
3245
  cloneObj.value.value = _this16.getYValue(position, cloneObj.top);
3246
+ if (point.__attrs.key) cloneObj.value.key = point.__attrs.key;
3179
3247
  cloneObj.left = curLeft;
3180
3248
 
3181
3249
  _this16.addPointList.splice(index, 0, cloneObj);
@@ -3242,6 +3310,7 @@ var rightClickNodeConnect = [{
3242
3310
  time: x,
3243
3311
  value: y
3244
3312
  };
3313
+ if (point.__attrs.key) data.value.key = point.__attrs.key;
3245
3314
  data.left = left;
3246
3315
  data.top = top; // 避免重复添加
3247
3316
 
@@ -3282,6 +3351,7 @@ var rightClickNodeConnect = [{
3282
3351
 
3283
3352
  var polylineTypeId = point.polylineTypeId,
3284
3353
  polylineIndex = point.polylineIndex;
3354
+ var color = point.__attrs.lineAttr.stroke;
3285
3355
  var polylineObj = this.polylinePointList.find(function (v) {
3286
3356
  return v.polylineTypeId == polylineTypeId && v.polylineIndex == polylineIndex;
3287
3357
  });
@@ -3321,15 +3391,16 @@ var rightClickNodeConnect = [{
3321
3391
  } else {
3322
3392
  var _obj$line2;
3323
3393
 
3324
- resetPointColor([obj], polylineObj.color);
3394
+ var _color = obj.__attrs.lineAttr.stroke;
3395
+ resetPointColor([obj], _color);
3325
3396
  (_obj$line2 = obj.line2) === null || _obj$line2 === void 0 ? void 0 : _obj$line2.set({
3326
- stroke: polylineObj.color
3397
+ stroke: _color
3327
3398
  });
3328
3399
  }
3329
3400
  });
3330
3401
 
3331
3402
  if ((point.line1 || point.line2) && left < originLeft + this.spaceWidth) {
3332
- setPointLineColor(point, polylineObj.color, true);
3403
+ setPointLineColor(point, color, true);
3333
3404
  } else {
3334
3405
  setPointLineColor(point, 'transparent', true);
3335
3406
  }
@@ -3344,7 +3415,7 @@ var rightClickNodeConnect = [{
3344
3415
  var endLength = this.addPointList.length;
3345
3416
 
3346
3417
  if (endLength === 0) {
3347
- setPointLineColor(point, polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.color, conditionHasLine2);
3418
+ setPointLineColor(point, color, conditionHasLine2);
3348
3419
  this.removePolyline('increasePointBatch', originLeft);
3349
3420
  }
3350
3421
 
@@ -3358,21 +3429,20 @@ var rightClickNodeConnect = [{
3358
3429
  clonePoint: function clonePoint(point, points) {
3359
3430
  var _this17 = this;
3360
3431
 
3361
- var evented, selectable, lineIndex, polylineIndex, lineAttr, polylineTypeId;
3362
- evented = selectable = false;
3363
- lineAttr = Object(objectSpread2["a" /* default */])({}, point.lineAttr);
3364
- lineIndex = point.pointIndex;
3365
- polylineIndex = point.polylineIndex;
3366
- polylineTypeId = point.polylineTypeId;
3432
+ var lineIndex = point.lineIndex,
3433
+ polylineIndex = point.polylineIndex,
3434
+ lineAttr = point.lineAttr,
3435
+ polylineTypeId = point.polylineTypeId,
3436
+ originLeft = point.originLeft;
3437
+ var currentLineAttr = originLeft === points[2] && point.prevPoint ? point.prevPoint.__attrs.lineAttr : lineAttr;
3367
3438
  point.clone(function (clonedObj) {
3368
3439
  clonedObj.set({
3369
3440
  left: points[2],
3370
3441
  top: points[3],
3371
3442
  idClone: 'increasePointBatch',
3372
- id: '_polylinePoint_' + new Date().getTime(),
3373
- // 此id必须,用于remove节点的时候
3443
+ id: '_polylinePoint_',
3374
3444
  polylineTypeId: polylineTypeId,
3375
- polylineIndex: point.polylineIndex,
3445
+ polylineIndex: polylineIndex,
3376
3446
  scaleX: point.scale || 1,
3377
3447
  scaleY: point.scale || 1
3378
3448
  });
@@ -3380,9 +3450,9 @@ var rightClickNodeConnect = [{
3380
3450
  point.prePoints = [point.left, point.top];
3381
3451
 
3382
3452
  var line = _this17.drawLine(Object(toConsumableArray["a" /* default */])(points), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
3383
- evented: evented,
3384
- selectable: selectable
3385
- }, lineAttr), {}, {
3453
+ evented: false,
3454
+ selectable: false
3455
+ }, currentLineAttr), {}, {
3386
3456
  polylineIndex: polylineIndex,
3387
3457
  polylineTypeId: polylineTypeId,
3388
3458
  lineIndex: lineIndex
@@ -3403,7 +3473,7 @@ var rightClickNodeConnect = [{
3403
3473
  var x = this.getXValue(point.left);
3404
3474
 
3405
3475
  if (point.id) {
3406
- var data = this.getDataById(point.id);
3476
+ var data = this.getDataByPoint(point);
3407
3477
  var position = data.position;
3408
3478
  var y = this.getYValue(position, point.top);
3409
3479
  return {
@@ -3556,17 +3626,16 @@ var rightClickNodeConnect = [{
3556
3626
  });
3557
3627
  },
3558
3628
  // 关闭右键菜单,打开添加节点弹窗表单
3559
- handleRightClick: function handleRightClick(_ref8) {
3629
+ handleRightClick: function handleRightClick(_ref6) {
3560
3630
  var _this$_currentPoint;
3561
3631
 
3562
- var type = _ref8.type,
3563
- name = _ref8.name;
3632
+ var type = _ref6.type,
3633
+ name = _ref6.name;
3564
3634
  this.isRightVisible = false;
3565
- var id = (_this$_currentPoint = this._currentPoint) === null || _this$_currentPoint === void 0 ? void 0 : _this$_currentPoint.id;
3566
3635
  var _this$_active = this._active,
3567
3636
  left = _this$_active.left,
3568
3637
  top = _this$_active.top;
3569
- var data = id ? this.getDataById(id) : this.getValue({
3638
+ var data = (_this$_currentPoint = this._currentPoint) !== null && _this$_currentPoint !== void 0 && _this$_currentPoint.id ? this.getDataByPoint(this._currentPoint) : this.getValue({
3570
3639
  left: left,
3571
3640
  top: top
3572
3641
  });
@@ -3590,10 +3659,10 @@ var rightClickNodeConnect = [{
3590
3659
  this.$emit('pointOperation', type, data);
3591
3660
  this._currentPoint = null;
3592
3661
  },
3593
- getDataById: function getDataById(id) {
3594
- var _data$dataList, _data$dataList$lineIn, _data$dataList$lineIn2, _data$dataList$lineIn3, _data$dataList2;
3662
+ getDataByPoint: function getDataByPoint(point) {
3663
+ var _data$dataList, _data$dataList$lineIn, _data$dataList$lineIn2, _data$dataList$lineIn3;
3595
3664
 
3596
- var arr = id.replace(/_?[a-zA-Z]+.+$/, '').split('_');
3665
+ var arr = point.id.replace(/_?[a-zA-Z]+.+$/, '').split('_');
3597
3666
 
3598
3667
  var _arr = Object(slicedToArray["a" /* default */])(arr, 3),
3599
3668
  typeIndex = _arr[0],
@@ -3603,10 +3672,10 @@ var rightClickNodeConnect = [{
3603
3672
  var data = this.polyline[typeIndex];
3604
3673
  var value = (data === null || data === void 0 ? void 0 : (_data$dataList = data.dataList) === null || _data$dataList === void 0 ? void 0 : (_data$dataList$lineIn = _data$dataList[lineIndex]) === null || _data$dataList$lineIn === void 0 ? void 0 : (_data$dataList$lineIn2 = _data$dataList$lineIn.list) === null || _data$dataList$lineIn2 === void 0 ? void 0 : (_data$dataList$lineIn3 = _data$dataList$lineIn2[pointIndex]) === null || _data$dataList$lineIn3 === void 0 ? void 0 : _data$dataList$lineIn3.data) || '';
3605
3674
  return {
3606
- title: (data === null || data === void 0 ? void 0 : (_data$dataList2 = data.dataList) === null || _data$dataList2 === void 0 ? void 0 : _data$dataList2[lineIndex].title) || '',
3675
+ title: point.__attrs.title,
3607
3676
  position: data.position,
3608
- dataIndex: lineIndex,
3609
- pointIndex: pointIndex,
3677
+ dataIndex: +lineIndex,
3678
+ pointIndex: +pointIndex,
3610
3679
  data: value
3611
3680
  };
3612
3681
  },
@@ -3737,8 +3806,8 @@ var rightClickNodeConnect = [{
3737
3806
 
3738
3807
  var FabricPolylines_component = Object(componentNormalizer["a" /* default */])(
3739
3808
  fabric_chart_FabricPolylinesvue_type_script_lang_js_,
3740
- FabricPolylinesvue_type_template_id_2dfd3d2b_render,
3741
- FabricPolylinesvue_type_template_id_2dfd3d2b_staticRenderFns,
3809
+ FabricPolylinesvue_type_template_id_181e62f0_render,
3810
+ FabricPolylinesvue_type_template_id_181e62f0_staticRenderFns,
3742
3811
  false,
3743
3812
  null,
3744
3813
  null,
@@ -3844,12 +3913,12 @@ var FabricGrid_component = Object(componentNormalizer["a" /* default */])(
3844
3913
  )
3845
3914
 
3846
3915
  /* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
3847
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7ebb9ffc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=2d7ac043&
3848
- var FabricTextGroupvue_type_template_id_2d7ac043_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"text-group"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
3849
- var FabricTextGroupvue_type_template_id_2d7ac043_staticRenderFns = []
3916
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fee42d6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=1a9302e8&
3917
+ var FabricTextGroupvue_type_template_id_1a9302e8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"text-group"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
3918
+ var FabricTextGroupvue_type_template_id_1a9302e8_staticRenderFns = []
3850
3919
 
3851
3920
 
3852
- // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=2d7ac043&
3921
+ // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=1a9302e8&
3853
3922
 
3854
3923
  // 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/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=script&lang=js&
3855
3924
 
@@ -3867,6 +3936,11 @@ var FabricTextGroupvue_type_template_id_2d7ac043_staticRenderFns = []
3867
3936
 
3868
3937
 
3869
3938
 
3939
+
3940
+
3941
+
3942
+
3943
+
3870
3944
 
3871
3945
 
3872
3946
 
@@ -4060,12 +4134,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4060
4134
  this.isRightVisible = false;
4061
4135
  var text = this._currentPoint;
4062
4136
  this._currentPoint = '';
4063
- var obj = {
4064
- type: text.type,
4065
- index: text.index,
4066
- dataIndex: text.dataIndex
4067
- };
4068
- this.$emit("".concat(type, "Other"), obj);
4137
+ this.$emit("".concat(type, "Other"), this.getOtherParams(text, false));
4069
4138
  },
4070
4139
  removeOther: function removeOther() {
4071
4140
  var _this4 = this;
@@ -4171,34 +4240,53 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4171
4240
  var _this7 = this,
4172
4241
  _this$canvas2;
4173
4242
 
4174
- var originY = this.propItems.originY;
4243
+ var _this$propItems3 = this.propItems,
4244
+ originY = _this$propItems3.originY,
4245
+ endX = _this$propItems3.endX;
4175
4246
  var textList = [];
4176
4247
  colList.forEach(function (item, index) {
4177
4248
  var baseTop = originY + (item.marginTop || 10);
4178
4249
 
4179
4250
  if (_this7.isLimit(item.scalevalue)) {
4251
+ var textItemPoints = [];
4252
+
4253
+ var left = _this7.cumputedX(item.scalevalue);
4254
+
4180
4255
  item.dataList.forEach(function (v, i) {
4181
4256
  var top = baseTop + i * (item.lineHeight || 15);
4182
4257
  var text = new _this7.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
4183
4258
  originX: 'left',
4184
4259
  originY: 'center',
4185
- left: _this7.cumputedX(item.scalevalue),
4260
+ left: left,
4186
4261
  top: top,
4187
- lockMovementX: true,
4188
4262
  lockMovementY: true,
4189
4263
  dataIndex: index,
4190
4264
  index: i,
4191
4265
  type: 'colList',
4192
4266
  id: "".concat(index, "_").concat(i, "_other_").concat(Date.now()),
4193
4267
  name: v.value,
4194
- objectCaching: false
4268
+ objectCaching: false,
4269
+ origin: Object(objectSpread2["a" /* default */])({
4270
+ time: item.scalevalue
4271
+ }, v)
4195
4272
  }, _this7.eventStyle));
4196
- text.hasControls = text.hasBorders = false;
4273
+ textItemPoints.push(text);
4197
4274
 
4198
- _this7.setPopup(text);
4275
+ _this7.pointOtherEvent(text);
4199
4276
 
4200
4277
  textList.push(text);
4201
4278
  });
4279
+ var maxTextWidth = Math.max.apply(Math, Object(toConsumableArray["a" /* default */])(textItemPoints.map(function (obj) {
4280
+ return obj.width;
4281
+ })));
4282
+ var isOverstep = left > endX - maxTextWidth;
4283
+ textItemPoints.forEach(function (point, _, arr) {
4284
+ point.maxTextWidth = maxTextWidth;
4285
+ point.siblingPoints = arr.filter(function (_point) {
4286
+ return _point.index !== point.index;
4287
+ });
4288
+ if (isOverstep) point.setCoords().set('originX', 'right');
4289
+ });
4202
4290
  }
4203
4291
  });
4204
4292
 
@@ -4210,7 +4298,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4210
4298
  return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
4211
4299
  var _this8$canvas;
4212
4300
 
4213
- var textList, _this8$propItems, originX, originY, top, index, len, _item$titleStyle, item, marginLeft, left, originOptions, title, _ref2, _ref2$icon, _icon, dataList, i, _len, v, commonOptions, _left2, icon, text, groupObj;
4301
+ var textList, _this8$propItems, originX, originY, top, index, len, _item$titleStyle, item, marginLeft, left, originOptions, title, _ref2, _ref2$icon, _icon, dataList, prevPoint, i, _len, v, commonOptions, _left2, icon, text, groupObj;
4214
4302
 
4215
4303
  return regeneratorRuntime.wrap(function _callee$(_context) {
4216
4304
  while (1) {
@@ -4223,7 +4311,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4223
4311
 
4224
4312
  case 4:
4225
4313
  if (!(index < len)) {
4226
- _context.next = 35;
4314
+ _context.next = 37;
4227
4315
  break;
4228
4316
  }
4229
4317
 
@@ -4257,18 +4345,19 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4257
4345
  _ref2 = item || {}, _ref2$icon = _ref2.icon, _icon = _ref2$icon === void 0 ? {
4258
4346
  type: 'circle'
4259
4347
  } : _ref2$icon, dataList = _ref2.dataList;
4348
+ prevPoint = void 0;
4260
4349
  i = 0, _len = dataList.length;
4261
4350
 
4262
- case 15:
4351
+ case 16:
4263
4352
  if (!(i < _len)) {
4264
- _context.next = 32;
4353
+ _context.next = 34;
4265
4354
  break;
4266
4355
  }
4267
4356
 
4268
4357
  v = dataList[i];
4269
4358
 
4270
4359
  if (!_this8.isLimit(v.time)) {
4271
- _context.next = 29;
4360
+ _context.next = 31;
4272
4361
  break;
4273
4362
  }
4274
4363
 
@@ -4278,11 +4367,12 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4278
4367
  dataIndex: index,
4279
4368
  index: i,
4280
4369
  type: 'list',
4281
- objectCaching: false
4370
+ objectCaching: false,
4371
+ origin: v
4282
4372
  };
4283
4373
  _left2 = _this8.cumputedX(v.time);
4284
4374
  title.dataList.push(_left2);
4285
- _context.next = 23;
4375
+ _context.next = 24;
4286
4376
  return _this8.createPoint(_icon.type, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
4287
4377
  originX: 'center',
4288
4378
  left: _left2
@@ -4290,7 +4380,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4290
4380
  stroke: item.style.fill
4291
4381
  } : {}), _icon.style || {}), commonOptions));
4292
4382
 
4293
- case 23:
4383
+ case 24:
4294
4384
  icon = _context.sent;
4295
4385
  text = new _this8.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
4296
4386
  left: _left2 + icon.width / 2,
@@ -4298,31 +4388,37 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4298
4388
  }, commonOptions));
4299
4389
  groupObj = new _this8.fabric.Group([icon, text], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
4300
4390
  id: "".concat(index, "_").concat(i, "_other_").concat(Date.now()),
4301
- lockMovementX: true,
4302
4391
  lockMovementY: true
4303
4392
  }, commonOptions), _this8.eventStyle), {}, {
4304
- realLeft: _left2
4393
+ realLeft: _left2,
4394
+ iconHalfWidth: icon.width / 2
4305
4395
  }));
4306
- groupObj.hasControls = groupObj.hasBorders = false;
4307
4396
 
4308
- _this8.setPopup(groupObj);
4397
+ if (prevPoint) {
4398
+ prevPoint.nextPoint = groupObj;
4399
+ groupObj.prevPoint = prevPoint;
4400
+ }
4401
+
4402
+ prevPoint = groupObj;
4403
+
4404
+ _this8.pointOtherEvent(groupObj);
4309
4405
 
4310
4406
  textList.push(groupObj);
4311
4407
 
4312
- case 29:
4408
+ case 31:
4313
4409
  i++;
4314
- _context.next = 15;
4410
+ _context.next = 16;
4315
4411
  break;
4316
4412
 
4317
- case 32:
4413
+ case 34:
4318
4414
  index++;
4319
4415
  _context.next = 4;
4320
4416
  break;
4321
4417
 
4322
- case 35:
4418
+ case 37:
4323
4419
  (_this8$canvas = _this8.canvas).add.apply(_this8$canvas, textList);
4324
4420
 
4325
- case 36:
4421
+ case 38:
4326
4422
  case "end":
4327
4423
  return _context.stop();
4328
4424
  }
@@ -4330,14 +4426,23 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4330
4426
  }, _callee);
4331
4427
  }))();
4332
4428
  },
4429
+ emitMouseoverTarget: function emitMouseoverTarget(point) {
4430
+ if (point) {
4431
+ bus.$emit('mouseoverTarget', true);
4432
+ this.showDrapPopup(point, true);
4433
+ } else {
4434
+ !this.isRightVisible && bus.$emit('mouseoverTarget', false);
4435
+ this.isDropVisible = false;
4436
+ }
4437
+ },
4333
4438
  setMovingEvent: function setMovingEvent(point) {
4334
4439
  var _this9 = this;
4335
4440
 
4336
- var _this$propItems3 = this.propItems,
4337
- originX = _this$propItems3.originX,
4338
- originY = _this$propItems3.originY,
4339
- endX = _this$propItems3.endX,
4340
- endY = _this$propItems3.endY;
4441
+ var _this$propItems4 = this.propItems,
4442
+ originX = _this$propItems4.originX,
4443
+ originY = _this$propItems4.originY,
4444
+ endX = _this$propItems4.endX,
4445
+ endY = _this$propItems4.endY;
4341
4446
 
4342
4447
  var isLimit = function isLimit() {
4343
4448
  return point.left >= originX && point.left <= endX && point.top >= originY && point.top <= endY;
@@ -4356,12 +4461,9 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4356
4461
  });
4357
4462
 
4358
4463
  if (isLimit()) {
4359
- bus.$emit('mouseoverTarget', true);
4360
-
4361
- _this9.showDrapPopup(point, true);
4464
+ _this9.emitMouseoverTarget(point);
4362
4465
  } else {
4363
- !_this9.isRightVisible && bus.$emit('mouseoverTarget', false);
4364
- _this9.isDropVisible = false;
4466
+ _this9.emitMouseoverTarget();
4365
4467
  }
4366
4468
  });
4367
4469
  point.on('moved', function () {
@@ -4373,45 +4475,93 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4373
4475
 
4374
4476
  _this9.drawTextDataGroup(_this9.templateData.other);
4375
4477
 
4376
- !_this9.isRightVisible && bus.$emit('mouseoverTarget', false);
4377
- _this9.isDropVisible = false;
4478
+ _this9.emitMouseoverTarget();
4378
4479
 
4379
4480
  if (isLimit()) {
4380
- var type = point.type,
4381
- dataIndex = point.dataIndex,
4382
- left = point.left,
4481
+ var left = point.left,
4383
4482
  dataList = point.dataList;
4384
-
4385
- var time = _this9.getXValue(left);
4386
-
4387
4483
  var index = dataList.findIndex(function (_left) {
4388
4484
  return _left > left;
4389
4485
  }); // 使用定时器,是因为:防止上方移除重绘过慢新增完后再次触发移除重绘导致页面多次重绘节点
4390
4486
 
4391
4487
  setTimeout(function () {
4392
- _this9.$emit('addOhter', {
4393
- type: type,
4394
- dataIndex: dataIndex,
4395
- index: !~index ? dataList.length ? dataList.length - 1 : 0 : index,
4396
- data: {
4397
- time: time
4398
- }
4399
- });
4488
+ _this9.$emit('addOhter', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, _this9.getOtherParams(point)), {}, {
4489
+ index: !~index ? dataList.length ? dataList.length - 1 : 0 : index
4490
+ }));
4400
4491
  });
4401
4492
  }
4402
4493
  });
4403
4494
  },
4404
- setPopup: function setPopup(point) {
4495
+ pointOtherEvent: function pointOtherEvent(point) {
4405
4496
  var _this10 = this;
4406
4497
 
4407
- point.on('mouseover', function () {
4408
- bus.$emit('mouseoverTarget', true);
4498
+ point.hasControls = point.hasBorders = false;
4499
+ this.setPopup(point); // 移动中 实时更新相关联的线的坐标
4500
+
4501
+ if (this.eventStyle.evented) {
4502
+ var _this$propItems5 = this.propItems,
4503
+ endX = _this$propItems5.endX,
4504
+ originX = _this$propItems5.originX;
4505
+ point.on('moving', function () {
4506
+ point.setCoords();
4507
+ var prevPoint = point.prevPoint,
4508
+ nextPoint = point.nextPoint;
4509
+ var limitLeft = (prevPoint === null || prevPoint === void 0 ? void 0 : prevPoint.left) || originX;
4510
+ var limitRight = (nextPoint === null || nextPoint === void 0 ? void 0 : nextPoint.left) || endX;
4511
+ if (point.left > limitRight) point.set('left', limitRight);
4512
+ if (point.left < limitLeft) point.set('left', limitLeft);
4513
+ if (point.realLeft && point.iconHalfWidth) point.realLeft = point.left + point.iconHalfWidth;
4514
+
4515
+ if (point.maxTextWidth) {
4516
+ var isOverstep = point.left + point.maxTextWidth > limitRight;
4517
+
4518
+ var _originX = isOverstep ? 'right' : 'left';
4519
+
4520
+ point.setCoords().set({
4521
+ originX: _originX
4522
+ });
4523
+ point.siblingPoints.forEach(function (_point) {
4524
+ return _point.setCoords().set({
4525
+ originX: _originX,
4526
+ left: point.left
4527
+ });
4528
+ });
4529
+ }
4409
4530
 
4410
- _this10.showDrapPopup(point, true);
4531
+ _this10.showDrapPopup(point);
4532
+ });
4533
+ point.on('moved', function () {
4534
+ _this10.isDropVisible = false;
4535
+
4536
+ _this10.$emit('otherChange', _this10.getOtherParams(point));
4537
+ });
4538
+ }
4539
+ },
4540
+ getOtherParams: function getOtherParams(point) {
4541
+ var isChange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
4542
+ var type = point.type,
4543
+ dataIndex = point.dataIndex,
4544
+ left = point.left,
4545
+ realLeft = point.realLeft,
4546
+ origin = point.origin,
4547
+ index = point.index;
4548
+ return {
4549
+ type: type,
4550
+ dataIndex: dataIndex,
4551
+ index: index,
4552
+ data: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, origin), isChange ? {
4553
+ time: this.getXValue(realLeft !== null && realLeft !== void 0 ? realLeft : left)
4554
+ } : {})
4555
+ };
4556
+ },
4557
+ setPopup: function setPopup(point) {
4558
+ var _this11 = this;
4559
+
4560
+ point.on('mouseover', function () {
4561
+ return _this11.emitMouseoverTarget(point);
4411
4562
  });
4412
4563
  point.on('mouseout', function () {
4413
- !_this10.isRightVisible && bus.$emit('mouseoverTarget', false);
4414
- _this10.isDropVisible = false;
4564
+ return _this11.emitMouseoverTarget();
4415
4565
  });
4416
4566
  },
4417
4567
  // 判断当前时间是否超出网格区域
@@ -4423,11 +4573,11 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4423
4573
  return time >= minTime && time <= maxTime;
4424
4574
  },
4425
4575
  removeMark: function removeMark() {
4426
- var _this11 = this;
4576
+ var _this12 = this;
4427
4577
 
4428
4578
  this.canvas.forEachObject(function (obj) {
4429
4579
  if (obj.type && obj.type === 'mark') {
4430
- _this11.canvas.remove(obj);
4580
+ _this12.canvas.remove(obj);
4431
4581
  }
4432
4582
  });
4433
4583
  },
@@ -4437,14 +4587,14 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4437
4587
  _obj$iconStyle,
4438
4588
  _obj$seqStyle,
4439
4589
  _obj$seqStyle$circle,
4440
- _this12 = this;
4590
+ _this13 = this;
4441
4591
 
4442
- var _this$propItems4 = this.propItems,
4443
- endX = _this$propItems4.endX,
4444
- originX = _this$propItems4.originX,
4445
- endY = _this$propItems4.endY,
4446
- topTotal = _this$propItems4.topTotal,
4447
- markHeight = _this$propItems4.markHeight;
4592
+ var _this$propItems6 = this.propItems,
4593
+ endX = _this$propItems6.endX,
4594
+ originX = _this$propItems6.originX,
4595
+ endY = _this$propItems6.endY,
4596
+ topTotal = _this$propItems6.topTotal,
4597
+ markHeight = _this$propItems6.markHeight;
4448
4598
 
4449
4599
  if (!markHeight || !obj.list) {
4450
4600
  return;
@@ -4473,15 +4623,6 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4473
4623
  var lineHeightImg = (((_obj$iconStyle = obj.iconStyle) === null || _obj$iconStyle === void 0 ? void 0 : _obj$iconStyle.height) || 12) + 2;
4474
4624
  var lineHeightSeq = (((_obj$seqStyle = obj.seqStyle) === null || _obj$seqStyle === void 0 ? void 0 : (_obj$seqStyle$circle = _obj$seqStyle.circle) === null || _obj$seqStyle$circle === void 0 ? void 0 : _obj$seqStyle$circle.radius) || 9) * 2 + 2;
4475
4625
 
4476
- var addCanvas = function addCanvas(point) {
4477
- point.hasControls = point.hasBorders = false;
4478
-
4479
- _this12.pointEvent(point);
4480
-
4481
- _this12.canvas.add(point); // this.canvas.requestRenderAll();
4482
-
4483
- };
4484
-
4485
4626
  var setTop = function setTop(lineHeight, i, condition) {
4486
4627
  if (!~condition.limitIndex) {
4487
4628
  condition.y += i === 0 ? lineHeight / 2 : lineHeight;
@@ -4508,13 +4649,13 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4508
4649
  y: baseY
4509
4650
  };
4510
4651
 
4511
- var x = _this12.cumputedX(item[0]);
4652
+ var x = _this13.cumputedX(item[0]);
4512
4653
 
4513
- if (_this12.isLimit(item[0])) {
4654
+ if (_this13.isLimit(item[0])) {
4655
+ var pointList = [];
4514
4656
  item[1].forEach( /*#__PURE__*/function () {
4515
4657
  var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(v, i) {
4516
- var common, eventStyle, option, ele, img, _obj$seqStyle2, _obj$seqStyle3, circle, text, group, _text;
4517
-
4658
+ var common, option;
4518
4659
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
4519
4660
  while (1) {
4520
4661
  switch (_context2.prev = _context2.next) {
@@ -4530,77 +4671,22 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4530
4671
  type: 'mark',
4531
4672
  objectCaching: false
4532
4673
  };
4533
- eventStyle = !_this12.eventStyle.evented ? {
4534
- lockMovementX: true,
4535
- lockMovementY: true
4536
- } : {};
4537
-
4538
- if (!(_this12.isObject(v) && !v.value)) {
4539
- _context2.next = 15;
4540
- break;
4541
- }
4542
-
4543
- common.top = setTop(lineHeightImg, i, condition);
4544
- option = Object.assign({}, obj.iconStyle || {}, v || {}, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, common), eventStyle));
4545
4674
 
4546
- if (!(v !== null && v !== void 0 && v.iconClassName)) {
4547
- _context2.next = 9;
4548
- break;
4675
+ if (_this13.isObject(v) && !v.value) {
4676
+ common.top = setTop(lineHeightImg, i, condition);
4677
+ option = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, obj.iconStyle), v), common);
4678
+ pointList.push(_this13.drawMarkPoint(v, option, obj));
4679
+ } else if (v.value) {
4680
+ if (v.seq) {
4681
+ common.top = setTop(lineHeightSeq, i, condition);
4682
+ pointList.push(_this13.drawMarkPoint(v, common, obj));
4683
+ } else {
4684
+ common.top = setTop(lineHeightText, i, condition);
4685
+ pointList.push(_this13.drawMarkPoint(v, common, obj));
4686
+ }
4549
4687
  }
4550
4688
 
4551
- _context2.next = 8;
4552
- return _this12.createImage(v.iconClassName, v);
4553
-
4554
- case 8:
4555
- ele = _context2.sent;
4556
-
4557
- case 9:
4558
- _context2.next = 11;
4559
- return _this12.createPoint(v !== null && v !== void 0 && v.url || v !== null && v !== void 0 && v.iconClassName ? 'img' : v.type, Object(objectSpread2["a" /* default */])({
4560
- ele: ele || ''
4561
- }, option));
4562
-
4563
- case 11:
4564
- img = _context2.sent;
4565
- addCanvas(img);
4566
- _context2.next = 29;
4567
- break;
4568
-
4569
- case 15:
4570
- if (!v.value) {
4571
- _context2.next = 29;
4572
- break;
4573
- }
4574
-
4575
- if (!v.seq) {
4576
- _context2.next = 26;
4577
- break;
4578
- }
4579
-
4580
- common.top = setTop(lineHeightSeq, i, condition); // 标记增加序号
4581
-
4582
- _context2.next = 20;
4583
- return _this12.createPoint('circle', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, common), {}, {
4584
- radius: 5,
4585
- strokeWidth: 1,
4586
- stroke: '#000',
4587
- fill: 'transparent'
4588
- }, ((_obj$seqStyle2 = obj.seqStyle) === null || _obj$seqStyle2 === void 0 ? void 0 : _obj$seqStyle2.circle) || {}));
4589
-
4590
- case 20:
4591
- circle = _context2.sent;
4592
- text = new _this12.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.textStyle), common), ((_obj$seqStyle3 = obj.seqStyle) === null || _obj$seqStyle3 === void 0 ? void 0 : _obj$seqStyle3.text) || {}));
4593
- group = new _this12.fabric.Group([circle, text], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, common), eventStyle));
4594
- addCanvas(group);
4595
- _context2.next = 29;
4596
- break;
4597
-
4598
- case 26:
4599
- common.top = setTop(lineHeightText, i, condition);
4600
- _text = new _this12.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.textStyle), obj.style), common), eventStyle));
4601
- addCanvas(_text);
4602
-
4603
- case 29:
4689
+ case 2:
4604
4690
  case "end":
4605
4691
  return _context2.stop();
4606
4692
  }
@@ -4612,30 +4698,129 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4612
4698
  return _ref3.apply(this, arguments);
4613
4699
  };
4614
4700
  }());
4701
+ Promise.all(pointList).then(function (res) {
4702
+ var _this13$canvas;
4703
+
4704
+ return (_this13$canvas = _this13.canvas).add.apply(_this13$canvas, Object(toConsumableArray["a" /* default */])(res));
4705
+ });
4615
4706
  }
4616
- }); // this.canvas.add(...textList);
4707
+ });
4708
+ },
4709
+ drawMarkPoint: function drawMarkPoint(v, option, obj) {
4710
+ var _this14 = this;
4711
+
4712
+ return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
4713
+ var point, eventStyle, ele, _obj$seqStyle2, _obj$seqStyle3, circle, text;
4714
+
4715
+ return regeneratorRuntime.wrap(function _callee3$(_context3) {
4716
+ while (1) {
4717
+ switch (_context3.prev = _context3.next) {
4718
+ case 0:
4719
+ eventStyle = !_this14.eventStyle.evented ? {
4720
+ lockMovementX: true,
4721
+ lockMovementY: true
4722
+ } : {};
4723
+
4724
+ if (!(_this14.isObject(v) && !v.value)) {
4725
+ _context3.next = 11;
4726
+ break;
4727
+ }
4728
+
4729
+ if (!(v !== null && v !== void 0 && v.iconClassName)) {
4730
+ _context3.next = 6;
4731
+ break;
4732
+ }
4733
+
4734
+ _context3.next = 5;
4735
+ return _this14.createImage(v.iconClassName, v);
4736
+
4737
+ case 5:
4738
+ ele = _context3.sent;
4739
+
4740
+ case 6:
4741
+ _context3.next = 8;
4742
+ return _this14.createPoint(v !== null && v !== void 0 && v.url || v !== null && v !== void 0 && v.iconClassName ? 'img' : v.type, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
4743
+ ele: ele || ''
4744
+ }, option), eventStyle));
4745
+
4746
+ case 8:
4747
+ point = _context3.sent;
4748
+ _context3.next = 25;
4749
+ break;
4750
+
4751
+ case 11:
4752
+ if (!v.value) {
4753
+ _context3.next = 25;
4754
+ break;
4755
+ }
4756
+
4757
+ if (!v.seq) {
4758
+ _context3.next = 22;
4759
+ break;
4760
+ }
4761
+
4762
+ _context3.next = 15;
4763
+ return _this14.createPoint('circle', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, option), {}, {
4764
+ radius: 5,
4765
+ strokeWidth: 1,
4766
+ stroke: '#000',
4767
+ fill: 'transparent'
4768
+ }, ((_obj$seqStyle2 = obj.seqStyle) === null || _obj$seqStyle2 === void 0 ? void 0 : _obj$seqStyle2.circle) || {}));
4769
+
4770
+ case 15:
4771
+ circle = _context3.sent;
4772
+ text = new _this14.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.textStyle), option), ((_obj$seqStyle3 = obj.seqStyle) === null || _obj$seqStyle3 === void 0 ? void 0 : _obj$seqStyle3.text) || {}));
4773
+ _context3.next = 19;
4774
+ return new _this14.fabric.Group([circle, text], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, option), eventStyle));
4775
+
4776
+ case 19:
4777
+ point = _context3.sent;
4778
+ _context3.next = 25;
4779
+ break;
4780
+
4781
+ case 22:
4782
+ _context3.next = 24;
4783
+ return new _this14.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.textStyle), obj.style), option), eventStyle));
4784
+
4785
+ case 24:
4786
+ point = _context3.sent;
4787
+
4788
+ case 25:
4789
+ point.hasControls = point.hasBorders = false;
4790
+
4791
+ _this14.pointEvent(point);
4792
+
4793
+ return _context3.abrupt("return", point);
4794
+
4795
+ case 28:
4796
+ case "end":
4797
+ return _context3.stop();
4798
+ }
4799
+ }
4800
+ }, _callee3);
4801
+ }))();
4617
4802
  },
4618
4803
  pointEvent: function pointEvent(point) {
4619
- var _this13 = this;
4804
+ var _this15 = this;
4620
4805
 
4621
4806
  this.setPopup(point); // 移动中 实时更新相关联的线的坐标
4622
4807
 
4623
4808
  if (this.eventStyle.evented) {
4624
4809
  point.on('moving', function () {
4625
- _this13.moveLimit(point); // this.canvas.renderAll();
4810
+ _this15.moveLimit(point); // this.canvas.renderAll();
4626
4811
 
4627
4812
 
4628
- _this13.showDrapPopup(point);
4813
+ _this15.showDrapPopup(point);
4629
4814
  });
4630
4815
  point.on('moved', function () {
4631
- _this13.isDropVisible = false;
4816
+ _this15.isDropVisible = false;
4632
4817
  var value = {
4633
4818
  data: point.data,
4634
4819
  oldVal: point.time,
4635
- newVal: _this13.getXValue(point.left)
4820
+ newVal: _this15.getXValue(point.left)
4636
4821
  };
4637
4822
 
4638
- _this13.$emit('markChange', value);
4823
+ _this15.$emit('markChange', value);
4639
4824
  });
4640
4825
  }
4641
4826
  },
@@ -4643,12 +4828,12 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4643
4828
  var _point$other;
4644
4829
 
4645
4830
  point.setCoords();
4646
- var _this$propItems5 = this.propItems,
4647
- originX = _this$propItems5.originX,
4648
- endX = _this$propItems5.endX,
4649
- originY = _this$propItems5.originY,
4650
- endY = _this$propItems5.endY,
4651
- markHeight = _this$propItems5.markHeight;
4831
+ var _this$propItems7 = this.propItems,
4832
+ originX = _this$propItems7.originX,
4833
+ endX = _this$propItems7.endX,
4834
+ originY = _this$propItems7.originY,
4835
+ endY = _this$propItems7.endY,
4836
+ markHeight = _this$propItems7.markHeight;
4652
4837
  var bottom = this.templateData.bottom; // 如果是起始标记,如入手术室时间
4653
4838
 
4654
4839
  if ((_point$other = point.other) !== null && _point$other !== void 0 && _point$other.isStart) {
@@ -4742,12 +4927,12 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4742
4927
  },
4743
4928
  drawLeftScaleGroup: function drawLeftScaleGroup(dataLeft) {
4744
4929
  this.drawLeftTitle(dataLeft);
4745
- var _this$propItems6 = this.propItems,
4746
- endY = _this$propItems6.endY,
4747
- markHeight = _this$propItems6.markHeight,
4748
- originX = _this$propItems6.originX,
4749
- originY = _this$propItems6.originY,
4750
- treeTableminCellWidth = _this$propItems6.treeTableminCellWidth;
4930
+ var _this$propItems8 = this.propItems,
4931
+ endY = _this$propItems8.endY,
4932
+ markHeight = _this$propItems8.markHeight,
4933
+ originX = _this$propItems8.originX,
4934
+ originY = _this$propItems8.originY,
4935
+ treeTableminCellWidth = _this$propItems8.treeTableminCellWidth;
4751
4936
  var rect = new this.fabric.Rect(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
4752
4937
  left: treeTableminCellWidth,
4753
4938
  top: originY,
@@ -4763,11 +4948,11 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4763
4948
  },
4764
4949
  drawLeftTitle: function drawLeftTitle(dataLeft) {
4765
4950
  if (dataLeft.title) {
4766
- var _this$propItems7 = this.propItems,
4767
- endY = _this$propItems7.endY,
4768
- markHeight = _this$propItems7.markHeight,
4769
- treeTableminCellWidth = _this$propItems7.treeTableminCellWidth,
4770
- originY = _this$propItems7.originY;
4951
+ var _this$propItems9 = this.propItems,
4952
+ endY = _this$propItems9.endY,
4953
+ markHeight = _this$propItems9.markHeight,
4954
+ treeTableminCellWidth = _this$propItems9.treeTableminCellWidth,
4955
+ originY = _this$propItems9.originY;
4771
4956
  this.canvas.add(this.drawTextGroup({
4772
4957
  width: treeTableminCellWidth,
4773
4958
  height: endY + markHeight - originY
@@ -4779,10 +4964,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4779
4964
  }));
4780
4965
  }
4781
4966
  }
4782
- } // render(h) {
4783
- // return this.$slots.default ? h('div', this.$slots.default) : undefined;
4784
- // }
4785
-
4967
+ }
4786
4968
  });
4787
4969
  // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=script&lang=js&
4788
4970
  /* harmony default export */ var fabric_chart_FabricTextGroupvue_type_script_lang_js_ = (FabricTextGroupvue_type_script_lang_js_);
@@ -4796,8 +4978,8 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4796
4978
 
4797
4979
  var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
4798
4980
  fabric_chart_FabricTextGroupvue_type_script_lang_js_,
4799
- FabricTextGroupvue_type_template_id_2d7ac043_render,
4800
- FabricTextGroupvue_type_template_id_2d7ac043_staticRenderFns,
4981
+ FabricTextGroupvue_type_template_id_1a9302e8_render,
4982
+ FabricTextGroupvue_type_template_id_1a9302e8_staticRenderFns,
4801
4983
  false,
4802
4984
  null,
4803
4985
  null,
@@ -4806,14 +4988,14 @@ var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
4806
4988
  )
4807
4989
 
4808
4990
  /* harmony default export */ var FabricTextGroup = (FabricTextGroup_component.exports);
4809
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7ebb9ffc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
4991
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fee42d6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
4810
4992
  var FabricScaleValuevue_type_template_id_68258044_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.show)?_c('TimeScaleValue',{attrs:{"times":_vm.timeList,"templateData":_vm.templateData}}):_vm._e()}
4811
4993
  var FabricScaleValuevue_type_template_id_68258044_staticRenderFns = []
4812
4994
 
4813
4995
 
4814
4996
  // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
4815
4997
 
4816
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7ebb9ffc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=3492877c&scoped=true&
4998
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fee42d6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=3492877c&scoped=true&
4817
4999
  var TimeScaleValuevue_type_template_id_3492877c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"}],staticClass:"c-time-scalevalue",style:({ '--left': _vm.popupStyle.left, '--top': _vm.popupStyle.top, '--height': _vm.popupStyle.height, '--width': _vm.popupStyle.width })},_vm._l((_vm.times),function(item,index){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(index % 2 == 0),expression:"index % 2 == 0"}],key:item.left,staticClass:"c-time-scalevalue-list",style:({ left: ((item.left - item.width / 2) + "px"), '--font-size': _vm.popupStyle.fontSize })},[_vm._v(" "+_vm._s(item.time)+" ")])}),0)}
4818
5000
  var TimeScaleValuevue_type_template_id_3492877c_scoped_true_staticRenderFns = []
4819
5001
 
@@ -5197,7 +5379,7 @@ var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
5197
5379
  )
5198
5380
 
5199
5381
  /* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
5200
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7ebb9ffc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=02387c68&
5382
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fee42d6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=02387c68&
5201
5383
  var FabricLinesvue_type_template_id_02387c68_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"line"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
5202
5384
  var FabricLinesvue_type_template_id_02387c68_staticRenderFns = []
5203
5385
 
@@ -6233,7 +6415,7 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
6233
6415
  hasTopTable: function hasTopTable() {
6234
6416
  var _this$templateData$to, _this$templateData$to2;
6235
6417
 
6236
- 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;
6418
+ return typeof ((_this$templateData$to = this.templateData.top) === null || _this$templateData$to === void 0 ? void 0 : _this$templateData$to.show) === 'undefined' || ((_this$templateData$to2 = this.templateData.top) === null || _this$templateData$to2 === void 0 ? void 0 : _this$templateData$to2.show);
6237
6419
  },
6238
6420
  hasTable: function hasTable() {
6239
6421
  var _this$templateData$le2, _this$templateData$le3, _this$templateData$le4, _this$templateData$ri5, _this$templateData$ri6, _this$templateData$ri7;
@@ -6320,8 +6502,8 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
6320
6502
  }));
6321
6503
  // CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=script&lang=js&
6322
6504
  /* harmony default export */ var src_FabricChartvue_type_script_lang_js_ = (FabricChartvue_type_script_lang_js_);
6323
- // EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=bbb2d972&lang=less&scoped=true&
6324
- var FabricChartvue_type_style_index_0_id_bbb2d972_lang_less_scoped_true_ = __webpack_require__("22aa");
6505
+ // EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=3aefcf44&lang=less&scoped=true&
6506
+ var FabricChartvue_type_style_index_0_id_3aefcf44_lang_less_scoped_true_ = __webpack_require__("9e71");
6325
6507
 
6326
6508
  // CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue
6327
6509
 
@@ -6338,7 +6520,7 @@ var FabricChart_component = Object(componentNormalizer["a" /* default */])(
6338
6520
  staticRenderFns,
6339
6521
  false,
6340
6522
  null,
6341
- "bbb2d972",
6523
+ "3aefcf44",
6342
6524
  null
6343
6525
 
6344
6526
  )
@@ -6569,17 +6751,6 @@ module.exports = function (iterable, unboundFunction, options) {
6569
6751
  };
6570
6752
 
6571
6753
 
6572
- /***/ }),
6573
-
6574
- /***/ "22aa":
6575
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6576
-
6577
- "use strict";
6578
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_bbb2d972_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6b68");
6579
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_bbb2d972_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_bbb2d972_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
6580
- /* unused harmony reexport * */
6581
-
6582
-
6583
6754
  /***/ }),
6584
6755
 
6585
6756
  /***/ "23cb":
@@ -7754,13 +7925,6 @@ module.exports = {
7754
7925
  };
7755
7926
 
7756
7927
 
7757
- /***/ }),
7758
-
7759
- /***/ "6b68":
7760
- /***/ (function(module, exports, __webpack_require__) {
7761
-
7762
- // extracted by mini-css-extract-plugin
7763
-
7764
7928
  /***/ }),
7765
7929
 
7766
7930
  /***/ "6b75":
@@ -8299,6 +8463,17 @@ exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attrib
8299
8463
 
8300
8464
  // extracted by mini-css-extract-plugin
8301
8465
 
8466
+ /***/ }),
8467
+
8468
+ /***/ "9e71":
8469
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8470
+
8471
+ "use strict";
8472
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_3aefcf44_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a28b");
8473
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_3aefcf44_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_3aefcf44_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
8474
+ /* unused harmony reexport * */
8475
+
8476
+
8302
8477
  /***/ }),
8303
8478
 
8304
8479
  /***/ "9ed3":
@@ -8346,6 +8521,13 @@ module.exports = function (argument) {
8346
8521
  };
8347
8522
 
8348
8523
 
8524
+ /***/ }),
8525
+
8526
+ /***/ "a28b":
8527
+ /***/ (function(module, exports, __webpack_require__) {
8528
+
8529
+ // extracted by mini-css-extract-plugin
8530
+
8349
8531
  /***/ }),
8350
8532
 
8351
8533
  /***/ "a32b":