Module: features/trees/tree

Interfaces

Type aliases

GenericTree

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

Defined in

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


GenericTreeNode

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

Defined in

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


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


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


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

Variables

TreeNodeType

Const TreeNodeType: typeof TreeNodeType

Defined in

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


TreeType

Const TreeType: typeof TreeType

Defined in

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

Functions

branchedResetPropagation

branchedResetPropagation(tree, resettingNode): void

Parameters

NameType
treeGenericTree
resettingNodeGenericTreeNode

Returns

void

Defined in

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


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


createTree

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

Type parameters

NameType
Textends TreeOptions

Parameters

NameType
optionsFuncOptionsFunc<T, BaseTree, GenericTree>

Returns

Tree<T>

Defined in

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


createTreeNode

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

Type parameters

NameType
Textends TreeNodeOptions

Parameters

NameType
optionsFunc?OptionsFunc<T, BaseTreeNode, GenericTreeNode>

Returns

TreeNode<T>

Defined in

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


defaultResetPropagation

defaultResetPropagation(tree, resettingNode): void

Parameters

NameType
treeGenericTree
resettingNodeGenericTreeNode

Returns

void

Defined in

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


invertedResetPropagation

invertedResetPropagation(tree, resettingNode): void

Parameters

NameType
treeGenericTree
resettingNodeGenericTreeNode

Returns

void

Defined in

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