Skip to content

BlockSuite API Documentation / @blocksuite/blocks / IBrush

Interface: IBrush ​

Contents ​

Extends ​

  • ISurfaceElement

Properties ​

batch ​

batch: null | string

Inherited from ​

ISurfaceElement.batch

Source ​

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


color ​

color: string

Source ​

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


id ​

id: string

Inherited from ​

ISurfaceElement.id

Source ​

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


index ​

index: string

Inherited from ​

ISurfaceElement.index

Source ​

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


lineWidth ​

lineWidth: number

Source ​

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


points ​

points: number[][]

Source ​

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


rotate ​

rotate: number

Inherited from ​

ISurfaceElement.rotate

Source ​

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


seed ​

seed: number

Inherited from ​

ISurfaceElement.seed

Source ​

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


type ​

type: BRUSH

Overrides ​

ISurfaceElement.type

Source ​

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


xywh ​

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

Inherited from ​

ISurfaceElement.xywh

Source ​

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


Generated using typedoc-plugin-markdown and TypeDoc