@anime-studio/react 0.0.0-stage → 0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dener Fernandes
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,44 @@
1
- # Temporary Holding Version
1
+ # @anime-studio/react
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![npm](https://img.shields.io/npm/v/@anime-studio/react)](https://www.npmjs.com/package/@anime-studio/react)
4
+ [![CI](https://github.com/denerFernandes/animeStudio/actions/workflows/ci.yml/badge.svg)](https://github.com/denerFernandes/animeStudio/actions/workflows/ci.yml)
5
+ [![MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/denerFernandes/animeStudio/blob/master/LICENSE)
6
+
7
+ Part of [animeStudio](https://github.com/denerFernandes/animeStudio), a deterministic 2D/2.5D cartoon animation engine: characters are
8
+ SVG art bound to skeletons, scenes are JSON documents, and every frame is a pure function of the
9
+ documents and the time.
10
+
11
+ React components that draw animeStudio frames and scenes as inline SVG: `ToonScene`, `ToonFrame`, `useCompiledScene`.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm install @anime-studio/core @anime-studio/react react
17
+ # or
18
+ pnpm add @anime-studio/core @anime-studio/react react
19
+ ```
20
+
21
+ Requires Node.js 22 or later (or a modern browser / bundler). The packages are ES modules with
22
+ TypeScript types included.
23
+
24
+ ## Usage
25
+
26
+ ```tsx
27
+ import { ToonScene } from "@anime-studio/react";
28
+
29
+ export const Player = ({ time }: { time: number }) => (
30
+ <ToonScene scene={compiledScene} time={time} width={960} />
31
+ );
32
+ ```
33
+
34
+ ## Documentation
35
+
36
+ - [Getting started and features](https://github.com/denerFernandes/animeStudio#readme)
37
+ - [Format specification](https://github.com/denerFernandes/animeStudio/blob/master/docs/FORMAT.md)
38
+ - [API reference](https://github.com/denerFernandes/animeStudio/blob/master/docs/API.md)
39
+ - [Authoring guide for AI agents](https://github.com/denerFernandes/animeStudio/blob/master/docs/AI_GUIDE.md)
40
+ - [Changelog](https://github.com/denerFernandes/animeStudio/blob/master/CHANGELOG.md)
41
+
42
+ ## License
43
+
44
+ MIT © Dener Fernandes
@@ -0,0 +1,43 @@
1
+ import { type CompiledScene, type RenderFrame, type RenderNode, type SceneAssets, type SceneDoc } from "@anime-studio/core";
2
+ import { type CSSProperties } from "react";
3
+ /** Renders a list of render nodes (no <svg> wrapper) — for custom viewports and editors. */
4
+ export declare function RenderNodes({ nodes }: {
5
+ nodes: RenderNode[];
6
+ }): import("react").JSX.Element;
7
+ export declare function Node({ node }: {
8
+ node: RenderNode;
9
+ }): import("react").JSX.Element;
10
+ export interface ToonFrameProps {
11
+ frame: RenderFrame;
12
+ style?: CSSProperties;
13
+ className?: string;
14
+ /** Rendered size (CSS); defaults to the frame size. Height follows the aspect ratio if omitted. */
15
+ width?: number | string;
16
+ height?: number | string;
17
+ }
18
+ interface Run {
19
+ filter?: string;
20
+ nodes: RenderNode[];
21
+ }
22
+ /**
23
+ * Splits a frame into stacked `<svg>` layers:
24
+ * - blurred nodes get their own layer with the blur applied as an HTML-level CSS filter;
25
+ * - a node defining per-frame masks/filters ends its layer, so nothing is painted after it in the
26
+ * same SVG.
27
+ * Chrome's frame-by-frame capture occasionally skipped painting elements that followed filtered
28
+ * content or rebuilt definitions inside one SVG; separate layers paint reliably.
29
+ */
30
+ export declare function splitRuns(nodes: RenderNode[]): Run[];
31
+ /** Renders an evaluated frame (as stacked SVG layers in a positioned box). */
32
+ export declare function ToonFrame({ frame, style, className, width, height }: ToonFrameProps): import("react").JSX.Element;
33
+ /** Compiles a scene once per (doc, assets) identity. */
34
+ export declare function useCompiledScene(doc: SceneDoc, assets: SceneAssets): CompiledScene;
35
+ export interface ToonSceneProps extends Omit<ToonFrameProps, "frame"> {
36
+ scene: CompiledScene;
37
+ /** Time in seconds. */
38
+ time: number;
39
+ }
40
+ /** Renders a compiled scene at a given time. */
41
+ export declare function ToonScene({ scene, time, ...rest }: ToonSceneProps): import("react").JSX.Element;
42
+ export {};
43
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,QAAQ,EAKd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,aAAa,EAAoC,MAAM,OAAO,CAAC;AAI7E,4FAA4F;AAC5F,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,UAAU,EAAE,CAAA;CAAE,+BAQ7D;AAED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,+BAqBlD;AAOD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mGAAmG;IACnG,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,UAAU,GAAG;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB;AAKD;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,GAAG,EAAE,CAepD;AAED,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,cAAc,+BAkCnF;AAED,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,GAAG,aAAa,CAElF;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC;IACnE,KAAK,EAAE,aAAa,CAAC;IACrB,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,gDAAgD;AAChD,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,+BAGjE"}
package/dist/index.js ADDED
@@ -0,0 +1,79 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { compileScene, evaluateScene, isIdentity, matToString, } from "@anime-studio/core";
3
+ import { memo, useMemo } from "react";
4
+ const toReactAttr = (k) => k.replace(/-([a-z])/g, (_m, c) => c.toUpperCase());
5
+ /** Renders a list of render nodes (no <svg> wrapper) — for custom viewports and editors. */
6
+ export function RenderNodes({ nodes }) {
7
+ return (_jsx(_Fragment, { children: nodes.map((n) => (_jsx(Node, { node: n }, n.key))) }));
8
+ }
9
+ export function Node({ node }) {
10
+ const transform = "transform" in node && node.transform && !isIdentity(node.transform) ? matToString(node.transform) : undefined;
11
+ // CSS filters are in screen space: a wrapper without transform (keeps the element tree stable).
12
+ // An SVG filter (`svgFilter`, line boil) works in the element's own space: set on the element.
13
+ const wrap = (el) => _jsx("g", { style: "filter" in node && node.filter ? { filter: node.filter } : undefined, children: el });
14
+ switch (node.kind) {
15
+ case "group":
16
+ return wrap(_jsx("g", { id: node.id, transform: transform, opacity: node.opacity, filter: node.svgFilter, children: node.children.map((c) => (_jsx(Node, { node: c }, c.key))) }));
17
+ case "markup":
18
+ return wrap(_jsx(MarkupNode, { transform: transform, opacity: node.opacity, filter: node.svgFilter, markup: node.markup }));
19
+ case "path": {
20
+ const attrs = Object.fromEntries(Object.entries(node.attrs).map(([k, v]) => [toReactAttr(k), v]));
21
+ return _jsx("path", { d: node.d, opacity: node.opacity, ...attrs });
22
+ }
23
+ }
24
+ }
25
+ /** Static art is memoized on its markup so React only updates the transform. */
26
+ const MarkupNode = memo(function MarkupNode(props) {
27
+ return _jsx("g", { transform: props.transform, opacity: props.opacity, filter: props.filter, dangerouslySetInnerHTML: { __html: props.markup } });
28
+ });
29
+ /** Markup that defines masks/filters which are rebuilt every frame (shading, lighting, transitions). */
30
+ const definesResources = (n) => n.kind === "markup" && /<(mask|filter)\b/.test(n.markup);
31
+ /**
32
+ * Splits a frame into stacked `<svg>` layers:
33
+ * - blurred nodes get their own layer with the blur applied as an HTML-level CSS filter;
34
+ * - a node defining per-frame masks/filters ends its layer, so nothing is painted after it in the
35
+ * same SVG.
36
+ * Chrome's frame-by-frame capture occasionally skipped painting elements that followed filtered
37
+ * content or rebuilt definitions inside one SVG; separate layers paint reliably.
38
+ */
39
+ export function splitRuns(nodes) {
40
+ const runs = [];
41
+ let current = null;
42
+ let closed = false;
43
+ for (const n of nodes) {
44
+ const filter = "filter" in n ? n.filter : undefined;
45
+ if (!current || closed || current.filter !== filter) {
46
+ current = { filter, nodes: [] };
47
+ runs.push(current);
48
+ closed = false;
49
+ }
50
+ current.nodes.push(filter && n.kind !== "path" ? { ...n, filter: undefined } : n);
51
+ if (definesResources(n))
52
+ closed = true;
53
+ }
54
+ return runs;
55
+ }
56
+ /** Renders an evaluated frame (as stacked SVG layers in a positioned box). */
57
+ export function ToonFrame({ frame, style, className, width, height }) {
58
+ const runs = useMemo(() => splitRuns(frame.nodes), [frame.nodes]);
59
+ const viewBox = `0 0 ${frame.width} ${frame.height}`;
60
+ const layer = { position: "absolute", left: 0, top: 0, width: "100%", height: "100%", overflow: "visible" };
61
+ return (_jsx("div", { className: className, style: {
62
+ position: "relative",
63
+ overflow: "hidden",
64
+ width: width ?? frame.width,
65
+ height: height ?? (width === undefined ? frame.height : undefined),
66
+ aspectRatio: `${frame.width} / ${frame.height}`,
67
+ ...style,
68
+ }, children: runs.length === 0 ? (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: viewBox, style: layer, children: [frame.defs ? _jsx("defs", { dangerouslySetInnerHTML: { __html: frame.defs } }) : null, frame.background ? _jsx("rect", { width: frame.width, height: frame.height, fill: frame.background }) : null] })) : (runs.map((run, i) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: viewBox, style: run.filter ? { ...layer, filter: run.filter } : layer, children: [i === 0 && frame.defs ? _jsx("defs", { dangerouslySetInnerHTML: { __html: frame.defs } }) : null, i === 0 && frame.background ? _jsx("rect", { width: frame.width, height: frame.height, fill: frame.background }) : null, run.nodes.map((n) => (_jsx(Node, { node: n }, n.key)))] }, i)))) }));
69
+ }
70
+ /** Compiles a scene once per (doc, assets) identity. */
71
+ export function useCompiledScene(doc, assets) {
72
+ return useMemo(() => compileScene(doc, assets), [doc, assets]);
73
+ }
74
+ /** Renders a compiled scene at a given time. */
75
+ export function ToonScene({ scene, time, ...rest }) {
76
+ const frame = useMemo(() => evaluateScene(scene, time), [scene, time]);
77
+ return _jsx(ToonFrame, { frame: frame, ...rest });
78
+ }
79
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAML,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAyC,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAE7E,MAAM,WAAW,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,EAAE,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAE9F,4FAA4F;AAC5F,MAAM,UAAU,WAAW,CAAC,EAAE,KAAK,EAA2B;IAC5D,OAAO,CACL,4BACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAChB,KAAC,IAAI,IAAa,IAAI,EAAE,CAAC,IAAd,CAAC,CAAC,GAAG,CAAa,CAC9B,CAAC,GACD,CACJ,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,EAAE,IAAI,EAAwB;IACjD,MAAM,SAAS,GAAG,WAAW,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACjI,gGAAgG;IAChG,+FAA+F;IAC/F,MAAM,IAAI,GAAG,CAAC,EAAgB,EAAE,EAAE,CAAC,YAAG,KAAK,EAAE,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAA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C,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;IACvE,OAAO,KAAC,SAAS,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,GAAI,CAAC;AAC/C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,55 @@
1
1
  {
2
2
  "name": "@anime-studio/react",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0",
4
+ "description": "React renderer for animeStudio characters and scenes.",
5
+ "keywords": [
6
+ "animation",
7
+ "cartoon",
8
+ "2d-animation",
9
+ "svg",
10
+ "character-animation",
11
+ "animestudio",
12
+ "react"
13
+ ],
14
+ "license": "MIT",
15
+ "author": "Dener Fernandes (https://github.com/denerFernandes)",
16
+ "homepage": "https://github.com/denerFernandes/animeStudio/tree/master/packages/react#readme",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/denerFernandes/animeStudio.git",
20
+ "directory": "packages/react"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/denerFernandes/animeStudio/issues"
24
+ },
25
+ "type": "module",
26
+ "main": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "import": "./dist/index.js"
32
+ }
33
+ },
34
+ "files": [
35
+ "dist",
36
+ "README.md",
37
+ "LICENSE"
38
+ ],
39
+ "engines": {
40
+ "node": ">=22"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "dependencies": {
46
+ "@anime-studio/core": "0.2.0"
47
+ },
48
+ "peerDependencies": {
49
+ "react": ">=18"
50
+ },
51
+ "devDependencies": {
52
+ "react": "19.3.0",
53
+ "@types/react": "^19.3.0"
54
+ }
6
55
  }