@clypra-studio/engine 1.2.0 → 1.4.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.
Files changed (47) hide show
  1. package/README.md +13 -39
  2. package/dist/{chunk-LT3HTJ3X.js → chunk-3UEOLDJJ.js} +5 -829
  3. package/dist/chunk-3UEOLDJJ.js.map +1 -0
  4. package/dist/{chunk-Y4FMAOTW.js → chunk-E6O6LZME.js} +266 -1004
  5. package/dist/chunk-E6O6LZME.js.map +1 -0
  6. package/dist/chunk-PU3Q4QI7.js +833 -0
  7. package/dist/chunk-PU3Q4QI7.js.map +1 -0
  8. package/dist/{index-D6GAXDBy.d.cts → index-C18SQ-y6.d.cts} +171 -37
  9. package/dist/{index-D6GAXDBy.d.ts → index-C18SQ-y6.d.ts} +171 -37
  10. package/dist/index.cjs +12064 -19908
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.cts +3302 -7641
  13. package/dist/index.d.ts +3302 -7641
  14. package/dist/index.js +11201 -14606
  15. package/dist/index.js.map +1 -1
  16. package/dist/textEffects/index.cjs +259 -971
  17. package/dist/textEffects/index.cjs.map +1 -1
  18. package/dist/textEffects/index.d.cts +1 -1
  19. package/dist/textEffects/index.d.ts +1 -1
  20. package/dist/textEffects/index.js +1 -1
  21. package/dist/transitions/index.cjs +18 -2199
  22. package/dist/transitions/index.cjs.map +1 -1
  23. package/dist/transitions/index.d.cts +37 -53
  24. package/dist/transitions/index.d.ts +37 -53
  25. package/dist/transitions/index.js +3 -51
  26. package/dist/videoEffects/index.cjs +4 -835
  27. package/dist/videoEffects/index.cjs.map +1 -1
  28. package/dist/videoEffects/index.d.cts +9 -138
  29. package/dist/videoEffects/index.d.ts +9 -138
  30. package/dist/videoEffects/index.js +1 -15
  31. package/package.json +14 -17
  32. package/dist/TransitionDefinition-CQoSb4ZB.d.cts +0 -158
  33. package/dist/TransitionDefinition-CQoSb4ZB.d.ts +0 -158
  34. package/dist/chunk-FIJBB3MH.js +0 -2990
  35. package/dist/chunk-FIJBB3MH.js.map +0 -1
  36. package/dist/chunk-LT3HTJ3X.js.map +0 -1
  37. package/dist/chunk-RYA4KGDB.js +0 -690
  38. package/dist/chunk-RYA4KGDB.js.map +0 -1
  39. package/dist/chunk-Y4FMAOTW.js.map +0 -1
  40. package/dist/index-Da47I6aX.d.cts +0 -139
  41. package/dist/index-Da47I6aX.d.ts +0 -139
  42. package/dist/v2/backends/index.cjs +0 -693
  43. package/dist/v2/backends/index.cjs.map +0 -1
  44. package/dist/v2/backends/index.d.cts +0 -3
  45. package/dist/v2/backends/index.d.ts +0 -3
  46. package/dist/v2/backends/index.js +0 -8
  47. package/dist/v2/backends/index.js.map +0 -1
package/README.md CHANGED
@@ -1,57 +1,31 @@
1
1
  # @clypra-studio/engine
2
2
 
3
- The rendering and animation engine powering [Clypra Studio](https://github.com/AIEraDev/clypra-studio) — a high-performance Canvas 2D text effects system with GPU-accelerated PixiJS video effects, full Lottie JSON tooling, keyframe animation, and CapCut-style timeline capabilities.
3
+ Core effect registry, Canvas 2D text layout engine, Lottie JSON tooling, video/body effects, transitions, and smart overlays.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @clypra-studio/engine
9
- # or
10
8
  pnpm add @clypra-studio/engine
11
- # or
12
- yarn add @clypra-studio/engine
13
9
  ```
14
10
 
11
+ ## Features & Subsystems
12
+
13
+ - 🔤 **Text Layout & Effects**: Canvas 2D per-character fill, typography layout, text effects recipes, and animatable parameters.
14
+ - 🎨 **Lottie JSON Tooling**: Full Lottie parser, injector, text style editor, template presets, Google Fonts integration, and Lottie export.
15
+ - 📽️ **Video & Body Effects**: Built-in video filters, green screen chroma keying, body segmentation masks, and effect definitions.
16
+ - 🔀 **Transitions**: Dual-input temporal transition renderers and definitions.
17
+ - 🖌️ **Procedural Engines**: Procedural `InkBrushEngine` and canvas rasterization utilities.
18
+ - 🖼️ **Smart Overlays**: Declarative canvas templates, keyframe presets, and overlay document renderer.
19
+ - ⚡ **Native pipeline**: Media processing graph node registry and frame graph builder for the shared native runtime.
20
+
15
21
  ## Usage
16
22
 
17
23
  ```typescript
18
24
  import { EffectRenderer } from "@clypra-studio/engine";
19
- import { TransitionRenderer } from "@clypra-studio/engine/transitions";
20
- import { TextEffectConfig } from "@clypra-studio/engine/textEffects";
21
- import { PixiRenderBackend } from "@clypra-studio/engine/v2/backends";
22
-
23
- // Create an effect renderer
24
- const renderer = new EffectRenderer(canvas, effect);
25
-
26
- // Render a frame
27
- await renderer.render(frame);
25
+ import { InkBrushEngine } from "@clypra-studio/engine";
26
+ import { TemplateRenderer } from "@clypra-studio/engine";
28
27
  ```
29
28
 
30
- ## Features
31
-
32
- - ✅ **Text Effects** - Canvas 2D text rendering with advanced effects
33
- - ✅ **Video Effects** - GPU-accelerated effects using PixiJS
34
- - ✅ **Transitions** - Professional transition effects
35
- - ✅ **Lottie Support** - Full Lottie JSON animation tooling
36
- - ✅ **Keyframe Animation** - Timeline-based animation system
37
- - ✅ **Render Backends** - Pixi.js GPU rendering support
38
-
39
- ## Entry Points
40
-
41
- - **`@clypra-studio/engine`** - Main engine exports
42
- - **`@clypra-studio/engine/transitions`** - Transition effects
43
- - **`@clypra-studio/engine/videoEffects`** - Video effect definitions
44
- - **`@clypra-studio/engine/textEffects`** - Text effect system
45
- - **`@clypra-studio/engine/v2/backends`** - Rendering backends
46
- - **`@clypra-studio/engine/v2/contract`** - V2 API contracts
47
-
48
29
  ## License
49
30
 
50
31
  MIT
51
-
52
- ## Links
53
-
54
- - [GitHub Repository](https://github.com/AIEraDev/clypra-studio)
55
- - [Documentation](https://github.com/AIEraDev/clypra-studio/tree/main/packages/clypra-engine#readme)
56
- - [Report Issues](https://github.com/AIEraDev/clypra-studio/issues)
57
- - [npm Package](https://www.npmjs.com/package/@clypra-studio/engine)