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