Packages
These packages are published from the NativeScript/canvas monorepo. The 3.x packages need NativeScript 9.1 or later, and should be upgraded together.
Core
- @nativescript/canvas: 2D, WebGL, WebGL2, WebGPU and bitmaprenderer contexts
- @nativescript/canvas-svg: native SVG with animation, DOM scripting and GPU rendering
- @nativescript/audio-context: the Web Audio API
Supporting packages
- @nativescript/canvas-polyfill: browser globals for web graphics code
- @nativescript/canvas-media: video and audio views that also act as frame sources