@shotstack/shotstack-studio 2.2.0 → 2.2.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.
|
@@ -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 k5 = "2.
|
|
13
|
+
const k5 = "2.2.0", E5 = {
|
|
14
14
|
version: k5
|
|
15
15
|
};
|
|
16
16
|
class S5 {
|
|
@@ -71706,16 +71706,16 @@ class Nj {
|
|
|
71706
71706
|
}
|
|
71707
71707
|
handleRotation(e) {
|
|
71708
71708
|
if (!this.selectedPlayer || !this.selectedClipId || this.rotationStart === null) return;
|
|
71709
|
-
const i = this.getContentCenter(), s = (Math.atan2(e.globalY - i.y, e.globalX - i.x) - this.rotationStart) * (180 / Math.PI), r = this.initialRotation + s, { angle: n } = kj(r), o = this.selectedPlayer.clipConfiguration.transform ?? {};
|
|
71709
|
+
const i = this.getContentCenter(), s = (Math.atan2(e.globalY - i.y, e.globalX - i.x) - this.rotationStart) * (180 / Math.PI), r = this.initialRotation + s, { angle: n } = kj(r), o = n % 360, l = this.selectedPlayer.clipConfiguration.transform ?? {};
|
|
71710
71710
|
this.finalDragState = {
|
|
71711
71711
|
transform: {
|
|
71712
|
-
...
|
|
71713
|
-
rotate: { angle:
|
|
71712
|
+
...l,
|
|
71713
|
+
rotate: { angle: o }
|
|
71714
71714
|
}
|
|
71715
71715
|
}, this.edit.updateClipInDocument(this.selectedClipId, {
|
|
71716
71716
|
transform: {
|
|
71717
|
-
...
|
|
71718
|
-
rotate: { angle:
|
|
71717
|
+
...l,
|
|
71718
|
+
rotate: { angle: o }
|
|
71719
71719
|
}
|
|
71720
71720
|
}), this.edit.resolveClip(this.selectedClipId);
|
|
71721
71721
|
}
|