BlockSuite API Documentation / @blocksuite/blocks / IText
Interface: IText ​
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/text/types.ts:18
fontFamily ​
fontFamily:
CanvasTextFontFamily
Source ​
packages/blocks/src/surface-block/elements/text/types.ts:20
fontSize ​
fontSize:
number
Source ​
packages/blocks/src/surface-block/elements/text/types.ts:19
fontStyle? ​
fontStyle?:
CanvasTextFontStyle
Source ​
packages/blocks/src/surface-block/elements/text/types.ts:22
fontWeight? ​
fontWeight?:
CanvasTextFontWeight
Source ​
packages/blocks/src/surface-block/elements/text/types.ts:21
hasMaxWidth? ​
hasMaxWidth?:
boolean
Source ​
packages/blocks/src/surface-block/elements/text/types.ts:24
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
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
text ​
text:
Text
Source ​
packages/blocks/src/surface-block/elements/text/types.ts:17
textAlign ​
textAlign:
"center"
|"left"
|"right"
Source ​
packages/blocks/src/surface-block/elements/text/types.ts:23
type ​
type:
TEXT
Overrides ​
ISurfaceElement.type
Source ​
packages/blocks/src/surface-block/elements/text/types.ts:15
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