cnhis-design-vue 2.1.144 → 2.1.146
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 +42 -15
- 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 +71 -71
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +40 -34
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/card-reader-sdk/index.js +1 -1
- 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/direct/index.js +16 -16
- 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/ellipsis/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +199 -104
- 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 +74 -74
- package/es/full-calendar/index.js +4 -4
- package/es/index/index.js +776 -626
- 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 +125 -109
- package/es/multi-chat/style.css +1 -1
- package/es/multi-chat-client/index.js +121 -105
- package/es/multi-chat-client/style.css +1 -1
- 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 +66 -49
- package/es/multi-chat-setting/style.css +1 -1
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-container/index.js +9 -9
- package/es/scale-view/index.js +27 -27
- package/es/select/index.js +12 -12
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +2 -2
- package/es/select-tag/index.js +4 -4
- package/es/shortcut-setter/index.js +10 -10
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/slider-tree/index.js +9 -9
- 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 +82 -76
- 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 +788 -638
- package/lib/cui.umd.js +788 -638
- package/lib/cui.umd.min.js +26 -26
- package/package.json +1 -1
- package/packages/button/src/ButtonPrint/index.vue +6 -0
- package/packages/fabric-chart/src/FabricChart.vue +10 -1
- package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +0 -1
- package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +30 -10
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +27 -6
- package/packages/fabric-chart/src/mixins/fabricCommon.js +0 -4
- package/packages/fabric-chart/src/utils/index.js +15 -0
- package/packages/multi-chat/chat/client/clientChat.vue +14 -2
- package/packages/multi-chat/chat/index.vue +14 -2
- package/packages/multi-chat/setting/index.vue +13 -1
package/es/fabric-chart/index.js
CHANGED
|
@@ -295,12 +295,12 @@ 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":"8f89c644-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=4f0a8f90&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
|
|
|
302
302
|
|
|
303
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=
|
|
303
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=4f0a8f90&scoped=true&
|
|
304
304
|
|
|
305
305
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
306
306
|
var objectSpread2 = __webpack_require__("5530");
|
|
@@ -308,12 +308,12 @@ 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":"
|
|
312
|
-
var
|
|
313
|
-
var
|
|
311
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8f89c644-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=0743e24e&
|
|
312
|
+
var FabricCanvasvue_type_template_id_0743e24e_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
|
+
var FabricCanvasvue_type_template_id_0743e24e_staticRenderFns = []
|
|
314
314
|
|
|
315
315
|
|
|
316
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=
|
|
316
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=0743e24e&
|
|
317
317
|
|
|
318
318
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
319
319
|
var toConsumableArray = __webpack_require__("2909");
|
|
@@ -532,8 +532,7 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
532
532
|
} catch (error) {
|
|
533
533
|
console.warn(error);
|
|
534
534
|
}
|
|
535
|
-
}
|
|
536
|
-
|
|
535
|
+
}
|
|
537
536
|
|
|
538
537
|
if (!this.templateData.left) {
|
|
539
538
|
try {
|
|
@@ -962,8 +961,8 @@ var componentNormalizer = __webpack_require__("2877");
|
|
|
962
961
|
|
|
963
962
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
964
963
|
fabric_chart_FabricCanvasvue_type_script_lang_js_,
|
|
965
|
-
|
|
966
|
-
|
|
964
|
+
FabricCanvasvue_type_template_id_0743e24e_render,
|
|
965
|
+
FabricCanvasvue_type_template_id_0743e24e_staticRenderFns,
|
|
967
966
|
false,
|
|
968
967
|
null,
|
|
969
968
|
null,
|
|
@@ -972,12 +971,12 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
972
971
|
)
|
|
973
972
|
|
|
974
973
|
/* harmony default export */ var FabricCanvas = (component.exports);
|
|
975
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
976
|
-
var
|
|
977
|
-
var
|
|
974
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8f89c644-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=75a38c46&
|
|
975
|
+
var FabricPolylinesvue_type_template_id_75a38c46_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)}
|
|
976
|
+
var FabricPolylinesvue_type_template_id_75a38c46_staticRenderFns = []
|
|
978
977
|
|
|
979
978
|
|
|
980
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=
|
|
979
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=75a38c46&
|
|
981
980
|
|
|
982
981
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
983
982
|
var asyncToGenerator = __webpack_require__("1da1");
|
|
@@ -1133,13 +1132,6 @@ var es_object_freeze_js_ = __webpack_require__("030b");
|
|
|
1133
1132
|
endX = _this$propItems3.endX,
|
|
1134
1133
|
endY = _this$propItems3.endY;
|
|
1135
1134
|
return x >= originX && x <= endX && y >= originY && y <= endY;
|
|
1136
|
-
},
|
|
1137
|
-
isTopTreeAndGridLimit: function isTopTreeAndGridLimit(x, y) {
|
|
1138
|
-
var _this$propItems4 = this.propItems,
|
|
1139
|
-
endX = _this$propItems4.endX,
|
|
1140
|
-
endYTop = _this$propItems4.endYTop,
|
|
1141
|
-
originYTop = _this$propItems4.originYTop;
|
|
1142
|
-
return x >= 0 && x <= endX && y >= originYTop && y <= endYTop;
|
|
1143
1135
|
}
|
|
1144
1136
|
}
|
|
1145
1137
|
});
|
|
@@ -1154,6 +1146,10 @@ var es_number_constructor_js_ = __webpack_require__("f989");
|
|
|
1154
1146
|
|
|
1155
1147
|
|
|
1156
1148
|
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
|
|
1157
1153
|
var utils_isNumber = function isNumber(num) {
|
|
1158
1154
|
return typeof num === 'number' && Number.isFinite(num);
|
|
1159
1155
|
};
|
|
@@ -1240,6 +1236,17 @@ function sortByTime() {
|
|
|
1240
1236
|
});
|
|
1241
1237
|
return list;
|
|
1242
1238
|
}
|
|
1239
|
+
function getUuid() {
|
|
1240
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
1241
|
+
var r = Math.random() * 16 | 0,
|
|
1242
|
+
v = c == 'x' ? r : r & 0x3 | 0x8;
|
|
1243
|
+
return v.toString(16);
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
1246
|
+
function toReversed(arr) {
|
|
1247
|
+
var copyArr = vexutils_default.a.clone(arr, true);
|
|
1248
|
+
return copyArr.reverse();
|
|
1249
|
+
}
|
|
1243
1250
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/mixins/draw.js
|
|
1244
1251
|
|
|
1245
1252
|
|
|
@@ -1855,7 +1862,7 @@ function sortByTime() {
|
|
|
1855
1862
|
}
|
|
1856
1863
|
}
|
|
1857
1864
|
});
|
|
1858
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1865
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8f89c644-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
1866
|
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
1867
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_staticRenderFns = []
|
|
1861
1868
|
|
|
@@ -1963,7 +1970,7 @@ var MouseRightClick_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1963
1970
|
)
|
|
1964
1971
|
|
|
1965
1972
|
/* 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":"
|
|
1973
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8f89c644-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
1974
|
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
1975
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_staticRenderFns = []
|
|
1969
1976
|
|
|
@@ -2115,6 +2122,7 @@ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
|
2115
2122
|
|
|
2116
2123
|
|
|
2117
2124
|
|
|
2125
|
+
|
|
2118
2126
|
/**
|
|
2119
2127
|
* @description: 递归遍历节点,设置颜色属性
|
|
2120
2128
|
* @param {fabric.Object[]} pointArr
|
|
@@ -3678,9 +3686,11 @@ var rightClickNodeConnect = [{
|
|
|
3678
3686
|
return l + n > left && l > originLeft;
|
|
3679
3687
|
});
|
|
3680
3688
|
} else {
|
|
3681
|
-
var
|
|
3689
|
+
var _polylineObj$pointerL;
|
|
3690
|
+
|
|
3691
|
+
var idx = polylineObj !== null && polylineObj !== void 0 && (_polylineObj$pointerL = polylineObj.pointerList) !== null && _polylineObj$pointerL !== void 0 && _polylineObj$pointerL.length ? toReversed(polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList).findIndex(function (l) {
|
|
3682
3692
|
return l - n < left && l < originLeft;
|
|
3683
|
-
});
|
|
3693
|
+
}) : -1;
|
|
3684
3694
|
this._concatIndex = !~idx ? -1 : (polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.length) - 1 - idx;
|
|
3685
3695
|
}
|
|
3686
3696
|
|
|
@@ -3733,7 +3743,7 @@ var rightClickNodeConnect = [{
|
|
|
3733
3743
|
|
|
3734
3744
|
if (startLength > 0) {
|
|
3735
3745
|
if (isRight) {
|
|
3736
|
-
this.removeLeftClonePoint(originLeft);
|
|
3746
|
+
this.removeLeftClonePoint(originLeft - this.spaceWidth);
|
|
3737
3747
|
this.addPointList = this.addPointList.filter(function (v) {
|
|
3738
3748
|
return v.left >= originLeft;
|
|
3739
3749
|
});
|
|
@@ -3757,7 +3767,7 @@ var rightClickNodeConnect = [{
|
|
|
3757
3767
|
}
|
|
3758
3768
|
}
|
|
3759
3769
|
} else {
|
|
3760
|
-
this.removePolyline('increasePointBatch', originLeft);
|
|
3770
|
+
this.removePolyline('increasePointBatch', originLeft + this.spaceWidth);
|
|
3761
3771
|
this.addPointList = this.addPointList.filter(function (v) {
|
|
3762
3772
|
return v.left <= originLeft;
|
|
3763
3773
|
});
|
|
@@ -4006,16 +4016,39 @@ var rightClickNodeConnect = [{
|
|
|
4006
4016
|
_this19.rightClickNode.push(item);
|
|
4007
4017
|
}
|
|
4008
4018
|
});
|
|
4019
|
+
|
|
4020
|
+
_this19.addExtraMenu();
|
|
4021
|
+
|
|
4009
4022
|
_this19.isRightVisible = true;
|
|
4010
4023
|
}
|
|
4011
4024
|
});
|
|
4012
4025
|
},
|
|
4026
|
+
addExtraMenu: function addExtraMenu() {
|
|
4027
|
+
var _this$propItems$table,
|
|
4028
|
+
_this20 = this;
|
|
4029
|
+
|
|
4030
|
+
var _ref6 = ((_this$propItems$table = this.propItems.table) === null || _this$propItems$table === void 0 ? void 0 : _this$propItems$table.extraMenuConfig) || {},
|
|
4031
|
+
menuList = _ref6.menuList;
|
|
4032
|
+
|
|
4033
|
+
if (Array.isArray(menuList) && menuList.length > 0) {
|
|
4034
|
+
menuList.forEach(function (item) {
|
|
4035
|
+
_this20.rightClickNode.push({
|
|
4036
|
+
name: item.label,
|
|
4037
|
+
type: item.key || getUuid(),
|
|
4038
|
+
extra: true,
|
|
4039
|
+
origin: item
|
|
4040
|
+
});
|
|
4041
|
+
});
|
|
4042
|
+
}
|
|
4043
|
+
},
|
|
4013
4044
|
// 关闭右键菜单,打开添加节点弹窗表单
|
|
4014
|
-
handleRightClick: function handleRightClick(
|
|
4045
|
+
handleRightClick: function handleRightClick(_ref7) {
|
|
4015
4046
|
var _this$_currentPoint;
|
|
4016
4047
|
|
|
4017
|
-
var type =
|
|
4018
|
-
name =
|
|
4048
|
+
var type = _ref7.type,
|
|
4049
|
+
name = _ref7.name,
|
|
4050
|
+
extra = _ref7.extra,
|
|
4051
|
+
origin = _ref7.origin;
|
|
4019
4052
|
this.isRightVisible = false;
|
|
4020
4053
|
var _this$_active = this._active,
|
|
4021
4054
|
left = _this$_active.left,
|
|
@@ -4025,6 +4058,17 @@ var rightClickNodeConnect = [{
|
|
|
4025
4058
|
top: top
|
|
4026
4059
|
});
|
|
4027
4060
|
|
|
4061
|
+
if (extra) {
|
|
4062
|
+
var _this$propItems$table2;
|
|
4063
|
+
|
|
4064
|
+
var _ref8 = ((_this$propItems$table2 = this.propItems.table) === null || _this$propItems$table2 === void 0 ? void 0 : _this$propItems$table2.extraMenuConfig) || {},
|
|
4065
|
+
click = _ref8.click;
|
|
4066
|
+
|
|
4067
|
+
if (!vexutils_default.a.isFunction(click)) return;
|
|
4068
|
+
click(data, origin);
|
|
4069
|
+
return;
|
|
4070
|
+
}
|
|
4071
|
+
|
|
4028
4072
|
if (type == 'add') {
|
|
4029
4073
|
if (name.includes('左')) {
|
|
4030
4074
|
data.range = {
|
|
@@ -4073,16 +4117,16 @@ var rightClickNodeConnect = [{
|
|
|
4073
4117
|
// 将当条线段以及点层级置顶
|
|
4074
4118
|
// 线段不能先置顶,会挡住其他线段上的点
|
|
4075
4119
|
pointToFront: function pointToFront(point) {
|
|
4076
|
-
var
|
|
4120
|
+
var _this21 = this;
|
|
4077
4121
|
|
|
4078
4122
|
this.canvas.forEachObject(function (obj) {
|
|
4079
|
-
if (
|
|
4080
|
-
|
|
4123
|
+
if (_this21.isOnePolyLine(obj, point.polylineTypeId, point.polylineIndex)) {
|
|
4124
|
+
_this21.canvas.bringToFront(obj);
|
|
4081
4125
|
}
|
|
4082
4126
|
});
|
|
4083
4127
|
},
|
|
4084
4128
|
removePolyline: function removePolyline(id, left, position, polylineIndex) {
|
|
4085
|
-
var
|
|
4129
|
+
var _this22 = this;
|
|
4086
4130
|
|
|
4087
4131
|
// 根据id或者idClone删除
|
|
4088
4132
|
if (id) {
|
|
@@ -4091,9 +4135,9 @@ var rightClickNodeConnect = [{
|
|
|
4091
4135
|
if (pointId === 'idClone') {
|
|
4092
4136
|
this.addPointObjList.forEach(function (obj) {
|
|
4093
4137
|
if (obj.left >= left) {
|
|
4094
|
-
|
|
4138
|
+
_this22.canvas.remove(obj);
|
|
4095
4139
|
|
|
4096
|
-
obj.line1 &&
|
|
4140
|
+
obj.line1 && _this22.canvas.remove(obj.line1);
|
|
4097
4141
|
}
|
|
4098
4142
|
});
|
|
4099
4143
|
this.addPointObjList = this.addPointObjList.filter(function (obj) {
|
|
@@ -4107,9 +4151,9 @@ var rightClickNodeConnect = [{
|
|
|
4107
4151
|
if (point && point.length > 0) {
|
|
4108
4152
|
point.forEach(function (v) {
|
|
4109
4153
|
if (!left) {
|
|
4110
|
-
|
|
4154
|
+
_this22.canvas.remove(v);
|
|
4111
4155
|
|
|
4112
|
-
v.line1 &&
|
|
4156
|
+
v.line1 && _this22.canvas.remove(v.line1);
|
|
4113
4157
|
}
|
|
4114
4158
|
});
|
|
4115
4159
|
}
|
|
@@ -4124,12 +4168,12 @@ var rightClickNodeConnect = [{
|
|
|
4124
4168
|
return v.position === position;
|
|
4125
4169
|
});
|
|
4126
4170
|
this.canvas.forEachObject(function (obj) {
|
|
4127
|
-
if (
|
|
4128
|
-
obj.text &&
|
|
4129
|
-
obj.line1 &&
|
|
4130
|
-
obj.line2 &&
|
|
4171
|
+
if (_this22.isOnePolyLine(obj, polylineTypeId, polylineIndex)) {
|
|
4172
|
+
obj.text && _this22.canvas.remove(obj.text);
|
|
4173
|
+
obj.line1 && _this22.canvas.remove(obj.line1);
|
|
4174
|
+
obj.line2 && _this22.canvas.remove(obj.line2);
|
|
4131
4175
|
|
|
4132
|
-
|
|
4176
|
+
_this22.canvas.remove(obj);
|
|
4133
4177
|
}
|
|
4134
4178
|
});
|
|
4135
4179
|
return;
|
|
@@ -4138,9 +4182,9 @@ var rightClickNodeConnect = [{
|
|
|
4138
4182
|
|
|
4139
4183
|
this.canvas.forEachObject(function (obj) {
|
|
4140
4184
|
if (obj.id && /_polyline(Point|Line)_/.test(obj.id) && !obj.id.includes('isTitle')) {
|
|
4141
|
-
obj.text &&
|
|
4185
|
+
obj.text && _this22.canvas.remove(obj.text);
|
|
4142
4186
|
|
|
4143
|
-
|
|
4187
|
+
_this22.canvas.remove(obj);
|
|
4144
4188
|
}
|
|
4145
4189
|
});
|
|
4146
4190
|
},
|
|
@@ -4151,7 +4195,7 @@ var rightClickNodeConnect = [{
|
|
|
4151
4195
|
}
|
|
4152
4196
|
},
|
|
4153
4197
|
repaintPolyline: function repaintPolyline(position, dadaIndex) {
|
|
4154
|
-
var
|
|
4198
|
+
var _this23 = this;
|
|
4155
4199
|
|
|
4156
4200
|
if (arguments.length < 2) {
|
|
4157
4201
|
if (this.polyline.length) {
|
|
@@ -4161,7 +4205,7 @@ var rightClickNodeConnect = [{
|
|
|
4161
4205
|
this.polylinePointList = [];
|
|
4162
4206
|
this.flickerablePoints = [];
|
|
4163
4207
|
this.polyline.forEach(function (polylineType, polylineTypeId) {
|
|
4164
|
-
|
|
4208
|
+
_this23.createPolyline(polylineType, polylineTypeId);
|
|
4165
4209
|
});
|
|
4166
4210
|
this.removeTitle();
|
|
4167
4211
|
this.drawPolylineTitle();
|
|
@@ -4191,8 +4235,8 @@ var rightClickNodeConnect = [{
|
|
|
4191
4235
|
|
|
4192
4236
|
var FabricPolylines_component = Object(componentNormalizer["a" /* default */])(
|
|
4193
4237
|
fabric_chart_FabricPolylinesvue_type_script_lang_js_,
|
|
4194
|
-
|
|
4195
|
-
|
|
4238
|
+
FabricPolylinesvue_type_template_id_75a38c46_render,
|
|
4239
|
+
FabricPolylinesvue_type_template_id_75a38c46_staticRenderFns,
|
|
4196
4240
|
false,
|
|
4197
4241
|
null,
|
|
4198
4242
|
null,
|
|
@@ -4298,7 +4342,7 @@ var FabricGrid_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4298
4342
|
)
|
|
4299
4343
|
|
|
4300
4344
|
/* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
|
|
4301
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4345
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8f89c644-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=adfb5518&
|
|
4302
4346
|
var FabricTextGroupvue_type_template_id_adfb5518_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"text-group"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
4303
4347
|
var FabricTextGroupvue_type_template_id_adfb5518_staticRenderFns = []
|
|
4304
4348
|
|
|
@@ -6011,14 +6055,14 @@ var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6011
6055
|
)
|
|
6012
6056
|
|
|
6013
6057
|
/* harmony default export */ var FabricTextGroup = (FabricTextGroup_component.exports);
|
|
6014
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
6058
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8f89c644-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&
|
|
6015
6059
|
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()}
|
|
6016
6060
|
var FabricScaleValuevue_type_template_id_68258044_staticRenderFns = []
|
|
6017
6061
|
|
|
6018
6062
|
|
|
6019
6063
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
|
|
6020
6064
|
|
|
6021
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
6065
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8f89c644-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&
|
|
6022
6066
|
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)}
|
|
6023
6067
|
var TimeScaleValuevue_type_template_id_0aa2f038_scoped_true_staticRenderFns = []
|
|
6024
6068
|
|
|
@@ -6402,12 +6446,12 @@ var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6402
6446
|
)
|
|
6403
6447
|
|
|
6404
6448
|
/* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
|
|
6405
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
6406
|
-
var
|
|
6407
|
-
var
|
|
6449
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8f89c644-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=5e9abf5e&
|
|
6450
|
+
var FabricLinesvue_type_template_id_5e9abf5e_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)}
|
|
6451
|
+
var FabricLinesvue_type_template_id_5e9abf5e_staticRenderFns = []
|
|
6408
6452
|
|
|
6409
6453
|
|
|
6410
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=
|
|
6454
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=5e9abf5e&
|
|
6411
6455
|
|
|
6412
6456
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=script&lang=js&
|
|
6413
6457
|
|
|
@@ -6501,6 +6545,23 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
6501
6545
|
this.createLine();
|
|
6502
6546
|
this.eventStyle.evented && this.createEvent();
|
|
6503
6547
|
},
|
|
6548
|
+
isTopTreeAndGridLimit: function isTopTreeAndGridLimit(x, y) {
|
|
6549
|
+
var _this$propItems = this.propItems,
|
|
6550
|
+
endX = _this$propItems.endX,
|
|
6551
|
+
endYTop = _this$propItems.endYTop,
|
|
6552
|
+
originYTop = _this$propItems.originYTop;
|
|
6553
|
+
return x >= 0 && x <= endX && y >= originYTop && y <= endYTop;
|
|
6554
|
+
},
|
|
6555
|
+
isGridLimit: function isGridLimit(_ref) {
|
|
6556
|
+
var x = _ref.x,
|
|
6557
|
+
y = _ref.y;
|
|
6558
|
+
var _this$propItems2 = this.propItems,
|
|
6559
|
+
originX = _this$propItems2.originX,
|
|
6560
|
+
endX = _this$propItems2.endX,
|
|
6561
|
+
endYTop = _this$propItems2.endYTop,
|
|
6562
|
+
originYTop = _this$propItems2.originYTop;
|
|
6563
|
+
return x >= originX && x <= endX && y >= originYTop && y <= endYTop;
|
|
6564
|
+
},
|
|
6504
6565
|
createEvent: function createEvent() {
|
|
6505
6566
|
var _this = this;
|
|
6506
6567
|
|
|
@@ -6568,11 +6629,11 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
6568
6629
|
_this2.rightClickNode = Object.freeze(FabricLinesvue_type_script_lang_js_rightClickNode.slice());
|
|
6569
6630
|
_this2.isRightVisible = true;
|
|
6570
6631
|
} else {
|
|
6571
|
-
_this2.doContextmenuEvent(_this2.activeEvent.pointer);
|
|
6632
|
+
_this2.doContextmenuEvent(id, _this2.activeEvent.pointer);
|
|
6572
6633
|
}
|
|
6573
6634
|
});
|
|
6574
6635
|
},
|
|
6575
|
-
doContextmenuEvent: function doContextmenuEvent(pointer) {
|
|
6636
|
+
doContextmenuEvent: function doContextmenuEvent(id, pointer) {
|
|
6576
6637
|
var x = pointer.x,
|
|
6577
6638
|
y = pointer.y;
|
|
6578
6639
|
|
|
@@ -6581,10 +6642,20 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
6581
6642
|
|
|
6582
6643
|
var _treeList = vexutils_default.a.clone(treeList, true);
|
|
6583
6644
|
|
|
6584
|
-
var
|
|
6645
|
+
var param = {
|
|
6646
|
+
type: 'tree',
|
|
6647
|
+
treeData: []
|
|
6648
|
+
};
|
|
6649
|
+
var isBlankGrid = !id && this.isGridLimit(pointer);
|
|
6650
|
+
|
|
6651
|
+
if (isBlankGrid) {
|
|
6652
|
+
param.type = 'grid';
|
|
6653
|
+
param.time = this.getXValue(x);
|
|
6654
|
+
param.lineData = [];
|
|
6655
|
+
}
|
|
6656
|
+
|
|
6585
6657
|
ergodicTree(_treeList);
|
|
6586
|
-
|
|
6587
|
-
data = null;
|
|
6658
|
+
this.$emit('rightClick', param);
|
|
6588
6659
|
|
|
6589
6660
|
function ergodicTree(tree) {
|
|
6590
6661
|
for (var i = 0, len = tree.length; i < len; i++) {
|
|
@@ -6595,20 +6666,29 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
6595
6666
|
height = _tree$i.height,
|
|
6596
6667
|
_tree$i$children = _tree$i.children,
|
|
6597
6668
|
children = _tree$i$children === void 0 ? [] : _tree$i$children,
|
|
6598
|
-
origin = _tree$i.origin
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6669
|
+
origin = _tree$i.origin,
|
|
6670
|
+
_tree$i$lineList = _tree$i.lineList,
|
|
6671
|
+
lineList = _tree$i$lineList === void 0 ? [] : _tree$i$lineList;
|
|
6672
|
+
|
|
6673
|
+
if (y >= top && y <= top + height) {
|
|
6674
|
+
if (x >= left && x <= left + width) {
|
|
6675
|
+
param.treeData = origin;
|
|
6676
|
+
break;
|
|
6677
|
+
} else if (children.length) {
|
|
6678
|
+
ergodicTree(children);
|
|
6679
|
+
} else if (isBlankGrid) {
|
|
6680
|
+
param.treeData = origin;
|
|
6681
|
+
param.lineData = lineList;
|
|
6682
|
+
break;
|
|
6683
|
+
}
|
|
6604
6684
|
}
|
|
6605
6685
|
}
|
|
6606
6686
|
}
|
|
6607
6687
|
},
|
|
6608
6688
|
// 关闭右键菜单,打开添加节点弹窗表单
|
|
6609
|
-
handleRightClick: function handleRightClick(
|
|
6610
|
-
var type =
|
|
6611
|
-
subType =
|
|
6689
|
+
handleRightClick: function handleRightClick(_ref2) {
|
|
6690
|
+
var type = _ref2.type,
|
|
6691
|
+
subType = _ref2.subType;
|
|
6612
6692
|
this.isRightVisible = false;
|
|
6613
6693
|
var line = this._currentPoint;
|
|
6614
6694
|
this._currentPoint = '';
|
|
@@ -6894,10 +6974,10 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
6894
6974
|
}, _callee);
|
|
6895
6975
|
}))();
|
|
6896
6976
|
},
|
|
6897
|
-
drawLineText: function drawLineText(textArr, top, i, j, x1, x2,
|
|
6898
|
-
var leftLimit =
|
|
6899
|
-
rightLimit =
|
|
6900
|
-
y2 =
|
|
6977
|
+
drawLineText: function drawLineText(textArr, top, i, j, x1, x2, _ref3) {
|
|
6978
|
+
var leftLimit = _ref3.leftLimit,
|
|
6979
|
+
rightLimit = _ref3.rightLimit,
|
|
6980
|
+
y2 = _ref3.y2;
|
|
6901
6981
|
var value = textArr.filter(function (v) {
|
|
6902
6982
|
return v !== '';
|
|
6903
6983
|
}).join('—');
|
|
@@ -6920,11 +7000,11 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
6920
7000
|
return text;
|
|
6921
7001
|
},
|
|
6922
7002
|
setTextPosition: function setTextPosition(text, top, x1, x2, leftLimit, rightLimit, baseY) {
|
|
6923
|
-
var
|
|
7003
|
+
var _ref4;
|
|
6924
7004
|
|
|
6925
7005
|
var textWidth = text.width + 2; // 横线小于text文字的宽度则text显示在右侧
|
|
6926
7006
|
|
|
6927
|
-
var centerLineWidth = (
|
|
7007
|
+
var centerLineWidth = (_ref4 = (x2 || x1) - x1) !== null && _ref4 !== void 0 ? _ref4 : 0;
|
|
6928
7008
|
var rightWidth = rightLimit.x2 - leftLimit.x2 || rightLimit.x2 - x1 || 0;
|
|
6929
7009
|
var leftWidth = rightLimit.x1 - leftLimit.x1 || x1 - leftLimit.x1 || 0;
|
|
6930
7010
|
var changeOptions = {
|
|
@@ -7351,8 +7431,8 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
7351
7431
|
|
|
7352
7432
|
var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
7353
7433
|
fabric_chart_FabricLinesvue_type_script_lang_js_,
|
|
7354
|
-
|
|
7355
|
-
|
|
7434
|
+
FabricLinesvue_type_template_id_5e9abf5e_render,
|
|
7435
|
+
FabricLinesvue_type_template_id_5e9abf5e_staticRenderFns,
|
|
7356
7436
|
false,
|
|
7357
7437
|
null,
|
|
7358
7438
|
null,
|
|
@@ -7396,7 +7476,6 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7396
7476
|
|
|
7397
7477
|
|
|
7398
7478
|
|
|
7399
|
-
|
|
7400
7479
|
/* harmony default export */ var FabricChartvue_type_script_lang_js_ = (Object(create["a" /* default */])({
|
|
7401
7480
|
name: 'fabric-chart',
|
|
7402
7481
|
props: {
|
|
@@ -7414,6 +7493,16 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7414
7493
|
FabricLines: FabricLines
|
|
7415
7494
|
},
|
|
7416
7495
|
computed: {
|
|
7496
|
+
fabric: function fabric() {
|
|
7497
|
+
var _this$$refs$canvasEle;
|
|
7498
|
+
|
|
7499
|
+
return (_this$$refs$canvasEle = this.$refs.canvasEle) === null || _this$$refs$canvasEle === void 0 ? void 0 : _this$$refs$canvasEle.fabric;
|
|
7500
|
+
},
|
|
7501
|
+
canvas: function canvas() {
|
|
7502
|
+
var _this$$refs$canvasEle2;
|
|
7503
|
+
|
|
7504
|
+
return (_this$$refs$canvasEle2 = this.$refs.canvasEle) === null || _this$$refs$canvasEle2 === void 0 ? void 0 : _this$$refs$canvasEle2.canvas;
|
|
7505
|
+
},
|
|
7417
7506
|
polylines: function polylines() {
|
|
7418
7507
|
var _this$templateData, _this$templateData$ri, _this$templateData$ri2, _this$templateData$ri3, _this$templateData2, _this$templateData2$l, _this$templateData2$l2, _this$templateData2$l3;
|
|
7419
7508
|
|
|
@@ -7467,6 +7556,12 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7467
7556
|
this.canvasWidth = "".concat(this.templateData.canvasWidth, "px") || false;
|
|
7468
7557
|
},
|
|
7469
7558
|
methods: {
|
|
7559
|
+
computedX: function computedX() {
|
|
7560
|
+
var _this$$refs$polylines, _this$$refs$polylines2;
|
|
7561
|
+
|
|
7562
|
+
if (!((_this$$refs$polylines = this.$refs.polylines) !== null && _this$$refs$polylines !== void 0 && _this$$refs$polylines.computedX)) return;
|
|
7563
|
+
return (_this$$refs$polylines2 = this.$refs.polylines) === null || _this$$refs$polylines2 === void 0 ? void 0 : _this$$refs$polylines2.computedX.apply(_this$$refs$polylines2, arguments);
|
|
7564
|
+
},
|
|
7470
7565
|
setTimeRange: function setTimeRange(enabled) {
|
|
7471
7566
|
this.$refs.polylines.timeRangeData.enabled = enabled;
|
|
7472
7567
|
},
|
|
@@ -7491,13 +7586,13 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7491
7586
|
},
|
|
7492
7587
|
repaintPolyline: function repaintPolyline(position, dadaIndex) {
|
|
7493
7588
|
if (arguments.length > 1) {
|
|
7494
|
-
var _this$$refs$
|
|
7589
|
+
var _this$$refs$polylines3;
|
|
7495
7590
|
|
|
7496
|
-
(_this$$refs$
|
|
7591
|
+
(_this$$refs$polylines3 = this.$refs.polylines) === null || _this$$refs$polylines3 === void 0 ? void 0 : _this$$refs$polylines3.repaintPolyline(position, dadaIndex);
|
|
7497
7592
|
} else {
|
|
7498
|
-
var _this$$refs$
|
|
7593
|
+
var _this$$refs$polylines4;
|
|
7499
7594
|
|
|
7500
|
-
(_this$$refs$
|
|
7595
|
+
(_this$$refs$polylines4 = this.$refs.polylines) === null || _this$$refs$polylines4 === void 0 ? void 0 : _this$$refs$polylines4.repaintPolyline();
|
|
7501
7596
|
}
|
|
7502
7597
|
},
|
|
7503
7598
|
repaintLine: function repaintLine() {
|
|
@@ -7534,8 +7629,8 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7534
7629
|
}));
|
|
7535
7630
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=script&lang=js&
|
|
7536
7631
|
/* harmony default export */ var src_FabricChartvue_type_script_lang_js_ = (FabricChartvue_type_script_lang_js_);
|
|
7537
|
-
// EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=
|
|
7538
|
-
var
|
|
7632
|
+
// EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=4f0a8f90&lang=less&scoped=true&
|
|
7633
|
+
var FabricChartvue_type_style_index_0_id_4f0a8f90_lang_less_scoped_true_ = __webpack_require__("8699");
|
|
7539
7634
|
|
|
7540
7635
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue
|
|
7541
7636
|
|
|
@@ -7552,7 +7647,7 @@ var FabricChart_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7552
7647
|
staticRenderFns,
|
|
7553
7648
|
false,
|
|
7554
7649
|
null,
|
|
7555
|
-
"
|
|
7650
|
+
"4f0a8f90",
|
|
7556
7651
|
null
|
|
7557
7652
|
|
|
7558
7653
|
)
|
|
@@ -8509,6 +8604,13 @@ module.exports = function (a, b) {
|
|
|
8509
8604
|
};
|
|
8510
8605
|
|
|
8511
8606
|
|
|
8607
|
+
/***/ }),
|
|
8608
|
+
|
|
8609
|
+
/***/ "46bf":
|
|
8610
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8611
|
+
|
|
8612
|
+
// extracted by mini-css-extract-plugin
|
|
8613
|
+
|
|
8512
8614
|
/***/ }),
|
|
8513
8615
|
|
|
8514
8616
|
/***/ "4840":
|
|
@@ -9079,17 +9181,6 @@ module.exports = [
|
|
|
9079
9181
|
];
|
|
9080
9182
|
|
|
9081
9183
|
|
|
9082
|
-
/***/ }),
|
|
9083
|
-
|
|
9084
|
-
/***/ "7aca":
|
|
9085
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9086
|
-
|
|
9087
|
-
"use strict";
|
|
9088
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_76395f46_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f074");
|
|
9089
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_76395f46_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_76395f46_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
9090
|
-
/* unused harmony reexport * */
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
9184
|
/***/ }),
|
|
9094
9185
|
|
|
9095
9186
|
/***/ "7b0b":
|
|
@@ -9349,6 +9440,17 @@ module.exports = function (it) {
|
|
|
9349
9440
|
};
|
|
9350
9441
|
|
|
9351
9442
|
|
|
9443
|
+
/***/ }),
|
|
9444
|
+
|
|
9445
|
+
/***/ "8699":
|
|
9446
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9447
|
+
|
|
9448
|
+
"use strict";
|
|
9449
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_4f0a8f90_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("46bf");
|
|
9450
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_4f0a8f90_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FabricChart_vue_vue_type_style_index_0_id_4f0a8f90_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
9451
|
+
/* unused harmony reexport * */
|
|
9452
|
+
|
|
9453
|
+
|
|
9352
9454
|
/***/ }),
|
|
9353
9455
|
|
|
9354
9456
|
/***/ "8925":
|
|
@@ -10862,13 +10964,6 @@ module.exports.f = function (C) {
|
|
|
10862
10964
|
};
|
|
10863
10965
|
|
|
10864
10966
|
|
|
10865
|
-
/***/ }),
|
|
10866
|
-
|
|
10867
|
-
/***/ "f074":
|
|
10868
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
10869
|
-
|
|
10870
|
-
// extracted by mini-css-extract-plugin
|
|
10871
|
-
|
|
10872
10967
|
/***/ }),
|
|
10873
10968
|
|
|
10874
10969
|
/***/ "f3b8":
|