CreateBlockQuery

type CreateBlockQuery: object;

Type declaration

b?

optional b: object;

If specified, the initial bounding box for the block, set during creation

b.h

h: number;

b.w

w: number;

b.x

x: number;

b.y

y: number;

c

c: string;

Class name of the block to create

p?

optional p: string;

By default, we add the block to the current page & currently active group. If specified, the
block will instead be created as a direct child of the given page.

s?

optional s: UnsafeJsonSerializableOrUndefined;

If specified, the stencil for a custom shape. Only valid if the class name is 'CustomBlock'