From c3dc6d3851749925d63012c331b77deacea32f49 Mon Sep 17 00:00:00 2001 From: moklick Date: Wed, 12 Feb 2025 14:29:20 +0100 Subject: [PATCH] chore(tsdocs): cleanup --- packages/system/src/utils/graph.ts | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/system/src/utils/graph.ts b/packages/system/src/utils/graph.ts index 1bb318d4..b2b1e6e5 100644 --- a/packages/system/src/utils/graph.ts +++ b/packages/system/src/utils/graph.ts @@ -55,7 +55,7 @@ export const isInternalNodeBase = = { /** * Returns the bounding box that contains all the given nodes in an array. This can - *be useful when combined with [`getViewportForBounds`](/api-reference/utils/get-viewport-for-bounds) - *to calculate the correct transform to fit the given nodes in a viewport. + * be useful when combined with [`getViewportForBounds`](/api-reference/utils/get-viewport-for-bounds) + * to calculate the correct transform to fit the given nodes in a viewport. * @public * @remarks Useful when combined with {@link getViewportForBounds} to calculate the correct transform to fit the given nodes in a viewport. * @param nodes - Nodes to calculate the bounds for @@ -212,8 +212,8 @@ export const getNodesBounds = ( currentNode = isId ? params.nodeLookup.get(nodeOrId) : !isInternalNodeBase(nodeOrId) - ? params.nodeLookup.get(nodeOrId.id) - : nodeOrId; + ? params.nodeLookup.get(nodeOrId.id) + : nodeOrId; } const nodeBox = currentNode ? nodeToBox(currentNode, params.nodeOrigin) : { x: 0, y: 0, x2: 0, y2: 0 }; @@ -296,7 +296,8 @@ export const getNodesInside = ( }; /** - * This utility filters an array of edges, keeping only those where either the source or target node is present in the given array of nodes. + * This utility filters an array of edges, keeping only those where either the source or target + * node is present in the given array of nodes. * @public * @param nodes - Nodes you want to get the connected edges for * @param edges - All edges @@ -459,9 +460,9 @@ export async function getElementsToRemove; }): Promise<{ - nodes: NodeType[]; - edges: EdgeType[]; - }> { + nodes: NodeType[]; + edges: EdgeType[]; +}> { const nodeIds = new Set(nodesToRemove.map((node) => node.id)); const matchingNodes: NodeType[] = [];