cnhis-design-vue 2.1.143 → 2.1.145
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 +41 -3
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +26 -26
- package/es/button/index.js +445 -285
- 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 +379 -186
- 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 +1766 -953
- 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 +74 -58
- package/es/multi-chat/style.css +1 -1
- package/es/multi-chat-client/index.js +70 -54
- 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 +4 -4
- package/es/multi-chat-setting/index.js +64 -47
- package/es/multi-chat-setting/style.css +1 -1
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-container/index.js +1 -1
- package/es/scale-view/index.js +27 -27
- package/es/select/index.js +4 -4
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +2 -2
- package/es/select-tag/index.js +4 -4
- package/es/shortcut-setter/index.js +2 -2
- package/es/slider-tree/index.js +1 -1
- package/es/table-filter/index.js +1100 -529
- 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 +1926 -1139
- package/lib/cui.umd.js +1926 -1139
- package/lib/cui.umd.min.js +34 -34
- package/package.json +1 -1
- package/packages/button/src/ButtonPrint/index.vue +21 -13
- package/packages/button/src/ButtonPrint/new.vue +270 -291
- package/packages/button/src/ButtonPrint/old.vue +33 -4
- 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/FabricPolylines.vue +200 -89
- package/packages/fabric-chart/src/mixins/eventCommon.js +1 -1
- package/packages/fabric-chart/src/utils/index.js +8 -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/packages/table-filter/src/base-search-com/BaseSearch.vue +21 -71
- package/packages/table-filter/src/mixins/printNew.js +184 -0
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":"6cf3475e-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":"6cf3475e-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":"6cf3475e-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=66d08862&
|
|
975
|
+
var FabricPolylinesvue_type_template_id_66d08862_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_66d08862_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=66d08862&
|
|
981
980
|
|
|
982
981
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
983
982
|
var asyncToGenerator = __webpack_require__("1da1");
|
|
@@ -1154,6 +1153,9 @@ var es_number_constructor_js_ = __webpack_require__("f989");
|
|
|
1154
1153
|
|
|
1155
1154
|
|
|
1156
1155
|
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1157
1159
|
var utils_isNumber = function isNumber(num) {
|
|
1158
1160
|
return typeof num === 'number' && Number.isFinite(num);
|
|
1159
1161
|
};
|
|
@@ -1240,6 +1242,13 @@ function sortByTime() {
|
|
|
1240
1242
|
});
|
|
1241
1243
|
return list;
|
|
1242
1244
|
}
|
|
1245
|
+
function getUuid() {
|
|
1246
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
1247
|
+
var r = Math.random() * 16 | 0,
|
|
1248
|
+
v = c == 'x' ? r : r & 0x3 | 0x8;
|
|
1249
|
+
return v.toString(16);
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1243
1252
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/mixins/draw.js
|
|
1244
1253
|
|
|
1245
1254
|
|
|
@@ -1801,7 +1810,7 @@ function sortByTime() {
|
|
|
1801
1810
|
endX = _this$propItems.endX,
|
|
1802
1811
|
originY = _this$propItems.originY,
|
|
1803
1812
|
endY = _this$propItems.endY;
|
|
1804
|
-
var leftLimit = ((_point$prevPoint = point.prevPoint) === null || _point$prevPoint === void 0 ? void 0 : _point$prevPoint.get('left')) || originX;
|
|
1813
|
+
var leftLimit = isLimit && ((_point$prevPoint = point.prevPoint) === null || _point$prevPoint === void 0 ? void 0 : _point$prevPoint.get('left')) || originX;
|
|
1805
1814
|
var rightLimit = isLimit && ((_point$nextPoint = point.nextPoint) === null || _point$nextPoint === void 0 ? void 0 : _point$nextPoint.get('left')) || endX;
|
|
1806
1815
|
|
|
1807
1816
|
if (point.top < originY) {
|
|
@@ -1855,7 +1864,7 @@ function sortByTime() {
|
|
|
1855
1864
|
}
|
|
1856
1865
|
}
|
|
1857
1866
|
});
|
|
1858
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1867
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6cf3475e-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
1868
|
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
1869
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_staticRenderFns = []
|
|
1861
1870
|
|
|
@@ -1963,7 +1972,7 @@ var MouseRightClick_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1963
1972
|
)
|
|
1964
1973
|
|
|
1965
1974
|
/* 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":"
|
|
1975
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6cf3475e-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
1976
|
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
1977
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_staticRenderFns = []
|
|
1969
1978
|
|
|
@@ -2115,6 +2124,7 @@ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
|
2115
2124
|
|
|
2116
2125
|
|
|
2117
2126
|
|
|
2127
|
+
|
|
2118
2128
|
/**
|
|
2119
2129
|
* @description: 递归遍历节点,设置颜色属性
|
|
2120
2130
|
* @param {fabric.Object[]} pointArr
|
|
@@ -2147,16 +2157,32 @@ function resetPointColor(pointArr, color) {
|
|
|
2147
2157
|
});
|
|
2148
2158
|
}
|
|
2149
2159
|
|
|
2150
|
-
var setPointLineColor = function setPointLineColor(point, color,
|
|
2151
|
-
var _point$prevPoint, _point$prevPoint$__at, _point$prevPoint$__at2
|
|
2160
|
+
var setPointLineColor = function setPointLineColor(point, color, isRight) {
|
|
2161
|
+
var _point$prevPoint, _point$prevPoint$__at, _point$prevPoint$__at2;
|
|
2162
|
+
|
|
2163
|
+
var lineColor = color === 'transparent' ? color : isRight ? ((_point$prevPoint = point.prevPoint) === null || _point$prevPoint === void 0 ? void 0 : (_point$prevPoint$__at = _point$prevPoint.__attrs) === null || _point$prevPoint$__at === void 0 ? void 0 : (_point$prevPoint$__at2 = _point$prevPoint$__at.lineAttr) === null || _point$prevPoint$__at2 === void 0 ? void 0 : _point$prevPoint$__at2.stroke) || color : color;
|
|
2164
|
+
|
|
2165
|
+
if (isRight) {
|
|
2166
|
+
var _point$line, _point$line2;
|
|
2167
|
+
|
|
2168
|
+
(_point$line = point.line1) === null || _point$line === void 0 ? void 0 : _point$line.set({
|
|
2169
|
+
stroke: lineColor
|
|
2170
|
+
});
|
|
2171
|
+
(_point$line2 = point.line2) === null || _point$line2 === void 0 ? void 0 : _point$line2.set({
|
|
2172
|
+
stroke: color
|
|
2173
|
+
});
|
|
2174
|
+
} else {
|
|
2175
|
+
var _point$line3, _point$line4;
|
|
2176
|
+
|
|
2177
|
+
(_point$line3 = point.line2) === null || _point$line3 === void 0 ? void 0 : _point$line3.set({
|
|
2178
|
+
stroke: lineColor
|
|
2179
|
+
});
|
|
2180
|
+
(_point$line4 = point.line1) === null || _point$line4 === void 0 ? void 0 : _point$line4.set({
|
|
2181
|
+
stroke: color
|
|
2182
|
+
});
|
|
2183
|
+
} // point.line2?.set({ stroke: color });
|
|
2184
|
+
// conditionHasLine && point.line2?.set({ stroke: color });
|
|
2152
2185
|
|
|
2153
|
-
var line1Color = color === 'transparent' ? color : ((_point$prevPoint = point.prevPoint) === null || _point$prevPoint === void 0 ? void 0 : (_point$prevPoint$__at = _point$prevPoint.__attrs) === null || _point$prevPoint$__at === void 0 ? void 0 : (_point$prevPoint$__at2 = _point$prevPoint$__at.lineAttr) === null || _point$prevPoint$__at2 === void 0 ? void 0 : _point$prevPoint$__at2.stroke) || color;
|
|
2154
|
-
(_point$line = point.line1) === null || _point$line === void 0 ? void 0 : _point$line.set({
|
|
2155
|
-
stroke: line1Color
|
|
2156
|
-
});
|
|
2157
|
-
conditionHasLine2 && ((_point$line2 = point.line2) === null || _point$line2 === void 0 ? void 0 : _point$line2.set({
|
|
2158
|
-
stroke: color
|
|
2159
|
-
}));
|
|
2160
2186
|
};
|
|
2161
2187
|
|
|
2162
2188
|
var isEffectiveNode = function isEffectiveNode(node) {
|
|
@@ -3339,8 +3365,9 @@ var rightClickNodeConnect = [{
|
|
|
3339
3365
|
var position = this.polyline[point.polylineTypeId].position;
|
|
3340
3366
|
|
|
3341
3367
|
var _this$addPointList = Object(slicedToArray["a" /* default */])(this.addPointList, 1),
|
|
3342
|
-
firstPoint = _this$addPointList[0];
|
|
3368
|
+
firstPoint = _this$addPointList[0];
|
|
3343
3369
|
|
|
3370
|
+
var isRight = lastPoint.left > point.originLeft; // 如果是重合/连线节点
|
|
3344
3371
|
|
|
3345
3372
|
if (point.get('scaleX') !== point.scale) {
|
|
3346
3373
|
var _this$_concatPoint, _this$_concatPoint2, _point$__attrs2;
|
|
@@ -3360,24 +3387,45 @@ var rightClickNodeConnect = [{
|
|
|
3360
3387
|
this.addPointList.push(addOjb);
|
|
3361
3388
|
}
|
|
3362
3389
|
|
|
3390
|
+
if (!isRight) {
|
|
3391
|
+
var _point$__attrs3;
|
|
3392
|
+
|
|
3393
|
+
this.addPointList.unshift(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, firstPoint), {}, {
|
|
3394
|
+
value: Object(objectSpread2["a" /* default */])({
|
|
3395
|
+
time: this.getXValue(point.originLeft),
|
|
3396
|
+
value: this.getYValue(position, point.originTop)
|
|
3397
|
+
}, (_point$__attrs3 = point.__attrs) !== null && _point$__attrs3 !== void 0 && _point$__attrs3.key ? {
|
|
3398
|
+
key: point.__attrs.key
|
|
3399
|
+
} : {})
|
|
3400
|
+
}));
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3363
3403
|
this.addPointList.forEach(function (v) {
|
|
3364
3404
|
return Object.assign(v, {
|
|
3365
3405
|
isConcat: true,
|
|
3366
|
-
concatIndex: _this14._concatIndex
|
|
3406
|
+
concatIndex: isRight ? _this14._concatIndex : point.pointIndex,
|
|
3407
|
+
pointIndex: isRight ? point.pointIndex : _this14._concatPoint.pointIndex
|
|
3367
3408
|
});
|
|
3368
3409
|
});
|
|
3369
|
-
} else if (point.line2 || point.nextPoint && lastPoint.left >= point.nextPoint.left) {
|
|
3410
|
+
} else if (!isRight || isRight && (point.line2 || point.nextPoint && lastPoint.left >= point.nextPoint.left)) {
|
|
3370
3411
|
// 1、存在右连线 2、无右侧连线,并且存在下一个节点的情况
|
|
3371
3412
|
this.addPointList = [];
|
|
3372
3413
|
this.repaintPolyline(position, point.polylineIndex);
|
|
3373
3414
|
return;
|
|
3374
3415
|
}
|
|
3375
3416
|
|
|
3376
|
-
!point.line2 && firstPoint.left <= point.originLeft && this.addPointList.splice(0, 1);
|
|
3377
3417
|
!point.id.includes('isTitle') && this.removePolyline(point.id);
|
|
3378
3418
|
|
|
3419
|
+
if (isRight && !point.line2 && firstPoint.left <= point.originLeft) {
|
|
3420
|
+
this.addPointList.splice(0, 1);
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3423
|
+
if (!isRight) {
|
|
3424
|
+
this.addPointList.splice(-1, 1);
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3379
3427
|
if (this.addPointList.length > 0) {
|
|
3380
|
-
this.$emit('pointOperation', 'increasePointBatch', this.addPointList);
|
|
3428
|
+
this.$emit('pointOperation', 'increasePointBatch', isRight ? this.addPointList : this.addPointList.reverse());
|
|
3381
3429
|
this.addPointList = [];
|
|
3382
3430
|
} else {
|
|
3383
3431
|
this.repaintPolyline(position, point.polylineIndex);
|
|
@@ -3403,14 +3451,14 @@ var rightClickNodeConnect = [{
|
|
|
3403
3451
|
this.addPointList.push(data);
|
|
3404
3452
|
},
|
|
3405
3453
|
// 纠正线段坐标
|
|
3406
|
-
setLinePatch: function setLinePatch(point) {
|
|
3454
|
+
setLinePatch: function setLinePatch(point, isRight) {
|
|
3407
3455
|
var _this15 = this;
|
|
3408
3456
|
|
|
3409
3457
|
var originLeft = point.originLeft,
|
|
3410
3458
|
originTop = point.originTop;
|
|
3411
3459
|
|
|
3412
3460
|
var _loop = function _loop(i, len) {
|
|
3413
|
-
var _point$prePoint$left, _point$prePoint, _point$prePoint$top, _point$prePoint2
|
|
3461
|
+
var _point$prePoint$left, _point$prePoint, _point$prePoint$top, _point$prePoint2;
|
|
3414
3462
|
|
|
3415
3463
|
var currentPoint = _this15.addPointList[i];
|
|
3416
3464
|
var prevPoint = _this15.addPointList[i - 1] || {
|
|
@@ -3422,15 +3470,32 @@ var rightClickNodeConnect = [{
|
|
|
3422
3470
|
return nearlyEqual(obj.left, currentPoint.left);
|
|
3423
3471
|
});
|
|
3424
3472
|
|
|
3425
|
-
if (
|
|
3426
|
-
var _currentPointObj$
|
|
3473
|
+
if (isRight) {
|
|
3474
|
+
var _currentPointObj$line;
|
|
3427
3475
|
|
|
3428
|
-
currentPointObj === null || currentPointObj === void 0 ? void 0 : (_currentPointObj$
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3476
|
+
if (!nearlyEqual(currentPointObj === null || currentPointObj === void 0 ? void 0 : (_currentPointObj$line = currentPointObj.line1) === null || _currentPointObj$line === void 0 ? void 0 : _currentPointObj$line.x1, prevPoint.left)) {
|
|
3477
|
+
var _currentPointObj$line2;
|
|
3478
|
+
|
|
3479
|
+
currentPointObj === null || currentPointObj === void 0 ? void 0 : (_currentPointObj$line2 = currentPointObj.line1) === null || _currentPointObj$line2 === void 0 ? void 0 : _currentPointObj$line2.set({
|
|
3480
|
+
x1: prevPoint.left,
|
|
3481
|
+
y1: prevPoint.top,
|
|
3482
|
+
x2: currentPoint.left,
|
|
3483
|
+
y2: currentPoint.top
|
|
3484
|
+
});
|
|
3485
|
+
}
|
|
3486
|
+
} else {
|
|
3487
|
+
var _currentPointObj$line3;
|
|
3488
|
+
|
|
3489
|
+
if (!nearlyEqual(currentPointObj === null || currentPointObj === void 0 ? void 0 : (_currentPointObj$line3 = currentPointObj.line2) === null || _currentPointObj$line3 === void 0 ? void 0 : _currentPointObj$line3.x2, prevPoint.left)) {
|
|
3490
|
+
var _currentPointObj$line4;
|
|
3491
|
+
|
|
3492
|
+
currentPointObj === null || currentPointObj === void 0 ? void 0 : (_currentPointObj$line4 = currentPointObj.line1) === null || _currentPointObj$line4 === void 0 ? void 0 : _currentPointObj$line4.set({
|
|
3493
|
+
x1: currentPoint.left,
|
|
3494
|
+
y1: currentPoint.top,
|
|
3495
|
+
x2: prevPoint.left,
|
|
3496
|
+
y2: prevPoint.top
|
|
3497
|
+
});
|
|
3498
|
+
}
|
|
3434
3499
|
}
|
|
3435
3500
|
};
|
|
3436
3501
|
|
|
@@ -3439,7 +3504,7 @@ var rightClickNodeConnect = [{
|
|
|
3439
3504
|
}
|
|
3440
3505
|
},
|
|
3441
3506
|
// 检查批量新增拖动过程中是否存在漏点的情况
|
|
3442
|
-
checkPoints: function checkPoints(point) {
|
|
3507
|
+
checkPoints: function checkPoints(point, isRight) {
|
|
3443
3508
|
var _this$addPointList2,
|
|
3444
3509
|
_this16 = this;
|
|
3445
3510
|
|
|
@@ -3447,7 +3512,7 @@ var rightClickNodeConnect = [{
|
|
|
3447
3512
|
originTop = point.originTop,
|
|
3448
3513
|
left = point.left,
|
|
3449
3514
|
polylineTypeId = point.polylineTypeId;
|
|
3450
|
-
var PointLens = Math.floor((left - originLeft) / this.spaceWidth);
|
|
3515
|
+
var PointLens = Math.floor(Math.abs(left - originLeft) / this.spaceWidth);
|
|
3451
3516
|
|
|
3452
3517
|
if (PointLens > 1 && ((_this$addPointList2 = this.addPointList) === null || _this$addPointList2 === void 0 ? void 0 : _this$addPointList2.length) <= PointLens) {
|
|
3453
3518
|
var position = this.polyline[polylineTypeId].position;
|
|
@@ -3455,22 +3520,30 @@ var rightClickNodeConnect = [{
|
|
|
3455
3520
|
for (var k = 0; k <= PointLens; k++) {
|
|
3456
3521
|
if (k > 0) {
|
|
3457
3522
|
(function () {
|
|
3458
|
-
var
|
|
3523
|
+
var spaceWidth = _this16.spaceWidth * k;
|
|
3524
|
+
var curLeft = isRight ? originLeft + spaceWidth : originLeft - spaceWidth; // 判断this.addPointList中的left是否包含curLeft,不包含就说明是漏了
|
|
3459
3525
|
|
|
3460
3526
|
var hasPoint = _this16.addPointList.some(function (p) {
|
|
3461
3527
|
return nearlyEqual(p.left, curLeft);
|
|
3462
|
-
});
|
|
3463
|
-
|
|
3528
|
+
});
|
|
3464
3529
|
|
|
3465
3530
|
if (!hasPoint) {
|
|
3466
3531
|
var index;
|
|
3467
3532
|
|
|
3468
3533
|
var pointObj = _this16.addPointList.find(function (v, i) {
|
|
3469
|
-
if (
|
|
3470
|
-
|
|
3471
|
-
|
|
3534
|
+
if (isRight) {
|
|
3535
|
+
if (v.left > curLeft) {
|
|
3536
|
+
index = i;
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
return v.left > curLeft;
|
|
3540
|
+
} else {
|
|
3541
|
+
if (v.left < curLeft) {
|
|
3542
|
+
index = i;
|
|
3543
|
+
}
|
|
3472
3544
|
|
|
3473
|
-
|
|
3545
|
+
return v.left < curLeft;
|
|
3546
|
+
}
|
|
3474
3547
|
});
|
|
3475
3548
|
|
|
3476
3549
|
if (pointObj) {
|
|
@@ -3479,7 +3552,7 @@ var rightClickNodeConnect = [{
|
|
|
3479
3552
|
left: originLeft,
|
|
3480
3553
|
top: originTop
|
|
3481
3554
|
};
|
|
3482
|
-
var len = ~~((pointObj.left -
|
|
3555
|
+
var len = ~~(Math.abs(pointObj.left - curLeft) / _this16.spaceWidth) + 1;
|
|
3483
3556
|
var spaceHeight = (pointObj.top - prePoint.top) / len;
|
|
3484
3557
|
cloneObj.top = prePoint.top + spaceHeight;
|
|
3485
3558
|
cloneObj.value.time = _this16.getXValue(curLeft);
|
|
@@ -3489,7 +3562,7 @@ var rightClickNodeConnect = [{
|
|
|
3489
3562
|
|
|
3490
3563
|
_this16.addPointList.splice(index, 0, cloneObj);
|
|
3491
3564
|
|
|
3492
|
-
_this16.clonePoint(point, [prePoint.left, prePoint.top, cloneObj.left, cloneObj.top]);
|
|
3565
|
+
_this16.clonePoint(point, [prePoint.left, prePoint.top, cloneObj.left, cloneObj.top], isRight);
|
|
3493
3566
|
}
|
|
3494
3567
|
}
|
|
3495
3568
|
})();
|
|
@@ -3498,7 +3571,27 @@ var rightClickNodeConnect = [{
|
|
|
3498
3571
|
} // 纠正节点上的line1的坐标
|
|
3499
3572
|
|
|
3500
3573
|
|
|
3501
|
-
this.setLinePatch(point);
|
|
3574
|
+
this.setLinePatch(point, isRight);
|
|
3575
|
+
},
|
|
3576
|
+
// 断点相连
|
|
3577
|
+
concatPoint: function concatPoint(point, target, left, top, n) {
|
|
3578
|
+
var targetLeft = target.left,
|
|
3579
|
+
targetTop = target.top;
|
|
3580
|
+
point.setCoords();
|
|
3581
|
+
|
|
3582
|
+
if (Math.abs(left - targetLeft) <= n && Math.abs(top - targetTop) <= n) {
|
|
3583
|
+
point.set({
|
|
3584
|
+
left: targetLeft,
|
|
3585
|
+
top: targetTop,
|
|
3586
|
+
scaleX: point.scale === 1 ? 2.5 : 0.1,
|
|
3587
|
+
scaleY: point.scale === 1 ? 2.5 : 0.1
|
|
3588
|
+
});
|
|
3589
|
+
} else {
|
|
3590
|
+
point.set({
|
|
3591
|
+
scaleX: point.scale,
|
|
3592
|
+
scaleY: point.scale
|
|
3593
|
+
});
|
|
3594
|
+
}
|
|
3502
3595
|
},
|
|
3503
3596
|
|
|
3504
3597
|
/**
|
|
@@ -3512,31 +3605,39 @@ var rightClickNodeConnect = [{
|
|
|
3512
3605
|
originLeft = point.originLeft,
|
|
3513
3606
|
originTop = point.originTop;
|
|
3514
3607
|
var currentLeft = left;
|
|
3608
|
+
var isRight = currentLeft > originLeft;
|
|
3515
3609
|
var startLength = this.addPointList.length;
|
|
3516
3610
|
var n = Math.min(this.spaceWidth / 2, 6); // 拖动范围,在需要增加节点的刻度左右吸入的范围值
|
|
3517
3611
|
|
|
3518
|
-
var residue = (left - originLeft) % this.spaceWidth;
|
|
3519
|
-
var condition = residue >
|
|
3520
|
-
var
|
|
3521
|
-
var
|
|
3612
|
+
var residue = Math.abs(left - originLeft) % this.spaceWidth;
|
|
3613
|
+
var condition = residue > this.spaceWidth - n || residue < n;
|
|
3614
|
+
var condition2 = left > originLeft + this.spaceWidth;
|
|
3615
|
+
var conditionHasLeftPoint = point.prevPoint && left < originLeft - this.spaceWidth;
|
|
3616
|
+
|
|
3617
|
+
if (condition && (condition2 || conditionHasLeftPoint)) {
|
|
3618
|
+
if (isRight) {
|
|
3619
|
+
if (residue > this.spaceWidth - n) left = left - residue + this.spaceWidth;
|
|
3620
|
+
if (residue < n) left = left - residue;
|
|
3621
|
+
} else {
|
|
3622
|
+
if (residue > this.spaceWidth - n) left = left + residue - this.spaceWidth;
|
|
3623
|
+
if (residue < n) left = left + residue;
|
|
3624
|
+
}
|
|
3522
3625
|
|
|
3523
|
-
if (condition && (conditionNoLine2 || conditionHasLine2)) {
|
|
3524
|
-
if (residue > this.spaceWidth - n) left = left - residue + this.spaceWidth;
|
|
3525
|
-
if (residue < n) left = left - residue;
|
|
3526
3626
|
point.set({
|
|
3527
3627
|
left: left
|
|
3528
|
-
}); //
|
|
3529
|
-
// 复制点和线
|
|
3628
|
+
}); // 复制点和线
|
|
3530
3629
|
|
|
3531
|
-
if (
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3630
|
+
if (condition2 || conditionHasLeftPoint) {
|
|
3631
|
+
var _point$line5, _point$line6, _point$line7, _point$line8;
|
|
3632
|
+
|
|
3633
|
+
setPointLineColor(point, 'transparent', isRight);
|
|
3634
|
+
var x1 = isRight ? ((_point$line5 = point.line1) === null || _point$line5 === void 0 ? void 0 : _point$line5.x1) || originLeft : ((_point$line6 = point.line2) === null || _point$line6 === void 0 ? void 0 : _point$line6.x2) || originLeft;
|
|
3635
|
+
var y1 = isRight ? ((_point$line7 = point.line1) === null || _point$line7 === void 0 ? void 0 : _point$line7.y1) || originTop : ((_point$line8 = point.line2) === null || _point$line8 === void 0 ? void 0 : _point$line8.y2) || originTop;
|
|
3636
|
+
this.addPointList.length == 0 && this.clonePoint(point, [x1, y1, originLeft, originTop]);
|
|
3535
3637
|
|
|
3536
3638
|
if (this.addPointList.every(function (v) {
|
|
3537
3639
|
return !nearlyEqual(v.left, left);
|
|
3538
3640
|
})) {
|
|
3539
|
-
// const points1 = i === 1 ? [originLeft, originTop] : point.prePoints;
|
|
3540
3641
|
var points1 = this.addPointList.length == 0 ? [originLeft, originTop] : point.prePoints;
|
|
3541
3642
|
|
|
3542
3643
|
if (points1) {
|
|
@@ -3559,33 +3660,12 @@ var rightClickNodeConnect = [{
|
|
|
3559
3660
|
return !nearlyEqual(o.left, left);
|
|
3560
3661
|
})) {
|
|
3561
3662
|
this.addPointList.push(data);
|
|
3562
|
-
this.clonePoint(point, [].concat(Object(toConsumableArray["a" /* default */])(points1), [left, top]));
|
|
3663
|
+
this.clonePoint(point, [].concat(Object(toConsumableArray["a" /* default */])(points1), [left, top]), isRight);
|
|
3563
3664
|
}
|
|
3564
3665
|
}
|
|
3565
3666
|
}
|
|
3566
3667
|
|
|
3567
|
-
this.checkPoints(point);
|
|
3568
|
-
}
|
|
3569
|
-
} // 断点相连
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
function concatPoint(target) {
|
|
3573
|
-
var targetLeft = target.left,
|
|
3574
|
-
targetTop = target.top;
|
|
3575
|
-
point.setCoords();
|
|
3576
|
-
|
|
3577
|
-
if (left >= targetLeft - n && left <= targetLeft + n && top <= targetTop + n && top >= targetTop - n) {
|
|
3578
|
-
point.set({
|
|
3579
|
-
left: targetLeft,
|
|
3580
|
-
top: targetTop,
|
|
3581
|
-
scaleX: point.scale === 1 ? 2.5 : 0.1,
|
|
3582
|
-
scaleY: point.scale === 1 ? 2.5 : 0.1
|
|
3583
|
-
});
|
|
3584
|
-
} else {
|
|
3585
|
-
point.set({
|
|
3586
|
-
scaleX: point.scale,
|
|
3587
|
-
scaleY: point.scale
|
|
3588
|
-
});
|
|
3668
|
+
this.checkPoints(point, isRight);
|
|
3589
3669
|
}
|
|
3590
3670
|
} // 检查是否显示重合连线放大节点的标识
|
|
3591
3671
|
|
|
@@ -3600,12 +3680,19 @@ var rightClickNodeConnect = [{
|
|
|
3600
3680
|
return v.bringToFront();
|
|
3601
3681
|
});
|
|
3602
3682
|
|
|
3603
|
-
if (point.nextPoint) {
|
|
3683
|
+
if (isRight && point.nextPoint || !isRight && point.prevPoint) {
|
|
3604
3684
|
var _polylineObj$pointLis;
|
|
3605
3685
|
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3686
|
+
if (isRight) {
|
|
3687
|
+
this._concatIndex = polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.findIndex(function (l) {
|
|
3688
|
+
return l + n > left && l > originLeft;
|
|
3689
|
+
});
|
|
3690
|
+
} else {
|
|
3691
|
+
var idx = polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.toReversed().findIndex(function (l) {
|
|
3692
|
+
return l - n < left && l < originLeft;
|
|
3693
|
+
});
|
|
3694
|
+
this._concatIndex = !~idx ? -1 : (polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.length) - 1 - idx;
|
|
3695
|
+
}
|
|
3609
3696
|
|
|
3610
3697
|
if (!~this._concatIndex) {
|
|
3611
3698
|
point.set({
|
|
@@ -3613,63 +3700,116 @@ var rightClickNodeConnect = [{
|
|
|
3613
3700
|
scaleY: point.scale
|
|
3614
3701
|
});
|
|
3615
3702
|
} else {
|
|
3616
|
-
concatPoint(polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointList[this._concatIndex]);
|
|
3703
|
+
this.concatPoint(point, polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointList[this._concatIndex], left, top, n);
|
|
3617
3704
|
}
|
|
3618
3705
|
|
|
3619
3706
|
this._concatPoint = (polylineObj === null || polylineObj === void 0 ? void 0 : (_polylineObj$pointLis = polylineObj.pointList) === null || _polylineObj$pointLis === void 0 ? void 0 : _polylineObj$pointLis[this._concatIndex]) || null; // 被覆盖节点置灰配置
|
|
3620
3707
|
|
|
3621
|
-
polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.forEach(function (
|
|
3708
|
+
polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointerList.forEach(function (l, i) {
|
|
3622
3709
|
var obj = polylineObj === null || polylineObj === void 0 ? void 0 : polylineObj.pointList[i];
|
|
3623
3710
|
|
|
3624
|
-
if (
|
|
3625
|
-
var _obj$line;
|
|
3711
|
+
if (isRight && l > originLeft && l < left || !isRight && l < originLeft && l > left) {
|
|
3712
|
+
var _obj$line, _obj$line2;
|
|
3626
3713
|
|
|
3627
3714
|
// 此处需要递归遍历group节点的所有子节点,然后更改其颜色
|
|
3628
3715
|
resetPointColor([obj], '#999');
|
|
3629
|
-
(_obj$line = obj.line2) === null || _obj$line === void 0 ? void 0 : _obj$line.set({
|
|
3716
|
+
isRight && ((_obj$line = obj.line2) === null || _obj$line === void 0 ? void 0 : _obj$line.set({
|
|
3630
3717
|
stroke: '#999'
|
|
3631
|
-
});
|
|
3718
|
+
}));
|
|
3719
|
+
!isRight && ((_obj$line2 = obj.line1) === null || _obj$line2 === void 0 ? void 0 : _obj$line2.set({
|
|
3720
|
+
stroke: '#999'
|
|
3721
|
+
}));
|
|
3632
3722
|
} else {
|
|
3633
|
-
var _obj$
|
|
3723
|
+
var _obj$line3, _obj$line4;
|
|
3634
3724
|
|
|
3635
3725
|
var _color = obj.__attrs.lineAttr.stroke;
|
|
3636
3726
|
resetPointColor([obj], _color);
|
|
3637
|
-
(_obj$
|
|
3727
|
+
isRight && ((_obj$line3 = obj.line2) === null || _obj$line3 === void 0 ? void 0 : _obj$line3.set({
|
|
3638
3728
|
stroke: _color
|
|
3639
|
-
});
|
|
3729
|
+
}));
|
|
3730
|
+
!isRight && ((_obj$line4 = obj.line1) === null || _obj$line4 === void 0 ? void 0 : _obj$line4.set({
|
|
3731
|
+
stroke: _color
|
|
3732
|
+
}));
|
|
3640
3733
|
}
|
|
3641
3734
|
});
|
|
3642
3735
|
|
|
3643
|
-
if ((point.line1 || point.line2) && left
|
|
3644
|
-
setPointLineColor(point, color,
|
|
3736
|
+
if ((point.line1 || point.line2) && Math.abs(left - originLeft) < this.spaceWidth) {
|
|
3737
|
+
setPointLineColor(point, color, isRight);
|
|
3645
3738
|
} else {
|
|
3646
|
-
setPointLineColor(point, 'transparent',
|
|
3739
|
+
setPointLineColor(point, 'transparent', isRight);
|
|
3647
3740
|
}
|
|
3648
3741
|
} // 如果往回拖动则删除经过的已存在的节点
|
|
3649
3742
|
|
|
3650
3743
|
|
|
3651
|
-
if (startLength > 0
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3744
|
+
if (startLength > 0) {
|
|
3745
|
+
if (isRight) {
|
|
3746
|
+
this.removeLeftClonePoint(originLeft - this.spaceWidth);
|
|
3747
|
+
this.addPointList = this.addPointList.filter(function (v) {
|
|
3748
|
+
return v.left >= originLeft;
|
|
3749
|
+
});
|
|
3657
3750
|
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3751
|
+
if (this.addPointList.length > 0 && currentLeft <= this.addPointList[this.addPointList.length - 1].left) {
|
|
3752
|
+
this.removePolyline('increasePointBatch', left);
|
|
3753
|
+
this.addPointList = this.addPointList.filter(function (v) {
|
|
3754
|
+
return v.left < left;
|
|
3755
|
+
});
|
|
3756
|
+
var endLength = this.addPointList.length;
|
|
3662
3757
|
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3758
|
+
if (endLength === 0) {
|
|
3759
|
+
setPointLineColor(point, color, isRight);
|
|
3760
|
+
this.removePolyline('increasePointBatch', originLeft);
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
if (endLength > 0) {
|
|
3764
|
+
point.set({
|
|
3765
|
+
prePoints: [this.addPointList[endLength - 1].left, this.addPointList[endLength - 1].top]
|
|
3766
|
+
});
|
|
3767
|
+
}
|
|
3768
|
+
}
|
|
3769
|
+
} else {
|
|
3770
|
+
this.removePolyline('increasePointBatch', originLeft + this.spaceWidth);
|
|
3771
|
+
this.addPointList = this.addPointList.filter(function (v) {
|
|
3772
|
+
return v.left <= originLeft;
|
|
3666
3773
|
});
|
|
3774
|
+
|
|
3775
|
+
if (this.addPointList.length > 0 && currentLeft >= this.addPointList[this.addPointList.length - 1].left) {
|
|
3776
|
+
this.removeLeftClonePoint(left);
|
|
3777
|
+
this.addPointList = this.addPointList.filter(function (v) {
|
|
3778
|
+
return v.left > left;
|
|
3779
|
+
});
|
|
3780
|
+
var _endLength = this.addPointList.length;
|
|
3781
|
+
|
|
3782
|
+
if (_endLength === 0) {
|
|
3783
|
+
setPointLineColor(point, color, isRight);
|
|
3784
|
+
this.removeLeftClonePoint(originLeft);
|
|
3785
|
+
}
|
|
3786
|
+
|
|
3787
|
+
if (_endLength > 0) {
|
|
3788
|
+
point.set({
|
|
3789
|
+
prePoints: [this.addPointList[_endLength - 1].left, this.addPointList[_endLength - 1].top]
|
|
3790
|
+
});
|
|
3791
|
+
}
|
|
3792
|
+
}
|
|
3667
3793
|
}
|
|
3668
3794
|
}
|
|
3669
3795
|
},
|
|
3670
|
-
|
|
3796
|
+
removeLeftClonePoint: function removeLeftClonePoint(left) {
|
|
3671
3797
|
var _this17 = this;
|
|
3672
3798
|
|
|
3799
|
+
this.addPointObjList.forEach(function (obj) {
|
|
3800
|
+
if (obj.left <= left) {
|
|
3801
|
+
_this17.canvas.remove(obj);
|
|
3802
|
+
|
|
3803
|
+
obj.line2 && _this17.canvas.remove(obj.line2);
|
|
3804
|
+
}
|
|
3805
|
+
});
|
|
3806
|
+
this.addPointObjList = this.addPointObjList.filter(function (obj) {
|
|
3807
|
+
return obj.left > left;
|
|
3808
|
+
});
|
|
3809
|
+
},
|
|
3810
|
+
clonePoint: function clonePoint(point, points, isRight) {
|
|
3811
|
+
var _this18 = this;
|
|
3812
|
+
|
|
3673
3813
|
var lineIndex = point.lineIndex,
|
|
3674
3814
|
polylineIndex = point.polylineIndex,
|
|
3675
3815
|
lineAttr = point.lineAttr,
|
|
@@ -3690,7 +3830,7 @@ var rightClickNodeConnect = [{
|
|
|
3690
3830
|
clonedObj.hasControls = clonedObj.hasBorders = false;
|
|
3691
3831
|
point.prePoints = [point.left, point.top];
|
|
3692
3832
|
|
|
3693
|
-
var line =
|
|
3833
|
+
var line = _this18.drawLine(Object(toConsumableArray["a" /* default */])(points), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
3694
3834
|
evented: false,
|
|
3695
3835
|
selectable: false
|
|
3696
3836
|
}, currentLineAttr), {}, {
|
|
@@ -3699,15 +3839,19 @@ var rightClickNodeConnect = [{
|
|
|
3699
3839
|
lineIndex: lineIndex
|
|
3700
3840
|
}));
|
|
3701
3841
|
|
|
3702
|
-
|
|
3842
|
+
if (isRight) {
|
|
3843
|
+
clonedObj.line1 = line;
|
|
3844
|
+
} else {
|
|
3845
|
+
clonedObj.line2 = line;
|
|
3846
|
+
}
|
|
3703
3847
|
|
|
3704
|
-
|
|
3848
|
+
_this18.canvas.add(clonedObj);
|
|
3705
3849
|
|
|
3706
|
-
|
|
3850
|
+
_this18.canvas.sendBackwards(line);
|
|
3707
3851
|
|
|
3708
3852
|
clonedObj.bringForward();
|
|
3709
3853
|
|
|
3710
|
-
|
|
3854
|
+
_this18.addPointObjList.push(clonedObj);
|
|
3711
3855
|
});
|
|
3712
3856
|
},
|
|
3713
3857
|
getValue: function getValue(point) {
|
|
@@ -3822,7 +3966,7 @@ var rightClickNodeConnect = [{
|
|
|
3822
3966
|
},
|
|
3823
3967
|
// 打开右键菜单
|
|
3824
3968
|
openRightModal: function openRightModal() {
|
|
3825
|
-
var
|
|
3969
|
+
var _this19 = this;
|
|
3826
3970
|
|
|
3827
3971
|
if (this.timeRangeData.enabled) return;
|
|
3828
3972
|
var _this$activeEvent$e = this.activeEvent.e,
|
|
@@ -3838,10 +3982,10 @@ var rightClickNodeConnect = [{
|
|
|
3838
3982
|
var target = this.activeEvent.target;
|
|
3839
3983
|
var id = (target === null || target === void 0 ? void 0 : target.id) || '';
|
|
3840
3984
|
this.$nextTick(function () {
|
|
3841
|
-
var operable =
|
|
3985
|
+
var operable = _this19.propItems.operable;
|
|
3842
3986
|
|
|
3843
3987
|
if (id && id.includes('_polylinePoint_')) {
|
|
3844
|
-
|
|
3988
|
+
_this19._currentPoint = target;
|
|
3845
3989
|
var nodeConnect = [];
|
|
3846
3990
|
|
|
3847
3991
|
if (operable.connect) {
|
|
@@ -3858,30 +4002,53 @@ var rightClickNodeConnect = [{
|
|
|
3858
4002
|
}
|
|
3859
4003
|
}
|
|
3860
4004
|
|
|
3861
|
-
|
|
3862
|
-
|
|
4005
|
+
_this19.rightClickNode = Object.freeze(rightClickNode.slice(0, 1).concat(nodeConnect).concat(rightClickNode.slice(-1)));
|
|
4006
|
+
_this19.isRightVisible = true;
|
|
3863
4007
|
} else if (!id) {
|
|
3864
|
-
|
|
3865
|
-
|
|
4008
|
+
_this19._currentPoint = null;
|
|
4009
|
+
_this19.rightClickNode = rightClickNode.slice(0, 1);
|
|
3866
4010
|
['set', 'detail'].forEach(function (key) {
|
|
3867
4011
|
if (operable[key]) {
|
|
3868
4012
|
var item = rightClickNode.find(function (node) {
|
|
3869
4013
|
return node.type === key;
|
|
3870
4014
|
});
|
|
3871
4015
|
|
|
3872
|
-
|
|
4016
|
+
_this19.rightClickNode.push(item);
|
|
3873
4017
|
}
|
|
3874
4018
|
});
|
|
3875
|
-
|
|
4019
|
+
|
|
4020
|
+
_this19.addExtraMenu();
|
|
4021
|
+
|
|
4022
|
+
_this19.isRightVisible = true;
|
|
3876
4023
|
}
|
|
3877
4024
|
});
|
|
3878
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
|
+
},
|
|
3879
4044
|
// 关闭右键菜单,打开添加节点弹窗表单
|
|
3880
|
-
handleRightClick: function handleRightClick(
|
|
4045
|
+
handleRightClick: function handleRightClick(_ref7) {
|
|
3881
4046
|
var _this$_currentPoint;
|
|
3882
4047
|
|
|
3883
|
-
var type =
|
|
3884
|
-
name =
|
|
4048
|
+
var type = _ref7.type,
|
|
4049
|
+
name = _ref7.name,
|
|
4050
|
+
extra = _ref7.extra,
|
|
4051
|
+
origin = _ref7.origin;
|
|
3885
4052
|
this.isRightVisible = false;
|
|
3886
4053
|
var _this$_active = this._active,
|
|
3887
4054
|
left = _this$_active.left,
|
|
@@ -3891,6 +4058,17 @@ var rightClickNodeConnect = [{
|
|
|
3891
4058
|
top: top
|
|
3892
4059
|
});
|
|
3893
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
|
+
|
|
3894
4072
|
if (type == 'add') {
|
|
3895
4073
|
if (name.includes('左')) {
|
|
3896
4074
|
data.range = {
|
|
@@ -3939,16 +4117,16 @@ var rightClickNodeConnect = [{
|
|
|
3939
4117
|
// 将当条线段以及点层级置顶
|
|
3940
4118
|
// 线段不能先置顶,会挡住其他线段上的点
|
|
3941
4119
|
pointToFront: function pointToFront(point) {
|
|
3942
|
-
var
|
|
4120
|
+
var _this21 = this;
|
|
3943
4121
|
|
|
3944
4122
|
this.canvas.forEachObject(function (obj) {
|
|
3945
|
-
if (
|
|
3946
|
-
|
|
4123
|
+
if (_this21.isOnePolyLine(obj, point.polylineTypeId, point.polylineIndex)) {
|
|
4124
|
+
_this21.canvas.bringToFront(obj);
|
|
3947
4125
|
}
|
|
3948
4126
|
});
|
|
3949
4127
|
},
|
|
3950
4128
|
removePolyline: function removePolyline(id, left, position, polylineIndex) {
|
|
3951
|
-
var
|
|
4129
|
+
var _this22 = this;
|
|
3952
4130
|
|
|
3953
4131
|
// 根据id或者idClone删除
|
|
3954
4132
|
if (id) {
|
|
@@ -3957,9 +4135,9 @@ var rightClickNodeConnect = [{
|
|
|
3957
4135
|
if (pointId === 'idClone') {
|
|
3958
4136
|
this.addPointObjList.forEach(function (obj) {
|
|
3959
4137
|
if (obj.left >= left) {
|
|
3960
|
-
|
|
4138
|
+
_this22.canvas.remove(obj);
|
|
3961
4139
|
|
|
3962
|
-
obj.line1 &&
|
|
4140
|
+
obj.line1 && _this22.canvas.remove(obj.line1);
|
|
3963
4141
|
}
|
|
3964
4142
|
});
|
|
3965
4143
|
this.addPointObjList = this.addPointObjList.filter(function (obj) {
|
|
@@ -3973,9 +4151,9 @@ var rightClickNodeConnect = [{
|
|
|
3973
4151
|
if (point && point.length > 0) {
|
|
3974
4152
|
point.forEach(function (v) {
|
|
3975
4153
|
if (!left) {
|
|
3976
|
-
|
|
4154
|
+
_this22.canvas.remove(v);
|
|
3977
4155
|
|
|
3978
|
-
v.line1 &&
|
|
4156
|
+
v.line1 && _this22.canvas.remove(v.line1);
|
|
3979
4157
|
}
|
|
3980
4158
|
});
|
|
3981
4159
|
}
|
|
@@ -3990,12 +4168,12 @@ var rightClickNodeConnect = [{
|
|
|
3990
4168
|
return v.position === position;
|
|
3991
4169
|
});
|
|
3992
4170
|
this.canvas.forEachObject(function (obj) {
|
|
3993
|
-
if (
|
|
3994
|
-
obj.text &&
|
|
3995
|
-
obj.line1 &&
|
|
3996
|
-
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);
|
|
3997
4175
|
|
|
3998
|
-
|
|
4176
|
+
_this22.canvas.remove(obj);
|
|
3999
4177
|
}
|
|
4000
4178
|
});
|
|
4001
4179
|
return;
|
|
@@ -4004,9 +4182,9 @@ var rightClickNodeConnect = [{
|
|
|
4004
4182
|
|
|
4005
4183
|
this.canvas.forEachObject(function (obj) {
|
|
4006
4184
|
if (obj.id && /_polyline(Point|Line)_/.test(obj.id) && !obj.id.includes('isTitle')) {
|
|
4007
|
-
obj.text &&
|
|
4185
|
+
obj.text && _this22.canvas.remove(obj.text);
|
|
4008
4186
|
|
|
4009
|
-
|
|
4187
|
+
_this22.canvas.remove(obj);
|
|
4010
4188
|
}
|
|
4011
4189
|
});
|
|
4012
4190
|
},
|
|
@@ -4017,7 +4195,7 @@ var rightClickNodeConnect = [{
|
|
|
4017
4195
|
}
|
|
4018
4196
|
},
|
|
4019
4197
|
repaintPolyline: function repaintPolyline(position, dadaIndex) {
|
|
4020
|
-
var
|
|
4198
|
+
var _this23 = this;
|
|
4021
4199
|
|
|
4022
4200
|
if (arguments.length < 2) {
|
|
4023
4201
|
if (this.polyline.length) {
|
|
@@ -4027,7 +4205,7 @@ var rightClickNodeConnect = [{
|
|
|
4027
4205
|
this.polylinePointList = [];
|
|
4028
4206
|
this.flickerablePoints = [];
|
|
4029
4207
|
this.polyline.forEach(function (polylineType, polylineTypeId) {
|
|
4030
|
-
|
|
4208
|
+
_this23.createPolyline(polylineType, polylineTypeId);
|
|
4031
4209
|
});
|
|
4032
4210
|
this.removeTitle();
|
|
4033
4211
|
this.drawPolylineTitle();
|
|
@@ -4057,8 +4235,8 @@ var rightClickNodeConnect = [{
|
|
|
4057
4235
|
|
|
4058
4236
|
var FabricPolylines_component = Object(componentNormalizer["a" /* default */])(
|
|
4059
4237
|
fabric_chart_FabricPolylinesvue_type_script_lang_js_,
|
|
4060
|
-
|
|
4061
|
-
|
|
4238
|
+
FabricPolylinesvue_type_template_id_66d08862_render,
|
|
4239
|
+
FabricPolylinesvue_type_template_id_66d08862_staticRenderFns,
|
|
4062
4240
|
false,
|
|
4063
4241
|
null,
|
|
4064
4242
|
null,
|
|
@@ -4164,7 +4342,7 @@ var FabricGrid_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4164
4342
|
)
|
|
4165
4343
|
|
|
4166
4344
|
/* 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":"
|
|
4345
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6cf3475e-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&
|
|
4168
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)}
|
|
4169
4347
|
var FabricTextGroupvue_type_template_id_adfb5518_staticRenderFns = []
|
|
4170
4348
|
|
|
@@ -5877,14 +6055,14 @@ var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
|
|
|
5877
6055
|
)
|
|
5878
6056
|
|
|
5879
6057
|
/* harmony default export */ var FabricTextGroup = (FabricTextGroup_component.exports);
|
|
5880
|
-
// 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":"6cf3475e-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&
|
|
5881
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()}
|
|
5882
6060
|
var FabricScaleValuevue_type_template_id_68258044_staticRenderFns = []
|
|
5883
6061
|
|
|
5884
6062
|
|
|
5885
6063
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
|
|
5886
6064
|
|
|
5887
|
-
// 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":"6cf3475e-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&
|
|
5888
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)}
|
|
5889
6067
|
var TimeScaleValuevue_type_template_id_0aa2f038_scoped_true_staticRenderFns = []
|
|
5890
6068
|
|
|
@@ -6268,7 +6446,7 @@ var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6268
6446
|
)
|
|
6269
6447
|
|
|
6270
6448
|
/* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
|
|
6271
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
6449
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6cf3475e-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&
|
|
6272
6450
|
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)}
|
|
6273
6451
|
var FabricLinesvue_type_template_id_74aef744_staticRenderFns = []
|
|
6274
6452
|
|
|
@@ -7262,7 +7440,6 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7262
7440
|
|
|
7263
7441
|
|
|
7264
7442
|
|
|
7265
|
-
|
|
7266
7443
|
/* harmony default export */ var FabricChartvue_type_script_lang_js_ = (Object(create["a" /* default */])({
|
|
7267
7444
|
name: 'fabric-chart',
|
|
7268
7445
|
props: {
|
|
@@ -7280,6 +7457,16 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7280
7457
|
FabricLines: FabricLines
|
|
7281
7458
|
},
|
|
7282
7459
|
computed: {
|
|
7460
|
+
fabric: function fabric() {
|
|
7461
|
+
var _this$$refs$canvasEle;
|
|
7462
|
+
|
|
7463
|
+
return (_this$$refs$canvasEle = this.$refs.canvasEle) === null || _this$$refs$canvasEle === void 0 ? void 0 : _this$$refs$canvasEle.fabric;
|
|
7464
|
+
},
|
|
7465
|
+
canvas: function canvas() {
|
|
7466
|
+
var _this$$refs$canvasEle2;
|
|
7467
|
+
|
|
7468
|
+
return (_this$$refs$canvasEle2 = this.$refs.canvasEle) === null || _this$$refs$canvasEle2 === void 0 ? void 0 : _this$$refs$canvasEle2.canvas;
|
|
7469
|
+
},
|
|
7283
7470
|
polylines: function polylines() {
|
|
7284
7471
|
var _this$templateData, _this$templateData$ri, _this$templateData$ri2, _this$templateData$ri3, _this$templateData2, _this$templateData2$l, _this$templateData2$l2, _this$templateData2$l3;
|
|
7285
7472
|
|
|
@@ -7333,6 +7520,12 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7333
7520
|
this.canvasWidth = "".concat(this.templateData.canvasWidth, "px") || false;
|
|
7334
7521
|
},
|
|
7335
7522
|
methods: {
|
|
7523
|
+
computedX: function computedX() {
|
|
7524
|
+
var _this$$refs$polylines, _this$$refs$polylines2;
|
|
7525
|
+
|
|
7526
|
+
if (!((_this$$refs$polylines = this.$refs.polylines) !== null && _this$$refs$polylines !== void 0 && _this$$refs$polylines.computedX)) return;
|
|
7527
|
+
return (_this$$refs$polylines2 = this.$refs.polylines) === null || _this$$refs$polylines2 === void 0 ? void 0 : _this$$refs$polylines2.computedX.apply(_this$$refs$polylines2, arguments);
|
|
7528
|
+
},
|
|
7336
7529
|
setTimeRange: function setTimeRange(enabled) {
|
|
7337
7530
|
this.$refs.polylines.timeRangeData.enabled = enabled;
|
|
7338
7531
|
},
|
|
@@ -7357,13 +7550,13 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7357
7550
|
},
|
|
7358
7551
|
repaintPolyline: function repaintPolyline(position, dadaIndex) {
|
|
7359
7552
|
if (arguments.length > 1) {
|
|
7360
|
-
var _this$$refs$
|
|
7553
|
+
var _this$$refs$polylines3;
|
|
7361
7554
|
|
|
7362
|
-
(_this$$refs$
|
|
7555
|
+
(_this$$refs$polylines3 = this.$refs.polylines) === null || _this$$refs$polylines3 === void 0 ? void 0 : _this$$refs$polylines3.repaintPolyline(position, dadaIndex);
|
|
7363
7556
|
} else {
|
|
7364
|
-
var _this$$refs$
|
|
7557
|
+
var _this$$refs$polylines4;
|
|
7365
7558
|
|
|
7366
|
-
(_this$$refs$
|
|
7559
|
+
(_this$$refs$polylines4 = this.$refs.polylines) === null || _this$$refs$polylines4 === void 0 ? void 0 : _this$$refs$polylines4.repaintPolyline();
|
|
7367
7560
|
}
|
|
7368
7561
|
},
|
|
7369
7562
|
repaintLine: function repaintLine() {
|
|
@@ -7400,8 +7593,8 @@ var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7400
7593
|
}));
|
|
7401
7594
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=script&lang=js&
|
|
7402
7595
|
/* harmony default export */ var src_FabricChartvue_type_script_lang_js_ = (FabricChartvue_type_script_lang_js_);
|
|
7403
|
-
// EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=
|
|
7404
|
-
var
|
|
7596
|
+
// EXTERNAL MODULE: ./packages/fabric-chart/src/FabricChart.vue?vue&type=style&index=0&id=4f0a8f90&lang=less&scoped=true&
|
|
7597
|
+
var FabricChartvue_type_style_index_0_id_4f0a8f90_lang_less_scoped_true_ = __webpack_require__("8699");
|
|
7405
7598
|
|
|
7406
7599
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/FabricChart.vue
|
|
7407
7600
|
|
|
@@ -7418,7 +7611,7 @@ var FabricChart_component = Object(componentNormalizer["a" /* default */])(
|
|
|
7418
7611
|
staticRenderFns,
|
|
7419
7612
|
false,
|
|
7420
7613
|
null,
|
|
7421
|
-
"
|
|
7614
|
+
"4f0a8f90",
|
|
7422
7615
|
null
|
|
7423
7616
|
|
|
7424
7617
|
)
|
|
@@ -8375,6 +8568,13 @@ module.exports = function (a, b) {
|
|
|
8375
8568
|
};
|
|
8376
8569
|
|
|
8377
8570
|
|
|
8571
|
+
/***/ }),
|
|
8572
|
+
|
|
8573
|
+
/***/ "46bf":
|
|
8574
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8575
|
+
|
|
8576
|
+
// extracted by mini-css-extract-plugin
|
|
8577
|
+
|
|
8378
8578
|
/***/ }),
|
|
8379
8579
|
|
|
8380
8580
|
/***/ "4840":
|
|
@@ -8945,17 +9145,6 @@ module.exports = [
|
|
|
8945
9145
|
];
|
|
8946
9146
|
|
|
8947
9147
|
|
|
8948
|
-
/***/ }),
|
|
8949
|
-
|
|
8950
|
-
/***/ "7aca":
|
|
8951
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8952
|
-
|
|
8953
|
-
"use strict";
|
|
8954
|
-
/* 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");
|
|
8955
|
-
/* 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__);
|
|
8956
|
-
/* unused harmony reexport * */
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
9148
|
/***/ }),
|
|
8960
9149
|
|
|
8961
9150
|
/***/ "7b0b":
|
|
@@ -9215,6 +9404,17 @@ module.exports = function (it) {
|
|
|
9215
9404
|
};
|
|
9216
9405
|
|
|
9217
9406
|
|
|
9407
|
+
/***/ }),
|
|
9408
|
+
|
|
9409
|
+
/***/ "8699":
|
|
9410
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9411
|
+
|
|
9412
|
+
"use strict";
|
|
9413
|
+
/* 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");
|
|
9414
|
+
/* 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__);
|
|
9415
|
+
/* unused harmony reexport * */
|
|
9416
|
+
|
|
9417
|
+
|
|
9218
9418
|
/***/ }),
|
|
9219
9419
|
|
|
9220
9420
|
/***/ "8925":
|
|
@@ -10728,13 +10928,6 @@ module.exports.f = function (C) {
|
|
|
10728
10928
|
};
|
|
10729
10929
|
|
|
10730
10930
|
|
|
10731
|
-
/***/ }),
|
|
10732
|
-
|
|
10733
|
-
/***/ "f074":
|
|
10734
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
10735
|
-
|
|
10736
|
-
// extracted by mini-css-extract-plugin
|
|
10737
|
-
|
|
10738
10931
|
/***/ }),
|
|
10739
10932
|
|
|
10740
10933
|
/***/ "f3b8":
|