cnhis-design-vue 2.1.138 → 2.1.141
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 +46 -7
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +26 -26
- package/es/button/index.js +66 -50
- package/es/button/style.css +1 -1
- package/es/captcha/index.js +3 -3
- package/es/card-reader-sdk/index.js +1 -1
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/fabric-chart/index.js +309 -172
- package/es/fabric-chart/style.css +1 -1
- package/es/form-table/index.js +20 -20
- package/es/full-calendar/index.js +4 -4
- package/es/index/index.js +722 -496
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +25 -25
- package/es/multi-chat-client/index.js +19 -19
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +4 -4
- package/es/multi-chat-setting/index.js +20 -20
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-container/index.js +1 -1
- package/es/scale-view/index.js +59 -52
- package/es/scale-view/style.css +1 -1
- package/es/select/index.js +4 -4
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +41 -31
- package/es/select-person/style.css +1 -1
- package/es/select-tag/index.js +4 -4
- package/es/shortcut-setter/index.js +2 -2
- package/es/slider-tree/index.js +1 -1
- package/es/table-filter/index.js +198 -126
- package/es/table-filter/style.css +1 -1
- package/es/tag/index.js +1 -1
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +825 -599
- package/lib/cui.umd.js +825 -599
- package/lib/cui.umd.min.js +24 -24
- package/package.json +1 -1
- package/packages/button/src/ButtonPrint/index.vue +8 -3
- package/packages/button/src/ButtonPrint/js/print.es.min.js +1 -1
- package/packages/button/src/ButtonPrint/js/print.es.min1.js +1 -3
- package/packages/fabric-chart/src/components/TimeScaleValue.vue +2 -2
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +91 -8
- package/packages/scale-view/scaleView.vue +7 -2
- package/packages/select-person/select-person.vue +82 -68
- package/packages/table-filter/src/components/render-widget/components/CheckboxGroup.vue +20 -4
- package/packages/table-filter/src/components/render-widget/index.vue +7 -3
- package/packages/table-filter/src/components/render-widget/widgetCfgMaps.js +13 -2
package/es/fabric-chart/index.js
CHANGED
|
@@ -295,7 +295,7 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
295
295
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
296
296
|
var es_function_name_js_ = __webpack_require__("db0a");
|
|
297
297
|
|
|
298
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
298
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"04cd3723-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=76395f46&scoped=true&
|
|
299
299
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-fabric-chart",style:({ width: _vm.canvasWidth })},[(_vm.rendercanvas)?_c('fabric-canvas',_vm._b({ref:"canvasEle",attrs:{"templateData":_vm.templateData}},'fabric-canvas',_vm.$attrs,false),[_c('fabric-grid'),(_vm.hasXScalevalue)?_c('fabric-text-group',_vm._g({ref:"otherGroups",attrs:{"templateData":_vm.templateData}},_vm.$listeners)):_vm._e(),(_vm.hasTable)?_c('fabric-scale-value',{attrs:{"templateData":_vm.templateData}}):_vm._e(),(_vm.hasTopTable)?_c('fabric-lines',_vm._g({ref:"lines",attrs:{"linesObj":_vm.templateData.top}},_vm.$listeners)):_vm._e(),(_vm.hasTable)?_c('fabric-polylines',_vm._g({ref:"polylines",attrs:{"polyline":_vm.polylines,"other":_vm.templateData.left.other || {},"timeRangeStyle":_vm.templateData.timeRangeStyle || {}},on:{"pointOperation":_vm.pointOperation}},_vm.$listeners)):_vm._e()],1):_vm._e()],1)}
|
|
300
300
|
var staticRenderFns = []
|
|
301
301
|
|
|
@@ -308,7 +308,7 @@ var objectSpread2 = __webpack_require__("5530");
|
|
|
308
308
|
// EXTERNAL MODULE: ./src/core/create.js
|
|
309
309
|
var create = __webpack_require__("8aef");
|
|
310
310
|
|
|
311
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
311
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"04cd3723-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=10e4f5d6&
|
|
312
312
|
var FabricCanvasvue_type_template_id_10e4f5d6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('canvas',{attrs:{"id":_vm.id}}),_vm._t("default")],2)}
|
|
313
313
|
var FabricCanvasvue_type_template_id_10e4f5d6_staticRenderFns = []
|
|
314
314
|
|
|
@@ -972,7 +972,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
972
972
|
)
|
|
973
973
|
|
|
974
974
|
/* harmony default export */ var FabricCanvas = (component.exports);
|
|
975
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
975
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"04cd3723-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=6769ab15&
|
|
976
976
|
var FabricPolylinesvue_type_template_id_6769ab15_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"poly-line"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
977
977
|
var FabricPolylinesvue_type_template_id_6769ab15_staticRenderFns = []
|
|
978
978
|
|
|
@@ -1855,7 +1855,7 @@ function sortByTime() {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
1857
|
});
|
|
1858
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1858
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"04cd3723-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/MouseRightClick.vue?vue&type=template&id=25d4407a&scoped=true&
|
|
1859
1859
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-mouse-right-menu-popup c-animation-in",style:(_vm.dialogStyle)},[_c('div',{staticClass:"c-mouse-right-menu"},_vm._l((_vm.nodeList),function(item,index){return _c('div',{key:index,staticClass:"c-mouse-menu-item",on:{"click":function($event){return _vm.handleNodeClick(item)}}},[_c('span',[_vm._v(_vm._s(item.name))])])}),0)])}
|
|
1860
1860
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_staticRenderFns = []
|
|
1861
1861
|
|
|
@@ -1963,7 +1963,7 @@ var MouseRightClick_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1963
1963
|
)
|
|
1964
1964
|
|
|
1965
1965
|
/* harmony default export */ var MouseRightClick = (MouseRightClick_component.exports);
|
|
1966
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1966
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"04cd3723-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/DropPopup.vue?vue&type=template&id=c4db0ace&scoped=true&
|
|
1967
1967
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-drop-popup",style:(_vm.dialogStyle)},[_c('div',{staticClass:"c-drop-popup-list"},[_c('span',[_vm._v(_vm._s(_vm.val.title))]),_vm._l((_vm.val.list),function(item){return _c('span',{key:item.id},[_vm._v(" "+_vm._s(((item.name) + ": " + (item.value)))+" ")])})],2)])}
|
|
1968
1968
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_staticRenderFns = []
|
|
1969
1969
|
|
|
@@ -4164,12 +4164,12 @@ var FabricGrid_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4164
4164
|
)
|
|
4165
4165
|
|
|
4166
4166
|
/* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
|
|
4167
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4168
|
-
var
|
|
4169
|
-
var
|
|
4167
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"04cd3723-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=156ba0e8&
|
|
4168
|
+
var FabricTextGroupvue_type_template_id_156ba0e8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"text-group"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
4169
|
+
var FabricTextGroupvue_type_template_id_156ba0e8_staticRenderFns = []
|
|
4170
4170
|
|
|
4171
4171
|
|
|
4172
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=
|
|
4172
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=156ba0e8&
|
|
4173
4173
|
|
|
4174
4174
|
// EXTERNAL MODULE: external "core-js/modules/es.reflect.has.js"
|
|
4175
4175
|
var es_reflect_has_js_ = __webpack_require__("bfdc");
|
|
@@ -4517,6 +4517,8 @@ var external_lodash_ = __webpack_require__("60bb");
|
|
|
4517
4517
|
|
|
4518
4518
|
|
|
4519
4519
|
|
|
4520
|
+
|
|
4521
|
+
|
|
4520
4522
|
|
|
4521
4523
|
|
|
4522
4524
|
|
|
@@ -4599,6 +4601,8 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4599
4601
|
|
|
4600
4602
|
this.markData = sortByTime(Object(external_lodash_["cloneDeep"])((_this$templateData$bo = this.templateData.bottom) === null || _this$templateData$bo === void 0 ? void 0 : _this$templateData$bo.list));
|
|
4601
4603
|
this.markObjs = [];
|
|
4604
|
+
this.otherListPointHeightRange = [];
|
|
4605
|
+
this.inputObj = null;
|
|
4602
4606
|
return {
|
|
4603
4607
|
leftStartX: 0,
|
|
4604
4608
|
isDropVisible: false,
|
|
@@ -4616,7 +4620,13 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4616
4620
|
|
|
4617
4621
|
};
|
|
4618
4622
|
},
|
|
4619
|
-
mounted: function mounted() {
|
|
4623
|
+
mounted: function mounted() {
|
|
4624
|
+
var _this2 = this;
|
|
4625
|
+
|
|
4626
|
+
setTimeout(function () {
|
|
4627
|
+
document.addEventListener('keydown', _this2.handleInputBoxEnterEvent, true);
|
|
4628
|
+
});
|
|
4629
|
+
},
|
|
4620
4630
|
computed: {
|
|
4621
4631
|
girdLineStyle: function girdLineStyle() {
|
|
4622
4632
|
return Object.assign({}, defaultVaule.borderStyle, this.templateData.borderStyle || {});
|
|
@@ -4669,28 +4679,140 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4669
4679
|
this.canvas.add(this.drawLine([0, 0, 0, canvasHeight], Object(objectSpread2["a" /* default */])({}, this.girdLineStyle)));
|
|
4670
4680
|
},
|
|
4671
4681
|
createEvent: function createEvent() {
|
|
4672
|
-
var
|
|
4682
|
+
var _this3 = this;
|
|
4673
4683
|
|
|
4674
4684
|
this.canvas.on('mouse:up', function (event) {
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4685
|
+
var button = event.button,
|
|
4686
|
+
target = event.target,
|
|
4687
|
+
pointer = event.pointer;
|
|
4688
|
+
var x = pointer.x,
|
|
4689
|
+
y = pointer.y;
|
|
4679
4690
|
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4691
|
+
if (_this3.isGridLimit(x, y)) {
|
|
4692
|
+
if (button === 3) {
|
|
4693
|
+
_this3.activeEvent = event;
|
|
4694
|
+
!_this3.isAddEventListenerContextmenu && _this3.canvas.wrapperEl.addEventListener('contextmenu', _this3.addEventListenerContextmenu, true);
|
|
4695
|
+
_this3.isAddEventListenerContextmenu = true;
|
|
4696
|
+
}
|
|
4697
|
+
|
|
4698
|
+
if (button === 1) {
|
|
4699
|
+
var _this3$otherListPoint, _target$id;
|
|
4700
|
+
|
|
4701
|
+
if (!((_this3$otherListPoint = _this3.otherListPointHeightRange) !== null && _this3$otherListPoint !== void 0 && _this3$otherListPoint.length) || _this3.inputObj) return;
|
|
4702
|
+
if (target !== null && target !== void 0 && target.id && (!(target !== null && target !== void 0 && (_target$id = target.id) !== null && _target$id !== void 0 && _target$id.includes('_other')) || (target === null || target === void 0 ? void 0 : target.type) !== 'list')) return;
|
|
4703
|
+
var content = '';
|
|
4704
|
+
|
|
4705
|
+
if (target) {
|
|
4706
|
+
if (target.moving) {
|
|
4707
|
+
target.moving = false;
|
|
4708
|
+
return;
|
|
4709
|
+
} else {
|
|
4710
|
+
var _target$origin, _target$origin$value;
|
|
4711
|
+
|
|
4712
|
+
content = (_target$origin = target.origin) === null || _target$origin === void 0 ? void 0 : (_target$origin$value = _target$origin.value) === null || _target$origin$value === void 0 ? void 0 : _target$origin$value.toString();
|
|
4713
|
+
}
|
|
4714
|
+
}
|
|
4715
|
+
|
|
4716
|
+
var item = _this3.otherListPointHeightRange.find(function (_ref) {
|
|
4717
|
+
var y1 = _ref.y1,
|
|
4718
|
+
y2 = _ref.y2;
|
|
4719
|
+
return y >= y1 && y <= y2;
|
|
4720
|
+
});
|
|
4721
|
+
|
|
4722
|
+
if (Object(external_lodash_["isNumber"])(item === null || item === void 0 ? void 0 : item.dataIndex)) {
|
|
4723
|
+
_this3.inputObj = new _this3.fabric.Textbox(content, {
|
|
4724
|
+
left: x,
|
|
4725
|
+
top: y,
|
|
4726
|
+
width: 100,
|
|
4727
|
+
height: 100,
|
|
4728
|
+
fontSize: 18,
|
|
4729
|
+
objectCaching: false,
|
|
4730
|
+
hasControls: false,
|
|
4731
|
+
borderColor: '#000',
|
|
4732
|
+
editingBorderColor: '#000',
|
|
4733
|
+
backgroundColor: '#fff',
|
|
4734
|
+
fontFamily: '微软雅黑',
|
|
4735
|
+
otherListPointHeightRangeItem: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, item), {}, {
|
|
4736
|
+
left: x,
|
|
4737
|
+
target: target
|
|
4738
|
+
})
|
|
4739
|
+
});
|
|
4740
|
+
|
|
4741
|
+
_this3.canvas.add(_this3.inputObj).setActiveObject(_this3.inputObj);
|
|
4742
|
+
|
|
4743
|
+
_this3.inputObj.enterEditing();
|
|
4744
|
+
|
|
4745
|
+
if (content) {
|
|
4746
|
+
_this3.inputObj.setSelectionEnd(content.length);
|
|
4747
|
+
}
|
|
4748
|
+
}
|
|
4749
|
+
}
|
|
4750
|
+
}
|
|
4751
|
+
});
|
|
4752
|
+
this.canvas.on('selection:cleared', function (_ref2) {
|
|
4753
|
+
var deselected = _ref2.deselected;
|
|
4754
|
+
|
|
4755
|
+
if (deselected !== null && deselected !== void 0 && deselected.find(function (obj) {
|
|
4756
|
+
return obj.otherListPointHeightRangeItem;
|
|
4757
|
+
})) {
|
|
4758
|
+
var _this3$inputObj = _this3.inputObj,
|
|
4759
|
+
text = _this3$inputObj.text,
|
|
4760
|
+
otherListPointHeightRangeItem = _this3$inputObj.otherListPointHeightRangeItem;
|
|
4761
|
+
text = text.replace(/^\s+|\s+$/g, '');
|
|
4762
|
+
|
|
4763
|
+
_this3.canvas.remove(_this3.inputObj);
|
|
4764
|
+
|
|
4765
|
+
_this3.inputObj = null;
|
|
4766
|
+
if (!text) return;
|
|
4767
|
+
var dataList = otherListPointHeightRangeItem.dataList,
|
|
4768
|
+
left = otherListPointHeightRangeItem.left,
|
|
4769
|
+
target = otherListPointHeightRangeItem.target;
|
|
4770
|
+
|
|
4771
|
+
if (target) {
|
|
4772
|
+
var _target$origin2;
|
|
4773
|
+
|
|
4774
|
+
var params = _this3.getOtherParams(target);
|
|
4775
|
+
|
|
4776
|
+
if (text == ((_target$origin2 = target.origin) === null || _target$origin2 === void 0 ? void 0 : _target$origin2.value)) return;
|
|
4777
|
+
|
|
4778
|
+
_this3.$emit('otherChange', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, params), {}, {
|
|
4779
|
+
data: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, params.data), {}, {
|
|
4780
|
+
value: text
|
|
4781
|
+
})
|
|
4782
|
+
}));
|
|
4783
|
+
} else {
|
|
4784
|
+
var index = dataList.findIndex(function (_left) {
|
|
4785
|
+
return _left > left;
|
|
4786
|
+
});
|
|
4787
|
+
|
|
4788
|
+
var _params = _this3.getOtherParams(otherListPointHeightRangeItem);
|
|
4789
|
+
|
|
4790
|
+
_this3.$emit('addOhter', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, _params), {}, {
|
|
4791
|
+
index: !~index ? dataList.length : index,
|
|
4792
|
+
data: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, _params.data), {}, {
|
|
4793
|
+
value: text
|
|
4794
|
+
})
|
|
4795
|
+
}));
|
|
4684
4796
|
}
|
|
4685
4797
|
}
|
|
4686
4798
|
});
|
|
4687
4799
|
bus.$on('deleteOther', function (otherList) {
|
|
4688
|
-
return
|
|
4800
|
+
return _this3.$emit('deleteOther', otherList);
|
|
4689
4801
|
});
|
|
4690
4802
|
},
|
|
4803
|
+
handleInputBoxEnterEvent: function handleInputBoxEnterEvent(e) {
|
|
4804
|
+
if (!this.inputObj || ![13, 27].includes(e.keyCode)) return;
|
|
4805
|
+
|
|
4806
|
+
if (e.keyCode === 27) {
|
|
4807
|
+
this.inputObj.text = '';
|
|
4808
|
+
}
|
|
4809
|
+
|
|
4810
|
+
this.inputObj.exitEditing();
|
|
4811
|
+
this.canvas.discardActiveObject(this.inputObj);
|
|
4812
|
+
},
|
|
4691
4813
|
// 打开右键菜单
|
|
4692
4814
|
openRightModal: function openRightModal() {
|
|
4693
|
-
var
|
|
4815
|
+
var _this4 = this;
|
|
4694
4816
|
|
|
4695
4817
|
// 一下方法不会生效,因为,polylines组件中timeRangeData.enabled设置为false操作晚于当前操作,需换一种方式
|
|
4696
4818
|
// if (this.$parent.$children.find(children => /polylines/.test(children.$vnode.tag))?.componentInstance?.timeRangeData?.enabled) return;
|
|
@@ -4708,31 +4830,31 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4708
4830
|
var id = (target === null || target === void 0 ? void 0 : target.id) || '';
|
|
4709
4831
|
this.$nextTick(function () {
|
|
4710
4832
|
if (id && id.includes('_other')) {
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4833
|
+
_this4._currentPoint = target || '';
|
|
4834
|
+
_this4.rightClickNode = Object.freeze(FabricTextGroupvue_type_script_lang_js_rightClickNode.slice());
|
|
4835
|
+
_this4.isRightVisible = true;
|
|
4714
4836
|
}
|
|
4715
4837
|
});
|
|
4716
4838
|
},
|
|
4717
4839
|
// 关闭右键菜单,打开添加节点弹窗表单
|
|
4718
|
-
handleRightClick: function handleRightClick(
|
|
4719
|
-
var type =
|
|
4840
|
+
handleRightClick: function handleRightClick(_ref3) {
|
|
4841
|
+
var type = _ref3.type;
|
|
4720
4842
|
this.isRightVisible = false;
|
|
4721
4843
|
var text = this._currentPoint;
|
|
4722
4844
|
this._currentPoint = '';
|
|
4723
4845
|
this.$emit("".concat(type, "Other"), this.getOtherParams(text, false));
|
|
4724
4846
|
},
|
|
4725
4847
|
removeOther: function removeOther() {
|
|
4726
|
-
var
|
|
4848
|
+
var _this5 = this;
|
|
4727
4849
|
|
|
4728
4850
|
this.canvas.forEachObject(function (obj) {
|
|
4729
4851
|
if (obj.id && obj.id.includes('_other')) {
|
|
4730
|
-
|
|
4852
|
+
_this5.canvas.remove(obj);
|
|
4731
4853
|
}
|
|
4732
4854
|
});
|
|
4733
4855
|
},
|
|
4734
4856
|
drawTopTotal: function drawTopTotal(topTotalList) {
|
|
4735
|
-
var
|
|
4857
|
+
var _this6 = this,
|
|
4736
4858
|
_this$canvas;
|
|
4737
4859
|
|
|
4738
4860
|
var _this$propItems2 = this.propItems,
|
|
@@ -4747,11 +4869,12 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4747
4869
|
var textList = [];
|
|
4748
4870
|
var totalWidth = canvasWidth - endX;
|
|
4749
4871
|
var left = endX + totalWidth / 2;
|
|
4872
|
+
var yCellHeightTopHalf = yCellHeightTop / 2;
|
|
4750
4873
|
topTotalList.forEach(function (v, i) {
|
|
4751
4874
|
var _topTotal$divider;
|
|
4752
4875
|
|
|
4753
|
-
var top = i * yCellHeightTop +
|
|
4754
|
-
var text = v ? new
|
|
4876
|
+
var top = i * yCellHeightTop + yCellHeightTopHalf + originYTop;
|
|
4877
|
+
var text = v ? new _this6.fabric.Text(String(v), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), topTotal.style || defaultVaule.textStyle), {}, {
|
|
4755
4878
|
left: left,
|
|
4756
4879
|
top: top,
|
|
4757
4880
|
originX: 'center',
|
|
@@ -4767,9 +4890,9 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4767
4890
|
}
|
|
4768
4891
|
|
|
4769
4892
|
if ((_topTotal$divider = topTotal.divider) !== null && _topTotal$divider !== void 0 && _topTotal$divider.show) {
|
|
4770
|
-
var dividerY =
|
|
4893
|
+
var dividerY = top + yCellHeightTopHalf;
|
|
4771
4894
|
|
|
4772
|
-
var divider =
|
|
4895
|
+
var divider = _this6.drawLine([endX, dividerY, endX + totalWidth, dividerY], topTotal.divider.style);
|
|
4773
4896
|
|
|
4774
4897
|
textList.push(divider);
|
|
4775
4898
|
}
|
|
@@ -4788,33 +4911,33 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4788
4911
|
(_this$canvas = this.canvas).add.apply(_this$canvas, textList.concat([title]));
|
|
4789
4912
|
},
|
|
4790
4913
|
topTreeTextGroup: function topTreeTextGroup(list) {
|
|
4791
|
-
var
|
|
4914
|
+
var _this7 = this;
|
|
4792
4915
|
|
|
4793
4916
|
list.forEach(function (item) {
|
|
4794
4917
|
var _item$children2;
|
|
4795
4918
|
|
|
4796
4919
|
if (item !== null && item !== void 0 && (_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length) {
|
|
4797
|
-
|
|
4920
|
+
_this7.canvas.add(_this7.drawTextGroup({
|
|
4798
4921
|
width: item.width,
|
|
4799
4922
|
height: item.height,
|
|
4800
4923
|
strokeWidth: 1
|
|
4801
4924
|
}, Object(objectSpread2["a" /* default */])({
|
|
4802
4925
|
text: String(item.title)
|
|
4803
|
-
},
|
|
4926
|
+
}, _this7.templateData.top.treeTableTextStyle || {}), {
|
|
4804
4927
|
left: item.left,
|
|
4805
4928
|
top: item.top
|
|
4806
4929
|
}));
|
|
4807
4930
|
|
|
4808
|
-
|
|
4931
|
+
_this7.topTreeTextGroup(item.children);
|
|
4809
4932
|
} else {
|
|
4810
4933
|
// 此处的文本text的中心源的定位由于draw.js中封装反向的,所以此时文本需要向左排列originX值应为right
|
|
4811
|
-
|
|
4934
|
+
_this7.canvas.add(_this7.drawTextGroup({
|
|
4812
4935
|
width: item.width,
|
|
4813
4936
|
height: item.height,
|
|
4814
4937
|
strokeWidth: 1
|
|
4815
4938
|
}, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
4816
4939
|
text: String(item.title)
|
|
4817
|
-
},
|
|
4940
|
+
}, _this7.templateData.top.treeTableTextStyle || {}), {}, {
|
|
4818
4941
|
originX: 'right',
|
|
4819
4942
|
left: -Math.floor(item.width / 2) + 5
|
|
4820
4943
|
}), {
|
|
@@ -4835,7 +4958,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4835
4958
|
}
|
|
4836
4959
|
},
|
|
4837
4960
|
drawTextDataGroupColList: function drawTextDataGroupColList(colList) {
|
|
4838
|
-
var
|
|
4961
|
+
var _this8 = this,
|
|
4839
4962
|
_this$canvas2;
|
|
4840
4963
|
|
|
4841
4964
|
var _this$propItems3 = this.propItems,
|
|
@@ -4845,14 +4968,14 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4845
4968
|
colList.forEach(function (item, index) {
|
|
4846
4969
|
var baseTop = originY + (item.marginTop || 10);
|
|
4847
4970
|
|
|
4848
|
-
if (
|
|
4971
|
+
if (_this8.isLimit(item.scalevalue)) {
|
|
4849
4972
|
var textItemPoints = [];
|
|
4850
4973
|
|
|
4851
|
-
var left =
|
|
4974
|
+
var left = _this8.computedX(item.scalevalue);
|
|
4852
4975
|
|
|
4853
4976
|
item.dataList.forEach(function (v, i) {
|
|
4854
4977
|
var top = baseTop + i * (item.lineHeight || 15);
|
|
4855
|
-
var text = new
|
|
4978
|
+
var text = new _this8.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
|
|
4856
4979
|
originX: 'left',
|
|
4857
4980
|
originY: 'center',
|
|
4858
4981
|
left: left,
|
|
@@ -4867,10 +4990,10 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4867
4990
|
origin: Object(objectSpread2["a" /* default */])({
|
|
4868
4991
|
time: item.scalevalue
|
|
4869
4992
|
}, v)
|
|
4870
|
-
},
|
|
4993
|
+
}, _this8.eventStyle));
|
|
4871
4994
|
textItemPoints.push(text);
|
|
4872
4995
|
|
|
4873
|
-
|
|
4996
|
+
_this8.pointOtherEvent(text);
|
|
4874
4997
|
|
|
4875
4998
|
textList.push(text);
|
|
4876
4999
|
});
|
|
@@ -4891,25 +5014,26 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4891
5014
|
(_this$canvas2 = this.canvas).add.apply(_this$canvas2, textList);
|
|
4892
5015
|
},
|
|
4893
5016
|
drawTextDataGroupList: function drawTextDataGroupList(list) {
|
|
4894
|
-
var
|
|
5017
|
+
var _this9 = this;
|
|
4895
5018
|
|
|
4896
5019
|
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
4897
|
-
var
|
|
5020
|
+
var _this9$canvas;
|
|
4898
5021
|
|
|
4899
|
-
var textList,
|
|
5022
|
+
var textList, _this9$propItems, originX, originY, top, index, len, _item$titleStyle, item, marginLeft, left, originOptions, title, _ref4, _ref4$icon, _icon, dataList, prevPoint, i, _len, v, commonOptions, _left2, icon, iconHalfWidth, text, groupObj;
|
|
4900
5023
|
|
|
4901
5024
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
4902
5025
|
while (1) {
|
|
4903
5026
|
switch (_context.prev = _context.next) {
|
|
4904
5027
|
case 0:
|
|
5028
|
+
_this9.otherListPointHeightRange = [];
|
|
4905
5029
|
textList = [];
|
|
4906
|
-
|
|
5030
|
+
_this9$propItems = _this9.propItems, originX = _this9$propItems.originX, originY = _this9$propItems.originY;
|
|
4907
5031
|
top = originY + 10;
|
|
4908
5032
|
index = 0, len = list.length;
|
|
4909
5033
|
|
|
4910
|
-
case
|
|
5034
|
+
case 5:
|
|
4911
5035
|
if (!(index < len)) {
|
|
4912
|
-
_context.next =
|
|
5036
|
+
_context.next = 45;
|
|
4913
5037
|
break;
|
|
4914
5038
|
}
|
|
4915
5039
|
|
|
@@ -4926,36 +5050,45 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4926
5050
|
left: left,
|
|
4927
5051
|
top: top
|
|
4928
5052
|
};
|
|
4929
|
-
title = new
|
|
5053
|
+
title = new _this9.fabric.Text(String(item.title), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), item.style), item.titleStyle || {}), {}, {
|
|
4930
5054
|
originY: 'center',
|
|
4931
5055
|
id: "".concat(index, "_other_").concat(Date.now()),
|
|
4932
5056
|
dataIndex: index,
|
|
4933
5057
|
type: 'list',
|
|
4934
5058
|
hasControls: false,
|
|
4935
5059
|
hasBorders: false
|
|
4936
|
-
}, originOptions),
|
|
5060
|
+
}, originOptions), _this9.eventStyle), {}, {
|
|
4937
5061
|
dataList: []
|
|
4938
5062
|
}));
|
|
4939
5063
|
|
|
4940
|
-
|
|
5064
|
+
_this9.setMovingEvent(title, originOptions);
|
|
4941
5065
|
|
|
4942
5066
|
textList.push(title);
|
|
4943
|
-
|
|
5067
|
+
|
|
5068
|
+
_this9.otherListPointHeightRange.push({
|
|
5069
|
+
type: 'list',
|
|
5070
|
+
dataIndex: index,
|
|
5071
|
+
dataList: title.dataList,
|
|
5072
|
+
y1: top - title.height / 2,
|
|
5073
|
+
y2: top + title.height / 2
|
|
5074
|
+
});
|
|
5075
|
+
|
|
5076
|
+
_ref4 = item || {}, _ref4$icon = _ref4.icon, _icon = _ref4$icon === void 0 ? {
|
|
4944
5077
|
type: 'circle'
|
|
4945
|
-
} :
|
|
5078
|
+
} : _ref4$icon, dataList = _ref4.dataList;
|
|
4946
5079
|
prevPoint = void 0;
|
|
4947
5080
|
i = 0, _len = dataList.length;
|
|
4948
5081
|
|
|
4949
|
-
case
|
|
5082
|
+
case 18:
|
|
4950
5083
|
if (!(i < _len)) {
|
|
4951
|
-
_context.next =
|
|
5084
|
+
_context.next = 42;
|
|
4952
5085
|
break;
|
|
4953
5086
|
}
|
|
4954
5087
|
|
|
4955
5088
|
v = dataList[i];
|
|
4956
5089
|
|
|
4957
|
-
if (!
|
|
4958
|
-
_context.next =
|
|
5090
|
+
if (!_this9.isLimit(v.time)) {
|
|
5091
|
+
_context.next = 39;
|
|
4959
5092
|
break;
|
|
4960
5093
|
}
|
|
4961
5094
|
|
|
@@ -4968,41 +5101,41 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4968
5101
|
objectCaching: false,
|
|
4969
5102
|
origin: v
|
|
4970
5103
|
};
|
|
4971
|
-
_left2 =
|
|
5104
|
+
_left2 = _this9.computedX(v.time);
|
|
4972
5105
|
title.dataList.push(_left2);
|
|
4973
5106
|
|
|
4974
5107
|
if (!(!Reflect.has(_icon, 'show') || _icon.show)) {
|
|
4975
|
-
_context.next =
|
|
5108
|
+
_context.next = 30;
|
|
4976
5109
|
break;
|
|
4977
5110
|
}
|
|
4978
5111
|
|
|
4979
|
-
_context.next =
|
|
4980
|
-
return
|
|
5112
|
+
_context.next = 27;
|
|
5113
|
+
return _this9.createPoint(_icon.type, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
4981
5114
|
originX: 'center',
|
|
4982
5115
|
left: _left2
|
|
4983
5116
|
}, item.style), item.style ? {
|
|
4984
5117
|
stroke: item.style.fill
|
|
4985
5118
|
} : {}), _icon.style || {}), commonOptions));
|
|
4986
5119
|
|
|
4987
|
-
case
|
|
5120
|
+
case 27:
|
|
4988
5121
|
_context.t0 = _context.sent;
|
|
4989
|
-
_context.next =
|
|
5122
|
+
_context.next = 31;
|
|
4990
5123
|
break;
|
|
4991
5124
|
|
|
4992
|
-
case
|
|
5125
|
+
case 30:
|
|
4993
5126
|
_context.t0 = null;
|
|
4994
5127
|
|
|
4995
|
-
case
|
|
5128
|
+
case 31:
|
|
4996
5129
|
icon = _context.t0;
|
|
4997
5130
|
iconHalfWidth = icon ? icon.width / 2 : 0;
|
|
4998
|
-
text = new
|
|
5131
|
+
text = new _this9.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
|
|
4999
5132
|
left: _left2 + iconHalfWidth,
|
|
5000
5133
|
name: v.value
|
|
5001
5134
|
}, commonOptions));
|
|
5002
|
-
groupObj = new
|
|
5135
|
+
groupObj = new _this9.fabric.Group(icon ? [icon, text] : [text], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
5003
5136
|
id: "".concat(index, "_").concat(i, "_other_").concat(Date.now()),
|
|
5004
5137
|
lockMovementY: true
|
|
5005
|
-
}, commonOptions),
|
|
5138
|
+
}, commonOptions), _this9.eventStyle), {}, {
|
|
5006
5139
|
realLeft: _left2,
|
|
5007
5140
|
iconHalfWidth: iconHalfWidth
|
|
5008
5141
|
}));
|
|
@@ -5014,24 +5147,24 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5014
5147
|
|
|
5015
5148
|
prevPoint = groupObj;
|
|
5016
5149
|
|
|
5017
|
-
|
|
5150
|
+
_this9.pointOtherEvent(groupObj);
|
|
5018
5151
|
|
|
5019
5152
|
textList.push(groupObj);
|
|
5020
5153
|
|
|
5021
|
-
case
|
|
5154
|
+
case 39:
|
|
5022
5155
|
i++;
|
|
5023
|
-
_context.next =
|
|
5156
|
+
_context.next = 18;
|
|
5024
5157
|
break;
|
|
5025
5158
|
|
|
5026
|
-
case
|
|
5159
|
+
case 42:
|
|
5027
5160
|
index++;
|
|
5028
|
-
_context.next =
|
|
5161
|
+
_context.next = 5;
|
|
5029
5162
|
break;
|
|
5030
5163
|
|
|
5031
|
-
case
|
|
5032
|
-
(
|
|
5164
|
+
case 45:
|
|
5165
|
+
(_this9$canvas = _this9.canvas).add.apply(_this9$canvas, textList);
|
|
5033
5166
|
|
|
5034
|
-
case
|
|
5167
|
+
case 46:
|
|
5035
5168
|
case "end":
|
|
5036
5169
|
return _context.stop();
|
|
5037
5170
|
}
|
|
@@ -5049,7 +5182,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5049
5182
|
}
|
|
5050
5183
|
},
|
|
5051
5184
|
setMovingEvent: function setMovingEvent(point) {
|
|
5052
|
-
var
|
|
5185
|
+
var _this10 = this;
|
|
5053
5186
|
|
|
5054
5187
|
var _this$propItems4 = this.propItems,
|
|
5055
5188
|
originX = _this$propItems4.originX,
|
|
@@ -5067,28 +5200,28 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5067
5200
|
!point.isClone && point.clone(function (obj) {
|
|
5068
5201
|
obj.set('originX', 'right');
|
|
5069
5202
|
|
|
5070
|
-
|
|
5203
|
+
_this10.canvas.add(obj);
|
|
5071
5204
|
|
|
5072
5205
|
cloneObj = obj;
|
|
5073
5206
|
point.isClone = true;
|
|
5074
5207
|
});
|
|
5075
5208
|
|
|
5076
5209
|
if (isLimit()) {
|
|
5077
|
-
|
|
5210
|
+
_this10.emitMouseoverTarget(point);
|
|
5078
5211
|
} else {
|
|
5079
|
-
|
|
5212
|
+
_this10.emitMouseoverTarget();
|
|
5080
5213
|
}
|
|
5081
5214
|
});
|
|
5082
5215
|
point.on('moved', function () {
|
|
5083
|
-
|
|
5216
|
+
_this10.canvas.remove(cloneObj);
|
|
5084
5217
|
|
|
5085
5218
|
point.isClone = false;
|
|
5086
5219
|
|
|
5087
|
-
|
|
5220
|
+
_this10.removeOther();
|
|
5088
5221
|
|
|
5089
|
-
|
|
5222
|
+
_this10.drawTextDataGroup(_this10.templateData.other);
|
|
5090
5223
|
|
|
5091
|
-
|
|
5224
|
+
_this10.emitMouseoverTarget();
|
|
5092
5225
|
|
|
5093
5226
|
if (isLimit()) {
|
|
5094
5227
|
var left = point.left,
|
|
@@ -5098,15 +5231,15 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5098
5231
|
}); // 使用定时器,是因为:防止上方移除重绘过慢新增完后再次触发移除重绘导致页面多次重绘节点
|
|
5099
5232
|
|
|
5100
5233
|
setTimeout(function () {
|
|
5101
|
-
|
|
5102
|
-
index: !~index ? dataList.length
|
|
5234
|
+
_this10.$emit('addOhter', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, _this10.getOtherParams(point)), {}, {
|
|
5235
|
+
index: !~index ? dataList.length : index
|
|
5103
5236
|
}));
|
|
5104
5237
|
});
|
|
5105
5238
|
}
|
|
5106
5239
|
});
|
|
5107
5240
|
},
|
|
5108
5241
|
pointOtherEvent: function pointOtherEvent(point) {
|
|
5109
|
-
var
|
|
5242
|
+
var _this11 = this;
|
|
5110
5243
|
|
|
5111
5244
|
point.hasControls = point.hasBorders = false;
|
|
5112
5245
|
this.setPopup(point); // 移动中 实时更新相关联的线的坐标
|
|
@@ -5116,6 +5249,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5116
5249
|
endX = _this$propItems5.endX,
|
|
5117
5250
|
originX = _this$propItems5.originX;
|
|
5118
5251
|
point.on('moving', function () {
|
|
5252
|
+
point.moving = true;
|
|
5119
5253
|
point.setCoords();
|
|
5120
5254
|
var prevPoint = point.prevPoint,
|
|
5121
5255
|
nextPoint = point.nextPoint;
|
|
@@ -5141,12 +5275,12 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5141
5275
|
});
|
|
5142
5276
|
}
|
|
5143
5277
|
|
|
5144
|
-
|
|
5278
|
+
_this11.showDrapPopup(point);
|
|
5145
5279
|
});
|
|
5146
5280
|
point.on('moved', function () {
|
|
5147
|
-
|
|
5281
|
+
_this11.isDropVisible = false;
|
|
5148
5282
|
|
|
5149
|
-
|
|
5283
|
+
_this11.$emit('otherChange', _this11.getOtherParams(point));
|
|
5150
5284
|
});
|
|
5151
5285
|
}
|
|
5152
5286
|
},
|
|
@@ -5168,13 +5302,13 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5168
5302
|
};
|
|
5169
5303
|
},
|
|
5170
5304
|
setPopup: function setPopup(point) {
|
|
5171
|
-
var
|
|
5305
|
+
var _this12 = this;
|
|
5172
5306
|
|
|
5173
5307
|
point.on('mouseover', function () {
|
|
5174
|
-
return
|
|
5308
|
+
return _this12.emitMouseoverTarget(point);
|
|
5175
5309
|
});
|
|
5176
5310
|
point.on('mouseout', function () {
|
|
5177
|
-
return
|
|
5311
|
+
return _this12.emitMouseoverTarget();
|
|
5178
5312
|
});
|
|
5179
5313
|
},
|
|
5180
5314
|
// 判断当前时间是否超出网格区域
|
|
@@ -5186,10 +5320,10 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5186
5320
|
return time >= minTime && time <= maxTime;
|
|
5187
5321
|
},
|
|
5188
5322
|
removeMark: function removeMark() {
|
|
5189
|
-
var
|
|
5323
|
+
var _this13 = this;
|
|
5190
5324
|
|
|
5191
5325
|
this.markObjs.forEach(function (obj) {
|
|
5192
|
-
return
|
|
5326
|
+
return _this13.canvas.remove(obj);
|
|
5193
5327
|
});
|
|
5194
5328
|
},
|
|
5195
5329
|
drawTopTotalLineAndTitle: function drawTopTotalLineAndTitle() {
|
|
@@ -5225,7 +5359,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5225
5359
|
// 底部标记
|
|
5226
5360
|
drawBottomTextDataGroup: function drawBottomTextDataGroup() {
|
|
5227
5361
|
var _this$markData,
|
|
5228
|
-
|
|
5362
|
+
_this14 = this,
|
|
5229
5363
|
_obj$style,
|
|
5230
5364
|
_obj$iconStyle,
|
|
5231
5365
|
_obj$seqStyle,
|
|
@@ -5244,7 +5378,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5244
5378
|
|
|
5245
5379
|
if (this.markObjs.length) {
|
|
5246
5380
|
Object(toConsumableArray["a" /* default */])(this.markObjs).forEach(function (obj) {
|
|
5247
|
-
return
|
|
5381
|
+
return _this14.canvas.remove(obj);
|
|
5248
5382
|
});
|
|
5249
5383
|
|
|
5250
5384
|
this.markObjs = [];
|
|
@@ -5264,14 +5398,14 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5264
5398
|
var prevLeft = 0;
|
|
5265
5399
|
var pointerObj = {};
|
|
5266
5400
|
this.markData.forEach(function (item, index) {
|
|
5267
|
-
var x =
|
|
5401
|
+
var x = _this14.computedX(item[0]);
|
|
5268
5402
|
|
|
5269
|
-
if (
|
|
5403
|
+
if (_this14.isLimit(item[0])) {
|
|
5270
5404
|
pointerObj["x_".concat(x)] = [];
|
|
5271
5405
|
var pointList = [];
|
|
5272
5406
|
var startTop = baseY;
|
|
5273
5407
|
item[1].forEach( /*#__PURE__*/function () {
|
|
5274
|
-
var
|
|
5408
|
+
var _ref5 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(v, i) {
|
|
5275
5409
|
var common, lineHeight, isShowDesc, _computedTop, topObj, _startTop, oldStartTop;
|
|
5276
5410
|
|
|
5277
5411
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -5287,7 +5421,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5287
5421
|
objectCaching: false
|
|
5288
5422
|
};
|
|
5289
5423
|
|
|
5290
|
-
if (
|
|
5424
|
+
if (_this14.isObject(v) && !v.value) {
|
|
5291
5425
|
lineHeight = lineHeightImg;
|
|
5292
5426
|
} else if (v.value) {
|
|
5293
5427
|
if (v.seq) {
|
|
@@ -5301,10 +5435,10 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5301
5435
|
isShowDesc = v.desc && obj.showDesc; // 错位显示处理
|
|
5302
5436
|
|
|
5303
5437
|
if (prevLeft && x - prevLeft <= xCellWidth) {
|
|
5304
|
-
pointerObj["x_".concat(prevLeft)].forEach(function (
|
|
5305
|
-
var
|
|
5306
|
-
y1 =
|
|
5307
|
-
y2 =
|
|
5438
|
+
pointerObj["x_".concat(prevLeft)].forEach(function (_ref6) {
|
|
5439
|
+
var _ref7 = Object(slicedToArray["a" /* default */])(_ref6, 2),
|
|
5440
|
+
y1 = _ref7[0],
|
|
5441
|
+
y2 = _ref7[1];
|
|
5308
5442
|
|
|
5309
5443
|
if (startTop + lineHeight + (isShowDesc ? lineHeightText : 0) >= endY + markHeight) {
|
|
5310
5444
|
startTop = baseYTop;
|
|
@@ -5323,7 +5457,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5323
5457
|
_computedTop = computedTop(isShowDesc, startTop, lineHeight), topObj = _computedTop.topObj, _startTop = _computedTop.startTop, oldStartTop = _computedTop.oldStartTop;
|
|
5324
5458
|
startTop = _startTop;
|
|
5325
5459
|
pointerObj["x_".concat(x)].push([oldStartTop, startTop]);
|
|
5326
|
-
pointList.push(
|
|
5460
|
+
pointList.push(_this14.drawMarkPoint(v, common, obj, topObj, x));
|
|
5327
5461
|
}
|
|
5328
5462
|
|
|
5329
5463
|
case 3:
|
|
@@ -5335,16 +5469,16 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5335
5469
|
}));
|
|
5336
5470
|
|
|
5337
5471
|
return function (_x, _x2) {
|
|
5338
|
-
return
|
|
5472
|
+
return _ref5.apply(this, arguments);
|
|
5339
5473
|
};
|
|
5340
5474
|
}());
|
|
5341
5475
|
prevLeft = x;
|
|
5342
5476
|
Promise.all(pointList).then(function (res) {
|
|
5343
|
-
var
|
|
5477
|
+
var _this14$markObjs, _this14$canvas;
|
|
5344
5478
|
|
|
5345
|
-
(
|
|
5479
|
+
(_this14$markObjs = _this14.markObjs).push.apply(_this14$markObjs, Object(toConsumableArray["a" /* default */])(res));
|
|
5346
5480
|
|
|
5347
|
-
(
|
|
5481
|
+
(_this14$canvas = _this14.canvas).add.apply(_this14$canvas, Object(toConsumableArray["a" /* default */])(res));
|
|
5348
5482
|
});
|
|
5349
5483
|
}
|
|
5350
5484
|
});
|
|
@@ -5395,8 +5529,8 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5395
5529
|
};
|
|
5396
5530
|
}
|
|
5397
5531
|
},
|
|
5398
|
-
drawMarkPoint: function drawMarkPoint(v, option, obj,
|
|
5399
|
-
var
|
|
5532
|
+
drawMarkPoint: function drawMarkPoint(v, option, obj, _ref8, x) {
|
|
5533
|
+
var _this15 = this;
|
|
5400
5534
|
|
|
5401
5535
|
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
5402
5536
|
var y1, y2, positionObj, point, eventStyle, ele, _obj$seqStyle2, _obj$seqStyle3, circle, text, descPoint;
|
|
@@ -5405,19 +5539,19 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5405
5539
|
while (1) {
|
|
5406
5540
|
switch (_context3.prev = _context3.next) {
|
|
5407
5541
|
case 0:
|
|
5408
|
-
y1 =
|
|
5542
|
+
y1 = _ref8.y1, y2 = _ref8.y2;
|
|
5409
5543
|
positionObj = {
|
|
5410
5544
|
left: x,
|
|
5411
5545
|
originX: 'center',
|
|
5412
5546
|
originY: 'center',
|
|
5413
5547
|
top: y2
|
|
5414
5548
|
};
|
|
5415
|
-
eventStyle = !
|
|
5549
|
+
eventStyle = !_this15.eventStyle.evented ? {
|
|
5416
5550
|
lockMovementX: true,
|
|
5417
5551
|
lockMovementY: true
|
|
5418
5552
|
} : {};
|
|
5419
5553
|
|
|
5420
|
-
if (!(
|
|
5554
|
+
if (!(_this15.isObject(v) && !v.value)) {
|
|
5421
5555
|
_context3.next = 13;
|
|
5422
5556
|
break;
|
|
5423
5557
|
}
|
|
@@ -5428,14 +5562,14 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5428
5562
|
}
|
|
5429
5563
|
|
|
5430
5564
|
_context3.next = 7;
|
|
5431
|
-
return
|
|
5565
|
+
return _this15.createImage(v.iconClassName, v);
|
|
5432
5566
|
|
|
5433
5567
|
case 7:
|
|
5434
5568
|
ele = _context3.sent;
|
|
5435
5569
|
|
|
5436
5570
|
case 8:
|
|
5437
5571
|
_context3.next = 10;
|
|
5438
|
-
return
|
|
5572
|
+
return _this15.createPoint(v !== null && v !== void 0 && v.url || v !== null && v !== void 0 && v.iconClassName ? 'img' : v.type, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
5439
5573
|
ele: ele || ''
|
|
5440
5574
|
}, positionObj), obj.iconStyle), v), option), eventStyle));
|
|
5441
5575
|
|
|
@@ -5456,7 +5590,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5456
5590
|
}
|
|
5457
5591
|
|
|
5458
5592
|
_context3.next = 17;
|
|
5459
|
-
return
|
|
5593
|
+
return _this15.createPoint('circle', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, positionObj), option), {}, {
|
|
5460
5594
|
radius: 5,
|
|
5461
5595
|
strokeWidth: 1,
|
|
5462
5596
|
stroke: '#000',
|
|
@@ -5465,9 +5599,9 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5465
5599
|
|
|
5466
5600
|
case 17:
|
|
5467
5601
|
circle = _context3.sent;
|
|
5468
|
-
text = new
|
|
5602
|
+
text = new _this15.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.textStyle), positionObj), option), ((_obj$seqStyle3 = obj.seqStyle) === null || _obj$seqStyle3 === void 0 ? void 0 : _obj$seqStyle3.text) || {}));
|
|
5469
5603
|
_context3.next = 21;
|
|
5470
|
-
return new
|
|
5604
|
+
return new _this15.fabric.Group([circle, text], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, positionObj), option), eventStyle));
|
|
5471
5605
|
|
|
5472
5606
|
case 21:
|
|
5473
5607
|
point = _context3.sent;
|
|
@@ -5476,7 +5610,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5476
5610
|
|
|
5477
5611
|
case 24:
|
|
5478
5612
|
_context3.next = 26;
|
|
5479
|
-
return new
|
|
5613
|
+
return new _this15.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.textStyle), obj.style), positionObj), option), eventStyle));
|
|
5480
5614
|
|
|
5481
5615
|
case 26:
|
|
5482
5616
|
point = _context3.sent;
|
|
@@ -5487,11 +5621,11 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5487
5621
|
break;
|
|
5488
5622
|
}
|
|
5489
5623
|
|
|
5490
|
-
descPoint = new
|
|
5624
|
+
descPoint = new _this15.fabric.Text(String(v.desc), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.textStyle), positionObj), option), obj.style), {}, {
|
|
5491
5625
|
top: y1
|
|
5492
5626
|
}));
|
|
5493
5627
|
_context3.next = 31;
|
|
5494
|
-
return new
|
|
5628
|
+
return new _this15.fabric.Group([descPoint, point], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, option), {}, {
|
|
5495
5629
|
left: x,
|
|
5496
5630
|
originX: 'center'
|
|
5497
5631
|
}, eventStyle));
|
|
@@ -5502,7 +5636,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5502
5636
|
case 32:
|
|
5503
5637
|
point.hasControls = point.hasBorders = false;
|
|
5504
5638
|
|
|
5505
|
-
|
|
5639
|
+
_this15.pointEvent(point);
|
|
5506
5640
|
|
|
5507
5641
|
return _context3.abrupt("return", point);
|
|
5508
5642
|
|
|
@@ -5515,38 +5649,38 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5515
5649
|
}))();
|
|
5516
5650
|
},
|
|
5517
5651
|
pointEvent: function pointEvent(point) {
|
|
5518
|
-
var
|
|
5652
|
+
var _this16 = this;
|
|
5519
5653
|
|
|
5520
5654
|
this.setPopup(point); // 移动中 实时更新相关联的线的坐标
|
|
5521
5655
|
|
|
5522
5656
|
if (this.eventStyle.evented) {
|
|
5523
5657
|
point.on('moving', function () {
|
|
5524
|
-
|
|
5658
|
+
_this16.moveLimit(point); // this.canvas.renderAll();
|
|
5525
5659
|
|
|
5526
5660
|
|
|
5527
|
-
|
|
5661
|
+
_this16.showDrapPopup(point);
|
|
5528
5662
|
});
|
|
5529
5663
|
point.on('moved', function () {
|
|
5530
|
-
|
|
5664
|
+
_this16.isDropVisible = false;
|
|
5531
5665
|
var value = {
|
|
5532
5666
|
data: point.data,
|
|
5533
5667
|
oldVal: point.time,
|
|
5534
|
-
newVal:
|
|
5668
|
+
newVal: _this16.getXValue(point.left)
|
|
5535
5669
|
};
|
|
5536
5670
|
|
|
5537
|
-
|
|
5671
|
+
_this16.$emit('markChange', value);
|
|
5538
5672
|
|
|
5539
|
-
|
|
5673
|
+
_this16.updateMarkData(value);
|
|
5540
5674
|
|
|
5541
|
-
|
|
5675
|
+
_this16.drawBottomTextDataGroup();
|
|
5542
5676
|
|
|
5543
|
-
|
|
5677
|
+
_this16.canvas.discardActiveObject();
|
|
5544
5678
|
});
|
|
5545
5679
|
}
|
|
5546
5680
|
},
|
|
5547
|
-
updateMarkData: function updateMarkData(
|
|
5548
|
-
var data =
|
|
5549
|
-
newVal =
|
|
5681
|
+
updateMarkData: function updateMarkData(_ref9) {
|
|
5682
|
+
var data = _ref9.data,
|
|
5683
|
+
newVal = _ref9.newVal;
|
|
5550
5684
|
var id = data.id;
|
|
5551
5685
|
var listIndex, index;
|
|
5552
5686
|
listIndex = this.markData.findIndex(function (v) {
|
|
@@ -5715,6 +5849,9 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5715
5849
|
}));
|
|
5716
5850
|
}
|
|
5717
5851
|
}
|
|
5852
|
+
},
|
|
5853
|
+
beforeDestroy: function beforeDestroy() {
|
|
5854
|
+
document.removeEventListener('keydown', this.handleInputBoxEnterEvent);
|
|
5718
5855
|
}
|
|
5719
5856
|
});
|
|
5720
5857
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=script&lang=js&
|
|
@@ -5729,8 +5866,8 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5729
5866
|
|
|
5730
5867
|
var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
|
|
5731
5868
|
fabric_chart_FabricTextGroupvue_type_script_lang_js_,
|
|
5732
|
-
|
|
5733
|
-
|
|
5869
|
+
FabricTextGroupvue_type_template_id_156ba0e8_render,
|
|
5870
|
+
FabricTextGroupvue_type_template_id_156ba0e8_staticRenderFns,
|
|
5734
5871
|
false,
|
|
5735
5872
|
null,
|
|
5736
5873
|
null,
|
|
@@ -5739,19 +5876,19 @@ var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
|
|
|
5739
5876
|
)
|
|
5740
5877
|
|
|
5741
5878
|
/* harmony default export */ var FabricTextGroup = (FabricTextGroup_component.exports);
|
|
5742
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
5879
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"04cd3723-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
|
|
5743
5880
|
var FabricScaleValuevue_type_template_id_68258044_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.show)?_c('TimeScaleValue',{attrs:{"times":_vm.timeList,"templateData":_vm.templateData}}):_vm._e()}
|
|
5744
5881
|
var FabricScaleValuevue_type_template_id_68258044_staticRenderFns = []
|
|
5745
5882
|
|
|
5746
5883
|
|
|
5747
5884
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
|
|
5748
5885
|
|
|
5749
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
5750
|
-
var
|
|
5751
|
-
var
|
|
5886
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"04cd3723-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=0aa2f038&scoped=true&
|
|
5887
|
+
var TimeScaleValuevue_type_template_id_0aa2f038_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"}],staticClass:"c-time-scalevalue",style:({ '--left': _vm.popupStyle.left, '--top': _vm.popupStyle.top, '--height': _vm.popupStyle.height, '--width': _vm.popupStyle.width })},_vm._l((_vm.times),function(item,index){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(index % 2 == 0),expression:"index % 2 == 0"}],key:item.left,staticClass:"c-time-scalevalue-list",style:({ left: ((item.left - item.width / 2) + "px"), '--font-size': _vm.popupStyle.fontSize })},[_vm._v(" "+_vm._s(item.time)+" ")])}),0)}
|
|
5888
|
+
var TimeScaleValuevue_type_template_id_0aa2f038_scoped_true_staticRenderFns = []
|
|
5752
5889
|
|
|
5753
5890
|
|
|
5754
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=
|
|
5891
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=0aa2f038&scoped=true&
|
|
5755
5892
|
|
|
5756
5893
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=script&lang=js&
|
|
5757
5894
|
//
|
|
@@ -5828,7 +5965,7 @@ var TimeScaleValuevue_type_template_id_3492877c_scoped_true_staticRenderFns = []
|
|
|
5828
5965
|
},
|
|
5829
5966
|
methods: {
|
|
5830
5967
|
initDoc: function initDoc() {
|
|
5831
|
-
var _this$cFabricChart, _this$cFabricChart$ge, _xScalevalue$style;
|
|
5968
|
+
var _this$canvas$wrapperE, _this$canvas$wrapperE2, _this$cFabricChart, _this$cFabricChart$ge, _xScalevalue$style;
|
|
5832
5969
|
|
|
5833
5970
|
// this.to = this.templateData.top?.xScalevalue?.to || 'body';
|
|
5834
5971
|
var _ref = this.$attrs.templateData.top || {},
|
|
@@ -5838,7 +5975,7 @@ var TimeScaleValuevue_type_template_id_3492877c_scoped_true_staticRenderFns = []
|
|
|
5838
5975
|
canvasWidth = _this$propItems.canvasWidth,
|
|
5839
5976
|
spaceHeight = _this$propItems.spaceHeight,
|
|
5840
5977
|
xCellWidth = _this$propItems.xCellWidth;
|
|
5841
|
-
this.cFabricChart = this.canvas.wrapperEl.parentNode.parentNode; // this.bodyHeight = document.body.getBoundingClientRect().height;
|
|
5978
|
+
this.cFabricChart = (_this$canvas$wrapperE = this.canvas.wrapperEl) === null || _this$canvas$wrapperE === void 0 ? void 0 : (_this$canvas$wrapperE2 = _this$canvas$wrapperE.parentNode) === null || _this$canvas$wrapperE2 === void 0 ? void 0 : _this$canvas$wrapperE2.parentNode; // this.bodyHeight = document.body.getBoundingClientRect().height;
|
|
5842
5979
|
|
|
5843
5980
|
this.popupStyle = {
|
|
5844
5981
|
left: "".concat(((_this$cFabricChart = this.cFabricChart) === null || _this$cFabricChart === void 0 ? void 0 : (_this$cFabricChart$ge = _this$cFabricChart.getBoundingClientRect()) === null || _this$cFabricChart$ge === void 0 ? void 0 : _this$cFabricChart$ge.left) || 0, "px"),
|
|
@@ -5870,8 +6007,8 @@ var TimeScaleValuevue_type_template_id_3492877c_scoped_true_staticRenderFns = []
|
|
|
5870
6007
|
});
|
|
5871
6008
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=script&lang=js&
|
|
5872
6009
|
/* harmony default export */ var components_TimeScaleValuevue_type_script_lang_js_ = (TimeScaleValuevue_type_script_lang_js_);
|
|
5873
|
-
// EXTERNAL MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=style&index=0&id=
|
|
5874
|
-
var
|
|
6010
|
+
// EXTERNAL MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=style&index=0&id=0aa2f038&lang=less&scoped=true&
|
|
6011
|
+
var TimeScaleValuevue_type_style_index_0_id_0aa2f038_lang_less_scoped_true_ = __webpack_require__("5d42");
|
|
5875
6012
|
|
|
5876
6013
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue
|
|
5877
6014
|
|
|
@@ -5884,11 +6021,11 @@ var TimeScaleValuevue_type_style_index_0_id_3492877c_lang_less_scoped_true_ = __
|
|
|
5884
6021
|
|
|
5885
6022
|
var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
5886
6023
|
components_TimeScaleValuevue_type_script_lang_js_,
|
|
5887
|
-
|
|
5888
|
-
|
|
6024
|
+
TimeScaleValuevue_type_template_id_0aa2f038_scoped_true_render,
|
|
6025
|
+
TimeScaleValuevue_type_template_id_0aa2f038_scoped_true_staticRenderFns,
|
|
5889
6026
|
false,
|
|
5890
6027
|
null,
|
|
5891
|
-
"
|
|
6028
|
+
"0aa2f038",
|
|
5892
6029
|
null
|
|
5893
6030
|
|
|
5894
6031
|
)
|
|
@@ -6130,7 +6267,7 @@ var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6130
6267
|
)
|
|
6131
6268
|
|
|
6132
6269
|
/* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
|
|
6133
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
6270
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"04cd3723-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=74aef744&
|
|
6134
6271
|
var FabricLinesvue_type_template_id_74aef744_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"line"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
6135
6272
|
var FabricLinesvue_type_template_id_74aef744_staticRenderFns = []
|
|
6136
6273
|
|
|
@@ -8512,6 +8649,17 @@ module.exports = function (bitmap, value) {
|
|
|
8512
8649
|
};
|
|
8513
8650
|
|
|
8514
8651
|
|
|
8652
|
+
/***/ }),
|
|
8653
|
+
|
|
8654
|
+
/***/ "5d42":
|
|
8655
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8656
|
+
|
|
8657
|
+
"use strict";
|
|
8658
|
+
/* 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_0aa2f038_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d0ed");
|
|
8659
|
+
/* 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_0aa2f038_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_0aa2f038_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
8660
|
+
/* unused harmony reexport * */
|
|
8661
|
+
|
|
8662
|
+
|
|
8515
8663
|
/***/ }),
|
|
8516
8664
|
|
|
8517
8665
|
/***/ "605d":
|
|
@@ -8716,17 +8864,6 @@ function _arrayLikeToArray(arr, len) {
|
|
|
8716
8864
|
|
|
8717
8865
|
module.exports = require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8718
8866
|
|
|
8719
|
-
/***/ }),
|
|
8720
|
-
|
|
8721
|
-
/***/ "6ee4":
|
|
8722
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8723
|
-
|
|
8724
|
-
"use strict";
|
|
8725
|
-
/* 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_3492877c_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a942");
|
|
8726
|
-
/* 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_3492877c_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_3492877c_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
8727
|
-
/* unused harmony reexport * */
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
8867
|
/***/ }),
|
|
8731
8868
|
|
|
8732
8869
|
/***/ "6eeb":
|
|
@@ -9367,13 +9504,6 @@ if (!IS_PURE && typeof NativePromise == 'function') {
|
|
|
9367
9504
|
}
|
|
9368
9505
|
|
|
9369
9506
|
|
|
9370
|
-
/***/ }),
|
|
9371
|
-
|
|
9372
|
-
/***/ "a942":
|
|
9373
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9374
|
-
|
|
9375
|
-
// extracted by mini-css-extract-plugin
|
|
9376
|
-
|
|
9377
9507
|
/***/ }),
|
|
9378
9508
|
|
|
9379
9509
|
/***/ "ade3":
|
|
@@ -9825,6 +9955,13 @@ module.exports = require("core-js/modules/es.array.fill.js");
|
|
|
9825
9955
|
|
|
9826
9956
|
/***/ }),
|
|
9827
9957
|
|
|
9958
|
+
/***/ "d0ed":
|
|
9959
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9960
|
+
|
|
9961
|
+
// extracted by mini-css-extract-plugin
|
|
9962
|
+
|
|
9963
|
+
/***/ }),
|
|
9964
|
+
|
|
9828
9965
|
/***/ "d16b":
|
|
9829
9966
|
/***/ (function(module, exports) {
|
|
9830
9967
|
|