@agrhub/engine-pixi 1.3.3 → 1.4.1

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.
@@ -61,6 +61,7 @@ interface BaseClipJSON {
61
61
  transition?: ITransitionInfo;
62
62
  style?: any;
63
63
  locked?: boolean;
64
+ muted?: boolean;
64
65
  colorAdjustment?: ColorAdjustment;
65
66
  chromaKey?: IChromaKeyOpts;
66
67
  animation?: {
@@ -264,6 +265,7 @@ export interface StudioTrackJSON {
264
265
  name: string;
265
266
  type: string;
266
267
  clipIds: string[];
268
+ muted?: boolean;
267
269
  }
268
270
  export interface ProjectJSON {
269
271
  tracks?: StudioTrackJSON[];
@@ -26,6 +26,7 @@ export interface BaseSpriteEvents {
26
26
  volume: number;
27
27
  animations: IAnimation[];
28
28
  locked: boolean;
29
+ muted: boolean;
29
30
  }>;
30
31
  [key: string]: any;
31
32
  [key: symbol]: any;
@@ -150,6 +151,23 @@ export declare abstract class BaseSprite<T extends BaseSpriteEvents = BaseSprite
150
151
  */
151
152
  get locked(): boolean;
152
153
  set locked(v: boolean);
154
+ private _muted;
155
+ /**
156
+ * Whether the clip's audio is muted (volume is kept, so unmuting restores it)
157
+ */
158
+ get muted(): boolean;
159
+ set muted(v: boolean);
160
+ private _trackMuted;
161
+ /**
162
+ * Set by Studio/Compositor when the clip's track is muted. Not serialized and does not emit
163
+ * propsChange, so it can be refreshed every frame.
164
+ */
165
+ get trackMuted(): boolean;
166
+ set trackMuted(v: boolean);
167
+ /** Called when the track-level mute flips (clip-level changes arrive via propsChange). */
168
+ protected onEffectiveVolumeChange(): void;
169
+ /** Volume actually applied to audio output: 0 when the clip or its track is muted. */
170
+ get effectiveVolume(): number;
153
171
  /**
154
172
  * Flip clip horizontally or vertically
155
173
  */
@@ -46,6 +46,7 @@ export declare class PixiSpriteRenderer {
46
46
  * Feather (soft edge) is approximated via alpha gradient on the mask shape.
47
47
  */
48
48
  private applyContainerAnimations;
49
+ private _drawEdgeCropMask;
49
50
  private _getMaskDimensions;
50
51
  private _drawRectWipeMask;
51
52
  private _drawAngleWipeMask;