chore(core): lint files
This commit is contained in:
@@ -363,7 +363,7 @@ export function getRectOfNodes(nodes: GraphNode[]) {
|
||||
...dimensions,
|
||||
} as Rect),
|
||||
),
|
||||
{ x: Infinity, y: Infinity, x2: -Infinity, y2: -Infinity },
|
||||
{ x: Number.POSITIVE_INFINITY, y: Number.POSITIVE_INFINITY, x2: Number.NEGATIVE_INFINITY, y2: Number.NEGATIVE_INFINITY },
|
||||
)
|
||||
|
||||
return boxToRect(box)
|
||||
|
||||
@@ -99,7 +99,7 @@ export function getClosestHandle(
|
||||
|
||||
// if we couldn't find a handle below the mouse cursor we look for the closest distance based on the connectionRadius
|
||||
let closestHandles: { handle: ConnectionHandle; validHandleResult: ValidHandleResult }[] = []
|
||||
let minDistance = Infinity
|
||||
let minDistance = Number.POSITIVE_INFINITY
|
||||
|
||||
handles.forEach((handle) => {
|
||||
const distance = Math.sqrt((handle.x - pos.x) ** 2 + (handle.y - pos.y) ** 2)
|
||||
|
||||
Reference in New Issue
Block a user