Module: features/trees/tree

Interfaces

Type aliases

GenericTree

Ƭ GenericTree: Replace<Tree<TreeOptions>, { visibility: ProcessedComputable<Visibility> }>

Defined in

profectus/src/features/trees/tree.ts:182


GenericTreeNode

Ƭ GenericTreeNode: Replace<TreeNode<TreeNodeOptions>, { canClick: ProcessedComputable<boolean> ; visibility: ProcessedComputable<Visibility> }>

Defined in

profectus/src/features/trees/tree.ts:67


ResetPropagation

Ƭ ResetPropagation: (tree: GenericTree, resettingNode: GenericTreeNode) => void

Type declaration

▸ (tree, resettingNode): void

Parameters
NameType
treeGenericTree
resettingNodeGenericTreeNode
Returns

void

Defined in

profectus/src/features/trees/tree.ts:231


Tree

Ƭ Tree<T>: Replace<T & BaseTree, { branches: GetComputableType<T["branches"]> ; leftSideNodes: GetComputableType<T["leftSideNodes"]> ; nodes: GetComputableType<T["nodes"]> ; rightSideNodes: GetComputableType<T["rightSideNodes"]> ; visibility: GetComputableTypeWithDefault<T["visibility"], Visible> }>

Type parameters

NameType
Textends TreeOptions

Defined in

profectus/src/features/trees/tree.ts:171


TreeNode

Ƭ TreeNode<T>: Replace<T & BaseTreeNode, { canClick: GetComputableTypeWithDefault<T["canClick"], true> ; classes: GetComputableType<T["classes"]> ; color: GetComputableType<T["color"]> ; display: GetComputableType<T["display"]> ; glowColor: GetComputableType<T["glowColor"]> ; mark: GetComputableType<T["mark"]> ; style: GetComputableType<T["style"]> ; visibility: GetComputableTypeWithDefault<T["visibility"], Visible> }>

Type parameters

NameType
Textends TreeNodeOptions

Defined in

profectus/src/features/trees/tree.ts:53

Variables

TreeNodeType

Const TreeNodeType: typeof TreeNodeType

Defined in

profectus/src/features/trees/tree.ts:29


TreeType

Const TreeType: typeof TreeType

Defined in

profectus/src/features/trees/tree.ts:30

Functions

branchedResetPropagation

branchedResetPropagation(tree, resettingNode): void

Parameters

NameType
treeGenericTree
resettingNodeGenericTreeNode

Returns

void

Defined in

profectus/src/features/trees/tree.ts:257


createResourceTooltip

createResourceTooltip(resource, requiredResource?, requirement?): Ref<string>

Parameters

NameTypeDefault value
resourceResource<DecimalSource>undefined
requiredResourcenull | Resource<DecimalSource>null
requirementComputable<DecimalSource>0

Returns

Ref<string>

Defined in

profectus/src/features/trees/tree.ts:292


createTree

createTree<T>(optionsFunc): Tree<T>

Type parameters

NameType
Textends TreeOptions

Parameters

NameType
optionsFuncOptionsFunc<T, Tree<T>, BaseTree>

Returns

Tree<T>

Defined in

profectus/src/features/trees/tree.ts:189


createTreeNode

createTreeNode<T>(optionsFunc?): TreeNode<T>

Type parameters

NameType
Textends TreeNodeOptions

Parameters

NameType
optionsFunc?OptionsFunc<T, TreeNode<T>, BaseTreeNode>

Returns

TreeNode<T>

Defined in

profectus/src/features/trees/tree.ts:75


defaultResetPropagation

defaultResetPropagation(tree, resettingNode): void

Parameters

NameType
treeGenericTree
resettingNodeGenericTreeNode

Returns

void

Defined in

profectus/src/features/trees/tree.ts:235


invertedResetPropagation

invertedResetPropagation(tree, resettingNode): void

Parameters

NameType
treeGenericTree
resettingNodeGenericTreeNode

Returns

void

Defined in

profectus/src/features/trees/tree.ts:246