@pixerate/editor 0.241.0 → 0.242.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 (41) hide show
  1. package/dist/animation-editor/controller.d.cts +10 -0
  2. package/dist/animation-editor/controller.d.ts +10 -0
  3. package/dist/animation-editor/effects.d.cts +1 -1
  4. package/dist/animation-editor/effects.d.ts +1 -1
  5. package/dist/animation-editor/index.cjs +137 -88
  6. package/dist/animation-editor/index.js +60 -11
  7. package/dist/canvas/index.cjs +7 -7
  8. package/dist/canvas/index.js +1 -1
  9. package/dist/{chunk-A7PQNIBX.cjs → chunk-7V7QMFTI.cjs} +14 -14
  10. package/dist/{chunk-JAOSL334.cjs → chunk-GHCSC2WP.cjs} +38 -16
  11. package/dist/{chunk-JWCKJNDR.cjs → chunk-K5DS2JTA.cjs} +6 -6
  12. package/dist/{chunk-WDDUPWVG.js → chunk-L3JFOTBQ.js} +1 -1
  13. package/dist/{chunk-SIK3LT6M.js → chunk-OFH6Q67U.js} +28 -6
  14. package/dist/{chunk-G3RUKJ5C.js → chunk-RXZL4NG5.js} +1 -1
  15. package/dist/{chunk-TEFQISBY.js → chunk-X3ZINLIP.js} +1 -1
  16. package/dist/{chunk-ZQIWBJGH.cjs → chunk-XNZFVYC2.cjs} +7 -7
  17. package/dist/effects/fake.d.cts +4 -0
  18. package/dist/effects/fake.d.ts +4 -0
  19. package/dist/effects/helpers.d.cts +6 -0
  20. package/dist/effects/helpers.d.ts +6 -0
  21. package/dist/effects/index.cjs +222 -94
  22. package/dist/effects/index.js +131 -3
  23. package/dist/effects/types.d.cts +31 -0
  24. package/dist/effects/types.d.ts +31 -0
  25. package/dist/image-editor/index.cjs +13 -13
  26. package/dist/image-editor/index.js +1 -1
  27. package/dist/paint-editor/index.cjs +7 -7
  28. package/dist/paint-editor/index.js +2 -2
  29. package/dist/vector/index.cjs +6 -6
  30. package/dist/vector/index.js +1 -1
  31. package/dist/video-editor/controller.d.cts +49 -1
  32. package/dist/video-editor/controller.d.ts +49 -1
  33. package/dist/video-editor/effect-path.d.cts +66 -0
  34. package/dist/video-editor/effect-path.d.ts +66 -0
  35. package/dist/video-editor/index.cjs +616 -427
  36. package/dist/video-editor/index.d.cts +1 -0
  37. package/dist/video-editor/index.d.ts +1 -0
  38. package/dist/video-editor/index.js +193 -4
  39. package/package.json +1 -1
  40. package/skills/pixerate-animation-editor/SKILL.md +1 -1
  41. package/skills/pixerate-video-editor/SKILL.md +9 -2
@@ -16,6 +16,14 @@ import { type MotionNodePose, type MotionTake, type MotionTakeOptions, type Moti
16
16
  import { MotionLayersEngine, type MotionLayerHost } from './layers.cjs';
17
17
  import { type MotionShotLayerInfo, type MotionShotLayersInfo } from './layer-edit.cjs';
18
18
  import { type AppliedMotionEffect } from './effects.cjs';
19
+ /** The path an effect that draws along one runs on (`addVectorEffect`): a path node's outline, or words the provider writes. */
20
+ export type MotionEffectPathInput = {
21
+ node: string;
22
+ } | {
23
+ text: string;
24
+ font?: string;
25
+ align?: 'start' | 'middle' | 'end';
26
+ };
19
27
  export interface AnimationEditorOptions {
20
28
  /** The scene to open (default: an empty one over a blank 800 × 450 artwork). */
21
29
  scene?: MotionScene;
@@ -250,6 +258,8 @@ export declare class AnimationEditorController {
250
258
  height: number;
251
259
  };
252
260
  instance?: string;
261
+ path?: MotionEffectPathInput;
262
+ control?: string;
253
263
  }): Promise<MotionEffectResult>;
254
264
  /**
255
265
  * Makes an applied effect again with new `values` (merged over its own; `null` resets a
@@ -16,6 +16,14 @@ import { type MotionNodePose, type MotionTake, type MotionTakeOptions, type Moti
16
16
  import { MotionLayersEngine, type MotionLayerHost } from './layers.js';
17
17
  import { type MotionShotLayerInfo, type MotionShotLayersInfo } from './layer-edit.js';
18
18
  import { type AppliedMotionEffect } from './effects.js';
19
+ /** The path an effect that draws along one runs on (`addVectorEffect`): a path node's outline, or words the provider writes. */
20
+ export type MotionEffectPathInput = {
21
+ node: string;
22
+ } | {
23
+ text: string;
24
+ font?: string;
25
+ align?: 'start' | 'middle' | 'end';
26
+ };
19
27
  export interface AnimationEditorOptions {
20
28
  /** The scene to open (default: an empty one over a blank 800 × 450 artwork). */
21
29
  scene?: MotionScene;
@@ -250,6 +258,8 @@ export declare class AnimationEditorController {
250
258
  height: number;
251
259
  };
252
260
  instance?: string;
261
+ path?: MotionEffectPathInput;
262
+ control?: string;
253
263
  }): Promise<MotionEffectResult>;
254
264
  /**
255
265
  * Makes an applied effect again with new `values` (merged over its own; `null` resets a
@@ -49,7 +49,7 @@ export declare function motionPartsFromVectorEffect(artwork: VectorDocument, mot
49
49
  y: number;
50
50
  width: number;
51
51
  height: number;
52
- }): {
52
+ } | 'viewBox'): {
53
53
  group: VectorGroupNode;
54
54
  shots: MotionShot[];
55
55
  notes: string[];
@@ -49,7 +49,7 @@ export declare function motionPartsFromVectorEffect(artwork: VectorDocument, mot
49
49
  y: number;
50
50
  width: number;
51
51
  height: number;
52
- }): {
52
+ } | 'viewBox'): {
53
53
  group: VectorGroupNode;
54
54
  shots: MotionShot[];
55
55
  notes: string[];