@shotstack/shotstack-studio 2.0.0-rc.5 → 2.0.0-rc.6
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.
- package/dist/internal.es.js +499 -499
- package/dist/internal.umd.js +10 -10
- package/dist/shotstack-studio.es.js +63 -63
- package/dist/shotstack-studio.umd.js +2 -2
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import "pixi.js/text-html";
|
|
|
10
10
|
import "pixi.js/sprite-tiling";
|
|
11
11
|
import "pixi.js/filters";
|
|
12
12
|
import "pixi.js/mesh";
|
|
13
|
-
const ug = "2.0.0-rc.
|
|
13
|
+
const ug = "2.0.0-rc.6", fg = {
|
|
14
14
|
version: ug
|
|
15
15
|
};
|
|
16
16
|
class hg {
|
|
@@ -520,7 +520,7 @@ const G = {
|
|
|
520
520
|
OutputDestinationsChanged: "output:destinationsChanged",
|
|
521
521
|
// Merge fields
|
|
522
522
|
MergeFieldChanged: "mergefield:changed"
|
|
523
|
-
},
|
|
523
|
+
}, Le = {
|
|
524
524
|
// Canvas → Edit communication
|
|
525
525
|
CanvasClipClicked: "canvas:clipClicked",
|
|
526
526
|
CanvasBackgroundClicked: "canvas:backgroundClicked",
|
|
@@ -925,7 +925,7 @@ class Dt extends wg {
|
|
|
925
925
|
* All drag/resize/rotate interaction is handled by SelectionHandles.
|
|
926
926
|
*/
|
|
927
927
|
onPointerDown(e) {
|
|
928
|
-
e.button === $f.ButtonLeftClick && this.edit.getInternalEvents().emit(
|
|
928
|
+
e.button === $f.ButtonLeftClick && this.edit.getInternalEvents().emit(Le.CanvasClipClicked, { player: this });
|
|
929
929
|
}
|
|
930
930
|
clipHasKeyframes() {
|
|
931
931
|
return [
|
|
@@ -33236,37 +33236,37 @@ const CS = new uo(Dc("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCY
|
|
|
33236
33236
|
], jl = {
|
|
33237
33237
|
Non_Joining: 0,
|
|
33238
33238
|
Transparent: 6
|
|
33239
|
-
}, et = "isol", $s = "fina", sl = "fin2", kS = "fin3", Kr = "medi", Qr = "med2", Jr = "init",
|
|
33239
|
+
}, et = "isol", $s = "fina", sl = "fin2", kS = "fin3", Kr = "medi", Qr = "med2", Jr = "init", Be = null, SS = [
|
|
33240
33240
|
// Non_Joining, Left_Joining, Right_Joining, Dual_Joining, ALAPH, DALATH RISH
|
|
33241
33241
|
// State 0: prev was U, not willing to join.
|
|
33242
33242
|
[
|
|
33243
33243
|
[
|
|
33244
|
-
|
|
33245
|
-
|
|
33244
|
+
Be,
|
|
33245
|
+
Be,
|
|
33246
33246
|
0
|
|
33247
33247
|
],
|
|
33248
33248
|
[
|
|
33249
|
-
|
|
33249
|
+
Be,
|
|
33250
33250
|
et,
|
|
33251
33251
|
2
|
|
33252
33252
|
],
|
|
33253
33253
|
[
|
|
33254
|
-
|
|
33254
|
+
Be,
|
|
33255
33255
|
et,
|
|
33256
33256
|
1
|
|
33257
33257
|
],
|
|
33258
33258
|
[
|
|
33259
|
-
|
|
33259
|
+
Be,
|
|
33260
33260
|
et,
|
|
33261
33261
|
2
|
|
33262
33262
|
],
|
|
33263
33263
|
[
|
|
33264
|
-
|
|
33264
|
+
Be,
|
|
33265
33265
|
et,
|
|
33266
33266
|
1
|
|
33267
33267
|
],
|
|
33268
33268
|
[
|
|
33269
|
-
|
|
33269
|
+
Be,
|
|
33270
33270
|
et,
|
|
33271
33271
|
6
|
|
33272
33272
|
]
|
|
@@ -33274,32 +33274,32 @@ const CS = new uo(Dc("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCY
|
|
|
33274
33274
|
// State 1: prev was R or ISOL/ALAPH, not willing to join.
|
|
33275
33275
|
[
|
|
33276
33276
|
[
|
|
33277
|
-
|
|
33278
|
-
|
|
33277
|
+
Be,
|
|
33278
|
+
Be,
|
|
33279
33279
|
0
|
|
33280
33280
|
],
|
|
33281
33281
|
[
|
|
33282
|
-
|
|
33282
|
+
Be,
|
|
33283
33283
|
et,
|
|
33284
33284
|
2
|
|
33285
33285
|
],
|
|
33286
33286
|
[
|
|
33287
|
-
|
|
33287
|
+
Be,
|
|
33288
33288
|
et,
|
|
33289
33289
|
1
|
|
33290
33290
|
],
|
|
33291
33291
|
[
|
|
33292
|
-
|
|
33292
|
+
Be,
|
|
33293
33293
|
et,
|
|
33294
33294
|
2
|
|
33295
33295
|
],
|
|
33296
33296
|
[
|
|
33297
|
-
|
|
33297
|
+
Be,
|
|
33298
33298
|
sl,
|
|
33299
33299
|
5
|
|
33300
33300
|
],
|
|
33301
33301
|
[
|
|
33302
|
-
|
|
33302
|
+
Be,
|
|
33303
33303
|
et,
|
|
33304
33304
|
6
|
|
33305
33305
|
]
|
|
@@ -33307,12 +33307,12 @@ const CS = new uo(Dc("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCY
|
|
|
33307
33307
|
// State 2: prev was D/L in ISOL form, willing to join.
|
|
33308
33308
|
[
|
|
33309
33309
|
[
|
|
33310
|
-
|
|
33311
|
-
|
|
33310
|
+
Be,
|
|
33311
|
+
Be,
|
|
33312
33312
|
0
|
|
33313
33313
|
],
|
|
33314
33314
|
[
|
|
33315
|
-
|
|
33315
|
+
Be,
|
|
33316
33316
|
et,
|
|
33317
33317
|
2
|
|
33318
33318
|
],
|
|
@@ -33340,12 +33340,12 @@ const CS = new uo(Dc("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCY
|
|
|
33340
33340
|
// State 3: prev was D in FINA form, willing to join.
|
|
33341
33341
|
[
|
|
33342
33342
|
[
|
|
33343
|
-
|
|
33344
|
-
|
|
33343
|
+
Be,
|
|
33344
|
+
Be,
|
|
33345
33345
|
0
|
|
33346
33346
|
],
|
|
33347
33347
|
[
|
|
33348
|
-
|
|
33348
|
+
Be,
|
|
33349
33349
|
et,
|
|
33350
33350
|
2
|
|
33351
33351
|
],
|
|
@@ -33373,12 +33373,12 @@ const CS = new uo(Dc("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCY
|
|
|
33373
33373
|
// State 4: prev was FINA ALAPH, not willing to join.
|
|
33374
33374
|
[
|
|
33375
33375
|
[
|
|
33376
|
-
|
|
33377
|
-
|
|
33376
|
+
Be,
|
|
33377
|
+
Be,
|
|
33378
33378
|
0
|
|
33379
33379
|
],
|
|
33380
33380
|
[
|
|
33381
|
-
|
|
33381
|
+
Be,
|
|
33382
33382
|
et,
|
|
33383
33383
|
2
|
|
33384
33384
|
],
|
|
@@ -33406,12 +33406,12 @@ const CS = new uo(Dc("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCY
|
|
|
33406
33406
|
// State 5: prev was FIN2/FIN3 ALAPH, not willing to join.
|
|
33407
33407
|
[
|
|
33408
33408
|
[
|
|
33409
|
-
|
|
33410
|
-
|
|
33409
|
+
Be,
|
|
33410
|
+
Be,
|
|
33411
33411
|
0
|
|
33412
33412
|
],
|
|
33413
33413
|
[
|
|
33414
|
-
|
|
33414
|
+
Be,
|
|
33415
33415
|
et,
|
|
33416
33416
|
2
|
|
33417
33417
|
],
|
|
@@ -33439,32 +33439,32 @@ const CS = new uo(Dc("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCY
|
|
|
33439
33439
|
// State 6: prev was DALATH/RISH, not willing to join.
|
|
33440
33440
|
[
|
|
33441
33441
|
[
|
|
33442
|
-
|
|
33443
|
-
|
|
33442
|
+
Be,
|
|
33443
|
+
Be,
|
|
33444
33444
|
0
|
|
33445
33445
|
],
|
|
33446
33446
|
[
|
|
33447
|
-
|
|
33447
|
+
Be,
|
|
33448
33448
|
et,
|
|
33449
33449
|
2
|
|
33450
33450
|
],
|
|
33451
33451
|
[
|
|
33452
|
-
|
|
33452
|
+
Be,
|
|
33453
33453
|
et,
|
|
33454
33454
|
1
|
|
33455
33455
|
],
|
|
33456
33456
|
[
|
|
33457
|
-
|
|
33457
|
+
Be,
|
|
33458
33458
|
et,
|
|
33459
33459
|
2
|
|
33460
33460
|
],
|
|
33461
33461
|
[
|
|
33462
|
-
|
|
33462
|
+
Be,
|
|
33463
33463
|
kS,
|
|
33464
33464
|
5
|
|
33465
33465
|
],
|
|
33466
33466
|
[
|
|
33467
|
-
|
|
33467
|
+
Be,
|
|
33468
33468
|
et,
|
|
33469
33469
|
6
|
|
33470
33470
|
]
|
|
@@ -33490,10 +33490,10 @@ class ei extends mi {
|
|
|
33490
33490
|
var n = t[o];
|
|
33491
33491
|
let d = AS(n.codePoints[0]);
|
|
33492
33492
|
if (d === jl.Transparent) {
|
|
33493
|
-
r[o] =
|
|
33493
|
+
r[o] = Be;
|
|
33494
33494
|
continue;
|
|
33495
33495
|
}
|
|
33496
|
-
[c, l, a] = SS[a][d], c !==
|
|
33496
|
+
[c, l, a] = SS[a][d], c !== Be && i !== -1 && (r[i] = c), r[o] = l, i = o;
|
|
33497
33497
|
}
|
|
33498
33498
|
for (let o = 0; o < t.length; o++) {
|
|
33499
33499
|
let l;
|
|
@@ -39620,7 +39620,7 @@ class ws extends Dt {
|
|
|
39620
39620
|
if (!i)
|
|
39621
39621
|
return;
|
|
39622
39622
|
const a = ws.getFontSourceCacheKey(i), r = ws.fontCapabilityCache.get(a), n = r ?? this.createFontCapabilityCheckPromise(i);
|
|
39623
|
-
r || ws.fontCapabilityCache.set(a, n), this.fontSupportsBold = await n, t && this.edit.getInternalEvents().emit(
|
|
39623
|
+
r || ws.fontCapabilityCache.set(a, n), this.fontSupportsBold = await n, t && this.edit.getInternalEvents().emit(Le.FontCapabilitiesChanged, { supportsBold: this.fontSupportsBold });
|
|
39624
39624
|
}
|
|
39625
39625
|
supportsBold() {
|
|
39626
39626
|
return this.fontSupportsBold;
|
|
@@ -41375,10 +41375,10 @@ class qI {
|
|
|
41375
41375
|
}
|
|
41376
41376
|
}
|
|
41377
41377
|
setupEventListeners() {
|
|
41378
|
-
this.events.on(
|
|
41378
|
+
this.events.on(Le.PlayerLoaded, this.onPlayerLoadedBound), this.events.on(G.ClipUpdated, this.onClipChangedBound), this.events.on(Le.PlayerMovedBetweenTracks, this.onClipChangedBound);
|
|
41379
41379
|
}
|
|
41380
41380
|
removeEventListeners() {
|
|
41381
|
-
this.events.off(
|
|
41381
|
+
this.events.off(Le.PlayerLoaded, this.onPlayerLoadedBound), this.events.off(G.ClipUpdated, this.onClipChangedBound), this.events.off(Le.PlayerMovedBetweenTracks, this.onClipChangedBound);
|
|
41382
41382
|
}
|
|
41383
41383
|
processPendingMaskCleanup() {
|
|
41384
41384
|
for (let e = this.pendingMaskCleanup.length - 1; e >= 0; e -= 1) {
|
|
@@ -42743,7 +42743,7 @@ class ba {
|
|
|
42743
42743
|
const sf = /* @__PURE__ */ new Set(["asset", "start", "length", "id"]), k6 = /* @__PURE__ */ new Set(["text-to-image", "image-to-video", "text-to-speech"]);
|
|
42744
42744
|
class S6 {
|
|
42745
42745
|
constructor(e) {
|
|
42746
|
-
this.edit = e, this.edit.getInternalEvents().on(
|
|
42746
|
+
this.edit = e, this.edit.getInternalEvents().on(Le.Resolved, this.onResolved);
|
|
42747
42747
|
}
|
|
42748
42748
|
isReconciling = !1;
|
|
42749
42749
|
/**
|
|
@@ -42840,7 +42840,7 @@ class S6 {
|
|
|
42840
42840
|
r.layer = i + 1, r.clipId = t, this.edit.registerPlayerByClipId(t, r), this.edit.addPlayerToTracksArray(i, r), this.edit.addPlayerToContainer(i, r);
|
|
42841
42841
|
const n = e.asset?.type ?? "unknown";
|
|
42842
42842
|
return r.load().then(() => {
|
|
42843
|
-
this.edit.getInternalEvents().emit(
|
|
42843
|
+
this.edit.getInternalEvents().emit(Le.PlayerLoaded, {
|
|
42844
42844
|
player: r,
|
|
42845
42845
|
trackIndex: i,
|
|
42846
42846
|
clipIndex: a
|
|
@@ -42963,7 +42963,7 @@ class S6 {
|
|
|
42963
42963
|
* Clean up event subscriptions.
|
|
42964
42964
|
*/
|
|
42965
42965
|
dispose() {
|
|
42966
|
-
this.edit.getInternalEvents().off(
|
|
42966
|
+
this.edit.getInternalEvents().off(Le.Resolved, this.onResolved);
|
|
42967
42967
|
}
|
|
42968
42968
|
}
|
|
42969
42969
|
function d0(s, e) {
|
|
@@ -43275,11 +43275,11 @@ class kr {
|
|
|
43275
43275
|
}
|
|
43276
43276
|
/* @internal Update canvas visuals after size change (viewport mask, background, zoom). */
|
|
43277
43277
|
updateCanvasForSize() {
|
|
43278
|
-
this.internalEvents.emit(
|
|
43278
|
+
this.internalEvents.emit(Le.ViewportSizeChanged, {
|
|
43279
43279
|
width: this.size.width,
|
|
43280
43280
|
height: this.size.height,
|
|
43281
43281
|
backgroundColor: this.backgroundColor
|
|
43282
|
-
}), this.internalEvents.emit(
|
|
43282
|
+
}), this.internalEvents.emit(Le.ViewportNeedsZoomToFit);
|
|
43283
43283
|
}
|
|
43284
43284
|
play() {
|
|
43285
43285
|
this.isPlaying = !0, this.internalEvents.emit(G.PlaybackPlay);
|
|
@@ -43309,11 +43309,11 @@ class kr {
|
|
|
43309
43309
|
try {
|
|
43310
43310
|
this.lastResolved = null, this.document = new ba(e);
|
|
43311
43311
|
const n = this.document.getResolution(), o = this.document.getAspectRatio();
|
|
43312
|
-
this.size = n ? Xn(n, o) : this.document.getSize(), this.backgroundColor = this.document.getBackground() ?? "#000000", this.internalEvents.emit(
|
|
43312
|
+
this.size = n ? Xn(n, o) : this.document.getSize(), this.backgroundColor = this.document.getBackground() ?? "#000000", this.internalEvents.emit(Le.ViewportSizeChanged, {
|
|
43313
43313
|
width: this.size.width,
|
|
43314
43314
|
height: this.size.height,
|
|
43315
43315
|
backgroundColor: this.backgroundColor
|
|
43316
|
-
}), this.internalEvents.emit(
|
|
43316
|
+
}), this.internalEvents.emit(Le.ViewportNeedsZoomToFit), this.clearClips(), await this.initializeFromDocument("loadEdit");
|
|
43317
43317
|
} catch (n) {
|
|
43318
43318
|
throw this.document = t, this.lastResolved = i, this.size = a, this.backgroundColor = r, n;
|
|
43319
43319
|
}
|
|
@@ -43403,7 +43403,7 @@ class kr {
|
|
|
43403
43403
|
resolve() {
|
|
43404
43404
|
return this.lastResolved = af(this.document, {
|
|
43405
43405
|
mergeFields: this.mergeFieldService
|
|
43406
|
-
}), this.internalEvents.emit(
|
|
43406
|
+
}), this.internalEvents.emit(Le.Resolved, { edit: this.lastResolved }), this.lastResolved;
|
|
43407
43407
|
}
|
|
43408
43408
|
/** @internal Resolve a single clip and update its player. */
|
|
43409
43409
|
resolveClip(e) {
|
|
@@ -43550,7 +43550,7 @@ class kr {
|
|
|
43550
43550
|
console.warn(`Cannot remove non-empty track ${e}`);
|
|
43551
43551
|
return;
|
|
43552
43552
|
}
|
|
43553
|
-
this.tracks.splice(e, 1), this.internalEvents.emit(
|
|
43553
|
+
this.tracks.splice(e, 1), this.internalEvents.emit(Le.TrackContainerRemoved, { trackIndex: e });
|
|
43554
43554
|
for (let i = e; i < this.tracks.length; i += 1)
|
|
43555
43555
|
for (const a of this.tracks[i])
|
|
43556
43556
|
a.layer = i + 1;
|
|
@@ -44117,11 +44117,11 @@ class kr {
|
|
|
44117
44117
|
* @internal Used by PlayerReconciler and commands
|
|
44118
44118
|
*/
|
|
44119
44119
|
addPlayerToContainer(e, t) {
|
|
44120
|
-
this.internalEvents.emit(
|
|
44120
|
+
this.internalEvents.emit(Le.PlayerAddedToTrack, { player: t, trackIndex: e });
|
|
44121
44121
|
}
|
|
44122
44122
|
// Move a player's container to the appropriate track container
|
|
44123
44123
|
movePlayerToTrackContainer(e, t, i) {
|
|
44124
|
-
this.internalEvents.emit(
|
|
44124
|
+
this.internalEvents.emit(Le.PlayerMovedBetweenTracks, {
|
|
44125
44125
|
player: e,
|
|
44126
44126
|
fromTrackIndex: t,
|
|
44127
44127
|
toTrackIndex: i
|
|
@@ -44137,7 +44137,7 @@ class kr {
|
|
|
44137
44137
|
async addPlayer(e, t) {
|
|
44138
44138
|
for (; this.tracks.length <= e; )
|
|
44139
44139
|
this.tracks.push([]);
|
|
44140
|
-
this.tracks[e].push(t), this.internalEvents.emit(
|
|
44140
|
+
this.tracks[e].push(t), this.internalEvents.emit(Le.PlayerAddedToTrack, { player: t, trackIndex: e }), await t.load(), this.updateTotalDuration();
|
|
44141
44141
|
}
|
|
44142
44142
|
/** @internal */
|
|
44143
44143
|
selectClip(e, t) {
|
|
@@ -44321,7 +44321,7 @@ class kr {
|
|
|
44321
44321
|
return this.executeCommand(t);
|
|
44322
44322
|
}
|
|
44323
44323
|
setTimelineBackgroundInternal(e) {
|
|
44324
|
-
dx.parse(e), this.backgroundColor = e, this.document.setBackground(e), this.internalEvents.emit(
|
|
44324
|
+
dx.parse(e), this.backgroundColor = e, this.document.setBackground(e), this.internalEvents.emit(Le.ViewportSizeChanged, {
|
|
44325
44325
|
width: this.size.width,
|
|
44326
44326
|
height: this.size.height,
|
|
44327
44327
|
backgroundColor: this.backgroundColor
|
|
@@ -44451,9 +44451,9 @@ class kr {
|
|
|
44451
44451
|
}
|
|
44452
44452
|
// ─── Intent Listeners ────────────────────────────────────────────────────────
|
|
44453
44453
|
setupIntentListeners() {
|
|
44454
|
-
this.internalEvents.on(
|
|
44454
|
+
this.internalEvents.on(Le.CanvasClipClicked, (e) => {
|
|
44455
44455
|
this.selectPlayer(e.player);
|
|
44456
|
-
}), this.internalEvents.on(
|
|
44456
|
+
}), this.internalEvents.on(Le.CanvasBackgroundClicked, () => {
|
|
44457
44457
|
this.clearSelection();
|
|
44458
44458
|
});
|
|
44459
44459
|
}
|
|
@@ -44719,7 +44719,7 @@ class zs {
|
|
|
44719
44719
|
*/
|
|
44720
44720
|
subscribeToEditEvents() {
|
|
44721
44721
|
const e = this.edit.getInternalEvents();
|
|
44722
|
-
e.on(
|
|
44722
|
+
e.on(Le.PlayerAddedToTrack, this.onPlayerAddedToTrack), e.on(Le.PlayerMovedBetweenTracks, this.onPlayerMovedBetweenTracks), e.on(Le.PlayerRemovedFromTrack, this.onPlayerRemovedFromTrack), e.on(Le.TrackContainerRemoved, this.onTrackContainerRemoved), e.on(Le.ViewportSizeChanged, this.onViewportSizeChanged), e.on(Le.ViewportNeedsZoomToFit, this.onViewportNeedsZoomToFit);
|
|
44723
44723
|
}
|
|
44724
44724
|
onPlayerAddedToTrack = ({ player: e, trackIndex: t }) => {
|
|
44725
44725
|
this.addPlayerToTrack(e, t);
|
|
@@ -44776,7 +44776,7 @@ class zs {
|
|
|
44776
44776
|
this.container.addChild(this.background), this.container.addChild(this.viewportContainer), this.container.addChild(this.overlayContainer), this.application.stage.addChild(this.container), this.application.stage.eventMode = "static", this.application.stage.hitArea = new H.Rectangle(0, 0, this.viewportSize.width, this.viewportSize.height), this.background.eventMode = "static", this.background.on("pointerdown", this.onBackgroundClickBound);
|
|
44777
44777
|
}
|
|
44778
44778
|
onBackgroundClick(e) {
|
|
44779
|
-
e.target === this.background && this.edit.getInternalEvents().emit(
|
|
44779
|
+
e.target === this.background && this.edit.getInternalEvents().emit(Le.CanvasBackgroundClicked);
|
|
44780
44780
|
}
|
|
44781
44781
|
/** @internal */
|
|
44782
44782
|
pauseTicker() {
|
|
@@ -44788,7 +44788,7 @@ class zs {
|
|
|
44788
44788
|
}
|
|
44789
44789
|
dispose() {
|
|
44790
44790
|
const e = this.edit.getInternalEvents();
|
|
44791
|
-
e.off(
|
|
44791
|
+
e.off(Le.PlayerAddedToTrack, this.onPlayerAddedToTrack), e.off(Le.PlayerMovedBetweenTracks, this.onPlayerMovedBetweenTracks), e.off(Le.PlayerRemovedFromTrack, this.onPlayerRemovedFromTrack), e.off(Le.TrackContainerRemoved, this.onTrackContainerRemoved), e.off(Le.ViewportSizeChanged, this.onViewportSizeChanged), e.off(Le.ViewportNeedsZoomToFit, this.onViewportNeedsZoomToFit);
|
|
44792
44792
|
const t = document.querySelector(zs.CanvasSelector);
|
|
44793
44793
|
t && t.contains(this.application.canvas) && t.removeChild(this.application.canvas), this.application.ticker.remove(this.onTickBound), this.background?.off("pointerdown", this.onBackgroundClickBound), this.canvasRoot?.removeEventListener("wheel", this.onWheelBound, { capture: !0 }), this.canvasRoot = null, this.alignmentGuides?.dispose(), this.alignmentGuides = null, this.editBackground?.destroy(), this.viewportMask?.destroy(), this.viewportContainer?.destroy(), this.background?.destroy(), this.overlayContainer.destroy(), this.container?.destroy(), this.uiController = null, this.application.destroy(!0, { children: !0, texture: !0 });
|
|
44794
44794
|
}
|
|
@@ -52247,7 +52247,7 @@ class HE {
|
|
|
52247
52247
|
pixelsPerSecond: t.pixelsPerSecond ?? 50,
|
|
52248
52248
|
width: t.width ?? 800,
|
|
52249
52249
|
height: t.height ?? 400
|
|
52250
|
-
}, this.edit.getInternalEvents().on(
|
|
52250
|
+
}, this.edit.getInternalEvents().on(Le.Resolved, this.invalidateCache), this.edit.events.on(G.ClipUpdated, this.invalidateCache), this.edit.events.on(G.TimelineUpdated, this.invalidateCache), this.edit.events.on(G.ClipSelected, this.invalidateCache), this.edit.events.on(G.SelectionCleared, this.invalidateCache);
|
|
52251
52251
|
}
|
|
52252
52252
|
viewport;
|
|
52253
52253
|
interactionQuery = null;
|
|
@@ -52364,7 +52364,7 @@ class HE {
|
|
|
52364
52364
|
this.lumaEditingVisibleByClipId.delete(e);
|
|
52365
52365
|
}
|
|
52366
52366
|
dispose() {
|
|
52367
|
-
this.edit.getInternalEvents().off(
|
|
52367
|
+
this.edit.getInternalEvents().off(Le.Resolved, this.invalidateCache), this.edit.events.off(G.ClipUpdated, this.invalidateCache), this.edit.events.off(G.TimelineUpdated, this.invalidateCache), this.edit.events.off(G.ClipSelected, this.invalidateCache), this.edit.events.off(G.SelectionCleared, this.invalidateCache), this.cachedTracks = null, this.interactionQuery = null, this.lumaEditingVisibleByClipId.clear();
|
|
52368
52368
|
}
|
|
52369
52369
|
// ========== Private ==========
|
|
52370
52370
|
getComputedVisualState(e, t, i) {
|
|
@@ -57533,7 +57533,7 @@ class ha extends ji {
|
|
|
57533
57533
|
}
|
|
57534
57534
|
}
|
|
57535
57535
|
a.key === "Enter" && (a.ctrlKey || a.metaKey) && (a.preventDefault(), this.textEditDebounceTimer && (clearTimeout(this.textEditDebounceTimer), this.textEditDebounceTimer = null), this.applyTextEdit(), this.closeAllPopups()), a.key === "Escape" && this.closeAllPopups();
|
|
57536
|
-
}), this.setupOutsideClickHandler(), this.enableDrag(), e.style.position = "relative", e.insertBefore(this.container, e.firstChild), this.unsubFontCapabilities = this.edit.getInternalEvents().on(
|
|
57536
|
+
}), this.setupOutsideClickHandler(), this.enableDrag(), e.style.position = "relative", e.insertBefore(this.container, e.firstChild), this.unsubFontCapabilities = this.edit.getInternalEvents().on(Le.FontCapabilitiesChanged, () => {
|
|
57537
57537
|
this.container?.style.display !== "none" && this.syncState();
|
|
57538
57538
|
}), this.unsubMergeFieldChanged = this.edit.getInternalEvents().on(G.MergeFieldChanged, () => {
|
|
57539
57539
|
this.container?.style.display !== "none" && this.showMergeFields && this.mergeFieldManager?.hasLabels && this.mergeFieldManager.sync();
|