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
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
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
Name | Type |
---|---|
T | extends 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
Name | Type |
---|---|
T | extends 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
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
Returns
void
Defined in
profectus/src/features/trees/tree.ts:257
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:292
createTree
▸ createTree<T
>(optionsFunc
): Tree
<T
>
Type parameters
Name | Type |
---|---|
T | extends TreeOptions |
Parameters
Name | Type |
---|---|
optionsFunc | OptionsFunc <T , Tree <T >, BaseTree > |
Returns
Tree
<T
>
Defined in
profectus/src/features/trees/tree.ts:189
createTreeNode
▸ createTreeNode<T
>(optionsFunc?
): TreeNode
<T
>
Type parameters
Name | Type |
---|---|
T | extends TreeNodeOptions |
Parameters
Name | Type |
---|---|
optionsFunc? | OptionsFunc <T , TreeNode <T >, BaseTreeNode > |
Returns
TreeNode
<T
>
Defined in
profectus/src/features/trees/tree.ts:75
defaultResetPropagation
▸ defaultResetPropagation(tree
, resettingNode
): void
Parameters
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
Returns
void
Defined in
profectus/src/features/trees/tree.ts:235
invertedResetPropagation
▸ invertedResetPropagation(tree
, resettingNode
): void
Parameters
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
Returns
void