JavaScript & React libraryAPIInterfacesCosmographButtonFitViewConfigInterface

Interface: CosmographButtonFitViewConfigInterface

Extends

Properties

duration?

optional duration: number

Specifies the duration of the animation in milliseconds.

Default

250

padding?

optional padding: number

Specifies the padding around the graph in the viewport viewport.

Default

0.1

onClick()?

optional onClick: () => void

Specifies a handler that is called when a button is clicked.

Returns

void

Inherited from

ButtonConfigInterface.onClick


iconSvg?

optional iconSvg: string

Specifies the icon to be displayed on the button.

Inherited from

ButtonConfigInterface.iconSvg


description?

optional description: string

Specifies the description to be displayed on the button.

Inherited from

ButtonConfigInterface.description