Skip to content
On this page

Module: features/boards/board

Components

Enumerations

Interfaces

Type Aliases

Board

Ƭ Board<T>: Replace<T & BaseBoard, { classes: GetComputableType<T["classes"]> ; height: GetComputableType<T["height"]> ; style: GetComputableType<T["style"]> ; types: Record<string, GenericNodeType> ; visibility: GetComputableTypeWithDefault<T["visibility"], Visible> ; width: GetComputableType<T["width"]> }>

Type parameters

NameType
Textends BoardOptions

Defined in

profectus/src/features/boards/board.ts:180


BoardData

Ƭ BoardData: Object

Type declaration

NameType
nodesBoardNode[]
selectedActionstring | null
selectedNodenumber | null

Defined in

profectus/src/features/boards/board.ts:64


BoardNodeAction

Ƭ BoardNodeAction<T>: Replace<T & BaseBoardNodeAction, { fillColor: GetComputableType<T["fillColor"]> ; icon: GetComputableType<T["icon"]> ; links: GetComputableType<T["links"]> ; tooltip: GetComputableType<T["tooltip"]> ; visibility: GetComputableTypeWithDefault<T["visibility"], Visible> }>

Type parameters

NameType
Textends BoardNodeActionOptions

Defined in

profectus/src/features/boards/board.ts:141


GenericBoard

Ƭ GenericBoard: Replace<Board<BoardOptions>, { visibility: ProcessedComputable<Visibility> }>

Defined in

profectus/src/features/boards/board.ts:192


GenericBoardNodeAction

Ƭ GenericBoardNodeAction: Replace<BoardNodeAction<BoardNodeActionOptions>, { visibility: NodeComputable<Visibility> }>

Defined in

profectus/src/features/boards/board.ts:152


GenericNodeType

Ƭ GenericNodeType: Replace<NodeType<NodeTypeOptions>, { actionDistance: NodeComputable<number> ; canAccept: NodeComputable<boolean> ; draggable: NodeComputable<boolean> ; progressColor: NodeComputable<string> ; progressDisplay: NodeComputable<ProgressDisplay> ; shape: NodeComputable<Shape> ; size: NodeComputable<number> }>

Defined in

profectus/src/features/boards/board.ts:114


NodeComputable

Ƭ NodeComputable<T>: Computable<T> | (node: BoardNode) => T

Type parameters

Name
T

Defined in

profectus/src/features/boards/board.ts:29


NodeType

Ƭ NodeType<T>: Replace<T & BaseNodeType, { actionDistance: GetComputableTypeWithDefault<T["actionDistance"], number> ; actions?: GenericBoardNodeAction[] ; canAccept: GetComputableTypeWithDefault<T["canAccept"], false> ; draggable: GetComputableTypeWithDefault<T["draggable"], false> ; fillColor: GetComputableType<T["fillColor"]> ; label: GetComputableType<T["label"]> ; outlineColor: GetComputableType<T["outlineColor"]> ; progress: GetComputableType<T["progress"]> ; progressColor: GetComputableTypeWithDefault<T["progressColor"], "none"> ; progressDisplay: GetComputableTypeWithDefault<T["progressDisplay"], Fill> ; shape: GetComputableTypeWithDefault<T["shape"], Circle> ; size: GetComputableTypeWithDefault<T["size"], 50> ; title: GetComputableType<T["title"]> ; titleColor: GetComputableType<T["titleColor"]> }>

Type parameters

NameType
Textends NodeTypeOptions

Defined in

profectus/src/features/boards/board.ts:94

Variables

BoardType

Const BoardType: typeof BoardType

Defined in

profectus/src/features/boards/board.ts:27

Functions

createBoard

createBoard<T>(optionsFunc): Board<T>

Type parameters

NameType
Textends BoardOptions

Parameters

NameType
optionsFuncOptionsFunc<T, BaseBoard, GenericBoard>

Returns

Board<T>


getNodeProperty

getNodeProperty<T>(property, node): T

Type parameters

Name
T

Parameters

NameType
propertyNodeComputable<T>
nodeBoardNode

Returns

T


getUniqueNodeID

getUniqueNodeID(board): number

Parameters

NameType
boardGenericBoard

Returns

number