Returns node JSON for an interactive representation of an EE ComputedObject.
(
label: str,
children: list[dict[str, Any]] | None = None,
expanded: bool = False,
top_level: bool = False,
)
| 119 | |
| 120 | |
| 121 | def new_tree_node( |
| 122 | label: str, |
| 123 | children: list[dict[str, Any]] | None = None, |
| 124 | expanded: bool = False, |
| 125 | top_level: bool = False, |
| 126 | ) -> dict[str, Any]: |
| 127 | """Returns node JSON for an interactive representation of an EE ComputedObject.""" |
| 128 | return { |
| 129 | "label": label, |
| 130 | "children": children or [], |
| 131 | "expanded": expanded, |
| 132 | "topLevel": top_level, |
| 133 | } |
| 134 | |
| 135 | |
| 136 | def _order_items(item_dict: dict[str, Any], ordering_list: list[str]) -> dict[str, Any]: |
no outgoing calls
no test coverage detected