From 65a8730c2ab41a15dafa264f7dc15c27d216601a Mon Sep 17 00:00:00 2001 From: moklick Date: Mon, 20 Oct 2025 15:18:54 +0200 Subject: [PATCH] chore(tsdocs): adjustments --- packages/react/src/types/instance.ts | 20 ++++++++++---------- packages/system/src/types/edges.ts | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/react/src/types/instance.ts b/packages/react/src/types/instance.ts index b9954fa2..0a8ab470 100644 --- a/packages/react/src/types/instance.ts +++ b/packages/react/src/types/instance.ts @@ -228,16 +228,16 @@ export type GeneralHelpers NodeConnection[]; - // /** - // * Fits the view. - // * - // * @param options.padding - optional padding - // * @param options.includeHiddenNodes - optional includeHiddenNodes - // * @param options.minZoom - optional minZoom - // * @param options.maxZoom - optional maxZoom - // * @param options.duration - optional duration. If set, a transition will be applied - // * @param options.nodes - optional nodes to fit the view to - // */ + /** + * Fits the view based on the passed params. By default it fits the view to all nodes. + * + * @param options.padding - optional padding + * @param options.nodes - optional nodes to fit the view to + * @param options.minZoom - optional minZoom + * @param options.maxZoom - optional maxZoom + * @param options.duration - optional duration. If set, a transition will be applied + * @param options.includeHiddenNodes - optional includeHiddenNodes + */ fitView: FitView; }; /** diff --git a/packages/system/src/types/edges.ts b/packages/system/src/types/edges.ts index 20e43eda..2d6328c2 100644 --- a/packages/system/src/types/edges.ts +++ b/packages/system/src/types/edges.ts @@ -136,11 +136,11 @@ export type EdgeToolbarBaseProps = { */ edgeId: string; /** - * The `x` position of the edge label. + * The `x` position of the edge toolbar. */ x: number; /** - * The `y` position of the edge label. + * The `y` position of the edge toolbar. */ y: number; /** If `true`, edge toolbar is visible even if edge is not selected.