@designcombo/video 0.1.5 → 0.1.7

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.
@@ -28,6 +28,7 @@ interface BaseClipJSON {
28
28
  to: number;
29
29
  };
30
30
  transition?: ITransitionInfo;
31
+ style?: any;
31
32
  animation?: {
32
33
  keyFrames: Record<string, Partial<{
33
34
  x: number;
@@ -131,6 +131,13 @@ export declare abstract class BaseSprite extends EventEmitter<BaseSpriteEvents>
131
131
  duration: number;
132
132
  targets?: number[];
133
133
  }>;
134
+ /**
135
+ * Styling properties (e.g., stroke, dropShadow, borderRadius)
136
+ * This is a generic object to hold visual styles across different clip types
137
+ */
138
+ protected _style: any;
139
+ get style(): any;
140
+ set style(v: any);
134
141
  private animatKeyFrame;
135
142
  private animatOpts;
136
143
  /**
@@ -18,6 +18,12 @@ export declare class PixiSpriteRenderer {
18
18
  private texture;
19
19
  private canvas;
20
20
  private context;
21
+ private root;
22
+ private strokeGraphics;
23
+ private maskGraphics;
24
+ private shadowGraphics;
25
+ private shadowContainer;
26
+ private resolution;
21
27
  private destroyed;
22
28
  constructor(_pixiApp: Application | null, sprite: IClip, targetContainer?: Container | null);
23
29
  /**
@@ -30,7 +36,14 @@ export declare class PixiSpriteRenderer {
30
36
  * Apply sprite transformations to the Pixi Sprite
31
37
  */
32
38
  private applySpriteTransforms;
39
+ /**
40
+ * Apply all styles (stroke, borderRadius, dropShadow) to the sprite
41
+ */
42
+ private applyStyle;
43
+ private applyStroke;
44
+ private applyShadow;
33
45
  updateTransforms(): void;
34
46
  getSprite(): Sprite | null;
47
+ getRoot(): Container | null;
35
48
  destroy(): void;
36
49
  }
@@ -1,4 +1,4 @@
1
- import { E as p, U as Ne, T as ee, F as je, G as he, v as fe, M as P, l as C, d as pe, I as v, t as w, a8 as $, R as N, w as L, H as me, a5 as G, a6 as ge, c as F, B as T, D as j, S as M, y as D, af as qe, ag as q, L as Y, ah as U, s as Q, a0 as Qe, $ as X, n as xe, q as _e, aa as be, ad as ye, o as Je, p as Ze, ab as et, ac as tt, ae as rt, ai as nt, aj as st, ak as it, al as H, am as at, an as ot, m as ve, ao as te, ap as k, e as b, aq as ut } from "./index-C2fuEuN1.js";
1
+ import { E as p, U as Ne, T as ee, F as je, G as he, v as fe, M as P, l as C, d as pe, I as v, t as w, a8 as $, R as N, w as L, H as me, a5 as G, a6 as ge, c as F, B as T, D as j, S as M, y as D, af as qe, ag as q, L as Y, ah as U, s as Q, a0 as Qe, $ as X, n as xe, q as _e, aa as be, ad as ye, o as Je, p as Ze, ab as et, ac as tt, ae as rt, ai as nt, aj as st, ak as it, al as H, am as at, an as ot, m as ve, ao as te, ap as k, e as b, aq as ut } from "./index-vzWoc22W.js";
2
2
  import { c as z, a as lt, b as ct, B as Te } from "./colorToUniform-C2jGzNe1.js";
3
3
  class Pe {
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcombo/video",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Video rendering and processing library",
5
5
  "type": "module",
6
6
  "publishConfig": {