Skip to content

BlockSuite API Documentation / @blocksuite/blocks / StyleFour

Class: StyleFour

Extends

Constructors

new StyleFour()

new StyleFour(): StyleFour

Returns

StyleFour

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

strokeColor

strokeColor: string

strokeWidth

strokeWidth: number

textResizing

textResizing: TextResizing

Overrides

MindmapStyleGetter.root

Defined in

packages/affine/model/dist/elements/mindmap/style.d.ts:281

Methods

getNodeStyle()

getNodeStyle(_, path): object

Parameters

_

MindmapNode

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

collapseButton.strokeWidth

collapseButton.strokeWidth: number

collapseButton.width

collapseButton.width: number

connector

connector: object

connector.mode

connector.mode: ConnectorMode

connector.stroke

connector.stroke: ShapeFillColor

connector.strokeStyle

connector.strokeStyle: StrokeStyle

connector.strokeWidth

connector.strokeWidth: number

expandButton

expandButton: object

expandButton.color

expandButton.color: string

expandButton.fillColor

expandButton.fillColor: ShapeFillColor

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

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.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:295