ecinc-cloud-wappaio 9.7.11 → 9.7.13
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/lib/ecwappaio.common.js +619 -254
- package/lib/ecwappaio.umd.js +619 -254
- package/lib/ecwappaio.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecwappaio.umd.js
CHANGED
|
@@ -33214,7 +33214,7 @@ var TextRecognition_PDFInjector = PDFInjector;
|
|
|
33214
33214
|
|
|
33215
33215
|
/***/ }),
|
|
33216
33216
|
|
|
33217
|
-
/***/
|
|
33217
|
+
/***/ 82088:
|
|
33218
33218
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
33219
33219
|
|
|
33220
33220
|
"use strict";
|
|
@@ -39272,8 +39272,8 @@ var HandleIdea_component = (0,componentNormalizer/* default */.A)(
|
|
|
39272
39272
|
)
|
|
39273
39273
|
|
|
39274
39274
|
/* harmony default export */ var HandleIdea = (HandleIdea_component.exports);
|
|
39275
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/IdeaInputBox.vue?vue&type=template&id=
|
|
39276
|
-
var
|
|
39275
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/IdeaInputBox.vue?vue&type=template&id=2509c9c6&scoped=true
|
|
39276
|
+
var IdeaInputBoxvue_type_template_id_2509c9c6_scoped_true_render = function render() {
|
|
39277
39277
|
var _vm = this,
|
|
39278
39278
|
_c = _vm._self._c;
|
|
39279
39279
|
return _vm.submitHandle ? _c('div', {
|
|
@@ -39669,7 +39669,8 @@ var IdeaInputBoxvue_type_template_id_3f654826_scoped_true_render = function rend
|
|
|
39669
39669
|
"append-to-body": true,
|
|
39670
39670
|
"toolbar-btns": _vm.busiformBtns,
|
|
39671
39671
|
"on-basic-form-before-open": _vm.onBasicFormBeforeOpen,
|
|
39672
|
-
"on-basic-form-submited": _vm.onBasicFormSubmited
|
|
39672
|
+
"on-basic-form-submited": _vm.onBasicFormSubmited,
|
|
39673
|
+
"on-basic-form-closed": _vm.onBasicFormClosed
|
|
39673
39674
|
},
|
|
39674
39675
|
scopedSlots: _vm._u([{
|
|
39675
39676
|
key: "default",
|
|
@@ -40045,7 +40046,7 @@ var IdeaInputBoxvue_type_template_id_3f654826_scoped_true_render = function rend
|
|
|
40045
40046
|
}
|
|
40046
40047
|
}, [_vm._v("确 定")])], 1)], 2)], 2) : _vm._e();
|
|
40047
40048
|
};
|
|
40048
|
-
var
|
|
40049
|
+
var IdeaInputBoxvue_type_template_id_2509c9c6_scoped_true_staticRenderFns = [];
|
|
40049
40050
|
|
|
40050
40051
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/IdeaInputBox.vue?vue&type=script&lang=js
|
|
40051
40052
|
function IdeaInputBoxvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return IdeaInputBoxvue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, IdeaInputBoxvue_type_script_lang_js_typeof(o); }
|
|
@@ -40380,6 +40381,10 @@ var IdeaInputBoxvue_type_script_lang_js_moment = __webpack_require__(95093);
|
|
|
40380
40381
|
this.formVo = null;
|
|
40381
40382
|
this.commonIdeaList.unshift($scope.vo.commonIdea);
|
|
40382
40383
|
},
|
|
40384
|
+
onBasicFormClosed: function onBasicFormClosed($scope, vo, action) {
|
|
40385
|
+
this.formTitle = '';
|
|
40386
|
+
this.formVo = null;
|
|
40387
|
+
},
|
|
40383
40388
|
onIdeaInputboxClick: function onIdeaInputboxClick(ideaLabel) {
|
|
40384
40389
|
var _this7 = this;
|
|
40385
40390
|
if (this.inputboxStyle !== 1 && this.tnIdeaPosition !== 2) return;
|
|
@@ -40568,9 +40573,9 @@ var IdeaInputBoxvue_type_script_lang_js_moment = __webpack_require__(95093);
|
|
|
40568
40573
|
});
|
|
40569
40574
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/IdeaInputBox.vue?vue&type=script&lang=js
|
|
40570
40575
|
/* harmony default export */ var src_IdeaInputBoxvue_type_script_lang_js = (IdeaInputBoxvue_type_script_lang_js);
|
|
40571
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/IdeaInputBox.vue?vue&type=style&index=0&id=
|
|
40572
|
-
var
|
|
40573
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/IdeaInputBox.vue?vue&type=style&index=0&id=
|
|
40576
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/Wflowform/src/IdeaInputBox.vue?vue&type=style&index=0&id=2509c9c6&prod&scoped=true&lang=scss
|
|
40577
|
+
var IdeaInputBoxvue_type_style_index_0_id_2509c9c6_prod_scoped_true_lang_scss = __webpack_require__(19456);
|
|
40578
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/IdeaInputBox.vue?vue&type=style&index=0&id=2509c9c6&prod&scoped=true&lang=scss
|
|
40574
40579
|
|
|
40575
40580
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/IdeaInputBox.vue
|
|
40576
40581
|
|
|
@@ -40583,11 +40588,11 @@ var IdeaInputBoxvue_type_style_index_0_id_3f654826_prod_scoped_true_lang_scss =
|
|
|
40583
40588
|
|
|
40584
40589
|
var IdeaInputBox_component = (0,componentNormalizer/* default */.A)(
|
|
40585
40590
|
src_IdeaInputBoxvue_type_script_lang_js,
|
|
40586
|
-
|
|
40587
|
-
|
|
40591
|
+
IdeaInputBoxvue_type_template_id_2509c9c6_scoped_true_render,
|
|
40592
|
+
IdeaInputBoxvue_type_template_id_2509c9c6_scoped_true_staticRenderFns,
|
|
40588
40593
|
false,
|
|
40589
40594
|
null,
|
|
40590
|
-
"
|
|
40595
|
+
"2509c9c6",
|
|
40591
40596
|
null
|
|
40592
40597
|
|
|
40593
40598
|
)
|
|
@@ -116377,7 +116382,7 @@ var UdmGenerator_UserModuleForm = UserModuleForm;
|
|
|
116377
116382
|
|
|
116378
116383
|
/***/ }),
|
|
116379
116384
|
|
|
116380
|
-
/***/
|
|
116385
|
+
/***/ 94714:
|
|
116381
116386
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
116382
116387
|
|
|
116383
116388
|
"use strict";
|
|
@@ -117044,8 +117049,8 @@ var SideBar_component = (0,componentNormalizer/* default */.A)(
|
|
|
117044
117049
|
)
|
|
117045
117050
|
|
|
117046
117051
|
/* harmony default export */ var SideBar = (SideBar_component.exports);
|
|
117047
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=template&id=
|
|
117048
|
-
var
|
|
117052
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=template&id=0ebbd5f8&scoped=true
|
|
117053
|
+
var Centervue_type_template_id_0ebbd5f8_scoped_true_render = function render() {
|
|
117049
117054
|
var _vm = this,
|
|
117050
117055
|
_c = _vm._self._c;
|
|
117051
117056
|
return _c('el-scrollbar', {
|
|
@@ -117164,7 +117169,7 @@ var Centervue_type_template_id_46bbfc1a_scoped_true_render = function render() {
|
|
|
117164
117169
|
}
|
|
117165
117170
|
})], 1)], 1)]);
|
|
117166
117171
|
};
|
|
117167
|
-
var
|
|
117172
|
+
var Centervue_type_template_id_0ebbd5f8_scoped_true_staticRenderFns = [];
|
|
117168
117173
|
|
|
117169
117174
|
// EXTERNAL MODULE: ./node_modules/jquery/dist/jquery.js
|
|
117170
117175
|
var jquery = __webpack_require__(74692);
|
|
@@ -119290,8 +119295,16 @@ var _require22 = __webpack_require__(61289),
|
|
|
119290
119295
|
wflow.process.description = desc;
|
|
119291
119296
|
wflow.process.chartData.descDiv = {};
|
|
119292
119297
|
wflow.process.chartData.descDiv.height = descDiv.clientHeight;
|
|
119293
|
-
|
|
119294
|
-
|
|
119298
|
+
if (descDiv.style.display !== 'none') {
|
|
119299
|
+
wflow.process.chartData.descDiv.left = descDiv.offsetLeft;
|
|
119300
|
+
wflow.process.chartData.descDiv.top = descDiv.offsetTop;
|
|
119301
|
+
} else {
|
|
119302
|
+
// 元素隐藏时offsetLeft/offsetTop为0,从关闭时存储的data属性中读取位置
|
|
119303
|
+
var savedLeft = descDiv.dataset.left;
|
|
119304
|
+
var savedTop = descDiv.dataset.top;
|
|
119305
|
+
if (savedLeft !== undefined) wflow.process.chartData.descDiv.left = parseInt(savedLeft);
|
|
119306
|
+
if (savedTop !== undefined) wflow.process.chartData.descDiv.top = parseInt(savedTop);
|
|
119307
|
+
}
|
|
119295
119308
|
} else {
|
|
119296
119309
|
wflow.process.description = '';
|
|
119297
119310
|
delete wflow.process.chartData.descDiv;
|
|
@@ -119794,13 +119807,13 @@ var _require22 = __webpack_require__(61289),
|
|
|
119794
119807
|
});
|
|
119795
119808
|
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=script&lang=js
|
|
119796
119809
|
/* harmony default export */ var components_Centervue_type_script_lang_js = (Centervue_type_script_lang_js);
|
|
119797
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=0&id=
|
|
119798
|
-
var
|
|
119799
|
-
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=0&id=
|
|
119810
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=0&id=0ebbd5f8&prod&scoped=true&lang=scss
|
|
119811
|
+
var Centervue_type_style_index_0_id_0ebbd5f8_prod_scoped_true_lang_scss = __webpack_require__(42096);
|
|
119812
|
+
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=0&id=0ebbd5f8&prod&scoped=true&lang=scss
|
|
119800
119813
|
|
|
119801
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=1&id=
|
|
119802
|
-
var
|
|
119803
|
-
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=1&id=
|
|
119814
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=1&id=0ebbd5f8&prod&lang=scss
|
|
119815
|
+
var Centervue_type_style_index_1_id_0ebbd5f8_prod_lang_scss = __webpack_require__(93012);
|
|
119816
|
+
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue?vue&type=style&index=1&id=0ebbd5f8&prod&lang=scss
|
|
119804
119817
|
|
|
119805
119818
|
;// CONCATENATED MODULE: ./packages/ecwplus/WorkflowDesigner/src/components/Center/index.vue
|
|
119806
119819
|
|
|
@@ -119814,11 +119827,11 @@ var Centervue_type_style_index_1_id_46bbfc1a_prod_lang_scss = __webpack_require_
|
|
|
119814
119827
|
|
|
119815
119828
|
var Center_component = (0,componentNormalizer/* default */.A)(
|
|
119816
119829
|
components_Centervue_type_script_lang_js,
|
|
119817
|
-
|
|
119818
|
-
|
|
119830
|
+
Centervue_type_template_id_0ebbd5f8_scoped_true_render,
|
|
119831
|
+
Centervue_type_template_id_0ebbd5f8_scoped_true_staticRenderFns,
|
|
119819
119832
|
false,
|
|
119820
119833
|
null,
|
|
119821
|
-
"
|
|
119834
|
+
"0ebbd5f8",
|
|
119822
119835
|
null
|
|
119823
119836
|
|
|
119824
119837
|
)
|
|
@@ -138430,24 +138443,36 @@ function getPathXyData(connection, thisConnect) {
|
|
|
138430
138443
|
// 从svg path中获取同轴异向的两端stub,4种情况全处理
|
|
138431
138444
|
if (firstEndpoints[3] === 1 && secondEndpoints[3] === -1) {
|
|
138432
138445
|
// 下出上入
|
|
138433
|
-
|
|
138434
|
-
|
|
138435
|
-
|
|
138446
|
+
if (!thisConnect || !thisConnect.pathMaxY) {
|
|
138447
|
+
var lineData = paths[0].split(' ');
|
|
138448
|
+
pathMaxY = parseInt(lineData[5]) - parseInt(lineData[2]);
|
|
138449
|
+
pathMinY = -pathMaxY; // 同轴异向,两端 stub 相等
|
|
138450
|
+
}
|
|
138436
138451
|
} else if (firstEndpoints[3] === -1 && secondEndpoints[3] === 1) {
|
|
138437
138452
|
// 上出下入
|
|
138438
|
-
|
|
138439
|
-
|
|
138440
|
-
|
|
138453
|
+
if (!thisConnect || !thisConnect.pathMinY) {
|
|
138454
|
+
var _lineData = paths[0].split(' ');
|
|
138455
|
+
pathMinY = parseInt(_lineData[2]) - parseInt(_lineData[5]);
|
|
138456
|
+
pathMaxY = -pathMinY; // 同轴异向,两端 stub 相等
|
|
138457
|
+
}
|
|
138441
138458
|
} else if (firstEndpoints[2] === 1 && secondEndpoints[2] === -1) {
|
|
138442
138459
|
// 右出左入
|
|
138443
|
-
|
|
138444
|
-
|
|
138445
|
-
|
|
138460
|
+
if (!thisConnect || !thisConnect.pathMaxX) {
|
|
138461
|
+
var _lineData2 = paths[0].split(' ');
|
|
138462
|
+
var arcIdx = _lineData2.indexOf('A');
|
|
138463
|
+
var lastPtX = arcIdx > 0 ? parseInt(_lineData2[arcIdx - 2]) : parseInt(_lineData2[4]);
|
|
138464
|
+
pathMaxX = Math.abs(lastPtX - parseInt(_lineData2[1]));
|
|
138465
|
+
pathMinX = -pathMaxX;
|
|
138466
|
+
}
|
|
138446
138467
|
} else if (firstEndpoints[2] === -1 && secondEndpoints[2] === 1) {
|
|
138447
138468
|
// 左出右入
|
|
138448
|
-
|
|
138449
|
-
|
|
138450
|
-
|
|
138469
|
+
if (!thisConnect || !thisConnect.pathMinX) {
|
|
138470
|
+
var _lineData3 = paths[0].split(' ');
|
|
138471
|
+
var arcIdx = _lineData3.indexOf('A');
|
|
138472
|
+
var lastPtX = arcIdx > 0 ? parseInt(_lineData3[arcIdx - 2]) : parseInt(_lineData3[4]);
|
|
138473
|
+
pathMinX = -Math.abs(lastPtX - parseInt(_lineData3[1]));
|
|
138474
|
+
pathMaxX = -pathMinX;
|
|
138475
|
+
}
|
|
138451
138476
|
}
|
|
138452
138477
|
} else if (linesCount >= 4) {
|
|
138453
138478
|
if (firstEndpoints[2] === 1) {
|
|
@@ -138513,6 +138538,29 @@ function getPathXyData(connection, thisConnect) {
|
|
|
138513
138538
|
}
|
|
138514
138539
|
}
|
|
138515
138540
|
}
|
|
138541
|
+
// 自环线已有thisConnect存储值时优先使用,避免SVG提取的+5偏移在session间累积
|
|
138542
|
+
var isSelfLoop = thisConnect && thisConnect.PageSourceId === thisConnect.PageTargetId;
|
|
138543
|
+
if (isSelfLoop) {
|
|
138544
|
+
// 同轴自环配对的path值相等,cross-axis则各自独立
|
|
138545
|
+
var crossAxis = firstEndpoints[2] !== 0 && secondEndpoints[3] !== 0 || firstEndpoints[3] !== 0 && secondEndpoints[2] !== 0;
|
|
138546
|
+
if (!crossAxis) {
|
|
138547
|
+
if (thisConnect.pathMinX || thisConnect.pathMaxX) {
|
|
138548
|
+
var storedX = thisConnect.pathMinX || thisConnect.pathMaxX;
|
|
138549
|
+
pathMinX = storedX;
|
|
138550
|
+
pathMaxX = storedX;
|
|
138551
|
+
}
|
|
138552
|
+
if (thisConnect.pathMinY || thisConnect.pathMaxY) {
|
|
138553
|
+
var storedY = thisConnect.pathMinY || thisConnect.pathMaxY;
|
|
138554
|
+
pathMinY = storedY;
|
|
138555
|
+
pathMaxY = storedY;
|
|
138556
|
+
}
|
|
138557
|
+
} else {
|
|
138558
|
+
if (thisConnect.pathMinX) pathMinX = thisConnect.pathMinX;
|
|
138559
|
+
if (thisConnect.pathMaxX) pathMaxX = thisConnect.pathMaxX;
|
|
138560
|
+
if (thisConnect.pathMinY) pathMinY = thisConnect.pathMinY;
|
|
138561
|
+
if (thisConnect.pathMaxY) pathMaxY = thisConnect.pathMaxY;
|
|
138562
|
+
}
|
|
138563
|
+
}
|
|
138516
138564
|
return {
|
|
138517
138565
|
linesCount: linesCount,
|
|
138518
138566
|
pathMinX: pathMinX,
|
|
@@ -138523,6 +138571,38 @@ function getPathXyData(connection, thisConnect) {
|
|
|
138523
138571
|
secondEndpoints: secondEndpoints
|
|
138524
138572
|
};
|
|
138525
138573
|
}
|
|
138574
|
+
|
|
138575
|
+
// ========== 三段线拖拽统一处理器 ==========
|
|
138576
|
+
// 处理同轴同向/同轴异向/自环三种子分支的stub和midpoint计算
|
|
138577
|
+
function handle3SegDrag(isNeg, absDist, minStub, isSameNode, isSameSide, totalDist, thisConnect, perpMin, perpMax) {
|
|
138578
|
+
var stub,
|
|
138579
|
+
dragMidpoint = 0.5,
|
|
138580
|
+
isOpposite = false,
|
|
138581
|
+
distance = isNeg ? -absDist : absDist;
|
|
138582
|
+
if (isSameNode) {
|
|
138583
|
+
var os = Math.abs(thisConnect.pathMinY) || Math.abs(thisConnect.pathMaxY);
|
|
138584
|
+
if (!os) os = Math.max(Math.max(Math.abs(perpMin), Math.abs(perpMax)) - 5, minStub);
|
|
138585
|
+
stub = [absDist, Math.max(os, minStub)];
|
|
138586
|
+
} else if (!isSameSide) {
|
|
138587
|
+
// 同轴异向:alwaysRespectStubs=false + 小stub + 动态midpoint控制折线位置
|
|
138588
|
+
var actMin = 30;
|
|
138589
|
+
var td = totalDist || 21;
|
|
138590
|
+
absDist = Math.min(Math.max(absDist, actMin), td - actMin);
|
|
138591
|
+
distance = isNeg ? -absDist : absDist;
|
|
138592
|
+
isOpposite = true;
|
|
138593
|
+
stub = [10, 10];
|
|
138594
|
+
var effDist = td - 20;
|
|
138595
|
+
dragMidpoint = effDist > 0 ? (absDist - 10) / effDist : 0.5;
|
|
138596
|
+
} else {
|
|
138597
|
+
stub = [absDist, minStub];
|
|
138598
|
+
}
|
|
138599
|
+
return {
|
|
138600
|
+
stub: stub,
|
|
138601
|
+
dragMidpoint: dragMidpoint,
|
|
138602
|
+
isOpposite: isOpposite,
|
|
138603
|
+
distance: distance
|
|
138604
|
+
};
|
|
138605
|
+
}
|
|
138526
138606
|
function dragLine(_this, connection, thisConnect) {
|
|
138527
138607
|
var distance = 0;
|
|
138528
138608
|
|
|
@@ -138530,12 +138610,19 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138530
138610
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).bind('mousedown', function (ev) {
|
|
138531
138611
|
var paths = connection.connector.getPathData().split(',');
|
|
138532
138612
|
var lineCount = paths.length;
|
|
138533
|
-
|
|
138613
|
+
// 同轴异向检测(提前到lineCount检查之前,以便重定向lineCount=1的路径)
|
|
138614
|
+
var firstEndpoints = connection.endpoints[0].anchor.orientation;
|
|
138615
|
+
var secondEndpoints = connection.endpoints[1].anchor.orientation;
|
|
138616
|
+
var isSameNode = thisConnect.PageSourceId === thisConnect.PageTargetId;
|
|
138617
|
+
var isSameAxisDiffDir = !isSameNode && (firstEndpoints[0] !== 0 && secondEndpoints[0] !== 0 && firstEndpoints[0] !== secondEndpoints[0] || firstEndpoints[1] !== 0 && secondEndpoints[1] !== 0 && firstEndpoints[1] !== secondEndpoints[1]);
|
|
138618
|
+
if (lineCount < 2 && !isSameAxisDiffDir) {
|
|
138534
138619
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).unbind('mousedown');
|
|
138535
138620
|
return;
|
|
138536
138621
|
}
|
|
138537
138622
|
_this.dragLineObj.disX = ev.pageX;
|
|
138538
138623
|
_this.dragLineObj.disY = ev.pageY;
|
|
138624
|
+
_this.dragLineObj.initCW = undefined;
|
|
138625
|
+
_this.dragLineObj.initCH = undefined;
|
|
138539
138626
|
var xyData = getPathXyData(connection, thisConnect);
|
|
138540
138627
|
var initialMaxX = xyData.pathMaxX; // 获取路径的初始stub值
|
|
138541
138628
|
var initialMaxY = xyData.pathMaxY; // 获取路径的初始stub值
|
|
@@ -138545,9 +138632,10 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138545
138632
|
var canvasMarginLeft = 210; // 绘图区左边距
|
|
138546
138633
|
var canvasMarginTop = 112; // 绘图区右边距
|
|
138547
138634
|
|
|
138548
|
-
|
|
138549
|
-
|
|
138550
|
-
|
|
138635
|
+
// 同轴异向3段线强制使用3段拖拽逻辑(不论逗号分隔后的段数)
|
|
138636
|
+
if (isSameAxisDiffDir) {
|
|
138637
|
+
lineCount = 3;
|
|
138638
|
+
}
|
|
138551
138639
|
|
|
138552
138640
|
// 检测是否可拖拉,仅位于路径canvas四边的路径可拖拉,射出、射入路径不可拖拉
|
|
138553
138641
|
if (firstEndpoints[0] !== 0) {
|
|
@@ -138608,98 +138696,148 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138608
138696
|
var x = ev.pageX;
|
|
138609
138697
|
var y = ev.pageY;
|
|
138610
138698
|
var stub = [0, 0];
|
|
138611
|
-
|
|
138699
|
+
var _dragMidpoint = 0.5;
|
|
138700
|
+
var handledIn4, hSameSide, vSameSide; // 显式声明,避免var提升的隐式行为
|
|
138701
|
+
|
|
138702
|
+
// 跨轴自环线独立拖拽处理器(完全绕过lineCount逻辑)
|
|
138703
|
+
var isCrossAxisSL = isSameNode && (firstEndpoints[0] !== 0 && secondEndpoints[1] !== 0 || firstEndpoints[1] !== 0 && secondEndpoints[0] !== 0);
|
|
138704
|
+
if (isCrossAxisSL) {
|
|
138705
|
+
var incDx = x - (_this.dragLineObj.prevX || _this.dragLineObj.disX);
|
|
138706
|
+
var incDy = y - (_this.dragLineObj.prevY || _this.dragLineObj.disY);
|
|
138707
|
+
_this.dragLineObj.prevX = x;
|
|
138708
|
+
_this.dragLineObj.prevY = y;
|
|
138709
|
+
var hDirSL = firstEndpoints[0] || secondEndpoints[0];
|
|
138710
|
+
var vDirSL = firstEndpoints[1] || secondEndpoints[1];
|
|
138711
|
+
var minSL = 30;
|
|
138712
|
+
var curHSL = Math.abs(thisConnect.pathMinX) || Math.abs(thisConnect.pathMaxX);
|
|
138713
|
+
var curVSL = Math.abs(thisConnect.pathMinY) || Math.abs(thisConnect.pathMaxY);
|
|
138714
|
+
if (!curHSL) {
|
|
138715
|
+
if (hDirSL === -1) curHSL = Math.max(Math.abs(initialMinX) - 5, minSL);else if (hDirSL === 1) curHSL = Math.max(Math.abs(initialMaxX) - 5, minSL);else curHSL = minSL;
|
|
138716
|
+
}
|
|
138717
|
+
if (!curVSL) {
|
|
138718
|
+
if (vDirSL === -1) curVSL = Math.max(Math.abs(initialMinY) - 5, minSL);else if (vDirSL === 1) curVSL = Math.max(Math.abs(initialMaxY) - 5, minSL);else curVSL = minSL;
|
|
138719
|
+
}
|
|
138720
|
+
var newHSL = curHSL,
|
|
138721
|
+
newVSL = curVSL;
|
|
138722
|
+
var hOutSL = hDirSL === 1 ? incDx > 0 : incDx < 0;
|
|
138723
|
+
var vOutSL = vDirSL === 1 ? incDy > 0 : incDy < 0;
|
|
138724
|
+
if (Math.abs(incDx) >= Math.abs(incDy)) {
|
|
138725
|
+
if (hOutSL) newHSL = curHSL + Math.abs(incDx);else newHSL = Math.max(curHSL - Math.abs(incDx), minSL);
|
|
138726
|
+
} else {
|
|
138727
|
+
if (vOutSL) newVSL = curVSL + Math.abs(incDy);else newVSL = Math.max(curVSL - Math.abs(incDy), minSL);
|
|
138728
|
+
}
|
|
138729
|
+
var srcVSL = firstEndpoints[0] === 0;
|
|
138730
|
+
stub = srcVSL ? [Math.max(newVSL, minSL), Math.max(newHSL, minSL)] : [Math.max(newHSL, minSL), Math.max(newVSL, minSL)];
|
|
138731
|
+
if (hDirSL === -1) {
|
|
138732
|
+
thisConnect.pathMinX = -Math.max(newHSL, minSL);
|
|
138733
|
+
thisConnect.pathMaxX = -Math.max(newHSL, minSL);
|
|
138734
|
+
} else if (hDirSL === 1) {
|
|
138735
|
+
thisConnect.pathMinX = Math.max(newHSL, minSL);
|
|
138736
|
+
thisConnect.pathMaxX = Math.max(newHSL, minSL);
|
|
138737
|
+
}
|
|
138738
|
+
if (vDirSL === -1) {
|
|
138739
|
+
thisConnect.pathMinY = -Math.max(newVSL, minSL);
|
|
138740
|
+
thisConnect.pathMaxY = -Math.max(newVSL, minSL);
|
|
138741
|
+
} else if (vDirSL === 1) {
|
|
138742
|
+
thisConnect.pathMinY = Math.max(newVSL, minSL);
|
|
138743
|
+
thisConnect.pathMaxY = Math.max(newVSL, minSL);
|
|
138744
|
+
}
|
|
138745
|
+
} else if (lineCount <= 3) {
|
|
138612
138746
|
var isSameSide = firstEndpoints[0] !== 0 && firstEndpoints[0] === secondEndpoints[0] || firstEndpoints[1] !== 0 && firstEndpoints[1] === secondEndpoints[1];
|
|
138613
138747
|
var minStub = isSameSide || isSameNode ? 50 : 10;
|
|
138748
|
+
// 同轴异向时,从节点CSS位置计算真实锚点间距(避免存储的等值stub导致totalDist锁死)
|
|
138749
|
+
if (isSameAxisDiffDir) {
|
|
138750
|
+
var srcEl = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + thisConnect.PageSourceId);
|
|
138751
|
+
var tgtEl = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + thisConnect.PageTargetId);
|
|
138752
|
+
if (firstEndpoints[0] !== 0) {
|
|
138753
|
+
// 水平方向:totalDist = 目标锚点X - 源锚点X
|
|
138754
|
+
var totalDistH = Math.abs(parseInt(tgtEl.css('left')) + tgtEl.outerWidth() * parseFloat(connection.endpoints[1].anchor.x) - (parseInt(srcEl.css('left')) + srcEl.outerWidth() * parseFloat(connection.endpoints[0].anchor.x)));
|
|
138755
|
+
}
|
|
138756
|
+
if (firstEndpoints[1] !== 0) {
|
|
138757
|
+
// 垂直方向:totalDist = 目标锚点Y - 源锚点Y
|
|
138758
|
+
var totalDistV = Math.abs(parseInt(tgtEl.css('top')) + tgtEl.outerHeight() * parseFloat(connection.endpoints[1].anchor.y) - (parseInt(srcEl.css('top')) + srcEl.outerHeight() * parseFloat(connection.endpoints[0].anchor.y)));
|
|
138759
|
+
}
|
|
138760
|
+
}
|
|
138614
138761
|
if (firstEndpoints[0] === -1) {
|
|
138615
138762
|
// 水平射线,左出
|
|
138616
138763
|
distance = -(Math.abs(initialMinX) - (x - _this.dragLineObj.disX));
|
|
138617
|
-
if (distance > -minStub)
|
|
138618
|
-
distance = -minStub;
|
|
138619
|
-
}
|
|
138764
|
+
if (distance > -minStub) distance = -minStub;
|
|
138620
138765
|
thisConnect.pathMinX = distance;
|
|
138621
|
-
|
|
138622
|
-
|
|
138623
|
-
|
|
138624
|
-
|
|
138766
|
+
var r = handle3SegDrag(true, -distance, minStub, isSameNode, isSameSide, totalDistH, thisConnect, initialMinY, initialMaxY);
|
|
138767
|
+
stub = r.stub;
|
|
138768
|
+
_dragMidpoint = r.dragMidpoint;
|
|
138769
|
+
if (r.isOpposite) {
|
|
138770
|
+
distance = r.distance;
|
|
138771
|
+
thisConnect.pathMinX = distance;
|
|
138625
138772
|
thisConnect.pathMaxX = -distance;
|
|
138626
|
-
stub = [-distance, -distance];
|
|
138627
|
-
} else {
|
|
138628
|
-
stub = [-distance, minStub];
|
|
138629
138773
|
}
|
|
138630
138774
|
} else if (firstEndpoints[0] === 1) {
|
|
138631
138775
|
// 水平射线,右出
|
|
138632
138776
|
distance = Math.abs(initialMaxX) + (x - _this.dragLineObj.disX);
|
|
138633
|
-
if (distance < minStub)
|
|
138634
|
-
distance = minStub;
|
|
138635
|
-
}
|
|
138777
|
+
if (distance < minStub) distance = minStub;
|
|
138636
138778
|
thisConnect.pathMaxX = distance;
|
|
138637
|
-
|
|
138638
|
-
|
|
138639
|
-
|
|
138640
|
-
|
|
138779
|
+
var r = handle3SegDrag(false, distance, minStub, isSameNode, isSameSide, totalDistH, thisConnect, initialMinY, initialMaxY);
|
|
138780
|
+
stub = r.stub;
|
|
138781
|
+
_dragMidpoint = r.dragMidpoint;
|
|
138782
|
+
if (r.isOpposite) {
|
|
138783
|
+
distance = r.distance;
|
|
138784
|
+
thisConnect.pathMaxX = distance;
|
|
138641
138785
|
thisConnect.pathMinX = -distance;
|
|
138642
|
-
stub = [distance, distance];
|
|
138643
|
-
} else {
|
|
138644
|
-
stub = [distance, minStub];
|
|
138645
138786
|
}
|
|
138646
138787
|
} else if (firstEndpoints[1] === -1) {
|
|
138647
138788
|
// 垂直射线,上出
|
|
138648
138789
|
distance = -(Math.abs(initialMinY) - (y - _this.dragLineObj.disY));
|
|
138649
|
-
if (distance > -minStub)
|
|
138650
|
-
distance = -minStub;
|
|
138651
|
-
}
|
|
138790
|
+
if (distance > -minStub) distance = -minStub;
|
|
138652
138791
|
thisConnect.pathMinY = distance;
|
|
138653
|
-
|
|
138654
|
-
|
|
138655
|
-
|
|
138656
|
-
|
|
138792
|
+
var r = handle3SegDrag(true, -distance, minStub, isSameNode, isSameSide, totalDistV, thisConnect, initialMinX, initialMaxX);
|
|
138793
|
+
stub = r.stub;
|
|
138794
|
+
_dragMidpoint = r.dragMidpoint;
|
|
138795
|
+
if (r.isOpposite) {
|
|
138796
|
+
distance = r.distance;
|
|
138797
|
+
thisConnect.pathMinY = distance;
|
|
138657
138798
|
thisConnect.pathMaxY = -distance;
|
|
138658
|
-
stub = [-distance, -distance];
|
|
138659
|
-
} else {
|
|
138660
|
-
stub = [-distance, minStub];
|
|
138661
138799
|
}
|
|
138662
138800
|
} else if (firstEndpoints[1] === 1) {
|
|
138663
138801
|
// 垂直射线,下出
|
|
138664
138802
|
distance = Math.abs(initialMaxY) + (y - _this.dragLineObj.disY);
|
|
138665
|
-
if (distance < minStub)
|
|
138666
|
-
distance = minStub;
|
|
138667
|
-
}
|
|
138803
|
+
if (distance < minStub) distance = minStub;
|
|
138668
138804
|
thisConnect.pathMaxY = distance;
|
|
138669
|
-
|
|
138670
|
-
|
|
138671
|
-
|
|
138672
|
-
|
|
138805
|
+
var r = handle3SegDrag(false, distance, minStub, isSameNode, isSameSide, totalDistV, thisConnect, initialMinX, initialMaxX);
|
|
138806
|
+
stub = r.stub;
|
|
138807
|
+
_dragMidpoint = r.dragMidpoint;
|
|
138808
|
+
if (r.isOpposite) {
|
|
138809
|
+
distance = r.distance;
|
|
138810
|
+
thisConnect.pathMaxY = distance;
|
|
138673
138811
|
thisConnect.pathMinY = -distance;
|
|
138674
|
-
stub = [distance, distance];
|
|
138675
|
-
} else {
|
|
138676
|
-
stub = [distance, minStub];
|
|
138677
138812
|
}
|
|
138678
138813
|
}
|
|
138679
138814
|
} else if (lineCount === 4) {
|
|
138815
|
+
var minStub4 = isSameNode ? 30 : 10;
|
|
138816
|
+
var handledIn4 = false;
|
|
138680
138817
|
if (firstEndpoints[0] === -1) {
|
|
138681
138818
|
// 左出
|
|
138682
138819
|
if (Math.abs(canvasMarginTop + canvasTop - _this.dragLineObj.disY) <= 10) {
|
|
138683
138820
|
// 顶部射入,靠近终点上下拖拉
|
|
138684
138821
|
distance = -(Math.abs(initialMinY) - (y - _this.dragLineObj.disY - scrollTop));
|
|
138685
|
-
if (distance > -
|
|
138686
|
-
distance = -
|
|
138822
|
+
if (distance > -minStub4) {
|
|
138823
|
+
distance = -minStub4;
|
|
138687
138824
|
}
|
|
138688
138825
|
thisConnect.pathMinY = distance;
|
|
138826
|
+
handledIn4 = true;
|
|
138689
138827
|
stub = [Math.abs(initialMinX), -distance];
|
|
138690
138828
|
} else if (Math.abs(canvasMarginTop + canvasTop + canvasHeight - _this.dragLineObj.disY - scrollTop) <= 10) {
|
|
138691
138829
|
// 底部射入,靠近终点上下拖拉
|
|
138692
138830
|
distance = Math.abs(initialMaxY) + (y - _this.dragLineObj.disY - scrollTop);
|
|
138693
|
-
if (distance <
|
|
138694
|
-
distance =
|
|
138831
|
+
if (distance < minStub4) {
|
|
138832
|
+
distance = minStub4;
|
|
138695
138833
|
}
|
|
138696
138834
|
thisConnect.pathMaxY = distance;
|
|
138697
138835
|
stub = [Math.abs(initialMinX), distance];
|
|
138698
138836
|
} else if (Math.abs(canvasMarginLeft + canvasLeft - _this.dragLineObj.disX) <= 10) {
|
|
138699
138837
|
// 顶部射入或底部射入,靠近起点左侧左右拖拉
|
|
138700
138838
|
distance = -(Math.abs(initialMinX) - (x - _this.dragLineObj.disX));
|
|
138701
|
-
if (distance > -
|
|
138702
|
-
distance = -
|
|
138839
|
+
if (distance > -minStub4) {
|
|
138840
|
+
distance = -minStub4;
|
|
138703
138841
|
}
|
|
138704
138842
|
thisConnect.pathMinX = distance;
|
|
138705
138843
|
stub = [-distance, Math.abs(secondEndpoints[1] === -1 ? initialMinY : initialMaxY)];
|
|
@@ -138709,26 +138847,29 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138709
138847
|
if (Math.abs(canvasMarginTop + canvasTop - _this.dragLineObj.disY) <= 10) {
|
|
138710
138848
|
// 顶部射入,靠近终点上下拖拉
|
|
138711
138849
|
distance = -(Math.abs(initialMinY) - (y - _this.dragLineObj.disY - scrollTop));
|
|
138712
|
-
if (distance > -
|
|
138713
|
-
distance = -
|
|
138850
|
+
if (distance > -minStub4) {
|
|
138851
|
+
distance = -minStub4;
|
|
138714
138852
|
}
|
|
138715
138853
|
thisConnect.pathMinY = distance;
|
|
138854
|
+
handledIn4 = true;
|
|
138716
138855
|
stub = [Math.abs(initialMaxX), -distance];
|
|
138717
138856
|
} else if (Math.abs(canvasMarginTop + canvasTop + canvasHeight - _this.dragLineObj.disY - scrollTop) <= 10) {
|
|
138718
138857
|
// 底部射入,靠近终点上下拖拉
|
|
138719
138858
|
distance = Math.abs(initialMaxY) + (y - _this.dragLineObj.disY - scrollTop);
|
|
138720
|
-
if (distance <
|
|
138721
|
-
distance =
|
|
138859
|
+
if (distance < minStub4) {
|
|
138860
|
+
distance = minStub4;
|
|
138722
138861
|
}
|
|
138723
138862
|
thisConnect.pathMaxY = distance;
|
|
138863
|
+
handledIn4 = true;
|
|
138724
138864
|
stub = [Math.abs(initialMaxX), distance];
|
|
138725
138865
|
} else if (Math.abs(canvasMarginLeft + canvasLeft + canvasWidth - _this.dragLineObj.disX) <= 10) {
|
|
138726
138866
|
// 顶部射入或底部射入,靠近起点右侧左右拖拉
|
|
138727
138867
|
distance = Math.abs(initialMaxX) + (x - _this.dragLineObj.disX);
|
|
138728
|
-
if (distance <
|
|
138729
|
-
distance =
|
|
138868
|
+
if (distance < minStub4) {
|
|
138869
|
+
distance = minStub4;
|
|
138730
138870
|
}
|
|
138731
138871
|
thisConnect.pathMaxX = distance;
|
|
138872
|
+
handledIn4 = true;
|
|
138732
138873
|
stub = [distance, Math.abs(secondEndpoints[1] === -1 ? initialMinY : initialMaxY)];
|
|
138733
138874
|
}
|
|
138734
138875
|
} else if (firstEndpoints[1] === 1) {
|
|
@@ -138736,26 +138877,29 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138736
138877
|
if (Math.abs(canvasMarginTop + canvasTop + canvasHeight - _this.dragLineObj.disY - scrollTop) <= 10) {
|
|
138737
138878
|
// 左侧射入或右侧射入,靠起点底部上下拖拉
|
|
138738
138879
|
distance = Math.abs(initialMaxY) + (y - _this.dragLineObj.disY);
|
|
138739
|
-
if (distance <
|
|
138740
|
-
distance =
|
|
138880
|
+
if (distance < minStub4) {
|
|
138881
|
+
distance = minStub4;
|
|
138741
138882
|
}
|
|
138742
138883
|
thisConnect.pathMaxY = distance;
|
|
138884
|
+
handledIn4 = true;
|
|
138743
138885
|
stub = [distance, Math.abs(secondEndpoints[0] === -1 ? initialMinX : initialMaxX)];
|
|
138744
138886
|
} else if (Math.abs(canvasMarginLeft + canvasLeft - _this.dragLineObj.disX) <= 10) {
|
|
138745
138887
|
// 左侧射入,靠近终点左侧拖左右拉
|
|
138746
138888
|
distance = -(Math.abs(initialMinX) - (x - _this.dragLineObj.disX));
|
|
138747
|
-
if (distance > -
|
|
138748
|
-
distance = -
|
|
138889
|
+
if (distance > -minStub4) {
|
|
138890
|
+
distance = -minStub4;
|
|
138749
138891
|
}
|
|
138750
138892
|
thisConnect.pathMinX = distance;
|
|
138893
|
+
handledIn4 = true;
|
|
138751
138894
|
stub = [Math.abs(initialMaxY), -distance];
|
|
138752
138895
|
} else if (Math.abs(canvasMarginLeft + canvasLeft + canvasWidth - _this.dragLineObj.disX) <= 10) {
|
|
138753
138896
|
// 右侧射入,靠近终点右侧拖左右拉
|
|
138754
138897
|
distance = Math.abs(initialMaxX) + (x - _this.dragLineObj.disX);
|
|
138755
|
-
if (distance <
|
|
138756
|
-
distance =
|
|
138898
|
+
if (distance < minStub4) {
|
|
138899
|
+
distance = minStub4;
|
|
138757
138900
|
}
|
|
138758
138901
|
thisConnect.pathMaxX = distance;
|
|
138902
|
+
handledIn4 = true;
|
|
138759
138903
|
stub = [Math.abs(initialMaxY), distance];
|
|
138760
138904
|
}
|
|
138761
138905
|
} else if (firstEndpoints[1] === -1) {
|
|
@@ -138763,30 +138907,65 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138763
138907
|
if (Math.abs(canvasMarginTop + canvasTop - _this.dragLineObj.disY) <= 10) {
|
|
138764
138908
|
// 左侧射入或右侧射入,靠起点顶部上下拖拉
|
|
138765
138909
|
distance = -(Math.abs(initialMinY) - (y - _this.dragLineObj.disY));
|
|
138766
|
-
if (distance > -
|
|
138767
|
-
distance = -
|
|
138910
|
+
if (distance > -minStub4) {
|
|
138911
|
+
distance = -minStub4;
|
|
138768
138912
|
}
|
|
138769
138913
|
thisConnect.pathMinY = distance;
|
|
138770
138914
|
stub = [-distance, Math.abs(secondEndpoints[0] === -1 ? initialMinX : initialMaxX)];
|
|
138771
138915
|
} else if (Math.abs(canvasMarginLeft + canvasLeft - _this.dragLineObj.disX) <= 10) {
|
|
138772
138916
|
// 左侧射入,靠近终点左侧拖左右拉
|
|
138773
138917
|
distance = -(Math.abs(initialMinX) - (x - _this.dragLineObj.disX));
|
|
138774
|
-
if (distance > -
|
|
138775
|
-
distance = -
|
|
138918
|
+
if (distance > -minStub4) {
|
|
138919
|
+
distance = -minStub4;
|
|
138776
138920
|
}
|
|
138777
138921
|
thisConnect.pathMinX = distance;
|
|
138922
|
+
handledIn4 = true;
|
|
138778
138923
|
stub = [Math.abs(initialMinY), -distance];
|
|
138779
138924
|
} else if (Math.abs(canvasMarginLeft + canvasLeft + canvasWidth - _this.dragLineObj.disX) <= 10) {
|
|
138780
138925
|
// 右侧射入,靠近终点右侧拖左右拉
|
|
138781
138926
|
distance = Math.abs(initialMaxX) + (x - _this.dragLineObj.disX);
|
|
138782
|
-
if (distance <
|
|
138783
|
-
distance =
|
|
138927
|
+
if (distance < minStub4) {
|
|
138928
|
+
distance = minStub4;
|
|
138784
138929
|
}
|
|
138785
138930
|
thisConnect.pathMaxX = distance;
|
|
138931
|
+
handledIn4 = true;
|
|
138786
138932
|
stub = [Math.abs(initialMinY), distance];
|
|
138787
138933
|
}
|
|
138788
138934
|
}
|
|
138935
|
+
// 跨轴自环线边检测不匹配时,直接用鼠标delta计算两轴stub
|
|
138936
|
+
// 注:firstEndpoints为2元素orientation数组[dx,dy],仅索引[0]/[1]有效
|
|
138937
|
+
if (isSameNode && !handledIn4) {
|
|
138938
|
+
var dx2 = x - _this.dragLineObj.disX;
|
|
138939
|
+
var dy2 = y - _this.dragLineObj.disY;
|
|
138940
|
+
var curH = firstEndpoints[0] !== 0 ? Math.max(Math.abs(firstEndpoints[0] === -1 ? initialMinX : initialMaxX) - 5, minStub4) : minStub4;
|
|
138941
|
+
var curV = firstEndpoints[1] !== 0 ? Math.max(Math.abs(firstEndpoints[1] === -1 ? initialMinY : initialMaxY) - 5, minStub4) : minStub4;
|
|
138942
|
+
var newH = curH,
|
|
138943
|
+
newV = curV;
|
|
138944
|
+
if (Math.abs(dx2) >= Math.abs(dy2)) {
|
|
138945
|
+
newH = dx2 < 0 ? curH + Math.abs(dx2) : Math.max(curH - dx2, minStub4);
|
|
138946
|
+
} else {
|
|
138947
|
+
newV = dy2 < 0 ? curV + Math.abs(dy2) : Math.max(curV - dy2, minStub4);
|
|
138948
|
+
}
|
|
138949
|
+
var srcV = firstEndpoints[0] === 0;
|
|
138950
|
+
stub = srcV ? [Math.max(newV, minStub4), Math.max(newH, minStub4)] : [Math.max(newH, minStub4), Math.max(newV, minStub4)];
|
|
138951
|
+
// path存储使用有效索引[0]/[1]判断锚点方向
|
|
138952
|
+
if (firstEndpoints[0] === -1 || secondEndpoints[0] === -1) {
|
|
138953
|
+
thisConnect.pathMinX = -Math.max(newH, minStub4);
|
|
138954
|
+
thisConnect.pathMaxX = -Math.max(newH, minStub4);
|
|
138955
|
+
} else if (firstEndpoints[0] === 1 || secondEndpoints[0] === 1) {
|
|
138956
|
+
thisConnect.pathMinX = Math.max(newH, minStub4);
|
|
138957
|
+
thisConnect.pathMaxX = Math.max(newH, minStub4);
|
|
138958
|
+
}
|
|
138959
|
+
if (firstEndpoints[1] === -1 || secondEndpoints[1] === -1) {
|
|
138960
|
+
thisConnect.pathMinY = -Math.max(newV, minStub4);
|
|
138961
|
+
thisConnect.pathMaxY = -Math.max(newV, minStub4);
|
|
138962
|
+
} else if (firstEndpoints[1] === 1 || secondEndpoints[1] === 1) {
|
|
138963
|
+
thisConnect.pathMinY = Math.max(newV, minStub4);
|
|
138964
|
+
thisConnect.pathMaxY = Math.max(newV, minStub4);
|
|
138965
|
+
}
|
|
138966
|
+
}
|
|
138789
138967
|
} else if (lineCount === 5) {
|
|
138968
|
+
var minStub5 = isSameNode ? 30 : 10;
|
|
138790
138969
|
if (firstEndpoints[0] !== 0) {
|
|
138791
138970
|
// 水平射线,左右拖拉
|
|
138792
138971
|
var hSameSide = firstEndpoints[0] === secondEndpoints[0];
|
|
@@ -138796,27 +138975,29 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138796
138975
|
if (firstEndpoints[0] === -1) {
|
|
138797
138976
|
// 水平射线,左出右入,靠近起点左侧拖拉
|
|
138798
138977
|
distance = -(Math.abs(initialMinX) - (x - _this.dragLineObj.disX));
|
|
138799
|
-
if (distance > -
|
|
138800
|
-
distance = -
|
|
138978
|
+
if (distance > -minStub5) {
|
|
138979
|
+
distance = -minStub5;
|
|
138801
138980
|
}
|
|
138802
138981
|
thisConnect.pathMinX = distance;
|
|
138803
138982
|
if (!hSameSide) {
|
|
138804
138983
|
thisConnect.pathMaxX = -distance;
|
|
138805
138984
|
stub = [-distance, -distance];
|
|
138806
138985
|
} else {
|
|
138986
|
+
handledIn4 = true;
|
|
138807
138987
|
stub = [-distance, Math.abs(initialMaxX)];
|
|
138808
138988
|
}
|
|
138809
138989
|
} else if (firstEndpoints[0] === 1) {
|
|
138810
138990
|
// 水平射线,右出左入,靠近终点左侧拖拉
|
|
138811
138991
|
distance = -(Math.abs(initialMinX) - (x - _this.dragLineObj.disX));
|
|
138812
|
-
if (distance > -
|
|
138813
|
-
distance = -
|
|
138992
|
+
if (distance > -minStub5) {
|
|
138993
|
+
distance = -minStub5;
|
|
138814
138994
|
}
|
|
138815
138995
|
thisConnect.pathMinX = distance;
|
|
138816
138996
|
if (!hSameSide) {
|
|
138817
138997
|
thisConnect.pathMaxX = -distance;
|
|
138818
138998
|
stub = [-distance, -distance];
|
|
138819
138999
|
} else {
|
|
139000
|
+
handledIn4 = true;
|
|
138820
139001
|
stub = [Math.abs(initialMaxX), -distance];
|
|
138821
139002
|
}
|
|
138822
139003
|
}
|
|
@@ -138826,8 +139007,8 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138826
139007
|
if (firstEndpoints[0] === -1) {
|
|
138827
139008
|
// 水平射线,左出右入,靠近终点右侧拖拉
|
|
138828
139009
|
distance = Math.abs(initialMaxX) + (x - _this.dragLineObj.disX);
|
|
138829
|
-
if (distance <
|
|
138830
|
-
distance =
|
|
139010
|
+
if (distance < minStub5) {
|
|
139011
|
+
distance = minStub5;
|
|
138831
139012
|
}
|
|
138832
139013
|
thisConnect.pathMaxX = distance;
|
|
138833
139014
|
if (!hSameSide) {
|
|
@@ -138839,8 +139020,8 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138839
139020
|
} else if (firstEndpoints[0] === 1) {
|
|
138840
139021
|
// 水平射线,右出左入,靠近起点右侧拖拉
|
|
138841
139022
|
distance = Math.abs(initialMaxX) + (x - _this.dragLineObj.disX);
|
|
138842
|
-
if (distance <
|
|
138843
|
-
distance =
|
|
139023
|
+
if (distance < minStub5) {
|
|
139024
|
+
distance = minStub5;
|
|
138844
139025
|
}
|
|
138845
139026
|
thisConnect.pathMaxX = distance;
|
|
138846
139027
|
if (!hSameSide) {
|
|
@@ -138860,27 +139041,29 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138860
139041
|
if (firstEndpoints[1] === -1) {
|
|
138861
139042
|
// 垂直射线,上出下入,靠近起点上下拖拉
|
|
138862
139043
|
distance = -(Math.abs(initialMinY) - (y - _this.dragLineObj.disY));
|
|
138863
|
-
if (distance > -
|
|
138864
|
-
distance = -
|
|
139044
|
+
if (distance > -minStub5) {
|
|
139045
|
+
distance = -minStub5;
|
|
138865
139046
|
}
|
|
138866
139047
|
thisConnect.pathMinY = distance;
|
|
138867
139048
|
if (!vSameSide) {
|
|
138868
139049
|
thisConnect.pathMaxY = -distance;
|
|
138869
139050
|
stub = [-distance, -distance];
|
|
138870
139051
|
} else {
|
|
139052
|
+
handledIn4 = true;
|
|
138871
139053
|
stub = [-distance, Math.abs(initialMaxY)];
|
|
138872
139054
|
}
|
|
138873
139055
|
} else if (firstEndpoints[1] === 1) {
|
|
138874
139056
|
// 垂直射线,下出上入,靠近终点上下拖拉
|
|
138875
139057
|
distance = -(Math.abs(initialMaxY) - (y - _this.dragLineObj.disY));
|
|
138876
|
-
if (distance > -
|
|
138877
|
-
distance = -
|
|
139058
|
+
if (distance > -minStub5) {
|
|
139059
|
+
distance = -minStub5;
|
|
138878
139060
|
}
|
|
138879
139061
|
thisConnect.pathMinY = distance;
|
|
138880
139062
|
if (!vSameSide) {
|
|
138881
139063
|
thisConnect.pathMaxY = -distance;
|
|
138882
139064
|
stub = [-distance, -distance];
|
|
138883
139065
|
} else {
|
|
139066
|
+
handledIn4 = true;
|
|
138884
139067
|
stub = [Math.abs(initialMaxY), -distance];
|
|
138885
139068
|
}
|
|
138886
139069
|
}
|
|
@@ -138890,21 +139073,22 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138890
139073
|
if (firstEndpoints[1] === -1) {
|
|
138891
139074
|
// 垂直射线,上出下入,靠近终点上下拖拉
|
|
138892
139075
|
distance = Math.abs(initialMaxY) + (y - _this.dragLineObj.disY);
|
|
138893
|
-
if (distance <
|
|
138894
|
-
distance =
|
|
139076
|
+
if (distance < minStub5) {
|
|
139077
|
+
distance = minStub5;
|
|
138895
139078
|
}
|
|
138896
139079
|
thisConnect.pathMaxY = distance;
|
|
138897
139080
|
if (!vSameSide) {
|
|
138898
139081
|
thisConnect.pathMinY = -distance;
|
|
138899
139082
|
stub = [distance, distance];
|
|
138900
139083
|
} else {
|
|
139084
|
+
handledIn4 = true;
|
|
138901
139085
|
stub = [Math.abs(initialMinY), distance];
|
|
138902
139086
|
}
|
|
138903
139087
|
} else if (firstEndpoints[1] === 1) {
|
|
138904
139088
|
// 垂直射线,下出下入,靠起点上下拖拉
|
|
138905
139089
|
distance = Math.abs(initialMaxY) + (y - _this.dragLineObj.disY);
|
|
138906
|
-
if (distance <
|
|
138907
|
-
distance =
|
|
139090
|
+
if (distance < minStub5) {
|
|
139091
|
+
distance = minStub5;
|
|
138908
139092
|
}
|
|
138909
139093
|
thisConnect.pathMaxY = distance;
|
|
138910
139094
|
if (!vSameSide) {
|
|
@@ -138916,37 +139100,215 @@ function dragLine(_this, connection, thisConnect) {
|
|
|
138916
139100
|
}
|
|
138917
139101
|
}
|
|
138918
139102
|
}
|
|
139103
|
+
} else {
|
|
139104
|
+
// lineCount >= 6(跨轴自环线等4段线以上),按轴独立拖拽,水平/垂直互不影响
|
|
139105
|
+
// 注:firstEndpoints为2元素orientation数组[dx,dy],仅索引[0]/[1]有效
|
|
139106
|
+
if (isSameNode) {
|
|
139107
|
+
var minStub6 = 30;
|
|
139108
|
+
var dx1 = x - _this.dragLineObj.disX;
|
|
139109
|
+
var dy1 = y - _this.dragLineObj.disY;
|
|
139110
|
+
// 从thisConnect取已存储的stub(无+5偏移);首次拖拽则按锚点方向选正确initial值扣除gap偏移
|
|
139111
|
+
var curHs = Math.abs(thisConnect.pathMinX) || Math.abs(thisConnect.pathMaxX);
|
|
139112
|
+
var curVs = Math.abs(thisConnect.pathMinY) || Math.abs(thisConnect.pathMaxY);
|
|
139113
|
+
if (!curHs) {
|
|
139114
|
+
curHs = firstEndpoints[0] !== 0 ? Math.max(Math.abs(firstEndpoints[0] === -1 ? initialMinX : initialMaxX) - 5, minStub6) : minStub6;
|
|
139115
|
+
}
|
|
139116
|
+
if (!curVs) {
|
|
139117
|
+
curVs = firstEndpoints[1] !== 0 ? Math.max(Math.abs(firstEndpoints[1] === -1 ? initialMinY : initialMaxY) - 5, minStub6) : minStub6;
|
|
139118
|
+
}
|
|
139119
|
+
if (Math.abs(dx1) >= Math.abs(dy1)) {
|
|
139120
|
+
// 水平拖拽:只更新水平stub,垂直保持curVs不变
|
|
139121
|
+
var s = curHs;
|
|
139122
|
+
if (dx1 < 0) {
|
|
139123
|
+
s = curHs + Math.abs(dx1);
|
|
139124
|
+
} else {
|
|
139125
|
+
s = Math.max(curHs - dx1, minStub6);
|
|
139126
|
+
}
|
|
139127
|
+
if (firstEndpoints[0] === -1) {
|
|
139128
|
+
thisConnect.pathMinX = -s;
|
|
139129
|
+
thisConnect.pathMaxX = -s;
|
|
139130
|
+
} else if (firstEndpoints[0] === 1) {
|
|
139131
|
+
thisConnect.pathMinX = s;
|
|
139132
|
+
thisConnect.pathMaxX = s;
|
|
139133
|
+
}
|
|
139134
|
+
// 首次拖拽时初始化垂直方向存储
|
|
139135
|
+
if (!thisConnect.pathMinY && !thisConnect.pathMaxY) {
|
|
139136
|
+
var vdir = secondEndpoints[1] || firstEndpoints[1];
|
|
139137
|
+
if (vdir === -1) {
|
|
139138
|
+
thisConnect.pathMinY = -curVs;
|
|
139139
|
+
thisConnect.pathMaxY = -curVs;
|
|
139140
|
+
} else {
|
|
139141
|
+
thisConnect.pathMinY = curVs;
|
|
139142
|
+
thisConnect.pathMaxY = curVs;
|
|
139143
|
+
}
|
|
139144
|
+
}
|
|
139145
|
+
stub = [Math.max(s, minStub6), Math.max(curVs, minStub6)];
|
|
139146
|
+
} else {
|
|
139147
|
+
// 垂直拖拽:只更新垂直stub,水平保持curHs不变
|
|
139148
|
+
var s = curVs;
|
|
139149
|
+
if (dy1 < 0) {
|
|
139150
|
+
s = curVs + Math.abs(dy1);
|
|
139151
|
+
} else {
|
|
139152
|
+
s = Math.max(curVs - dy1, minStub6);
|
|
139153
|
+
}
|
|
139154
|
+
if (firstEndpoints[1] === -1) {
|
|
139155
|
+
thisConnect.pathMinY = -s;
|
|
139156
|
+
thisConnect.pathMaxY = -s;
|
|
139157
|
+
} else if (firstEndpoints[1] === 1) {
|
|
139158
|
+
thisConnect.pathMinY = s;
|
|
139159
|
+
thisConnect.pathMaxY = s;
|
|
139160
|
+
}
|
|
139161
|
+
// 首次拖拽时初始化水平方向存储
|
|
139162
|
+
if (!thisConnect.pathMinX && !thisConnect.pathMaxX) {
|
|
139163
|
+
var hdir = secondEndpoints[0] || firstEndpoints[0];
|
|
139164
|
+
if (hdir === -1) {
|
|
139165
|
+
thisConnect.pathMinX = -curHs;
|
|
139166
|
+
thisConnect.pathMaxX = -curHs;
|
|
139167
|
+
} else {
|
|
139168
|
+
thisConnect.pathMinX = curHs;
|
|
139169
|
+
thisConnect.pathMaxX = curHs;
|
|
139170
|
+
}
|
|
139171
|
+
}
|
|
139172
|
+
stub = [Math.max(curHs, minStub6), Math.max(s, minStub6)];
|
|
139173
|
+
}
|
|
139174
|
+
}
|
|
139175
|
+
}
|
|
139176
|
+
// 跨轴自环线(lineCount === 4 或 >= 6):用thisConnect存储值修正非拖拽轴stub
|
|
139177
|
+
// 避免lineCount === 4块中Math.abs(initialMaxX)取到画布边界而非真实stub
|
|
139178
|
+
// 注:firstEndpoints为2元素orientation数组,仅索引[0]/[1]有效
|
|
139179
|
+
if (isSameNode && !(hSameSide || vSameSide)) {
|
|
139180
|
+
var hasHAnchor = firstEndpoints[0] !== 0 || secondEndpoints[0] !== 0;
|
|
139181
|
+
var hasVAnchor = firstEndpoints[1] !== 0 || secondEndpoints[1] !== 0;
|
|
139182
|
+
if (hasHAnchor && hasVAnchor) {
|
|
139183
|
+
// Determine which axis was dragged by checking which path value was updated
|
|
139184
|
+
var srcDragged = thisConnect.pathMinX !== undefined && thisConnect.pathMinX !== 0 || thisConnect.pathMaxX !== undefined && thisConnect.pathMaxX !== 0;
|
|
139185
|
+
var srcWasV = firstEndpoints[0] === 0;
|
|
139186
|
+
if (srcDragged) {
|
|
139187
|
+
// Horizontal was dragged → fix vertical stub
|
|
139188
|
+
var vs = Math.abs(thisConnect.pathMinY) || Math.abs(thisConnect.pathMaxY);
|
|
139189
|
+
if (!vs) {
|
|
139190
|
+
if (firstEndpoints[1] === -1 || secondEndpoints[1] === -1) {
|
|
139191
|
+
vs = Math.max(Math.abs(initialMinY) - 5, minStub4 || minStub5 || 30);
|
|
139192
|
+
} else if (firstEndpoints[1] === 1 || secondEndpoints[1] === 1) {
|
|
139193
|
+
vs = Math.max(Math.abs(initialMaxY) - 5, minStub4 || minStub5 || 30);
|
|
139194
|
+
} else {
|
|
139195
|
+
vs = minStub4 || minStub5 || 30;
|
|
139196
|
+
}
|
|
139197
|
+
}
|
|
139198
|
+
stub[srcWasV ? 0 : 1] = Math.max(vs, minStub4 || minStub5 || 30);
|
|
139199
|
+
// 存储修正后的值到thisConnect,防止下个session re-extract画布值
|
|
139200
|
+
var fixedVs = Math.max(vs, minStub4 || minStub5 || 30);
|
|
139201
|
+
if (firstEndpoints[1] === -1 || secondEndpoints[1] === -1) {
|
|
139202
|
+
thisConnect.pathMinY = -fixedVs;
|
|
139203
|
+
thisConnect.pathMaxY = -fixedVs;
|
|
139204
|
+
} else if (firstEndpoints[1] === 1 || secondEndpoints[1] === 1) {
|
|
139205
|
+
thisConnect.pathMinY = fixedVs;
|
|
139206
|
+
thisConnect.pathMaxY = fixedVs;
|
|
139207
|
+
}
|
|
139208
|
+
} else {
|
|
139209
|
+
// Vertical was dragged → fix horizontal stub
|
|
139210
|
+
var hs = Math.abs(thisConnect.pathMinX) || Math.abs(thisConnect.pathMaxX);
|
|
139211
|
+
if (!hs) {
|
|
139212
|
+
if (firstEndpoints[0] === -1 || secondEndpoints[0] === -1) {
|
|
139213
|
+
hs = Math.max(Math.abs(initialMinX) - 5, minStub4 || minStub5 || 30);
|
|
139214
|
+
} else if (firstEndpoints[0] === 1 || secondEndpoints[0] === 1) {
|
|
139215
|
+
hs = Math.max(Math.abs(initialMaxX) - 5, minStub4 || minStub5 || 30);
|
|
139216
|
+
} else {
|
|
139217
|
+
hs = minStub4 || minStub5 || 30;
|
|
139218
|
+
}
|
|
139219
|
+
}
|
|
139220
|
+
stub[srcWasV ? 1 : 0] = Math.max(hs, minStub4 || minStub5 || 30);
|
|
139221
|
+
// 存储修正后的值到thisConnect
|
|
139222
|
+
var fixedHs = Math.max(hs, minStub4 || minStub5 || 30);
|
|
139223
|
+
if (firstEndpoints[0] === -1 || secondEndpoints[0] === -1) {
|
|
139224
|
+
thisConnect.pathMinX = -fixedHs;
|
|
139225
|
+
thisConnect.pathMaxX = -fixedHs;
|
|
139226
|
+
} else if (firstEndpoints[0] === 1 || secondEndpoints[0] === 1) {
|
|
139227
|
+
thisConnect.pathMinX = fixedHs;
|
|
139228
|
+
thisConnect.pathMaxX = fixedHs;
|
|
139229
|
+
}
|
|
139230
|
+
}
|
|
139231
|
+
}
|
|
138919
139232
|
}
|
|
138920
|
-
//
|
|
138921
|
-
|
|
138922
|
-
|
|
138923
|
-
if (firstEndpoints[0] !== 0
|
|
138924
|
-
//
|
|
138925
|
-
|
|
138926
|
-
|
|
138927
|
-
|
|
138928
|
-
|
|
138929
|
-
|
|
138930
|
-
|
|
139233
|
+
// 自环线同侧连接:用拖拽端的值同时赋给两端,保持stub对称
|
|
139234
|
+
if (isSameNode && (hSameSide || vSameSide)) {
|
|
139235
|
+
var activeStub;
|
|
139236
|
+
if (firstEndpoints[0] !== 0) {
|
|
139237
|
+
// 水平锚点
|
|
139238
|
+
if (Math.abs(canvasMarginLeft + canvasLeft - _this.dragLineObj.disX) <= 10) {
|
|
139239
|
+
activeStub = Math.abs(stub[0]); // 拖拽左侧边
|
|
139240
|
+
} else {
|
|
139241
|
+
activeStub = Math.abs(stub[1]); // 拖拽右侧边
|
|
139242
|
+
}
|
|
139243
|
+
stub = [activeStub, activeStub];
|
|
139244
|
+
if (firstEndpoints[0] === -1) {
|
|
139245
|
+
thisConnect.pathMinX = -activeStub;
|
|
139246
|
+
thisConnect.pathMaxX = -activeStub;
|
|
139247
|
+
} else {
|
|
139248
|
+
thisConnect.pathMinX = activeStub;
|
|
139249
|
+
thisConnect.pathMaxX = activeStub;
|
|
139250
|
+
}
|
|
139251
|
+
} else {
|
|
139252
|
+
// 垂直锚点
|
|
139253
|
+
if (Math.abs(canvasMarginTop + canvasTop - _this.dragLineObj.disY - scrollTop) <= 10) {
|
|
139254
|
+
activeStub = Math.abs(stub[0]); // 拖拽顶部边
|
|
139255
|
+
} else {
|
|
139256
|
+
activeStub = Math.abs(stub[1]); // 拖拽底部边
|
|
139257
|
+
}
|
|
139258
|
+
stub = [activeStub, activeStub];
|
|
139259
|
+
if (firstEndpoints[1] === -1) {
|
|
139260
|
+
thisConnect.pathMinY = -activeStub;
|
|
139261
|
+
thisConnect.pathMaxY = -activeStub;
|
|
139262
|
+
} else {
|
|
139263
|
+
thisConnect.pathMinY = activeStub;
|
|
139264
|
+
thisConnect.pathMaxY = activeStub;
|
|
139265
|
+
}
|
|
138931
139266
|
}
|
|
138932
139267
|
}
|
|
139268
|
+
// 垂直锚点组合2段线:源端延伸全距离,目标端不延伸(自环连接除外)
|
|
139269
|
+
var respectStubs = false;
|
|
139270
|
+
if (isSameNode) {
|
|
139271
|
+
// 自环连接始终严格保持stub值,与createPathLine创建行为一致
|
|
139272
|
+
// 跨轴自环线(lineCount不匹配3/4/5分支时stub为[0,0]),使用初始路径值兜底
|
|
139273
|
+
if (stub[0] === 0 && stub[1] === 0) {
|
|
139274
|
+
var s0 = Math.abs(initialMinX) || Math.abs(initialMaxX) || 50;
|
|
139275
|
+
var s1 = Math.abs(initialMinY) || Math.abs(initialMaxY) || 50;
|
|
139276
|
+
stub = [Math.max(s0, 30), Math.max(s1, 30)];
|
|
139277
|
+
}
|
|
139278
|
+
respectStubs = true;
|
|
139279
|
+
} else if (firstEndpoints[0] !== 0 && secondEndpoints[1] !== 0) {
|
|
139280
|
+
// 水平出 + 垂直入(如左出上入、右出下入)
|
|
139281
|
+
stub = [Math.abs(initialMaxX), 0];
|
|
139282
|
+
respectStubs = true;
|
|
139283
|
+
} else if (firstEndpoints[1] !== 0 && secondEndpoints[0] !== 0) {
|
|
139284
|
+
// 垂直出 + 水平入(如上出左入、下出右入)
|
|
139285
|
+
stub = [Math.abs(initialMaxY), 0];
|
|
139286
|
+
respectStubs = true;
|
|
139287
|
+
} else if (firstEndpoints[0] !== 0 && secondEndpoints[0] !== 0) {
|
|
139288
|
+
// 水平出 + 水平入(同轴异向,如右出左入):使用midpoint控制折线,不用alwaysRespectStubs
|
|
139289
|
+
respectStubs = false;
|
|
139290
|
+
} else if (firstEndpoints[1] !== 0 && secondEndpoints[1] !== 0) {
|
|
139291
|
+
// 垂直出 + 垂直入(同轴异向,如下出上入):使用midpoint控制折线,不用alwaysRespectStubs
|
|
139292
|
+
respectStubs = false;
|
|
139293
|
+
}
|
|
139294
|
+
var mp = isSameAxisDiffDir ? _dragMidpoint : respectStubs ? isSameNode ? 0.5 : 0 : 0.5;
|
|
138933
139295
|
connection.setConnector(['Flowchart', {
|
|
138934
139296
|
stub: stub,
|
|
138935
139297
|
gap: 5,
|
|
138936
139298
|
cornerRadius: 5,
|
|
138937
139299
|
alwaysRespectStubs: respectStubs,
|
|
138938
|
-
midpoint:
|
|
138939
|
-
}]);
|
|
138940
|
-
connection.addOverlay(['Arrow', {
|
|
138941
|
-
width: 10,
|
|
138942
|
-
length: 10,
|
|
138943
|
-
location: 1
|
|
139300
|
+
midpoint: mp
|
|
138944
139301
|
}]);
|
|
138945
139302
|
});
|
|
138946
139303
|
|
|
138947
139304
|
// 鼠标释放
|
|
138948
139305
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).bind('mouseup', function (ev) {
|
|
138949
139306
|
setMoveCursor(false);
|
|
139307
|
+
connection.addOverlay(['Arrow', {
|
|
139308
|
+
width: 10,
|
|
139309
|
+
length: 10,
|
|
139310
|
+
location: 1
|
|
139311
|
+
}]);
|
|
138950
139312
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).unbind('mousedown');
|
|
138951
139313
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).unbind('mousemove');
|
|
138952
139314
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).unbind('mouseup');
|
|
@@ -139327,6 +139689,30 @@ function createConnect(conn, connector, anchors) {
|
|
|
139327
139689
|
}
|
|
139328
139690
|
return a;
|
|
139329
139691
|
}
|
|
139692
|
+
|
|
139693
|
+
// ========== 辅助函数:同侧stub提取 ==========
|
|
139694
|
+
// 处理4种同轴同向组合(左左、右右、上上、下下),返回stub数组或null
|
|
139695
|
+
function computeSameSideStub(anchors, pathMinX, pathMaxX, pathMinY, pathMaxY) {
|
|
139696
|
+
if (anchors[0][2] === -1 && anchors[1][2] === -1) {
|
|
139697
|
+
var s0 = Math.abs(pathMinX) || 50;
|
|
139698
|
+
var s1 = Math.abs(pathMaxX) || 50;
|
|
139699
|
+
return [Math.max(s0, 30), Math.max(s1, 30)];
|
|
139700
|
+
} else if (anchors[0][2] === 1 && anchors[1][2] === 1) {
|
|
139701
|
+
var s0 = Math.abs(pathMaxX) || 50;
|
|
139702
|
+
var s1 = Math.abs(pathMinX) || 50;
|
|
139703
|
+
return [Math.max(s0, 30), Math.max(s1, 30)];
|
|
139704
|
+
} else if (anchors[0][3] === -1 && anchors[1][3] === -1) {
|
|
139705
|
+
var s0 = Math.abs(pathMinY) || 50;
|
|
139706
|
+
var s1 = Math.abs(pathMaxY) || 50;
|
|
139707
|
+
return [Math.max(s0, 30), Math.max(s1, 30)];
|
|
139708
|
+
} else if (anchors[0][3] === 1 && anchors[1][3] === 1) {
|
|
139709
|
+
// 下出上入:pathMinY=源端stub,pathMaxY=目标端stub
|
|
139710
|
+
var s0 = Math.abs(pathMinY) || 50;
|
|
139711
|
+
var s1 = Math.abs(pathMaxY) || 50;
|
|
139712
|
+
return [Math.max(s0, 30), Math.max(s1, 30)];
|
|
139713
|
+
}
|
|
139714
|
+
return null;
|
|
139715
|
+
}
|
|
139330
139716
|
function createPathLine(connectsArr) {
|
|
139331
139717
|
for (var j = 0; j < connectsArr.length; j++) {
|
|
139332
139718
|
// console.log(connectsArr[j].label, JSON.stringify(connectsArr[j]), connectsArr[j])
|
|
@@ -139350,22 +139736,18 @@ function createPathLine(connectsArr) {
|
|
|
139350
139736
|
// 自环连接:minStub=50,必须在isDiffAxis之前判断(自环可能跨轴)
|
|
139351
139737
|
stub = [50, 50];
|
|
139352
139738
|
if (connectsArr[j].linesCount && connectsArr[j].linesCount >= 3) {
|
|
139353
|
-
|
|
139354
|
-
|
|
139355
|
-
|
|
139356
|
-
|
|
139357
|
-
|
|
139358
|
-
var
|
|
139359
|
-
var
|
|
139360
|
-
|
|
139361
|
-
|
|
139362
|
-
var
|
|
139363
|
-
var
|
|
139364
|
-
stub = [Math.max(
|
|
139365
|
-
} else if (anchors[0][3] === 1 && anchors[1][3] === 1) {
|
|
139366
|
-
var s0 = Math.abs(connectsArr[j].pathMaxY) || 50;
|
|
139367
|
-
var s1 = Math.abs(connectsArr[j].pathMinY) || 50;
|
|
139368
|
-
stub = [Math.max(s0, 50), Math.max(s1, 50)];
|
|
139739
|
+
var sameStub = computeSameSideStub(anchors, connectsArr[j].pathMinX, connectsArr[j].pathMaxX, connectsArr[j].pathMinY, connectsArr[j].pathMaxY);
|
|
139740
|
+
if (sameStub) {
|
|
139741
|
+
stub = sameStub;
|
|
139742
|
+
} else {
|
|
139743
|
+
// 跨轴自环线(如左出上入):取各轴有效path值,minStub=50
|
|
139744
|
+
var absMinX = Math.abs(connectsArr[j].pathMinX) || 0;
|
|
139745
|
+
var absMaxX = Math.abs(connectsArr[j].pathMaxX) || 0;
|
|
139746
|
+
var absMinY = Math.abs(connectsArr[j].pathMinY) || 0;
|
|
139747
|
+
var absMaxY = Math.abs(connectsArr[j].pathMaxY) || 0;
|
|
139748
|
+
var hs = Math.max(absMinX, absMaxX, 30);
|
|
139749
|
+
var vs = Math.max(absMinY, absMaxY, 30);
|
|
139750
|
+
stub = [Math.max(hs, 30), Math.max(vs, 30)];
|
|
139369
139751
|
}
|
|
139370
139752
|
}
|
|
139371
139753
|
alwaysRespectStubs = true;
|
|
@@ -139380,67 +139762,46 @@ function createPathLine(connectsArr) {
|
|
|
139380
139762
|
// 同侧锚点(不含自环):使用保存的path值,minStub=50保证U型结构
|
|
139381
139763
|
stub = [50, 50];
|
|
139382
139764
|
if (connectsArr[j].linesCount && connectsArr[j].linesCount >= 3) {
|
|
139383
|
-
|
|
139384
|
-
|
|
139385
|
-
var s1 = Math.abs(connectsArr[j].pathMaxX) || 50;
|
|
139386
|
-
stub = [Math.max(s0, 50), Math.max(s1, 50)];
|
|
139387
|
-
} else if (anchors[0][2] === 1 && anchors[1][2] === 1) {
|
|
139388
|
-
var s0 = Math.abs(connectsArr[j].pathMaxX) || 50;
|
|
139389
|
-
var s1 = Math.abs(connectsArr[j].pathMinX) || 50;
|
|
139390
|
-
stub = [Math.max(s0, 50), Math.max(s1, 50)];
|
|
139391
|
-
} else if (anchors[0][3] === -1 && anchors[1][3] === -1) {
|
|
139392
|
-
var s0 = Math.abs(connectsArr[j].pathMinY) || 50;
|
|
139393
|
-
var s1 = Math.abs(connectsArr[j].pathMaxY) || 50;
|
|
139394
|
-
stub = [Math.max(s0, 50), Math.max(s1, 50)];
|
|
139395
|
-
} else if (anchors[0][3] === 1 && anchors[1][3] === 1) {
|
|
139396
|
-
var s0 = Math.abs(connectsArr[j].pathMaxY) || 50;
|
|
139397
|
-
var s1 = Math.abs(connectsArr[j].pathMinY) || 50;
|
|
139398
|
-
stub = [Math.max(s0, 50), Math.max(s1, 50)];
|
|
139399
|
-
}
|
|
139765
|
+
var sameStub = computeSameSideStub(anchors, connectsArr[j].pathMinX, connectsArr[j].pathMaxX, connectsArr[j].pathMinY, connectsArr[j].pathMaxY);
|
|
139766
|
+
if (sameStub) stub = sameStub;
|
|
139400
139767
|
}
|
|
139401
139768
|
} else if (isSameAxisDiffDir) {
|
|
139402
|
-
//
|
|
139403
|
-
|
|
139404
|
-
|
|
139405
|
-
|
|
139406
|
-
|
|
139407
|
-
|
|
139408
|
-
|
|
139409
|
-
|
|
139410
|
-
|
|
139411
|
-
|
|
139412
|
-
|
|
139413
|
-
|
|
139414
|
-
if (
|
|
139415
|
-
|
|
139416
|
-
var
|
|
139417
|
-
var
|
|
139418
|
-
var
|
|
139419
|
-
|
|
139420
|
-
var
|
|
139421
|
-
|
|
139422
|
-
|
|
139423
|
-
var
|
|
139424
|
-
|
|
139425
|
-
|
|
139426
|
-
|
|
139427
|
-
|
|
139428
|
-
|
|
139429
|
-
|
|
139430
|
-
|
|
139431
|
-
|
|
139432
|
-
|
|
139433
|
-
|
|
139434
|
-
|
|
139435
|
-
|
|
139436
|
-
|
|
139437
|
-
|
|
139438
|
-
stub[1] = Math.abs(tgtAnchorY - midY);
|
|
139439
|
-
}
|
|
139440
|
-
}
|
|
139441
|
-
if (isNaN(stub[0]) || stub[0] === 0) stub[0] = 10;
|
|
139442
|
-
if (isNaN(stub[1]) || stub[1] === 0) stub[1] = stub[0];
|
|
139443
|
-
alwaysRespectStubs = true;
|
|
139769
|
+
// 同轴异向:小stub + alwaysRespectStubs=false + 动态midpoint控制折线位置
|
|
139770
|
+
stub = [10, 10];
|
|
139771
|
+
var _sourceNode = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + connectsArr[j].PageSourceId);
|
|
139772
|
+
var targetNode = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + connectsArr[j].PageTargetId);
|
|
139773
|
+
var srcTop = parseInt(_sourceNode.css('top')) || 0;
|
|
139774
|
+
var srcLeft = parseInt(_sourceNode.css('left')) || 0;
|
|
139775
|
+
var srcW = _sourceNode.outerWidth() || 0;
|
|
139776
|
+
var srcH = _sourceNode.outerHeight() || 0;
|
|
139777
|
+
var tgtTop = parseInt(targetNode.css('top')) || 0;
|
|
139778
|
+
var tgtLeft = parseInt(targetNode.css('left')) || 0;
|
|
139779
|
+
var tgtW = targetNode.outerWidth() || 0;
|
|
139780
|
+
var tgtH = targetNode.outerHeight() || 0;
|
|
139781
|
+
if (anchors[0][2] !== 0) {
|
|
139782
|
+
// 水平方向(左出右入、右出左入)
|
|
139783
|
+
var srcAnchorX = srcLeft + srcW * anchors[0][0];
|
|
139784
|
+
var tgtAnchorX = tgtLeft + tgtW * anchors[1][0];
|
|
139785
|
+
var totalDistX = Math.abs(tgtAnchorX - srcAnchorX);
|
|
139786
|
+
// 从存储的pathMaxX获取折线距离,无有效值时取中点
|
|
139787
|
+
var foldDist = Math.abs(connectsArr[j].pathMaxX) || Math.abs(connectsArr[j].pathMinX);
|
|
139788
|
+
if (!foldDist || isNaN(foldDist)) foldDist = totalDistX / 2;
|
|
139789
|
+
// stub=10时需扣除stub偏移:midpoint = (foldDist - stub) / (totalDist - 2*stub)
|
|
139790
|
+
var effDist = totalDistX - 20;
|
|
139791
|
+
midpoint = effDist > 0 ? (foldDist - 10) / effDist : 0.5;
|
|
139792
|
+
} else if (anchors[0][3] !== 0) {
|
|
139793
|
+
// 垂直方向(上出下入、下出上入)
|
|
139794
|
+
var srcAnchorY = srcTop + srcH * anchors[0][1];
|
|
139795
|
+
var tgtAnchorY = tgtTop + tgtH * anchors[1][1];
|
|
139796
|
+
var totalDistY = Math.abs(tgtAnchorY - srcAnchorY);
|
|
139797
|
+
var foldDist = Math.abs(connectsArr[j].pathMaxY) || Math.abs(connectsArr[j].pathMinY);
|
|
139798
|
+
if (!foldDist || isNaN(foldDist)) foldDist = totalDistY / 2;
|
|
139799
|
+
// stub=10时需扣除stub偏移:midpoint = (foldDist - stub) / (totalDist - 2*stub)
|
|
139800
|
+
var effDist = totalDistY - 20;
|
|
139801
|
+
midpoint = effDist > 0 ? (foldDist - 10) / effDist : 0.5;
|
|
139802
|
+
}
|
|
139803
|
+
midpoint = Math.max(0, Math.min(1, midpoint));
|
|
139804
|
+
// alwaysRespectStubs保持false(默认值),使opposite分支使用midpoint参数控制折线
|
|
139444
139805
|
} else if (connectsArr[j].linesCount >= 4) {
|
|
139445
139806
|
// 其他4段线:使用保存的path值
|
|
139446
139807
|
stub = [10, 10];
|
|
@@ -141291,7 +141652,11 @@ var showProcessDesc = function showProcessDesc(desc, containerHeight, containerL
|
|
|
141291
141652
|
scope: 'desc'
|
|
141292
141653
|
});
|
|
141293
141654
|
jquery__WEBPACK_IMPORTED_MODULE_0___default()('.process-desc-close').click(function () {
|
|
141294
|
-
document.querySelector('.process-desc-container')
|
|
141655
|
+
var descContainer = document.querySelector('.process-desc-container');
|
|
141656
|
+
// 隐藏前将当前位置存入data属性,以便保存时能读取到
|
|
141657
|
+
descContainer.dataset.left = descContainer.offsetLeft;
|
|
141658
|
+
descContainer.dataset.top = descContainer.offsetTop;
|
|
141659
|
+
descContainer.style.display = 'none';
|
|
141295
141660
|
});
|
|
141296
141661
|
};
|
|
141297
141662
|
var Transform = {
|
|
@@ -165842,7 +166207,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".udm-ideaLable{vertical-align:top!impo
|
|
|
165842
166207
|
|
|
165843
166208
|
/***/ }),
|
|
165844
166209
|
|
|
165845
|
-
/***/
|
|
166210
|
+
/***/ 37899:
|
|
165846
166211
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
165847
166212
|
|
|
165848
166213
|
"use strict";
|
|
@@ -165856,7 +166221,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
165856
166221
|
|
|
165857
166222
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
165858
166223
|
// Module
|
|
165859
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".idea-show-scope[data-v-
|
|
166224
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".idea-show-scope[data-v-2509c9c6]{padding-top:10px}.idea-inputbox[data-v-2509c9c6],.idea-show-scope .el-select[data-v-2509c9c6]{width:100%}[data-v-2509c9c6] .idea-inputbox-attach{width:100%;padding-top:10px}[data-v-2509c9c6] .idea-inputbox-attach .el-upload--text{width:100%;text-align:right}[data-v-2509c9c6] .idea-inputbox-attach .el-button{border:0;padding-left:6px;padding-right:6px}[data-v-2509c9c6] .idea-inputbox-attach .el-button .svg-icon{font-size:12px}[data-v-2509c9c6] .idea-inputbox-attach .el-link{margin-top:-3px}[data-v-2509c9c6] .idea-inputbox-attach .el-col-4{font-size:13px;font-weight:600;line-height:32px}[data-v-2509c9c6] .idea-inputbox-attach .el-col-20>div{height:24px;line-height:24px}[data-v-2509c9c6] .idea-inputbox-attach .attach-row{padding-top:5px}[data-v-2509c9c6] .idea-inputbox-attach .attach-row .attach-info{width:100%;line-height:30px}[data-v-2509c9c6] .idea-inputbox-attach .attach-row .attach-info .attach-name{margin-top:0;max-width:calc(100% - 90px);float:left;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}[data-v-2509c9c6] .idea-inputbox-attach .sidebar-area-title{float:left;font-weight:600;line-height:24px;margin-left:-10px;padding:4px 10px}[data-v-2509c9c6] .idea-inputbox-attach .sidebar-area-title+div{float:right}[data-v-2509c9c6] .idea-attach-one .el-upload--text,[data-v-2509c9c6] .idea-inputbox-attach .sidebar-area-attach .attach-info{width:100%!important}", ""]);
|
|
165860
166225
|
// Exports
|
|
165861
166226
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
165862
166227
|
|
|
@@ -167921,7 +168286,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".setting .header[data-v-8cadfe0a]{widt
|
|
|
167921
168286
|
|
|
167922
168287
|
/***/ }),
|
|
167923
168288
|
|
|
167924
|
-
/***/
|
|
168289
|
+
/***/ 65213:
|
|
167925
168290
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
167926
168291
|
|
|
167927
168292
|
"use strict";
|
|
@@ -167935,14 +168300,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
167935
168300
|
|
|
167936
168301
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
167937
168302
|
// Module
|
|
167938
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
168303
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-0ebbd5f8] .el-scrollbar__wrap{overflow-x:auto}#center[data-v-0ebbd5f8]{background-image:-webkit-gradient(linear,left top,right top,color-stop(3%,rgba(50,0,0,.05)),color-stop(3%,transparent)),-webkit-gradient(linear,left bottom,left top,color-stop(3%,rgba(50,0,0,.05)),color-stop(3%,transparent));background-image:linear-gradient(90deg,rgba(50,0,0,.05) 3%,transparent 0),linear-gradient(1turn,rgba(50,0,0,.05) 3%,transparent 0);background-size:20px 20px;background-repeat:repeat;background-position:0 0}#center .add-node-btn[data-v-0ebbd5f8]{position:relative;margin:-15px -10px;z-index:4000;display:none}#center .insert-node-btn[data-v-0ebbd5f8]{position:fixed;margin:-15px -10px;z-index:4000;display:none}li[data-v-0ebbd5f8],ul[data-v-0ebbd5f8]{list-style:none}", ""]);
|
|
167939
168304
|
// Exports
|
|
167940
168305
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
167941
168306
|
|
|
167942
168307
|
|
|
167943
168308
|
/***/ }),
|
|
167944
168309
|
|
|
167945
|
-
/***/
|
|
168310
|
+
/***/ 87373:
|
|
167946
168311
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
167947
168312
|
|
|
167948
168313
|
"use strict";
|
|
@@ -262123,19 +262488,19 @@ var update = add("7791e49c", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
262123
262488
|
|
|
262124
262489
|
/***/ }),
|
|
262125
262490
|
|
|
262126
|
-
/***/
|
|
262491
|
+
/***/ 19456:
|
|
262127
262492
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
262128
262493
|
|
|
262129
262494
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
262130
262495
|
|
|
262131
262496
|
// load the styles
|
|
262132
|
-
var content = __webpack_require__(
|
|
262497
|
+
var content = __webpack_require__(37899);
|
|
262133
262498
|
if(content.__esModule) content = content.default;
|
|
262134
262499
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
262135
262500
|
if(content.locals) module.exports = content.locals;
|
|
262136
262501
|
// add the styles to the DOM
|
|
262137
262502
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
262138
|
-
var update = add("
|
|
262503
|
+
var update = add("189f8d78", content, true, {"sourceMap":false,"shadowMode":false});
|
|
262139
262504
|
|
|
262140
262505
|
/***/ }),
|
|
262141
262506
|
|
|
@@ -263707,35 +264072,35 @@ var update = add("76ac6c2c", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
263707
264072
|
|
|
263708
264073
|
/***/ }),
|
|
263709
264074
|
|
|
263710
|
-
/***/
|
|
264075
|
+
/***/ 42096:
|
|
263711
264076
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
263712
264077
|
|
|
263713
264078
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
263714
264079
|
|
|
263715
264080
|
// load the styles
|
|
263716
|
-
var content = __webpack_require__(
|
|
264081
|
+
var content = __webpack_require__(65213);
|
|
263717
264082
|
if(content.__esModule) content = content.default;
|
|
263718
264083
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
263719
264084
|
if(content.locals) module.exports = content.locals;
|
|
263720
264085
|
// add the styles to the DOM
|
|
263721
264086
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
263722
|
-
var update = add("
|
|
264087
|
+
var update = add("b3a6b4b8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
263723
264088
|
|
|
263724
264089
|
/***/ }),
|
|
263725
264090
|
|
|
263726
|
-
/***/
|
|
264091
|
+
/***/ 93012:
|
|
263727
264092
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
263728
264093
|
|
|
263729
264094
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
263730
264095
|
|
|
263731
264096
|
// load the styles
|
|
263732
|
-
var content = __webpack_require__(
|
|
264097
|
+
var content = __webpack_require__(87373);
|
|
263733
264098
|
if(content.__esModule) content = content.default;
|
|
263734
264099
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
263735
264100
|
if(content.locals) module.exports = content.locals;
|
|
263736
264101
|
// add the styles to the DOM
|
|
263737
264102
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
263738
|
-
var update = add("
|
|
264103
|
+
var update = add("0a71b9ee", content, true, {"sourceMap":false,"shadowMode":false});
|
|
263739
264104
|
|
|
263740
264105
|
/***/ }),
|
|
263741
264106
|
|
|
@@ -285997,87 +286362,87 @@ var asyncComponents = [
|
|
|
285997
286362
|
}],
|
|
285998
286363
|
// ========== ecwapp/Wflowform 工作流表单子组件 → chunk: wflow-form ==========
|
|
285999
286364
|
['Attachment', function () {
|
|
286000
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286365
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286001
286366
|
return m.Attachment;
|
|
286002
286367
|
});
|
|
286003
286368
|
}], ['BodyFile', function () {
|
|
286004
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286369
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286005
286370
|
return m.BodyFile;
|
|
286006
286371
|
});
|
|
286007
286372
|
}], ['CommandBar', function () {
|
|
286008
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286373
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286009
286374
|
return m.CommandBar;
|
|
286010
286375
|
});
|
|
286011
286376
|
}], ['HandleIdea', function () {
|
|
286012
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286377
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286013
286378
|
return m.HandleIdea;
|
|
286014
286379
|
});
|
|
286015
286380
|
}], ['IdeaInputBox', function () {
|
|
286016
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286381
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286017
286382
|
return m.IdeaInputBox;
|
|
286018
286383
|
});
|
|
286019
286384
|
}], ['ModifyWflogAddUser', function () {
|
|
286020
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286385
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286021
286386
|
return m.ModifyWflogAddUser;
|
|
286022
286387
|
});
|
|
286023
286388
|
}], ['ModifyWflogIdea', function () {
|
|
286024
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286389
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286025
286390
|
return m.ModifyWflogIdea;
|
|
286026
286391
|
});
|
|
286027
286392
|
}], ['WriteToReadIdea', function () {
|
|
286028
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286393
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286029
286394
|
return m.WriteToReadIdea;
|
|
286030
286395
|
});
|
|
286031
286396
|
}], ['ModifyWflogSubmitFile', function () {
|
|
286032
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286397
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286033
286398
|
return m.ModifyWflogSubmitFile;
|
|
286034
286399
|
});
|
|
286035
286400
|
}], ['ModifyWfNodelog', function () {
|
|
286036
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286401
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286037
286402
|
return m.ModifyWfNodelog;
|
|
286038
286403
|
});
|
|
286039
286404
|
}], ['SelectOuterDeputy', function () {
|
|
286040
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286405
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286041
286406
|
return m.SelectOuterDeputy;
|
|
286042
286407
|
});
|
|
286043
286408
|
}], ['SubmitHandle', function () {
|
|
286044
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286409
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286045
286410
|
return m.SubmitHandle;
|
|
286046
286411
|
});
|
|
286047
286412
|
}], ['SubmitDialog', function () {
|
|
286048
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286413
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286049
286414
|
return m.SubmitDialog;
|
|
286050
286415
|
});
|
|
286051
286416
|
}], ['WfNodelogList', function () {
|
|
286052
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286417
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286053
286418
|
return m.WfNodelogList;
|
|
286054
286419
|
});
|
|
286055
286420
|
}], ['WflogAddReader', function () {
|
|
286056
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286421
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286057
286422
|
return m.WflogAddReader;
|
|
286058
286423
|
});
|
|
286059
286424
|
}], ['WflowView', function () {
|
|
286060
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286425
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286061
286426
|
return m.WflowView;
|
|
286062
286427
|
});
|
|
286063
286428
|
}], ['ImgView', function () {
|
|
286064
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286429
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286065
286430
|
return m.ImgView;
|
|
286066
286431
|
});
|
|
286067
286432
|
}], ['IdeaSignature', function () {
|
|
286068
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286433
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286069
286434
|
return m.IdeaSignature;
|
|
286070
286435
|
});
|
|
286071
286436
|
}], ['ReplaceFile', function () {
|
|
286072
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286437
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286073
286438
|
return m.ReplaceFile;
|
|
286074
286439
|
});
|
|
286075
286440
|
}], ['ViewBodyFile', function () {
|
|
286076
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286441
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286077
286442
|
return m.ViewBodyFile;
|
|
286078
286443
|
});
|
|
286079
286444
|
}], ['WformLayout', function () {
|
|
286080
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286445
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088)).then(function (m) {
|
|
286081
286446
|
return m.WformLayout;
|
|
286082
286447
|
});
|
|
286083
286448
|
}],
|
|
@@ -286289,7 +286654,7 @@ var asyncComponents = [
|
|
|
286289
286654
|
}],
|
|
286290
286655
|
// ========== 工作流设计器 + 系统设计器 ==========
|
|
286291
286656
|
['WflowDesigner', function () {
|
|
286292
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286657
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 94714));
|
|
286293
286658
|
}], ['ImportWf', function () {
|
|
286294
286659
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 76341));
|
|
286295
286660
|
}], ['WflowTrace', function () {
|
|
@@ -286362,10 +286727,10 @@ var WfengineModule = function WfengineModule() {
|
|
|
286362
286727
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 99932));
|
|
286363
286728
|
};
|
|
286364
286729
|
var WflowformModule = function WflowformModule() {
|
|
286365
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286730
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 82088));
|
|
286366
286731
|
};
|
|
286367
286732
|
var WflowDesignerModule = function WflowDesignerModule() {
|
|
286368
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
286733
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 94714));
|
|
286369
286734
|
};
|
|
286370
286735
|
var WflowTraceModule = function WflowTraceModule() {
|
|
286371
286736
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 50106));
|