toggle MethodStatic
Toggle this decorator for the specified viewport.
toggle(viewport: Viewport, enable?: boolean): Promise<void>
Parameter | Type | Description |
---|---|---|
viewport | Viewport | The viewport to which the effect should be applied or removed. |
enable | boolean | true to enable the effect, false to disable it, or undefined to toggle the current state. |
Returns - Promise
Defined in
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.