chore(packages): use @reactflow org for packages

This commit is contained in:
moklick
2022-08-29 17:18:05 +02:00
parent 22cb21a4ae
commit 588d8fc02e
23 changed files with 77 additions and 65 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ export const getDimensions = (node: HTMLDivElement): Dimensions => ({
export const clamp = (val: number, min = 0, max = 1): number => Math.min(Math.max(val, min), max);
export const clampPosition = (position: XYPosition, extent: CoordinateExtent) => ({
export const clampPosition = (position: XYPosition = { x: 0, y: 0 }, extent: CoordinateExtent) => ({
x: clamp(position.x, extent[0][0], extent[1][0]),
y: clamp(position.y, extent[0][1], extent[1][1]),
});