@designcombo/video 0.0.0 → 0.0.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.
@@ -1,5 +1,5 @@
1
- import { u as Ie, m as se, M as v, G as Ee, a as De, v as ae, E as u, e as D, x as S, y as Oe, z as O, F as b, R as F, H as ne, I as Fe, t as m, c as f, j as B, w as L, J as K, K as Le, d as Y, B as y, k as U, L as He, N as C, l as M, O as w, Q as We, b as ze, V as ie, W as oe, X as le, Y as ue, C as P, Z as Ve, _ as A, $ as J, D as H, a0 as Ne, a1 as je, P as $e, h as qe, T as X, a2 as Q, a3 as Ke, a4 as Ye, a5 as Je } from "./index-CjzowIhV.js";
2
- import { F as Xe, S as Qe, B as de, c as Ze } from "./colorToUniform-Du0ROyNd.js";
1
+ import { u as Ie, m as se, M as v, G as Ee, a as De, v as ae, E as u, e as D, x as S, y as Oe, z as O, F as b, R as F, H as ne, I as Fe, t as m, c as f, j as B, w as L, J as K, K as Le, d as Y, B as y, k as U, L as He, N as C, l as M, O as w, Q as We, b as ze, V as ie, W as oe, X as le, Y as ue, C as P, Z as Ve, _ as A, $ as J, D as H, a0 as Ne, a1 as je, P as $e, h as qe, T as X, a2 as Q, a3 as Ke, a4 as Ye, a5 as Je } from "./index-BuRTeJh6.js";
2
+ import { F as Xe, S as Qe, B as de, c as Ze } from "./colorToUniform-B0NRe8Du.js";
3
3
  var et = `in vec2 vMaskCoord;
4
4
  in vec2 vTextureCoord;
5
5
 
@@ -1,6 +1,6 @@
1
- import { E as d, B as v, w as m, D as S, J as j, a as ve, S as G, t as b, a6 as Be, l as K, a7 as Ae, c as p, O as L, k as B, j as A, m as U, M as $, a8 as z, a9 as Ne, aa as ye, ab as Y, ac as Ce, A as De, R as Ie, e as T } from "./index-CjzowIhV.js";
2
- import { S as F, b as q } from "./colorToUniform-Du0ROyNd.js";
3
- import { e as Ge, G as Ue, c as Fe, b as Oe, U as Pe, R as Me, B as Z, d as N, f as Le, S as He, a as we } from "./SharedSystems-BSw9neqH.js";
1
+ import { E as d, B as v, w as m, D as S, J as j, a as ve, S as G, t as b, a6 as Be, l as K, a7 as Ae, c as p, O as L, k as B, j as A, m as U, M as $, a8 as z, a9 as Ne, aa as ye, ab as Y, ac as Ce, A as De, R as Ie, e as T } from "./index-BuRTeJh6.js";
2
+ import { S as F, b as q } from "./colorToUniform-B0NRe8Du.js";
3
+ import { e as Ge, G as Ue, c as Fe, b as Oe, U as Pe, R as Me, B as Z, d as N, f as Le, S as He, a as we } from "./SharedSystems-BhqLJf5z.js";
4
4
  class J {
5
5
  constructor() {
6
6
  this._tempState = F.for2d(), this._didUploadHash = {};
@@ -1,6 +1,6 @@
1
- import { g as E, E as p, f as ae, D as S, c as C, B as T, d as ue, h as A, i as M, w as v, j as x, k as ce, l as de, m as L, n as w, M as k, o as D, p as he, q as pe, s as H, S as z, t as R, A as le, R as fe, e as B } from "./index-CjzowIhV.js";
2
- import { S as F, l as ge, a as me } from "./colorToUniform-Du0ROyNd.js";
3
- import { c as _e, u as be, U as xe, B as ye, G as Ge, e as Se, R as Be, t as Pe, S as Te, a as Ce } from "./SharedSystems-BSw9neqH.js";
1
+ import { g as E, E as p, f as ae, D as S, c as C, B as T, d as ue, h as A, i as M, w as v, j as x, k as ce, l as de, m as L, n as w, M as k, o as D, p as he, q as pe, s as H, S as z, t as R, A as le, R as fe, e as B } from "./index-BuRTeJh6.js";
2
+ import { S as F, l as ge, a as me } from "./colorToUniform-B0NRe8Du.js";
3
+ import { c as _e, u as be, U as xe, B as ye, G as Ge, e as Se, R as Be, t as Pe, S as Te, a as Ce } from "./SharedSystems-BhqLJf5z.js";
4
4
  const y = F.for2d();
5
5
  class O {
6
6
  start(e, t, r) {
@@ -1,5 +1,5 @@
1
- import { T as M, U as Z, P as m, r as te, E as y, b as ie, w as g, e as P, C as V } from "./index-CjzowIhV.js";
2
- import "./webworkerAll-DsE6HIYE.js";
1
+ import { T as M, U as Z, P as m, r as te, E as y, b as ie, w as g, e as P, C as V } from "./index-BuRTeJh6.js";
2
+ import "./webworkerAll-DChKIQQa.js";
3
3
  class q {
4
4
  constructor(e) {
5
5
  this._lastTransform = "", this._observer = null, this._tickerAttached = !1, this.updateTranslation = () => {
@@ -30,7 +30,7 @@ export declare class AudioClip extends BaseClip implements IPlaybackCapable {
30
30
  * ⚠️ Note, these are converted (normalized) metadata, not original audio metadata
31
31
  */
32
32
  get meta(): {
33
- sampleRate: 48000;
33
+ sampleRate: number;
34
34
  chanCount: number;
35
35
  duration: number;
36
36
  width: number;
@@ -111,10 +111,22 @@ export interface IPlaybackCapable {
111
111
  cleanupPlayback(element: HTMLVideoElement | HTMLAudioElement, objectUrl?: string): void;
112
112
  }
113
113
  /**
114
- * Default audio settings, ⚠️ do not change its values ⚠️
114
+ * Get the default audio configuration
115
+ * This function returns a promise that resolves to the best supported audio codec
116
+ */
117
+ export declare function getDefaultAudioConf(): Promise<{
118
+ codec: string;
119
+ sampleRate: number;
120
+ channelCount: number;
121
+ }>;
122
+ /**
123
+ * Synchronous version that returns cached codec or a default fallback
124
+ * Use this only when you need synchronous access (e.g., in constants)
125
+ * Prefer getDefaultAudioConf() for async contexts
115
126
  */
116
127
  export declare const DEFAULT_AUDIO_CONF: {
117
- readonly sampleRate: 48000;
118
- readonly channelCount: 2;
119
- readonly codec: "mp4a.40.2";
128
+ readonly codec: string;
129
+ readonly codecType: "aac" | "opus";
130
+ readonly sampleRate: number;
131
+ readonly channelCount: number;
120
132
  };
@@ -45,6 +45,8 @@ export interface ITextClipOpts {
45
45
  color: string | number;
46
46
  width: number;
47
47
  join?: 'miter' | 'round' | 'bevel';
48
+ cap?: 'butt' | 'round' | 'square';
49
+ miterLimit?: number;
48
50
  };
49
51
  /**
50
52
  * Stroke width in pixels (used when stroke is a simple color)
@@ -141,6 +143,15 @@ export declare class TextClip extends BaseClip {
141
143
  stroke: {
142
144
  color: string | number;
143
145
  width: number;
146
+ join: "miter" | "round" | "bevel" | undefined;
147
+ cap: "round" | "butt" | "square" | undefined;
148
+ miterLimit: number | undefined;
149
+ } | {
150
+ color: string | number;
151
+ width: number;
152
+ join?: undefined;
153
+ cap?: undefined;
154
+ miterLimit?: undefined;
144
155
  } | undefined;
145
156
  shadow: {
146
157
  color: string | number;
@@ -149,6 +160,10 @@ export declare class TextClip extends BaseClip {
149
160
  offsetX: number;
150
161
  offsetY: number;
151
162
  } | undefined;
163
+ wordWrap: boolean | undefined;
164
+ wordWrapWidth: number | undefined;
165
+ lineHeight: number | undefined;
166
+ letterSpacing: number | undefined;
152
167
  };
153
168
  private pixiText;
154
169
  private textStyle;
@@ -181,6 +196,20 @@ export declare class TextClip extends BaseClip {
181
196
  }>;
182
197
  split(_time: number): Promise<[this, this]>;
183
198
  clone(): Promise<this>;
199
+ /**
200
+ * Update text styling options and refresh the texture
201
+ * This is used for dynamic updates like resizing with text reflow
202
+ */
203
+ updateStyle(opts: Partial<ITextClipOpts>): Promise<void>;
204
+ /**
205
+ * Refresh the internal Pixi Text and RenderTexture
206
+ * Calculates dimensions based on text bounds and wrapping options
207
+ */
208
+ private refreshText;
209
+ /**
210
+ * Helper to create PixiJS TextStyle options from TextClip options
211
+ */
212
+ private createStyleFromOpts;
184
213
  destroy(): void;
185
214
  toJSON(main?: boolean): TextClipJSON;
186
215
  /**
@@ -1,4 +1,4 @@
1
- import { S as M, G as x, a as F } from "./index-CjzowIhV.js";
1
+ import { S as M, G as x, a as F } from "./index-BuRTeJh6.js";
2
2
  const T = {
3
3
  normal: 0,
4
4
  add: 1,