Skip to main content

Interface: ZoomControlProps

Properties for ZoomControl component

Properties

animationDuration

Optional animationDuration: number

Number of ms for the zoom animation (default is 200ms)

Defined in

packages/core/src/components/controls/ZoomControl.tsx:27


children

Optional children: [Element, Element, Element]

It's possible to customize the button, by passing to JSX Element. First one is for the "zoom in", second for "zoom out" and third for "view whole graph". Example :

<ZoomControl>
<BsZoomIn />
<BsZoomOut />
<BiReset />
</FullScreenControl>

Defined in

packages/core/src/components/controls/ZoomControl.tsx:41


className

Optional className: string

HTML class that will be added to all div button wrapper

Defined in

packages/core/src/components/controls/ZoomControl.tsx:17


labels

Optional labels: Object

Map of the labels we use in the component. This is usefull for I18N

Type declaration

NameType
resetundefined | string
zoomInundefined | string
zoomOutundefined | string

Defined in

packages/core/src/components/controls/ZoomControl.tsx:47


style

Optional style: CSSProperties

HTML CSS style that will be added to all div button wrapper

Defined in

packages/core/src/components/controls/ZoomControl.tsx:22