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 | trueto enable the effect,falseto disable it, orundefinedto toggle the current state. | 
Returns -  Promise
Defined in
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.