BlockSuite API Documentation / @blocksuite/affine-model / StyleOne
Class: StyleOne
Extends
Constructors
new StyleOne()
new StyleOne():
StyleOne
Returns
Inherited from
MindmapStyleGetter
.constructor
Properties
root
readonly
root:object
color
color:
string
='--affine-black'
fillColor
fillColor:
string
='--affine-white'
filled
filled:
boolean
=true
fontFamily
fontFamily:
FontFamily
=FontFamily.Poppins
fontSize
fontSize:
number
=20
fontWeight
fontWeight:
FontWeight
=FontWeight.SemiBold
padding
padding: [
number
,number
]
radius
radius:
number
=8
shadow
shadow:
object
shadow.blur
shadow.blur:
number
=12
shadow.color
shadow.color:
string
='rgba(0, 0, 0, 0.14)'
shadow.offsetX
shadow.offsetX:
number
=0
shadow.offsetY
shadow.offsetY:
number
=6
strokeColor
strokeColor:
string
='#84CFFF'
strokeWidth
strokeWidth:
number
=4
textResizing
textResizing:
TextResizing
=TextResizing.AUTO_WIDTH_AND_HEIGHT
Overrides
Defined in
packages/affine/model/src/elements/mindmap/style.ts:68
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:98