Skip to content

API > @blocksuite/blocks > IBrush

Interface: IBrush ​

Extends ​

  • ISurfaceElement

Properties ​

batch ​

batch: null | string

Defined In ​

packages/blocks/src/surface-block/elements/surface-element.ts:32

Inherited from ​

ISurfaceElement.batch


color ​

color: string

Defined In ​

packages/blocks/src/surface-block/elements/brush/types.ts:9


id ​

id: string

Defined In ​

packages/blocks/src/surface-block/elements/surface-element.ts:24

Inherited from ​

ISurfaceElement.id


index ​

index: string

Defined In ​

packages/blocks/src/surface-block/elements/surface-element.ts:27

Inherited from ​

ISurfaceElement.index


lineWidth ​

lineWidth: number

Defined In ​

packages/blocks/src/surface-block/elements/brush/types.ts:10


points ​

points: number[][]

Defined In ​

packages/blocks/src/surface-block/elements/brush/types.ts:8


rotate ​

rotate: number

Defined In ​

packages/blocks/src/surface-block/elements/surface-element.ts:31

Inherited from ​

ISurfaceElement.rotate


seed ​

seed: number

Defined In ​

packages/blocks/src/surface-block/elements/surface-element.ts:28

Inherited from ​

ISurfaceElement.seed


type ​

type: BRUSH

Defined In ​

packages/blocks/src/surface-block/elements/brush/types.ts:5

Overrides ​

ISurfaceElement.type


xywh ​

xywh: `[${number},${number},${number},${number}]`

Defined In ​

packages/blocks/src/surface-block/elements/surface-element.ts:26

Inherited from ​

ISurfaceElement.xywh