BlockSuite API Documentation / @blocksuite/affine-model / StyleFour
Class: StyleFour
Defined in: packages/affine/model/src/elements/mindmap/style.ts:409
Extends
Constructors
new StyleFour()
new StyleFour():
StyleFour
Returns
StyleFour
Inherited from
MindmapStyleGetter.constructor
Properties
root
readonlyroot:object
Defined in: packages/affine/model/src/elements/mindmap/style.ts:419
color
color:
string| {normal:string; } | {dark:string;light:string; } =DefaultTheme.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
Methods
getNodeStyle()
getNodeStyle(
_,path):object
Defined in: packages/affine/model/src/elements/mindmap/style.ts:442
Parameters
_
path
number[]
Returns
object
collapseButton
collapseButton:
object
collapseButton.fillColor
collapseButton.fillColor:
string=DefaultTheme.pureWhite
collapseButton.filled
collapseButton.filled:
boolean=true
collapseButton.height
collapseButton.height:
number=16
collapseButton.radius
collapseButton.radius:
number=0.5
collapseButton.strokeColor
collapseButton.strokeColor:
string| {normal:string; } | {dark:string;light:string; } =stroke
collapseButton.strokeWidth
collapseButton.strokeWidth:
number=3
collapseButton.width
collapseButton.width:
number=16
connector
connector:
object
connector.mode
connector.mode:
ConnectorMode=ConnectorMode.Curve
connector.stroke
connector.stroke:
string| {normal:string; } | {dark:string;light:string; }
connector.strokeStyle
connector.strokeStyle:
StrokeStyle=StrokeStyle.Solid
connector.strokeWidth
connector.strokeWidth:
number=3
expandButton
expandButton:
object
expandButton.color
expandButton.color:
string=DefaultTheme.pureWhite
expandButton.fillColor
expandButton.fillColor:
string| {normal:string; } | {dark:string;light:string; } =stroke
expandButton.filled
expandButton.filled:
boolean=true
expandButton.fontFamily
expandButton.fontFamily:
FontFamily=FontFamily.Inter
expandButton.fontSize
expandButton.fontSize:
number=15
expandButton.fontWeight
expandButton.fontWeight:
FontWeight=FontWeight.Bold
expandButton.height
expandButton.height:
number=24
expandButton.padding
expandButton.padding:
number[]
expandButton.radius
expandButton.radius:
number=8
expandButton.strokeColor
expandButton.strokeColor:
string| {normal:string; } | {dark:string;light:string; } =stroke
expandButton.strokeWidth
expandButton.strokeWidth:
number=0
expandButton.width
expandButton.width:
number=24
node
node:
object
node.color
node.color:
string| {normal:string; } | {dark:string;light:string; } =DefaultTheme.black
node.fillColor
node.fillColor:
string='transparent'
node.filled
node.filled:
boolean=true
node.fontFamily
node.fontFamily:
FontFamily=FontFamily.Kalam
node.fontSize
node.fontSize:
number=18
node.fontWeight
node.fontWeight:
FontWeight=FontWeight.Bold
node.padding
node.padding: [
number,number]
node.radius
node.radius:
number=0
node.strokeColor
node.strokeColor:
string='transparent'
node.strokeWidth
node.strokeWidth:
number=0
node.textResizing
node.textResizing:
TextResizing=TextResizing.AUTO_WIDTH_AND_HEIGHT