import{_ as e,c as t,o as r,a}from"./app.8e8712eb.js";const g='{"title":"Module: features/trees/tree","description":"","frontmatter":{},"headers":[{"level":2,"title":"Interfaces","slug":"interfaces"},{"level":2,"title":"Type aliases","slug":"type-aliases"},{"level":3,"title":"GenericTree","slug":"generictree"},{"level":3,"title":"GenericTreeNode","slug":"generictreenode"},{"level":3,"title":"ResetPropagation","slug":"resetpropagation"},{"level":3,"title":"Tree","slug":"tree"},{"level":3,"title":"TreeNode","slug":"treenode"},{"level":2,"title":"Variables","slug":"variables"},{"level":3,"title":"TreeNodeType","slug":"treenodetype"},{"level":3,"title":"TreeType","slug":"treetype"},{"level":2,"title":"Functions","slug":"functions"},{"level":3,"title":"branchedResetPropagation","slug":"branchedresetpropagation"},{"level":3,"title":"createResourceTooltip","slug":"createresourcetooltip"},{"level":3,"title":"createTree","slug":"createtree"},{"level":3,"title":"createTreeNode","slug":"createtreenode"},{"level":3,"title":"defaultResetPropagation","slug":"defaultresetpropagation"},{"level":3,"title":"invertedResetPropagation","slug":"invertedresetpropagation"}],"relativePath":"api/modules/features/trees/tree.md"}',d={},o=a('
\u01AC GenericTree: Replace
<Tree
<TreeOptions
>, { visibility
: ProcessedComputable
<Visibility
> }>
profectus/src/features/trees/tree.ts:161
\u01AC GenericTreeNode: Replace
<TreeNode
<TreeNodeOptions
>, { canClick
: ProcessedComputable
<boolean
> ; visibility
: ProcessedComputable
<Visibility
> }>
profectus/src/features/trees/tree.ts:68
\u01AC ResetPropagation: (tree
: GenericTree
, resettingNode
: GenericTreeNode
) => void
\u25B8 (tree
, resettingNode
): void
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
void
profectus/src/features/trees/tree.ts:210
\u01AC 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
> }>
Name | Type |
---|---|
T | extends TreeOptions |
profectus/src/features/trees/tree.ts:150
\u01AC 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"
]> ; tooltip
: GetComputableType
<T
["tooltip"
]> ; visibility
: GetComputableTypeWithDefault
<T
["visibility"
], Visible
> }>
Name | Type |
---|---|
T | extends TreeNodeOptions |
profectus/src/features/trees/tree.ts:53
\u2022 Const
TreeNodeType: typeof TreeNodeType
profectus/src/features/trees/tree.ts:29
\u2022 Const
TreeType: typeof TreeType
profectus/src/features/trees/tree.ts:30
\u25B8 branchedResetPropagation(tree
, resettingNode
): void
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
void
profectus/src/features/trees/tree.ts:236
\u25B8 createResourceTooltip(resource
, requiredResource?
, requirement?
): Ref
<string
>
Name | Type | Default value |
---|---|---|
resource | Resource <DecimalSource > | undefined |
requiredResource | null | Resource <DecimalSource > | null |
requirement | Computable <DecimalSource > | 0 |
Ref
<string
>
profectus/src/features/trees/tree.ts:271
\u25B8 createTree<T
>(optionsFunc
): Tree
<T
>
Name | Type |
---|---|
T | extends TreeOptions |
Name | Type |
---|---|
optionsFunc | () => T & ThisType <Tree <T >> |
Tree
<T
>
profectus/src/features/trees/tree.ts:168
\u25B8 createTreeNode<T
>(optionsFunc
): TreeNode
<T
>
Name | Type |
---|---|
T | extends TreeNodeOptions |
Name | Type |
---|---|
optionsFunc | () => T & ThisType <TreeNode <T >> |
TreeNode
<T
>
profectus/src/features/trees/tree.ts:76
\u25B8 defaultResetPropagation(tree
, resettingNode
): void
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
void
profectus/src/features/trees/tree.ts:214
\u25B8 invertedResetPropagation(tree
, resettingNode
): void
Name | Type |
---|---|
tree | GenericTree |
resettingNode | GenericTreeNode |
void