@genexus/diagram-editors 0.6.27 → 0.6.28
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/dist/cjs/{editor-1d3375d5.js → editor-9cced5be.js} +18 -9
- package/dist/cjs/gx-bpmn-editor.cjs.entry.js +1 -1
- package/dist/cjs/gx-report-layout-editor.cjs.entry.js +1 -1
- package/dist/collection/components/common/graph.js +18 -9
- package/dist/diagram-editors/diagram-editors.esm.js +1 -1
- package/dist/diagram-editors/{p-296dba2d.system.entry.js → p-2e394866.system.entry.js} +1 -1
- package/dist/diagram-editors/{p-300f6e5f.entry.js → p-463219e1.entry.js} +1 -1
- package/dist/diagram-editors/{p-61952d4a.system.js → p-6ccd3391.system.js} +1 -1
- package/dist/diagram-editors/{p-0864436f.system.entry.js → p-8a30f84f.system.entry.js} +1 -1
- package/dist/diagram-editors/{p-65e1bb89.entry.js → p-ad14c977.entry.js} +1 -1
- package/dist/diagram-editors/{p-1d0bb6c5.js → p-c0e810b9.js} +1 -1
- package/dist/diagram-editors/p-e435d3dc.system.js +1 -1
- package/dist/esm/{editor-a87cdd02.js → editor-80533af4.js} +18 -9
- package/dist/esm/gx-bpmn-editor.entry.js +1 -1
- package/dist/esm/gx-report-layout-editor.entry.js +1 -1
- package/dist/esm-es5/{editor-a87cdd02.js → editor-80533af4.js} +18 -9
- package/dist/esm-es5/gx-bpmn-editor.entry.js +1 -1
- package/dist/esm-es5/gx-report-layout-editor.entry.js +1 -1
- package/package.json +2 -2
|
@@ -93984,7 +93984,7 @@ class Graph extends mx.mxGraph {
|
|
|
93984
93984
|
y: Number.parseFloat(style[mx.mxConstants.STYLE_EXIT_Y])
|
|
93985
93985
|
};
|
|
93986
93986
|
}
|
|
93987
|
-
else if (style[mx.mxConstants.STYLE_ENTRY_X] && style[mx.mxConstants.STYLE_ENTRY_Y]) {
|
|
93987
|
+
else if (!from && style[mx.mxConstants.STYLE_ENTRY_X] && style[mx.mxConstants.STYLE_ENTRY_Y]) {
|
|
93988
93988
|
delta = {
|
|
93989
93989
|
x: Number.parseFloat(style[mx.mxConstants.STYLE_ENTRY_X]),
|
|
93990
93990
|
y: Number.parseFloat(style[mx.mxConstants.STYLE_ENTRY_Y])
|
|
@@ -94008,8 +94008,8 @@ class Graph extends mx.mxGraph {
|
|
|
94008
94008
|
};
|
|
94009
94009
|
}
|
|
94010
94010
|
if (from)
|
|
94011
|
-
return this._getAutoTerminalPoint(fromBounds, toBounds);
|
|
94012
|
-
return this._getAutoTerminalPoint(toBounds, fromBounds);
|
|
94011
|
+
return this._getAutoTerminalPoint(fromBounds, toBounds, from);
|
|
94012
|
+
return this._getAutoTerminalPoint(toBounds, fromBounds, from);
|
|
94013
94013
|
}
|
|
94014
94014
|
_getPointListCenter(points) {
|
|
94015
94015
|
let top = { x: Number.POSITIVE_INFINITY, y: Number.POSITIVE_INFINITY };
|
|
@@ -94029,19 +94029,28 @@ class Graph extends mx.mxGraph {
|
|
|
94029
94029
|
y: top.y + (bottom.y - top.y) / 2,
|
|
94030
94030
|
};
|
|
94031
94031
|
}
|
|
94032
|
-
_getAutoTerminalPoint(bounds, otherBounds) {
|
|
94033
|
-
if (
|
|
94032
|
+
_getAutoTerminalPoint(bounds, otherBounds, from) {
|
|
94033
|
+
if (from) {
|
|
94034
|
+
if (bounds.position.y > otherBounds.position.y + otherBounds.size.height) {
|
|
94035
|
+
if (bounds.position.x + bounds.size.width < otherBounds.position.x)
|
|
94036
|
+
return this._getMiddlePoint(bounds, 'middleRight');
|
|
94037
|
+
if (bounds.position.x > otherBounds.position.x + otherBounds.size.width)
|
|
94038
|
+
return this._getMiddlePoint(bounds, 'middleLeft');
|
|
94039
|
+
return this._getMiddlePoint(bounds, 'middleTop');
|
|
94040
|
+
}
|
|
94034
94041
|
if (bounds.position.x + bounds.size.width < otherBounds.position.x)
|
|
94035
94042
|
return this._getMiddlePoint(bounds, 'middleRight');
|
|
94036
94043
|
if (bounds.position.x > otherBounds.position.x + otherBounds.size.width)
|
|
94037
94044
|
return this._getMiddlePoint(bounds, 'middleLeft');
|
|
94038
|
-
return this._getMiddlePoint(bounds, '
|
|
94045
|
+
return this._getMiddlePoint(bounds, 'middleBottom');
|
|
94039
94046
|
}
|
|
94040
|
-
if (bounds.position.
|
|
94041
|
-
return this._getMiddlePoint(bounds, '
|
|
94047
|
+
if (bounds.position.y > otherBounds.position.y + otherBounds.size.height)
|
|
94048
|
+
return this._getMiddlePoint(bounds, 'middleTop');
|
|
94049
|
+
if (bounds.position.y + bounds.size.height < otherBounds.position.y)
|
|
94050
|
+
return this._getMiddlePoint(bounds, 'middleBottom');
|
|
94042
94051
|
if (bounds.position.x > otherBounds.position.x + otherBounds.size.width)
|
|
94043
94052
|
return this._getMiddlePoint(bounds, 'middleLeft');
|
|
94044
|
-
return this._getMiddlePoint(bounds, '
|
|
94053
|
+
return this._getMiddlePoint(bounds, 'middleRight');
|
|
94045
94054
|
}
|
|
94046
94055
|
_getMiddlePoint(bounds, position) {
|
|
94047
94056
|
switch (position) {
|
|
@@ -300,7 +300,7 @@ export default class Graph extends mx.mxGraph {
|
|
|
300
300
|
y: Number.parseFloat(style[mx.mxConstants.STYLE_EXIT_Y])
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
else if (style[mx.mxConstants.STYLE_ENTRY_X] && style[mx.mxConstants.STYLE_ENTRY_Y]) {
|
|
303
|
+
else if (!from && style[mx.mxConstants.STYLE_ENTRY_X] && style[mx.mxConstants.STYLE_ENTRY_Y]) {
|
|
304
304
|
delta = {
|
|
305
305
|
x: Number.parseFloat(style[mx.mxConstants.STYLE_ENTRY_X]),
|
|
306
306
|
y: Number.parseFloat(style[mx.mxConstants.STYLE_ENTRY_Y])
|
|
@@ -324,8 +324,8 @@ export default class Graph extends mx.mxGraph {
|
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
326
|
if (from)
|
|
327
|
-
return this._getAutoTerminalPoint(fromBounds, toBounds);
|
|
328
|
-
return this._getAutoTerminalPoint(toBounds, fromBounds);
|
|
327
|
+
return this._getAutoTerminalPoint(fromBounds, toBounds, from);
|
|
328
|
+
return this._getAutoTerminalPoint(toBounds, fromBounds, from);
|
|
329
329
|
}
|
|
330
330
|
_getPointListCenter(points) {
|
|
331
331
|
let top = { x: Number.POSITIVE_INFINITY, y: Number.POSITIVE_INFINITY };
|
|
@@ -345,19 +345,28 @@ export default class Graph extends mx.mxGraph {
|
|
|
345
345
|
y: top.y + (bottom.y - top.y) / 2,
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
_getAutoTerminalPoint(bounds, otherBounds) {
|
|
349
|
-
if (
|
|
348
|
+
_getAutoTerminalPoint(bounds, otherBounds, from) {
|
|
349
|
+
if (from) {
|
|
350
|
+
if (bounds.position.y > otherBounds.position.y + otherBounds.size.height) {
|
|
351
|
+
if (bounds.position.x + bounds.size.width < otherBounds.position.x)
|
|
352
|
+
return this._getMiddlePoint(bounds, 'middleRight');
|
|
353
|
+
if (bounds.position.x > otherBounds.position.x + otherBounds.size.width)
|
|
354
|
+
return this._getMiddlePoint(bounds, 'middleLeft');
|
|
355
|
+
return this._getMiddlePoint(bounds, 'middleTop');
|
|
356
|
+
}
|
|
350
357
|
if (bounds.position.x + bounds.size.width < otherBounds.position.x)
|
|
351
358
|
return this._getMiddlePoint(bounds, 'middleRight');
|
|
352
359
|
if (bounds.position.x > otherBounds.position.x + otherBounds.size.width)
|
|
353
360
|
return this._getMiddlePoint(bounds, 'middleLeft');
|
|
354
|
-
return this._getMiddlePoint(bounds, '
|
|
361
|
+
return this._getMiddlePoint(bounds, 'middleBottom');
|
|
355
362
|
}
|
|
356
|
-
if (bounds.position.
|
|
357
|
-
return this._getMiddlePoint(bounds, '
|
|
363
|
+
if (bounds.position.y > otherBounds.position.y + otherBounds.size.height)
|
|
364
|
+
return this._getMiddlePoint(bounds, 'middleTop');
|
|
365
|
+
if (bounds.position.y + bounds.size.height < otherBounds.position.y)
|
|
366
|
+
return this._getMiddlePoint(bounds, 'middleBottom');
|
|
358
367
|
if (bounds.position.x > otherBounds.position.x + otherBounds.size.width)
|
|
359
368
|
return this._getMiddlePoint(bounds, 'middleLeft');
|
|
360
|
-
return this._getMiddlePoint(bounds, '
|
|
369
|
+
return this._getMiddlePoint(bounds, 'middleRight');
|
|
361
370
|
}
|
|
362
371
|
_getMiddlePoint(bounds, position) {
|
|
363
372
|
switch (position) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"./p-29a806fc.js";import{p as r}from"./p-dccd2ba0.js";r().then(r=>e([["p-
|
|
1
|
+
import{b as e}from"./p-29a806fc.js";import{p as r}from"./p-dccd2ba0.js";r().then(r=>e([["p-ad14c977",[[0,"gx-bpmn-editor",{editorHelper:[16],setProperties:[64],setState:[64],getState:[64],copyToClipboard:[64],pasteFromClipboard:[64],undo:[64],redo:[64]}]]],["p-463219e1",[[0,"gx-report-layout-editor",{editorHelper:[16],paperProps:[32],printBlockHeights:[32],insertPrintBlock:[64],setProperties:[64],setPaperProperties:[64],setState:[64],copyToClipboard:[64],pasteFromClipboard:[64],undo:[64],redo:[64]}]]]],r));
|