Merge pull request #3796 from xyflow/improve-type-docs

Improve type docs
This commit is contained in:
Moritz Klack
2024-01-16 18:11:03 +01:00
committed by GitHub
20 changed files with 842 additions and 7 deletions
@@ -2,9 +2,16 @@ import type { HTMLButtonAttributes } from 'svelte/elements';
import type { PanelPosition } from '@xyflow/system';
export type ControlsProps = {
/** Position of the controls on the pane
* @example PanelPosition.TopLeft, PanelPosition.TopRight,
* PanelPosition.BottomLeft, PanelPosition.BottomRight
*/
position?: PanelPosition;
/** Show button for zoom in/out */
showZoom?: boolean;
/** Show button for fit view */
showFitView?: boolean;
/** Show button for toggling interactivity */
showLock?: boolean;
buttonBgColor?: string;
buttonBgColorHover?: string;