@uipath/apollo-react 6.64.0 → 6.64.1
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.
|
@@ -193,15 +193,15 @@ function connectorElbow(from, to, incoming) {
|
|
|
193
193
|
y: from.y
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
function clearNodeFace(waypoints, anchor, position) {
|
|
196
|
+
function clearNodeFace(waypoints, anchor, position, end) {
|
|
197
197
|
const dir = getDirection(position);
|
|
198
198
|
const axis = 0 !== dir.dx ? 'x' : 'y';
|
|
199
199
|
const sign = 0 !== dir.dx ? dir.dx : dir.dy;
|
|
200
|
-
const
|
|
201
|
-
const gap = (
|
|
200
|
+
const riser = ('first' === end ? waypoints[0] : waypoints.at(-1))[axis];
|
|
201
|
+
const gap = (riser - anchor[axis]) * sign;
|
|
202
202
|
if (gap >= external_constants_cjs_namespaceObject.EDGE_CONSTANTS.STUB_OFFSET) return waypoints;
|
|
203
203
|
const shift = (external_constants_cjs_namespaceObject.EDGE_CONSTANTS.STUB_OFFSET - gap) * sign;
|
|
204
|
-
return waypoints.map((w)=>Math.abs(w[axis] -
|
|
204
|
+
return waypoints.map((w)=>Math.abs(w[axis] - riser) < TOL ? {
|
|
205
205
|
...w,
|
|
206
206
|
[axis]: w[axis] + shift
|
|
207
207
|
} : w);
|
|
@@ -232,7 +232,7 @@ function buildPathVertices(sourceX, sourceY, sourcePosition, targetX, targetY, t
|
|
|
232
232
|
}
|
|
233
233
|
const startVertex = derived(start);
|
|
234
234
|
const endVertex = derived(end);
|
|
235
|
-
const routed = autoRouted ? clearNodeFace(clearNodeFace(waypoints, start, sourcePosition), end, targetPosition) : waypoints;
|
|
235
|
+
const routed = autoRouted ? clearNodeFace(clearNodeFace(waypoints, start, sourcePosition, 'first'), end, targetPosition, 'last') : waypoints;
|
|
236
236
|
const path = [
|
|
237
237
|
startVertex
|
|
238
238
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Edges/shared/geometry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAGzE,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIlG,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAEnD;AAmBD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEhE;AAyCD,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,QAAQ,EACxB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,QAAQ,GACvB,KAAK,EAAE,CAyCT;AAyBD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAG,KAAK,EAAE,CAoCjG;
|
|
1
|
+
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Edges/shared/geometry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAGzE,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIlG,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAEnD;AAmBD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEhE;AAyCD,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,QAAQ,EACxB,OAAO,EAA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BAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAE/D;AAOD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAkCzD"}
|
|
@@ -152,15 +152,15 @@ function connectorElbow(from, to, incoming) {
|
|
|
152
152
|
y: from.y
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
function clearNodeFace(waypoints, anchor, position) {
|
|
155
|
+
function clearNodeFace(waypoints, anchor, position, end) {
|
|
156
156
|
const dir = getDirection(position);
|
|
157
157
|
const axis = 0 !== dir.dx ? 'x' : 'y';
|
|
158
158
|
const sign = 0 !== dir.dx ? dir.dx : dir.dy;
|
|
159
|
-
const
|
|
160
|
-
const gap = (
|
|
159
|
+
const riser = ('first' === end ? waypoints[0] : waypoints.at(-1))[axis];
|
|
160
|
+
const gap = (riser - anchor[axis]) * sign;
|
|
161
161
|
if (gap >= EDGE_CONSTANTS.STUB_OFFSET) return waypoints;
|
|
162
162
|
const shift = (EDGE_CONSTANTS.STUB_OFFSET - gap) * sign;
|
|
163
|
-
return waypoints.map((w)=>Math.abs(w[axis] -
|
|
163
|
+
return waypoints.map((w)=>Math.abs(w[axis] - riser) < TOL ? {
|
|
164
164
|
...w,
|
|
165
165
|
[axis]: w[axis] + shift
|
|
166
166
|
} : w);
|
|
@@ -191,7 +191,7 @@ function buildPathVertices(sourceX, sourceY, sourcePosition, targetX, targetY, t
|
|
|
191
191
|
}
|
|
192
192
|
const startVertex = derived(start);
|
|
193
193
|
const endVertex = derived(end);
|
|
194
|
-
const routed = autoRouted ? clearNodeFace(clearNodeFace(waypoints, start, sourcePosition), end, targetPosition) : waypoints;
|
|
194
|
+
const routed = autoRouted ? clearNodeFace(clearNodeFace(waypoints, start, sourcePosition, 'first'), end, targetPosition, 'last') : waypoints;
|
|
195
195
|
const path = [
|
|
196
196
|
startVertex
|
|
197
197
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "6.64.
|
|
3
|
+
"version": "6.64.1",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -228,8 +228,8 @@
|
|
|
228
228
|
"zod": "^4.3.5",
|
|
229
229
|
"zustand": "^5.0.9",
|
|
230
230
|
"@uipath/apollo-ui-icons": "1.1.0",
|
|
231
|
-
"@uipath/apollo-
|
|
232
|
-
"@uipath/apollo-
|
|
231
|
+
"@uipath/apollo-wind": "2.57.0",
|
|
232
|
+
"@uipath/apollo-core": "5.15.1"
|
|
233
233
|
},
|
|
234
234
|
"devDependencies": {
|
|
235
235
|
"@lingui/cli": "^5.6.1",
|