Here is a quicky to start 2017 from the right foot. The question has been asked by one of our customer: "How do you hide completely some viewer components?"
When using viewer.hide or viewer.isolate, the default behaviour is that the invisible nodes will be ghosted, they are transparent but you can still see them and if you have a lot of hidden components this may somehow bloat the display of the visible ones.
This pithy piece of code illustrates how to use visibilityManager.setNodeOff to implement a custom isolate function that will completely hide the unwanted nodes. In order to restore the visibility for all nodes, simply invoke the method again with an empty array [ ] (or no third argument at all since its defaulted already). The code is written using ES6 syntax:
Examples with and without ghosting: