BlockSuite API Documentation / @blocksuite/affine-model / StyleTwo
Class: StyleTwo
Extends
Constructors
new StyleTwo()
new StyleTwo():
StyleTwo
Returns
Inherited from
MindmapStyleGetter
.constructor
Properties
root
readonly
root:object
color
color:
ShapeFillColor
=ShapeFillColor.Black
fillColor
fillColor:
ShapeFillColor
=ShapeFillColor.Orange
filled
filled:
boolean
=true
fontFamily
fontFamily:
FontFamily
=FontFamily.Poppins
fontSize
fontSize:
number
=18
fontWeight
fontWeight:
FontWeight
=FontWeight.SemiBold
padding
padding: [
number
,number
]
radius
radius:
number
=3
shadow
shadow:
object
shadow.blur
shadow.blur:
number
=0
shadow.color
shadow.color:
string
='--affine-black'
shadow.offsetX
shadow.offsetX:
number
=3
shadow.offsetY
shadow.offsetY:
number
=3
strokeColor
strokeColor:
string
='--affine-black'
strokeWidth
strokeWidth:
number
=3
textResizing
textResizing:
TextResizing
=TextResizing.AUTO_WIDTH_AND_HEIGHT
Overrides
Defined in
packages/affine/model/src/elements/mindmap/style.ts:198
Methods
getNodeStyle()
getNodeStyle(
_
,path
):object
Parameters
_
path
number
[]
Returns
object
collapseButton
collapseButton:
object
collapseButton.fillColor
collapseButton.fillColor:
string
='--affine-white'
collapseButton.filled
collapseButton.filled:
boolean
=true
collapseButton.height
collapseButton.height:
number
=16
collapseButton.radius
collapseButton.radius:
number
=0.5
collapseButton.strokeColor
collapseButton.strokeColor:
string
='--affine-black'
collapseButton.strokeWidth
collapseButton.strokeWidth:
number
=3
collapseButton.width
collapseButton.width:
number
=16
connector
connector:
object
connector.mode
connector.mode:
ConnectorMode
=ConnectorMode.Orthogonal
connector.stroke
connector.stroke:
string
='--affine-black'
connector.strokeStyle
connector.strokeStyle:
StrokeStyle
=StrokeStyle.Solid
connector.strokeWidth
connector.strokeWidth:
number
=3
expandButton
expandButton:
object
expandButton.color
expandButton.color:
string
='--affine-white'
expandButton.fillColor
expandButton.fillColor:
string
='--affine-black'
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
=2
expandButton.strokeColor
expandButton.strokeColor:
string
='--affine-black'
expandButton.strokeWidth
expandButton.strokeWidth:
number
=0
expandButton.width
expandButton.width:
number
=24
node
node:
object
node.color
node.color:
ShapeFillColor
=ShapeFillColor.Black
node.fillColor
node.fillColor:
string
=color
node.filled
node.filled:
boolean
=true
node.fontFamily
node.fontFamily:
FontFamily
=FontFamily.Poppins
node.fontSize
node.fontSize:
number
=16
node.fontWeight
node.fontWeight:
FontWeight
=FontWeight.SemiBold
node.padding
node.padding: [
number
,number
]
node.radius
node.radius:
number
=3
node.shadow
node.shadow:
object
node.shadow.blur
node.shadow.blur:
number
=0
node.shadow.color
node.shadow.color:
string
='--affine-black'
node.shadow.offsetX
node.shadow.offsetX:
number
=3
node.shadow.offsetY
node.shadow.offsetY:
number
=3
node.strokeColor
node.strokeColor:
string
='--affine-black'
node.strokeWidth
node.strokeWidth:
number
=3
node.textResizing
node.textResizing:
TextResizing
=TextResizing.AUTO_WIDTH_AND_HEIGHT
Overrides
MindmapStyleGetter
.getNodeStyle
Defined in
packages/affine/model/src/elements/mindmap/style.ts:230