@takumi-rs/wasm 2.0.1 → 2.0.2

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/dist/export.cjs CHANGED
@@ -463,7 +463,8 @@ if (!("encodeInto" in cachedTextEncoder)) cachedTextEncoder.encodeInto = functio
463
463
  written: buf.length
464
464
  };
465
465
  };
466
- let WASM_VECTOR_LEN = 0, wasm;
466
+ let WASM_VECTOR_LEN = 0;
467
+ let wasm;
467
468
  function __wbg_finalize_init(instance, module) {
468
469
  wasm = instance.exports;
469
470
  cachedDataViewMemory0 = null;
package/dist/export.d.cts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { ContainerNode, ImageNode, Node, Node as Node$1, NodeMetadata, TextNode } from "@takumi-rs/helpers";
2
2
  import { Properties } from "csstype";
3
3
  import { AnimationOutputFormatOptions, BackendAnimationOptions, BackendRenderOptions, BackendSvgOptions, FontLoader, FontLoader as FontLoader$1, ImageLoader, ImagesInput, OutputFormatOptions } from "@takumi-rs/helpers/renderer";
4
-
5
4
  //#region pkg/takumi_wasm.d.ts
6
5
  type ByteBuf = Uint8Array | ArrayBuffer | Buffer;
7
6
  type KeyframesMap = Record<string, Record<string, Properties>>;
@@ -80,7 +79,8 @@ type RenderOptions$1 = {
80
79
  * Per-render font stack: ordered family names used as the fallback chain.
81
80
  * Defaults to all registered families in registration order.
82
81
  */
83
- fontFamilies?: string[]; /** Default BCP-47 language applied to the root, inherited by nodes without their own lang. */
82
+ fontFamilies?: string[];
83
+ /** Default BCP-47 language applied to the root, inherited by nodes without their own lang. */
84
84
  lang?: string;
85
85
  };
86
86
  /**
@@ -129,7 +129,8 @@ type RenderAnimationOptions$1 = {
129
129
  * Per-render font stack: ordered family names used as the fallback chain.
130
130
  * Defaults to all registered families in registration order.
131
131
  */
132
- fontFamilies?: string[]; /** Default BCP-47 language applied to the root, inherited by nodes without their own lang. */
132
+ fontFamilies?: string[];
133
+ /** Default BCP-47 language applied to the root, inherited by nodes without their own lang. */
133
134
  lang?: string;
134
135
  };
135
136
  type FontDetails = {
@@ -146,7 +147,8 @@ type FontDetails = {
146
147
  };
147
148
  type ImageSource = {
148
149
  src: string;
149
- data: ByteBuf; /** Cache policy for the decoded image. Defaults to `"auto"`. */
150
+ data: ByteBuf;
151
+ /** Cache policy for the decoded image. Defaults to `"auto"`. */
150
152
  cache?: ImageCacheMode;
151
153
  };
152
154
  type KeyframeRule = {
package/dist/export.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { AnimationOutputFormatOptions, BackendAnimationOptions, BackendRenderOptions, BackendSvgOptions, FontLoader, FontLoader as FontLoader$1, ImageLoader, ImagesInput, OutputFormatOptions } from "@takumi-rs/helpers/renderer";
2
2
  import { ContainerNode, ImageNode, Node, Node as Node$1, NodeMetadata, TextNode } from "@takumi-rs/helpers";
3
3
  import { Properties } from "csstype";
4
-
5
4
  //#region pkg/takumi_wasm.d.ts
6
5
  type ByteBuf = Uint8Array | ArrayBuffer | Buffer;
7
6
  type KeyframesMap = Record<string, Record<string, Properties>>;
@@ -80,7 +79,8 @@ type RenderOptions$1 = {
80
79
  * Per-render font stack: ordered family names used as the fallback chain.
81
80
  * Defaults to all registered families in registration order.
82
81
  */
83
- fontFamilies?: string[]; /** Default BCP-47 language applied to the root, inherited by nodes without their own lang. */
82
+ fontFamilies?: string[];
83
+ /** Default BCP-47 language applied to the root, inherited by nodes without their own lang. */
84
84
  lang?: string;
85
85
  };
86
86
  /**
@@ -129,7 +129,8 @@ type RenderAnimationOptions$1 = {
129
129
  * Per-render font stack: ordered family names used as the fallback chain.
130
130
  * Defaults to all registered families in registration order.
131
131
  */
132
- fontFamilies?: string[]; /** Default BCP-47 language applied to the root, inherited by nodes without their own lang. */
132
+ fontFamilies?: string[];
133
+ /** Default BCP-47 language applied to the root, inherited by nodes without their own lang. */
133
134
  lang?: string;
134
135
  };
135
136
  type FontDetails = {
@@ -146,7 +147,8 @@ type FontDetails = {
146
147
  };
147
148
  type ImageSource = {
148
149
  src: string;
149
- data: ByteBuf; /** Cache policy for the decoded image. Defaults to `"auto"`. */
150
+ data: ByteBuf;
151
+ /** Cache policy for the decoded image. Defaults to `"auto"`. */
150
152
  cache?: ImageCacheMode;
151
153
  };
152
154
  type KeyframeRule = {
package/dist/export.mjs CHANGED
@@ -459,7 +459,8 @@ if (!("encodeInto" in cachedTextEncoder)) cachedTextEncoder.encodeInto = functio
459
459
  written: buf.length
460
460
  };
461
461
  };
462
- let WASM_VECTOR_LEN = 0, wasm;
462
+ let WASM_VECTOR_LEN = 0;
463
+ let wasm;
463
464
  function __wbg_finalize_init(instance, module) {
464
465
  wasm = instance.exports;
465
466
  cachedDataViewMemory0 = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/wasm",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "WebAssembly bindings for Takumi, a Rust image rendering engine.",
5
5
  "keywords": [
6
6
  "css",
@@ -117,12 +117,12 @@
117
117
  "publish-lint": "attw --pack . && publint --strict ."
118
118
  },
119
119
  "dependencies": {
120
- "@takumi-rs/helpers": "2.0.1"
120
+ "@takumi-rs/helpers": "2.0.2"
121
121
  },
122
122
  "devDependencies": {
123
123
  "@types/bun": "^1.3.14",
124
124
  "csstype": "^3.2.3",
125
- "tsdown": "^0.22.3",
125
+ "tsdown": "^0.22.4",
126
126
  "unrun": "^0.3.1"
127
127
  },
128
128
  "peerDependencies": {
Binary file