The name of the method being deprecated
The version when the tagged method became obsolete
Optional message to be shown with the warning
Is like setTimeout, but activates synchronously if time=0 We special case 0 because of an observed issue where calling setTimeout causes visible flickering. We believe this is because when requestAnimationFrame calls into the paint function, as soon as that function finishes evaluating, the results are painted to the screen. As a result, if we want something to occur immediately but call setTimeout with time=0, then it is pushed to the call stack and rendered in the next frame, so the component that was rendered via setTimeout appears out-of-sync with the rest of the plot.
Print a warning message to the console, if it is available.
Generated using TypeDoc
Sends a deprecation warning to the console. The warning includes the name of the deprecated method, version number of the deprecation, and an optional message.
To be used in the first line of a deprecated method.