style

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".

categorystringCategory name to target.
visiblebooleantrue to show, false to hide all nodes in that category.

Returns: Promise<void>

Example

await api.style.setCategoryVisibility("Ghost", false);