Skip to content

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

Type Alias: MindmapNode

MindmapNode: object

Type declaration

children

children: MindmapNode[]

detail

detail: NodeDetail

element

element: BlockSuite.SurfaceElementModel

id

id: string

overriddenDir?

optional overriddenDir: LayoutType

This property override the preferredDir or default layout direction. It is used during dragging that would temporary change the layout direction

parent

parent: MindmapNode | null

responseArea?

optional responseArea: Bound

This area is used to determine where to place the dragged node.

When dragging another node into this area, it will become a sibling of the this node. But if it is dragged into the small area located right after the this node, it will become a child of the this node.

Defined in

packages/affine/model/src/elements/mindmap/mindmap.ts:45