OffscreenCanvas
The off-screen canvas instance, which can be created via Taro.createOffscreenCanvas.
Methods
getContext
Returns the OffscreenCanvas drawing context.
Only WebGL drawing context can be obtained.
(contextType: string) => RenderingContext
| Property | Type |
|---|---|
| contextType | string |
API Support
| API | WeChat Mini-Program | H5 | React Native |
|---|---|---|---|
| OffscreenCanvas.getContext | ✔️ |
API Support
| API | WeChat Mini-Program | H5 | React Native |
|---|---|---|---|
| OffscreenCanvas.getContext | ✔️ |