ecinc-cloud-wappaio 9.6.36 → 9.6.38

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.
@@ -17480,13 +17480,25 @@ var addNodeBtnClick = function addNodeBtnClick($scope, event, btn) {
17480
17480
  connectLine.firstEndpoints = [conn.anchor.x, conn.anchor.y, -1, 0];
17481
17481
  connectLine.secondEndpoints = [0.5, 0, 0, 0];
17482
17482
  }
17483
+ var srcElement = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + conn.elementId);
17484
+ if (conn.anchor.x === 0 || conn.anchor.x === 1) {
17485
+ if (!srcElement.hasClass('ptjd') && !srcElement.hasClass('jzjd') && !srcElement.hasClass('drbx') && !srcElement.hasClass('drcx') && !srcElement.hasClass('hqjd') && !srcElement.hasClass('ywjd')) {
17486
+ //源节点非人工节点
17487
+ position.top += -10;
17488
+ }
17489
+ } else if (conn.anchor.y === 0 || conn.anchor.y === 1) {
17490
+ if (!srcElement.hasClass('ptjd') && !srcElement.hasClass('jzjd') && !srcElement.hasClass('drbx') && !srcElement.hasClass('drcx') && !srcElement.hasClass('hqjd') && !srcElement.hasClass('ywjd') && !srcElement.hasClass('jcjd')) {
17491
+ //源节点非人工节点
17492
+ position.left += -40;
17493
+ }
17494
+ }
17483
17495
  if (btn.selectedItemType !== 'ptjd' && btn.selectedItemType !== 'jzjd' && btn.selectedItemType !== 'drbx' && btn.selectedItemType !== 'drcx' && btn.selectedItemType !== 'hqjd' && btn.selectedItemType !== 'ywjd' && btn.selectedItemType !== 'jcjd') {
17484
17496
  //非人工节点
17485
17497
  if (conn.anchor.x === 0 || conn.anchor.x === 1) {
17486
17498
  //左、右侧添加新节点,调整top值
17487
17499
  position.top += 10;
17488
17500
  if (conn.anchor.x === 0) position.left += 60;
17489
- } else {
17501
+ } else if (conn.anchor.y === 0 || conn.anchor.y === 1) {
17490
17502
  //顶部、底部添加新节点,调整left值
17491
17503
  position.left += 40;
17492
17504
  if (conn.anchor.y === 0) position.top += 20;
@@ -17490,13 +17490,25 @@ var addNodeBtnClick = function addNodeBtnClick($scope, event, btn) {
17490
17490
  connectLine.firstEndpoints = [conn.anchor.x, conn.anchor.y, -1, 0];
17491
17491
  connectLine.secondEndpoints = [0.5, 0, 0, 0];
17492
17492
  }
17493
+ var srcElement = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + conn.elementId);
17494
+ if (conn.anchor.x === 0 || conn.anchor.x === 1) {
17495
+ if (!srcElement.hasClass('ptjd') && !srcElement.hasClass('jzjd') && !srcElement.hasClass('drbx') && !srcElement.hasClass('drcx') && !srcElement.hasClass('hqjd') && !srcElement.hasClass('ywjd')) {
17496
+ //源节点非人工节点
17497
+ position.top += -10;
17498
+ }
17499
+ } else if (conn.anchor.y === 0 || conn.anchor.y === 1) {
17500
+ if (!srcElement.hasClass('ptjd') && !srcElement.hasClass('jzjd') && !srcElement.hasClass('drbx') && !srcElement.hasClass('drcx') && !srcElement.hasClass('hqjd') && !srcElement.hasClass('ywjd') && !srcElement.hasClass('jcjd')) {
17501
+ //源节点非人工节点
17502
+ position.left += -40;
17503
+ }
17504
+ }
17493
17505
  if (btn.selectedItemType !== 'ptjd' && btn.selectedItemType !== 'jzjd' && btn.selectedItemType !== 'drbx' && btn.selectedItemType !== 'drcx' && btn.selectedItemType !== 'hqjd' && btn.selectedItemType !== 'ywjd' && btn.selectedItemType !== 'jcjd') {
17494
17506
  //非人工节点
17495
17507
  if (conn.anchor.x === 0 || conn.anchor.x === 1) {
17496
17508
  //左、右侧添加新节点,调整top值
17497
17509
  position.top += 10;
17498
17510
  if (conn.anchor.x === 0) position.left += 60;
17499
- } else {
17511
+ } else if (conn.anchor.y === 0 || conn.anchor.y === 1) {
17500
17512
  //顶部、底部添加新节点,调整left值
17501
17513
  position.left += 40;
17502
17514
  if (conn.anchor.y === 0) position.top += 20;