You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`.load(model)` | Loads a model in the viewer. `model` must be a `JsonModel` object.
28
-
`.get(name)` | Retrieves the model with the name `name`.
28
+
`.get(name)` | Returns the model with the name `name`.
29
+
`.getAll()` | Returns an Array with all the loaded models.
29
30
`.remove(name)` | Removes the model with the name `name`.
31
+
`.removeAll()` | Removes all the loaded models.
30
32
`.hide(name)` | Sets the `visible` property to `false` for the model with the name `name`.
33
+
`.hideAll()` | Sets the `visible` property to `false` for all the loaded models.
31
34
`.show(name)` | Sets the `visible` property to `true` for the model with the name `name`.
35
+
`.showAll()` | Sets the `visible` property to `true` for all the loaded models.
32
36
`.resize()` | Updates the size and the aspect ratio of the viewer. Usualy bound to the `resize` event of the `window` when the viewer takes the whole page.
37
+
`.reset()` | Updates the size and the aspect ratio of the viewer. Usualy bound to the `resize` event of the `window` when the viewer takes the whole page.
0 commit comments