g6/packages/site/docs/apis/behaviors/ScrollCanvasOptions.en.md

718 B

title order
ScrollCanvas 12

allowDragOnItem

Type: boolean | {node?: boolean; edge?: boolean; combo?: boolean}

Default: false

Whether to scroll the canvas when dragging the node, edge or combo

zoomKey

Type: string | string[]

Default: ctrl

The key to trigger zooming

zoomRatio

Type: number

Default: 0.05

The ratio of zooming