Skip to content

API > @blocksuite/blocks > IText

Interface: IText ​

Extends ​

  • ISurfaceElement

Properties ​

batch ​

batch: null | string

Defined In ​

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

Inherited from ​

ISurfaceElement.batch


bold ​

bold: boolean

Defined In ​

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


color ​

color: string

Defined In ​

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


fontFamily ​

fontFamily: string

Defined In ​

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


fontSize ​

fontSize: number

Defined In ​

packages/blocks/src/surface-block/elements/text/types.ts:11


hasMaxWidth ​

optional hasMaxWidth: boolean

Defined In ​

packages/blocks/src/surface-block/elements/text/types.ts:16


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


italic ​

italic: boolean

Defined In ​

packages/blocks/src/surface-block/elements/text/types.ts:15


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


text ​

text: Text

Defined In ​

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


textAlign ​

textAlign: "center" | "left" | "right"

Defined In ​

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


type ​

type: TEXT

Defined In ​

packages/blocks/src/surface-block/elements/text/types.ts:7

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