style.setCategoryVisibility
setCategoryVisibility(category: string, visible: boolean): Promise<void>Show or hide all nodes belonging to the given category.
Recorded in history as "SetCategoryVisibility". Does not emit "style:changed".
category | string | Category name to target. |
visible | boolean | true to show, false to hide all nodes in that category. |
Returns: Promise<void>
Example
await api.style.setCategoryVisibility("Ghost", false);