Skip to content

@fabwcie/free-drawing / utils/frame / moveShapeTo

Function: moveShapeTo() ​

moveShapeTo(shape, container): void

Defined in: packages/free-drawing/src/utils/frame.ts:210

Move a shape to another container (draw layer or content of a frame), at the same place on screen

Parameters ​

shape ​

DrawingShape

drawing shape to move

container ​

Container

new parent: draw layer or content group of a frame (nothing done when already its parent)

Returns ​

void