BlockSuite API Documentation / @blocksuite/blocks / StyleOne
Class: StyleOne
Extends
Constructors
new StyleOne()
new StyleOne():
StyleOne
Returns
Inherited from
MindmapStyleGetter
.constructor
Properties
root
readonly
root:object
color
color:
string
fillColor
fillColor:
string
filled
filled:
boolean
fontFamily
fontFamily:
FontFamily
fontSize
fontSize:
number
fontWeight
fontWeight:
FontWeight
padding
padding: [
number
,number
]
radius
radius:
number
shadow
shadow:
object
shadow.blur
shadow.blur:
number
shadow.color
shadow.color:
string
shadow.offsetX
shadow.offsetX:
number
shadow.offsetY
shadow.offsetY:
number
strokeColor
strokeColor:
string
strokeWidth
strokeWidth:
number
Overrides
Defined in
packages/affine/model/dist/elements/mindmap/style.d.ts:40
Methods
getNodeStyle()
getNodeStyle(
_
,path
):object
Parameters
• _: MindmapNode
• path: number
[]
Returns
object
connector
connector:
ConnectorStyle
node
node:
NodeStyle
Overrides
MindmapStyleGetter
.getNodeStyle
Defined in
packages/affine/model/dist/elements/mindmap/style.d.ts:59