takumi-js 2.1.1 → 2.2.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/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as RenderOptions, c as renderAnimation, i as RenderInput, l as renderSvg, n as ImagesInput, o as RenderSvgOptions, r as RenderAnimationOptions, s as render, t as AnimationScene } from "./render-DqZwHBU1.cjs";
1
+ import { a as RenderOptions, c as renderAnimation, i as RenderInput, l as renderSvg, n as ImagesInput, o as RenderSvgOptions, r as RenderAnimationOptions, s as render, t as AnimationScene } from "./render-sRfulirT.cjs";
2
2
  import { AnimationOutputFormat, DitheringAlgorithm, Font, FontDetails, FontLoader, ImageSource, Keyframes, KeyframesMap, KeyframesRuleList, MeasuredNode, MeasuredTextRun, OutputFormat } from "@takumi-rs/core";
3
3
  import { ContainerNode, FetchOptions, ImageNode, Node, NodeAttributes, NodeMetadata, ReactElementLike, TextNode } from "@takumi-rs/helpers";
4
4
  //#region src/index.d.ts
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as RenderOptions, c as renderAnimation, i as RenderInput, l as renderSvg, n as ImagesInput, o as RenderSvgOptions, r as RenderAnimationOptions, s as render, t as AnimationScene } from "./render-Dj1IRpxH.mjs";
1
+ import { a as RenderOptions, c as renderAnimation, i as RenderInput, l as renderSvg, n as ImagesInput, o as RenderSvgOptions, r as RenderAnimationOptions, s as render, t as AnimationScene } from "./render-Cb_LVX55.mjs";
2
2
  import { ContainerNode, FetchOptions, ImageNode, Node, NodeAttributes, NodeMetadata, ReactElementLike, TextNode } from "@takumi-rs/helpers";
3
3
  import { AnimationOutputFormat, DitheringAlgorithm, Font, FontDetails, FontLoader, ImageSource, Keyframes, KeyframesMap, KeyframesRuleList, MeasuredNode, MeasuredTextRun, OutputFormat } from "@takumi-rs/core";
4
4
  //#region src/index.d.ts
@@ -85,7 +85,7 @@ type RenderInput = ReactNode | ReactElementLike | Node | string;
85
85
  * @param options - Configuration for rendering, including dimensions, format, fonts, and more.
86
86
  * @returns A promise that resolves to the rendered image data (Buffer/Uint8Array).
87
87
  */
88
- declare function render(element: RenderInput, options?: RenderOptions): Promise<Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>>;
88
+ declare function render(element: RenderInput, options?: RenderOptions): Promise<Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>>;
89
89
  /**
90
90
  * Renders a React element, HTML string, or Takumi node tree into a vector SVG
91
91
  * document string.
@@ -131,6 +131,6 @@ declare function renderSvg(element: RenderInput, options?: RenderSvgOptions): Pr
131
131
  *
132
132
  * @returns A promise that resolves to the encoded animation (Buffer/Uint8Array).
133
133
  */
134
- declare function renderAnimation(options: RenderAnimationOptions): Promise<Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>>;
134
+ declare function renderAnimation(options: RenderAnimationOptions): Promise<Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>>;
135
135
  //#endregion
136
136
  export { RenderOptions as a, renderAnimation as c, RenderInput as i, renderSvg as l, ImagesInput as n, RenderSvgOptions as o, RenderAnimationOptions as r, render as s, AnimationScene as t };
@@ -85,7 +85,7 @@ type RenderInput = ReactNode | ReactElementLike | Node | string;
85
85
  * @param options - Configuration for rendering, including dimensions, format, fonts, and more.
86
86
  * @returns A promise that resolves to the rendered image data (Buffer/Uint8Array).
87
87
  */
88
- declare function render(element: RenderInput, options?: RenderOptions): Promise<Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>>;
88
+ declare function render(element: RenderInput, options?: RenderOptions): Promise<Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>>;
89
89
  /**
90
90
  * Renders a React element, HTML string, or Takumi node tree into a vector SVG
91
91
  * document string.
@@ -131,6 +131,6 @@ declare function renderSvg(element: RenderInput, options?: RenderSvgOptions): Pr
131
131
  *
132
132
  * @returns A promise that resolves to the encoded animation (Buffer/Uint8Array).
133
133
  */
134
- declare function renderAnimation(options: RenderAnimationOptions): Promise<Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>>;
134
+ declare function renderAnimation(options: RenderAnimationOptions): Promise<Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>>;
135
135
  //#endregion
136
136
  export { RenderOptions as a, renderAnimation as c, RenderInput as i, renderSvg as l, ImagesInput as n, RenderSvgOptions as o, RenderAnimationOptions as r, render as s, AnimationScene as t };
@@ -1,4 +1,4 @@
1
- import { a as RenderOptions, i as RenderInput } from "./render-DqZwHBU1.cjs";
1
+ import { a as RenderOptions, i as RenderInput } from "./render-sRfulirT.cjs";
2
2
  //#region src/response/index.d.ts
3
3
  type ImageResponseResult = Response & {
4
4
  readonly ready: Promise<void>;
@@ -1,4 +1,4 @@
1
- import { a as RenderOptions, i as RenderInput } from "./render-Dj1IRpxH.mjs";
1
+ import { a as RenderOptions, i as RenderInput } from "./render-Cb_LVX55.mjs";
2
2
  //#region src/response/index.d.ts
3
3
  type ImageResponseResult = Response & {
4
4
  readonly ready: Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "takumi-js",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "All-in-one Takumi package for Node.js and WebAssembly runtimes.",
5
5
  "keywords": [
6
6
  "css",
@@ -212,9 +212,9 @@
212
212
  "publish-lint": "attw --pack . && publint --strict ."
213
213
  },
214
214
  "dependencies": {
215
- "@takumi-rs/core": "2.1.1",
216
- "@takumi-rs/helpers": "2.1.1",
217
- "@takumi-rs/wasm": "2.1.1"
215
+ "@takumi-rs/core": "2.2.0",
216
+ "@takumi-rs/helpers": "2.2.0",
217
+ "@takumi-rs/wasm": "2.2.0"
218
218
  },
219
219
  "devDependencies": {
220
220
  "@types/bun": "^1.3.14",