BlockSuite API Documentation / @blocksuite/affine-model / StyleFour
Class: StyleFour
Extends
Constructors
new StyleFour()
new StyleFour():
StyleFour
Returns
Inherited from
MindmapStyleGetter
.constructor
Properties
root
readonly
root:object
color
color:
string
='--affine-black'
fillColor
fillColor:
string
='transparent'
filled
filled:
boolean
=true
fontFamily
fontFamily:
FontFamily
=FontFamily.Kalam
fontSize
fontSize:
number
=22
fontWeight
fontWeight:
FontWeight
=FontWeight.Bold
padding
padding: [
number
,number
]
radius
radius:
number
=0
strokeColor
strokeColor:
string
='transparent'
strokeWidth
strokeWidth:
number
=0
textResizing
textResizing:
TextResizing
=TextResizing.AUTO_WIDTH_AND_HEIGHT
Overrides
Defined in
packages/affine/model/src/elements/mindmap/style.ts:312
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:335