@designcombo/video 0.1.7 → 0.1.9

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,4 +1,4 @@
1
- import { F as Ie, u as Ee, l as se, M as v, G as De, v as Oe, S as Fe, x as ae, E as u, e as D, y as S, z as Le, H as O, I as b, R as F, J as ne, K as He, t as m, b as f, i as B, w as L, L as K, N as We, c as Y, B as y, j as U, O as ze, Q as C, k as M, V as w, W as Ve, a as Ne, X as ie, Y as oe, Z as le, _ as ue, C as P, $ as je, a0 as A, a1 as J, D as H, a2 as $e, a3 as qe, P as Ke, d as Ye, T as X, a4 as Q, a5 as Je, a6 as Xe, a7 as Qe } from "./index-vzWoc22W.js";
1
+ import { F as Ie, u as Ee, l as se, M as v, G as De, v as Oe, S as Fe, x as ae, E as u, e as D, y as S, z as Le, H as O, I as b, R as F, J as ne, K as He, t as m, b as f, i as B, w as L, L as K, N as We, c as Y, B as y, j as U, O as ze, Q as C, k as M, V as w, W as Ve, a as Ne, X as ie, Y as oe, Z as le, _ as ue, C as P, $ as je, a0 as A, a1 as J, D as H, a2 as $e, a3 as qe, P as Ke, d as Ye, T as X, a4 as Q, a5 as Je, a6 as Xe, a7 as Qe } from "./index-B0AsXir7.js";
2
2
  import { B as de, c as Ze } from "./colorToUniform-C2jGzNe1.js";
3
3
  var et = `in vec2 vMaskCoord;
4
4
  in vec2 vTextureCoord;
@@ -1,6 +1,6 @@
1
- import { S as G, E as d, B as v, w as m, D as S, L as j, v as ve, s as U, t as b, a8 as Be, k as K, a9 as Ae, b as p, V as L, j as B, i as A, l as F, M as $, aa as z, ab as Ne, ac as ye, ad as Y, ae as Ce, A as De, R as Ie, e as T } from "./index-vzWoc22W.js";
1
+ import { S as G, E as d, B as v, w as m, D as S, L as j, v as ve, s as U, t as b, a8 as Be, k as K, a9 as Ae, b as p, V as L, j as B, i as A, l as F, M as $, aa as z, ab as Ne, ac as ye, ad as Y, ae as Ce, A as De, R as Ie, e as T } from "./index-B0AsXir7.js";
2
2
  import { b as q } from "./colorToUniform-C2jGzNe1.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-84EoMkf6.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-j_zPWvy9.js";
4
4
  class Q {
5
5
  constructor() {
6
6
  this._tempState = G.for2d(), this._didUploadHash = {};
@@ -1,6 +1,6 @@
1
- import { S as E, g as A, E as p, f as ae, D as S, b as C, B as T, c as ue, d as L, h as M, w as v, i as x, j as ce, k as de, l as k, m as w, M as D, n as H, o as he, p as pe, q as z, s as F, t as R, A as le, R as fe, e as B } from "./index-vzWoc22W.js";
1
+ import { S as E, g as A, E as p, f as ae, D as S, b as C, B as T, c as ue, d as L, h as M, w as v, i as x, j as ce, k as de, l as k, m as w, M as D, n as H, o as he, p as pe, q as z, s as F, t as R, A as le, R as fe, e as B } from "./index-B0AsXir7.js";
2
2
  import { l as ge, a as me } from "./colorToUniform-C2jGzNe1.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-84EoMkf6.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-j_zPWvy9.js";
4
4
  const y = E.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, a as ie, w as g, e as P, C as V } from "./index-vzWoc22W.js";
2
- import "./webworkerAll-D3uve5FK.js";
1
+ import { T as M, U as Z, P as m, r as te, E as y, a as ie, w as g, e as P, C as V } from "./index-B0AsXir7.js";
2
+ import "./webworkerAll-BtiyFllu.js";
3
3
  class q {
4
4
  constructor(e) {
5
5
  this._lastTransform = "", this._observer = null, this._tickerAttached = !1, this.updateTranslation = () => {
@@ -87,5 +87,11 @@ export declare abstract class BaseClip extends BaseSprite implements IClip {
87
87
  * @param main Whether this is the main clip (for Compositor)
88
88
  */
89
89
  toJSON(main?: boolean): ClipJSON;
90
+ /**
91
+ * Get the list of visible transformer handles for this clip type
92
+ * Default implementation returns all handles
93
+ * Override in subclasses to customize handle visibility (e.g., TextClip)
94
+ */
95
+ getVisibleHandles(): Array<'tl' | 'tr' | 'bl' | 'br' | 'ml' | 'mr' | 'mt' | 'mb' | 'rot'>;
90
96
  destroy(): void;
91
97
  }
@@ -91,6 +91,12 @@ export interface IClip extends Omit<BaseSprite, 'destroy' | 'ready'> {
91
91
  * Styling properties (e.g., stroke, dropShadow, borderRadius)
92
92
  */
93
93
  style: any;
94
+ /**
95
+ * Get the list of visible transformer handles for this clip type
96
+ * Similar to Fabric.js v6 controls visibility pattern
97
+ * @returns Array of handle kinds that should be visible
98
+ */
99
+ getVisibleHandles?: () => Array<'tl' | 'tr' | 'bl' | 'br' | 'ml' | 'mr' | 'mt' | 'mb' | 'rot'>;
94
100
  }
95
101
  /**
96
102
  * Optional interface for clips that support HTML media element playback
@@ -139,6 +139,8 @@ export declare class TextClip extends BaseClip {
139
139
  set width(v: number);
140
140
  get height(): number;
141
141
  set height(v: number);
142
+ private _lastContentWidth;
143
+ private _lastContentHeight;
142
144
  private _text;
143
145
  /**
144
146
  * Text content (hybrid JSON structure)
@@ -249,4 +251,10 @@ export declare class TextClip extends BaseClip {
249
251
  * @returns Promise that resolves to a TextClip instance
250
252
  */
251
253
  static fromObject(json: TextClipJSON): Promise<TextClip>;
254
+ /**
255
+ * Override handle visibility for text clips
256
+ * Text clips should only show: mr (mid-right), mb (mid-bottom), br (bottom-right), and rot (rotation)
257
+ * This allows resizing width and height independently while preventing corner handles that might distort text
258
+ */
259
+ getVisibleHandles(): Array<'tl' | 'tr' | 'bl' | 'br' | 'ml' | 'mr' | 'mt' | 'mb' | 'rot'>;
252
260
  }