BlockDefinition

The information required to create a new block on the current document


Properties

boundingBox

boundingBox: Box;

The initial location and size of the block on the page.


className

className: string;

The type of block to create, e.g. "ProcessBlock".


fillStyle?

optional fillStyle: SimpleFillStyle;

If specified, the initial FillColor property for the block


lineWidth?

optional lineWidth: number;

If specified, the initial line width for the block


properties?

optional properties: JsonObject;

Additional properties to set on the block immediately after creation. This is not typically
set directly (it's easier and safer to call .properties.set() after block creation) but
is set by EditorClient.getCustomShapeDefinition.


stencil?

optional stencil: JsonSerializable;

If specified, the stencil to use for a custom shape. This is not typically set directly; use
EditorClient.getCustomShapeDefinition.