cnhis-design-vue 2.1.143 → 2.1.144

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 (106) hide show
  1. package/CHANGELOG.md +28 -4
  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 +71 -71
  12. package/es/breadcrumb/index.js +8 -8
  13. package/es/button/index.js +474 -314
  14. package/es/button/style.css +1 -1
  15. package/es/calendar/index.js +8 -8
  16. package/es/captcha/index.js +3 -3
  17. package/es/card/index.js +8 -8
  18. package/es/card-reader-sdk/index.js +1 -1
  19. package/es/carousel/index.js +8 -8
  20. package/es/cascader/index.js +8 -8
  21. package/es/checkbox/index.js +9 -9
  22. package/es/col/index.js +8 -8
  23. package/es/collapse/index.js +8 -8
  24. package/es/color-picker/index.js +1 -1
  25. package/es/comment/index.js +8 -8
  26. package/es/config-provider/index.js +8 -8
  27. package/es/date-picker/index.js +8 -8
  28. package/es/descriptions/index.js +8 -8
  29. package/es/direct/index.js +16 -16
  30. package/es/divider/index.js +8 -8
  31. package/es/drag-layout/index.js +3 -3
  32. package/es/drawer/index.js +8 -8
  33. package/es/dropdown/index.js +8 -8
  34. package/es/editor/index.js +1 -1
  35. package/es/ellipsis/index.js +1 -1
  36. package/es/empty/index.js +8 -8
  37. package/es/fabric-chart/index.js +283 -149
  38. package/es/form/index.js +8 -8
  39. package/es/form-model/index.js +8 -8
  40. package/es/form-table/index.js +74 -74
  41. package/es/full-calendar/index.js +4 -4
  42. package/es/index/index.js +1778 -1073
  43. package/es/index/style.css +1 -1
  44. package/es/input/index.js +9 -9
  45. package/es/input-number/index.js +8 -8
  46. package/es/layout/index.js +8 -8
  47. package/es/list/index.js +8 -8
  48. package/es/locale-provider/index.js +8 -8
  49. package/es/map/index.js +9 -9
  50. package/es/mentions/index.js +8 -8
  51. package/es/menu/index.js +8 -8
  52. package/es/message/index.js +8 -8
  53. package/es/multi-chat/index.js +76 -76
  54. package/es/multi-chat-client/index.js +70 -70
  55. package/es/multi-chat-history/index.js +4 -4
  56. package/es/multi-chat-record/index.js +14 -14
  57. package/es/multi-chat-setting/index.js +22 -22
  58. package/es/multi-chat-sip/index.js +1 -1
  59. package/es/notification/index.js +8 -8
  60. package/es/page-header/index.js +8 -8
  61. package/es/pagination/index.js +8 -8
  62. package/es/popconfirm/index.js +8 -8
  63. package/es/popover/index.js +8 -8
  64. package/es/progress/index.js +8 -8
  65. package/es/radio/index.js +9 -9
  66. package/es/rate/index.js +8 -8
  67. package/es/result/index.js +8 -8
  68. package/es/row/index.js +8 -8
  69. package/es/scale-container/index.js +9 -9
  70. package/es/scale-view/index.js +27 -27
  71. package/es/select/index.js +12 -12
  72. package/es/select-label/index.js +11 -11
  73. package/es/select-person/index.js +2 -2
  74. package/es/select-tag/index.js +4 -4
  75. package/es/shortcut-setter/index.js +10 -10
  76. package/es/skeleton/index.js +8 -8
  77. package/es/slider/index.js +8 -8
  78. package/es/slider-tree/index.js +9 -9
  79. package/es/space/index.js +8 -8
  80. package/es/spin/index.js +8 -8
  81. package/es/statistic/index.js +8 -8
  82. package/es/steps/index.js +8 -8
  83. package/es/switch/index.js +8 -8
  84. package/es/table-filter/index.js +1143 -572
  85. package/es/table-filter/style.css +1 -1
  86. package/es/tabs/index.js +8 -8
  87. package/es/tag/index.js +9 -9
  88. package/es/time-picker/index.js +8 -8
  89. package/es/timeline/index.js +8 -8
  90. package/es/tooltip/index.js +8 -8
  91. package/es/transfer/index.js +8 -8
  92. package/es/tree/index.js +8 -8
  93. package/es/tree-select/index.js +8 -8
  94. package/es/upload/index.js +8 -8
  95. package/es/verification-code/index.js +2 -2
  96. package/lib/cui.common.js +1743 -1064
  97. package/lib/cui.umd.js +1743 -1064
  98. package/lib/cui.umd.min.js +20 -20
  99. package/package.json +1 -1
  100. package/packages/button/src/ButtonPrint/index.vue +21 -13
  101. package/packages/button/src/ButtonPrint/new.vue +270 -291
  102. package/packages/button/src/ButtonPrint/old.vue +33 -4
  103. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +175 -85
  104. package/packages/fabric-chart/src/mixins/eventCommon.js +1 -1
  105. package/packages/table-filter/src/base-search-com/BaseSearch.vue +21 -71
  106. package/packages/table-filter/src/mixins/printNew.js +184 -0
@@ -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":"9441c33a-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=76395f46&scoped=true&
298
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70f3d6c1-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=76395f46&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),[_c('fabric-grid'),(_vm.hasXScalevalue)?_c('fabric-text-group',_vm._g({ref:"otherGroups",attrs:{"templateData":_vm.templateData}},_vm.$listeners)):_vm._e(),(_vm.hasTable)?_c('fabric-scale-value',{attrs:{"templateData":_vm.templateData}}):_vm._e(),(_vm.hasTopTable)?_c('fabric-lines',_vm._g({ref:"lines",attrs:{"linesObj":_vm.templateData.top}},_vm.$listeners)):_vm._e(),(_vm.hasTable)?_c('fabric-polylines',_vm._g({ref:"polylines",attrs:{"polyline":_vm.polylines,"other":_vm.templateData.left.other || {},"timeRangeStyle":_vm.templateData.timeRangeStyle || {}},on:{"pointOperation":_vm.pointOperation}},_vm.$listeners)):_vm._e()],1):_vm._e()],1)}
300
300
  var staticRenderFns = []
301
301
 
@@ -308,7 +308,7 @@ 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":"9441c33a-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=10e4f5d6&
311
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70f3d6c1-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=10e4f5d6&
312
312
  var FabricCanvasvue_type_template_id_10e4f5d6_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
313
  var FabricCanvasvue_type_template_id_10e4f5d6_staticRenderFns = []
314
314
 
@@ -972,12 +972,12 @@ var component = Object(componentNormalizer["a" /* default */])(
972
972
  )
973
973
 
974
974
  /* harmony default export */ var FabricCanvas = (component.exports);
975
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9441c33a-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=6769ab15&
976
- var FabricPolylinesvue_type_template_id_6769ab15_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)}
977
- var FabricPolylinesvue_type_template_id_6769ab15_staticRenderFns = []
975
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70f3d6c1-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=56585a2b&
976
+ var FabricPolylinesvue_type_template_id_56585a2b_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)}
977
+ var FabricPolylinesvue_type_template_id_56585a2b_staticRenderFns = []
978
978
 
979
979
 
980
- // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=6769ab15&
980
+ // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=56585a2b&
981
981
 
982
982
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
983
983
  var asyncToGenerator = __webpack_require__("1da1");
@@ -1801,7 +1801,7 @@ function sortByTime() {
1801
1801
  endX = _this$propItems.endX,
1802
1802
  originY = _this$propItems.originY,
1803
1803
  endY = _this$propItems.endY;
1804
- var leftLimit = ((_point$prevPoint = point.prevPoint) === null || _point$prevPoint === void 0 ? void 0 : _point$prevPoint.get('left')) || originX;
1804
+ var leftLimit = isLimit && ((_point$prevPoint = point.prevPoint) === null || _point$prevPoint === void 0 ? void 0 : _point$prevPoint.get('left')) || originX;
1805
1805
  var rightLimit = isLimit && ((_point$nextPoint = point.nextPoint) === null || _point$nextPoint === void 0 ? void 0 : _point$nextPoint.get('left')) || endX;
1806
1806
 
1807
1807
  if (point.top < originY) {
@@ -1855,7 +1855,7 @@ function sortByTime() {
1855
1855
  }
1856
1856
  }
1857
1857
  });
1858
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9441c33a-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&
1858
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70f3d6c1-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&
1859
1859
  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)])}
1860
1860
  var MouseRightClickvue_type_template_id_25d4407a_scoped_true_staticRenderFns = []
1861
1861
 
@@ -1963,7 +1963,7 @@ var MouseRightClick_component = Object(componentNormalizer["a" /* default */])(
1963
1963
  )
1964
1964
 
1965
1965
  /* harmony default export */ var MouseRightClick = (MouseRightClick_component.exports);
1966
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9441c33a-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&
1966
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70f3d6c1-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&
1967
1967
  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)])}
1968
1968
  var DropPopupvue_type_template_id_c4db0ace_scoped_true_staticRenderFns = []
1969
1969
 
@@ -2147,16 +2147,32 @@ function resetPointColor(pointArr, color) {
2147
2147
  });
2148
2148
  }
2149
2149
 
2150
- var setPointLineColor = function setPointLineColor(point, color, conditionHasLine2) {
2151
- var _point$prevPoint, _point$prevPoint$__at, _point$prevPoint$__at2, _point$line, _point$line2;
2150
+ var setPointLineColor = function setPointLineColor(point, color, isRight) {
2151
+ var _point$prevPoint, _point$prevPoint$__at, _point$prevPoint$__at2;
2152
+
2153
+ var lineColor = color === 'transparent' ? color : isRight ? ((_point$prevPoint = point.prevPoint) === null || _point$prevPoint === void 0 ? void 0 : (_point$prevPoint$__at = _point$prevPoint.__attrs) === null || _point$prevPoint$__at === void 0 ? void 0 : (_point$prevPoint$__at2 = _point$prevPoint$__at.lineAttr) === null || _point$prevPoint$__at2 === void 0 ? void 0 : _point$prevPoint$__at2.stroke) || color : color;
2154
+
2155
+ if (isRight) {
2156
+ var _point$line, _point$line2;
2157
+
2158
+ (_point$line = point.line1) === null || _point$line === void 0 ? void 0 : _point$line.set({
2159
+ stroke: lineColor
2160
+ });
2161
+ (_point$line2 = point.line2) === null || _point$line2 === void 0 ? void 0 : _point$line2.set({
2162
+ stroke: color
2163
+ });
2164
+ } else {
2165
+ var _point$line3, _point$line4;
2166
+
2167
+ (_point$line3 = point.line2) === null || _point$line3 === void 0 ? void 0 : _point$line3.set({
2168
+ stroke: lineColor
2169
+ });
2170
+ (_point$line4 = point.line1) === null || _point$line4 === void 0 ? void 0 : _point$line4.set({
2171
+ stroke: color
2172
+ });
2173
+ } // point.line2?.set({ stroke: color });
2174
+ // conditionHasLine && point.line2?.set({ stroke: color });
2152
2175
 
2153
- var line1Color = color === 'transparent' ? color : ((_point$prevPoint = point.prevPoint) === null || _point$prevPoint === void 0 ? void 0 : (_point$prevPoint$__at = _point$prevPoint.__attrs) === null || _point$prevPoint$__at === void 0 ? void 0 : (_point$prevPoint$__at2 = _point$prevPoint$__at.lineAttr) === null || _point$prevPoint$__at2 === void 0 ? void 0 : _point$prevPoint$__at2.stroke) || color;
2154
- (_point$line = point.line1) === null || _point$line === void 0 ? void 0 : _point$line.set({
2155
- stroke: line1Color
2156
- });
2157
- conditionHasLine2 && ((_point$line2 = point.line2) === null || _point$line2 === void 0 ? void 0 : _point$line2.set({
2158
- stroke: color
2159
- }));
2160
2176
  };
2161
2177
 
2162
2178
  var isEffectiveNode = function isEffectiveNode(node) {
@@ -3339,8 +3355,9 @@ var rightClickNodeConnect = [{
3339
3355
  var position = this.polyline[point.polylineTypeId].position;
3340
3356
 
3341
3357
  var _this$addPointList = Object(slicedToArray["a" /* default */])(this.addPointList, 1),
3342
- firstPoint = _this$addPointList[0]; // 如果是重合/连线节点
3358
+ firstPoint = _this$addPointList[0];
3343
3359
 
3360
+ var isRight = lastPoint.left > point.originLeft; // 如果是重合/连线节点
3344
3361
 
3345
3362
  if (point.get('scaleX') !== point.scale) {
3346
3363
  var _this$_concatPoint, _this$_concatPoint2, _point$__attrs2;
@@ -3360,24 +3377,45 @@ var rightClickNodeConnect = [{
3360
3377
  this.addPointList.push(addOjb);
3361
3378
  }
3362
3379
 
3380
+ if (!isRight) {
3381
+ var _point$__attrs3;
3382
+
3383
+ this.addPointList.unshift(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, firstPoint), {}, {
3384
+ value: Object(objectSpread2["a" /* default */])({
3385
+ time: this.getXValue(point.originLeft),
3386
+ value: this.getYValue(position, point.originTop)
3387
+ }, (_point$__attrs3 = point.__attrs) !== null && _point$__attrs3 !== void 0 && _point$__attrs3.key ? {
3388
+ key: point.__attrs.key
3389
+ } : {})
3390
+ }));
3391
+ }
3392
+
3363
3393
  this.addPointList.forEach(function (v) {
3364
3394
  return Object.assign(v, {
3365
3395
  isConcat: true,
3366
- concatIndex: _this14._concatIndex
3396
+ concatIndex: isRight ? _this14._concatIndex : point.pointIndex,
3397
+ pointIndex: isRight ? point.pointIndex : _this14._concatPoint.pointIndex
3367
3398
  });
3368
3399
  });
3369
- } else if (point.line2 || point.nextPoint && lastPoint.left >= point.nextPoint.left) {
3400
+ } else if (!isRight || isRight && (point.line2 || point.nextPoint && lastPoint.left >= point.nextPoint.left)) {
3370
3401
  // 1、存在右连线 2、无右侧连线,并且存在下一个节点的情况
3371
3402
  this.addPointList = [];
3372
3403
  this.repaintPolyline(position, point.polylineIndex);
3373
3404
  return;
3374
3405
  }
3375
3406
 
3376
- !point.line2 && firstPoint.left <= point.originLeft && this.addPointList.splice(0, 1);
3377
3407
  !point.id.includes('isTitle') && this.removePolyline(point.id);
3378
3408
 
3409
+ if (isRight && !point.line2 && firstPoint.left <= point.originLeft) {
3410
+ this.addPointList.splice(0, 1);
3411
+ }
3412
+
3413
+ if (!isRight) {
3414
+ this.addPointList.splice(-1, 1);
3415
+ }
3416
+
3379
3417
  if (this.addPointList.length > 0) {
3380
- this.$emit('pointOperation', 'increasePointBatch', this.addPointList);
3418
+ this.$emit('pointOperation', 'increasePointBatch', isRight ? this.addPointList : this.addPointList.reverse());
3381
3419
  this.addPointList = [];
3382
3420
  } else {
3383
3421
  this.repaintPolyline(position, point.polylineIndex);
@@ -3403,14 +3441,14 @@ var rightClickNodeConnect = [{
3403
3441
  this.addPointList.push(data);
3404
3442
  },
3405
3443
  // 纠正线段坐标
3406
- setLinePatch: function setLinePatch(point) {
3444
+ setLinePatch: function setLinePatch(point, isRight) {
3407
3445
  var _this15 = this;
3408
3446
 
3409
3447
  var originLeft = point.originLeft,
3410
3448
  originTop = point.originTop;
3411
3449
 
3412
3450
  var _loop = function _loop(i, len) {
3413
- var _point$prePoint$left, _point$prePoint, _point$prePoint$top, _point$prePoint2, _currentPointObj$line;
3451
+ var _point$prePoint$left, _point$prePoint, _point$prePoint$top, _point$prePoint2;
3414
3452
 
3415
3453
  var currentPoint = _this15.addPointList[i];
3416
3454
  var prevPoint = _this15.addPointList[i - 1] || {
@@ -3422,15 +3460,32 @@ var rightClickNodeConnect = [{
3422
3460
  return nearlyEqual(obj.left, currentPoint.left);
3423
3461
  });
3424
3462
 
3425
- if (!nearlyEqual(currentPointObj === null || currentPointObj === void 0 ? void 0 : (_currentPointObj$line = currentPointObj.line1) === null || _currentPointObj$line === void 0 ? void 0 : _currentPointObj$line.x1, prevPoint.left)) {
3426
- var _currentPointObj$line2;
3463
+ if (isRight) {
3464
+ var _currentPointObj$line;
3427
3465
 
3428
- currentPointObj === null || currentPointObj === void 0 ? void 0 : (_currentPointObj$line2 = currentPointObj.line1) === null || _currentPointObj$line2 === void 0 ? void 0 : _currentPointObj$line2.set({
3429
- x1: prevPoint.left,
3430
- y1: prevPoint.top,
3431
- x2: currentPoint.left,
3432
- y2: currentPoint.top
3433
- });
3466
+ if (!nearlyEqual(currentPointObj === null || currentPointObj === void 0 ? void 0 : (_currentPointObj$line = currentPointObj.line1) === null || _currentPointObj$line === void 0 ? void 0 : _currentPointObj$line.x1, prevPoint.left)) {
3467
+ var _currentPointObj$line2;
3468
+
3469
+ currentPointObj === null || currentPointObj === void 0 ? void 0 : (_currentPointObj$line2 = currentPointObj.line1) === null || _currentPointObj$line2 === void 0 ? void 0 : _currentPointObj$line2.set({
3470
+ x1: prevPoint.left,
3471
+ y1: prevPoint.top,
3472
+ x2: currentPoint.left,
3473
+ y2: currentPoint.top
3474
+ });
3475
+ }
3476
+ } else {
3477
+ var _currentPointObj$line3;
3478
+
3479
+ if (!nearlyEqual(currentPointObj === null || currentPointObj === void 0 ? void 0 : (_currentPointObj$line3 = currentPointObj.line2) === null || _currentPointObj$line3 === void 0 ? void 0 : _currentPointObj$line3.x2, prevPoint.left)) {
3480
+ var _currentPointObj$line4;
3481
+
3482
+ currentPointObj === null || currentPointObj === void 0 ? void 0 : (_currentPointObj$line4 = currentPointObj.line1) === null || _currentPointObj$line4 === void 0 ? void 0 : _currentPointObj$line4.set({
3483
+ x1: currentPoint.left,
3484
+ y1: currentPoint.top,
3485
+ x2: prevPoint.left,
3486
+ y2: prevPoint.top
3487
+ });
3488
+ }
3434
3489
  }
3435
3490
  };
3436
3491
 
@@ -3439,7 +3494,7 @@ var rightClickNodeConnect = [{
3439
3494
  }
3440
3495
  },
3441
3496
  // 检查批量新增拖动过程中是否存在漏点的情况
3442
- checkPoints: function checkPoints(point) {
3497
+ checkPoints: function checkPoints(point, isRight) {
3443
3498
  var _this$addPointList2,
3444
3499
  _this16 = this;
3445
3500
 
@@ -3447,7 +3502,7 @@ var rightClickNodeConnect = [{
3447
3502
  originTop = point.originTop,
3448
3503
  left = point.left,
3449
3504
  polylineTypeId = point.polylineTypeId;
3450
- var PointLens = Math.floor((left - originLeft) / this.spaceWidth);
3505
+ var PointLens = Math.floor(Math.abs(left - originLeft) / this.spaceWidth);
3451
3506
 
3452
3507
  if (PointLens > 1 && ((_this$addPointList2 = this.addPointList) === null || _this$addPointList2 === void 0 ? void 0 : _this$addPointList2.length) <= PointLens) {
3453
3508
  var position = this.polyline[polylineTypeId].position;
@@ -3455,22 +3510,30 @@ var rightClickNodeConnect = [{
3455
3510
  for (var k = 0; k <= PointLens; k++) {
3456
3511
  if (k > 0) {
3457
3512
  (function () {
3458
- var curLeft = originLeft + _this16.spaceWidth * k; // 判断this.addPointList中的left是否包含curLeft,不包含就说明是漏了
3513
+ var spaceWidth = _this16.spaceWidth * k;
3514
+ var curLeft = isRight ? originLeft + spaceWidth : originLeft - spaceWidth; // 判断this.addPointList中的left是否包含curLeft,不包含就说明是漏了
3459
3515
 
3460
3516
  var hasPoint = _this16.addPointList.some(function (p) {
3461
3517
  return nearlyEqual(p.left, curLeft);
3462
- }); // const hasPoint = this.addPointList.some(v => v.left == curLeft);
3463
-
3518
+ });
3464
3519
 
3465
3520
  if (!hasPoint) {
3466
3521
  var index;
3467
3522
 
3468
3523
  var pointObj = _this16.addPointList.find(function (v, i) {
3469
- if (v.left > curLeft) {
3470
- index = i;
3471
- }
3524
+ if (isRight) {
3525
+ if (v.left > curLeft) {
3526
+ index = i;
3527
+ }
3472
3528
 
3473
- return v.left > curLeft;
3529
+ return v.left > curLeft;
3530
+ } else {
3531
+ if (v.left < curLeft) {
3532
+ index = i;
3533
+ }
3534
+
3535
+ return v.left < curLeft;
3536
+ }
3474
3537
  });
3475
3538
 
3476
3539
  if (pointObj) {
@@ -3479,7 +3542,7 @@ var rightClickNodeConnect = [{
3479
3542
  left: originLeft,
3480
3543
  top: originTop
3481
3544
  };
3482
- var len = ~~((pointObj.left - (curLeft - _this16.spaceWidth)) / _this16.spaceWidth);
3545
+ var len = ~~(Math.abs(pointObj.left - curLeft) / _this16.spaceWidth) + 1;
3483
3546
  var spaceHeight = (pointObj.top - prePoint.top) / len;
3484
3547
  cloneObj.top = prePoint.top + spaceHeight;
3485
3548
  cloneObj.value.time = _this16.getXValue(curLeft);
@@ -3489,7 +3552,7 @@ var rightClickNodeConnect = [{
3489
3552
 
3490
3553
  _this16.addPointList.splice(index, 0, cloneObj);
3491
3554
 
3492
- _this16.clonePoint(point, [prePoint.left, prePoint.top, cloneObj.left, cloneObj.top]);
3555
+ _this16.clonePoint(point, [prePoint.left, prePoint.top, cloneObj.left, cloneObj.top], isRight);
3493
3556
  }
3494
3557
  }
3495
3558
  })();
@@ -3498,7 +3561,27 @@ var rightClickNodeConnect = [{
3498
3561
  } // 纠正节点上的line1的坐标
3499
3562
 
3500
3563
 
3501
- this.setLinePatch(point);
3564
+ this.setLinePatch(point, isRight);
3565
+ },
3566
+ // 断点相连
3567
+ concatPoint: function concatPoint(point, target, left, top, n) {
3568
+ var targetLeft = target.left,
3569
+ targetTop = target.top;
3570
+ point.setCoords();
3571
+
3572
+ if (Math.abs(left - targetLeft) <= n && Math.abs(top - targetTop) <= n) {
3573
+ point.set({
3574
+ left: targetLeft,
3575
+ top: targetTop,
3576
+ scaleX: point.scale === 1 ? 2.5 : 0.1,
3577
+ scaleY: point.scale === 1 ? 2.5 : 0.1
3578
+ });
3579
+ } else {
3580
+ point.set({
3581
+ scaleX: point.scale,
3582
+ scaleY: point.scale
3583
+ });
3584
+ }
3502
3585
  },
3503
3586
 
3504
3587
  /**
@@ -3512,31 +3595,39 @@ var rightClickNodeConnect = [{
3512
3595
  originLeft = point.originLeft,
3513
3596
  originTop = point.originTop;
3514
3597
  var currentLeft = left;
3598
+ var isRight = currentLeft > originLeft;
3515
3599
  var startLength = this.addPointList.length;
3516
3600
  var n = Math.min(this.spaceWidth / 2, 6); // 拖动范围,在需要增加节点的刻度左右吸入的范围值
3517
3601
 
3518
- var residue = (left - originLeft) % this.spaceWidth;
3519
- var condition = residue > 0 && (residue > this.spaceWidth - n || residue < n);
3520
- var conditionNoLine2 = !point.line2 && left > originLeft;
3521
- var conditionHasLine2 = point.line2 && left > originLeft + this.spaceWidth; // if (!point.line2 && left > originLeft && condition) {
3602
+ var residue = Math.abs(left - originLeft) % this.spaceWidth;
3603
+ var condition = residue > this.spaceWidth - n || residue < n;
3604
+ var condition2 = left > originLeft + this.spaceWidth;
3605
+ var conditionHasLeftPoint = point.prevPoint && left < originLeft - this.spaceWidth;
3606
+
3607
+ if (condition && (condition2 || conditionHasLeftPoint)) {
3608
+ if (isRight) {
3609
+ if (residue > this.spaceWidth - n) left = left - residue + this.spaceWidth;
3610
+ if (residue < n) left = left - residue;
3611
+ } else {
3612
+ if (residue > this.spaceWidth - n) left = left + residue - this.spaceWidth;
3613
+ if (residue < n) left = left + residue;
3614
+ }
3522
3615
 
3523
- if (condition && (conditionNoLine2 || conditionHasLine2)) {
3524
- if (residue > this.spaceWidth - n) left = left - residue + this.spaceWidth;
3525
- if (residue < n) left = left - residue;
3526
3616
  point.set({
3527
3617
  left: left
3528
- }); // const i = Math.floor((left - originLeft) / this.spaceWidth);
3529
- // 复制点和线
3618
+ }); // 复制点和线
3619
+
3620
+ if (condition2 || conditionHasLeftPoint) {
3621
+ var _point$line5, _point$line6, _point$line7, _point$line8;
3530
3622
 
3531
- if (conditionNoLine2 || conditionHasLine2) {
3532
- // point.line1 && this.removePolyline(point.line1.id);
3533
- setPointLineColor(point, 'transparent', conditionHasLine2);
3534
- this.addPointList.length == 0 && this.clonePoint(point, [point.line1 ? point.line1.x1 : originLeft, point.line1 ? point.line1.y1 : originTop, originLeft, originTop]);
3623
+ setPointLineColor(point, 'transparent', isRight);
3624
+ var x1 = isRight ? ((_point$line5 = point.line1) === null || _point$line5 === void 0 ? void 0 : _point$line5.x1) || originLeft : ((_point$line6 = point.line2) === null || _point$line6 === void 0 ? void 0 : _point$line6.x2) || originLeft;
3625
+ var y1 = isRight ? ((_point$line7 = point.line1) === null || _point$line7 === void 0 ? void 0 : _point$line7.y1) || originTop : ((_point$line8 = point.line2) === null || _point$line8 === void 0 ? void 0 : _point$line8.y2) || originTop;
3626
+ this.addPointList.length == 0 && this.clonePoint(point, [x1, y1, originLeft, originTop]);
3535
3627
 
3536
3628
  if (this.addPointList.every(function (v) {
3537
3629
  return !nearlyEqual(v.left, left);
3538
3630
  })) {
3539
- // const points1 = i === 1 ? [originLeft, originTop] : point.prePoints;
3540
3631
  var points1 = this.addPointList.length == 0 ? [originLeft, originTop] : point.prePoints;
3541
3632
 
3542
3633
  if (points1) {
@@ -3559,33 +3650,12 @@ var rightClickNodeConnect = [{
3559
3650
  return !nearlyEqual(o.left, left);
3560
3651
  })) {
3561
3652
  this.addPointList.push(data);
3562
- this.clonePoint(point, [].concat(Object(toConsumableArray["a" /* default */])(points1), [left, top]));
3653
+ this.clonePoint(point, [].concat(Object(toConsumableArray["a" /* default */])(points1), [left, top]), isRight);
3563
3654
  }
3564
3655
  }
3565
3656
  }
3566
3657
 
3567
- this.checkPoints(point);
3568
- }
3569
- } // 断点相连
3570
-
3571
-
3572
- function concatPoint(target) {
3573
- var targetLeft = target.left,
3574
- targetTop = target.top;
3575
- point.setCoords();
3576
-
3577
- if (left >= targetLeft - n && left <= targetLeft + n && top <= targetTop + n && top >= targetTop - n) {
3578
- point.set({
3579
- left: targetLeft,
3580
- top: targetTop,
3581
- scaleX: point.scale === 1 ? 2.5 : 0.1,
3582
- scaleY: point.scale === 1 ? 2.5 : 0.1
3583
- });
3584
- } else {
3585
- point.set({
3586
- scaleX: point.scale,
3587
- scaleY: point.scale
3588
- });
3658
+ this.checkPoints(point, isRight);
3589
3659
  }
3590
3660
  } // 检查是否显示重合连线放大节点的标识
3591
3661
 
@@ -3600,12 +3670,19 @@ var rightClickNodeConnect = [{
3600
3670
  return v.bringToFront();
3601
3671
  });
3602
3672
 
3603
- if (point.nextPoint) {
3673
+ if (isRight && point.nextPoint || !isRight && point.prevPoint) {
3604
3674
  var _polylineObj$pointLis;
3605
3675
 
3606
- this._concatIndex = polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.findIndex(function (v) {
3607
- return v + n > left && v > originLeft;
3608
- });
3676
+ if (isRight) {
3677
+ this._concatIndex = polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.findIndex(function (l) {
3678
+ return l + n > left && l > originLeft;
3679
+ });
3680
+ } else {
3681
+ var idx = polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.toReversed().findIndex(function (l) {
3682
+ return l - n < left && l < originLeft;
3683
+ });
3684
+ this._concatIndex = !~idx ? -1 : (polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.length) - 1 - idx;
3685
+ }
3609
3686
 
3610
3687
  if (!~this._concatIndex) {
3611
3688
  point.set({
@@ -3613,63 +3690,116 @@ var rightClickNodeConnect = [{
3613
3690
  scaleY: point.scale
3614
3691
  });
3615
3692
  } else {
3616
- concatPoint(polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointList[this._concatIndex]);
3693
+ this.concatPoint(point, polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointList[this._concatIndex], left, top, n);
3617
3694
  }
3618
3695
 
3619
3696
  this._concatPoint = (polylineObj === null || polylineObj === void 0 ? void 0 : (_polylineObj$pointLis = polylineObj.pointList) === null || _polylineObj$pointLis === void 0 ? void 0 : _polylineObj$pointLis[this._concatIndex]) || null; // 被覆盖节点置灰配置
3620
3697
 
3621
- polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.forEach(function (v, i) {
3698
+ polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.forEach(function (l, i) {
3622
3699
  var obj = polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointList[i];
3623
3700
 
3624
- if (v > originLeft && v < left) {
3625
- var _obj$line;
3701
+ if (isRight && l > originLeft && l < left || !isRight && l < originLeft && l > left) {
3702
+ var _obj$line, _obj$line2;
3626
3703
 
3627
3704
  // 此处需要递归遍历group节点的所有子节点,然后更改其颜色
3628
3705
  resetPointColor([obj], '#999');
3629
- (_obj$line = obj.line2) === null || _obj$line === void 0 ? void 0 : _obj$line.set({
3706
+ isRight && ((_obj$line = obj.line2) === null || _obj$line === void 0 ? void 0 : _obj$line.set({
3630
3707
  stroke: '#999'
3631
- });
3708
+ }));
3709
+ !isRight && ((_obj$line2 = obj.line1) === null || _obj$line2 === void 0 ? void 0 : _obj$line2.set({
3710
+ stroke: '#999'
3711
+ }));
3632
3712
  } else {
3633
- var _obj$line2;
3713
+ var _obj$line3, _obj$line4;
3634
3714
 
3635
3715
  var _color = obj.__attrs.lineAttr.stroke;
3636
3716
  resetPointColor([obj], _color);
3637
- (_obj$line2 = obj.line2) === null || _obj$line2 === void 0 ? void 0 : _obj$line2.set({
3717
+ isRight && ((_obj$line3 = obj.line2) === null || _obj$line3 === void 0 ? void 0 : _obj$line3.set({
3638
3718
  stroke: _color
3639
- });
3719
+ }));
3720
+ !isRight && ((_obj$line4 = obj.line1) === null || _obj$line4 === void 0 ? void 0 : _obj$line4.set({
3721
+ stroke: _color
3722
+ }));
3640
3723
  }
3641
3724
  });
3642
3725
 
3643
- if ((point.line1 || point.line2) && left < originLeft + this.spaceWidth) {
3644
- setPointLineColor(point, color, true);
3726
+ if ((point.line1 || point.line2) && Math.abs(left - originLeft) < this.spaceWidth) {
3727
+ setPointLineColor(point, color, isRight);
3645
3728
  } else {
3646
- setPointLineColor(point, 'transparent', true);
3729
+ setPointLineColor(point, 'transparent', isRight);
3647
3730
  }
3648
3731
  } // 如果往回拖动则删除经过的已存在的节点
3649
3732
 
3650
3733
 
3651
- if (startLength > 0 && currentLeft <= this.addPointList[startLength - 1].left) {
3652
- this.removePolyline('increasePointBatch', left);
3653
- this.addPointList = this.addPointList.filter(function (v) {
3654
- return v.left < left;
3655
- });
3656
- var endLength = this.addPointList.length;
3734
+ if (startLength > 0) {
3735
+ if (isRight) {
3736
+ this.removeLeftClonePoint(originLeft);
3737
+ this.addPointList = this.addPointList.filter(function (v) {
3738
+ return v.left >= originLeft;
3739
+ });
3657
3740
 
3658
- if (endLength === 0) {
3659
- setPointLineColor(point, color, conditionHasLine2);
3660
- this.removePolyline('increasePointBatch', originLeft);
3661
- }
3741
+ if (this.addPointList.length > 0 && currentLeft <= this.addPointList[this.addPointList.length - 1].left) {
3742
+ this.removePolyline('increasePointBatch', left);
3743
+ this.addPointList = this.addPointList.filter(function (v) {
3744
+ return v.left < left;
3745
+ });
3746
+ var endLength = this.addPointList.length;
3662
3747
 
3663
- if (endLength > 0) {
3664
- point.set({
3665
- prePoints: [this.addPointList[endLength - 1].left, this.addPointList[endLength - 1].top]
3748
+ if (endLength === 0) {
3749
+ setPointLineColor(point, color, isRight);
3750
+ this.removePolyline('increasePointBatch', originLeft);
3751
+ }
3752
+
3753
+ if (endLength > 0) {
3754
+ point.set({
3755
+ prePoints: [this.addPointList[endLength - 1].left, this.addPointList[endLength - 1].top]
3756
+ });
3757
+ }
3758
+ }
3759
+ } else {
3760
+ this.removePolyline('increasePointBatch', originLeft);
3761
+ this.addPointList = this.addPointList.filter(function (v) {
3762
+ return v.left <= originLeft;
3666
3763
  });
3764
+
3765
+ if (this.addPointList.length > 0 && currentLeft >= this.addPointList[this.addPointList.length - 1].left) {
3766
+ this.removeLeftClonePoint(left);
3767
+ this.addPointList = this.addPointList.filter(function (v) {
3768
+ return v.left > left;
3769
+ });
3770
+ var _endLength = this.addPointList.length;
3771
+
3772
+ if (_endLength === 0) {
3773
+ setPointLineColor(point, color, isRight);
3774
+ this.removeLeftClonePoint(originLeft);
3775
+ }
3776
+
3777
+ if (_endLength > 0) {
3778
+ point.set({
3779
+ prePoints: [this.addPointList[_endLength - 1].left, this.addPointList[_endLength - 1].top]
3780
+ });
3781
+ }
3782
+ }
3667
3783
  }
3668
3784
  }
3669
3785
  },
3670
- clonePoint: function clonePoint(point, points) {
3786
+ removeLeftClonePoint: function removeLeftClonePoint(left) {
3671
3787
  var _this17 = this;
3672
3788
 
3789
+ this.addPointObjList.forEach(function (obj) {
3790
+ if (obj.left <= left) {
3791
+ _this17.canvas.remove(obj);
3792
+
3793
+ obj.line2 && _this17.canvas.remove(obj.line2);
3794
+ }
3795
+ });
3796
+ this.addPointObjList = this.addPointObjList.filter(function (obj) {
3797
+ return obj.left > left;
3798
+ });
3799
+ },
3800
+ clonePoint: function clonePoint(point, points, isRight) {
3801
+ var _this18 = this;
3802
+
3673
3803
  var lineIndex = point.lineIndex,
3674
3804
  polylineIndex = point.polylineIndex,
3675
3805
  lineAttr = point.lineAttr,
@@ -3690,7 +3820,7 @@ var rightClickNodeConnect = [{
3690
3820
  clonedObj.hasControls = clonedObj.hasBorders = false;
3691
3821
  point.prePoints = [point.left, point.top];
3692
3822
 
3693
- var line = _this17.drawLine(Object(toConsumableArray["a" /* default */])(points), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
3823
+ var line = _this18.drawLine(Object(toConsumableArray["a" /* default */])(points), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
3694
3824
  evented: false,
3695
3825
  selectable: false
3696
3826
  }, currentLineAttr), {}, {
@@ -3699,15 +3829,19 @@ var rightClickNodeConnect = [{
3699
3829
  lineIndex: lineIndex
3700
3830
  }));
3701
3831
 
3702
- clonedObj.line1 = line;
3832
+ if (isRight) {
3833
+ clonedObj.line1 = line;
3834
+ } else {
3835
+ clonedObj.line2 = line;
3836
+ }
3703
3837
 
3704
- _this17.canvas.add(clonedObj);
3838
+ _this18.canvas.add(clonedObj);
3705
3839
 
3706
- _this17.canvas.sendBackwards(line);
3840
+ _this18.canvas.sendBackwards(line);
3707
3841
 
3708
3842
  clonedObj.bringForward();
3709
3843
 
3710
- _this17.addPointObjList.push(clonedObj);
3844
+ _this18.addPointObjList.push(clonedObj);
3711
3845
  });
3712
3846
  },
3713
3847
  getValue: function getValue(point) {
@@ -3822,7 +3956,7 @@ var rightClickNodeConnect = [{
3822
3956
  },
3823
3957
  // 打开右键菜单
3824
3958
  openRightModal: function openRightModal() {
3825
- var _this18 = this;
3959
+ var _this19 = this;
3826
3960
 
3827
3961
  if (this.timeRangeData.enabled) return;
3828
3962
  var _this$activeEvent$e = this.activeEvent.e,
@@ -3838,10 +3972,10 @@ var rightClickNodeConnect = [{
3838
3972
  var target = this.activeEvent.target;
3839
3973
  var id = (target === null || target === void 0 ? void 0 : target.id) || '';
3840
3974
  this.$nextTick(function () {
3841
- var operable = _this18.propItems.operable;
3975
+ var operable = _this19.propItems.operable;
3842
3976
 
3843
3977
  if (id && id.includes('_polylinePoint_')) {
3844
- _this18._currentPoint = target;
3978
+ _this19._currentPoint = target;
3845
3979
  var nodeConnect = [];
3846
3980
 
3847
3981
  if (operable.connect) {
@@ -3858,21 +3992,21 @@ var rightClickNodeConnect = [{
3858
3992
  }
3859
3993
  }
3860
3994
 
3861
- _this18.rightClickNode = Object.freeze(rightClickNode.slice(0, 1).concat(nodeConnect).concat(rightClickNode.slice(-1)));
3862
- _this18.isRightVisible = true;
3995
+ _this19.rightClickNode = Object.freeze(rightClickNode.slice(0, 1).concat(nodeConnect).concat(rightClickNode.slice(-1)));
3996
+ _this19.isRightVisible = true;
3863
3997
  } else if (!id) {
3864
- _this18._currentPoint = null;
3865
- _this18.rightClickNode = rightClickNode.slice(0, 1);
3998
+ _this19._currentPoint = null;
3999
+ _this19.rightClickNode = rightClickNode.slice(0, 1);
3866
4000
  ['set', 'detail'].forEach(function (key) {
3867
4001
  if (operable[key]) {
3868
4002
  var item = rightClickNode.find(function (node) {
3869
4003
  return node.type === key;
3870
4004
  });
3871
4005
 
3872
- _this18.rightClickNode.push(item);
4006
+ _this19.rightClickNode.push(item);
3873
4007
  }
3874
4008
  });
3875
- _this18.isRightVisible = true;
4009
+ _this19.isRightVisible = true;
3876
4010
  }
3877
4011
  });
3878
4012
  },
@@ -3939,16 +4073,16 @@ var rightClickNodeConnect = [{
3939
4073
  // 将当条线段以及点层级置顶
3940
4074
  // 线段不能先置顶,会挡住其他线段上的点
3941
4075
  pointToFront: function pointToFront(point) {
3942
- var _this19 = this;
4076
+ var _this20 = this;
3943
4077
 
3944
4078
  this.canvas.forEachObject(function (obj) {
3945
- if (_this19.isOnePolyLine(obj, point.polylineTypeId, point.polylineIndex)) {
3946
- _this19.canvas.bringToFront(obj);
4079
+ if (_this20.isOnePolyLine(obj, point.polylineTypeId, point.polylineIndex)) {
4080
+ _this20.canvas.bringToFront(obj);
3947
4081
  }
3948
4082
  });
3949
4083
  },
3950
4084
  removePolyline: function removePolyline(id, left, position, polylineIndex) {
3951
- var _this20 = this;
4085
+ var _this21 = this;
3952
4086
 
3953
4087
  // 根据id或者idClone删除
3954
4088
  if (id) {
@@ -3957,9 +4091,9 @@ var rightClickNodeConnect = [{
3957
4091
  if (pointId === 'idClone') {
3958
4092
  this.addPointObjList.forEach(function (obj) {
3959
4093
  if (obj.left >= left) {
3960
- _this20.canvas.remove(obj);
4094
+ _this21.canvas.remove(obj);
3961
4095
 
3962
- obj.line1 && _this20.canvas.remove(obj.line1);
4096
+ obj.line1 && _this21.canvas.remove(obj.line1);
3963
4097
  }
3964
4098
  });
3965
4099
  this.addPointObjList = this.addPointObjList.filter(function (obj) {
@@ -3973,9 +4107,9 @@ var rightClickNodeConnect = [{
3973
4107
  if (point && point.length > 0) {
3974
4108
  point.forEach(function (v) {
3975
4109
  if (!left) {
3976
- _this20.canvas.remove(v);
4110
+ _this21.canvas.remove(v);
3977
4111
 
3978
- v.line1 && _this20.canvas.remove(v.line1);
4112
+ v.line1 && _this21.canvas.remove(v.line1);
3979
4113
  }
3980
4114
  });
3981
4115
  }
@@ -3990,12 +4124,12 @@ var rightClickNodeConnect = [{
3990
4124
  return v.position === position;
3991
4125
  });
3992
4126
  this.canvas.forEachObject(function (obj) {
3993
- if (_this20.isOnePolyLine(obj, polylineTypeId, polylineIndex)) {
3994
- obj.text && _this20.canvas.remove(obj.text);
3995
- obj.line1 && _this20.canvas.remove(obj.line1);
3996
- obj.line2 && _this20.canvas.remove(obj.line2);
4127
+ if (_this21.isOnePolyLine(obj, polylineTypeId, polylineIndex)) {
4128
+ obj.text && _this21.canvas.remove(obj.text);
4129
+ obj.line1 && _this21.canvas.remove(obj.line1);
4130
+ obj.line2 && _this21.canvas.remove(obj.line2);
3997
4131
 
3998
- _this20.canvas.remove(obj);
4132
+ _this21.canvas.remove(obj);
3999
4133
  }
4000
4134
  });
4001
4135
  return;
@@ -4004,9 +4138,9 @@ var rightClickNodeConnect = [{
4004
4138
 
4005
4139
  this.canvas.forEachObject(function (obj) {
4006
4140
  if (obj.id && /_polyline(Point|Line)_/.test(obj.id) && !obj.id.includes('isTitle')) {
4007
- obj.text && _this20.canvas.remove(obj.text);
4141
+ obj.text && _this21.canvas.remove(obj.text);
4008
4142
 
4009
- _this20.canvas.remove(obj);
4143
+ _this21.canvas.remove(obj);
4010
4144
  }
4011
4145
  });
4012
4146
  },
@@ -4017,7 +4151,7 @@ var rightClickNodeConnect = [{
4017
4151
  }
4018
4152
  },
4019
4153
  repaintPolyline: function repaintPolyline(position, dadaIndex) {
4020
- var _this21 = this;
4154
+ var _this22 = this;
4021
4155
 
4022
4156
  if (arguments.length < 2) {
4023
4157
  if (this.polyline.length) {
@@ -4027,7 +4161,7 @@ var rightClickNodeConnect = [{
4027
4161
  this.polylinePointList = [];
4028
4162
  this.flickerablePoints = [];
4029
4163
  this.polyline.forEach(function (polylineType, polylineTypeId) {
4030
- _this21.createPolyline(polylineType, polylineTypeId);
4164
+ _this22.createPolyline(polylineType, polylineTypeId);
4031
4165
  });
4032
4166
  this.removeTitle();
4033
4167
  this.drawPolylineTitle();
@@ -4057,8 +4191,8 @@ var rightClickNodeConnect = [{
4057
4191
 
4058
4192
  var FabricPolylines_component = Object(componentNormalizer["a" /* default */])(
4059
4193
  fabric_chart_FabricPolylinesvue_type_script_lang_js_,
4060
- FabricPolylinesvue_type_template_id_6769ab15_render,
4061
- FabricPolylinesvue_type_template_id_6769ab15_staticRenderFns,
4194
+ FabricPolylinesvue_type_template_id_56585a2b_render,
4195
+ FabricPolylinesvue_type_template_id_56585a2b_staticRenderFns,
4062
4196
  false,
4063
4197
  null,
4064
4198
  null,
@@ -4164,7 +4298,7 @@ var FabricGrid_component = Object(componentNormalizer["a" /* default */])(
4164
4298
  )
4165
4299
 
4166
4300
  /* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
4167
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9441c33a-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=adfb5518&
4301
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70f3d6c1-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=adfb5518&
4168
4302
  var FabricTextGroupvue_type_template_id_adfb5518_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)}
4169
4303
  var FabricTextGroupvue_type_template_id_adfb5518_staticRenderFns = []
4170
4304
 
@@ -5877,14 +6011,14 @@ var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
5877
6011
  )
5878
6012
 
5879
6013
  /* harmony default export */ var FabricTextGroup = (FabricTextGroup_component.exports);
5880
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9441c33a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
6014
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70f3d6c1-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
5881
6015
  var FabricScaleValuevue_type_template_id_68258044_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.show)?_c('TimeScaleValue',{attrs:{"times":_vm.timeList,"templateData":_vm.templateData}}):_vm._e()}
5882
6016
  var FabricScaleValuevue_type_template_id_68258044_staticRenderFns = []
5883
6017
 
5884
6018
 
5885
6019
  // CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
5886
6020
 
5887
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9441c33a-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=0aa2f038&scoped=true&
6021
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70f3d6c1-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=0aa2f038&scoped=true&
5888
6022
  var TimeScaleValuevue_type_template_id_0aa2f038_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)}
5889
6023
  var TimeScaleValuevue_type_template_id_0aa2f038_scoped_true_staticRenderFns = []
5890
6024
 
@@ -6268,7 +6402,7 @@ var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
6268
6402
  )
6269
6403
 
6270
6404
  /* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
6271
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9441c33a-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=74aef744&
6405
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70f3d6c1-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=74aef744&
6272
6406
  var FabricLinesvue_type_template_id_74aef744_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)}
6273
6407
  var FabricLinesvue_type_template_id_74aef744_staticRenderFns = []
6274
6408