centerSelectionAroundPoint

See source code

Repositions selected shapes do that the center of the group is at the provided position

function centerSelectionAroundPoint(editor: Editor, position: VecLike): void

Parameters

NameDescription

editor

The editor instance

position

the point to center the shapes around

Returns

void
Prev
useSyncDemo
Next
containBoxSize