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
textResizing
textResizing:
TextResizing
Overrides
Defined in
packages/affine/model/dist/elements/mindmap/style.d.ts:59
Methods
getNodeStyle()
getNodeStyle(
_
,path
):object
Parameters
_
path
number
[]
Returns
object
collapseButton
collapseButton:
object
collapseButton.fillColor
collapseButton.fillColor:
string
collapseButton.filled
collapseButton.filled:
boolean
collapseButton.height
collapseButton.height:
number
collapseButton.radius
collapseButton.radius:
number
collapseButton.strokeColor
collapseButton.strokeColor:
string
collapseButton.strokeWidth
collapseButton.strokeWidth:
number
collapseButton.width
collapseButton.width:
number
connector
connector:
object
connector.mode
connector.mode:
ConnectorMode
connector.stroke
connector.stroke:
string
connector.strokeStyle
connector.strokeStyle:
StrokeStyle
connector.strokeWidth
connector.strokeWidth:
number
expandButton
expandButton:
object
expandButton.color
expandButton.color:
string
expandButton.fillColor
expandButton.fillColor:
string
expandButton.filled
expandButton.filled:
boolean
expandButton.fontFamily
expandButton.fontFamily:
FontFamily
expandButton.fontSize
expandButton.fontSize:
number
expandButton.fontWeight
expandButton.fontWeight:
FontWeight
expandButton.height
expandButton.height:
number
expandButton.padding
expandButton.padding:
number
[]
expandButton.radius
expandButton.radius:
number
expandButton.strokeColor
expandButton.strokeColor:
string
expandButton.strokeWidth
expandButton.strokeWidth:
number
expandButton.width
expandButton.width:
number
node
node:
object
node.color
node.color:
string
node.fillColor
node.fillColor:
string
node.filled
node.filled:
boolean
node.fontFamily
node.fontFamily:
FontFamily
node.fontSize
node.fontSize:
number
node.fontWeight
node.fontWeight:
FontWeight
node.padding
node.padding: [
number
,number
]
node.radius
node.radius:
number
node.shadow
node.shadow:
object
node.shadow.blur
node.shadow.blur:
number
node.shadow.color
node.shadow.color:
string
node.shadow.offsetX
node.shadow.offsetX:
number
node.shadow.offsetY
node.shadow.offsetY:
number
node.strokeColor
node.strokeColor:
string
node.strokeWidth
node.strokeWidth:
number
node.textResizing
node.textResizing:
TextResizing
Overrides
MindmapStyleGetter
.getNodeStyle
Defined in
packages/affine/model/dist/elements/mindmap/style.d.ts:79