cnhis-design-vue 2.1.62 → 2.1.64

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 (100) hide show
  1. package/CHANGELOG.md +85 -61
  2. package/es/affix/index.js +8 -8
  3. package/es/age/index.js +10 -10
  4. package/es/alert/index.js +8 -8
  5. package/es/anchor/index.js +8 -8
  6. package/es/auto-complete/index.js +8 -8
  7. package/es/avatar/index.js +8 -8
  8. package/es/back-top/index.js +8 -8
  9. package/es/badge/index.js +8 -8
  10. package/es/base/index.js +8 -8
  11. package/es/big-table/index.js +68 -68
  12. package/es/breadcrumb/index.js +8 -8
  13. package/es/button/index.js +22 -22
  14. package/es/calendar/index.js +8 -8
  15. package/es/captcha/index.js +3 -3
  16. package/es/card/index.js +8 -8
  17. package/es/carousel/index.js +8 -8
  18. package/es/cascader/index.js +8 -8
  19. package/es/checkbox/index.js +9 -9
  20. package/es/col/index.js +8 -8
  21. package/es/collapse/index.js +8 -8
  22. package/es/color-picker/index.js +1 -1
  23. package/es/comment/index.js +8 -8
  24. package/es/config-provider/index.js +8 -8
  25. package/es/date-picker/index.js +8 -8
  26. package/es/descriptions/index.js +8 -8
  27. package/es/divider/index.js +8 -8
  28. package/es/drag-layout/index.js +3 -3
  29. package/es/drawer/index.js +8 -8
  30. package/es/dropdown/index.js +8 -8
  31. package/es/editor/index.js +1 -1
  32. package/es/ellipsis/index.js +1 -1
  33. package/es/empty/index.js +8 -8
  34. package/es/fabric-chart/index.js +490 -275
  35. package/es/form/index.js +8 -8
  36. package/es/form-model/index.js +8 -8
  37. package/es/form-table/index.js +66 -66
  38. package/es/index/index.js +929 -692
  39. package/es/index/style.css +1 -1
  40. package/es/input/index.js +9 -9
  41. package/es/input-number/index.js +8 -8
  42. package/es/layout/index.js +8 -8
  43. package/es/list/index.js +8 -8
  44. package/es/locale-provider/index.js +8 -8
  45. package/es/map/index.js +9 -9
  46. package/es/mentions/index.js +8 -8
  47. package/es/menu/index.js +8 -8
  48. package/es/message/index.js +8 -8
  49. package/es/multi-chat/index.js +76 -76
  50. package/es/multi-chat-client/index.js +70 -70
  51. package/es/multi-chat-history/index.js +4 -4
  52. package/es/multi-chat-record/index.js +14 -14
  53. package/es/multi-chat-setting/index.js +22 -22
  54. package/es/multi-chat-sip/index.js +1 -1
  55. package/es/notification/index.js +8 -8
  56. package/es/page-header/index.js +8 -8
  57. package/es/pagination/index.js +8 -8
  58. package/es/popconfirm/index.js +8 -8
  59. package/es/popover/index.js +8 -8
  60. package/es/progress/index.js +8 -8
  61. package/es/radio/index.js +9 -9
  62. package/es/rate/index.js +8 -8
  63. package/es/result/index.js +8 -8
  64. package/es/row/index.js +8 -8
  65. package/es/scale-container/index.js +1 -1
  66. package/es/scale-view/index.js +27 -27
  67. package/es/select/index.js +12 -12
  68. package/es/select-label/index.js +11 -11
  69. package/es/select-person/index.js +2 -2
  70. package/es/shortcut-setter/index.js +10 -10
  71. package/es/skeleton/index.js +8 -8
  72. package/es/slider/index.js +8 -8
  73. package/es/space/index.js +8 -8
  74. package/es/spin/index.js +8 -8
  75. package/es/statistic/index.js +8 -8
  76. package/es/steps/index.js +8 -8
  77. package/es/switch/index.js +8 -8
  78. package/es/table-filter/index.js +103 -81
  79. package/es/table-filter/style.css +1 -1
  80. package/es/tabs/index.js +8 -8
  81. package/es/tag/index.js +9 -9
  82. package/es/time-picker/index.js +8 -8
  83. package/es/timeline/index.js +8 -8
  84. package/es/tooltip/index.js +8 -8
  85. package/es/transfer/index.js +8 -8
  86. package/es/tree/index.js +8 -8
  87. package/es/tree-select/index.js +8 -8
  88. package/es/upload/index.js +8 -8
  89. package/es/verification-code/index.js +2 -2
  90. package/lib/cui.common.js +871 -634
  91. package/lib/cui.umd.js +871 -634
  92. package/lib/cui.umd.min.js +11 -11
  93. package/package.json +1 -1
  94. package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +3 -3
  95. package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +20 -20
  96. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +54 -20
  97. package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +25 -24
  98. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +66 -11
  99. package/packages/table-filter/src/mixins/wordBookutils.js +36 -25
  100. package/packages/table-filter/src/quick-search/QuickSearch.vue +7 -1
@@ -295,7 +295,7 @@ var es_promise_finally = __webpack_require__("a79d");
295
295
  // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
296
296
  var es_function_name_js_ = __webpack_require__("db0a");
297
297
 
298
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3a223fa1-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=3a1ac827&scoped=true&
298
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"205b3bf6-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=3a1ac827&scoped=true&
299
299
  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),[(_vm.hasXScalevalue)?_c('fabric-text-group',_vm._g({attrs:{"templateData":_vm.templateData}},_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()],1):_vm._e()],1)}
300
300
  var staticRenderFns = []
301
301
 
@@ -308,12 +308,12 @@ var objectSpread2 = __webpack_require__("5530");
308
308
  // EXTERNAL MODULE: ./src/core/create.js
309
309
  var create = __webpack_require__("8aef");
310
310
 
311
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3a223fa1-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=42503925&
312
- var FabricCanvasvue_type_template_id_42503925_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)}
313
- var FabricCanvasvue_type_template_id_42503925_staticRenderFns = []
311
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"205b3bf6-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=98d2aa36&
312
+ var FabricCanvasvue_type_template_id_98d2aa36_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)}
313
+ var FabricCanvasvue_type_template_id_98d2aa36_staticRenderFns = []
314
314
 
315
315
 
316
- // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=42503925&
316
+ // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=98d2aa36&
317
317
 
318
318
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
319
319
  var toConsumableArray = __webpack_require__("2909");
@@ -600,9 +600,13 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
600
600
  },
601
601
  endY: function endY() {
602
602
  // 画布高度 - 底部列表高度 ,网格右下角y轴坐标值
603
- if (!this.templateData.bottom) return this.templateData.canvasHeight;
604
- var endHeight = this.templateData.bottom.height || 30;
605
- return this.canvasHeight - endHeight;
603
+ var _ref = this.templateData.bottom || {},
604
+ _ref$show = _ref.show,
605
+ show = _ref$show === void 0 ? true : _ref$show,
606
+ height = _ref.height;
607
+
608
+ if (!show || !height) return this.templateData.canvasHeight;
609
+ return this.canvasHeight - height;
606
610
  },
607
611
  xCellWidth: function xCellWidth() {
608
612
  // 水平方向网格宽度
@@ -634,9 +638,9 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
634
638
  originYTop: function originYTop() {
635
639
  var _this$templateData$to11;
636
640
 
637
- var _ref = ((_this$templateData$to11 = this.templateData.top) === null || _this$templateData$to11 === void 0 ? void 0 : _this$templateData$to11.xScalevalue) || {},
638
- _ref$layout = _ref.layout,
639
- layout = _ref$layout === void 0 ? 'center' : _ref$layout;
641
+ var _ref2 = ((_this$templateData$to11 = this.templateData.top) === null || _this$templateData$to11 === void 0 ? void 0 : _this$templateData$to11.xScalevalue) || {},
642
+ _ref2$layout = _ref2.layout,
643
+ layout = _ref2$layout === void 0 ? 'center' : _ref2$layout;
640
644
 
641
645
  return layout === 'center' ? 0 : this.spaceHeight;
642
646
  },
@@ -883,8 +887,8 @@ var componentNormalizer = __webpack_require__("2877");
883
887
 
884
888
  var component = Object(componentNormalizer["a" /* default */])(
885
889
  fabric_chart_FabricCanvasvue_type_script_lang_js_,
886
- FabricCanvasvue_type_template_id_42503925_render,
887
- FabricCanvasvue_type_template_id_42503925_staticRenderFns,
890
+ FabricCanvasvue_type_template_id_98d2aa36_render,
891
+ FabricCanvasvue_type_template_id_98d2aa36_staticRenderFns,
888
892
  false,
889
893
  null,
890
894
  null,
@@ -893,12 +897,12 @@ var component = Object(componentNormalizer["a" /* default */])(
893
897
  )
894
898
 
895
899
  /* harmony default export */ var FabricCanvas = (component.exports);
896
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3a223fa1-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=9369030e&
897
- var FabricPolylinesvue_type_template_id_9369030e_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)}
898
- var FabricPolylinesvue_type_template_id_9369030e_staticRenderFns = []
900
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"205b3bf6-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=47f12750&
901
+ var FabricPolylinesvue_type_template_id_47f12750_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)}
902
+ var FabricPolylinesvue_type_template_id_47f12750_staticRenderFns = []
899
903
 
900
904
 
901
- // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=9369030e&
905
+ // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=47f12750&
902
906
 
903
907
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
904
908
  var asyncToGenerator = __webpack_require__("1da1");
@@ -921,6 +925,9 @@ var es_string_includes_js_ = __webpack_require__("fd22");
921
925
  // EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
922
926
  var es_string_replace_js_ = __webpack_require__("6378");
923
927
 
928
+ // EXTERNAL MODULE: external "core-js/modules/es.array.filter.js"
929
+ var es_array_filter_js_ = __webpack_require__("1a89");
930
+
924
931
  // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
925
932
  var es_object_to_string_js_ = __webpack_require__("97d3");
926
933
 
@@ -930,9 +937,6 @@ var es_string_iterator_js_ = __webpack_require__("9bb5");
930
937
  // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.iterator.js"
931
938
  var web_dom_collections_iterator_js_ = __webpack_require__("1a25");
932
939
 
933
- // EXTERNAL MODULE: external "core-js/modules/es.array.filter.js"
934
- var es_array_filter_js_ = __webpack_require__("1a89");
935
-
936
940
  // EXTERNAL MODULE: external "core-js/modules/es.array.splice.js"
937
941
  var es_array_splice_js_ = __webpack_require__("f3b8");
938
942
 
@@ -1570,7 +1574,7 @@ var type_isObject = function isObject(obj) {
1570
1574
  }
1571
1575
  }
1572
1576
  });
1573
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3a223fa1-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&
1577
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"205b3bf6-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&
1574
1578
  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)])}
1575
1579
  var MouseRightClickvue_type_template_id_25d4407a_scoped_true_staticRenderFns = []
1576
1580
 
@@ -1678,7 +1682,7 @@ var MouseRightClick_component = Object(componentNormalizer["a" /* default */])(
1678
1682
  )
1679
1683
 
1680
1684
  /* harmony default export */ var MouseRightClick = (MouseRightClick_component.exports);
1681
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3a223fa1-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&
1685
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"205b3bf6-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&
1682
1686
  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)])}
1683
1687
  var DropPopupvue_type_template_id_c4db0ace_scoped_true_staticRenderFns = []
1684
1688
 
@@ -1936,7 +1940,10 @@ var rightClickNodeConnect = [{
1936
1940
  // 缓存当前可批量删除的项目线段上的点
1937
1941
  polylinePointList: [],
1938
1942
  // 缓存折线项目节点
1939
- isMovingToOtherTarget: false
1943
+ isMovingToOtherTarget: false,
1944
+ interval: null,
1945
+ flickerablePoints: [] // 记录需要闪烁的节点
1946
+
1940
1947
  };
1941
1948
  },
1942
1949
  computed: {
@@ -1968,10 +1975,12 @@ var rightClickNodeConnect = [{
1968
1975
 
1969
1976
  this.drawPolylineTitle();
1970
1977
  this.polylinePointList = [];
1978
+ this.flickerablePoints = [];
1971
1979
  this.polyline.forEach(function (polylineType, polylineTypeId) {
1972
1980
  _this3.createPolyline(polylineType, polylineTypeId);
1973
1981
  });
1974
1982
  this.eventStyle.evented && this.createEvent();
1983
+ this.setFlicker();
1975
1984
  },
1976
1985
  createEvent: function createEvent() {
1977
1986
  var _this4 = this;
@@ -2381,70 +2390,98 @@ var rightClickNodeConnect = [{
2381
2390
  var getTime = new Date(time).getTime();
2382
2391
  return getTime >= minMinute && getTime <= maxMinute;
2383
2392
  },
2393
+ // 设置节点闪烁
2394
+ setFlicker: function setFlicker() {
2395
+ var _this9 = this;
2396
+
2397
+ setTimeout(function () {
2398
+ var _this9$flickerablePoi;
2399
+
2400
+ if (_this9.interval) clearInterval(_this9.interval);
2401
+
2402
+ if ((_this9$flickerablePoi = _this9.flickerablePoints) !== null && _this9$flickerablePoi !== void 0 && _this9$flickerablePoi.length) {
2403
+ _this9.interval = setInterval(function () {
2404
+ _this9.flickerablePoints.forEach(function (o) {
2405
+ return o === null || o === void 0 ? void 0 : o.set('opacity', o.opacity === 1 ? 0.5 : 1);
2406
+ });
2407
+
2408
+ _this9.canvas.renderAll();
2409
+ }, 800);
2410
+ }
2411
+ });
2412
+ },
2384
2413
  // 创建危急值和差异值
2385
- createAttrVaule: function createAttrVaule(attr, polyline, polylineIndex, polylineType, polylineTypeId) {
2386
- var _valueObj$max,
2387
- _valueObj$max2,
2388
- _this9 = this,
2389
- _valueObj$min,
2390
- _valueObj$min2,
2414
+ createAttrVaule: function createAttrVaule(_ref2) {
2415
+ var _this10 = this,
2391
2416
  _this$canvas;
2392
2417
 
2418
+ var attr = _ref2.attr,
2419
+ polyline = _ref2.polyline,
2420
+ polylineIndex = _ref2.polylineIndex,
2421
+ polylineType = _ref2.polylineType,
2422
+ polylineTypeId = _ref2.polylineTypeId;
2393
2423
  var list = polyline.list;
2394
- var valueObj = polyline[attr] || {};
2395
- if (!valueObj.max && !valueObj.min) return;
2424
+
2425
+ var _ref3 = polyline[attr] || {},
2426
+ max = _ref3.max,
2427
+ min = _ref3.min;
2428
+
2429
+ if (!max && !min) return;
2396
2430
  var _this$propItems4 = this.propItems,
2397
2431
  originX = _this$propItems4.originX,
2398
2432
  endX = _this$propItems4.endX;
2399
- var isMax = ((_valueObj$max = valueObj.max) === null || _valueObj$max === void 0 ? void 0 : _valueObj$max.show) && ((_valueObj$max2 = valueObj.max) === null || _valueObj$max2 === void 0 ? void 0 : _valueObj$max2.value) && list.some(function (v) {
2400
- return +v.value >= +valueObj.max.value && _this9.isLimit(v.time);
2433
+ var isMax = (max === null || max === void 0 ? void 0 : max.show) && (max === null || max === void 0 ? void 0 : max.value) && list.some(function (v) {
2434
+ return +v.value >= +max.value && _this10.isLimit(v.time);
2401
2435
  });
2402
- var isMin = ((_valueObj$min = valueObj.min) === null || _valueObj$min === void 0 ? void 0 : _valueObj$min.show) && ((_valueObj$min2 = valueObj.min) === null || _valueObj$min2 === void 0 ? void 0 : _valueObj$min2.value) && list.some(function (v) {
2403
- return +v.value <= +valueObj.min.value && _this9.isLimit(v.time);
2436
+ var isMin = (min === null || min === void 0 ? void 0 : min.show) && (min === null || min === void 0 ? void 0 : min.value) && list.some(function (v) {
2437
+ return +v.value <= +min.value && _this10.isLimit(v.time);
2404
2438
  });
2405
2439
  var lines = [];
2406
2440
 
2407
- var drawLine = function drawLine(_ref2) {
2408
- var value = _ref2.value,
2409
- lineStyle = _ref2.lineStyle;
2441
+ var drawLine = function drawLine(_ref4) {
2442
+ var value = _ref4.value,
2443
+ lineStyle = _ref4.lineStyle;
2410
2444
 
2411
- var top = _this9.cumputedY(polylineType, +value);
2445
+ var top = _this10.cumputedY(polylineType, +value);
2412
2446
 
2413
- return _this9.drawLine([originX, top, endX, top], Object(objectSpread2["a" /* default */])({
2447
+ return _this10.drawLine([originX, top, endX, top], Object(objectSpread2["a" /* default */])({
2414
2448
  polylineIndex: polylineIndex,
2415
2449
  lineIndex: 0,
2416
2450
  polylineTypeId: polylineTypeId
2417
2451
  }, lineStyle || defaultVaule.criticalStyle));
2418
2452
  };
2419
2453
 
2420
- var drawText = function drawText(_ref3, top) {
2421
- var name = _ref3.name,
2422
- nameStyle = _ref3.nameStyle;
2423
- return new _this9.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), {}, {
2454
+ var drawText = function drawText(_ref5, top) {
2455
+ var name = _ref5.name,
2456
+ nameStyle = _ref5.nameStyle;
2457
+ 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), {}, {
2424
2458
  originY: 'bottom',
2425
2459
  left: originX + 5,
2426
2460
  top: top - 5
2427
2461
  }));
2428
2462
  };
2429
2463
 
2430
- if (isMax) {
2431
- var line = drawLine(valueObj.max);
2432
- var text = drawText(valueObj.max, line.top);
2464
+ var isDraw = function isDraw(isMaxOrMin, maxOrMin) {
2465
+ return isMaxOrMin && (!(maxOrMin !== null && maxOrMin !== void 0 && maxOrMin.flickerable) || attr !== 'critical');
2466
+ };
2467
+
2468
+ if (isDraw(isMax, max)) {
2469
+ var line = drawLine(max);
2470
+ var text = drawText(max, line.top);
2433
2471
  line.text = text;
2434
2472
  lines.push(line, text);
2435
2473
  }
2436
2474
 
2437
- if (isMin) {
2438
- var _line = drawLine(valueObj.min);
2475
+ if (isDraw(isMin, min)) {
2476
+ var _line = drawLine(min);
2439
2477
 
2440
- var _text = drawText(valueObj.min, _line.top);
2478
+ var _text = drawText(min, _line.top);
2441
2479
 
2442
2480
  _line.text = _text;
2443
2481
  lines.push(_line, _text);
2444
2482
  }
2445
2483
 
2446
- (_this$canvas = this.canvas).add.apply(_this$canvas, lines); // this.canvas.renderAll();
2447
-
2484
+ (_this$canvas = this.canvas).add.apply(_this$canvas, lines);
2448
2485
  },
2449
2486
 
2450
2487
  /**
@@ -2456,15 +2493,18 @@ var rightClickNodeConnect = [{
2456
2493
  * @param {polylineIndex} 当前折线 index
2457
2494
  */
2458
2495
  drawPolyline: function drawPolyline(polyline, polylineIndex, polylineType, polylineTypeId) {
2459
- var _this10 = this;
2496
+ var _this11 = this;
2460
2497
 
2461
2498
  var _this$propItems5 = this.propItems,
2462
2499
  originY = _this$propItems5.originY,
2463
2500
  endY = _this$propItems5.endY;
2464
2501
  var pointAttr = polyline.pointAttr,
2465
- lineAttr = polyline.lineAttr;
2502
+ lineAttr = polyline.lineAttr,
2503
+ _polyline$list = polyline.list,
2504
+ list = _polyline$list === void 0 ? [] : _polyline$list,
2505
+ _polyline$critical = polyline.critical,
2506
+ critical = _polyline$critical === void 0 ? {} : _polyline$critical;
2466
2507
  this._iconClassName = polyline.type === 'img' && pointAttr.iconClassName ? pointAttr.iconClassName : '';
2467
- var list = polyline.list;
2468
2508
  var pointList = [];
2469
2509
  var lineList = [];
2470
2510
 
@@ -2489,6 +2529,9 @@ var rightClickNodeConnect = [{
2489
2529
  };
2490
2530
  }
2491
2531
 
2532
+ this.flickerablePoints = this.flickerablePoints.filter(function (point) {
2533
+ return point.polylineTypeId !== polylineTypeId && point.polylineIndex !== polylineIndex;
2534
+ });
2492
2535
  list.forEach(function (linePoints, index) {
2493
2536
  // 当前点
2494
2537
  var _getPointer = getPointer(linePoints),
@@ -2504,7 +2547,7 @@ var rightClickNodeConnect = [{
2504
2547
  var line;
2505
2548
  var point;
2506
2549
  var previousLine;
2507
- line = points && nextPoint ? _this10.drawLine([].concat(Object(toConsumableArray["a" /* default */])(points), Object(toConsumableArray["a" /* default */])(nextPoint)), Object(objectSpread2["a" /* default */])({
2550
+ line = points && nextPoint ? _this11.drawLine([].concat(Object(toConsumableArray["a" /* default */])(points), Object(toConsumableArray["a" /* default */])(nextPoint)), Object(objectSpread2["a" /* default */])({
2508
2551
  polylineIndex: polylineIndex,
2509
2552
  polylineTypeId: polylineTypeId,
2510
2553
  lineIndex: index
@@ -2523,18 +2566,19 @@ var rightClickNodeConnect = [{
2523
2566
  Object.assign(pointOthers, {
2524
2567
  originLeft: points[0],
2525
2568
  originTop: points[1],
2526
- time: linePoints.time
2569
+ time: linePoints.time,
2570
+ __value: linePoints.value
2527
2571
  });
2528
- point = previousLine ? _this10.drawPoint.apply(_this10, Object(toConsumableArray["a" /* default */])(points).concat([previousLine, line, polyline.type, pointOthers, isInit])) : _this10.drawPoint.apply(_this10, Object(toConsumableArray["a" /* default */])(points).concat([null, line, polyline.type, pointOthers, isInit]));
2572
+ 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]));
2529
2573
  }
2530
2574
 
2531
2575
  lineList.push(line);
2532
2576
  point && pointList.push(point);
2533
2577
  });
2534
2578
  Promise.all(pointList).then(function (res) {
2535
- var _this10$canvas;
2579
+ var _this11$canvas;
2536
2580
 
2537
- var polylineObj = _this10.polylinePointList.find(function (v) {
2581
+ var polylineObj = _this11.polylinePointList.find(function (v) {
2538
2582
  return v.polylineTypeId == polylineTypeId && v.polylineIndex == polylineIndex;
2539
2583
  });
2540
2584
 
@@ -2549,7 +2593,7 @@ var rightClickNodeConnect = [{
2549
2593
  });
2550
2594
  polylineObj.pointerList = pointerList;
2551
2595
  } else {
2552
- _this10.polylinePointList.push({
2596
+ _this11.polylinePointList.push({
2553
2597
  polylineTypeId: polylineTypeId,
2554
2598
  polylineIndex: polylineIndex,
2555
2599
  pointerList: pointerList,
@@ -2573,11 +2617,45 @@ var rightClickNodeConnect = [{
2573
2617
  return v;
2574
2618
  });
2575
2619
 
2576
- (_this10$canvas = _this10.canvas).add.apply(_this10$canvas, Object(toConsumableArray["a" /* default */])(lineList).concat(Object(toConsumableArray["a" /* default */])(res))); // this.canvas.requestRenderAll();
2620
+ (_this11$canvas = _this11.canvas).add.apply(_this11$canvas, Object(toConsumableArray["a" /* default */])(lineList).concat(Object(toConsumableArray["a" /* default */])(res))); // 缓存需要闪烁的节点
2621
+
2622
+
2623
+ var max = critical.max,
2624
+ min = critical.min;
2625
+
2626
+ if (max !== null && max !== void 0 && max.flickerable || min !== null && min !== void 0 && min.flickerable) {
2627
+ var maxVal = max === null || max === void 0 ? void 0 : max.value;
2628
+ var minVal = min === null || min === void 0 ? void 0 : min.value;
2629
+
2630
+ if (maxVal && max !== null && max !== void 0 && max.flickerable) {
2631
+ var _this11$flickerablePo;
2632
+
2633
+ (_this11$flickerablePo = _this11.flickerablePoints).push.apply(_this11$flickerablePo, Object(toConsumableArray["a" /* default */])(res.filter(function (point) {
2634
+ return +point.__value >= +maxVal;
2635
+ })));
2636
+ }
2577
2637
 
2638
+ if (minVal && min !== null && min !== void 0 && min.flickerable) {
2639
+ var _this11$flickerablePo2;
2640
+
2641
+ (_this11$flickerablePo2 = _this11.flickerablePoints).push.apply(_this11$flickerablePo2, Object(toConsumableArray["a" /* default */])(res.filter(function (point) {
2642
+ return +point.__value <= +minVal;
2643
+ })));
2644
+ }
2645
+ }
2578
2646
  });
2579
- this.createAttrVaule('critical', polyline, polylineIndex, polylineType, polylineTypeId);
2580
- this.createAttrVaule('diffValue', polyline, polylineIndex, polylineType, polylineTypeId);
2647
+ var params = {
2648
+ polyline: polyline,
2649
+ polylineIndex: polylineIndex,
2650
+ polylineType: polylineType,
2651
+ polylineTypeId: polylineTypeId
2652
+ };
2653
+ this.createAttrVaule(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, params), {}, {
2654
+ attr: 'critical'
2655
+ }));
2656
+ this.createAttrVaule(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, params), {}, {
2657
+ attr: 'diffValue'
2658
+ }));
2581
2659
  },
2582
2660
  // 计算y轴坐标
2583
2661
  cumputedY: function cumputedY(polylineType, linePointY) {
@@ -2599,7 +2677,7 @@ var rightClickNodeConnect = [{
2599
2677
  * @param {others} 参数 polylineIndex | pointIndex | ...polyline.pointAttr
2600
2678
  */
2601
2679
  drawPoint: function drawPoint(left, top, line1, line2, type, others, isInit) {
2602
- var _this11 = this;
2680
+ var _this12 = this;
2603
2681
 
2604
2682
  return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
2605
2683
  var pointId, ele, point;
@@ -2608,7 +2686,7 @@ var rightClickNodeConnect = [{
2608
2686
  switch (_context2.prev = _context2.next) {
2609
2687
  case 0:
2610
2688
  pointId = "".concat(others.polylineTypeId, "_").concat(others.polylineIndex, "_").concat(others.pointIndex, "_polylinePoint_").concat(new Date().getTime());
2611
- _context2.t0 = _this11._iconClassName;
2689
+ _context2.t0 = _this12._iconClassName;
2612
2690
 
2613
2691
  if (!_context2.t0) {
2614
2692
  _context2.next = 6;
@@ -2616,7 +2694,7 @@ var rightClickNodeConnect = [{
2616
2694
  }
2617
2695
 
2618
2696
  _context2.next = 5;
2619
- return _this11.createImage(_this11._iconClassName, others);
2697
+ return _this12.createImage(_this12._iconClassName, others);
2620
2698
 
2621
2699
  case 5:
2622
2700
  _context2.t0 = _context2.sent;
@@ -2624,12 +2702,12 @@ var rightClickNodeConnect = [{
2624
2702
  case 6:
2625
2703
  ele = _context2.t0;
2626
2704
  _context2.next = 9;
2627
- return _this11.createPoint(type, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
2705
+ return _this12.createPoint(type, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
2628
2706
  id: pointId,
2629
2707
  left: left,
2630
2708
  top: top,
2631
2709
  ele: ele || ''
2632
- }, defaultVaule.pointStyle), others), !_this11.eventStyle.evented ? {
2710
+ }, defaultVaule.pointStyle), others), !_this12.eventStyle.evented ? {
2633
2711
  lockMovementX: true,
2634
2712
  lockMovementY: true
2635
2713
  } : {}));
@@ -2640,33 +2718,33 @@ var rightClickNodeConnect = [{
2640
2718
  line1 && (point.line1 = line1);
2641
2719
  line2 && (point.line2 = line2);
2642
2720
  point.on('mouseover', function () {
2643
- _this11.showDrapPopup(point);
2721
+ _this12.showDrapPopup(point);
2644
2722
 
2645
- _this11.pointToFront(point);
2723
+ _this12.pointToFront(point);
2646
2724
  });
2647
2725
  point.on('mouseout', function () {
2648
- _this11.isDropVisible = false;
2726
+ _this12.isDropVisible = false;
2649
2727
  }); // 折线点移动中 实时更新相关联的线的坐标
2650
2728
 
2651
- if (_this11.eventStyle.evented) {
2729
+ if (_this12.eventStyle.evented) {
2652
2730
  point.on('moving', function () {
2653
- _this11.pointMoveLimit(point, false);
2731
+ _this12.pointMoveLimit(point, false);
2654
2732
 
2655
- _this11.pointMoveUpdateLine(point);
2733
+ _this12.pointMoveUpdateLine(point);
2656
2734
 
2657
- _this11.addPoint(point); // this.canvas.renderAll();
2735
+ _this12.addPoint(point); // this.canvas.renderAll();
2658
2736
 
2659
2737
 
2660
- _this11.showDrapPopup(point);
2738
+ _this12.showDrapPopup(point);
2661
2739
  }); // 折线点停止拖拽后 更新polyline中对应的坐标
2662
2740
 
2663
2741
  point.on('moved', function () {
2664
2742
  if (point && point.id.includes('_polylinePoint_')) {
2665
- _this11.isDropVisible = false;
2743
+ _this12.isDropVisible = false;
2666
2744
 
2667
- _this11.setEmitFunction(point);
2745
+ _this12.setEmitFunction(point);
2668
2746
 
2669
- _this11.addPointObjList = [];
2747
+ _this12.addPointObjList = [];
2670
2748
  }
2671
2749
  });
2672
2750
  point.on('mouseup', function (event) {
@@ -2675,13 +2753,13 @@ var rightClickNodeConnect = [{
2675
2753
 
2676
2754
  if (button == 1 && isClick) {
2677
2755
  // 可配置批量删除当前项目上的点了
2678
- _this11.currentDelPoint = point;
2756
+ _this12.currentDelPoint = point;
2679
2757
  }
2680
2758
  });
2681
2759
  } // 超出表格最高或最低值则需要触发pointChange事件并且不能更新视图,否则连接节点判断不会成功
2682
2760
 
2683
2761
 
2684
- isInit && _this11.setEmitFunction(point, isInit);
2762
+ isInit && _this12.setEmitFunction(point, isInit);
2685
2763
  return _context2.abrupt("return", point);
2686
2764
 
2687
2765
  case 18:
@@ -2694,7 +2772,7 @@ var rightClickNodeConnect = [{
2694
2772
  },
2695
2773
  // 拖动停止后 设置回调触发方法
2696
2774
  setEmitFunction: function setEmitFunction(point) {
2697
- var _this12 = this;
2775
+ var _this13 = this;
2698
2776
 
2699
2777
  var isInit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
2700
2778
  var operable = this.propItems.operable;
@@ -2732,7 +2810,7 @@ var rightClickNodeConnect = [{
2732
2810
  } else {
2733
2811
  this.$nextTick(function () {
2734
2812
  // 拖动新增节点时默认所有节点可删除
2735
- _this12.currentDelPoint = null;
2813
+ _this13.currentDelPoint = null;
2736
2814
  });
2737
2815
  var lastPoint = this.addPointList[this.addPointList.length - 1];
2738
2816
  var position = this.polyline[point.polylineTypeId].position;
@@ -2760,7 +2838,7 @@ var rightClickNodeConnect = [{
2760
2838
  this.addPointList.forEach(function (v) {
2761
2839
  return Object.assign(v, {
2762
2840
  isConcat: true,
2763
- concatIndex: _this12._concatIndex
2841
+ concatIndex: _this13._concatIndex
2764
2842
  });
2765
2843
  });
2766
2844
  } else if (point.line2 || point.nextPoint && lastPoint.left >= point.nextPoint.left) {
@@ -2798,7 +2876,7 @@ var rightClickNodeConnect = [{
2798
2876
  },
2799
2877
  // 纠正线段坐标
2800
2878
  setLinePatch: function setLinePatch(point) {
2801
- var _this13 = this;
2879
+ var _this14 = this;
2802
2880
 
2803
2881
  var originLeft = point.originLeft,
2804
2882
  originTop = point.originTop;
@@ -2806,13 +2884,13 @@ var rightClickNodeConnect = [{
2806
2884
  var _loop = function _loop(i, len) {
2807
2885
  var _point$prePoint$left, _point$prePoint, _point$prePoint$top, _point$prePoint2, _currentPointObj$line;
2808
2886
 
2809
- var currentPoint = _this13.addPointList[i];
2810
- var prevPoint = _this13.addPointList[i - 1] || {
2887
+ var currentPoint = _this14.addPointList[i];
2888
+ var prevPoint = _this14.addPointList[i - 1] || {
2811
2889
  left: (_point$prePoint$left = (_point$prePoint = point.prePoint) === null || _point$prePoint === void 0 ? void 0 : _point$prePoint.left) !== null && _point$prePoint$left !== void 0 ? _point$prePoint$left : originLeft,
2812
2890
  top: (_point$prePoint$top = (_point$prePoint2 = point.prePoint) === null || _point$prePoint2 === void 0 ? void 0 : _point$prePoint2.top) !== null && _point$prePoint$top !== void 0 ? _point$prePoint$top : originTop
2813
2891
  };
2814
2892
 
2815
- var currentPointObj = _this13.addPointObjList.find(function (obj) {
2893
+ var currentPointObj = _this14.addPointObjList.find(function (obj) {
2816
2894
  return obj.left === currentPoint.left;
2817
2895
  });
2818
2896
 
@@ -2833,7 +2911,7 @@ var rightClickNodeConnect = [{
2833
2911
  // 检查批量新增拖动过程中是否存在漏点的情况
2834
2912
  checkPoints: function checkPoints(point) {
2835
2913
  var _this$addPointList2,
2836
- _this14 = this;
2914
+ _this15 = this;
2837
2915
 
2838
2916
  var originLeft = point.originLeft,
2839
2917
  originTop = point.originTop,
@@ -2847,9 +2925,9 @@ var rightClickNodeConnect = [{
2847
2925
  for (var k = 0; k <= PointLens; k++) {
2848
2926
  if (k > 0) {
2849
2927
  (function () {
2850
- var curLeft = originLeft + _this14.spaceWidth * k; // 判断this.addPointList中的left是否包含curLeft,不包含就说明是漏了
2928
+ var curLeft = originLeft + _this15.spaceWidth * k; // 判断this.addPointList中的left是否包含curLeft,不包含就说明是漏了
2851
2929
 
2852
- var hasPoint = _this14.addPointList.some(function (p) {
2930
+ var hasPoint = _this15.addPointList.some(function (p) {
2853
2931
  return Math.abs(p.left - curLeft) <= 0.001;
2854
2932
  }); // const hasPoint = this.addPointList.some(v => v.left == curLeft);
2855
2933
 
@@ -2857,7 +2935,7 @@ var rightClickNodeConnect = [{
2857
2935
  if (!hasPoint) {
2858
2936
  var index;
2859
2937
 
2860
- var pointObj = _this14.addPointList.find(function (v, i) {
2938
+ var pointObj = _this15.addPointList.find(function (v, i) {
2861
2939
  if (v.left > curLeft) {
2862
2940
  index = i;
2863
2941
  }
@@ -2867,20 +2945,20 @@ var rightClickNodeConnect = [{
2867
2945
 
2868
2946
  if (pointObj) {
2869
2947
  var cloneObj = JSON.parse(JSON.stringify(pointObj));
2870
- var prePoint = _this14.addPointList[index - 1] || {
2948
+ var prePoint = _this15.addPointList[index - 1] || {
2871
2949
  left: originLeft,
2872
2950
  top: originTop
2873
2951
  };
2874
- var len = ~~((pointObj.left - (curLeft - _this14.spaceWidth)) / _this14.spaceWidth);
2952
+ var len = ~~((pointObj.left - (curLeft - _this15.spaceWidth)) / _this15.spaceWidth);
2875
2953
  var spaceHeight = (pointObj.top - prePoint.top) / len;
2876
2954
  cloneObj.top = prePoint.top + spaceHeight;
2877
- cloneObj.value.time = _this14.getXValue(curLeft);
2878
- cloneObj.value.value = _this14.getYValue(position, cloneObj.top);
2955
+ cloneObj.value.time = _this15.getXValue(curLeft);
2956
+ cloneObj.value.value = _this15.getYValue(position, cloneObj.top);
2879
2957
  cloneObj.left = curLeft;
2880
2958
 
2881
- _this14.addPointList.splice(index, 0, cloneObj);
2959
+ _this15.addPointList.splice(index, 0, cloneObj);
2882
2960
 
2883
- _this14.clonePoint(point, [prePoint.left, prePoint.top, cloneObj.left, cloneObj.top]);
2961
+ _this15.clonePoint(point, [prePoint.left, prePoint.top, cloneObj.left, cloneObj.top]);
2884
2962
  }
2885
2963
  }
2886
2964
  })();
@@ -3056,7 +3134,7 @@ var rightClickNodeConnect = [{
3056
3134
  }
3057
3135
  },
3058
3136
  clonePoint: function clonePoint(point, points) {
3059
- var _this15 = this;
3137
+ var _this16 = this;
3060
3138
 
3061
3139
  var evented, selectable, lineIndex, polylineIndex, lineAttr, polylineTypeId;
3062
3140
  evented = selectable = false;
@@ -3080,7 +3158,7 @@ var rightClickNodeConnect = [{
3080
3158
  clonedObj.hasControls = clonedObj.hasBorders = false;
3081
3159
  point.prePoints = [point.left, point.top];
3082
3160
 
3083
- var line = _this15.drawLine(Object(toConsumableArray["a" /* default */])(points), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
3161
+ var line = _this16.drawLine(Object(toConsumableArray["a" /* default */])(points), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
3084
3162
  evented: evented,
3085
3163
  selectable: selectable
3086
3164
  }, lineAttr), {}, {
@@ -3091,13 +3169,13 @@ var rightClickNodeConnect = [{
3091
3169
 
3092
3170
  clonedObj.line1 = line;
3093
3171
 
3094
- _this15.canvas.sendBackwards(line);
3172
+ _this16.canvas.sendBackwards(line);
3095
3173
 
3096
3174
  clonedObj.bringForward();
3097
3175
 
3098
- _this15.canvas.add(clonedObj);
3176
+ _this16.canvas.add(clonedObj);
3099
3177
 
3100
- _this15.addPointObjList.push(clonedObj); // resolve(clonedObj);
3178
+ _this16.addPointObjList.push(clonedObj); // resolve(clonedObj);
3101
3179
 
3102
3180
  }); // });
3103
3181
  },
@@ -3215,7 +3293,7 @@ var rightClickNodeConnect = [{
3215
3293
  },
3216
3294
  // 打开右键菜单
3217
3295
  openRightModal: function openRightModal(event) {
3218
- var _this16 = this;
3296
+ var _this17 = this;
3219
3297
 
3220
3298
  this.rightPos = {
3221
3299
  clientX: event.e.clientX || event.e.pageX,
@@ -3226,10 +3304,10 @@ var rightClickNodeConnect = [{
3226
3304
  var id = target ? target.id : '';
3227
3305
  this.$nextTick(function () {
3228
3306
  if (id && id.includes('_polylinePoint_')) {
3229
- _this16._currentPoint = target;
3307
+ _this17._currentPoint = target;
3230
3308
  var nodeConnect = [];
3231
3309
 
3232
- if (_this16.propItems.operable.connect) {
3310
+ if (_this17.propItems.operable.connect) {
3233
3311
  if (!target.line2 && target.nextPoint) {
3234
3312
  nodeConnect = rightClickNodeConnect.slice(0, 1);
3235
3313
  }
@@ -3243,22 +3321,22 @@ var rightClickNodeConnect = [{
3243
3321
  }
3244
3322
  }
3245
3323
 
3246
- _this16.rightClickNode = Object.freeze(rightClickNode.slice(0, 1).concat(nodeConnect).concat(rightClickNode.slice(-1)));
3247
- _this16.isRightVisible = true;
3324
+ _this17.rightClickNode = Object.freeze(rightClickNode.slice(0, 1).concat(nodeConnect).concat(rightClickNode.slice(-1)));
3325
+ _this17.isRightVisible = true;
3248
3326
  } else if (!id) {
3249
- var operable = _this16.propItems.operable;
3250
- _this16._currentPoint = null;
3251
- _this16.rightClickNode = Object.freeze(operable.set ? rightClickNode.slice(0, 2) : rightClickNode.slice(0, 1));
3252
- _this16.isRightVisible = true;
3327
+ var operable = _this17.propItems.operable;
3328
+ _this17._currentPoint = null;
3329
+ _this17.rightClickNode = Object.freeze(operable.set ? rightClickNode.slice(0, 2) : rightClickNode.slice(0, 1));
3330
+ _this17.isRightVisible = true;
3253
3331
  }
3254
3332
  });
3255
3333
  },
3256
3334
  // 关闭右键菜单,打开添加节点弹窗表单
3257
- handleRightClick: function handleRightClick(_ref4) {
3335
+ handleRightClick: function handleRightClick(_ref6) {
3258
3336
  var _this$_currentPoint;
3259
3337
 
3260
- var type = _ref4.type,
3261
- name = _ref4.name;
3338
+ var type = _ref6.type,
3339
+ name = _ref6.name;
3262
3340
  this.isRightVisible = false;
3263
3341
  var id = (_this$_currentPoint = this._currentPoint) === null || _this$_currentPoint === void 0 ? void 0 : _this$_currentPoint.id;
3264
3342
  var _this$_active = this._active,
@@ -3317,16 +3395,16 @@ var rightClickNodeConnect = [{
3317
3395
  // 将当条线段以及点层级置顶
3318
3396
  // 线段不能先置顶,会挡住其他线段上的点
3319
3397
  pointToFront: function pointToFront(point) {
3320
- var _this17 = this;
3398
+ var _this18 = this;
3321
3399
 
3322
3400
  this.canvas.forEachObject(function (obj) {
3323
- if (_this17.isOnePolyLine(obj, point.polylineTypeId, point.polylineIndex)) {
3324
- _this17.canvas.bringToFront(obj);
3401
+ if (_this18.isOnePolyLine(obj, point.polylineTypeId, point.polylineIndex)) {
3402
+ _this18.canvas.bringToFront(obj);
3325
3403
  }
3326
3404
  });
3327
3405
  },
3328
3406
  removePolyline: function removePolyline(id, left, position, polylineIndex) {
3329
- var _this18 = this;
3407
+ var _this19 = this;
3330
3408
 
3331
3409
  // 根据id或者idClone删除
3332
3410
  if (id) {
@@ -3335,9 +3413,9 @@ var rightClickNodeConnect = [{
3335
3413
  if (pointId === 'idClone') {
3336
3414
  this.addPointObjList.forEach(function (obj) {
3337
3415
  if (obj.left >= left) {
3338
- _this18.canvas.remove(obj);
3416
+ _this19.canvas.remove(obj);
3339
3417
 
3340
- obj.line1 && _this18.canvas.remove(obj.line1);
3418
+ obj.line1 && _this19.canvas.remove(obj.line1);
3341
3419
  }
3342
3420
  });
3343
3421
  this.addPointObjList = this.addPointObjList.filter(function (obj) {
@@ -3351,9 +3429,9 @@ var rightClickNodeConnect = [{
3351
3429
  if (point && point.length > 0) {
3352
3430
  point.forEach(function (v) {
3353
3431
  if (!left) {
3354
- _this18.canvas.remove(v);
3432
+ _this19.canvas.remove(v);
3355
3433
 
3356
- v.line1 && _this18.canvas.remove(v.line1);
3434
+ v.line1 && _this19.canvas.remove(v.line1);
3357
3435
  }
3358
3436
  });
3359
3437
  }
@@ -3368,12 +3446,12 @@ var rightClickNodeConnect = [{
3368
3446
  return v.position === position;
3369
3447
  });
3370
3448
  this.canvas.forEachObject(function (obj) {
3371
- if (_this18.isOnePolyLine(obj, polylineTypeId, polylineIndex)) {
3372
- obj.text && _this18.canvas.remove(obj.text);
3373
- obj.line1 && _this18.canvas.remove(obj.line1);
3374
- obj.line2 && _this18.canvas.remove(obj.line2);
3449
+ if (_this19.isOnePolyLine(obj, polylineTypeId, polylineIndex)) {
3450
+ obj.text && _this19.canvas.remove(obj.text);
3451
+ obj.line1 && _this19.canvas.remove(obj.line1);
3452
+ obj.line2 && _this19.canvas.remove(obj.line2);
3375
3453
 
3376
- _this18.canvas.remove(obj);
3454
+ _this19.canvas.remove(obj);
3377
3455
  }
3378
3456
  });
3379
3457
  return;
@@ -3382,9 +3460,9 @@ var rightClickNodeConnect = [{
3382
3460
 
3383
3461
  this.canvas.forEachObject(function (obj) {
3384
3462
  if (obj.id && /_polyline(Point|Line)_/.test(obj.id) && !obj.id.includes('isTitle')) {
3385
- obj.text && _this18.canvas.remove(obj.text);
3463
+ obj.text && _this19.canvas.remove(obj.text);
3386
3464
 
3387
- _this18.canvas.remove(obj);
3465
+ _this19.canvas.remove(obj);
3388
3466
  }
3389
3467
  });
3390
3468
  },
@@ -3395,7 +3473,7 @@ var rightClickNodeConnect = [{
3395
3473
  }
3396
3474
  },
3397
3475
  repaintPolyline: function repaintPolyline(position, dadaIndex) {
3398
- var _this19 = this;
3476
+ var _this20 = this;
3399
3477
 
3400
3478
  if (arguments.length < 2) {
3401
3479
  if (this.polyline.length) {
@@ -3403,8 +3481,9 @@ var rightClickNodeConnect = [{
3403
3481
  }
3404
3482
 
3405
3483
  this.polylinePointList = [];
3484
+ this.flickerablePoints = [];
3406
3485
  this.polyline.forEach(function (polylineType, polylineTypeId) {
3407
- _this19.createPolyline(polylineType, polylineTypeId);
3486
+ _this20.createPolyline(polylineType, polylineTypeId);
3408
3487
  });
3409
3488
  this.removeTitle();
3410
3489
  this.drawPolylineTitle();
@@ -3416,6 +3495,10 @@ var rightClickNodeConnect = [{
3416
3495
  this.drawPolyline(this.polyline[polylineTypeId].dataList[parseInt(dadaIndex)], parseInt(dadaIndex), this.polyline[polylineTypeId], polylineTypeId);
3417
3496
  }
3418
3497
  }
3498
+ },
3499
+ beforeDestroy: function beforeDestroy() {
3500
+ clearInterval(this.interval);
3501
+ this.interval = null;
3419
3502
  }
3420
3503
  });
3421
3504
  // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=script&lang=js&
@@ -3430,8 +3513,8 @@ var rightClickNodeConnect = [{
3430
3513
 
3431
3514
  var FabricPolylines_component = Object(componentNormalizer["a" /* default */])(
3432
3515
  fabric_chart_FabricPolylinesvue_type_script_lang_js_,
3433
- FabricPolylinesvue_type_template_id_9369030e_render,
3434
- FabricPolylinesvue_type_template_id_9369030e_staticRenderFns,
3516
+ FabricPolylinesvue_type_template_id_47f12750_render,
3517
+ FabricPolylinesvue_type_template_id_47f12750_staticRenderFns,
3435
3518
  false,
3436
3519
  null,
3437
3520
  null,
@@ -3537,12 +3620,12 @@ var FabricGrid_component = Object(componentNormalizer["a" /* default */])(
3537
3620
  )
3538
3621
 
3539
3622
  /* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
3540
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3a223fa1-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=74876ab4&
3541
- var FabricTextGroupvue_type_template_id_74876ab4_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)}
3542
- var FabricTextGroupvue_type_template_id_74876ab4_staticRenderFns = []
3623
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"205b3bf6-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=66ab25fc&
3624
+ var FabricTextGroupvue_type_template_id_66ab25fc_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)}
3625
+ var FabricTextGroupvue_type_template_id_66ab25fc_staticRenderFns = []
3543
3626
 
3544
3627
 
3545
- // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=74876ab4&
3628
+ // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=66ab25fc&
3546
3629
 
3547
3630
  // EXTERNAL MODULE: external "core-js/modules/es.array.sort.js"
3548
3631
  var es_array_sort_js_ = __webpack_require__("4c07");
@@ -3565,6 +3648,7 @@ var es_array_sort_js_ = __webpack_require__("4c07");
3565
3648
 
3566
3649
 
3567
3650
 
3651
+
3568
3652
  //
3569
3653
  //
3570
3654
  //
@@ -3892,7 +3976,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
3892
3976
  return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
3893
3977
  var _this8$canvas;
3894
3978
 
3895
- var textList, _this8$propItems, originX, originY, top, index, len, _item$titleStyle, item, marginLeft, left, title, _ref2, _ref2$icon, _icon, dataList, i, _len, v, commonOptions, icon, text, groupObj;
3979
+ 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;
3896
3980
 
3897
3981
  return regeneratorRuntime.wrap(function _callee$(_context) {
3898
3982
  while (1) {
@@ -3905,7 +3989,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
3905
3989
 
3906
3990
  case 4:
3907
3991
  if (!(index < len)) {
3908
- _context.next = 31;
3992
+ _context.next = 35;
3909
3993
  break;
3910
3994
  }
3911
3995
 
@@ -3917,29 +4001,40 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
3917
4001
  top += item.lineHeight || 15;
3918
4002
  }
3919
4003
 
3920
- title = new _this8.fabric.Text(String(item.title), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), item.style), item.titleStyle || {}), {}, {
4004
+ originOptions = {
3921
4005
  originX: 'right',
3922
- originY: 'center',
3923
4006
  left: left,
3924
- top: top,
3925
- id: "".concat(index, "_other_").concat(Date.now())
4007
+ top: top
4008
+ };
4009
+ title = new _this8.fabric.Text(String(item.title), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), item.style), item.titleStyle || {}), {}, {
4010
+ originY: 'center',
4011
+ id: "".concat(index, "_other_").concat(Date.now()),
4012
+ dataIndex: index,
4013
+ type: 'list',
4014
+ hasControls: false,
4015
+ hasBorders: false
4016
+ }, originOptions), _this8.eventStyle), {}, {
4017
+ dataList: []
3926
4018
  }));
4019
+
4020
+ _this8.setMovingEvent(title, originOptions);
4021
+
3927
4022
  textList.push(title);
3928
4023
  _ref2 = item || {}, _ref2$icon = _ref2.icon, _icon = _ref2$icon === void 0 ? {
3929
4024
  type: 'circle'
3930
4025
  } : _ref2$icon, dataList = _ref2.dataList;
3931
4026
  i = 0, _len = dataList.length;
3932
4027
 
3933
- case 13:
4028
+ case 15:
3934
4029
  if (!(i < _len)) {
3935
- _context.next = 28;
4030
+ _context.next = 32;
3936
4031
  break;
3937
4032
  }
3938
4033
 
3939
4034
  v = dataList[i];
3940
4035
 
3941
4036
  if (!_this8.isLimit(v.time)) {
3942
- _context.next = 25;
4037
+ _context.next = 29;
3943
4038
  break;
3944
4039
  }
3945
4040
 
@@ -3950,45 +4045,49 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
3950
4045
  index: i,
3951
4046
  type: 'list'
3952
4047
  };
3953
- _context.next = 19;
4048
+ _left2 = _this8.cumputedX(v.time);
4049
+ title.dataList.push(_left2);
4050
+ _context.next = 23;
3954
4051
  return _this8.createPoint(_icon.type, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
3955
4052
  originX: 'center',
3956
- left: _this8.cumputedX(v.time)
4053
+ left: _left2
3957
4054
  }, item.style), item.style ? {
3958
4055
  stroke: item.style.fill
3959
4056
  } : {}), _icon.style || {}), commonOptions));
3960
4057
 
3961
- case 19:
4058
+ case 23:
3962
4059
  icon = _context.sent;
3963
4060
  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), {}, {
3964
- left: icon.left + icon.width / 2,
4061
+ left: _left2 + icon.width / 2,
3965
4062
  name: v.value
3966
4063
  }, commonOptions));
3967
- groupObj = new _this8.fabric.Group([icon, text], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
4064
+ groupObj = new _this8.fabric.Group([icon, text], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
3968
4065
  id: "".concat(index, "_").concat(i, "_other_").concat(Date.now()),
3969
4066
  lockMovementX: true,
3970
4067
  lockMovementY: true
3971
- }, commonOptions), _this8.eventStyle));
4068
+ }, commonOptions), _this8.eventStyle), {}, {
4069
+ realLeft: _left2
4070
+ }));
3972
4071
  groupObj.hasControls = groupObj.hasBorders = false;
3973
4072
 
3974
4073
  _this8.setPopup(groupObj);
3975
4074
 
3976
4075
  textList.push(groupObj);
3977
4076
 
3978
- case 25:
4077
+ case 29:
3979
4078
  i++;
3980
- _context.next = 13;
4079
+ _context.next = 15;
3981
4080
  break;
3982
4081
 
3983
- case 28:
4082
+ case 32:
3984
4083
  index++;
3985
4084
  _context.next = 4;
3986
4085
  break;
3987
4086
 
3988
- case 31:
4087
+ case 35:
3989
4088
  (_this8$canvas = _this8.canvas).add.apply(_this8$canvas, textList);
3990
4089
 
3991
- case 32:
4090
+ case 36:
3992
4091
  case "end":
3993
4092
  return _context.stop();
3994
4093
  }
@@ -3996,17 +4095,88 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
3996
4095
  }, _callee);
3997
4096
  }))();
3998
4097
  },
3999
- setPopup: function setPopup(point) {
4098
+ setMovingEvent: function setMovingEvent(point) {
4000
4099
  var _this9 = this;
4001
4100
 
4101
+ var _this$propItems3 = this.propItems,
4102
+ originX = _this$propItems3.originX,
4103
+ originY = _this$propItems3.originY,
4104
+ endX = _this$propItems3.endX,
4105
+ endY = _this$propItems3.endY;
4106
+
4107
+ var isLimit = function isLimit() {
4108
+ return point.left >= originX && point.left <= endX && point.top >= originY && point.top <= endY;
4109
+ };
4110
+
4111
+ var cloneObj;
4112
+ point.on('moving', function () {
4113
+ point.set('originX', 'center');
4114
+ !point.isClone && point.clone(function (obj) {
4115
+ obj.set('originX', 'right');
4116
+
4117
+ _this9.canvas.add(obj);
4118
+
4119
+ cloneObj = obj;
4120
+ point.isClone = true;
4121
+ });
4122
+
4123
+ if (isLimit()) {
4124
+ bus.$emit('mouseoverTarget', true);
4125
+
4126
+ _this9.showDrapPopup(point, true);
4127
+ } else {
4128
+ !_this9.isRightVisible && bus.$emit('mouseoverTarget', false);
4129
+ _this9.isDropVisible = false;
4130
+ }
4131
+ });
4132
+ point.on('moved', function () {
4133
+ _this9.canvas.remove(cloneObj);
4134
+
4135
+ point.isClone = false;
4136
+
4137
+ _this9.removeOther();
4138
+
4139
+ _this9.drawTextDataGroup(_this9.templateData.other);
4140
+
4141
+ !_this9.isRightVisible && bus.$emit('mouseoverTarget', false);
4142
+ _this9.isDropVisible = false;
4143
+
4144
+ if (isLimit()) {
4145
+ var type = point.type,
4146
+ dataIndex = point.dataIndex,
4147
+ left = point.left,
4148
+ dataList = point.dataList;
4149
+
4150
+ var time = _this9.getXValue(left);
4151
+
4152
+ var index = dataList.findIndex(function (_left) {
4153
+ return _left > left;
4154
+ }); // 使用定时器,是因为:防止上方移除重绘过慢新增完后再次触发移除重绘导致页面多次重绘节点
4155
+
4156
+ setTimeout(function () {
4157
+ _this9.$emit('addOhter', {
4158
+ type: type,
4159
+ dataIndex: dataIndex,
4160
+ index: !~index ? dataList.length ? dataList.length - 1 : 0 : index,
4161
+ data: {
4162
+ time: time
4163
+ }
4164
+ });
4165
+ });
4166
+ }
4167
+ });
4168
+ },
4169
+ setPopup: function setPopup(point) {
4170
+ var _this10 = this;
4171
+
4002
4172
  point.on('mouseover', function () {
4003
4173
  bus.$emit('mouseoverTarget', true);
4004
4174
 
4005
- _this9.showDrapPopup(point, true);
4175
+ _this10.showDrapPopup(point, true);
4006
4176
  });
4007
4177
  point.on('mouseout', function () {
4008
- !_this9.isRightVisible && bus.$emit('mouseoverTarget', false);
4009
- _this9.isDropVisible = false;
4178
+ !_this10.isRightVisible && bus.$emit('mouseoverTarget', false);
4179
+ _this10.isDropVisible = false;
4010
4180
  });
4011
4181
  },
4012
4182
  // 判断当前时间是否超出网格区域
@@ -4018,11 +4188,11 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4018
4188
  return time >= minTime && time <= maxTime;
4019
4189
  },
4020
4190
  removeMark: function removeMark() {
4021
- var _this10 = this;
4191
+ var _this11 = this;
4022
4192
 
4023
4193
  this.canvas.forEachObject(function (obj) {
4024
4194
  if (obj.type && obj.type === 'mark') {
4025
- _this10.canvas.remove(obj);
4195
+ _this11.canvas.remove(obj);
4026
4196
  }
4027
4197
  });
4028
4198
  },
@@ -4032,18 +4202,19 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4032
4202
  _obj$iconStyle,
4033
4203
  _obj$seqStyle,
4034
4204
  _obj$seqStyle$circle,
4035
- _this11 = this;
4205
+ _this12 = this;
4206
+
4207
+ var _this$propItems4 = this.propItems,
4208
+ endX = _this$propItems4.endX,
4209
+ originX = _this$propItems4.originX,
4210
+ endY = _this$propItems4.endY,
4211
+ canvasHeight = _this$propItems4.canvasHeight,
4212
+ topTotal = _this$propItems4.topTotal;
4036
4213
 
4037
- if (!obj.list) {
4214
+ if (!obj.list || endY === canvasHeight) {
4038
4215
  return;
4039
4216
  }
4040
4217
 
4041
- var _this$propItems3 = this.propItems,
4042
- endX = _this$propItems3.endX,
4043
- originX = _this$propItems3.originX,
4044
- endY = _this$propItems3.endY,
4045
- canvasHeight = _this$propItems3.canvasHeight,
4046
- topTotal = _this$propItems3.topTotal;
4047
4218
  topTotal.width && this.canvas.add(this.drawLine([endX, endY - 1, endX, canvasHeight], Object(objectSpread2["a" /* default */])({}, this.defaultRectStyle))); // const textList = [];
4048
4219
 
4049
4220
  var marginLeft = this.templateData.left.leftYScalevalue.spaceGridNumber || defaultVaule.spaceGridNumber;
@@ -4069,9 +4240,9 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4069
4240
  var addCanvas = function addCanvas(point) {
4070
4241
  point.hasControls = point.hasBorders = false;
4071
4242
 
4072
- _this11.pointEvent(point);
4243
+ _this12.pointEvent(point);
4073
4244
 
4074
- _this11.canvas.add(point); // this.canvas.requestRenderAll();
4245
+ _this12.canvas.add(point); // this.canvas.requestRenderAll();
4075
4246
 
4076
4247
  };
4077
4248
 
@@ -4101,9 +4272,9 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4101
4272
  y: baseY
4102
4273
  };
4103
4274
 
4104
- var x = _this11.cumputedX(item[0]);
4275
+ var x = _this12.cumputedX(item[0]);
4105
4276
 
4106
- if (_this11.isLimit(item[0])) {
4277
+ if (_this12.isLimit(item[0])) {
4107
4278
  item[1].forEach( /*#__PURE__*/function () {
4108
4279
  var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(v, i) {
4109
4280
  var common, eventStyle, option, ele, img, _obj$seqStyle2, _obj$seqStyle3, circle, text, group, _text;
@@ -4122,12 +4293,12 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4122
4293
  name: v.name,
4123
4294
  type: 'mark'
4124
4295
  };
4125
- eventStyle = !_this11.eventStyle.evented ? {
4296
+ eventStyle = !_this12.eventStyle.evented ? {
4126
4297
  lockMovementX: true,
4127
4298
  lockMovementY: true
4128
4299
  } : {};
4129
4300
 
4130
- if (!(_this11.isObject(v) && !v.value)) {
4301
+ if (!(_this12.isObject(v) && !v.value)) {
4131
4302
  _context2.next = 15;
4132
4303
  break;
4133
4304
  }
@@ -4141,14 +4312,14 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4141
4312
  }
4142
4313
 
4143
4314
  _context2.next = 8;
4144
- return _this11.createImage(v.iconClassName, v);
4315
+ return _this12.createImage(v.iconClassName, v);
4145
4316
 
4146
4317
  case 8:
4147
4318
  ele = _context2.sent;
4148
4319
 
4149
4320
  case 9:
4150
4321
  _context2.next = 11;
4151
- return _this11.createPoint(v !== null && v !== void 0 && v.url || v !== null && v !== void 0 && v.iconClassName ? 'img' : v.type, Object(objectSpread2["a" /* default */])({
4322
+ return _this12.createPoint(v !== null && v !== void 0 && v.url || v !== null && v !== void 0 && v.iconClassName ? 'img' : v.type, Object(objectSpread2["a" /* default */])({
4152
4323
  ele: ele || ''
4153
4324
  }, option));
4154
4325
 
@@ -4172,7 +4343,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4172
4343
  common.top = setTop(lineHeightSeq, i, condition); // 标记增加序号
4173
4344
 
4174
4345
  _context2.next = 20;
4175
- return _this11.createPoint('circle', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, common), {}, {
4346
+ return _this12.createPoint('circle', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, common), {}, {
4176
4347
  radius: 5,
4177
4348
  strokeWidth: 1,
4178
4349
  stroke: '#000',
@@ -4181,15 +4352,15 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4181
4352
 
4182
4353
  case 20:
4183
4354
  circle = _context2.sent;
4184
- text = new _this11.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) || {}));
4185
- group = new _this11.fabric.Group([circle, text], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, common), eventStyle));
4355
+ 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) || {}));
4356
+ group = new _this12.fabric.Group([circle, text], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, common), eventStyle));
4186
4357
  addCanvas(group);
4187
4358
  _context2.next = 29;
4188
4359
  break;
4189
4360
 
4190
4361
  case 26:
4191
4362
  common.top = setTop(lineHeightText, i, condition);
4192
- _text = new _this11.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));
4363
+ _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));
4193
4364
  addCanvas(_text);
4194
4365
 
4195
4366
  case 29:
@@ -4208,26 +4379,26 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4208
4379
  }); // this.canvas.add(...textList);
4209
4380
  },
4210
4381
  pointEvent: function pointEvent(point) {
4211
- var _this12 = this;
4382
+ var _this13 = this;
4212
4383
 
4213
4384
  this.setPopup(point); // 移动中 实时更新相关联的线的坐标
4214
4385
 
4215
4386
  if (this.eventStyle.evented) {
4216
4387
  point.on('moving', function () {
4217
- _this12.moveLimit(point); // this.canvas.renderAll();
4388
+ _this13.moveLimit(point); // this.canvas.renderAll();
4218
4389
 
4219
4390
 
4220
- _this12.showDrapPopup(point);
4391
+ _this13.showDrapPopup(point);
4221
4392
  });
4222
4393
  point.on('moved', function () {
4223
- _this12.isDropVisible = false;
4394
+ _this13.isDropVisible = false;
4224
4395
  var value = {
4225
4396
  data: point.data,
4226
4397
  oldVal: point.time,
4227
- newVal: _this12.getXValue(point.left)
4398
+ newVal: _this13.getXValue(point.left)
4228
4399
  };
4229
4400
 
4230
- _this12.$emit('markChange', value);
4401
+ _this13.$emit('markChange', value);
4231
4402
  });
4232
4403
  }
4233
4404
  },
@@ -4235,11 +4406,11 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4235
4406
  var _point$other;
4236
4407
 
4237
4408
  point.setCoords();
4238
- var _this$propItems4 = this.propItems,
4239
- originX = _this$propItems4.originX,
4240
- endX = _this$propItems4.endX,
4241
- originY = _this$propItems4.originY,
4242
- canvasHeight = _this$propItems4.canvasHeight;
4409
+ var _this$propItems5 = this.propItems,
4410
+ originX = _this$propItems5.originX,
4411
+ endX = _this$propItems5.endX,
4412
+ originY = _this$propItems5.originY,
4413
+ canvasHeight = _this$propItems5.canvasHeight;
4243
4414
  var bottom = this.templateData.bottom; // 如果是起始标记,如入手术室时间
4244
4415
 
4245
4416
  if ((_point$other = point.other) !== null && _point$other !== void 0 && _point$other.isStart) {
@@ -4321,7 +4492,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4321
4492
  top: this.propItems.yCellHeight
4322
4493
  }
4323
4494
  };
4324
- var x = arguments.length > 1 && (_point$other4 = point.other) !== null && _point$other4 !== void 0 && _point$other4.viewTime ? point.other.viewTime : this.getXValue(point.left);
4495
+ var x = arguments.length > 1 && (_point$other4 = point.other) !== null && _point$other4 !== void 0 && _point$other4.viewTime ? point.other.viewTime : this.getXValue(point.realLeft || point.left);
4325
4496
  this.dropVal = {
4326
4497
  title: point.name || '',
4327
4498
  list: [{
@@ -4333,11 +4504,11 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4333
4504
  },
4334
4505
  drawLeftScaleGroup: function drawLeftScaleGroup(dataLeft) {
4335
4506
  this.drawLeftTitle(dataLeft);
4336
- var _this$propItems5 = this.propItems,
4337
- canvasHeight = _this$propItems5.canvasHeight,
4338
- originX = _this$propItems5.originX,
4339
- originY = _this$propItems5.originY,
4340
- treeTableminCellWidth = _this$propItems5.treeTableminCellWidth;
4507
+ var _this$propItems6 = this.propItems,
4508
+ canvasHeight = _this$propItems6.canvasHeight,
4509
+ originX = _this$propItems6.originX,
4510
+ originY = _this$propItems6.originY,
4511
+ treeTableminCellWidth = _this$propItems6.treeTableminCellWidth;
4341
4512
  var rect = new this.fabric.Rect(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
4342
4513
  left: treeTableminCellWidth,
4343
4514
  top: originY,
@@ -4381,8 +4552,8 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
4381
4552
 
4382
4553
  var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
4383
4554
  fabric_chart_FabricTextGroupvue_type_script_lang_js_,
4384
- FabricTextGroupvue_type_template_id_74876ab4_render,
4385
- FabricTextGroupvue_type_template_id_74876ab4_staticRenderFns,
4555
+ FabricTextGroupvue_type_template_id_66ab25fc_render,
4556
+ FabricTextGroupvue_type_template_id_66ab25fc_staticRenderFns,
4386
4557
  false,
4387
4558
  null,
4388
4559
  null,
@@ -4391,14 +4562,14 @@ var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
4391
4562
  )
4392
4563
 
4393
4564
  /* harmony default export */ var FabricTextGroup = (FabricTextGroup_component.exports);
4394
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3a223fa1-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=f880e596&
4395
- var FabricScaleValuevue_type_template_id_f880e596_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.templateData.top.xScalevalue.popupTop)?_c('TimeScaleValue',{attrs:{"times":_vm.timeList,"templateData":_vm.templateData}}):_vm._e()}
4396
- var FabricScaleValuevue_type_template_id_f880e596_staticRenderFns = []
4565
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"205b3bf6-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=2fb04f40&
4566
+ var FabricScaleValuevue_type_template_id_2fb04f40_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.templateData.top.xScalevalue.popupTop)?_c('TimeScaleValue',{attrs:{"times":_vm.timeList,"templateData":_vm.templateData}}):_vm._e()}
4567
+ var FabricScaleValuevue_type_template_id_2fb04f40_staticRenderFns = []
4397
4568
 
4398
4569
 
4399
- // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=f880e596&
4570
+ // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=2fb04f40&
4400
4571
 
4401
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3a223fa1-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=3b20fb44&scoped=true&
4572
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"205b3bf6-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=3b20fb44&scoped=true&
4402
4573
  var TimeScaleValuevue_type_template_id_3b20fb44_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)}
4403
4574
  var TimeScaleValuevue_type_template_id_3b20fb44_scoped_true_staticRenderFns = []
4404
4575
 
@@ -4594,11 +4765,18 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
4594
4765
  xCellWidth = _this$propItems.xCellWidth,
4595
4766
  originYTime = _this$propItems.originYTime,
4596
4767
  spaceHeight = _this$propItems.spaceHeight;
4597
- var spaceGridNumber = obj.xScalevalue.spaceGridNumber || 3;
4598
- var defaultSpaceMinute = obj.xScalevalue.defaultSpaceTime || 15;
4768
+
4769
+ var _ref = obj.xScalevalue || {},
4770
+ _ref$spaceGridNumber = _ref.spaceGridNumber,
4771
+ spaceGridNumber = _ref$spaceGridNumber === void 0 ? 3 : _ref$spaceGridNumber,
4772
+ _ref$defaultSpaceTime = _ref.defaultSpaceTime,
4773
+ defaultSpaceMinute = _ref$defaultSpaceTime === void 0 ? 15 : _ref$defaultSpaceTime,
4774
+ _ref$style = _ref.style,
4775
+ style = _ref$style === void 0 ? {} : _ref$style,
4776
+ _ref$customStyle = _ref.customStyle,
4777
+ customStyle = _ref$customStyle === void 0 ? {} : _ref$customStyle;
4778
+
4599
4779
  var defaultSpaceTime = defaultSpaceMinute * 60 * 1000;
4600
- var style = obj.xScalevalue.style || {};
4601
- var customStyle = obj.xScalevalue.customStyle || {};
4602
4780
  var top = originYTime + Math.floor(spaceHeight / 2);
4603
4781
  var textList = [];
4604
4782
  var list = obj.xScalevalue.list || [];
@@ -4628,18 +4806,36 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
4628
4806
  var _this2 = this;
4629
4807
 
4630
4808
  if (!obj) return;
4631
- var spaceGridNumber = obj.rightYScalevalue.spaceGridNumber || 2;
4632
- var marginLeft = obj.rightYScalevalue.marginLeft || 3;
4633
- var originX = this.propItems.endX + marginLeft;
4634
- var style = obj.rightYScalevalue.style ? obj.rightYScalevalue.style : {};
4809
+
4810
+ var _ref2 = obj.rightYScalevalue || {},
4811
+ _ref2$spaceGridNumber = _ref2.spaceGridNumber,
4812
+ spaceGridNumber = _ref2$spaceGridNumber === void 0 ? 2 : _ref2$spaceGridNumber,
4813
+ _ref2$marginLeft = _ref2.marginLeft,
4814
+ marginLeft = _ref2$marginLeft === void 0 ? 3 : _ref2$marginLeft,
4815
+ _ref2$style = _ref2.style,
4816
+ style = _ref2$style === void 0 ? {} : _ref2$style,
4817
+ _ref2$list = _ref2.list,
4818
+ list = _ref2$list === void 0 ? [] : _ref2$list,
4819
+ unit = _ref2.unit;
4820
+
4821
+ var _this$propItems2 = this.propItems,
4822
+ endX = _this$propItems2.endX,
4823
+ endY = _this$propItems2.endY,
4824
+ yCellHeight = _this$propItems2.yCellHeight;
4825
+
4826
+ var _originX = endX + marginLeft;
4827
+
4635
4828
  var textList = [];
4636
- obj.rightYScalevalue.list.forEach(function (item, index) {
4637
- textList.push(_this2.createText(item, originX, _this2.propItems.endY - index * _this2.propItems.yCellHeight * spaceGridNumber, 'left', style));
4829
+ list.forEach(function (item, index) {
4830
+ var numObj = _this2.createText(item, _originX, endY - index * yCellHeight * spaceGridNumber, 'left', style);
4831
+
4832
+ index === 0 && _this2.setOverFlowPoint(numObj);
4833
+ textList.push(numObj);
4638
4834
  }); // 添加单位
4639
4835
 
4640
- if (obj.rightYScalevalue.unit) {
4641
- var top = this.propItems.endY - obj.rightYScalevalue.list.length * this.propItems.yCellHeight * spaceGridNumber + this.propItems.yCellHeight;
4642
- textList.push(this.createText(obj.rightYScalevalue.unit, originX, top, 'left', style));
4836
+ if (unit) {
4837
+ var top = endY - list.length * yCellHeight * spaceGridNumber + yCellHeight;
4838
+ textList.push(this.createText(unit, _originX, top, 'left', style));
4643
4839
  }
4644
4840
 
4645
4841
  var group = new this.fabric.Group([].concat(textList), {
@@ -4650,33 +4846,45 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
4650
4846
  this.canvas.sendBackwards(group);
4651
4847
  },
4652
4848
  leftScaleValue: function leftScaleValue(obj) {
4653
- var _obj$leftYScalevalue,
4654
- _this3 = this;
4849
+ var _this3 = this;
4655
4850
 
4656
- var _this$propItems2 = this.propItems,
4657
- endY = _this$propItems2.endY,
4658
- yCellHeight = _this$propItems2.yCellHeight;
4659
- var spaceGridNumber = obj.leftYScalevalue.spaceGridNumber || 2;
4851
+ var _ref3 = obj.leftYScalevalue || {},
4852
+ _ref3$spaceGridNumber = _ref3.spaceGridNumber,
4853
+ spaceGridNumber = _ref3$spaceGridNumber === void 0 ? 2 : _ref3$spaceGridNumber,
4854
+ _ref3$titleMargin = _ref3.titleMargin,
4855
+ titleMargin = _ref3$titleMargin === void 0 ? [5, 30] : _ref3$titleMargin,
4856
+ _ref3$listMarginRight = _ref3.listMarginRight,
4857
+ listMarginRight = _ref3$listMarginRight === void 0 ? 3 : _ref3$listMarginRight,
4858
+ _ref3$style = _ref3.style,
4859
+ style = _ref3$style === void 0 ? {} : _ref3$style,
4860
+ _ref3$list = _ref3.list,
4861
+ list = _ref3$list === void 0 ? [] : _ref3$list,
4862
+ name = _ref3.name,
4863
+ unit = _ref3.unit;
4660
4864
 
4661
- var _ref = ((_obj$leftYScalevalue = obj.leftYScalevalue) === null || _obj$leftYScalevalue === void 0 ? void 0 : _obj$leftYScalevalue.titleMargin) || [5, 30],
4662
- _ref2 = Object(slicedToArray["a" /* default */])(_ref, 2),
4663
- titleMarginRight = _ref2[0],
4664
- titleMarginButton = _ref2[1];
4865
+ var _this$propItems3 = this.propItems,
4866
+ originX = _this$propItems3.originX,
4867
+ endY = _this$propItems3.endY,
4868
+ yCellHeight = _this$propItems3.yCellHeight;
4869
+
4870
+ var _titleMargin = Object(slicedToArray["a" /* default */])(titleMargin, 2),
4871
+ titleMarginRight = _titleMargin[0],
4872
+ titleMarginButton = _titleMargin[1];
4665
4873
 
4666
- var listMarginRight = obj.leftYScalevalue.listMarginRight || 3;
4667
- var style = obj.leftYScalevalue.style || {};
4668
- var originX = this.propItems.originX;
4669
4874
  var textList = [];
4670
- obj.leftYScalevalue.list.forEach(function (item, index) {
4671
- textList.push(_this3.createText(item, originX - listMarginRight, endY - index * yCellHeight * spaceGridNumber, 'right', style));
4875
+ list.forEach(function (item, index) {
4876
+ var numObj = _this3.createText(item, originX - listMarginRight, endY - index * yCellHeight * spaceGridNumber, 'right', style);
4877
+
4878
+ index === 0 && _this3.setOverFlowPoint(numObj);
4879
+ textList.push(numObj);
4672
4880
  }); // 添加标题和单位
4673
4881
 
4674
4882
  var txt = '';
4675
- txt = obj.leftYScalevalue.name || '';
4676
- if (obj.leftYScalevalue.unit) txt += '\n' + obj.leftYScalevalue.unit;
4883
+ txt = name || '';
4884
+ if (unit) txt += '\n' + unit;
4677
4885
 
4678
4886
  if (txt) {
4679
- var top = endY - (obj.leftYScalevalue.list.length - 1) * yCellHeight * spaceGridNumber - titleMarginButton;
4887
+ var top = endY - (list.length - 1) * yCellHeight * spaceGridNumber - titleMarginButton;
4680
4888
  textList.push(this.createText(txt, originX - titleMarginRight, top, 'right', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, style), {}, {
4681
4889
  textAlign: 'right',
4682
4890
  originY: 'bottom'
@@ -4690,6 +4898,12 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
4690
4898
  this.canvas.add(group);
4691
4899
  this.canvas.sendBackwards(group);
4692
4900
  },
4901
+ setOverFlowPoint: function setOverFlowPoint(point) {
4902
+ var _this$propItems4 = this.propItems,
4903
+ endY = _this$propItems4.endY,
4904
+ canvasHeight = _this$propItems4.canvasHeight;
4905
+ endY === canvasHeight && point.set('top', point.top - point.height / 2);
4906
+ },
4693
4907
  createText: function createText(text, left, top, originX, style) {
4694
4908
  return new this.fabric.Text(String(text), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, this.defaultTextStyle), {}, {
4695
4909
  left: left,
@@ -4712,8 +4926,8 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
4712
4926
 
4713
4927
  var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
4714
4928
  fabric_chart_FabricScaleValuevue_type_script_lang_js_,
4715
- FabricScaleValuevue_type_template_id_f880e596_render,
4716
- FabricScaleValuevue_type_template_id_f880e596_staticRenderFns,
4929
+ FabricScaleValuevue_type_template_id_2fb04f40_render,
4930
+ FabricScaleValuevue_type_template_id_2fb04f40_staticRenderFns,
4717
4931
  false,
4718
4932
  null,
4719
4933
  null,
@@ -4722,12 +4936,12 @@ var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
4722
4936
  )
4723
4937
 
4724
4938
  /* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
4725
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3a223fa1-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=6bcbb555&
4726
- var FabricLinesvue_type_template_id_6bcbb555_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)}
4727
- var FabricLinesvue_type_template_id_6bcbb555_staticRenderFns = []
4939
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"205b3bf6-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=a683fbc4&
4940
+ var FabricLinesvue_type_template_id_a683fbc4_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)}
4941
+ var FabricLinesvue_type_template_id_a683fbc4_staticRenderFns = []
4728
4942
 
4729
4943
 
4730
- // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=6bcbb555&
4944
+ // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=a683fbc4&
4731
4945
 
4732
4946
  // 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/FabricLines.vue?vue&type=script&lang=js&
4733
4947
 
@@ -5032,8 +5246,7 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
5032
5246
  _context.next = 25;
5033
5247
  return _this5.drawGroup(x1, x2, y1 + spaceHeight, y2 - spaceHeight, i, j, {
5034
5248
  position: 'left',
5035
- customIcon: !endMinute && !isContinue ? true : false,
5036
- isContinue: isContinue
5249
+ customIcon: !endMinute && !isContinue
5037
5250
  });
5038
5251
 
5039
5252
  case 25:
@@ -5107,7 +5320,8 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
5107
5320
 
5108
5321
  _context.next = 38;
5109
5322
  return _this5.drawGroup(x1, x2, y1 + spaceHeight, y2 - spaceHeight, i, j, {
5110
- position: 'right'
5323
+ position: 'right',
5324
+ isContinue: isContinue
5111
5325
  });
5112
5326
 
5113
5327
  case 38:
@@ -5263,7 +5477,7 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
5263
5477
  var _this6 = this;
5264
5478
 
5265
5479
  return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
5266
- var id, point, left, position, customIcon, isContinue, line, arrow, common, _this6$linesObj$dataL, dataLineStyle, _customIcon, rect;
5480
+ var id, point, left, position, customIcon, isContinue, line, common, _this6$linesObj$dataL, dataLineStyle, _customIcon, rect;
5267
5481
 
5268
5482
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
5269
5483
  while (1) {
@@ -5305,40 +5519,39 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
5305
5519
 
5306
5520
  case 9:
5307
5521
  line = _context2.sent;
5308
- _context2.next = 21;
5522
+ _context2.next = 20;
5309
5523
  break;
5310
5524
 
5311
5525
  case 12:
5312
- line = _this6.drawLine(point, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, dataLineStyle), common));
5313
-
5314
5526
  if (!isContinue) {
5315
- _context2.next = 19;
5527
+ _context2.next = 18;
5316
5528
  break;
5317
5529
  }
5318
5530
 
5319
- _context2.next = 16;
5320
- return _this6.ceateLineArrow(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
5321
- left: x1,
5322
- top: y1 + (y2 - y1) / 2,
5323
- originY: 'center',
5324
- width: 14,
5325
- height: 5,
5326
- arrowwidth: 6,
5327
- arrowheight: 5
5531
+ _context2.next = 15;
5532
+ return _this6.createArrow(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
5533
+ left: x2,
5534
+ top: y1 + (y2 - y1) / 2 - 3.5,
5535
+ originY: 'bottom',
5536
+ originX: 'right',
5537
+ fill: 'transparent',
5538
+ width: 7,
5539
+ height: 7,
5540
+ angle: 270
5328
5541
  }, dataLineStyle), common));
5329
5542
 
5330
- case 16:
5543
+ case 15:
5331
5544
  _context2.t0 = _context2.sent;
5332
- _context2.next = 20;
5545
+ _context2.next = 19;
5333
5546
  break;
5334
5547
 
5548
+ case 18:
5549
+ _context2.t0 = _this6.drawLine(point, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, dataLineStyle), common));
5550
+
5335
5551
  case 19:
5336
- _context2.t0 = null;
5552
+ line = _context2.t0;
5337
5553
 
5338
5554
  case 20:
5339
- arrow = _context2.t0;
5340
-
5341
- case 21:
5342
5555
  rect = new _this6.fabric.Rect({
5343
5556
  width: _this6.propItems.xCellWidth,
5344
5557
  height: y2 - y1,
@@ -5348,7 +5561,7 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
5348
5561
  selectable: false,
5349
5562
  evented: false
5350
5563
  });
5351
- return _context2.abrupt("return", new _this6.fabric.Group([line, rect].concat(Object(toConsumableArray["a" /* default */])(arrow ? [arrow] : [])), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
5564
+ return _context2.abrupt("return", new _this6.fabric.Group([line, rect], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
5352
5565
  selectable: true,
5353
5566
  evented: true,
5354
5567
  originX: 'center',
@@ -5357,11 +5570,12 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
5357
5570
  rowIndex: i,
5358
5571
  colIndex: j
5359
5572
  }, _this6.eventStyle), others), {}, {
5573
+ isContinue: isContinue,
5360
5574
  lockMovementY: true // 锁定Y轴,即只能x轴方向移动
5361
5575
 
5362
5576
  })));
5363
5577
 
5364
- case 23:
5578
+ case 22:
5365
5579
  case "end":
5366
5580
  return _context2.stop();
5367
5581
  }
@@ -5505,7 +5719,8 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
5505
5719
  var rowIndex = line.rowIndex,
5506
5720
  colIndex = line.colIndex,
5507
5721
  position = line.position,
5508
- left = line.left;
5722
+ left = line.left,
5723
+ isContinue = line.isContinue;
5509
5724
  var linesRow = this.lines[rowIndex]; // isHover,只是鼠标移上去显示提示信息而不需要重新计算x值
5510
5725
 
5511
5726
  if (isHover) {
@@ -5519,7 +5734,7 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
5519
5734
  };
5520
5735
  }
5521
5736
 
5522
- var x = this.getXValue(left);
5737
+ var x = this.getXValue(isContinue ? left + 0.5 : left);
5523
5738
 
5524
5739
  if (position === 'left') {
5525
5740
  linesRow.lineList[colIndex][0] = x;
@@ -5658,8 +5873,8 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
5658
5873
 
5659
5874
  var FabricLines_component = Object(componentNormalizer["a" /* default */])(
5660
5875
  fabric_chart_FabricLinesvue_type_script_lang_js_,
5661
- FabricLinesvue_type_template_id_6bcbb555_render,
5662
- FabricLinesvue_type_template_id_6bcbb555_staticRenderFns,
5876
+ FabricLinesvue_type_template_id_a683fbc4_render,
5877
+ FabricLinesvue_type_template_id_a683fbc4_staticRenderFns,
5663
5878
  false,
5664
5879
  null,
5665
5880
  null,