Skip to content

BlockSuite API Documentation / @blocksuite/affine-model / StyleFour

Class: StyleFour

Extends

Constructors

new StyleFour()

new StyleFour(): StyleFour

Returns

StyleFour

Inherited from

MindmapStyleGetter.constructor

Properties

root

readonly root: object

color

color: string = '--affine-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

MindmapStyleGetter.root

Defined in

packages/affine/model/src/elements/mindmap/style.ts:415

Methods

getNodeStyle()

getNodeStyle(_, path): object

Parameters

_

MindmapNode

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: ShapeFillColor = 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: ShapeFillColor

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: ShapeFillColor = 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: ShapeFillColor = stroke

expandButton.strokeWidth

expandButton.strokeWidth: number = 0

expandButton.width

expandButton.width: number = 24

node

node: object

node.color

node.color: string = '--affine-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

Overrides

MindmapStyleGetter.getNodeStyle

Defined in

packages/affine/model/src/elements/mindmap/style.ts:438