BlockSuite API Documentation / @blocksuite/affine-model / StyleTwo
Class: StyleTwo
Extends
Constructors
new StyleTwo()
new StyleTwo():
StyleTwo
Returns
Inherited from
MindmapStyleGetter.constructor
Properties
root
readonlyroot:object
color
color:
ShapeFillColor=ShapeFillColor.Black
fillColor
fillColor:
ShapeFillColor=ShapeFillColor.Orange
filled
filled:
boolean=true
fontFamily
fontFamily:
FontFamily=FontFamily.Poppins
fontSize
fontSize:
number=18
fontWeight
fontWeight:
FontWeight=FontWeight.SemiBold
padding
padding: [
number,number]
radius
radius:
number=3
shadow
shadow:
object
shadow.blur
shadow.blur:
number=0
shadow.color
shadow.color:
string='--affine-black'
shadow.offsetX
shadow.offsetX:
number=3
shadow.offsetY
shadow.offsetY:
number=3
strokeColor
strokeColor:
string='--affine-black'
strokeWidth
strokeWidth:
number=3
textResizing
textResizing:
TextResizing=TextResizing.AUTO_WIDTH_AND_HEIGHT
Overrides
Defined in
packages/affine/model/src/elements/mindmap/style.ts:149
Methods
getNodeStyle()
getNodeStyle(
_,path):object
Parameters
_
path
number[]
Returns
object
connector
connector:
ConnectorStyle
node
node:
NodeStyle
Overrides
MindmapStyleGetter.getNodeStyle
Defined in
packages/affine/model/src/elements/mindmap/style.ts:181