@twick/timeline 0.15.4 → 0.15.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/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -1
- package/dist/index.mjs.map +1 -1
- package/dist/src/core/elements/image.element.d.ts +2 -0
- package/dist/src/core/elements/image.element.d.ts.map +1 -1
- package/dist/src/core/elements/video.element.d.ts +2 -0
- package/dist/src/core/elements/video.element.d.ts.map +1 -1
- package/dist/src/types.d.ts +3 -2
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -681,6 +681,14 @@ class VideoElement extends TrackElement {
|
|
|
681
681
|
getVolume() {
|
|
682
682
|
return this.props.volume ?? 1;
|
|
683
683
|
}
|
|
684
|
+
getRotation() {
|
|
685
|
+
var _a;
|
|
686
|
+
return ((_a = this.frame) == null ? void 0 : _a.rotation) ?? 0;
|
|
687
|
+
}
|
|
688
|
+
setRotation(rotation) {
|
|
689
|
+
this.frame.rotation = rotation;
|
|
690
|
+
return this;
|
|
691
|
+
}
|
|
684
692
|
getPosition() {
|
|
685
693
|
return {
|
|
686
694
|
x: this.frame.x ?? 0,
|
|
@@ -953,6 +961,14 @@ class ImageElement extends TrackElement {
|
|
|
953
961
|
getObjectFit() {
|
|
954
962
|
return this.objectFit;
|
|
955
963
|
}
|
|
964
|
+
getRotation() {
|
|
965
|
+
var _a;
|
|
966
|
+
return ((_a = this.frame) == null ? void 0 : _a.rotation) ?? 0;
|
|
967
|
+
}
|
|
968
|
+
setRotation(rotation) {
|
|
969
|
+
this.frame.rotation = rotation;
|
|
970
|
+
return this;
|
|
971
|
+
}
|
|
956
972
|
getPosition() {
|
|
957
973
|
return {
|
|
958
974
|
x: this.frame.x ?? 0,
|
|
@@ -8124,7 +8140,7 @@ var __POSTHOG_ERROR_MESSAGES = {
|
|
|
8124
8140
|
return PostHogErrorBoundary;
|
|
8125
8141
|
})(React.Component);
|
|
8126
8142
|
const name = "@twick/timeline";
|
|
8127
|
-
const version = "0.15.
|
|
8143
|
+
const version = "0.15.6";
|
|
8128
8144
|
const packageJson = {
|
|
8129
8145
|
name,
|
|
8130
8146
|
version
|