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

Editor;

The editor instance

position

VecLike;

the point to center the shapes around

Returns

void;
Prev
loadSnapshotIntoStorage
Next
clearArrowTargetState