cnhis-design-vue 2.1.18 → 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 +207 -206
- package/es/big-table/style.css +1 -1
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +31 -31
- 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 +427 -314
- 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 +1078 -963
- 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 +27 -27
- 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 +142 -141
- 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 +1073 -958
- package/lib/cui.umd.js +1073 -958
- package/lib/cui.umd.min.js +77 -77
- package/package.json +106 -106
- 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 +610 -610
- 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 -728
- 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/FabricPolylines.vue +1035 -960
- package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +135 -135
- 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 -1316
- 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,7 +299,7 @@ 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":"
|
|
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
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
|
|
|
@@ -312,7 +312,7 @@ 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":"
|
|
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
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
317
|
var FabricCanvasvue_type_template_id_8b6630b2_staticRenderFns = []
|
|
318
318
|
|
|
@@ -798,7 +798,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
798
798
|
)
|
|
799
799
|
|
|
800
800
|
/* harmony default export */ var FabricCanvas = (component.exports);
|
|
801
|
-
// 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&
|
|
802
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)}
|
|
803
803
|
var FabricCanvasvue_type_template_id_d9708486_staticRenderFns = []
|
|
804
804
|
|
|
@@ -1038,12 +1038,12 @@ var FabricCanvas_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1038
1038
|
)
|
|
1039
1039
|
|
|
1040
1040
|
/* harmony default export */ var fabric_chart2_FabricCanvas = (FabricCanvas_component.exports);
|
|
1041
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1042
|
-
var
|
|
1043
|
-
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 = []
|
|
1044
1044
|
|
|
1045
1045
|
|
|
1046
|
-
// 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&
|
|
1047
1047
|
|
|
1048
1048
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
1049
1049
|
var arrayWithHoles = __webpack_require__("0d21");
|
|
@@ -1107,15 +1107,15 @@ var es_array_splice_js_ = __webpack_require__("f3b8");
|
|
|
1107
1107
|
// EXTERNAL MODULE: external "core-js/modules/es.array.slice.js"
|
|
1108
1108
|
var es_array_slice_js_ = __webpack_require__("ea12");
|
|
1109
1109
|
|
|
1110
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.find-index.js"
|
|
1111
|
+
var es_array_find_index_js_ = __webpack_require__("4c7f");
|
|
1112
|
+
|
|
1110
1113
|
// EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
|
|
1111
1114
|
var es_regexp_to_string_js_ = __webpack_require__("30df");
|
|
1112
1115
|
|
|
1113
1116
|
// EXTERNAL MODULE: external "core-js/modules/es.object.freeze.js"
|
|
1114
1117
|
var es_object_freeze_js_ = __webpack_require__("030b");
|
|
1115
1118
|
|
|
1116
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.find-index.js"
|
|
1117
|
-
var es_array_find_index_js_ = __webpack_require__("4c7f");
|
|
1118
|
-
|
|
1119
1119
|
// EXTERNAL MODULE: external "vxe-table"
|
|
1120
1120
|
var external_vxe_table_ = __webpack_require__("f906");
|
|
1121
1121
|
|
|
@@ -1449,11 +1449,12 @@ var type_isObject = function isObject(obj) {
|
|
|
1449
1449
|
while (1) {
|
|
1450
1450
|
switch (_context.prev = _context.next) {
|
|
1451
1451
|
case 0:
|
|
1452
|
+
data.hoverCursor = 'pointer';
|
|
1452
1453
|
_context.t0 = type;
|
|
1453
|
-
_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;
|
|
1454
1455
|
break;
|
|
1455
1456
|
|
|
1456
|
-
case
|
|
1457
|
+
case 4:
|
|
1457
1458
|
return _context.abrupt("return", new _this.fabric.Triangle(Object(objectSpread2["a" /* default */])({
|
|
1458
1459
|
width: 20,
|
|
1459
1460
|
height: 20,
|
|
@@ -1461,7 +1462,7 @@ var type_isObject = function isObject(obj) {
|
|
|
1461
1462
|
scale: 1
|
|
1462
1463
|
}, data)));
|
|
1463
1464
|
|
|
1464
|
-
case
|
|
1465
|
+
case 5:
|
|
1465
1466
|
return _context.abrupt("return", new _this.fabric.Circle(Object(objectSpread2["a" /* default */])({
|
|
1466
1467
|
objectCaching: false,
|
|
1467
1468
|
strokeWidth: 1,
|
|
@@ -1469,8 +1470,8 @@ var type_isObject = function isObject(obj) {
|
|
|
1469
1470
|
scale: 1
|
|
1470
1471
|
}, data)));
|
|
1471
1472
|
|
|
1472
|
-
case
|
|
1473
|
-
_context.next =
|
|
1473
|
+
case 6:
|
|
1474
|
+
_context.next = 8;
|
|
1474
1475
|
return new Promise(function (resolve, reject) {
|
|
1475
1476
|
var common = Object(objectSpread2["a" /* default */])({
|
|
1476
1477
|
originX: 'center',
|
|
@@ -1499,16 +1500,16 @@ var type_isObject = function isObject(obj) {
|
|
|
1499
1500
|
}
|
|
1500
1501
|
});
|
|
1501
1502
|
|
|
1502
|
-
case
|
|
1503
|
+
case 8:
|
|
1503
1504
|
return _context.abrupt("return", _context.sent);
|
|
1504
1505
|
|
|
1505
|
-
case
|
|
1506
|
+
case 9:
|
|
1506
1507
|
return _context.abrupt("return", _this.createArrow(data));
|
|
1507
1508
|
|
|
1508
|
-
case
|
|
1509
|
+
case 10:
|
|
1509
1510
|
return _context.abrupt("return", _this.createAdd(data));
|
|
1510
1511
|
|
|
1511
|
-
case
|
|
1512
|
+
case 11:
|
|
1512
1513
|
obj1 = _this.createAdd(data);
|
|
1513
1514
|
obj2 = _this.createCircleBorder(data);
|
|
1514
1515
|
return _context.abrupt("return", new _this.fabric.Group([obj2, obj1], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
@@ -1517,7 +1518,7 @@ var type_isObject = function isObject(obj) {
|
|
|
1517
1518
|
angle: 0
|
|
1518
1519
|
})));
|
|
1519
1520
|
|
|
1520
|
-
case
|
|
1521
|
+
case 14:
|
|
1521
1522
|
obj1 = new _this.fabric.Circle({
|
|
1522
1523
|
objectCaching: false,
|
|
1523
1524
|
radius: data.width / 5,
|
|
@@ -1532,17 +1533,17 @@ var type_isObject = function isObject(obj) {
|
|
|
1532
1533
|
scale: 1
|
|
1533
1534
|
}, data)));
|
|
1534
1535
|
|
|
1535
|
-
case
|
|
1536
|
+
case 17:
|
|
1536
1537
|
obj1 = _this.ceateLineArrow(data);
|
|
1537
1538
|
obj2 = _this.createCircleBorder(data);
|
|
1538
1539
|
return _context.abrupt("return", new _this.fabric.Group([obj2, obj1], Object(objectSpread2["a" /* default */])({
|
|
1539
1540
|
scale: 1
|
|
1540
1541
|
}, data)));
|
|
1541
1542
|
|
|
1542
|
-
case
|
|
1543
|
+
case 20:
|
|
1543
1544
|
return _context.abrupt("return", _this.createJXTQ(data));
|
|
1544
1545
|
|
|
1545
|
-
case
|
|
1546
|
+
case 21:
|
|
1546
1547
|
// 文字(默认:比如 type === x)
|
|
1547
1548
|
data.stroke && delete data.stroke;
|
|
1548
1549
|
return _context.abrupt("return", new _this.fabric.Text(String(type), Object(objectSpread2["a" /* default */])({
|
|
@@ -1552,7 +1553,7 @@ var type_isObject = function isObject(obj) {
|
|
|
1552
1553
|
fill: '#000'
|
|
1553
1554
|
}, data)));
|
|
1554
1555
|
|
|
1555
|
-
case
|
|
1556
|
+
case 23:
|
|
1556
1557
|
case "end":
|
|
1557
1558
|
return _context.stop();
|
|
1558
1559
|
}
|
|
@@ -1577,18 +1578,26 @@ var type_isObject = function isObject(obj) {
|
|
|
1577
1578
|
methods: {
|
|
1578
1579
|
// 折线点移动限制 目前仅限制不能移动出画布
|
|
1579
1580
|
pointMoveLimit: function pointMoveLimit(point) {
|
|
1581
|
+
var _point$prevPoint, _point$nextPoint;
|
|
1582
|
+
|
|
1583
|
+
var isLimit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
1580
1584
|
point.setCoords(); // 需调用setCoords()才能重新计算控制位置(改变Object状态)
|
|
1581
1585
|
// const objBoundingBox = point.getBoundingRect(); // 此方式会导致结果不精准,应该用point的top值判断
|
|
1582
1586
|
|
|
1583
|
-
var
|
|
1584
|
-
|
|
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;
|
|
1585
1594
|
|
|
1586
|
-
if (point.top <
|
|
1587
|
-
point.set('top',
|
|
1595
|
+
if (point.top < originY) {
|
|
1596
|
+
point.set('top', originY);
|
|
1588
1597
|
}
|
|
1589
1598
|
|
|
1590
|
-
if (point.top >
|
|
1591
|
-
point.set('top',
|
|
1599
|
+
if (point.top > endY) {
|
|
1600
|
+
point.set('top', endY);
|
|
1592
1601
|
}
|
|
1593
1602
|
|
|
1594
1603
|
if (point.left < leftLimit) {
|
|
@@ -1649,7 +1658,7 @@ var type_isObject = function isObject(obj) {
|
|
|
1649
1658
|
}
|
|
1650
1659
|
}
|
|
1651
1660
|
});
|
|
1652
|
-
// 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&
|
|
1653
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)])}
|
|
1654
1663
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_staticRenderFns = []
|
|
1655
1664
|
|
|
@@ -1757,7 +1766,7 @@ var MouseRightClick_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1757
1766
|
)
|
|
1758
1767
|
|
|
1759
1768
|
/* harmony default export */ var MouseRightClick = (MouseRightClick_component.exports);
|
|
1760
|
-
// 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&
|
|
1761
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)])}
|
|
1762
1771
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_staticRenderFns = []
|
|
1763
1772
|
|
|
@@ -1959,7 +1968,11 @@ var rightClickNodeConnect = [{
|
|
|
1959
1968
|
// 快速新增的节点list
|
|
1960
1969
|
isSelectArea: false,
|
|
1961
1970
|
// 是否正在选区
|
|
1962
|
-
selectArea: null
|
|
1971
|
+
selectArea: null,
|
|
1972
|
+
// 选区矩形对象
|
|
1973
|
+
currentDelPoint: null,
|
|
1974
|
+
// 缓存当前可批量删除的项目线段上的点
|
|
1975
|
+
polylinePointList: [] // 缓存折线项目节点
|
|
1963
1976
|
|
|
1964
1977
|
};
|
|
1965
1978
|
},
|
|
@@ -1970,21 +1983,23 @@ var rightClickNodeConnect = [{
|
|
|
1970
1983
|
},
|
|
1971
1984
|
watch: {},
|
|
1972
1985
|
mounted: function mounted() {
|
|
1973
|
-
var
|
|
1986
|
+
var _this2 = this;
|
|
1974
1987
|
|
|
1975
1988
|
this.$nextTick(function () {
|
|
1976
|
-
|
|
1989
|
+
_this2.drawPolylineTitle();
|
|
1977
1990
|
|
|
1978
|
-
|
|
1979
|
-
|
|
1991
|
+
_this2.polylinePointList = [];
|
|
1992
|
+
|
|
1993
|
+
_this2.polyline.forEach(function (polylineType, polylineTypeId) {
|
|
1994
|
+
_this2.createPolyline(polylineType, polylineTypeId);
|
|
1980
1995
|
});
|
|
1981
1996
|
|
|
1982
|
-
|
|
1997
|
+
_this2.eventStyle.evented && _this2.createEvent();
|
|
1983
1998
|
});
|
|
1984
1999
|
},
|
|
1985
2000
|
methods: {
|
|
1986
2001
|
createEvent: function createEvent() {
|
|
1987
|
-
var
|
|
2002
|
+
var _this3 = this;
|
|
1988
2003
|
|
|
1989
2004
|
this.canvas.on('mouse:up', function (event) {
|
|
1990
2005
|
if (event.button === 3) {
|
|
@@ -1992,29 +2007,34 @@ var rightClickNodeConnect = [{
|
|
|
1992
2007
|
x = _event$pointer.x,
|
|
1993
2008
|
y = _event$pointer.y;
|
|
1994
2009
|
|
|
1995
|
-
var
|
|
1996
|
-
originX =
|
|
1997
|
-
originY =
|
|
1998
|
-
endX =
|
|
1999
|
-
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;
|
|
2000
2015
|
|
|
2001
2016
|
if (!(x < originX || x > endX || y < originY || y > endY)) {
|
|
2002
|
-
|
|
2003
|
-
document.querySelector('.upper-canvas').addEventListener('contextmenu',
|
|
2017
|
+
_this3.activeEvent = event;
|
|
2018
|
+
document.querySelector('.upper-canvas').addEventListener('contextmenu', _this3.addEventListenerContextmenu, true);
|
|
2004
2019
|
} // this.willUpdateLine = line;
|
|
2005
2020
|
|
|
2006
2021
|
} // 左键松开鼠标-批量删除
|
|
2007
2022
|
|
|
2008
2023
|
|
|
2009
|
-
|
|
2024
|
+
_this3.isSelectArea = false;
|
|
2010
2025
|
|
|
2011
|
-
if (event.button === 1 && !event.target &&
|
|
2012
|
-
var points =
|
|
2026
|
+
if (event.button === 1 && !event.target && _this3.selectArea) {
|
|
2027
|
+
var points = _this3.selectArea.ponits;
|
|
2013
2028
|
|
|
2014
|
-
var delList =
|
|
2029
|
+
var delList = _this3.getAreaPonits(points);
|
|
2015
2030
|
|
|
2016
|
-
delList.length === 0 &&
|
|
2017
|
-
|
|
2031
|
+
delList.length === 0 && _this3.removeSelectArea();
|
|
2032
|
+
|
|
2033
|
+
if (delList.length > 0 && _this3.selectArea) {
|
|
2034
|
+
_this3.$emit('pointOperation', 'delete', delList);
|
|
2035
|
+
|
|
2036
|
+
_this3.currentDelPoint = null;
|
|
2037
|
+
}
|
|
2018
2038
|
}
|
|
2019
2039
|
});
|
|
2020
2040
|
var selectAreaOrigin = {
|
|
@@ -2023,18 +2043,18 @@ var rightClickNodeConnect = [{
|
|
|
2023
2043
|
};
|
|
2024
2044
|
this.canvas.on('mouse:down', function (event) {
|
|
2025
2045
|
if (event.button === 1 && !event.target) {
|
|
2026
|
-
|
|
2046
|
+
_this3.isSelectArea = true;
|
|
2027
2047
|
selectAreaOrigin.left = event.pointer.x;
|
|
2028
2048
|
selectAreaOrigin.top = event.pointer.y;
|
|
2029
2049
|
}
|
|
2030
2050
|
});
|
|
2031
2051
|
this.canvas.on('mouse:move', function (event) {
|
|
2032
|
-
|
|
2052
|
+
_this3.isSelectArea && _this3.createSelectArea(event, selectAreaOrigin);
|
|
2033
2053
|
});
|
|
2034
2054
|
},
|
|
2035
2055
|
// 获取选区内包含的节点
|
|
2036
2056
|
getAreaPonits: function getAreaPonits(points) {
|
|
2037
|
-
var
|
|
2057
|
+
var _this4 = this;
|
|
2038
2058
|
|
|
2039
2059
|
var delList = [];
|
|
2040
2060
|
|
|
@@ -2051,7 +2071,15 @@ var rightClickNodeConnect = [{
|
|
|
2051
2071
|
var isArea = left >= x1 && left <= x2 && top >= y1 && top <= y2;
|
|
2052
2072
|
|
|
2053
2073
|
if (id && /_polyline(Point)_/.test(id) && !id.includes('isTitle') && isArea) {
|
|
2054
|
-
|
|
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
|
+
}
|
|
2055
2083
|
}
|
|
2056
2084
|
});
|
|
2057
2085
|
return delList;
|
|
@@ -2073,16 +2101,16 @@ var rightClickNodeConnect = [{
|
|
|
2073
2101
|
},
|
|
2074
2102
|
// 每一个折线类别
|
|
2075
2103
|
createPolyline: function createPolyline(polylineType, polylineTypeId) {
|
|
2076
|
-
var
|
|
2104
|
+
var _this5 = this;
|
|
2077
2105
|
|
|
2078
2106
|
polylineType.dataList.forEach(function (polylineItem, polylineIndex) {
|
|
2079
|
-
|
|
2107
|
+
_this5.drawPolyline(polylineItem, polylineIndex, polylineType, polylineTypeId);
|
|
2080
2108
|
});
|
|
2081
2109
|
},
|
|
2082
2110
|
// 绘制左侧折线标题
|
|
2083
2111
|
drawPolylineTitle: function drawPolylineTitle() {
|
|
2084
2112
|
var _this$other,
|
|
2085
|
-
|
|
2113
|
+
_this6 = this;
|
|
2086
2114
|
|
|
2087
2115
|
var _this$propItems = this.propItems,
|
|
2088
2116
|
canvasHeight = _this$propItems.canvasHeight,
|
|
@@ -2132,28 +2160,21 @@ var rightClickNodeConnect = [{
|
|
|
2132
2160
|
}); // 配置左侧title图标(但不是折线项目)
|
|
2133
2161
|
|
|
2134
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
|
+
|
|
2135
2174
|
if (this.other.position && this.other.position === 'top') {
|
|
2136
|
-
leftTitleList.push.apply(leftTitleList, Object(toConsumableArray["a" /* default */])(
|
|
2137
|
-
return {
|
|
2138
|
-
title: v.name,
|
|
2139
|
-
type: v.type,
|
|
2140
|
-
pointAttr: v,
|
|
2141
|
-
isAdd: false,
|
|
2142
|
-
polylineTypeId: -1,
|
|
2143
|
-
polylineIndex: -1
|
|
2144
|
-
};
|
|
2145
|
-
})));
|
|
2175
|
+
leftTitleList.push.apply(leftTitleList, Object(toConsumableArray["a" /* default */])(otherList));
|
|
2146
2176
|
} else {
|
|
2147
|
-
leftTitleList.unshift.apply(leftTitleList, Object(toConsumableArray["a" /* default */])(
|
|
2148
|
-
return {
|
|
2149
|
-
title: v.name,
|
|
2150
|
-
type: v.type,
|
|
2151
|
-
pointAttr: v,
|
|
2152
|
-
isAdd: false,
|
|
2153
|
-
polylineTypeId: -1,
|
|
2154
|
-
polylineIndex: -1
|
|
2155
|
-
};
|
|
2156
|
-
})));
|
|
2177
|
+
leftTitleList.unshift.apply(leftTitleList, Object(toConsumableArray["a" /* default */])(otherList));
|
|
2157
2178
|
}
|
|
2158
2179
|
}
|
|
2159
2180
|
|
|
@@ -2177,7 +2198,7 @@ var rightClickNodeConnect = [{
|
|
|
2177
2198
|
left = lableMargin[0] + treeTableminCellWidth;
|
|
2178
2199
|
pointId = "".concat(v.polylineTypeId, "_").concat(v.polylineIndex, "_-1_polylinePoint_'").concat(new Date().getTime(), "_isTitle");
|
|
2179
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;
|
|
2180
|
-
text = new
|
|
2201
|
+
text = new _this6.fabric.Text(String(v.title), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
2181
2202
|
fontSize: style.fontSize,
|
|
2182
2203
|
fill: fillColor && stroke ? stroke : fillColor,
|
|
2183
2204
|
left: left,
|
|
@@ -2199,7 +2220,7 @@ var rightClickNodeConnect = [{
|
|
|
2199
2220
|
id: pointId,
|
|
2200
2221
|
polylineTypeId: v.polylineTypeId,
|
|
2201
2222
|
polylineIndex: v.polylineIndex
|
|
2202
|
-
}, v.isAdd &&
|
|
2223
|
+
}, v.isAdd && _this6.eventStyle.evented ? {} : eventStyle), {}, {
|
|
2203
2224
|
rightLimit: v.rightLimit || ''
|
|
2204
2225
|
});
|
|
2205
2226
|
|
|
@@ -2209,14 +2230,14 @@ var rightClickNodeConnect = [{
|
|
|
2209
2230
|
}
|
|
2210
2231
|
|
|
2211
2232
|
_context.next = 12;
|
|
2212
|
-
return
|
|
2233
|
+
return _this6.createImage(v.pointAttr.iconClassName, v.pointAttr);
|
|
2213
2234
|
|
|
2214
2235
|
case 12:
|
|
2215
2236
|
ele = _context.sent;
|
|
2216
2237
|
|
|
2217
2238
|
case 13:
|
|
2218
2239
|
_context.next = 15;
|
|
2219
|
-
return
|
|
2240
|
+
return _this6.createPoint(v.type, Object(objectSpread2["a" /* default */])({
|
|
2220
2241
|
ele: ele || ''
|
|
2221
2242
|
}, option));
|
|
2222
2243
|
|
|
@@ -2232,7 +2253,7 @@ var rightClickNodeConnect = [{
|
|
|
2232
2253
|
scaleY: 1
|
|
2233
2254
|
});
|
|
2234
2255
|
|
|
2235
|
-
|
|
2256
|
+
_this6.canvas.renderAll();
|
|
2236
2257
|
}
|
|
2237
2258
|
|
|
2238
2259
|
if (!cloneIconId) {
|
|
@@ -2244,9 +2265,9 @@ var rightClickNodeConnect = [{
|
|
|
2244
2265
|
});
|
|
2245
2266
|
clonedObj.bringForward();
|
|
2246
2267
|
|
|
2247
|
-
|
|
2268
|
+
_this6.canvas.add(clonedObj);
|
|
2248
2269
|
|
|
2249
|
-
|
|
2270
|
+
_this6.canvas.renderAll();
|
|
2250
2271
|
});
|
|
2251
2272
|
}
|
|
2252
2273
|
|
|
@@ -2254,18 +2275,18 @@ var rightClickNodeConnect = [{
|
|
|
2254
2275
|
originX: 'center'
|
|
2255
2276
|
});
|
|
2256
2277
|
|
|
2257
|
-
|
|
2278
|
+
_this6.moveLimit(icon);
|
|
2258
2279
|
|
|
2259
2280
|
icon.left >= originX && icon.left < originX + 5 && (originTop = icon.top);
|
|
2260
2281
|
|
|
2261
2282
|
if (icon.left >= originX) {
|
|
2262
2283
|
// this.addPoint(icon, originX, originTop);
|
|
2263
|
-
|
|
2284
|
+
_this6.showDrapPopup(icon);
|
|
2264
2285
|
} else {
|
|
2265
|
-
|
|
2286
|
+
_this6.isDropVisible = false;
|
|
2266
2287
|
}
|
|
2267
2288
|
|
|
2268
|
-
|
|
2289
|
+
_this6.canvas.renderAll();
|
|
2269
2290
|
}); // 标题折线点停止拖拽后 更新
|
|
2270
2291
|
|
|
2271
2292
|
icon.on('moved', function () {
|
|
@@ -2273,29 +2294,29 @@ var rightClickNodeConnect = [{
|
|
|
2273
2294
|
id: icon.id.replace('_isTitle', '')
|
|
2274
2295
|
});
|
|
2275
2296
|
|
|
2276
|
-
|
|
2297
|
+
_this6.canvas.renderAll();
|
|
2277
2298
|
|
|
2278
|
-
|
|
2299
|
+
_this6.removeTitle();
|
|
2279
2300
|
|
|
2280
|
-
|
|
2301
|
+
_this6.removePolyline(cloneIconId);
|
|
2281
2302
|
|
|
2282
|
-
if (icon.id.includes('_polylinePoint_') &&
|
|
2283
|
-
|
|
2303
|
+
if (icon.id.includes('_polylinePoint_') && _this6.isDropVisible) {
|
|
2304
|
+
_this6.isDropVisible = false;
|
|
2284
2305
|
|
|
2285
2306
|
if (icon.left >= originX) {
|
|
2286
2307
|
// this.setEmitFunction(icon);
|
|
2287
|
-
|
|
2308
|
+
_this6.setAddPointList(icon);
|
|
2288
2309
|
|
|
2289
|
-
|
|
2310
|
+
_this6.$emit('pointOperation', 'increasePointBatch', _this6.addPointList);
|
|
2290
2311
|
|
|
2291
|
-
|
|
2312
|
+
_this6.addPointList = [];
|
|
2292
2313
|
}
|
|
2293
2314
|
}
|
|
2294
2315
|
|
|
2295
|
-
|
|
2316
|
+
_this6.removePolyline(icon.id); // 重绘折线标题
|
|
2296
2317
|
|
|
2297
2318
|
|
|
2298
|
-
|
|
2319
|
+
_this6.drawPolylineTitle();
|
|
2299
2320
|
}); // 优化左侧图标太小不容易选中的问题
|
|
2300
2321
|
|
|
2301
2322
|
if (icon.evented && !icon.url) {
|
|
@@ -2309,9 +2330,9 @@ var rightClickNodeConnect = [{
|
|
|
2309
2330
|
}
|
|
2310
2331
|
}
|
|
2311
2332
|
|
|
2312
|
-
|
|
2333
|
+
_this6.canvas.add(text, icon);
|
|
2313
2334
|
|
|
2314
|
-
|
|
2335
|
+
_this6.canvas.requestRenderAll();
|
|
2315
2336
|
|
|
2316
2337
|
case 23:
|
|
2317
2338
|
case "end":
|
|
@@ -2349,11 +2370,11 @@ var rightClickNodeConnect = [{
|
|
|
2349
2370
|
}
|
|
2350
2371
|
},
|
|
2351
2372
|
removeTitle: function removeTitle() {
|
|
2352
|
-
var
|
|
2373
|
+
var _this7 = this;
|
|
2353
2374
|
|
|
2354
2375
|
this.canvas.forEachObject(function (obj) {
|
|
2355
2376
|
if (obj.id && obj.id.includes('isTitle')) {
|
|
2356
|
-
|
|
2377
|
+
_this7.canvas.remove(obj);
|
|
2357
2378
|
}
|
|
2358
2379
|
});
|
|
2359
2380
|
},
|
|
@@ -2367,7 +2388,7 @@ var rightClickNodeConnect = [{
|
|
|
2367
2388
|
createAttrVaule: function createAttrVaule(attr, polyline, polylineIndex, polylineType, polylineTypeId) {
|
|
2368
2389
|
var _valueObj$max,
|
|
2369
2390
|
_valueObj$max2,
|
|
2370
|
-
|
|
2391
|
+
_this8 = this,
|
|
2371
2392
|
_valueObj$min,
|
|
2372
2393
|
_valueObj$min2,
|
|
2373
2394
|
_this$canvas;
|
|
@@ -2379,10 +2400,10 @@ var rightClickNodeConnect = [{
|
|
|
2379
2400
|
originX = _this$propItems2.originX,
|
|
2380
2401
|
endX = _this$propItems2.endX;
|
|
2381
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) {
|
|
2382
|
-
return +v.value >= +valueObj.max.value &&
|
|
2403
|
+
return +v.value >= +valueObj.max.value && _this8.isLimit(v.time);
|
|
2383
2404
|
});
|
|
2384
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) {
|
|
2385
|
-
return +v.value <= +valueObj.min.value &&
|
|
2406
|
+
return +v.value <= +valueObj.min.value && _this8.isLimit(v.time);
|
|
2386
2407
|
});
|
|
2387
2408
|
var lines = [];
|
|
2388
2409
|
|
|
@@ -2390,9 +2411,9 @@ var rightClickNodeConnect = [{
|
|
|
2390
2411
|
var value = _ref2.value,
|
|
2391
2412
|
lineStyle = _ref2.lineStyle;
|
|
2392
2413
|
|
|
2393
|
-
var top =
|
|
2414
|
+
var top = _this8.cumputedY(polylineType, +value);
|
|
2394
2415
|
|
|
2395
|
-
return
|
|
2416
|
+
return _this8.drawLine([originX, top, endX, top], Object(objectSpread2["a" /* default */])({
|
|
2396
2417
|
polylineIndex: polylineIndex,
|
|
2397
2418
|
lineIndex: 0,
|
|
2398
2419
|
polylineTypeId: polylineTypeId
|
|
@@ -2402,7 +2423,7 @@ var rightClickNodeConnect = [{
|
|
|
2402
2423
|
var drawText = function drawText(_ref3, top) {
|
|
2403
2424
|
var name = _ref3.name,
|
|
2404
2425
|
nameStyle = _ref3.nameStyle;
|
|
2405
|
-
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), {}, {
|
|
2406
2427
|
originY: 'bottom',
|
|
2407
2428
|
left: originX + 5,
|
|
2408
2429
|
top: top - 5
|
|
@@ -2430,16 +2451,16 @@ var rightClickNodeConnect = [{
|
|
|
2430
2451
|
this.canvas.renderAll();
|
|
2431
2452
|
},
|
|
2432
2453
|
|
|
2433
|
-
/**
|
|
2434
|
-
* 绘制一条折线
|
|
2435
|
-
* @param {polyline} 折线属性
|
|
2436
|
-
* @param {polyline.type} 折线点形状 circle: 圆 | triangle: 三角
|
|
2437
|
-
* @param {polyline.pointAttr} 参数 fill: 填充色 | stroke: 描边色 | strokeWidth: 宽度 | radius: 半径 | width: 宽度 | height: 高度
|
|
2438
|
-
* @param {polyline.list} 折线点坐标数组
|
|
2439
|
-
* @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
|
|
2440
2461
|
*/
|
|
2441
2462
|
drawPolyline: function drawPolyline(polyline, polylineIndex, polylineType, polylineTypeId) {
|
|
2442
|
-
var
|
|
2463
|
+
var _this9 = this;
|
|
2443
2464
|
|
|
2444
2465
|
var _this$propItems3 = this.propItems,
|
|
2445
2466
|
originY = _this$propItems3.originY,
|
|
@@ -2450,36 +2471,44 @@ var rightClickNodeConnect = [{
|
|
|
2450
2471
|
var list = polyline.list;
|
|
2451
2472
|
var pointList = [];
|
|
2452
2473
|
var lineList = [];
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2474
|
+
|
|
2475
|
+
var _this = this;
|
|
2476
|
+
|
|
2477
|
+
function getPointer(point) {
|
|
2456
2478
|
var isInit = false;
|
|
2479
|
+
var points = null;
|
|
2457
2480
|
|
|
2458
|
-
if (isEffectiveNode(
|
|
2459
|
-
var x =
|
|
2481
|
+
if (isEffectiveNode(point) && _this.isLimit(point.time)) {
|
|
2482
|
+
var x = _this.cumputedX(point.time);
|
|
2460
2483
|
|
|
2461
|
-
var y =
|
|
2484
|
+
var y = _this.cumputedY(polylineType, point.value);
|
|
2462
2485
|
|
|
2463
2486
|
isInit = y < originY || y > endY;
|
|
2464
|
-
|
|
2465
|
-
}
|
|
2487
|
+
points = [x, y < originY ? originY : y > endY ? endY : y];
|
|
2488
|
+
}
|
|
2466
2489
|
|
|
2490
|
+
return {
|
|
2491
|
+
isInit: isInit,
|
|
2492
|
+
points: points
|
|
2493
|
+
};
|
|
2494
|
+
}
|
|
2467
2495
|
|
|
2468
|
-
|
|
2469
|
-
|
|
2496
|
+
list.forEach(function (linePoints, index) {
|
|
2497
|
+
// 当前点
|
|
2498
|
+
var _getPointer = getPointer(linePoints),
|
|
2499
|
+
points = _getPointer.points,
|
|
2500
|
+
isInit = _getPointer.isInit; // 下一个点
|
|
2470
2501
|
|
|
2471
|
-
if (isEffectiveNode(nextPoints)) {
|
|
2472
|
-
var nextX = _this8.cumputedX(nextPoints.time);
|
|
2473
2502
|
|
|
2474
|
-
|
|
2503
|
+
var nextPoints = list[index + 1];
|
|
2475
2504
|
|
|
2476
|
-
|
|
2477
|
-
|
|
2505
|
+
var _getPointer2 = getPointer(nextPoints),
|
|
2506
|
+
nextPoint = _getPointer2.points;
|
|
2478
2507
|
|
|
2479
2508
|
var line;
|
|
2480
2509
|
var point;
|
|
2481
2510
|
var previousLine;
|
|
2482
|
-
line = points && nextPoint ?
|
|
2511
|
+
line = points && nextPoint ? _this9.drawLine([].concat(Object(toConsumableArray["a" /* default */])(points), Object(toConsumableArray["a" /* default */])(nextPoint)), Object(objectSpread2["a" /* default */])({
|
|
2483
2512
|
polylineIndex: polylineIndex,
|
|
2484
2513
|
polylineTypeId: polylineTypeId,
|
|
2485
2514
|
lineIndex: index
|
|
@@ -2496,14 +2525,37 @@ var rightClickNodeConnect = [{
|
|
|
2496
2525
|
|
|
2497
2526
|
if (points) {
|
|
2498
2527
|
pointOthers.time = linePoints.time;
|
|
2499
|
-
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]));
|
|
2500
2529
|
}
|
|
2501
2530
|
|
|
2502
2531
|
lineList.push(line);
|
|
2503
2532
|
point && pointList.push(point);
|
|
2504
2533
|
});
|
|
2505
2534
|
Promise.all(pointList).then(function (res) {
|
|
2506
|
-
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
|
+
}
|
|
2507
2559
|
|
|
2508
2560
|
lineList = lineList.filter(function (v) {
|
|
2509
2561
|
return v;
|
|
@@ -2520,9 +2572,9 @@ var rightClickNodeConnect = [{
|
|
|
2520
2572
|
return v;
|
|
2521
2573
|
});
|
|
2522
2574
|
|
|
2523
|
-
(
|
|
2575
|
+
(_this9$canvas = _this9.canvas).add.apply(_this9$canvas, Object(toConsumableArray["a" /* default */])(lineList).concat(Object(toConsumableArray["a" /* default */])(res)));
|
|
2524
2576
|
|
|
2525
|
-
|
|
2577
|
+
_this9.canvas.requestRenderAll();
|
|
2526
2578
|
});
|
|
2527
2579
|
this.createAttrVaule('critical', polyline, polylineIndex, polylineType, polylineTypeId);
|
|
2528
2580
|
this.createAttrVaule('diffValue', polyline, polylineIndex, polylineType, polylineTypeId);
|
|
@@ -2539,15 +2591,15 @@ var rightClickNodeConnect = [{
|
|
|
2539
2591
|
return this.propItems.endY - yScaleCell * yCellUnit;
|
|
2540
2592
|
},
|
|
2541
2593
|
|
|
2542
|
-
/**
|
|
2543
|
-
* 绘制折线点
|
|
2544
|
-
* @param {left, top} 折线点坐标
|
|
2545
|
-
* @param {line1, line2} 与折线点关联的线
|
|
2546
|
-
* @param {type} 折线点类型
|
|
2547
|
-
* @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
|
|
2548
2600
|
*/
|
|
2549
2601
|
drawPoint: function drawPoint(left, top, line1, line2, type, others, isInit) {
|
|
2550
|
-
var
|
|
2602
|
+
var _this10 = this;
|
|
2551
2603
|
|
|
2552
2604
|
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
2553
2605
|
var pointId, ele, point;
|
|
@@ -2556,7 +2608,7 @@ var rightClickNodeConnect = [{
|
|
|
2556
2608
|
switch (_context2.prev = _context2.next) {
|
|
2557
2609
|
case 0:
|
|
2558
2610
|
pointId = "".concat(others.polylineTypeId, "_").concat(others.polylineIndex, "_").concat(others.pointIndex, "_polylinePoint_").concat(new Date().getTime());
|
|
2559
|
-
_context2.t0 =
|
|
2611
|
+
_context2.t0 = _this10._iconClassName;
|
|
2560
2612
|
|
|
2561
2613
|
if (!_context2.t0) {
|
|
2562
2614
|
_context2.next = 6;
|
|
@@ -2564,7 +2616,7 @@ var rightClickNodeConnect = [{
|
|
|
2564
2616
|
}
|
|
2565
2617
|
|
|
2566
2618
|
_context2.next = 5;
|
|
2567
|
-
return
|
|
2619
|
+
return _this10.createImage(_this10._iconClassName, others);
|
|
2568
2620
|
|
|
2569
2621
|
case 5:
|
|
2570
2622
|
_context2.t0 = _context2.sent;
|
|
@@ -2572,12 +2624,12 @@ var rightClickNodeConnect = [{
|
|
|
2572
2624
|
case 6:
|
|
2573
2625
|
ele = _context2.t0;
|
|
2574
2626
|
_context2.next = 9;
|
|
2575
|
-
return
|
|
2627
|
+
return _this10.createPoint(type, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
2576
2628
|
id: pointId,
|
|
2577
2629
|
left: left,
|
|
2578
2630
|
top: top,
|
|
2579
2631
|
ele: ele || ''
|
|
2580
|
-
}, defaultVaule.pointStyle), others), !
|
|
2632
|
+
}, defaultVaule.pointStyle), others), !_this10.eventStyle.evented ? {
|
|
2581
2633
|
lockMovementX: true,
|
|
2582
2634
|
lockMovementY: true
|
|
2583
2635
|
} : {}));
|
|
@@ -2588,50 +2640,47 @@ var rightClickNodeConnect = [{
|
|
|
2588
2640
|
line1 && (point.line1 = line1);
|
|
2589
2641
|
line2 && (point.line2 = line2);
|
|
2590
2642
|
point.on('mouseover', function () {
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
// if (this.isOnePolyLine(obj, point.polylineTypeId, point.polylineIndex)) {
|
|
2595
|
-
// obj.line1 && this.canvas.bringToFront(obj.line1);
|
|
2596
|
-
// obj.line2 && this.canvas.bringToFront(obj.line2);
|
|
2597
|
-
// }
|
|
2598
|
-
// });
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
_this9.canvas.forEachObject(function (obj) {
|
|
2602
|
-
if (_this9.isOnePolyLine(obj, point.polylineTypeId, point.polylineIndex)) {
|
|
2603
|
-
_this9.canvas.bringToFront(obj);
|
|
2604
|
-
}
|
|
2605
|
-
});
|
|
2643
|
+
_this10.showDrapPopup(point);
|
|
2644
|
+
|
|
2645
|
+
_this10.pointToFront(point);
|
|
2606
2646
|
});
|
|
2607
2647
|
point.on('mouseout', function () {
|
|
2608
|
-
|
|
2648
|
+
_this10.isDropVisible = false;
|
|
2609
2649
|
}); // 折线点移动中 实时更新相关联的线的坐标
|
|
2610
2650
|
|
|
2611
|
-
if (
|
|
2651
|
+
if (_this10.eventStyle.evented) {
|
|
2612
2652
|
point.on('moving', function () {
|
|
2613
|
-
|
|
2653
|
+
_this10.pointMoveLimit(point, false);
|
|
2614
2654
|
|
|
2615
|
-
|
|
2655
|
+
_this10.pointMoveUpdateLine(point);
|
|
2616
2656
|
|
|
2617
|
-
|
|
2657
|
+
_this10.addPoint(point, left, top);
|
|
2618
2658
|
|
|
2619
|
-
|
|
2659
|
+
_this10.canvas.renderAll();
|
|
2620
2660
|
|
|
2621
|
-
|
|
2661
|
+
_this10.showDrapPopup(point);
|
|
2622
2662
|
}); // 折线点停止拖拽后 更新polyline中对应的坐标
|
|
2623
2663
|
|
|
2624
2664
|
point.on('moved', function () {
|
|
2625
2665
|
if (point && point.id.includes('_polylinePoint_')) {
|
|
2626
|
-
|
|
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;
|
|
2627
2674
|
|
|
2628
|
-
|
|
2675
|
+
if (button == 1 && isClick) {
|
|
2676
|
+
// 可配置批量删除当前项目上的点了
|
|
2677
|
+
_this10.currentDelPoint = point;
|
|
2629
2678
|
}
|
|
2630
2679
|
});
|
|
2631
2680
|
} // 超出表格最高或最低值则需要触发pointChange事件并且不能更新视图,否则连接节点判断不会成功
|
|
2632
2681
|
|
|
2633
2682
|
|
|
2634
|
-
isInit &&
|
|
2683
|
+
isInit && _this10.setEmitFunction(point, isInit);
|
|
2635
2684
|
return _context2.abrupt("return", point);
|
|
2636
2685
|
|
|
2637
2686
|
case 18:
|
|
@@ -2662,7 +2711,7 @@ var rightClickNodeConnect = [{
|
|
|
2662
2711
|
if (this.addPointList.length === 0) {
|
|
2663
2712
|
this.$emit('pointChange', data);
|
|
2664
2713
|
} else {
|
|
2665
|
-
var last = this.addPointList
|
|
2714
|
+
var last = this.addPointList.at(-1); // 如果是重合/连线节点
|
|
2666
2715
|
|
|
2667
2716
|
if (point.get('scaleX') !== point.scale) {
|
|
2668
2717
|
var value = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, last), {}, {
|
|
@@ -2672,23 +2721,40 @@ var rightClickNodeConnect = [{
|
|
|
2672
2721
|
}
|
|
2673
2722
|
});
|
|
2674
2723
|
|
|
2675
|
-
if (
|
|
2676
|
-
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
|
+
});
|
|
2677
2734
|
} else {
|
|
2678
|
-
|
|
2735
|
+
if (last.left === point.left) {
|
|
2736
|
+
this.addPointList.splice(-1, 1, value);
|
|
2737
|
+
} else {
|
|
2738
|
+
this.addPointList.push(value);
|
|
2679
2739
|
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
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);
|
|
2685
2745
|
|
|
2686
|
-
|
|
2687
|
-
|
|
2746
|
+
if (prePoint.value.time == lastPoint.value.time) {
|
|
2747
|
+
this.addPointList.splice(-2, 1);
|
|
2748
|
+
}
|
|
2688
2749
|
}
|
|
2689
2750
|
}
|
|
2751
|
+
} else if (point.line2) {
|
|
2752
|
+
this.addPointList = [];
|
|
2753
|
+
this.repaintPolyline(this.polyline[point.polylineTypeId].position, point.polylineIndex);
|
|
2754
|
+
return;
|
|
2690
2755
|
}
|
|
2691
2756
|
|
|
2757
|
+
!point.line2 && this.addPointList.splice(0, 1);
|
|
2692
2758
|
!point.id.includes('isTitle') && this.removePolyline(point.id);
|
|
2693
2759
|
this.$emit('pointOperation', 'increasePointBatch', this.addPointList);
|
|
2694
2760
|
this.addPointList = [];
|
|
@@ -2710,37 +2776,59 @@ var rightClickNodeConnect = [{
|
|
|
2710
2776
|
this.addPointList.push(data);
|
|
2711
2777
|
},
|
|
2712
2778
|
|
|
2713
|
-
/**
|
|
2714
|
-
* @description: 滑动批量新增节点
|
|
2715
|
-
* @param {*} point 拖动的最后一个节点
|
|
2716
|
-
* @param {*} originLeft 拖动的源节点的left值
|
|
2717
|
-
* @param {*} originTop 拖动的源节点的top值
|
|
2718
|
-
* @return {*}
|
|
2779
|
+
/**
|
|
2780
|
+
* @description: 滑动批量新增节点
|
|
2781
|
+
* @param {*} point 拖动的最后一个节点
|
|
2782
|
+
* @param {*} originLeft 拖动的源节点的left值
|
|
2783
|
+
* @param {*} originTop 拖动的源节点的top值
|
|
2784
|
+
* @return {*}
|
|
2719
2785
|
*/
|
|
2720
2786
|
addPoint: function addPoint(point, originLeft, originTop) {
|
|
2721
|
-
var
|
|
2787
|
+
var _this11 = this;
|
|
2722
2788
|
|
|
2723
2789
|
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
2724
|
-
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;
|
|
2725
2791
|
|
|
2726
2792
|
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
2727
2793
|
while (1) {
|
|
2728
2794
|
switch (_context3.prev = _context3.next) {
|
|
2729
2795
|
case 0:
|
|
2730
|
-
|
|
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 || [];
|
|
2731
2817
|
|
|
2732
2818
|
addPointSpaceGridNumber = table.addPointSpaceGridNumber || 1;
|
|
2733
2819
|
left = point.left, top = point.top;
|
|
2734
2820
|
currentLeft = left;
|
|
2735
|
-
startLength =
|
|
2821
|
+
startLength = _this11.addPointList.length;
|
|
2736
2822
|
n = 6; // 拖动范围,在需要增加节点的刻度左右吸入的范围值
|
|
2737
2823
|
|
|
2738
2824
|
spaceWidth = xCellWidth * addPointSpaceGridNumber;
|
|
2739
2825
|
residue = (left - originLeft) % spaceWidth;
|
|
2740
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) {
|
|
2741
2829
|
|
|
2742
|
-
if (!(
|
|
2743
|
-
_context3.next =
|
|
2830
|
+
if (!(condition && (conditionNoLine2 || conditionHasLine2))) {
|
|
2831
|
+
_context3.next = 36;
|
|
2744
2832
|
break;
|
|
2745
2833
|
}
|
|
2746
2834
|
|
|
@@ -2751,24 +2839,24 @@ var rightClickNodeConnect = [{
|
|
|
2751
2839
|
});
|
|
2752
2840
|
|
|
2753
2841
|
checkPoints = function checkPoints() {
|
|
2754
|
-
var
|
|
2842
|
+
var _this11$addPointList;
|
|
2755
2843
|
|
|
2756
2844
|
var PointLens = Math.floor((left - originLeft) / spaceWidth);
|
|
2757
2845
|
|
|
2758
|
-
if (PointLens > 1 && ((
|
|
2846
|
+
if (PointLens > 1 && ((_this11$addPointList = _this11.addPointList) === null || _this11$addPointList === void 0 ? void 0 : _this11$addPointList.length) < PointLens) {
|
|
2759
2847
|
for (var k = 0; k < PointLens; k++) {
|
|
2760
2848
|
if (k > 0) {
|
|
2761
2849
|
(function () {
|
|
2762
2850
|
var curLeft = originLeft + spaceWidth * k; // 判断this.addPointList中的left是否包含curLeft,不包含就说明是漏了
|
|
2763
2851
|
|
|
2764
|
-
var isNoLack =
|
|
2852
|
+
var isNoLack = _this11.addPointList.some(function (v) {
|
|
2765
2853
|
return v.left === curLeft;
|
|
2766
2854
|
});
|
|
2767
2855
|
|
|
2768
2856
|
if (!isNoLack) {
|
|
2769
2857
|
var index;
|
|
2770
2858
|
|
|
2771
|
-
var pointObj =
|
|
2859
|
+
var pointObj = _this11.addPointList.find(function (v, i) {
|
|
2772
2860
|
if (v.left > curLeft) {
|
|
2773
2861
|
index = i;
|
|
2774
2862
|
}
|
|
@@ -2778,10 +2866,10 @@ var rightClickNodeConnect = [{
|
|
|
2778
2866
|
|
|
2779
2867
|
if (pointObj) {
|
|
2780
2868
|
var cloneObj = JSON.parse(JSON.stringify(pointObj));
|
|
2781
|
-
cloneObj.value.time =
|
|
2869
|
+
cloneObj.value.time = _this11.getXValue(curLeft);
|
|
2782
2870
|
cloneObj.left = curLeft;
|
|
2783
2871
|
|
|
2784
|
-
|
|
2872
|
+
_this11.addPointList.splice(index, 0, cloneObj);
|
|
2785
2873
|
}
|
|
2786
2874
|
}
|
|
2787
2875
|
})();
|
|
@@ -2792,47 +2880,53 @@ var rightClickNodeConnect = [{
|
|
|
2792
2880
|
// 复制点和线
|
|
2793
2881
|
|
|
2794
2882
|
|
|
2795
|
-
if (!(
|
|
2796
|
-
_context3.next =
|
|
2883
|
+
if (!(conditionNoLine2 || conditionHasLine2)) {
|
|
2884
|
+
_context3.next = 36;
|
|
2797
2885
|
break;
|
|
2798
2886
|
}
|
|
2799
2887
|
|
|
2800
|
-
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) {
|
|
2801
2895
|
|
|
2802
|
-
_context3.t0 =
|
|
2896
|
+
_context3.t0 = _this11.addPointList.length == 0;
|
|
2803
2897
|
|
|
2804
2898
|
if (!_context3.t0) {
|
|
2805
|
-
_context3.next =
|
|
2899
|
+
_context3.next = 24;
|
|
2806
2900
|
break;
|
|
2807
2901
|
}
|
|
2808
2902
|
|
|
2809
|
-
_context3.next =
|
|
2810
|
-
return
|
|
2903
|
+
_context3.next = 24;
|
|
2904
|
+
return _this11.clonePoint(point, [point.line1 ? point.line1.x1 : originLeft, point.line1 ? point.line1.y1 : originTop, originLeft, originTop]);
|
|
2811
2905
|
|
|
2812
|
-
case
|
|
2813
|
-
if (!
|
|
2906
|
+
case 24:
|
|
2907
|
+
if (!_this11.addPointList.every(function (v) {
|
|
2814
2908
|
return v.left !== left;
|
|
2815
2909
|
})) {
|
|
2816
|
-
_context3.next =
|
|
2910
|
+
_context3.next = 35;
|
|
2817
2911
|
break;
|
|
2818
2912
|
}
|
|
2819
2913
|
|
|
2820
2914
|
// const points1 = i === 1 ? [originLeft, originTop] : point.prePoints;
|
|
2821
|
-
points1 =
|
|
2915
|
+
points1 = _this11.addPointList.length == 0 ? [originLeft, originTop] : point.prePoints;
|
|
2822
2916
|
_context3.t1 = points1;
|
|
2823
2917
|
|
|
2824
2918
|
if (!_context3.t1) {
|
|
2825
|
-
_context3.next =
|
|
2919
|
+
_context3.next = 30;
|
|
2826
2920
|
break;
|
|
2827
2921
|
}
|
|
2828
2922
|
|
|
2829
|
-
_context3.next =
|
|
2830
|
-
return
|
|
2923
|
+
_context3.next = 30;
|
|
2924
|
+
return _this11.clonePoint(point, [].concat(Object(toConsumableArray["a" /* default */])(points1), [left, top]));
|
|
2831
2925
|
|
|
2832
|
-
case
|
|
2926
|
+
case 30:
|
|
2833
2927
|
// this.setAddPointList(point);
|
|
2834
2928
|
// 调用上面方法就会导致线段绘制失败,目前还不知道为啥子
|
|
2835
|
-
|
|
2929
|
+
_this11$getValue = _this11.getValue(point), data = _this11$getValue.data, x = _this11$getValue.x, y = _this11$getValue.y;
|
|
2836
2930
|
data.value = {
|
|
2837
2931
|
time: x,
|
|
2838
2932
|
value: y
|
|
@@ -2840,45 +2934,55 @@ var rightClickNodeConnect = [{
|
|
|
2840
2934
|
data.left = point.left;
|
|
2841
2935
|
data.top = top;
|
|
2842
2936
|
|
|
2843
|
-
|
|
2937
|
+
_this11.addPointList.push(data);
|
|
2844
2938
|
|
|
2845
|
-
case
|
|
2939
|
+
case 35:
|
|
2846
2940
|
checkPoints();
|
|
2847
2941
|
|
|
2848
|
-
case
|
|
2849
|
-
//
|
|
2850
|
-
if (
|
|
2851
|
-
point.
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
scaleX: point.scale === 1 ? 2.5 : 0.1,
|
|
2855
|
-
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;
|
|
2856
2948
|
});
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
scaleX: point.scale,
|
|
2860
|
-
scaleY: point.scale
|
|
2949
|
+
pointObjI = polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.findIndex(function (v) {
|
|
2950
|
+
return v + n > left;
|
|
2861
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);
|
|
2862
2956
|
} // 如果往回拖动则删除经过的已存在的节点
|
|
2863
2957
|
|
|
2864
2958
|
|
|
2865
|
-
if (startLength > 0 && currentLeft <=
|
|
2866
|
-
|
|
2959
|
+
if (startLength > 0 && currentLeft <= _this11.addPointList[startLength - 1].left) {
|
|
2960
|
+
_this11.removePolyline('increasePointBatch', left);
|
|
2867
2961
|
|
|
2868
|
-
|
|
2962
|
+
_this11.addPointList = _this11.addPointList.filter(function (v) {
|
|
2869
2963
|
return v.left < left;
|
|
2870
2964
|
});
|
|
2871
|
-
endLength =
|
|
2872
|
-
|
|
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
|
+
}
|
|
2873
2977
|
|
|
2874
2978
|
if (endLength > 0) {
|
|
2875
2979
|
point.set({
|
|
2876
|
-
prePoints: [
|
|
2980
|
+
prePoints: [_this11.addPointList[endLength - 1].left, _this11.addPointList[endLength - 1].top]
|
|
2877
2981
|
});
|
|
2878
2982
|
}
|
|
2879
2983
|
}
|
|
2880
2984
|
|
|
2881
|
-
case
|
|
2985
|
+
case 38:
|
|
2882
2986
|
case "end":
|
|
2883
2987
|
return _context3.stop();
|
|
2884
2988
|
}
|
|
@@ -2887,7 +2991,7 @@ var rightClickNodeConnect = [{
|
|
|
2887
2991
|
}))();
|
|
2888
2992
|
},
|
|
2889
2993
|
clonePoint: function clonePoint(point, points) {
|
|
2890
|
-
var
|
|
2994
|
+
var _this12 = this;
|
|
2891
2995
|
|
|
2892
2996
|
var evented, selectable, lineIndex, polylineIndex, lineAttr, polylineTypeId;
|
|
2893
2997
|
evented = selectable = false;
|
|
@@ -2904,14 +3008,16 @@ var rightClickNodeConnect = [{
|
|
|
2904
3008
|
id: '_polylinePoint_' + new Date().getTime(),
|
|
2905
3009
|
// 此id必须,用于remove节点的时候
|
|
2906
3010
|
polylineTypeId: polylineTypeId,
|
|
2907
|
-
polylineIndex: point.polylineIndex
|
|
3011
|
+
polylineIndex: point.polylineIndex,
|
|
3012
|
+
scaleX: point.scale,
|
|
3013
|
+
scaleY: point.scale
|
|
2908
3014
|
});
|
|
2909
3015
|
clonedObj.hasControls = clonedObj.hasBorders = false;
|
|
2910
3016
|
point.set({
|
|
2911
3017
|
prePoints: [point.left, point.top]
|
|
2912
3018
|
});
|
|
2913
3019
|
|
|
2914
|
-
var line =
|
|
3020
|
+
var line = _this12.drawLine(Object(toConsumableArray["a" /* default */])(points), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
2915
3021
|
evented: evented,
|
|
2916
3022
|
selectable: selectable
|
|
2917
3023
|
}, lineAttr), {}, {
|
|
@@ -2922,13 +3028,13 @@ var rightClickNodeConnect = [{
|
|
|
2922
3028
|
|
|
2923
3029
|
clonedObj.line1 = line;
|
|
2924
3030
|
|
|
2925
|
-
|
|
3031
|
+
_this12.canvas.sendBackwards(line);
|
|
2926
3032
|
|
|
2927
3033
|
clonedObj.bringForward();
|
|
2928
3034
|
|
|
2929
|
-
|
|
3035
|
+
_this12.canvas.add(clonedObj);
|
|
2930
3036
|
|
|
2931
|
-
|
|
3037
|
+
_this12.canvas.renderAll();
|
|
2932
3038
|
|
|
2933
3039
|
resolve(clonedObj);
|
|
2934
3040
|
});
|
|
@@ -2969,10 +3075,10 @@ var rightClickNodeConnect = [{
|
|
|
2969
3075
|
return y;
|
|
2970
3076
|
},
|
|
2971
3077
|
|
|
2972
|
-
/**
|
|
2973
|
-
* 绘制折线点
|
|
2974
|
-
* @param {lines} 线坐标 [x1, y1, x2, y2]
|
|
2975
|
-
* @param {others} 参数 polylineIndex | pointIndex | ...polyline.lineAttr
|
|
3078
|
+
/**
|
|
3079
|
+
* 绘制折线点
|
|
3080
|
+
* @param {lines} 线坐标 [x1, y1, x2, y2]
|
|
3081
|
+
* @param {others} 参数 polylineIndex | pointIndex | ...polyline.lineAttr
|
|
2976
3082
|
*/
|
|
2977
3083
|
drawLine: function drawLine(lines, others) {
|
|
2978
3084
|
var lineId = "".concat(others.lineIndex, "_").concat(others.polylineIndex, "_polylineLine_").concat(new Date().getTime());
|
|
@@ -3011,9 +3117,9 @@ var rightClickNodeConnect = [{
|
|
|
3011
3117
|
var _y$toString$split = y.toString().split('.'),
|
|
3012
3118
|
_y$toString$split2 = Object(slicedToArray["a" /* default */])(_y$toString$split, 2),
|
|
3013
3119
|
m = _y$toString$split2[0],
|
|
3014
|
-
|
|
3120
|
+
_n = _y$toString$split2[1];
|
|
3015
3121
|
|
|
3016
|
-
return parseFloat("".concat(m, ".").concat(
|
|
3122
|
+
return parseFloat("".concat(m, ".").concat(_n.slice(0, 1))) * 10 / 10;
|
|
3017
3123
|
}
|
|
3018
3124
|
|
|
3019
3125
|
return y;
|
|
@@ -3055,7 +3161,7 @@ var rightClickNodeConnect = [{
|
|
|
3055
3161
|
},
|
|
3056
3162
|
// 打开右键菜单
|
|
3057
3163
|
openRightModal: function openRightModal(event) {
|
|
3058
|
-
var
|
|
3164
|
+
var _this13 = this;
|
|
3059
3165
|
|
|
3060
3166
|
this.rightPos = {
|
|
3061
3167
|
clientX: event.e.clientX || event.e.pageX,
|
|
@@ -3066,10 +3172,10 @@ var rightClickNodeConnect = [{
|
|
|
3066
3172
|
var id = target ? target.id : '';
|
|
3067
3173
|
this.$nextTick(function () {
|
|
3068
3174
|
if (id && id.includes('_polylinePoint_')) {
|
|
3069
|
-
|
|
3175
|
+
_this13._currentPoint = target;
|
|
3070
3176
|
var nodeConnect = [];
|
|
3071
3177
|
|
|
3072
|
-
if (
|
|
3178
|
+
if (_this13.propItems.operable.connect) {
|
|
3073
3179
|
if (!target.line2 && target.nextPoint) {
|
|
3074
3180
|
nodeConnect = rightClickNodeConnect.slice(0, 1);
|
|
3075
3181
|
}
|
|
@@ -3083,13 +3189,13 @@ var rightClickNodeConnect = [{
|
|
|
3083
3189
|
}
|
|
3084
3190
|
}
|
|
3085
3191
|
|
|
3086
|
-
|
|
3087
|
-
|
|
3192
|
+
_this13.rightClickNode = Object.freeze(rightClickNode.slice(0, 1).concat(nodeConnect).concat(rightClickNode.slice(-1)));
|
|
3193
|
+
_this13.isRightVisible = true;
|
|
3088
3194
|
} else if (!id) {
|
|
3089
|
-
var operable =
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
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;
|
|
3093
3199
|
}
|
|
3094
3200
|
});
|
|
3095
3201
|
},
|
|
@@ -3154,8 +3260,19 @@ var rightClickNodeConnect = [{
|
|
|
3154
3260
|
if (obj.id && /_polyline(Point|Line)_/.test(obj.id) && !obj.id.includes('isTitle') && isPolyLine) return true;
|
|
3155
3261
|
return;
|
|
3156
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
|
+
},
|
|
3157
3274
|
removePolyline: function removePolyline(id, left, position, polylineIndex) {
|
|
3158
|
-
var
|
|
3275
|
+
var _this15 = this;
|
|
3159
3276
|
|
|
3160
3277
|
// 根据id或者idClone删除
|
|
3161
3278
|
if (id) {
|
|
@@ -3167,13 +3284,13 @@ var rightClickNodeConnect = [{
|
|
|
3167
3284
|
if (point && point.length > 0) {
|
|
3168
3285
|
point.forEach(function (v) {
|
|
3169
3286
|
if (left && v.left >= left) {
|
|
3170
|
-
|
|
3287
|
+
_this15.canvas.remove(v);
|
|
3171
3288
|
|
|
3172
|
-
v.line1 &&
|
|
3289
|
+
v.line1 && _this15.canvas.remove(v.line1);
|
|
3173
3290
|
} else if (!left) {
|
|
3174
|
-
|
|
3291
|
+
_this15.canvas.remove(v);
|
|
3175
3292
|
|
|
3176
|
-
v.line1 &&
|
|
3293
|
+
v.line1 && _this15.canvas.remove(v.line1);
|
|
3177
3294
|
}
|
|
3178
3295
|
});
|
|
3179
3296
|
}
|
|
@@ -3187,12 +3304,12 @@ var rightClickNodeConnect = [{
|
|
|
3187
3304
|
return v.position === position;
|
|
3188
3305
|
});
|
|
3189
3306
|
this.canvas.forEachObject(function (obj) {
|
|
3190
|
-
if (
|
|
3191
|
-
obj.text &&
|
|
3192
|
-
obj.line1 &&
|
|
3193
|
-
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);
|
|
3194
3311
|
|
|
3195
|
-
|
|
3312
|
+
_this15.canvas.remove(obj);
|
|
3196
3313
|
}
|
|
3197
3314
|
});
|
|
3198
3315
|
return;
|
|
@@ -3201,9 +3318,9 @@ var rightClickNodeConnect = [{
|
|
|
3201
3318
|
|
|
3202
3319
|
this.canvas.forEachObject(function (obj) {
|
|
3203
3320
|
if (obj.id && /_polyline(Point|Line)_/.test(obj.id) && !obj.id.includes('isTitle')) {
|
|
3204
|
-
obj.text &&
|
|
3321
|
+
obj.text && _this15.canvas.remove(obj.text);
|
|
3205
3322
|
|
|
3206
|
-
|
|
3323
|
+
_this15.canvas.remove(obj);
|
|
3207
3324
|
}
|
|
3208
3325
|
});
|
|
3209
3326
|
},
|
|
@@ -3214,15 +3331,16 @@ var rightClickNodeConnect = [{
|
|
|
3214
3331
|
}
|
|
3215
3332
|
},
|
|
3216
3333
|
repaintPolyline: function repaintPolyline(position, dadaIndex) {
|
|
3217
|
-
var
|
|
3334
|
+
var _this16 = this;
|
|
3218
3335
|
|
|
3219
3336
|
if (arguments.length < 2) {
|
|
3220
3337
|
if (this.polyline.length) {
|
|
3221
3338
|
this.removePolyline();
|
|
3222
3339
|
}
|
|
3223
3340
|
|
|
3341
|
+
this.polylinePointList = [];
|
|
3224
3342
|
this.polyline.forEach(function (polylineType, polylineTypeId) {
|
|
3225
|
-
|
|
3343
|
+
_this16.createPolyline(polylineType, polylineTypeId);
|
|
3226
3344
|
});
|
|
3227
3345
|
this.removeTitle();
|
|
3228
3346
|
this.drawPolylineTitle();
|
|
@@ -3248,8 +3366,8 @@ var rightClickNodeConnect = [{
|
|
|
3248
3366
|
|
|
3249
3367
|
var FabricPolylines_component = Object(componentNormalizer["a" /* default */])(
|
|
3250
3368
|
fabric_chart_FabricPolylinesvue_type_script_lang_js_,
|
|
3251
|
-
|
|
3252
|
-
|
|
3369
|
+
FabricPolylinesvue_type_template_id_638600a8_render,
|
|
3370
|
+
FabricPolylinesvue_type_template_id_638600a8_staticRenderFns,
|
|
3253
3371
|
false,
|
|
3254
3372
|
null,
|
|
3255
3373
|
null,
|
|
@@ -3353,7 +3471,7 @@ var FabricGrid_component = Object(componentNormalizer["a" /* default */])(
|
|
|
3353
3471
|
)
|
|
3354
3472
|
|
|
3355
3473
|
/* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
|
|
3356
|
-
// 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&
|
|
3357
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)}
|
|
3358
3476
|
var FabricTextGroupvue_type_template_id_84b14bd8_staticRenderFns = []
|
|
3359
3477
|
|
|
@@ -4145,19 +4263,19 @@ var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4145
4263
|
)
|
|
4146
4264
|
|
|
4147
4265
|
/* harmony default export */ var FabricTextGroup = (FabricTextGroup_component.exports);
|
|
4148
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
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&
|
|
4149
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()}
|
|
4150
4268
|
var FabricScaleValuevue_type_template_id_e702a32a_staticRenderFns = []
|
|
4151
4269
|
|
|
4152
4270
|
|
|
4153
4271
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=e702a32a&
|
|
4154
4272
|
|
|
4155
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4156
|
-
var
|
|
4157
|
-
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 = []
|
|
4158
4276
|
|
|
4159
4277
|
|
|
4160
|
-
// 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&
|
|
4161
4279
|
|
|
4162
4280
|
// EXTERNAL MODULE: external "cnhis-design-vue/es/utils/vexutils"
|
|
4163
4281
|
var vexutils_ = __webpack_require__("9715");
|
|
@@ -4261,12 +4379,7 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
4261
4379
|
xScalevalue = _ref2.xScalevalue;
|
|
4262
4380
|
|
|
4263
4381
|
var popupTop = (xScalevalue === null || xScalevalue === void 0 ? void 0 : xScalevalue.popupTop) || 0;
|
|
4264
|
-
|
|
4265
|
-
if (top + newOriginY < popupTop) {
|
|
4266
|
-
this.isShow = true;
|
|
4267
|
-
} else {
|
|
4268
|
-
this.isShow = false;
|
|
4269
|
-
}
|
|
4382
|
+
this.isShow = top + newOriginY < popupTop ? true : false;
|
|
4270
4383
|
}
|
|
4271
4384
|
}
|
|
4272
4385
|
},
|
|
@@ -4276,8 +4389,8 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
4276
4389
|
});
|
|
4277
4390
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=script&lang=js&
|
|
4278
4391
|
/* harmony default export */ var components_TimeScaleValuevue_type_script_lang_js_ = (TimeScaleValuevue_type_script_lang_js_);
|
|
4279
|
-
// EXTERNAL MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=style&index=0&id=
|
|
4280
|
-
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");
|
|
4281
4394
|
|
|
4282
4395
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue
|
|
4283
4396
|
|
|
@@ -4290,11 +4403,11 @@ var TimeScaleValuevue_type_style_index_0_id_64942e54_lang_less_scoped_true_ = __
|
|
|
4290
4403
|
|
|
4291
4404
|
var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
4292
4405
|
components_TimeScaleValuevue_type_script_lang_js_,
|
|
4293
|
-
|
|
4294
|
-
|
|
4406
|
+
TimeScaleValuevue_type_template_id_a10b6e3e_scoped_true_render,
|
|
4407
|
+
TimeScaleValuevue_type_template_id_a10b6e3e_scoped_true_staticRenderFns,
|
|
4295
4408
|
false,
|
|
4296
4409
|
null,
|
|
4297
|
-
"
|
|
4410
|
+
"a10b6e3e",
|
|
4298
4411
|
null
|
|
4299
4412
|
|
|
4300
4413
|
)
|
|
@@ -4491,7 +4604,7 @@ var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4491
4604
|
)
|
|
4492
4605
|
|
|
4493
4606
|
/* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
|
|
4494
|
-
// 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&
|
|
4495
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)}
|
|
4496
4609
|
var FabricLinesvue_type_template_id_229d2d58_staticRenderFns = []
|
|
4497
4610
|
|
|
@@ -5866,7 +5979,7 @@ var FabricBottom_component = Object(componentNormalizer["a" /* default */])(
|
|
|
5866
5979
|
)
|
|
5867
5980
|
|
|
5868
5981
|
/* harmony default export */ var FabricBottom = (FabricBottom_component.exports);
|
|
5869
|
-
// 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&
|
|
5870
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)}
|
|
5871
5984
|
var FabricCentervue_type_template_id_4d90e644_staticRenderFns = []
|
|
5872
5985
|
|
|
@@ -7348,13 +7461,6 @@ module.exports = function (CONSTRUCTOR_NAME) {
|
|
|
7348
7461
|
/* unused harmony reexport * */
|
|
7349
7462
|
|
|
7350
7463
|
|
|
7351
|
-
/***/ }),
|
|
7352
|
-
|
|
7353
|
-
/***/ "2794":
|
|
7354
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7355
|
-
|
|
7356
|
-
// extracted by mini-css-extract-plugin
|
|
7357
|
-
|
|
7358
7464
|
/***/ }),
|
|
7359
7465
|
|
|
7360
7466
|
/***/ "2871":
|
|
@@ -8857,6 +8963,13 @@ module.exports = require("core-js/modules/es.object.to-string.js");
|
|
|
8857
8963
|
|
|
8858
8964
|
/***/ }),
|
|
8859
8965
|
|
|
8966
|
+
/***/ "98a5":
|
|
8967
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8968
|
+
|
|
8969
|
+
// extracted by mini-css-extract-plugin
|
|
8970
|
+
|
|
8971
|
+
/***/ }),
|
|
8972
|
+
|
|
8860
8973
|
/***/ "9b22":
|
|
8861
8974
|
/***/ (function(module, exports) {
|
|
8862
8975
|
|
|
@@ -9320,17 +9433,6 @@ try {
|
|
|
9320
9433
|
module.exports = g;
|
|
9321
9434
|
|
|
9322
9435
|
|
|
9323
|
-
/***/ }),
|
|
9324
|
-
|
|
9325
|
-
/***/ "c8fe":
|
|
9326
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9327
|
-
|
|
9328
|
-
"use strict";
|
|
9329
|
-
/* 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");
|
|
9330
|
-
/* 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__);
|
|
9331
|
-
/* unused harmony reexport * */
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
9436
|
/***/ }),
|
|
9335
9437
|
|
|
9336
9438
|
/***/ "ca84":
|
|
@@ -9788,6 +9890,17 @@ module.exports = function (target, src, options) {
|
|
|
9788
9890
|
};
|
|
9789
9891
|
|
|
9790
9892
|
|
|
9893
|
+
/***/ }),
|
|
9894
|
+
|
|
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 * */
|
|
9902
|
+
|
|
9903
|
+
|
|
9791
9904
|
/***/ }),
|
|
9792
9905
|
|
|
9793
9906
|
/***/ "e667":
|