@takumi-rs/wasm 0.47.0 → 0.48.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 +1 -1
- package/pkg/takumi_wasm.d.ts +23 -2
- package/pkg/takumi_wasm.js +1 -0
- package/pkg/takumi_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/takumi_wasm.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Collects the fetch task urls from the node.
|
|
5
|
+
*/
|
|
3
6
|
export function collectNodeFetchTasks(node: AnyNode): string[];
|
|
4
7
|
|
|
5
8
|
export type AnyNode = { type: string; [key: string]: any };
|
|
@@ -7,11 +10,29 @@ export type AnyNode = { type: string; [key: string]: any };
|
|
|
7
10
|
export type ByteBuf = Uint8Array | ArrayBuffer | Buffer;
|
|
8
11
|
|
|
9
12
|
export type RenderOptions = {
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
/**
|
|
14
|
+
* The width of the image. If not provided, the width will be automatically calculated based on the content.
|
|
15
|
+
*/
|
|
16
|
+
width?: number,
|
|
17
|
+
/**
|
|
18
|
+
* The height of the image. If not provided, the height will be automatically calculated based on the content.
|
|
19
|
+
*/
|
|
20
|
+
height?: number,
|
|
21
|
+
/**
|
|
22
|
+
* The format of the image.
|
|
23
|
+
*/
|
|
12
24
|
format?: "png" | "jpeg" | "webp",
|
|
25
|
+
/**
|
|
26
|
+
* The quality of JPEG format (0-100).
|
|
27
|
+
*/
|
|
13
28
|
quality?: number,
|
|
29
|
+
/**
|
|
30
|
+
* The resources fetched externally. You should collect the fetch tasks first using `collectNodeFetchTasks` and then pass the resources here.
|
|
31
|
+
*/
|
|
14
32
|
fetchedResources?: Map<string, ByteBuf>,
|
|
33
|
+
/**
|
|
34
|
+
* Whether to draw debug borders.
|
|
35
|
+
*/
|
|
15
36
|
drawDebugBorder?: boolean,
|
|
16
37
|
};
|
|
17
38
|
|
package/pkg/takumi_wasm.js
CHANGED
package/pkg/takumi_wasm_bg.wasm
CHANGED
|
Binary file
|