@takumi-rs/wasm 0.71.4 → 0.71.6
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 +16 -0
- package/pkg/takumi_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/takumi_wasm.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export type AnyNode = { type: string; [key: string]: any };
|
|
|
5
5
|
|
|
6
6
|
export type ByteBuf = Uint8Array | ArrayBuffer | Buffer;
|
|
7
7
|
|
|
8
|
+
export type Keyframes = Record<string, Record<string, Record<string, unknown>>>;
|
|
9
|
+
|
|
8
10
|
export type RenderOptions = {
|
|
9
11
|
/**
|
|
10
12
|
* The width of the image. If not provided, the width will be automatically calculated based on the content.
|
|
@@ -31,6 +33,10 @@ export type RenderOptions = {
|
|
|
31
33
|
* CSS stylesheets to apply before rendering.
|
|
32
34
|
*/
|
|
33
35
|
stylesheets?: string[],
|
|
36
|
+
/**
|
|
37
|
+
* Structured keyframes to register alongside stylesheets.
|
|
38
|
+
*/
|
|
39
|
+
keyframes?: KeyframesRule[] | Keyframes,
|
|
34
40
|
/**
|
|
35
41
|
* Whether to draw debug borders.
|
|
36
42
|
*/
|
|
@@ -116,6 +122,16 @@ export type ImageSource = {
|
|
|
116
122
|
data: ByteBuf,
|
|
117
123
|
};
|
|
118
124
|
|
|
125
|
+
export type KeyframeRule = {
|
|
126
|
+
offsets: number[],
|
|
127
|
+
declarations: Record<string, unknown>,
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export type KeyframesRule = {
|
|
131
|
+
name: string,
|
|
132
|
+
keyframes: KeyframeRule[],
|
|
133
|
+
};
|
|
134
|
+
|
|
119
135
|
export type Font = FontDetails | ByteBuf;
|
|
120
136
|
|
|
121
137
|
export type ConstructRendererOptions = {
|
package/pkg/takumi_wasm_bg.wasm
CHANGED
|
Binary file
|