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
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
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
Name | Type |
---|---|
T | extends 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
Name | Type |
---|---|
T | extends 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
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
Returns
void
Defined in
profectus/src/features/trees/tree.ts:250
createResourceTooltip
▸ createResourceTooltip(resource
, requiredResource?
, requirement?
): Ref
<string
>
Parameters
Name | Type | Default value |
---|---|---|
resource | Resource <DecimalSource > | undefined |
requiredResource | null | Resource <DecimalSource > | null |
requirement | Computable <DecimalSource > | 0 |
Returns
Ref
<string
>
Defined in
profectus/src/features/trees/tree.ts:285
createTree
▸ createTree<T
>(optionsFunc
): Tree
<T
>
Type parameters
Name | Type |
---|---|
T | extends TreeOptions |
Parameters
Name | Type |
---|---|
optionsFunc | OptionsFunc <T , BaseTree , GenericTree > |
Returns
Tree
<T
>
Defined in
profectus/src/features/trees/tree.ts:182
createTreeNode
▸ createTreeNode<T
>(optionsFunc?
): TreeNode
<T
>
Type parameters
Name | Type |
---|---|
T | extends TreeNodeOptions |
Parameters
Name | Type |
---|---|
optionsFunc? | OptionsFunc <T , BaseTreeNode , GenericTreeNode > |
Returns
TreeNode
<T
>
Defined in
profectus/src/features/trees/tree.ts:68
defaultResetPropagation
▸ defaultResetPropagation(tree
, resettingNode
): void
Parameters
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
Returns
void
Defined in
profectus/src/features/trees/tree.ts:228
invertedResetPropagation
▸ invertedResetPropagation(tree
, resettingNode
): void
Parameters
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
Returns
void