Skip to content

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

Class: Frame ​

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

Frame: area with a title above it, its shapes are moved with it and cut at its edges. Group of its box, its title and a group of its shapes (cut), its box is its client rect (transformer, selection, snapping, export): title and shapes out of it are not counted.

Extends ​

  • Group

Constructors ​

Constructor ​

new Frame(config?): Frame

Defined in: node_modules/konva/lib/Node.d.ts:124

Parameters ​

config? ​

GroupConfig

Returns ​

Frame

Inherited from ​

Group.constructor

Properties ​

frame ​

readonly frame: true = true

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

Not a group of shapes (types)

Methods ​

getClientRect() ​

getClientRect(config?): IRect

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

Box of the frame, title and shapes out of it not counted (transformer, selection, snapping, export), drawn rect for konva drawing (cache)

Parameters ​

config? ​

GetClientRectConfig = {}

konva options: relativeTo (absolute by default), skipTransform (own coordinates)

Returns ​

IRect

box of the frame, rect of everything drawn for konva drawing

Overrides ​

Group.getClientRect