Skip to content

BlockSuite API Documentation / @blocksuite/blocks / StyleThree

Class: StyleThree

Extends

Constructors

new StyleThree()

new StyleThree(): StyleThree

Returns

StyleThree

Inherited from

MindmapStyleGetter.constructor

Properties

root

readonly root: object

color

color: ShapeFillColor

fillColor

fillColor: ShapeFillColor

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

MindmapStyleGetter.root

Defined in

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

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

collapseButton.strokeWidth

collapseButton.strokeWidth: number

collapseButton.width

collapseButton.width: number

connector

connector: object

connector.mode

connector.mode: ConnectorMode

connector.stroke

connector.stroke: LineColor

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

node.fillColor

node.fillColor: ShapeFillColor

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

node.strokeWidth

node.strokeWidth: number

node.textResizing

node.textResizing: TextResizing

Overrides

MindmapStyleGetter.getNodeStyle

Defined in

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