rive-app / rive-wasm

Wasm/JS runtime for Rive
MIT License
660 stars 46 forks source link

Feature: Add drawImage API to CanvasRenderer on low-level runtime and fix types #320

Closed zplata closed 1 year ago

zplata commented 1 year ago

Exposes a way to call Canvas2D's drawImage() API from the renderer returned from .makeRenderer(canvas) to allow folks to draw separate images on the canvas alongside Rive content, while making sure it stays within the deferred drawList ops.

Also fixing types for this for TypeScript defs.