API > @blocksuite/blocks > IShape
Interface: IShape ​
Extends ​
ISurfaceElement
Properties ​
batch ​
batch:
null
|string
Defined In ​
packages/blocks/src/surface-block/elements/surface-element.ts:32
Inherited from ​
ISurfaceElement.batch
bold ​
optional
bold:boolean
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:38
color ​
optional
color:string
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:32
fillColor ​
fillColor:
string
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:23
filled ​
filled:
boolean
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:22
fontFamily ​
optional
fontFamily:string
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:34
fontSize ​
optional
fontSize:SHAPE_TEXT_FONT_SIZE
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:33
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 ​
optional
italic:boolean
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:39
radius ​
radius:
number
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:21
rotate ​
rotate:
number
Defined In ​
packages/blocks/src/surface-block/elements/surface-element.ts:31
Inherited from ​
ISurfaceElement.rotate
roughness ​
optional
roughness:number
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:29
seed ​
seed:
number
Defined In ​
packages/blocks/src/surface-block/elements/surface-element.ts:28
Inherited from ​
ISurfaceElement.seed
shapeStyle ​
shapeStyle:
ShapeStyle
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:27
shapeType ​
shapeType:
ShapeType
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:20
strokeColor ​
strokeColor:
string
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:25
strokeStyle ​
strokeStyle:
StrokeStyle
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:26
strokeWidth ​
strokeWidth:
number
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:24
text ​
optional
text:Text
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:31
textAlign ​
optional
textAlign:"center"
|"left"
|"right"
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:35
textHorizontalAlign ​
optional
textHorizontalAlign:"center"
|"left"
|"right"
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:36
textVerticalAlign ​
optional
textVerticalAlign:"center"
|"top"
|"bottom"
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:37
type ​
type:
SHAPE
Defined In ​
packages/blocks/src/surface-block/elements/shape/types.ts:19
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