@zync/zync-screnplay-player 0.1.192 → 0.1.194
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/bundle.js +1 -1
- package/dist/screenplay/RemotionRenderer/components/layouts/Handoff.js +2 -1
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/HandoffLayout.js +1 -1
- package/dist/screenplay/RemotionRenderer/theme/themes/default/HandoffNametag.js +0 -2
- package/dist/screenplay/RemotionRenderer/theme/themes/sports/Nametag.js +2 -2
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ import { BlurOverlay } from "../utils/BlurOverlay";
|
|
|
8
8
|
var TOTAL_Y_PADDING = 20;
|
|
9
9
|
var TOTAL_X_PADDING = 20;
|
|
10
10
|
var GAP_BETWEEN_VIDEOS = 5;
|
|
11
|
+
var MIN_HANDOFF_OVERLAP = 0.5;
|
|
11
12
|
export var Handoff = function Handoff(_ref) {
|
|
12
13
|
var startFirstVideoFrom = _ref.startFirstVideoFrom,
|
|
13
14
|
startSecondVideoFrom = _ref.startSecondVideoFrom,
|
|
@@ -32,7 +33,7 @@ export var Handoff = function Handoff(_ref) {
|
|
|
32
33
|
var firstVideoDurationInFrames = firstVideoDuration * fps;
|
|
33
34
|
var delayInSeconds = Math.max(0, firstVideoDuration - handoffOverlapSeconds);
|
|
34
35
|
var delayInFrames = delayInSeconds * fps;
|
|
35
|
-
var phaseDurationsInSeconds = [0.5,
|
|
36
|
+
var phaseDurationsInSeconds = [0.5, Math.max(MIN_HANDOFF_OVERLAP, handoffOverlapSeconds), 0.5]; // Durations for each phase in seconds
|
|
36
37
|
var inputRangeInSeconds = calculateInputRangeInPhases(phaseDurationsInSeconds, delayInSeconds);
|
|
37
38
|
var _useOrientationBased = useOrientationBased({
|
|
38
39
|
portrait: {
|
|
@@ -44,7 +44,7 @@ export var HandoffLayout = /*#__PURE__*/function (_Layout) {
|
|
|
44
44
|
sourceVideoOrientation: sourceVideoOrientation,
|
|
45
45
|
videoZoom: ((_props$data$sourceVid3 = props.data.sourceVideo) === null || _props$data$sourceVid3 === void 0 ? void 0 : _props$data$sourceVid3.zoom) || 1,
|
|
46
46
|
text: props.data.text,
|
|
47
|
-
handoffOverlapSeconds: ((_props$data13 = props.data) === null || _props$data13 === void 0 ? void 0 : _props$data13.handoffOverlapSeconds) ||
|
|
47
|
+
handoffOverlapSeconds: ((_props$data13 = props.data) === null || _props$data13 === void 0 ? void 0 : _props$data13.handoffOverlapSeconds) || 0
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
}]);
|
|
@@ -68,7 +68,6 @@ export var HandoffNametag = function HandoffNametag(_ref) {
|
|
|
68
68
|
orientation = _useOrientationBased.orientation,
|
|
69
69
|
containerAlignItems = _useOrientationBased.containerAlignItems,
|
|
70
70
|
lineJustifyContent = _useOrientationBased.lineJustifyContent;
|
|
71
|
-
console.log(targetContainerBottoms);
|
|
72
71
|
var isPortrait = orientation === "portrait";
|
|
73
72
|
var phaseDurationsInSeconds = isPortrait ? [0.1, 0.05, 0.05, 0.05, 0.05, 3.75, 0.4, duration - 3.75, 0.25] : [0.1, 0.05, 0.05, 0.05, 0.05, duration, 0.25];
|
|
74
73
|
var inputRangeInSeconds = calculateInputRangeInPhases(phaseDurationsInSeconds, 0);
|
|
@@ -78,7 +77,6 @@ export var HandoffNametag = function HandoffNametag(_ref) {
|
|
|
78
77
|
var imageWidths = useTimeInterpolate(inputRangeInSeconds, targetImageWidths, DEFAULT_TIME_INTERPOLATE_OPTIONS);
|
|
79
78
|
var imageRotation = useTimeInterpolate(inputRangeInSeconds, rotation, DEFAULT_TIME_INTERPOLATE_OPTIONS);
|
|
80
79
|
var containerBottom = useTimeInterpolate(inputRangeInSeconds, targetContainerBottoms[alignment], DEFAULT_TIME_INTERPOLATE_OPTIONS);
|
|
81
|
-
console.log(containerBottom);
|
|
82
80
|
var maxTimeInFrames = 0.2 * fps;
|
|
83
81
|
var sanitizedFullName = (fullName === null || fullName === void 0 ? void 0 : fullName.trim()) || "";
|
|
84
82
|
var sanitizedTitle = (title === null || title === void 0 ? void 0 : title.trim()) || "";
|
|
@@ -29,11 +29,11 @@ export var SportsNametag = function SportsNametag(_ref) {
|
|
|
29
29
|
lottieAnimationPath: "https://storage.googleapis.com/zync-media/assets/lottie/sports/nametag/landscape.json"
|
|
30
30
|
},
|
|
31
31
|
portrait: {
|
|
32
|
-
containerBottomOffset: -
|
|
32
|
+
containerBottomOffset: -1450,
|
|
33
33
|
nameStyles: {
|
|
34
34
|
bottom: 175,
|
|
35
35
|
left: 100,
|
|
36
|
-
fontSize:
|
|
36
|
+
fontSize: 44
|
|
37
37
|
},
|
|
38
38
|
titleStyles: {
|
|
39
39
|
bottom: 135,
|