Skip to main content

Interface: ZoomControlProps

Defined in: packages/core/src/components/controls/ZoomControl.tsx:13

Properties for ZoomControl component

Properties

animationDuration?

optional animationDuration: number

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

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


children?

optional children: [Element, Element, Element]

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

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>

className?

optional className: string

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

HTML class that will be added to all div button wrapper


labels?

optional labels: object

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

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

reset?

optional reset: string

zoomIn?

optional zoomIn: string

zoomOut?

optional zoomOut: string


style?

optional style: CSSProperties

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

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