@shotstack/shotstack-studio 2.22.1 → 2.22.3
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.
|
@@ -11,7 +11,7 @@ import "pixi.js/text-html";
|
|
|
11
11
|
import "pixi.js/sprite-tiling";
|
|
12
12
|
import "pixi.js/filters";
|
|
13
13
|
import "pixi.js/mesh";
|
|
14
|
-
const o8 = "2.22.
|
|
14
|
+
const o8 = "2.22.2", l8 = {
|
|
15
15
|
version: o8
|
|
16
16
|
};
|
|
17
17
|
function pv(e, t, i) {
|
|
@@ -237,7 +237,7 @@ class na {
|
|
|
237
237
|
return this.normaliseAdjacentBoundaries(n), this.validateKeyframes(n), this.insertFillerKeyframes(n, i, r);
|
|
238
238
|
}
|
|
239
239
|
createNormalizedKeyframes(t) {
|
|
240
|
-
return t.filter((i) => typeof i.start == "number" && typeof i.length == "number").
|
|
240
|
+
return t.filter((i) => typeof i.start == "number" && typeof i.length == "number").sort((i, r) => i.start - r.start).map((i) => ({
|
|
241
241
|
start: i.start,
|
|
242
242
|
length: i.length,
|
|
243
243
|
from: typeof i.from == "number" ? i.from : 0,
|
|
@@ -1326,10 +1326,12 @@ class C8 extends Mi {
|
|
|
1326
1326
|
this.volumeKeyframeBuilder = new na(this.createVolumeKeyframes(t, a), this.getLength(), a), this.audioResource.volume(this.getVolume()), this.configureKeyframes();
|
|
1327
1327
|
}
|
|
1328
1328
|
update(t, i) {
|
|
1329
|
-
if (super.update(t, i), this.syncTimer += i, this.getContainer().alpha = 0, !this.audioResource)
|
|
1329
|
+
if (super.update(t, i), this.syncTimer += i, this.getContainer().alpha = 0, !this.audioResource || this.audioResource.state() !== "loaded") {
|
|
1330
|
+
this.isPlaying = !1;
|
|
1330
1331
|
return;
|
|
1332
|
+
}
|
|
1331
1333
|
const r = this.getAssetSpeed(), n = this.getSourceTime(), s = this.edit.isPlaying && this.isActive() && r > 0;
|
|
1332
|
-
s && (this.isPlaying || (this.isPlaying = !0, this.audioResource.volume(this.getVolume()), this.audioResource.rate(r), this.audioResource.seek(n), this.audioResource.play()), this.audioResource.volume() !== this.getVolume() && this.audioResource.volume(this.getVolume()), this.audioResource.rate() !== r && this.audioResource.rate(r), Math.abs(this.audioResource.seek() - n) > 0.1 && this.audioResource.seek(n)), this.isPlaying && !s && (this.isPlaying = !1, this.audioResource.pause());
|
|
1334
|
+
s && (this.isPlaying || (this.isPlaying = !0, this.audioResource.volume(this.getVolume()), this.audioResource.rate(r), this.audioResource.seek(n), this.audioResource.play()), this.audioResource.volume() !== this.getVolume() && this.audioResource.volume(this.getVolume()), this.audioResource.playing() && this.audioResource.rate() !== r && this.audioResource.rate(r), Math.abs(this.audioResource.seek() - n) > 0.1 && this.audioResource.seek(n)), this.isPlaying && !s && (this.isPlaying = !1, this.audioResource.pause());
|
|
1333
1335
|
const a = this.syncTimer > 100;
|
|
1334
1336
|
!this.edit.isPlaying && this.isActive() && a && (this.syncTimer = 0, this.audioResource.seek(n));
|
|
1335
1337
|
}
|
|
@@ -14660,6 +14662,8 @@ var SV = { gsap: `/*!
|
|
|
14660
14662
|
var origGsapPause = origGsapTl && typeof origGsapTl.pause === "function" ? origGsapTl.pause.bind(origGsapTl) : null;
|
|
14661
14663
|
var origGsapSeek = origGsapTl && typeof origGsapTl.seek === "function" ? origGsapTl.seek.bind(origGsapTl) : null;
|
|
14662
14664
|
var origGsapGetChildren = origGsapTl && typeof origGsapTl.getChildren === "function" ? origGsapTl.getChildren.bind(origGsapTl) : null;
|
|
14665
|
+
// Capture may queue longer than an animation lasts; only the host advances its clock.
|
|
14666
|
+
if (origGsapPause) origGsapPause(0);
|
|
14663
14667
|
var origLottieRegistered = window.lottie && typeof window.lottie.getRegisteredAnimations === "function" ? window.lottie.getRegisteredAnimations.bind(window.lottie) : null;
|
|
14664
14668
|
var animeInstances = [];
|
|
14665
14669
|
|
|
@@ -14736,7 +14740,7 @@ ${IV(r)}
|
|
|
14736
14740
|
</body>
|
|
14737
14741
|
</html>`;
|
|
14738
14742
|
}
|
|
14739
|
-
var DV = "
|
|
14743
|
+
var DV = "v3";
|
|
14740
14744
|
async function PV(e) {
|
|
14741
14745
|
const t = `${DV} ${e.html} ${e.css} ${e.js} ${e.width} ${e.height}`, i = new TextEncoder().encode(t), r = await crypto.subtle.digest("SHA-256", i);
|
|
14742
14746
|
return Array.from(new Uint8Array(r)).map((n) => n.toString(16).padStart(2, "0")).join("");
|
|
@@ -67866,7 +67870,7 @@ function Ks(e, t, i, r = 0) {
|
|
|
67866
67870
|
}
|
|
67867
67871
|
function w2(e, t, i, r, n) {
|
|
67868
67872
|
const s = ZI(t, r, n), a = Ks(e, s, n);
|
|
67869
|
-
return (a ? e.map((l) => l === a ? { time: l.time, value: i } : l) : [...e, { time: s, value: i }]).
|
|
67873
|
+
return (a ? e.map((l) => l === a ? { time: l.time, value: i } : l) : [...e, { time: s, value: i }]).sort((l, u) => l.time - u.time);
|
|
67870
67874
|
}
|
|
67871
67875
|
function jrt(e, t, i) {
|
|
67872
67876
|
const r = Ks(e, t, i);
|