cnhis-design-vue 2.1.16 → 2.1.19
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 +2219 -2219
- package/es/affix/index.js +8 -8
- package/es/age/index.js +10 -10
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +167 -153
- package/es/big-table/style.css +1 -1
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +60 -54
- package/es/button/style.css +1 -1
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +9 -9
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +1 -1
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +8 -8
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +3 -3
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +480 -376
- package/es/fabric-chart/style.css +1 -1
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +62 -62
- package/es/index/index.js +1181 -1041
- package/es/index/style.css +1 -1
- package/es/input/index.js +9 -9
- package/es/input-number/index.js +8 -8
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +9 -9
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +92 -92
- package/es/multi-chat-client/index.js +86 -86
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +14 -14
- package/es/multi-chat-setting/index.js +81 -66
- package/es/multi-chat-setting/style.css +1 -1
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-view/index.js +33 -33
- package/es/select/index.js +11 -11
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +20 -20
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +171 -164
- package/es/table-filter/style.css +1 -1
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +1253 -1113
- package/lib/cui.umd.js +1253 -1113
- package/lib/cui.umd.min.js +80 -80
- package/package.json +107 -107
- package/packages/big-table/src/BigTable.vue +3039 -3038
- package/packages/big-table/src/assets/style/table-base.less +370 -370
- package/packages/big-table/src/components/AutoLayoutButton.vue +270 -270
- package/packages/big-table/src/utils/batchEditing.js +34 -27
- package/packages/big-table/src/utils/bigTableProps.js +95 -95
- package/packages/button/src/ButtonPrint/components/IdentityVerification.vue +181 -181
- package/packages/button/src/ButtonPrint/index.vue +728 -724
- package/packages/button/src/ButtonPrint/js/print.es.min.js +1 -1
- package/packages/fabric-chart/src/FabricChart.vue +15 -36
- package/packages/fabric-chart/src/components/TimeScaleValue.vue +113 -117
- package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
- package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +4 -3
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +1035 -960
- package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +135 -133
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +558 -558
- package/packages/fabric-chart/src/fabric-chart2/FabricTop.vue +172 -172
- package/packages/fabric-chart/src/mixins/draw.js +70 -62
- package/packages/fabric-chart/src/mixins/eventCommon.js +9 -10
- package/packages/multi-chat/chat/chatFooter.vue +1598 -1598
- package/packages/multi-chat/chat/chatMain.vue +1442 -1442
- package/packages/multi-chat/chat/quickReply.vue +439 -439
- package/packages/multi-chat/chat/scrollList.vue +1232 -1232
- package/packages/multi-chat/setting/baseInfo/index.vue +1316 -1302
- package/packages/multi-chat/store/actions.js +448 -448
- package/packages/multi-chat/store/state.js +112 -112
- package/packages/scale-view/formitem/r-choice.vue +714 -714
- package/packages/scale-view/scaleView.vue +2010 -2010
- package/packages/select-person/select-person.vue +1658 -1658
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +2462 -2462
- package/packages/table-filter/src/components/c-tree-select/tree-select.vue +336 -336
- package/packages/table-filter/src/components/multi-select/multi-select.vue +219 -219
- package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +340 -340
- package/packages/table-filter/src/components/search-condition/SearchCondition.vue +3 -2
- package/packages/table-filter/src/const/dataOptions.js +43 -43
- package/packages/table-filter/src/mixins/mixins.js +695 -695
- package/packages/table-filter/src/quick-search/QuickSearch.vue +2083 -2083
- package/src/directive/preventReClick.js +12 -12
package/es/fabric-chart/index.js
CHANGED
|
@@ -299,12 +299,12 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
299
299
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
300
300
|
var es_function_name_js_ = __webpack_require__("db0a");
|
|
301
301
|
|
|
302
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
303
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-fabric-chart",style:({
|
|
302
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3fd9a2cc-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=cb500674&scoped=true&
|
|
303
|
+
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(("FabricCanvas" + (_vm.templateData.type || '')),{ref:"canvasEle",tag:"component",attrs:{"id":_vm.id,"templateData":_vm.templateData}},[(_vm.templateData.type)?[_c('fabric-grid'),_c('fabric-top2',{attrs:{"templateData":_vm.templateData}}),_c('fabric-left2',{attrs:{"templateData":_vm.templateData}}),_c('fabric-right2',{attrs:{"templateData":_vm.templateData}}),_c('fabric-bottom2',{attrs:{"templateData":_vm.templateData}}),_c('fabric-center2',_vm._g({attrs:{"other":_vm.templateData.other,"polyline":_vm.templateData.left.leftYScalevalue},on:{"pointOperation":_vm.pointOperation}},_vm.$listeners))]:[(_vm.hasXScalevalue)?_c('fabric-text-group',_vm._g({attrs:{"templateData":_vm.templateData}},_vm.$listeners)):_vm._e(),_c('fabric-grid'),(_vm.hasTable)?_c('fabric-scale-value',{attrs:{"templateData":_vm.templateData}}):_vm._e(),(_vm.hasTopTable)?_c('fabric-lines',_vm._g({ref:"lines",attrs:{"linesObj":_vm.templateData.top}},_vm.$listeners)):_vm._e(),(_vm.hasTable)?_c('fabric-polylines',_vm._g({ref:"polylines",attrs:{"polyline":_vm.polylines,"other":_vm.templateData.left.other || {}},on:{"pointOperation":_vm.pointOperation}},_vm.$listeners)):_vm._e()]],2):_vm._e()],1)}
|
|
304
304
|
var staticRenderFns = []
|
|
305
305
|
|
|
306
306
|
|
|
307
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=
|
|
307
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=cb500674&scoped=true&
|
|
308
308
|
|
|
309
309
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
310
310
|
var objectSpread2 = __webpack_require__("5530");
|
|
@@ -312,12 +312,12 @@ var objectSpread2 = __webpack_require__("5530");
|
|
|
312
312
|
// EXTERNAL MODULE: ./src/core/create.js
|
|
313
313
|
var create = __webpack_require__("8aef");
|
|
314
314
|
|
|
315
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
316
|
-
var
|
|
317
|
-
var
|
|
315
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3fd9a2cc-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=8b6630b2&
|
|
316
|
+
var FabricCanvasvue_type_template_id_8b6630b2_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)}
|
|
317
|
+
var FabricCanvasvue_type_template_id_8b6630b2_staticRenderFns = []
|
|
318
318
|
|
|
319
319
|
|
|
320
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=
|
|
320
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=8b6630b2&
|
|
321
321
|
|
|
322
322
|
// EXTERNAL MODULE: external "core-js/modules/es.array.map.js"
|
|
323
323
|
var es_array_map_js_ = __webpack_require__("4391");
|
|
@@ -506,11 +506,12 @@ var defaultVaule_data = {
|
|
|
506
506
|
} catch (error) {
|
|
507
507
|
console.warn(error);
|
|
508
508
|
}
|
|
509
|
-
}
|
|
509
|
+
} // if (!this.templateData.left || !this.templateData.right) {
|
|
510
|
+
|
|
510
511
|
|
|
511
|
-
if (!this.templateData.left
|
|
512
|
+
if (!this.templateData.left) {
|
|
512
513
|
try {
|
|
513
|
-
throw new Error('
|
|
514
|
+
throw new Error('缺少左侧数据对象, 无法生成垂直方向刻度');
|
|
514
515
|
} catch (error) {
|
|
515
516
|
console.warn(error);
|
|
516
517
|
}
|
|
@@ -568,11 +569,11 @@ var defaultVaule_data = {
|
|
|
568
569
|
return topHeight + residue + (((_this$templateData$to9 = this.templateData.top) === null || _this$templateData$to9 === void 0 ? void 0 : _this$templateData$to9.spaceHeight) || defaultVaule.topSpaceHeight);
|
|
569
570
|
},
|
|
570
571
|
endX: function endX() {
|
|
571
|
-
var _this$templateData$ri;
|
|
572
|
+
var _this$templateData$ri, _this$templateData$ri2;
|
|
572
573
|
|
|
573
574
|
// 网格区域水平方向最大坐标值, 也是整个画布右侧列表坐标起始值,网格右下角x轴坐标值
|
|
574
575
|
if (!this.templateData.right && !this.topTotal) return this.templateData.canvasWidth;
|
|
575
|
-
return this.templateData.canvasWidth - ((
|
|
576
|
+
return this.templateData.canvasWidth - ((_this$templateData$ri = (_this$templateData$ri2 = this.templateData.right) === null || _this$templateData$ri2 === void 0 ? void 0 : _this$templateData$ri2.width) !== null && _this$templateData$ri !== void 0 ? _this$templateData$ri : 20) - this.topTotal.width;
|
|
576
577
|
},
|
|
577
578
|
endY: function endY() {
|
|
578
579
|
// 画布高度 - 底部列表高度 ,网格右下角y轴坐标值
|
|
@@ -649,10 +650,10 @@ var defaultVaule_data = {
|
|
|
649
650
|
},
|
|
650
651
|
// y轴每摄氏度的高度值
|
|
651
652
|
yScaleCellRight: function yScaleCellRight() {
|
|
652
|
-
var _this$templateData$
|
|
653
|
+
var _this$templateData$ri3, _this$templateData$ri4, _this$templateData$ri5, _this$templateData$ri6;
|
|
653
654
|
|
|
654
|
-
var list = ((_this$templateData$
|
|
655
|
-
return list !== null && list !== void 0 && list.length ? this.yCellHeight / ((parseInt(list[1]) - parseInt(list[0])) / (((_this$templateData$
|
|
655
|
+
var list = ((_this$templateData$ri3 = this.templateData.right) === null || _this$templateData$ri3 === void 0 ? void 0 : (_this$templateData$ri4 = _this$templateData$ri3.rightYScalevalue) === null || _this$templateData$ri4 === void 0 ? void 0 : _this$templateData$ri4.list) || [];
|
|
656
|
+
return list !== null && list !== void 0 && list.length ? this.yCellHeight / ((parseInt(list[1]) - parseInt(list[0])) / (((_this$templateData$ri5 = this.templateData.right) === null || _this$templateData$ri5 === void 0 ? void 0 : (_this$templateData$ri6 = _this$templateData$ri5.rightYScalevalue) === null || _this$templateData$ri6 === void 0 ? void 0 : _this$templateData$ri6.spaceGridNumber) || defaultVaule.rightSpaceGridNumber)) : 10;
|
|
656
657
|
},
|
|
657
658
|
eventStyle: function eventStyle() {
|
|
658
659
|
var _this$templateData$ta;
|
|
@@ -787,8 +788,8 @@ var componentNormalizer = __webpack_require__("2877");
|
|
|
787
788
|
|
|
788
789
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
789
790
|
fabric_chart_FabricCanvasvue_type_script_lang_js_,
|
|
790
|
-
|
|
791
|
-
|
|
791
|
+
FabricCanvasvue_type_template_id_8b6630b2_render,
|
|
792
|
+
FabricCanvasvue_type_template_id_8b6630b2_staticRenderFns,
|
|
792
793
|
false,
|
|
793
794
|
null,
|
|
794
795
|
null,
|
|
@@ -797,7 +798,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
797
798
|
)
|
|
798
799
|
|
|
799
800
|
/* harmony default export */ var FabricCanvas = (component.exports);
|
|
800
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
801
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3fd9a2cc-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-chart2/FabricCanvas.vue?vue&type=template&id=d9708486&
|
|
801
802
|
var FabricCanvasvue_type_template_id_d9708486_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)}
|
|
802
803
|
var FabricCanvasvue_type_template_id_d9708486_staticRenderFns = []
|
|
803
804
|
|
|
@@ -1037,12 +1038,12 @@ var FabricCanvas_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1037
1038
|
)
|
|
1038
1039
|
|
|
1039
1040
|
/* harmony default export */ var fabric_chart2_FabricCanvas = (FabricCanvas_component.exports);
|
|
1040
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1041
|
-
var
|
|
1042
|
-
var
|
|
1041
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3fd9a2cc-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=638600a8&
|
|
1042
|
+
var FabricPolylinesvue_type_template_id_638600a8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"poly-line"},[(_vm.isRightVisible)?_c('MouseRightClick',{attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}):_vm._e(),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
1043
|
+
var FabricPolylinesvue_type_template_id_638600a8_staticRenderFns = []
|
|
1043
1044
|
|
|
1044
1045
|
|
|
1045
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=
|
|
1046
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=638600a8&
|
|
1046
1047
|
|
|
1047
1048
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
1048
1049
|
var arrayWithHoles = __webpack_require__("0d21");
|
|
@@ -1106,15 +1107,15 @@ var es_array_splice_js_ = __webpack_require__("f3b8");
|
|
|
1106
1107
|
// EXTERNAL MODULE: external "core-js/modules/es.array.slice.js"
|
|
1107
1108
|
var es_array_slice_js_ = __webpack_require__("ea12");
|
|
1108
1109
|
|
|
1110
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.find-index.js"
|
|
1111
|
+
var es_array_find_index_js_ = __webpack_require__("4c7f");
|
|
1112
|
+
|
|
1109
1113
|
// EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
|
|
1110
1114
|
var es_regexp_to_string_js_ = __webpack_require__("30df");
|
|
1111
1115
|
|
|
1112
1116
|
// EXTERNAL MODULE: external "core-js/modules/es.object.freeze.js"
|
|
1113
1117
|
var es_object_freeze_js_ = __webpack_require__("030b");
|
|
1114
1118
|
|
|
1115
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.find-index.js"
|
|
1116
|
-
var es_array_find_index_js_ = __webpack_require__("4c7f");
|
|
1117
|
-
|
|
1118
1119
|
// EXTERNAL MODULE: external "vxe-table"
|
|
1119
1120
|
var external_vxe_table_ = __webpack_require__("f906");
|
|
1120
1121
|
|
|
@@ -1448,11 +1449,12 @@ var type_isObject = function isObject(obj) {
|
|
|
1448
1449
|
while (1) {
|
|
1449
1450
|
switch (_context.prev = _context.next) {
|
|
1450
1451
|
case 0:
|
|
1452
|
+
data.hoverCursor = 'pointer';
|
|
1451
1453
|
_context.t0 = type;
|
|
1452
|
-
_context.next = _context.t0 === 'triangle' ?
|
|
1454
|
+
_context.next = _context.t0 === 'triangle' ? 4 : _context.t0 === 'circle' ? 5 : _context.t0 === 'img' ? 6 : _context.t0 === 'arrow' ? 9 : _context.t0 === '+' ? 10 : _context.t0 === 'shjs' ? 11 : _context.t0 === 'shks' ? 14 : _context.t0 === 'cg' ? 17 : _context.t0 === 'jxtq' ? 20 : 21;
|
|
1453
1455
|
break;
|
|
1454
1456
|
|
|
1455
|
-
case
|
|
1457
|
+
case 4:
|
|
1456
1458
|
return _context.abrupt("return", new _this.fabric.Triangle(Object(objectSpread2["a" /* default */])({
|
|
1457
1459
|
width: 20,
|
|
1458
1460
|
height: 20,
|
|
@@ -1460,7 +1462,7 @@ var type_isObject = function isObject(obj) {
|
|
|
1460
1462
|
scale: 1
|
|
1461
1463
|
}, data)));
|
|
1462
1464
|
|
|
1463
|
-
case
|
|
1465
|
+
case 5:
|
|
1464
1466
|
return _context.abrupt("return", new _this.fabric.Circle(Object(objectSpread2["a" /* default */])({
|
|
1465
1467
|
objectCaching: false,
|
|
1466
1468
|
strokeWidth: 1,
|
|
@@ -1468,8 +1470,8 @@ var type_isObject = function isObject(obj) {
|
|
|
1468
1470
|
scale: 1
|
|
1469
1471
|
}, data)));
|
|
1470
1472
|
|
|
1471
|
-
case
|
|
1472
|
-
_context.next =
|
|
1473
|
+
case 6:
|
|
1474
|
+
_context.next = 8;
|
|
1473
1475
|
return new Promise(function (resolve, reject) {
|
|
1474
1476
|
var common = Object(objectSpread2["a" /* default */])({
|
|
1475
1477
|
originX: 'center',
|
|
@@ -1498,16 +1500,16 @@ var type_isObject = function isObject(obj) {
|
|
|
1498
1500
|
}
|
|
1499
1501
|
});
|
|
1500
1502
|
|
|
1501
|
-
case
|
|
1503
|
+
case 8:
|
|
1502
1504
|
return _context.abrupt("return", _context.sent);
|
|
1503
1505
|
|
|
1504
|
-
case
|
|
1506
|
+
case 9:
|
|
1505
1507
|
return _context.abrupt("return", _this.createArrow(data));
|
|
1506
1508
|
|
|
1507
|
-
case
|
|
1509
|
+
case 10:
|
|
1508
1510
|
return _context.abrupt("return", _this.createAdd(data));
|
|
1509
1511
|
|
|
1510
|
-
case
|
|
1512
|
+
case 11:
|
|
1511
1513
|
obj1 = _this.createAdd(data);
|
|
1512
1514
|
obj2 = _this.createCircleBorder(data);
|
|
1513
1515
|
return _context.abrupt("return", new _this.fabric.Group([obj2, obj1], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
@@ -1516,7 +1518,7 @@ var type_isObject = function isObject(obj) {
|
|
|
1516
1518
|
angle: 0
|
|
1517
1519
|
})));
|
|
1518
1520
|
|
|
1519
|
-
case
|
|
1521
|
+
case 14:
|
|
1520
1522
|
obj1 = new _this.fabric.Circle({
|
|
1521
1523
|
objectCaching: false,
|
|
1522
1524
|
radius: data.width / 5,
|
|
@@ -1531,17 +1533,17 @@ var type_isObject = function isObject(obj) {
|
|
|
1531
1533
|
scale: 1
|
|
1532
1534
|
}, data)));
|
|
1533
1535
|
|
|
1534
|
-
case
|
|
1536
|
+
case 17:
|
|
1535
1537
|
obj1 = _this.ceateLineArrow(data);
|
|
1536
1538
|
obj2 = _this.createCircleBorder(data);
|
|
1537
1539
|
return _context.abrupt("return", new _this.fabric.Group([obj2, obj1], Object(objectSpread2["a" /* default */])({
|
|
1538
1540
|
scale: 1
|
|
1539
1541
|
}, data)));
|
|
1540
1542
|
|
|
1541
|
-
case
|
|
1543
|
+
case 20:
|
|
1542
1544
|
return _context.abrupt("return", _this.createJXTQ(data));
|
|
1543
1545
|
|
|
1544
|
-
case
|
|
1546
|
+
case 21:
|
|
1545
1547
|
// 文字(默认:比如 type === x)
|
|
1546
1548
|
data.stroke && delete data.stroke;
|
|
1547
1549
|
return _context.abrupt("return", new _this.fabric.Text(String(type), Object(objectSpread2["a" /* default */])({
|
|
@@ -1551,7 +1553,7 @@ var type_isObject = function isObject(obj) {
|
|
|
1551
1553
|
fill: '#000'
|
|
1552
1554
|
}, data)));
|
|
1553
1555
|
|
|
1554
|
-
case
|
|
1556
|
+
case 23:
|
|
1555
1557
|
case "end":
|
|
1556
1558
|
return _context.stop();
|
|
1557
1559
|
}
|
|
@@ -1576,18 +1578,26 @@ var type_isObject = function isObject(obj) {
|
|
|
1576
1578
|
methods: {
|
|
1577
1579
|
// 折线点移动限制 目前仅限制不能移动出画布
|
|
1578
1580
|
pointMoveLimit: function pointMoveLimit(point) {
|
|
1581
|
+
var _point$prevPoint, _point$nextPoint;
|
|
1582
|
+
|
|
1583
|
+
var isLimit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
1579
1584
|
point.setCoords(); // 需调用setCoords()才能重新计算控制位置(改变Object状态)
|
|
1580
1585
|
// const objBoundingBox = point.getBoundingRect(); // 此方式会导致结果不精准,应该用point的top值判断
|
|
1581
1586
|
|
|
1582
|
-
var
|
|
1583
|
-
|
|
1587
|
+
var _this$propItems = this.propItems,
|
|
1588
|
+
originX = _this$propItems.originX,
|
|
1589
|
+
endX = _this$propItems.endX,
|
|
1590
|
+
originY = _this$propItems.originY,
|
|
1591
|
+
endY = _this$propItems.endY;
|
|
1592
|
+
var leftLimit = ((_point$prevPoint = point.prevPoint) === null || _point$prevPoint === void 0 ? void 0 : _point$prevPoint.get('left')) || originX;
|
|
1593
|
+
var rightLimit = isLimit && ((_point$nextPoint = point.nextPoint) === null || _point$nextPoint === void 0 ? void 0 : _point$nextPoint.get('left')) || endX;
|
|
1584
1594
|
|
|
1585
|
-
if (point.top <
|
|
1586
|
-
point.set('top',
|
|
1595
|
+
if (point.top < originY) {
|
|
1596
|
+
point.set('top', originY);
|
|
1587
1597
|
}
|
|
1588
1598
|
|
|
1589
|
-
if (point.top >
|
|
1590
|
-
point.set('top',
|
|
1599
|
+
if (point.top > endY) {
|
|
1600
|
+
point.set('top', endY);
|
|
1591
1601
|
}
|
|
1592
1602
|
|
|
1593
1603
|
if (point.left < leftLimit) {
|
|
@@ -1648,7 +1658,7 @@ var type_isObject = function isObject(obj) {
|
|
|
1648
1658
|
}
|
|
1649
1659
|
}
|
|
1650
1660
|
});
|
|
1651
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1661
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3fd9a2cc-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&
|
|
1652
1662
|
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)])}
|
|
1653
1663
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_staticRenderFns = []
|
|
1654
1664
|
|
|
@@ -1756,7 +1766,7 @@ var MouseRightClick_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1756
1766
|
)
|
|
1757
1767
|
|
|
1758
1768
|
/* harmony default export */ var MouseRightClick = (MouseRightClick_component.exports);
|
|
1759
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1769
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3fd9a2cc-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&
|
|
1760
1770
|
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)])}
|
|
1761
1771
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_staticRenderFns = []
|
|
1762
1772
|
|
|
@@ -1958,7 +1968,11 @@ var rightClickNodeConnect = [{
|
|
|
1958
1968
|
// 快速新增的节点list
|
|
1959
1969
|
isSelectArea: false,
|
|
1960
1970
|
// 是否正在选区
|
|
1961
|
-
selectArea: null
|
|
1971
|
+
selectArea: null,
|
|
1972
|
+
// 选区矩形对象
|
|
1973
|
+
currentDelPoint: null,
|
|
1974
|
+
// 缓存当前可批量删除的项目线段上的点
|
|
1975
|
+
polylinePointList: [] // 缓存折线项目节点
|
|
1962
1976
|
|
|
1963
1977
|
};
|
|
1964
1978
|
},
|
|
@@ -1969,21 +1983,23 @@ var rightClickNodeConnect = [{
|
|
|
1969
1983
|
},
|
|
1970
1984
|
watch: {},
|
|
1971
1985
|
mounted: function mounted() {
|
|
1972
|
-
var
|
|
1986
|
+
var _this2 = this;
|
|
1973
1987
|
|
|
1974
1988
|
this.$nextTick(function () {
|
|
1975
|
-
|
|
1989
|
+
_this2.drawPolylineTitle();
|
|
1990
|
+
|
|
1991
|
+
_this2.polylinePointList = [];
|
|
1976
1992
|
|
|
1977
|
-
|
|
1978
|
-
|
|
1993
|
+
_this2.polyline.forEach(function (polylineType, polylineTypeId) {
|
|
1994
|
+
_this2.createPolyline(polylineType, polylineTypeId);
|
|
1979
1995
|
});
|
|
1980
1996
|
|
|
1981
|
-
|
|
1997
|
+
_this2.eventStyle.evented && _this2.createEvent();
|
|
1982
1998
|
});
|
|
1983
1999
|
},
|
|
1984
2000
|
methods: {
|
|
1985
2001
|
createEvent: function createEvent() {
|
|
1986
|
-
var
|
|
2002
|
+
var _this3 = this;
|
|
1987
2003
|
|
|
1988
2004
|
this.canvas.on('mouse:up', function (event) {
|
|
1989
2005
|
if (event.button === 3) {
|
|
@@ -1991,29 +2007,34 @@ var rightClickNodeConnect = [{
|
|
|
1991
2007
|
x = _event$pointer.x,
|
|
1992
2008
|
y = _event$pointer.y;
|
|
1993
2009
|
|
|
1994
|
-
var
|
|
1995
|
-
originX =
|
|
1996
|
-
originY =
|
|
1997
|
-
endX =
|
|
1998
|
-
endY =
|
|
2010
|
+
var _this3$$propItems = _this3.$propItems(),
|
|
2011
|
+
originX = _this3$$propItems.originX,
|
|
2012
|
+
originY = _this3$$propItems.originY,
|
|
2013
|
+
endX = _this3$$propItems.endX,
|
|
2014
|
+
endY = _this3$$propItems.endY;
|
|
1999
2015
|
|
|
2000
2016
|
if (!(x < originX || x > endX || y < originY || y > endY)) {
|
|
2001
|
-
|
|
2002
|
-
document.querySelector('.upper-canvas').addEventListener('contextmenu',
|
|
2017
|
+
_this3.activeEvent = event;
|
|
2018
|
+
document.querySelector('.upper-canvas').addEventListener('contextmenu', _this3.addEventListenerContextmenu, true);
|
|
2003
2019
|
} // this.willUpdateLine = line;
|
|
2004
2020
|
|
|
2005
2021
|
} // 左键松开鼠标-批量删除
|
|
2006
2022
|
|
|
2007
2023
|
|
|
2008
|
-
|
|
2024
|
+
_this3.isSelectArea = false;
|
|
2025
|
+
|
|
2026
|
+
if (event.button === 1 && !event.target && _this3.selectArea) {
|
|
2027
|
+
var points = _this3.selectArea.ponits;
|
|
2028
|
+
|
|
2029
|
+
var delList = _this3.getAreaPonits(points);
|
|
2009
2030
|
|
|
2010
|
-
|
|
2011
|
-
var points = _this2.selectArea.ponits;
|
|
2031
|
+
delList.length === 0 && _this3.removeSelectArea();
|
|
2012
2032
|
|
|
2013
|
-
|
|
2033
|
+
if (delList.length > 0 && _this3.selectArea) {
|
|
2034
|
+
_this3.$emit('pointOperation', 'delete', delList);
|
|
2014
2035
|
|
|
2015
|
-
|
|
2016
|
-
|
|
2036
|
+
_this3.currentDelPoint = null;
|
|
2037
|
+
}
|
|
2017
2038
|
}
|
|
2018
2039
|
});
|
|
2019
2040
|
var selectAreaOrigin = {
|
|
@@ -2022,18 +2043,18 @@ var rightClickNodeConnect = [{
|
|
|
2022
2043
|
};
|
|
2023
2044
|
this.canvas.on('mouse:down', function (event) {
|
|
2024
2045
|
if (event.button === 1 && !event.target) {
|
|
2025
|
-
|
|
2046
|
+
_this3.isSelectArea = true;
|
|
2026
2047
|
selectAreaOrigin.left = event.pointer.x;
|
|
2027
2048
|
selectAreaOrigin.top = event.pointer.y;
|
|
2028
2049
|
}
|
|
2029
2050
|
});
|
|
2030
2051
|
this.canvas.on('mouse:move', function (event) {
|
|
2031
|
-
|
|
2052
|
+
_this3.isSelectArea && _this3.createSelectArea(event, selectAreaOrigin);
|
|
2032
2053
|
});
|
|
2033
2054
|
},
|
|
2034
2055
|
// 获取选区内包含的节点
|
|
2035
2056
|
getAreaPonits: function getAreaPonits(points) {
|
|
2036
|
-
var
|
|
2057
|
+
var _this4 = this;
|
|
2037
2058
|
|
|
2038
2059
|
var delList = [];
|
|
2039
2060
|
|
|
@@ -2050,7 +2071,15 @@ var rightClickNodeConnect = [{
|
|
|
2050
2071
|
var isArea = left >= x1 && left <= x2 && top >= y1 && top <= y2;
|
|
2051
2072
|
|
|
2052
2073
|
if (id && /_polyline(Point)_/.test(id) && !id.includes('isTitle') && isArea) {
|
|
2053
|
-
|
|
2074
|
+
if (_this4.currentDelPoint) {
|
|
2075
|
+
var polylineIndex = _this4.currentDelPoint.polylineIndex;
|
|
2076
|
+
|
|
2077
|
+
if (polylineIndex == obj.polylineIndex) {
|
|
2078
|
+
delList.push(_this4.getDataById(id));
|
|
2079
|
+
}
|
|
2080
|
+
} else {
|
|
2081
|
+
delList.push(_this4.getDataById(id));
|
|
2082
|
+
}
|
|
2054
2083
|
}
|
|
2055
2084
|
});
|
|
2056
2085
|
return delList;
|
|
@@ -2072,16 +2101,16 @@ var rightClickNodeConnect = [{
|
|
|
2072
2101
|
},
|
|
2073
2102
|
// 每一个折线类别
|
|
2074
2103
|
createPolyline: function createPolyline(polylineType, polylineTypeId) {
|
|
2075
|
-
var
|
|
2104
|
+
var _this5 = this;
|
|
2076
2105
|
|
|
2077
2106
|
polylineType.dataList.forEach(function (polylineItem, polylineIndex) {
|
|
2078
|
-
|
|
2107
|
+
_this5.drawPolyline(polylineItem, polylineIndex, polylineType, polylineTypeId);
|
|
2079
2108
|
});
|
|
2080
2109
|
},
|
|
2081
2110
|
// 绘制左侧折线标题
|
|
2082
2111
|
drawPolylineTitle: function drawPolylineTitle() {
|
|
2083
2112
|
var _this$other,
|
|
2084
|
-
|
|
2113
|
+
_this6 = this;
|
|
2085
2114
|
|
|
2086
2115
|
var _this$propItems = this.propItems,
|
|
2087
2116
|
canvasHeight = _this$propItems.canvasHeight,
|
|
@@ -2131,28 +2160,21 @@ var rightClickNodeConnect = [{
|
|
|
2131
2160
|
}); // 配置左侧title图标(但不是折线项目)
|
|
2132
2161
|
|
|
2133
2162
|
if ((_this$other = this.other) !== null && _this$other !== void 0 && _this$other.list && Array.isArray(this.other.list)) {
|
|
2163
|
+
var otherList = this.other.list.map(function (v) {
|
|
2164
|
+
return {
|
|
2165
|
+
title: v.name,
|
|
2166
|
+
type: v.type,
|
|
2167
|
+
pointAttr: v,
|
|
2168
|
+
isAdd: false,
|
|
2169
|
+
polylineTypeId: -1,
|
|
2170
|
+
polylineIndex: -1
|
|
2171
|
+
};
|
|
2172
|
+
});
|
|
2173
|
+
|
|
2134
2174
|
if (this.other.position && this.other.position === 'top') {
|
|
2135
|
-
leftTitleList.push.apply(leftTitleList, Object(toConsumableArray["a" /* default */])(
|
|
2136
|
-
return {
|
|
2137
|
-
title: v.name,
|
|
2138
|
-
type: v.type,
|
|
2139
|
-
pointAttr: v,
|
|
2140
|
-
isAdd: false,
|
|
2141
|
-
polylineTypeId: -1,
|
|
2142
|
-
polylineIndex: -1
|
|
2143
|
-
};
|
|
2144
|
-
})));
|
|
2175
|
+
leftTitleList.push.apply(leftTitleList, Object(toConsumableArray["a" /* default */])(otherList));
|
|
2145
2176
|
} else {
|
|
2146
|
-
leftTitleList.unshift.apply(leftTitleList, Object(toConsumableArray["a" /* default */])(
|
|
2147
|
-
return {
|
|
2148
|
-
title: v.name,
|
|
2149
|
-
type: v.type,
|
|
2150
|
-
pointAttr: v,
|
|
2151
|
-
isAdd: false,
|
|
2152
|
-
polylineTypeId: -1,
|
|
2153
|
-
polylineIndex: -1
|
|
2154
|
-
};
|
|
2155
|
-
})));
|
|
2177
|
+
leftTitleList.unshift.apply(leftTitleList, Object(toConsumableArray["a" /* default */])(otherList));
|
|
2156
2178
|
}
|
|
2157
2179
|
}
|
|
2158
2180
|
|
|
@@ -2176,7 +2198,7 @@ var rightClickNodeConnect = [{
|
|
|
2176
2198
|
left = lableMargin[0] + treeTableminCellWidth;
|
|
2177
2199
|
pointId = "".concat(v.polylineTypeId, "_").concat(v.polylineIndex, "_-1_polylinePoint_'").concat(new Date().getTime(), "_isTitle");
|
|
2178
2200
|
_v$pointAttr = v.pointAttr, _v$pointAttr$fill = _v$pointAttr.fill, fillColor = _v$pointAttr$fill === void 0 ? '#000' : _v$pointAttr$fill, stroke = _v$pointAttr.stroke;
|
|
2179
|
-
text = new
|
|
2201
|
+
text = new _this6.fabric.Text(String(v.title), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
2180
2202
|
fontSize: style.fontSize,
|
|
2181
2203
|
fill: fillColor && stroke ? stroke : fillColor,
|
|
2182
2204
|
left: left,
|
|
@@ -2198,7 +2220,7 @@ var rightClickNodeConnect = [{
|
|
|
2198
2220
|
id: pointId,
|
|
2199
2221
|
polylineTypeId: v.polylineTypeId,
|
|
2200
2222
|
polylineIndex: v.polylineIndex
|
|
2201
|
-
}, v.isAdd &&
|
|
2223
|
+
}, v.isAdd && _this6.eventStyle.evented ? {} : eventStyle), {}, {
|
|
2202
2224
|
rightLimit: v.rightLimit || ''
|
|
2203
2225
|
});
|
|
2204
2226
|
|
|
@@ -2208,14 +2230,14 @@ var rightClickNodeConnect = [{
|
|
|
2208
2230
|
}
|
|
2209
2231
|
|
|
2210
2232
|
_context.next = 12;
|
|
2211
|
-
return
|
|
2233
|
+
return _this6.createImage(v.pointAttr.iconClassName, v.pointAttr);
|
|
2212
2234
|
|
|
2213
2235
|
case 12:
|
|
2214
2236
|
ele = _context.sent;
|
|
2215
2237
|
|
|
2216
2238
|
case 13:
|
|
2217
2239
|
_context.next = 15;
|
|
2218
|
-
return
|
|
2240
|
+
return _this6.createPoint(v.type, Object(objectSpread2["a" /* default */])({
|
|
2219
2241
|
ele: ele || ''
|
|
2220
2242
|
}, option));
|
|
2221
2243
|
|
|
@@ -2231,7 +2253,7 @@ var rightClickNodeConnect = [{
|
|
|
2231
2253
|
scaleY: 1
|
|
2232
2254
|
});
|
|
2233
2255
|
|
|
2234
|
-
|
|
2256
|
+
_this6.canvas.renderAll();
|
|
2235
2257
|
}
|
|
2236
2258
|
|
|
2237
2259
|
if (!cloneIconId) {
|
|
@@ -2243,9 +2265,9 @@ var rightClickNodeConnect = [{
|
|
|
2243
2265
|
});
|
|
2244
2266
|
clonedObj.bringForward();
|
|
2245
2267
|
|
|
2246
|
-
|
|
2268
|
+
_this6.canvas.add(clonedObj);
|
|
2247
2269
|
|
|
2248
|
-
|
|
2270
|
+
_this6.canvas.renderAll();
|
|
2249
2271
|
});
|
|
2250
2272
|
}
|
|
2251
2273
|
|
|
@@ -2253,18 +2275,18 @@ var rightClickNodeConnect = [{
|
|
|
2253
2275
|
originX: 'center'
|
|
2254
2276
|
});
|
|
2255
2277
|
|
|
2256
|
-
|
|
2278
|
+
_this6.moveLimit(icon);
|
|
2257
2279
|
|
|
2258
2280
|
icon.left >= originX && icon.left < originX + 5 && (originTop = icon.top);
|
|
2259
2281
|
|
|
2260
2282
|
if (icon.left >= originX) {
|
|
2261
2283
|
// this.addPoint(icon, originX, originTop);
|
|
2262
|
-
|
|
2284
|
+
_this6.showDrapPopup(icon);
|
|
2263
2285
|
} else {
|
|
2264
|
-
|
|
2286
|
+
_this6.isDropVisible = false;
|
|
2265
2287
|
}
|
|
2266
2288
|
|
|
2267
|
-
|
|
2289
|
+
_this6.canvas.renderAll();
|
|
2268
2290
|
}); // 标题折线点停止拖拽后 更新
|
|
2269
2291
|
|
|
2270
2292
|
icon.on('moved', function () {
|
|
@@ -2272,29 +2294,29 @@ var rightClickNodeConnect = [{
|
|
|
2272
2294
|
id: icon.id.replace('_isTitle', '')
|
|
2273
2295
|
});
|
|
2274
2296
|
|
|
2275
|
-
|
|
2297
|
+
_this6.canvas.renderAll();
|
|
2276
2298
|
|
|
2277
|
-
|
|
2299
|
+
_this6.removeTitle();
|
|
2278
2300
|
|
|
2279
|
-
|
|
2301
|
+
_this6.removePolyline(cloneIconId);
|
|
2280
2302
|
|
|
2281
|
-
if (icon.id.includes('_polylinePoint_') &&
|
|
2282
|
-
|
|
2303
|
+
if (icon.id.includes('_polylinePoint_') && _this6.isDropVisible) {
|
|
2304
|
+
_this6.isDropVisible = false;
|
|
2283
2305
|
|
|
2284
2306
|
if (icon.left >= originX) {
|
|
2285
2307
|
// this.setEmitFunction(icon);
|
|
2286
|
-
|
|
2308
|
+
_this6.setAddPointList(icon);
|
|
2287
2309
|
|
|
2288
|
-
|
|
2310
|
+
_this6.$emit('pointOperation', 'increasePointBatch', _this6.addPointList);
|
|
2289
2311
|
|
|
2290
|
-
|
|
2312
|
+
_this6.addPointList = [];
|
|
2291
2313
|
}
|
|
2292
2314
|
}
|
|
2293
2315
|
|
|
2294
|
-
|
|
2316
|
+
_this6.removePolyline(icon.id); // 重绘折线标题
|
|
2295
2317
|
|
|
2296
2318
|
|
|
2297
|
-
|
|
2319
|
+
_this6.drawPolylineTitle();
|
|
2298
2320
|
}); // 优化左侧图标太小不容易选中的问题
|
|
2299
2321
|
|
|
2300
2322
|
if (icon.evented && !icon.url) {
|
|
@@ -2308,9 +2330,9 @@ var rightClickNodeConnect = [{
|
|
|
2308
2330
|
}
|
|
2309
2331
|
}
|
|
2310
2332
|
|
|
2311
|
-
|
|
2333
|
+
_this6.canvas.add(text, icon);
|
|
2312
2334
|
|
|
2313
|
-
|
|
2335
|
+
_this6.canvas.requestRenderAll();
|
|
2314
2336
|
|
|
2315
2337
|
case 23:
|
|
2316
2338
|
case "end":
|
|
@@ -2348,11 +2370,11 @@ var rightClickNodeConnect = [{
|
|
|
2348
2370
|
}
|
|
2349
2371
|
},
|
|
2350
2372
|
removeTitle: function removeTitle() {
|
|
2351
|
-
var
|
|
2373
|
+
var _this7 = this;
|
|
2352
2374
|
|
|
2353
2375
|
this.canvas.forEachObject(function (obj) {
|
|
2354
2376
|
if (obj.id && obj.id.includes('isTitle')) {
|
|
2355
|
-
|
|
2377
|
+
_this7.canvas.remove(obj);
|
|
2356
2378
|
}
|
|
2357
2379
|
});
|
|
2358
2380
|
},
|
|
@@ -2366,7 +2388,7 @@ var rightClickNodeConnect = [{
|
|
|
2366
2388
|
createAttrVaule: function createAttrVaule(attr, polyline, polylineIndex, polylineType, polylineTypeId) {
|
|
2367
2389
|
var _valueObj$max,
|
|
2368
2390
|
_valueObj$max2,
|
|
2369
|
-
|
|
2391
|
+
_this8 = this,
|
|
2370
2392
|
_valueObj$min,
|
|
2371
2393
|
_valueObj$min2,
|
|
2372
2394
|
_this$canvas;
|
|
@@ -2378,10 +2400,10 @@ var rightClickNodeConnect = [{
|
|
|
2378
2400
|
originX = _this$propItems2.originX,
|
|
2379
2401
|
endX = _this$propItems2.endX;
|
|
2380
2402
|
var isMax = ((_valueObj$max = valueObj.max) === null || _valueObj$max === void 0 ? void 0 : _valueObj$max.show) && ((_valueObj$max2 = valueObj.max) === null || _valueObj$max2 === void 0 ? void 0 : _valueObj$max2.value) && list.some(function (v) {
|
|
2381
|
-
return +v.value >= +valueObj.max.value &&
|
|
2403
|
+
return +v.value >= +valueObj.max.value && _this8.isLimit(v.time);
|
|
2382
2404
|
});
|
|
2383
2405
|
var isMin = ((_valueObj$min = valueObj.min) === null || _valueObj$min === void 0 ? void 0 : _valueObj$min.show) && ((_valueObj$min2 = valueObj.min) === null || _valueObj$min2 === void 0 ? void 0 : _valueObj$min2.value) && list.some(function (v) {
|
|
2384
|
-
return +v.value <= +valueObj.min.value &&
|
|
2406
|
+
return +v.value <= +valueObj.min.value && _this8.isLimit(v.time);
|
|
2385
2407
|
});
|
|
2386
2408
|
var lines = [];
|
|
2387
2409
|
|
|
@@ -2389,9 +2411,9 @@ var rightClickNodeConnect = [{
|
|
|
2389
2411
|
var value = _ref2.value,
|
|
2390
2412
|
lineStyle = _ref2.lineStyle;
|
|
2391
2413
|
|
|
2392
|
-
var top =
|
|
2414
|
+
var top = _this8.cumputedY(polylineType, +value);
|
|
2393
2415
|
|
|
2394
|
-
return
|
|
2416
|
+
return _this8.drawLine([originX, top, endX, top], Object(objectSpread2["a" /* default */])({
|
|
2395
2417
|
polylineIndex: polylineIndex,
|
|
2396
2418
|
lineIndex: 0,
|
|
2397
2419
|
polylineTypeId: polylineTypeId
|
|
@@ -2401,7 +2423,7 @@ var rightClickNodeConnect = [{
|
|
|
2401
2423
|
var drawText = function drawText(_ref3, top) {
|
|
2402
2424
|
var name = _ref3.name,
|
|
2403
2425
|
nameStyle = _ref3.nameStyle;
|
|
2404
|
-
return new
|
|
2426
|
+
return new _this8.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), {}, {
|
|
2405
2427
|
originY: 'bottom',
|
|
2406
2428
|
left: originX + 5,
|
|
2407
2429
|
top: top - 5
|
|
@@ -2429,16 +2451,16 @@ var rightClickNodeConnect = [{
|
|
|
2429
2451
|
this.canvas.renderAll();
|
|
2430
2452
|
},
|
|
2431
2453
|
|
|
2432
|
-
/**
|
|
2433
|
-
* 绘制一条折线
|
|
2434
|
-
* @param {polyline} 折线属性
|
|
2435
|
-
* @param {polyline.type} 折线点形状 circle: 圆 | triangle: 三角
|
|
2436
|
-
* @param {polyline.pointAttr} 参数 fill: 填充色 | stroke: 描边色 | strokeWidth: 宽度 | radius: 半径 | width: 宽度 | height: 高度
|
|
2437
|
-
* @param {polyline.list} 折线点坐标数组
|
|
2438
|
-
* @param {polylineIndex} 当前折线 index
|
|
2454
|
+
/**
|
|
2455
|
+
* 绘制一条折线
|
|
2456
|
+
* @param {polyline} 折线属性
|
|
2457
|
+
* @param {polyline.type} 折线点形状 circle: 圆 | triangle: 三角
|
|
2458
|
+
* @param {polyline.pointAttr} 参数 fill: 填充色 | stroke: 描边色 | strokeWidth: 宽度 | radius: 半径 | width: 宽度 | height: 高度
|
|
2459
|
+
* @param {polyline.list} 折线点坐标数组
|
|
2460
|
+
* @param {polylineIndex} 当前折线 index
|
|
2439
2461
|
*/
|
|
2440
2462
|
drawPolyline: function drawPolyline(polyline, polylineIndex, polylineType, polylineTypeId) {
|
|
2441
|
-
var
|
|
2463
|
+
var _this9 = this;
|
|
2442
2464
|
|
|
2443
2465
|
var _this$propItems3 = this.propItems,
|
|
2444
2466
|
originY = _this$propItems3.originY,
|
|
@@ -2449,36 +2471,44 @@ var rightClickNodeConnect = [{
|
|
|
2449
2471
|
var list = polyline.list;
|
|
2450
2472
|
var pointList = [];
|
|
2451
2473
|
var lineList = [];
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2474
|
+
|
|
2475
|
+
var _this = this;
|
|
2476
|
+
|
|
2477
|
+
function getPointer(point) {
|
|
2455
2478
|
var isInit = false;
|
|
2479
|
+
var points = null;
|
|
2456
2480
|
|
|
2457
|
-
if (isEffectiveNode(
|
|
2458
|
-
var x =
|
|
2481
|
+
if (isEffectiveNode(point) && _this.isLimit(point.time)) {
|
|
2482
|
+
var x = _this.cumputedX(point.time);
|
|
2459
2483
|
|
|
2460
|
-
var y =
|
|
2484
|
+
var y = _this.cumputedY(polylineType, point.value);
|
|
2461
2485
|
|
|
2462
2486
|
isInit = y < originY || y > endY;
|
|
2463
|
-
|
|
2464
|
-
}
|
|
2487
|
+
points = [x, y < originY ? originY : y > endY ? endY : y];
|
|
2488
|
+
}
|
|
2465
2489
|
|
|
2490
|
+
return {
|
|
2491
|
+
isInit: isInit,
|
|
2492
|
+
points: points
|
|
2493
|
+
};
|
|
2494
|
+
}
|
|
2466
2495
|
|
|
2467
|
-
|
|
2468
|
-
|
|
2496
|
+
list.forEach(function (linePoints, index) {
|
|
2497
|
+
// 当前点
|
|
2498
|
+
var _getPointer = getPointer(linePoints),
|
|
2499
|
+
points = _getPointer.points,
|
|
2500
|
+
isInit = _getPointer.isInit; // 下一个点
|
|
2469
2501
|
|
|
2470
|
-
if (isEffectiveNode(nextPoints)) {
|
|
2471
|
-
var nextX = _this8.cumputedX(nextPoints.time);
|
|
2472
2502
|
|
|
2473
|
-
|
|
2503
|
+
var nextPoints = list[index + 1];
|
|
2474
2504
|
|
|
2475
|
-
|
|
2476
|
-
|
|
2505
|
+
var _getPointer2 = getPointer(nextPoints),
|
|
2506
|
+
nextPoint = _getPointer2.points;
|
|
2477
2507
|
|
|
2478
2508
|
var line;
|
|
2479
2509
|
var point;
|
|
2480
2510
|
var previousLine;
|
|
2481
|
-
line = points && nextPoint ?
|
|
2511
|
+
line = points && nextPoint ? _this9.drawLine([].concat(Object(toConsumableArray["a" /* default */])(points), Object(toConsumableArray["a" /* default */])(nextPoint)), Object(objectSpread2["a" /* default */])({
|
|
2482
2512
|
polylineIndex: polylineIndex,
|
|
2483
2513
|
polylineTypeId: polylineTypeId,
|
|
2484
2514
|
lineIndex: index
|
|
@@ -2495,14 +2525,37 @@ var rightClickNodeConnect = [{
|
|
|
2495
2525
|
|
|
2496
2526
|
if (points) {
|
|
2497
2527
|
pointOthers.time = linePoints.time;
|
|
2498
|
-
point = previousLine ?
|
|
2528
|
+
point = previousLine ? _this9.drawPoint.apply(_this9, Object(toConsumableArray["a" /* default */])(points).concat([previousLine, line, polyline.type, pointOthers, isInit])) : _this9.drawPoint.apply(_this9, Object(toConsumableArray["a" /* default */])(points).concat([null, line, polyline.type, pointOthers, isInit]));
|
|
2499
2529
|
}
|
|
2500
2530
|
|
|
2501
2531
|
lineList.push(line);
|
|
2502
2532
|
point && pointList.push(point);
|
|
2503
2533
|
});
|
|
2504
2534
|
Promise.all(pointList).then(function (res) {
|
|
2505
|
-
var
|
|
2535
|
+
var _this9$canvas;
|
|
2536
|
+
|
|
2537
|
+
var polylineObj = _this9.polylinePointList.find(function (v) {
|
|
2538
|
+
return v.polylineTypeId == polylineTypeId && v.polylineIndex == polylineIndex;
|
|
2539
|
+
});
|
|
2540
|
+
|
|
2541
|
+
var pointerList = res.map(function (v) {
|
|
2542
|
+
return v.left;
|
|
2543
|
+
});
|
|
2544
|
+
|
|
2545
|
+
if (polylineObj) {
|
|
2546
|
+
Object.assign(polylineObj, {
|
|
2547
|
+
pointerList: pointerList,
|
|
2548
|
+
pointList: res
|
|
2549
|
+
});
|
|
2550
|
+
polylineObj.pointerList = pointerList;
|
|
2551
|
+
} else {
|
|
2552
|
+
_this9.polylinePointList.push({
|
|
2553
|
+
polylineTypeId: polylineTypeId,
|
|
2554
|
+
polylineIndex: polylineIndex,
|
|
2555
|
+
pointerList: pointerList,
|
|
2556
|
+
pointList: res
|
|
2557
|
+
});
|
|
2558
|
+
}
|
|
2506
2559
|
|
|
2507
2560
|
lineList = lineList.filter(function (v) {
|
|
2508
2561
|
return v;
|
|
@@ -2519,9 +2572,9 @@ var rightClickNodeConnect = [{
|
|
|
2519
2572
|
return v;
|
|
2520
2573
|
});
|
|
2521
2574
|
|
|
2522
|
-
(
|
|
2575
|
+
(_this9$canvas = _this9.canvas).add.apply(_this9$canvas, Object(toConsumableArray["a" /* default */])(lineList).concat(Object(toConsumableArray["a" /* default */])(res)));
|
|
2523
2576
|
|
|
2524
|
-
|
|
2577
|
+
_this9.canvas.requestRenderAll();
|
|
2525
2578
|
});
|
|
2526
2579
|
this.createAttrVaule('critical', polyline, polylineIndex, polylineType, polylineTypeId);
|
|
2527
2580
|
this.createAttrVaule('diffValue', polyline, polylineIndex, polylineType, polylineTypeId);
|
|
@@ -2538,15 +2591,15 @@ var rightClickNodeConnect = [{
|
|
|
2538
2591
|
return this.propItems.endY - yScaleCell * yCellUnit;
|
|
2539
2592
|
},
|
|
2540
2593
|
|
|
2541
|
-
/**
|
|
2542
|
-
* 绘制折线点
|
|
2543
|
-
* @param {left, top} 折线点坐标
|
|
2544
|
-
* @param {line1, line2} 与折线点关联的线
|
|
2545
|
-
* @param {type} 折线点类型
|
|
2546
|
-
* @param {others} 参数 polylineIndex | pointIndex | ...polyline.pointAttr
|
|
2594
|
+
/**
|
|
2595
|
+
* 绘制折线点
|
|
2596
|
+
* @param {left, top} 折线点坐标
|
|
2597
|
+
* @param {line1, line2} 与折线点关联的线
|
|
2598
|
+
* @param {type} 折线点类型
|
|
2599
|
+
* @param {others} 参数 polylineIndex | pointIndex | ...polyline.pointAttr
|
|
2547
2600
|
*/
|
|
2548
2601
|
drawPoint: function drawPoint(left, top, line1, line2, type, others, isInit) {
|
|
2549
|
-
var
|
|
2602
|
+
var _this10 = this;
|
|
2550
2603
|
|
|
2551
2604
|
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
2552
2605
|
var pointId, ele, point;
|
|
@@ -2555,7 +2608,7 @@ var rightClickNodeConnect = [{
|
|
|
2555
2608
|
switch (_context2.prev = _context2.next) {
|
|
2556
2609
|
case 0:
|
|
2557
2610
|
pointId = "".concat(others.polylineTypeId, "_").concat(others.polylineIndex, "_").concat(others.pointIndex, "_polylinePoint_").concat(new Date().getTime());
|
|
2558
|
-
_context2.t0 =
|
|
2611
|
+
_context2.t0 = _this10._iconClassName;
|
|
2559
2612
|
|
|
2560
2613
|
if (!_context2.t0) {
|
|
2561
2614
|
_context2.next = 6;
|
|
@@ -2563,7 +2616,7 @@ var rightClickNodeConnect = [{
|
|
|
2563
2616
|
}
|
|
2564
2617
|
|
|
2565
2618
|
_context2.next = 5;
|
|
2566
|
-
return
|
|
2619
|
+
return _this10.createImage(_this10._iconClassName, others);
|
|
2567
2620
|
|
|
2568
2621
|
case 5:
|
|
2569
2622
|
_context2.t0 = _context2.sent;
|
|
@@ -2571,12 +2624,12 @@ var rightClickNodeConnect = [{
|
|
|
2571
2624
|
case 6:
|
|
2572
2625
|
ele = _context2.t0;
|
|
2573
2626
|
_context2.next = 9;
|
|
2574
|
-
return
|
|
2627
|
+
return _this10.createPoint(type, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
2575
2628
|
id: pointId,
|
|
2576
2629
|
left: left,
|
|
2577
2630
|
top: top,
|
|
2578
2631
|
ele: ele || ''
|
|
2579
|
-
}, defaultVaule.pointStyle), others), !
|
|
2632
|
+
}, defaultVaule.pointStyle), others), !_this10.eventStyle.evented ? {
|
|
2580
2633
|
lockMovementX: true,
|
|
2581
2634
|
lockMovementY: true
|
|
2582
2635
|
} : {}));
|
|
@@ -2587,50 +2640,47 @@ var rightClickNodeConnect = [{
|
|
|
2587
2640
|
line1 && (point.line1 = line1);
|
|
2588
2641
|
line2 && (point.line2 = line2);
|
|
2589
2642
|
point.on('mouseover', function () {
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
// if (this.isOnePolyLine(obj, point.polylineTypeId, point.polylineIndex)) {
|
|
2594
|
-
// obj.line1 && this.canvas.bringToFront(obj.line1);
|
|
2595
|
-
// obj.line2 && this.canvas.bringToFront(obj.line2);
|
|
2596
|
-
// }
|
|
2597
|
-
// });
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
_this9.canvas.forEachObject(function (obj) {
|
|
2601
|
-
if (_this9.isOnePolyLine(obj, point.polylineTypeId, point.polylineIndex)) {
|
|
2602
|
-
_this9.canvas.bringToFront(obj);
|
|
2603
|
-
}
|
|
2604
|
-
});
|
|
2643
|
+
_this10.showDrapPopup(point);
|
|
2644
|
+
|
|
2645
|
+
_this10.pointToFront(point);
|
|
2605
2646
|
});
|
|
2606
2647
|
point.on('mouseout', function () {
|
|
2607
|
-
|
|
2648
|
+
_this10.isDropVisible = false;
|
|
2608
2649
|
}); // 折线点移动中 实时更新相关联的线的坐标
|
|
2609
2650
|
|
|
2610
|
-
if (
|
|
2651
|
+
if (_this10.eventStyle.evented) {
|
|
2611
2652
|
point.on('moving', function () {
|
|
2612
|
-
|
|
2653
|
+
_this10.pointMoveLimit(point, false);
|
|
2613
2654
|
|
|
2614
|
-
|
|
2655
|
+
_this10.pointMoveUpdateLine(point);
|
|
2615
2656
|
|
|
2616
|
-
|
|
2657
|
+
_this10.addPoint(point, left, top);
|
|
2617
2658
|
|
|
2618
|
-
|
|
2659
|
+
_this10.canvas.renderAll();
|
|
2619
2660
|
|
|
2620
|
-
|
|
2661
|
+
_this10.showDrapPopup(point);
|
|
2621
2662
|
}); // 折线点停止拖拽后 更新polyline中对应的坐标
|
|
2622
2663
|
|
|
2623
2664
|
point.on('moved', function () {
|
|
2624
2665
|
if (point && point.id.includes('_polylinePoint_')) {
|
|
2625
|
-
|
|
2666
|
+
_this10.isDropVisible = false;
|
|
2667
|
+
|
|
2668
|
+
_this10.setEmitFunction(point);
|
|
2669
|
+
}
|
|
2670
|
+
});
|
|
2671
|
+
point.on('mouseup', function (event) {
|
|
2672
|
+
var button = event.button,
|
|
2673
|
+
isClick = event.isClick;
|
|
2626
2674
|
|
|
2627
|
-
|
|
2675
|
+
if (button == 1 && isClick) {
|
|
2676
|
+
// 可配置批量删除当前项目上的点了
|
|
2677
|
+
_this10.currentDelPoint = point;
|
|
2628
2678
|
}
|
|
2629
2679
|
});
|
|
2630
2680
|
} // 超出表格最高或最低值则需要触发pointChange事件并且不能更新视图,否则连接节点判断不会成功
|
|
2631
2681
|
|
|
2632
2682
|
|
|
2633
|
-
isInit &&
|
|
2683
|
+
isInit && _this10.setEmitFunction(point, isInit);
|
|
2634
2684
|
return _context2.abrupt("return", point);
|
|
2635
2685
|
|
|
2636
2686
|
case 18:
|
|
@@ -2661,7 +2711,7 @@ var rightClickNodeConnect = [{
|
|
|
2661
2711
|
if (this.addPointList.length === 0) {
|
|
2662
2712
|
this.$emit('pointChange', data);
|
|
2663
2713
|
} else {
|
|
2664
|
-
var last = this.addPointList
|
|
2714
|
+
var last = this.addPointList.at(-1); // 如果是重合/连线节点
|
|
2665
2715
|
|
|
2666
2716
|
if (point.get('scaleX') !== point.scale) {
|
|
2667
2717
|
var value = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, last), {}, {
|
|
@@ -2671,23 +2721,40 @@ var rightClickNodeConnect = [{
|
|
|
2671
2721
|
}
|
|
2672
2722
|
});
|
|
2673
2723
|
|
|
2674
|
-
if (
|
|
2675
|
-
this.addPointList.splice(-1, 1,
|
|
2724
|
+
if (point.line2) {
|
|
2725
|
+
this.addPointList.splice(-1, 1, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, last), {}, {
|
|
2726
|
+
value: {
|
|
2727
|
+
time: this.getXValue(this._currentPoint.left),
|
|
2728
|
+
value: this.getYValue(this.polyline[point.polylineTypeId].position, this._currentPoint.top)
|
|
2729
|
+
}
|
|
2730
|
+
}));
|
|
2731
|
+
this.addPointList.forEach(function (v) {
|
|
2732
|
+
return v.isConcat = true;
|
|
2733
|
+
});
|
|
2676
2734
|
} else {
|
|
2677
|
-
|
|
2735
|
+
if (last.left === point.left) {
|
|
2736
|
+
this.addPointList.splice(-1, 1, value);
|
|
2737
|
+
} else {
|
|
2738
|
+
this.addPointList.push(value);
|
|
2678
2739
|
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2740
|
+
var _JSON$parse$reverse = JSON.parse(JSON.stringify(this.addPointList)).reverse(),
|
|
2741
|
+
_JSON$parse$reverse2 = _toArray(_JSON$parse$reverse),
|
|
2742
|
+
lastPoint = _JSON$parse$reverse2[0],
|
|
2743
|
+
prePoint = _JSON$parse$reverse2[1],
|
|
2744
|
+
list = _JSON$parse$reverse2.slice(2);
|
|
2684
2745
|
|
|
2685
|
-
|
|
2686
|
-
|
|
2746
|
+
if (prePoint.value.time == lastPoint.value.time) {
|
|
2747
|
+
this.addPointList.splice(-2, 1);
|
|
2748
|
+
}
|
|
2687
2749
|
}
|
|
2688
2750
|
}
|
|
2751
|
+
} else if (point.line2) {
|
|
2752
|
+
this.addPointList = [];
|
|
2753
|
+
this.repaintPolyline(this.polyline[point.polylineTypeId].position, point.polylineIndex);
|
|
2754
|
+
return;
|
|
2689
2755
|
}
|
|
2690
2756
|
|
|
2757
|
+
!point.line2 && this.addPointList.splice(0, 1);
|
|
2691
2758
|
!point.id.includes('isTitle') && this.removePolyline(point.id);
|
|
2692
2759
|
this.$emit('pointOperation', 'increasePointBatch', this.addPointList);
|
|
2693
2760
|
this.addPointList = [];
|
|
@@ -2709,37 +2776,59 @@ var rightClickNodeConnect = [{
|
|
|
2709
2776
|
this.addPointList.push(data);
|
|
2710
2777
|
},
|
|
2711
2778
|
|
|
2712
|
-
/**
|
|
2713
|
-
* @description: 滑动批量新增节点
|
|
2714
|
-
* @param {*} point 拖动的最后一个节点
|
|
2715
|
-
* @param {*} originLeft 拖动的源节点的left值
|
|
2716
|
-
* @param {*} originTop 拖动的源节点的top值
|
|
2717
|
-
* @return {*}
|
|
2779
|
+
/**
|
|
2780
|
+
* @description: 滑动批量新增节点
|
|
2781
|
+
* @param {*} point 拖动的最后一个节点
|
|
2782
|
+
* @param {*} originLeft 拖动的源节点的left值
|
|
2783
|
+
* @param {*} originTop 拖动的源节点的top值
|
|
2784
|
+
* @return {*}
|
|
2718
2785
|
*/
|
|
2719
2786
|
addPoint: function addPoint(point, originLeft, originTop) {
|
|
2720
|
-
var
|
|
2787
|
+
var _this11 = this;
|
|
2721
2788
|
|
|
2722
2789
|
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
2723
|
-
var
|
|
2790
|
+
var _this11$propItems, xCellWidth, table, originX, addPointSpaceGridNumber, left, top, currentLeft, startLength, n, spaceWidth, residue, condition, conditionNoLine2, conditionHasLine2, checkPoints, _point$line, _point$line2, points1, _this11$getValue, data, x, y, concatPoint, polylineTypeId, polylineIndex, polylineObj, pointObjI, endLength, _point$line3, _point$line4;
|
|
2724
2791
|
|
|
2725
2792
|
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
2726
2793
|
while (1) {
|
|
2727
2794
|
switch (_context3.prev = _context3.next) {
|
|
2728
2795
|
case 0:
|
|
2729
|
-
|
|
2796
|
+
concatPoint = function _concatPoint(target) {
|
|
2797
|
+
var targetLeft = target.left,
|
|
2798
|
+
targetTop = target.top;
|
|
2799
|
+
point.setCoords();
|
|
2800
|
+
|
|
2801
|
+
if (left >= targetLeft - n && left <= targetLeft + n && top <= targetTop + n && top >= targetTop - n) {
|
|
2802
|
+
point.set({
|
|
2803
|
+
left: targetLeft,
|
|
2804
|
+
top: targetTop,
|
|
2805
|
+
scaleX: point.scale === 1 ? 2.5 : 0.1,
|
|
2806
|
+
scaleY: point.scale === 1 ? 2.5 : 0.1
|
|
2807
|
+
});
|
|
2808
|
+
} else {
|
|
2809
|
+
point.set({
|
|
2810
|
+
scaleX: point.scale,
|
|
2811
|
+
scaleY: point.scale
|
|
2812
|
+
});
|
|
2813
|
+
}
|
|
2814
|
+
};
|
|
2815
|
+
|
|
2816
|
+
_this11$propItems = _this11.propItems, xCellWidth = _this11$propItems.xCellWidth, table = _this11$propItems.table, originX = _this11$propItems.originX; // const addPointSpaceGridNumbers = table.addPointSpaceGridNumbers || [];
|
|
2730
2817
|
|
|
2731
2818
|
addPointSpaceGridNumber = table.addPointSpaceGridNumber || 1;
|
|
2732
2819
|
left = point.left, top = point.top;
|
|
2733
2820
|
currentLeft = left;
|
|
2734
|
-
startLength =
|
|
2821
|
+
startLength = _this11.addPointList.length;
|
|
2735
2822
|
n = 6; // 拖动范围,在需要增加节点的刻度左右吸入的范围值
|
|
2736
2823
|
|
|
2737
2824
|
spaceWidth = xCellWidth * addPointSpaceGridNumber;
|
|
2738
2825
|
residue = (left - originLeft) % spaceWidth;
|
|
2739
2826
|
condition = residue > spaceWidth - n || residue < n;
|
|
2827
|
+
conditionNoLine2 = !point.line2 && left > originLeft;
|
|
2828
|
+
conditionHasLine2 = point.line2 && left > originLeft + spaceWidth; // if (!point.line2 && left > originLeft && condition) {
|
|
2740
2829
|
|
|
2741
|
-
if (!(
|
|
2742
|
-
_context3.next =
|
|
2830
|
+
if (!(condition && (conditionNoLine2 || conditionHasLine2))) {
|
|
2831
|
+
_context3.next = 36;
|
|
2743
2832
|
break;
|
|
2744
2833
|
}
|
|
2745
2834
|
|
|
@@ -2750,24 +2839,24 @@ var rightClickNodeConnect = [{
|
|
|
2750
2839
|
});
|
|
2751
2840
|
|
|
2752
2841
|
checkPoints = function checkPoints() {
|
|
2753
|
-
var
|
|
2842
|
+
var _this11$addPointList;
|
|
2754
2843
|
|
|
2755
2844
|
var PointLens = Math.floor((left - originLeft) / spaceWidth);
|
|
2756
2845
|
|
|
2757
|
-
if (PointLens > 1 && ((
|
|
2846
|
+
if (PointLens > 1 && ((_this11$addPointList = _this11.addPointList) === null || _this11$addPointList === void 0 ? void 0 : _this11$addPointList.length) < PointLens) {
|
|
2758
2847
|
for (var k = 0; k < PointLens; k++) {
|
|
2759
2848
|
if (k > 0) {
|
|
2760
2849
|
(function () {
|
|
2761
2850
|
var curLeft = originLeft + spaceWidth * k; // 判断this.addPointList中的left是否包含curLeft,不包含就说明是漏了
|
|
2762
2851
|
|
|
2763
|
-
var isNoLack =
|
|
2852
|
+
var isNoLack = _this11.addPointList.some(function (v) {
|
|
2764
2853
|
return v.left === curLeft;
|
|
2765
2854
|
});
|
|
2766
2855
|
|
|
2767
2856
|
if (!isNoLack) {
|
|
2768
2857
|
var index;
|
|
2769
2858
|
|
|
2770
|
-
var pointObj =
|
|
2859
|
+
var pointObj = _this11.addPointList.find(function (v, i) {
|
|
2771
2860
|
if (v.left > curLeft) {
|
|
2772
2861
|
index = i;
|
|
2773
2862
|
}
|
|
@@ -2777,10 +2866,10 @@ var rightClickNodeConnect = [{
|
|
|
2777
2866
|
|
|
2778
2867
|
if (pointObj) {
|
|
2779
2868
|
var cloneObj = JSON.parse(JSON.stringify(pointObj));
|
|
2780
|
-
cloneObj.value.time =
|
|
2869
|
+
cloneObj.value.time = _this11.getXValue(curLeft);
|
|
2781
2870
|
cloneObj.left = curLeft;
|
|
2782
2871
|
|
|
2783
|
-
|
|
2872
|
+
_this11.addPointList.splice(index, 0, cloneObj);
|
|
2784
2873
|
}
|
|
2785
2874
|
}
|
|
2786
2875
|
})();
|
|
@@ -2791,47 +2880,53 @@ var rightClickNodeConnect = [{
|
|
|
2791
2880
|
// 复制点和线
|
|
2792
2881
|
|
|
2793
2882
|
|
|
2794
|
-
if (!(
|
|
2795
|
-
_context3.next =
|
|
2883
|
+
if (!(conditionNoLine2 || conditionHasLine2)) {
|
|
2884
|
+
_context3.next = 36;
|
|
2796
2885
|
break;
|
|
2797
2886
|
}
|
|
2798
2887
|
|
|
2799
|
-
point.line1 &&
|
|
2888
|
+
// point.line1 && this.removePolyline(point.line1.id);
|
|
2889
|
+
(_point$line = point.line1) === null || _point$line === void 0 ? void 0 : _point$line.set({
|
|
2890
|
+
stroke: 'transparent'
|
|
2891
|
+
});
|
|
2892
|
+
conditionHasLine2 && ((_point$line2 = point.line2) === null || _point$line2 === void 0 ? void 0 : _point$line2.set({
|
|
2893
|
+
stroke: 'transparent'
|
|
2894
|
+
})); // if (i === 1) {
|
|
2800
2895
|
|
|
2801
|
-
_context3.t0 =
|
|
2896
|
+
_context3.t0 = _this11.addPointList.length == 0;
|
|
2802
2897
|
|
|
2803
2898
|
if (!_context3.t0) {
|
|
2804
|
-
_context3.next =
|
|
2899
|
+
_context3.next = 24;
|
|
2805
2900
|
break;
|
|
2806
2901
|
}
|
|
2807
2902
|
|
|
2808
|
-
_context3.next =
|
|
2809
|
-
return
|
|
2903
|
+
_context3.next = 24;
|
|
2904
|
+
return _this11.clonePoint(point, [point.line1 ? point.line1.x1 : originLeft, point.line1 ? point.line1.y1 : originTop, originLeft, originTop]);
|
|
2810
2905
|
|
|
2811
|
-
case
|
|
2812
|
-
if (!
|
|
2906
|
+
case 24:
|
|
2907
|
+
if (!_this11.addPointList.every(function (v) {
|
|
2813
2908
|
return v.left !== left;
|
|
2814
2909
|
})) {
|
|
2815
|
-
_context3.next =
|
|
2910
|
+
_context3.next = 35;
|
|
2816
2911
|
break;
|
|
2817
2912
|
}
|
|
2818
2913
|
|
|
2819
2914
|
// const points1 = i === 1 ? [originLeft, originTop] : point.prePoints;
|
|
2820
|
-
points1 =
|
|
2915
|
+
points1 = _this11.addPointList.length == 0 ? [originLeft, originTop] : point.prePoints;
|
|
2821
2916
|
_context3.t1 = points1;
|
|
2822
2917
|
|
|
2823
2918
|
if (!_context3.t1) {
|
|
2824
|
-
_context3.next =
|
|
2919
|
+
_context3.next = 30;
|
|
2825
2920
|
break;
|
|
2826
2921
|
}
|
|
2827
2922
|
|
|
2828
|
-
_context3.next =
|
|
2829
|
-
return
|
|
2923
|
+
_context3.next = 30;
|
|
2924
|
+
return _this11.clonePoint(point, [].concat(Object(toConsumableArray["a" /* default */])(points1), [left, top]));
|
|
2830
2925
|
|
|
2831
|
-
case
|
|
2926
|
+
case 30:
|
|
2832
2927
|
// this.setAddPointList(point);
|
|
2833
2928
|
// 调用上面方法就会导致线段绘制失败,目前还不知道为啥子
|
|
2834
|
-
|
|
2929
|
+
_this11$getValue = _this11.getValue(point), data = _this11$getValue.data, x = _this11$getValue.x, y = _this11$getValue.y;
|
|
2835
2930
|
data.value = {
|
|
2836
2931
|
time: x,
|
|
2837
2932
|
value: y
|
|
@@ -2839,45 +2934,55 @@ var rightClickNodeConnect = [{
|
|
|
2839
2934
|
data.left = point.left;
|
|
2840
2935
|
data.top = top;
|
|
2841
2936
|
|
|
2842
|
-
|
|
2937
|
+
_this11.addPointList.push(data);
|
|
2843
2938
|
|
|
2844
|
-
case
|
|
2939
|
+
case 35:
|
|
2845
2940
|
checkPoints();
|
|
2846
2941
|
|
|
2847
|
-
case
|
|
2848
|
-
//
|
|
2849
|
-
if (
|
|
2850
|
-
point.
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
scaleX: point.scale === 1 ? 2.5 : 0.1,
|
|
2854
|
-
scaleY: point.scale === 1 ? 2.5 : 0.1
|
|
2942
|
+
case 36:
|
|
2943
|
+
// 检查是否显示重合连线放大节点的标识
|
|
2944
|
+
if (conditionHasLine2) {
|
|
2945
|
+
polylineTypeId = point.polylineTypeId, polylineIndex = point.polylineIndex;
|
|
2946
|
+
polylineObj = _this11.polylinePointList.find(function (v) {
|
|
2947
|
+
return v.polylineTypeId == polylineTypeId && v.polylineIndex == polylineIndex;
|
|
2855
2948
|
});
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
scaleX: point.scale,
|
|
2859
|
-
scaleY: point.scale
|
|
2949
|
+
pointObjI = polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.findIndex(function (v) {
|
|
2950
|
+
return v + n > left;
|
|
2860
2951
|
});
|
|
2952
|
+
pointObjI > -1 && concatPoint(polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointList[pointObjI]);
|
|
2953
|
+
_this11._currentPoint = polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointList[pointObjI];
|
|
2954
|
+
} else {
|
|
2955
|
+
point.nextPoint && concatPoint(point.nextPoint);
|
|
2861
2956
|
} // 如果往回拖动则删除经过的已存在的节点
|
|
2862
2957
|
|
|
2863
2958
|
|
|
2864
|
-
if (startLength > 0 && currentLeft <=
|
|
2865
|
-
|
|
2959
|
+
if (startLength > 0 && currentLeft <= _this11.addPointList[startLength - 1].left) {
|
|
2960
|
+
_this11.removePolyline('increasePointBatch', left);
|
|
2866
2961
|
|
|
2867
|
-
|
|
2962
|
+
_this11.addPointList = _this11.addPointList.filter(function (v) {
|
|
2868
2963
|
return v.left < left;
|
|
2869
2964
|
});
|
|
2870
|
-
endLength =
|
|
2871
|
-
|
|
2965
|
+
endLength = _this11.addPointList.length;
|
|
2966
|
+
|
|
2967
|
+
if (endLength === 0) {
|
|
2968
|
+
(_point$line3 = point.line1) === null || _point$line3 === void 0 ? void 0 : _point$line3.set({
|
|
2969
|
+
stroke: point.stroke
|
|
2970
|
+
});
|
|
2971
|
+
conditionHasLine2 && ((_point$line4 = point.line2) === null || _point$line4 === void 0 ? void 0 : _point$line4.set({
|
|
2972
|
+
stroke: point.stroke
|
|
2973
|
+
}));
|
|
2974
|
+
|
|
2975
|
+
_this11.removePolyline('increasePointBatch', originLeft);
|
|
2976
|
+
}
|
|
2872
2977
|
|
|
2873
2978
|
if (endLength > 0) {
|
|
2874
2979
|
point.set({
|
|
2875
|
-
prePoints: [
|
|
2980
|
+
prePoints: [_this11.addPointList[endLength - 1].left, _this11.addPointList[endLength - 1].top]
|
|
2876
2981
|
});
|
|
2877
2982
|
}
|
|
2878
2983
|
}
|
|
2879
2984
|
|
|
2880
|
-
case
|
|
2985
|
+
case 38:
|
|
2881
2986
|
case "end":
|
|
2882
2987
|
return _context3.stop();
|
|
2883
2988
|
}
|
|
@@ -2886,7 +2991,7 @@ var rightClickNodeConnect = [{
|
|
|
2886
2991
|
}))();
|
|
2887
2992
|
},
|
|
2888
2993
|
clonePoint: function clonePoint(point, points) {
|
|
2889
|
-
var
|
|
2994
|
+
var _this12 = this;
|
|
2890
2995
|
|
|
2891
2996
|
var evented, selectable, lineIndex, polylineIndex, lineAttr, polylineTypeId;
|
|
2892
2997
|
evented = selectable = false;
|
|
@@ -2903,14 +3008,16 @@ var rightClickNodeConnect = [{
|
|
|
2903
3008
|
id: '_polylinePoint_' + new Date().getTime(),
|
|
2904
3009
|
// 此id必须,用于remove节点的时候
|
|
2905
3010
|
polylineTypeId: polylineTypeId,
|
|
2906
|
-
polylineIndex: point.polylineIndex
|
|
3011
|
+
polylineIndex: point.polylineIndex,
|
|
3012
|
+
scaleX: point.scale,
|
|
3013
|
+
scaleY: point.scale
|
|
2907
3014
|
});
|
|
2908
3015
|
clonedObj.hasControls = clonedObj.hasBorders = false;
|
|
2909
3016
|
point.set({
|
|
2910
3017
|
prePoints: [point.left, point.top]
|
|
2911
3018
|
});
|
|
2912
3019
|
|
|
2913
|
-
var line =
|
|
3020
|
+
var line = _this12.drawLine(Object(toConsumableArray["a" /* default */])(points), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
2914
3021
|
evented: evented,
|
|
2915
3022
|
selectable: selectable
|
|
2916
3023
|
}, lineAttr), {}, {
|
|
@@ -2921,13 +3028,13 @@ var rightClickNodeConnect = [{
|
|
|
2921
3028
|
|
|
2922
3029
|
clonedObj.line1 = line;
|
|
2923
3030
|
|
|
2924
|
-
|
|
3031
|
+
_this12.canvas.sendBackwards(line);
|
|
2925
3032
|
|
|
2926
3033
|
clonedObj.bringForward();
|
|
2927
3034
|
|
|
2928
|
-
|
|
3035
|
+
_this12.canvas.add(clonedObj);
|
|
2929
3036
|
|
|
2930
|
-
|
|
3037
|
+
_this12.canvas.renderAll();
|
|
2931
3038
|
|
|
2932
3039
|
resolve(clonedObj);
|
|
2933
3040
|
});
|
|
@@ -2968,10 +3075,10 @@ var rightClickNodeConnect = [{
|
|
|
2968
3075
|
return y;
|
|
2969
3076
|
},
|
|
2970
3077
|
|
|
2971
|
-
/**
|
|
2972
|
-
* 绘制折线点
|
|
2973
|
-
* @param {lines} 线坐标 [x1, y1, x2, y2]
|
|
2974
|
-
* @param {others} 参数 polylineIndex | pointIndex | ...polyline.lineAttr
|
|
3078
|
+
/**
|
|
3079
|
+
* 绘制折线点
|
|
3080
|
+
* @param {lines} 线坐标 [x1, y1, x2, y2]
|
|
3081
|
+
* @param {others} 参数 polylineIndex | pointIndex | ...polyline.lineAttr
|
|
2975
3082
|
*/
|
|
2976
3083
|
drawLine: function drawLine(lines, others) {
|
|
2977
3084
|
var lineId = "".concat(others.lineIndex, "_").concat(others.polylineIndex, "_polylineLine_").concat(new Date().getTime());
|
|
@@ -3010,9 +3117,9 @@ var rightClickNodeConnect = [{
|
|
|
3010
3117
|
var _y$toString$split = y.toString().split('.'),
|
|
3011
3118
|
_y$toString$split2 = Object(slicedToArray["a" /* default */])(_y$toString$split, 2),
|
|
3012
3119
|
m = _y$toString$split2[0],
|
|
3013
|
-
|
|
3120
|
+
_n = _y$toString$split2[1];
|
|
3014
3121
|
|
|
3015
|
-
return parseFloat("".concat(m, ".").concat(
|
|
3122
|
+
return parseFloat("".concat(m, ".").concat(_n.slice(0, 1))) * 10 / 10;
|
|
3016
3123
|
}
|
|
3017
3124
|
|
|
3018
3125
|
return y;
|
|
@@ -3054,7 +3161,7 @@ var rightClickNodeConnect = [{
|
|
|
3054
3161
|
},
|
|
3055
3162
|
// 打开右键菜单
|
|
3056
3163
|
openRightModal: function openRightModal(event) {
|
|
3057
|
-
var
|
|
3164
|
+
var _this13 = this;
|
|
3058
3165
|
|
|
3059
3166
|
this.rightPos = {
|
|
3060
3167
|
clientX: event.e.clientX || event.e.pageX,
|
|
@@ -3065,10 +3172,10 @@ var rightClickNodeConnect = [{
|
|
|
3065
3172
|
var id = target ? target.id : '';
|
|
3066
3173
|
this.$nextTick(function () {
|
|
3067
3174
|
if (id && id.includes('_polylinePoint_')) {
|
|
3068
|
-
|
|
3175
|
+
_this13._currentPoint = target;
|
|
3069
3176
|
var nodeConnect = [];
|
|
3070
3177
|
|
|
3071
|
-
if (
|
|
3178
|
+
if (_this13.propItems.operable.connect) {
|
|
3072
3179
|
if (!target.line2 && target.nextPoint) {
|
|
3073
3180
|
nodeConnect = rightClickNodeConnect.slice(0, 1);
|
|
3074
3181
|
}
|
|
@@ -3082,13 +3189,13 @@ var rightClickNodeConnect = [{
|
|
|
3082
3189
|
}
|
|
3083
3190
|
}
|
|
3084
3191
|
|
|
3085
|
-
|
|
3086
|
-
|
|
3192
|
+
_this13.rightClickNode = Object.freeze(rightClickNode.slice(0, 1).concat(nodeConnect).concat(rightClickNode.slice(-1)));
|
|
3193
|
+
_this13.isRightVisible = true;
|
|
3087
3194
|
} else if (!id) {
|
|
3088
|
-
var operable =
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3195
|
+
var operable = _this13.propItems.operable;
|
|
3196
|
+
_this13._currentPoint = null;
|
|
3197
|
+
_this13.rightClickNode = Object.freeze(operable.set ? rightClickNode.slice(0, 2) : rightClickNode.slice(0, 1));
|
|
3198
|
+
_this13.isRightVisible = true;
|
|
3092
3199
|
}
|
|
3093
3200
|
});
|
|
3094
3201
|
},
|
|
@@ -3153,8 +3260,19 @@ var rightClickNodeConnect = [{
|
|
|
3153
3260
|
if (obj.id && /_polyline(Point|Line)_/.test(obj.id) && !obj.id.includes('isTitle') && isPolyLine) return true;
|
|
3154
3261
|
return;
|
|
3155
3262
|
},
|
|
3263
|
+
// 将当条线段以及点层级置顶
|
|
3264
|
+
// 线段不能先置顶,会挡住其他线段上的点
|
|
3265
|
+
pointToFront: function pointToFront(point) {
|
|
3266
|
+
var _this14 = this;
|
|
3267
|
+
|
|
3268
|
+
this.canvas.forEachObject(function (obj) {
|
|
3269
|
+
if (_this14.isOnePolyLine(obj, point.polylineTypeId, point.polylineIndex)) {
|
|
3270
|
+
_this14.canvas.bringToFront(obj);
|
|
3271
|
+
}
|
|
3272
|
+
});
|
|
3273
|
+
},
|
|
3156
3274
|
removePolyline: function removePolyline(id, left, position, polylineIndex) {
|
|
3157
|
-
var
|
|
3275
|
+
var _this15 = this;
|
|
3158
3276
|
|
|
3159
3277
|
// 根据id或者idClone删除
|
|
3160
3278
|
if (id) {
|
|
@@ -3166,13 +3284,13 @@ var rightClickNodeConnect = [{
|
|
|
3166
3284
|
if (point && point.length > 0) {
|
|
3167
3285
|
point.forEach(function (v) {
|
|
3168
3286
|
if (left && v.left >= left) {
|
|
3169
|
-
|
|
3287
|
+
_this15.canvas.remove(v);
|
|
3170
3288
|
|
|
3171
|
-
v.line1 &&
|
|
3289
|
+
v.line1 && _this15.canvas.remove(v.line1);
|
|
3172
3290
|
} else if (!left) {
|
|
3173
|
-
|
|
3291
|
+
_this15.canvas.remove(v);
|
|
3174
3292
|
|
|
3175
|
-
v.line1 &&
|
|
3293
|
+
v.line1 && _this15.canvas.remove(v.line1);
|
|
3176
3294
|
}
|
|
3177
3295
|
});
|
|
3178
3296
|
}
|
|
@@ -3186,12 +3304,12 @@ var rightClickNodeConnect = [{
|
|
|
3186
3304
|
return v.position === position;
|
|
3187
3305
|
});
|
|
3188
3306
|
this.canvas.forEachObject(function (obj) {
|
|
3189
|
-
if (
|
|
3190
|
-
obj.text &&
|
|
3191
|
-
obj.line1 &&
|
|
3192
|
-
obj.line2 &&
|
|
3307
|
+
if (_this15.isOnePolyLine(obj, polylineTypeId, polylineIndex)) {
|
|
3308
|
+
obj.text && _this15.canvas.remove(obj.text);
|
|
3309
|
+
obj.line1 && _this15.canvas.remove(obj.line1);
|
|
3310
|
+
obj.line2 && _this15.canvas.remove(obj.line2);
|
|
3193
3311
|
|
|
3194
|
-
|
|
3312
|
+
_this15.canvas.remove(obj);
|
|
3195
3313
|
}
|
|
3196
3314
|
});
|
|
3197
3315
|
return;
|
|
@@ -3200,9 +3318,9 @@ var rightClickNodeConnect = [{
|
|
|
3200
3318
|
|
|
3201
3319
|
this.canvas.forEachObject(function (obj) {
|
|
3202
3320
|
if (obj.id && /_polyline(Point|Line)_/.test(obj.id) && !obj.id.includes('isTitle')) {
|
|
3203
|
-
obj.text &&
|
|
3321
|
+
obj.text && _this15.canvas.remove(obj.text);
|
|
3204
3322
|
|
|
3205
|
-
|
|
3323
|
+
_this15.canvas.remove(obj);
|
|
3206
3324
|
}
|
|
3207
3325
|
});
|
|
3208
3326
|
},
|
|
@@ -3213,15 +3331,16 @@ var rightClickNodeConnect = [{
|
|
|
3213
3331
|
}
|
|
3214
3332
|
},
|
|
3215
3333
|
repaintPolyline: function repaintPolyline(position, dadaIndex) {
|
|
3216
|
-
var
|
|
3334
|
+
var _this16 = this;
|
|
3217
3335
|
|
|
3218
3336
|
if (arguments.length < 2) {
|
|
3219
3337
|
if (this.polyline.length) {
|
|
3220
3338
|
this.removePolyline();
|
|
3221
3339
|
}
|
|
3222
3340
|
|
|
3341
|
+
this.polylinePointList = [];
|
|
3223
3342
|
this.polyline.forEach(function (polylineType, polylineTypeId) {
|
|
3224
|
-
|
|
3343
|
+
_this16.createPolyline(polylineType, polylineTypeId);
|
|
3225
3344
|
});
|
|
3226
3345
|
this.removeTitle();
|
|
3227
3346
|
this.drawPolylineTitle();
|
|
@@ -3247,8 +3366,8 @@ var rightClickNodeConnect = [{
|
|
|
3247
3366
|
|
|
3248
3367
|
var FabricPolylines_component = Object(componentNormalizer["a" /* default */])(
|
|
3249
3368
|
fabric_chart_FabricPolylinesvue_type_script_lang_js_,
|
|
3250
|
-
|
|
3251
|
-
|
|
3369
|
+
FabricPolylinesvue_type_template_id_638600a8_render,
|
|
3370
|
+
FabricPolylinesvue_type_template_id_638600a8_staticRenderFns,
|
|
3252
3371
|
false,
|
|
3253
3372
|
null,
|
|
3254
3373
|
null,
|
|
@@ -3352,7 +3471,7 @@ var FabricGrid_component = Object(componentNormalizer["a" /* default */])(
|
|
|
3352
3471
|
)
|
|
3353
3472
|
|
|
3354
3473
|
/* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
|
|
3355
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3474
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3fd9a2cc-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=84b14bd8&
|
|
3356
3475
|
var FabricTextGroupvue_type_template_id_84b14bd8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"text-group"},[(_vm.isRightVisible)?_c('MouseRightClick',{attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}):_vm._e(),(_vm.isDropVisible)?_c('DropPopup',{attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}}):_vm._e()],1)}
|
|
3357
3476
|
var FabricTextGroupvue_type_template_id_84b14bd8_staticRenderFns = []
|
|
3358
3477
|
|
|
@@ -4144,19 +4263,19 @@ var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4144
4263
|
)
|
|
4145
4264
|
|
|
4146
4265
|
/* harmony default export */ var FabricTextGroup = (FabricTextGroup_component.exports);
|
|
4147
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4148
|
-
var
|
|
4149
|
-
var
|
|
4266
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3fd9a2cc-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=e702a32a&
|
|
4267
|
+
var FabricScaleValuevue_type_template_id_e702a32a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.templateData.top.xScalevalue.popupTop)?_c('TimeScaleValue',{attrs:{"times":_vm.timeList,"templateData":_vm.templateData}}):_vm._e()}
|
|
4268
|
+
var FabricScaleValuevue_type_template_id_e702a32a_staticRenderFns = []
|
|
4150
4269
|
|
|
4151
4270
|
|
|
4152
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=
|
|
4271
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=e702a32a&
|
|
4153
4272
|
|
|
4154
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4155
|
-
var
|
|
4156
|
-
var
|
|
4273
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3fd9a2cc-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=a10b6e3e&scoped=true&
|
|
4274
|
+
var TimeScaleValuevue_type_template_id_a10b6e3e_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)}
|
|
4275
|
+
var TimeScaleValuevue_type_template_id_a10b6e3e_scoped_true_staticRenderFns = []
|
|
4157
4276
|
|
|
4158
4277
|
|
|
4159
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=
|
|
4278
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=a10b6e3e&scoped=true&
|
|
4160
4279
|
|
|
4161
4280
|
// EXTERNAL MODULE: external "cnhis-design-vue/es/utils/vexutils"
|
|
4162
4281
|
var vexutils_ = __webpack_require__("9715");
|
|
@@ -4260,12 +4379,7 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
4260
4379
|
xScalevalue = _ref2.xScalevalue;
|
|
4261
4380
|
|
|
4262
4381
|
var popupTop = (xScalevalue === null || xScalevalue === void 0 ? void 0 : xScalevalue.popupTop) || 0;
|
|
4263
|
-
|
|
4264
|
-
if (top + newOriginY < popupTop) {
|
|
4265
|
-
this.isShow = true;
|
|
4266
|
-
} else {
|
|
4267
|
-
this.isShow = false;
|
|
4268
|
-
}
|
|
4382
|
+
this.isShow = top + newOriginY < popupTop ? true : false;
|
|
4269
4383
|
}
|
|
4270
4384
|
}
|
|
4271
4385
|
},
|
|
@@ -4275,8 +4389,8 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
4275
4389
|
});
|
|
4276
4390
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=script&lang=js&
|
|
4277
4391
|
/* harmony default export */ var components_TimeScaleValuevue_type_script_lang_js_ = (TimeScaleValuevue_type_script_lang_js_);
|
|
4278
|
-
// EXTERNAL MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=style&index=0&id=
|
|
4279
|
-
var
|
|
4392
|
+
// EXTERNAL MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=style&index=0&id=a10b6e3e&lang=less&scoped=true&
|
|
4393
|
+
var TimeScaleValuevue_type_style_index_0_id_a10b6e3e_lang_less_scoped_true_ = __webpack_require__("e350");
|
|
4280
4394
|
|
|
4281
4395
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue
|
|
4282
4396
|
|
|
@@ -4289,11 +4403,11 @@ var TimeScaleValuevue_type_style_index_0_id_64942e54_lang_less_scoped_true_ = __
|
|
|
4289
4403
|
|
|
4290
4404
|
var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
4291
4405
|
components_TimeScaleValuevue_type_script_lang_js_,
|
|
4292
|
-
|
|
4293
|
-
|
|
4406
|
+
TimeScaleValuevue_type_template_id_a10b6e3e_scoped_true_render,
|
|
4407
|
+
TimeScaleValuevue_type_template_id_a10b6e3e_scoped_true_staticRenderFns,
|
|
4294
4408
|
false,
|
|
4295
4409
|
null,
|
|
4296
|
-
"
|
|
4410
|
+
"a10b6e3e",
|
|
4297
4411
|
null
|
|
4298
4412
|
|
|
4299
4413
|
)
|
|
@@ -4305,6 +4419,7 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4305
4419
|
|
|
4306
4420
|
|
|
4307
4421
|
|
|
4422
|
+
|
|
4308
4423
|
//
|
|
4309
4424
|
//
|
|
4310
4425
|
//
|
|
@@ -4384,7 +4499,6 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4384
4499
|
|
|
4385
4500
|
return cur;
|
|
4386
4501
|
}, '');
|
|
4387
|
-
console.log(textList);
|
|
4388
4502
|
var group = new this.fabric.Group([].concat(textList), {
|
|
4389
4503
|
evented: false,
|
|
4390
4504
|
selectable: false
|
|
@@ -4395,6 +4509,7 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4395
4509
|
rightScaleValue: function rightScaleValue(obj) {
|
|
4396
4510
|
var _this3 = this;
|
|
4397
4511
|
|
|
4512
|
+
if (!obj) return;
|
|
4398
4513
|
var spaceGridNumber = obj.rightYScalevalue.spaceGridNumber || 2;
|
|
4399
4514
|
var marginLeft = obj.rightYScalevalue.marginLeft || 3;
|
|
4400
4515
|
var originX = this.propItems.endX + marginLeft;
|
|
@@ -4417,15 +4532,25 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4417
4532
|
this.canvas.sendBackwards(group);
|
|
4418
4533
|
},
|
|
4419
4534
|
leftScaleValue: function leftScaleValue(obj) {
|
|
4420
|
-
var
|
|
4535
|
+
var _obj$leftYScalevalue,
|
|
4536
|
+
_this4 = this;
|
|
4421
4537
|
|
|
4538
|
+
var _this$propItems2 = this.propItems,
|
|
4539
|
+
endY = _this$propItems2.endY,
|
|
4540
|
+
yCellHeight = _this$propItems2.yCellHeight;
|
|
4422
4541
|
var spaceGridNumber = obj.leftYScalevalue.spaceGridNumber || 2;
|
|
4423
|
-
|
|
4542
|
+
|
|
4543
|
+
var _ref = ((_obj$leftYScalevalue = obj.leftYScalevalue) === null || _obj$leftYScalevalue === void 0 ? void 0 : _obj$leftYScalevalue.titleMargin) || [5, 30],
|
|
4544
|
+
_ref2 = Object(slicedToArray["a" /* default */])(_ref, 2),
|
|
4545
|
+
titleMarginRight = _ref2[0],
|
|
4546
|
+
titleMarginButton = _ref2[1];
|
|
4547
|
+
|
|
4548
|
+
var listMarginRight = obj.leftYScalevalue.listMarginRight || 3;
|
|
4424
4549
|
var style = obj.leftYScalevalue.style || {};
|
|
4425
|
-
var originX = this.propItems.originX
|
|
4550
|
+
var originX = this.propItems.originX;
|
|
4426
4551
|
var textList = [];
|
|
4427
4552
|
obj.leftYScalevalue.list.forEach(function (item, index) {
|
|
4428
|
-
textList.push(_this4.createText(item, originX,
|
|
4553
|
+
textList.push(_this4.createText(item, originX - listMarginRight, endY - index * yCellHeight * spaceGridNumber, 'right', style));
|
|
4429
4554
|
}); // 添加标题和单位
|
|
4430
4555
|
|
|
4431
4556
|
var txt = '';
|
|
@@ -4433,8 +4558,8 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4433
4558
|
if (obj.leftYScalevalue.unit) txt += '\n' + obj.leftYScalevalue.unit;
|
|
4434
4559
|
|
|
4435
4560
|
if (txt) {
|
|
4436
|
-
var top =
|
|
4437
|
-
textList.push(this.createText(txt, originX, top, 'right', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, style), {}, {
|
|
4561
|
+
var top = endY - (obj.leftYScalevalue.list.length - 1) * yCellHeight * spaceGridNumber - titleMarginButton;
|
|
4562
|
+
textList.push(this.createText(txt, originX - titleMarginRight, top, 'right', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, style), {}, {
|
|
4438
4563
|
textAlign: 'right',
|
|
4439
4564
|
originY: 'bottom'
|
|
4440
4565
|
})));
|
|
@@ -4469,8 +4594,8 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4469
4594
|
|
|
4470
4595
|
var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
4471
4596
|
fabric_chart_FabricScaleValuevue_type_script_lang_js_,
|
|
4472
|
-
|
|
4473
|
-
|
|
4597
|
+
FabricScaleValuevue_type_template_id_e702a32a_render,
|
|
4598
|
+
FabricScaleValuevue_type_template_id_e702a32a_staticRenderFns,
|
|
4474
4599
|
false,
|
|
4475
4600
|
null,
|
|
4476
4601
|
null,
|
|
@@ -4479,7 +4604,7 @@ var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4479
4604
|
)
|
|
4480
4605
|
|
|
4481
4606
|
/* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
|
|
4482
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4607
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3fd9a2cc-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=229d2d58&
|
|
4483
4608
|
var FabricLinesvue_type_template_id_229d2d58_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"line"},[(_vm.isRightVisible)?_c('MouseRightClick',{attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}):_vm._e(),(_vm.isDropVisible)?_c('DropPopup',{attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}}):_vm._e()],1)}
|
|
4484
4609
|
var FabricLinesvue_type_template_id_229d2d58_staticRenderFns = []
|
|
4485
4610
|
|
|
@@ -5854,7 +5979,7 @@ var FabricBottom_component = Object(componentNormalizer["a" /* default */])(
|
|
|
5854
5979
|
)
|
|
5855
5980
|
|
|
5856
5981
|
/* harmony default export */ var FabricBottom = (FabricBottom_component.exports);
|
|
5857
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
5982
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3fd9a2cc-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-chart2/FabricCenter.vue?vue&type=template&id=4d90e644&
|
|
5858
5983
|
var FabricCentervue_type_template_id_4d90e644_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"poly-line"},[(_vm.isRightVisible)?_c('MouseRightClick',{attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}):_vm._e(),(_vm.isDropVisible)?_c('DropPopup',{attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}}):_vm._e()],1)}
|
|
5859
5984
|
var FabricCentervue_type_template_id_4d90e644_staticRenderFns = []
|
|
5860
5985
|
|
|
@@ -6791,27 +6916,6 @@ var FabricCenter_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6791
6916
|
//
|
|
6792
6917
|
//
|
|
6793
6918
|
//
|
|
6794
|
-
//
|
|
6795
|
-
//
|
|
6796
|
-
//
|
|
6797
|
-
//
|
|
6798
|
-
//
|
|
6799
|
-
//
|
|
6800
|
-
//
|
|
6801
|
-
//
|
|
6802
|
-
//
|
|
6803
|
-
//
|
|
6804
|
-
//
|
|
6805
|
-
//
|
|
6806
|
-
//
|
|
6807
|
-
//
|
|
6808
|
-
//
|
|
6809
|
-
//
|
|
6810
|
-
//
|
|
6811
|
-
//
|
|
6812
|
-
//
|
|
6813
|
-
//
|
|
6814
|
-
//
|
|
6815
6919
|
|
|
6816
6920
|
/**
|
|
6817
6921
|
* @author lujiafu
|
|
@@ -6895,7 +6999,7 @@ var FabricCenter_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6895
6999
|
|
|
6896
7000
|
var hasLeft = ((_this$templateData$le2 = this.templateData.left) === null || _this$templateData$le2 === void 0 ? void 0 : (_this$templateData$le3 = _this$templateData$le2.leftYScalevalue) === null || _this$templateData$le3 === void 0 ? void 0 : (_this$templateData$le4 = _this$templateData$le3.list) === null || _this$templateData$le4 === void 0 ? void 0 : _this$templateData$le4.length) > 0;
|
|
6897
7001
|
var hasRight = ((_this$templateData$ri5 = this.templateData.right) === null || _this$templateData$ri5 === void 0 ? void 0 : (_this$templateData$ri6 = _this$templateData$ri5.rightYScalevalue) === null || _this$templateData$ri6 === void 0 ? void 0 : (_this$templateData$ri7 = _this$templateData$ri6.list) === null || _this$templateData$ri7 === void 0 ? void 0 : _this$templateData$ri7.length) > 0;
|
|
6898
|
-
return this.hasXScalevalue && hasLeft
|
|
7002
|
+
return this.hasXScalevalue && (hasLeft || hasRight);
|
|
6899
7003
|
},
|
|
6900
7004
|
hasXScalevalue: function hasXScalevalue() {
|
|
6901
7005
|
var _this$templateData$to3, _this$templateData$to4, _this$templateData$to5;
|
|
@@ -6972,8 +7076,8 @@ var FabricCenter_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6972
7076
|
}));
|
|
6973
7077
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=script&lang=js&
|
|
6974
7078
|
/* harmony default export */ var src_FabricChartvue_type_script_lang_js_ = (FabricChartvue_type_script_lang_js_);
|
|
6975
|
-
// EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=
|
|
6976
|
-
var
|
|
7079
|
+
// EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=cb500674&lang=less&scoped=true&
|
|
7080
|
+
var FabricChartvue_type_style_index_0_id_cb500674_lang_less_scoped_true_ = __webpack_require__("26a0");
|
|
6977
7081
|
|
|
6978
7082
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue
|
|
6979
7083
|
|
|
@@ -6990,7 +7094,7 @@ var FabricChart_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6990
7094
|
staticRenderFns,
|
|
6991
7095
|
false,
|
|
6992
7096
|
null,
|
|
6993
|
-
"
|
|
7097
|
+
"cb500674",
|
|
6994
7098
|
null
|
|
6995
7099
|
|
|
6996
7100
|
)
|
|
@@ -7348,10 +7452,14 @@ module.exports = function (CONSTRUCTOR_NAME) {
|
|
|
7348
7452
|
|
|
7349
7453
|
/***/ }),
|
|
7350
7454
|
|
|
7351
|
-
/***/ "
|
|
7352
|
-
/***/ (function(module,
|
|
7455
|
+
/***/ "26a0":
|
|
7456
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7457
|
+
|
|
7458
|
+
"use strict";
|
|
7459
|
+
/* 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_cb500674_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("bb2d");
|
|
7460
|
+
/* 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_cb500674_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_cb500674_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
7461
|
+
/* unused harmony reexport * */
|
|
7353
7462
|
|
|
7354
|
-
// extracted by mini-css-extract-plugin
|
|
7355
7463
|
|
|
7356
7464
|
/***/ }),
|
|
7357
7465
|
|
|
@@ -8855,6 +8963,13 @@ module.exports = require("core-js/modules/es.object.to-string.js");
|
|
|
8855
8963
|
|
|
8856
8964
|
/***/ }),
|
|
8857
8965
|
|
|
8966
|
+
/***/ "98a5":
|
|
8967
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8968
|
+
|
|
8969
|
+
// extracted by mini-css-extract-plugin
|
|
8970
|
+
|
|
8971
|
+
/***/ }),
|
|
8972
|
+
|
|
8858
8973
|
/***/ "9b22":
|
|
8859
8974
|
/***/ (function(module, exports) {
|
|
8860
8975
|
|
|
@@ -9207,6 +9322,13 @@ module.exports = function (name) {
|
|
|
9207
9322
|
};
|
|
9208
9323
|
|
|
9209
9324
|
|
|
9325
|
+
/***/ }),
|
|
9326
|
+
|
|
9327
|
+
/***/ "bb2d":
|
|
9328
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9329
|
+
|
|
9330
|
+
// extracted by mini-css-extract-plugin
|
|
9331
|
+
|
|
9210
9332
|
/***/ }),
|
|
9211
9333
|
|
|
9212
9334
|
/***/ "be94":
|
|
@@ -9311,17 +9433,6 @@ try {
|
|
|
9311
9433
|
module.exports = g;
|
|
9312
9434
|
|
|
9313
9435
|
|
|
9314
|
-
/***/ }),
|
|
9315
|
-
|
|
9316
|
-
/***/ "c8fe":
|
|
9317
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9318
|
-
|
|
9319
|
-
"use strict";
|
|
9320
|
-
/* 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_TimeScaleValue_vue_vue_type_style_index_0_id_64942e54_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2794");
|
|
9321
|
-
/* 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_TimeScaleValue_vue_vue_type_style_index_0_id_64942e54_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_TimeScaleValue_vue_vue_type_style_index_0_id_64942e54_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
9322
|
-
/* unused harmony reexport * */
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
9436
|
/***/ }),
|
|
9326
9437
|
|
|
9327
9438
|
/***/ "ca84":
|
|
@@ -9781,10 +9892,14 @@ module.exports = function (target, src, options) {
|
|
|
9781
9892
|
|
|
9782
9893
|
/***/ }),
|
|
9783
9894
|
|
|
9784
|
-
/***/ "
|
|
9785
|
-
/***/ (function(module,
|
|
9895
|
+
/***/ "e350":
|
|
9896
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9897
|
+
|
|
9898
|
+
"use strict";
|
|
9899
|
+
/* 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_TimeScaleValue_vue_vue_type_style_index_0_id_a10b6e3e_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("98a5");
|
|
9900
|
+
/* 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_TimeScaleValue_vue_vue_type_style_index_0_id_a10b6e3e_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_TimeScaleValue_vue_vue_type_style_index_0_id_a10b6e3e_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
9901
|
+
/* unused harmony reexport * */
|
|
9786
9902
|
|
|
9787
|
-
// extracted by mini-css-extract-plugin
|
|
9788
9903
|
|
|
9789
9904
|
/***/ }),
|
|
9790
9905
|
|
|
@@ -9800,17 +9915,6 @@ module.exports = function (exec) {
|
|
|
9800
9915
|
};
|
|
9801
9916
|
|
|
9802
9917
|
|
|
9803
|
-
/***/ }),
|
|
9804
|
-
|
|
9805
|
-
/***/ "e6cd":
|
|
9806
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9807
|
-
|
|
9808
|
-
"use strict";
|
|
9809
|
-
/* 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_4ba88400_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e5e3");
|
|
9810
|
-
/* 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_4ba88400_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_4ba88400_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
9811
|
-
/* unused harmony reexport * */
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
9918
|
/***/ }),
|
|
9815
9919
|
|
|
9816
9920
|
/***/ "e6cf":
|