@rive-app/canvas-single
Advanced tools
Comparing version 1.0.18 to 1.0.19
{ | ||
"name": "@rive-app/canvas-single", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"description": "Rive's high-level canvas based web api all in one js file.", | ||
@@ -5,0 +5,0 @@ "main": "rive.js", |
@@ -318,2 +318,9 @@ import * as rc from './rive_advanced.mjs'; | ||
resizeToCanvas(): void; | ||
/** | ||
* Accounts for devicePixelRatio as a multiplier to render the size of the canvas drawing surface. | ||
* Uses the size of the backing canvas to set new width/height attributes. Need to re-render | ||
* and resize the layout to match the new drawing surface afterwards. Useful function for consumers | ||
* to include in a window resize listener | ||
*/ | ||
resizeDrawingSurfaceToCanvas(): void; | ||
get source(): string; | ||
@@ -320,0 +327,0 @@ /** |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
691292
3373