Merge pull request #3796 from xyflow/improve-type-docs
Improve type docs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user