BlockSuite API Documentation / @blocksuite/affine-model / ShapeProps
Type Alias: ShapeProps
ShapeProps:
BaseElementProps
&object
&Partial
<TextStyleProps
>
Type declaration
fillColor
fillColor:
Color
filled
filled:
boolean
maxWidth?
optional
maxWidth:false
|number
radius
radius:
number
roughness?
optional
roughness:number
shapeStyle
shapeStyle:
ShapeStyle
shapeType
shapeType:
ShapeType
strokeColor
strokeColor:
Color
strokeStyle
strokeStyle:
StrokeStyle
strokeWidth
strokeWidth:
number
text?
optional
text:Y.Text
textHorizontalAlign?
optional
textHorizontalAlign:TextAlign
textResizing?
optional
textResizing:TextResizing
textVerticalAlign?
optional
textVerticalAlign:TextVerticalAlign
Defined in
packages/affine/model/src/elements/shape/shape.ts:39