SupplyChainControlButtons()
Default buttons for the Controls component that provide actions to interact with the viewport of the supply chain.
This includes the following buttons: zoom in, zoom out, zoom to the original size and fit the graph into the viewport.
function SupplyChain() {
return (
<SupplyChain data={data}>
<Controls buttons={SupplyChainControlButtons}></Controls>
</SupplyChain>
)
}
Returns
Type | Description |
---|---|
ControlButton[] | Returns an array of control buttons. |