@takumi-rs/wasm 0.49.1 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/wasm",
3
- "version": "0.49.1",
3
+ "version": "0.51.0",
4
4
  "keywords": [
5
5
  "image",
6
6
  "rendering",
@@ -20,6 +20,7 @@ export type RenderOptions = {
20
20
  height?: number,
21
21
  /**
22
22
  * The format of the image.
23
+ * @default "png"
23
24
  */
24
25
  format?: "png" | "jpeg" | "webp",
25
26
  /**
@@ -34,6 +35,11 @@ export type RenderOptions = {
34
35
  * Whether to draw debug borders.
35
36
  */
36
37
  drawDebugBorder?: boolean,
38
+ /**
39
+ * Defines the ratio resolution of the image to the physical pixels.
40
+ * @default 1.0
41
+ */
42
+ devicePixelRatio?: number,
37
43
  };
38
44
 
39
45
  export type RenderAnimationOptions = {
Binary file