Skip to content

BlockSuite API Documentation / @blocksuite/blocks / StyleOne

Class: StyleOne

Extends

Constructors

new StyleOne()

new StyleOne(): StyleOne

Returns

StyleOne

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

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

Methods

getNodeStyle()

getNodeStyle(_, path): object

Parameters

_

MindmapNode

path

number[]

Returns

object

connector

connector: ConnectorStyle

node

node: NodeStyle

Overrides

MindmapStyleGetter.getNodeStyle

Defined in

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