@zync/zync-screnplay-player 0.1.241 → 0.1.243
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/development.js +1496 -29
- package/dist/screenplay/RemotionRenderer/theme/themes/boxwipe/Nametag.js +17 -14
- package/dist/screenplay/RemotionRenderer/theme/themes/centerline/Nametag.js +8 -8
- package/dist/screenplay/RemotionRenderer/theme/themes/rightslide/Nametag.js +7 -5
- package/dist/screenplay/RemotionRenderer/theme/themes/stackfill/Nametag.js +3 -3
- package/package.json +1 -1
|
@@ -42,7 +42,7 @@ export var BoxwipeNametag = function BoxwipeNametag(_ref) {
|
|
|
42
42
|
borderWidth: clamp(width * 0.004, 5, 8),
|
|
43
43
|
boxHeight: height * 0.092,
|
|
44
44
|
boxWidth: width * 0.62,
|
|
45
|
-
containerBottom: height * 0.
|
|
45
|
+
containerBottom: height * 0.22,
|
|
46
46
|
containerLeft: width * 0.045,
|
|
47
47
|
maxNameFontSize: width * 0.066,
|
|
48
48
|
maxTitleFontSize: width * 0.024,
|
|
@@ -52,7 +52,7 @@ export var BoxwipeNametag = function BoxwipeNametag(_ref) {
|
|
|
52
52
|
borderWidth: clamp(width * 0.01, 5, 8),
|
|
53
53
|
boxHeight: height * 0.058,
|
|
54
54
|
boxWidth: width * 0.78,
|
|
55
|
-
containerBottom: height * 0.
|
|
55
|
+
containerBottom: height * 0.3,
|
|
56
56
|
containerLeft: width * 0.07,
|
|
57
57
|
maxNameFontSize: width * 0.092,
|
|
58
58
|
maxTitleFontSize: width * 0.038,
|
|
@@ -62,7 +62,7 @@ export var BoxwipeNametag = function BoxwipeNametag(_ref) {
|
|
|
62
62
|
borderWidth: clamp(width * 0.007, 5, 8),
|
|
63
63
|
boxHeight: height * 0.072,
|
|
64
64
|
boxWidth: width * 0.74,
|
|
65
|
-
containerBottom: height * 0.
|
|
65
|
+
containerBottom: height * 0.22,
|
|
66
66
|
containerLeft: width * 0.06,
|
|
67
67
|
maxNameFontSize: width * 0.078,
|
|
68
68
|
maxTitleFontSize: width * 0.033,
|
|
@@ -85,16 +85,18 @@ export var BoxwipeNametag = function BoxwipeNametag(_ref) {
|
|
|
85
85
|
var titleBackgroundColor = (themeSettings === null || themeSettings === void 0 ? void 0 : themeSettings.primaryColor) || primaryColor || "#000000";
|
|
86
86
|
var titleTextColor = (themeSettings === null || themeSettings === void 0 ? void 0 : themeSettings.primaryContrast) || getContrastColor(titleBackgroundColor) || primaryContrast || "#FFFFFF";
|
|
87
87
|
var horizontalPadding = borderWidth;
|
|
88
|
+
var titleHorizontalPadding = borderWidth * 2.5;
|
|
88
89
|
var nameFontSize = fitSingleLineFontSize(displayName, boxWidth - horizontalPadding, boxHeight * 0.84, maxNameFontSize);
|
|
89
90
|
var fittedBoxWidth = clamp(estimateTextWidth(displayName, nameFontSize) + horizontalPadding, boxWidth * 0.42, boxWidth);
|
|
90
|
-
var titleFontSize = fitSingleLineFontSize(displayTitle,
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var
|
|
96
|
-
var
|
|
97
|
-
var
|
|
91
|
+
var titleFontSize = fitSingleLineFontSize(displayTitle, boxWidth - titleHorizontalPadding, boxHeight * 0.45, maxTitleFontSize);
|
|
92
|
+
var fittedTitleBoxWidth = clamp(estimateTextWidth(displayTitle, titleFontSize) + titleHorizontalPadding, boxWidth * 0.28, boxWidth);
|
|
93
|
+
var widthGrowEnd = Math.round(fps * 0.5);
|
|
94
|
+
var heightGrowStart = widthGrowEnd + Math.round(fps * 0.04);
|
|
95
|
+
var heightGrowEnd = heightGrowStart + Math.round(fps * 0.34);
|
|
96
|
+
var sweepStart = heightGrowEnd + Math.round(fps * 0.06);
|
|
97
|
+
var sweepEnd = sweepStart + Math.round(fps * 0.82);
|
|
98
|
+
var finishStart = sweepEnd + Math.round(fps * 0.03);
|
|
99
|
+
var finishEnd = finishStart + Math.round(fps * 0.28);
|
|
98
100
|
var widthProgress = interpolate(frame, [0, widthGrowEnd], [0, 1], {
|
|
99
101
|
easing: Easing.out(Easing.cubic),
|
|
100
102
|
extrapolateLeft: "clamp",
|
|
@@ -169,14 +171,15 @@ export var BoxwipeNametag = function BoxwipeNametag(_ref) {
|
|
|
169
171
|
letterSpacing: "0.1em",
|
|
170
172
|
lineHeight: 1.1,
|
|
171
173
|
marginBottom: titleGap,
|
|
172
|
-
maxWidth:
|
|
174
|
+
maxWidth: boxWidth,
|
|
173
175
|
opacity: finishProgress,
|
|
174
176
|
overflow: "hidden",
|
|
175
|
-
padding: "0 ".concat(
|
|
177
|
+
padding: "0 ".concat(titleHorizontalPadding / 2, "px"),
|
|
176
178
|
textShadow: "0 2px 7px rgba(0, 0, 0, 0.65)",
|
|
177
179
|
textOverflow: "clip",
|
|
178
180
|
transform: "translateY(".concat(titleTranslateY, "px)"),
|
|
179
|
-
whiteSpace: "nowrap"
|
|
181
|
+
whiteSpace: "nowrap",
|
|
182
|
+
width: fittedTitleBoxWidth
|
|
180
183
|
}
|
|
181
184
|
}, displayTitle), /*#__PURE__*/React.createElement("div", {
|
|
182
185
|
style: {
|
|
@@ -44,7 +44,7 @@ export var CenterlineNametag = function CenterlineNametag(_ref) {
|
|
|
44
44
|
accentContrast = _useTheme.accentContrast;
|
|
45
45
|
var _useOrientationBased = useOrientationBased({
|
|
46
46
|
landscape: {
|
|
47
|
-
containerBottom: height * 0.
|
|
47
|
+
containerBottom: height * 0.2,
|
|
48
48
|
containerWidth: width * 0.76,
|
|
49
49
|
lineHeight: clamp(height * 0.008, 5, 9),
|
|
50
50
|
lineOffset: height * 0.01,
|
|
@@ -55,7 +55,7 @@ export var CenterlineNametag = function CenterlineNametag(_ref) {
|
|
|
55
55
|
titleInset: width * 0.01
|
|
56
56
|
},
|
|
57
57
|
portrait: {
|
|
58
|
-
containerBottom: height * 0.
|
|
58
|
+
containerBottom: height * 0.29,
|
|
59
59
|
containerWidth: width * 0.86,
|
|
60
60
|
lineHeight: clamp(height * 0.005, 5, 8),
|
|
61
61
|
lineOffset: height * 0.008,
|
|
@@ -66,7 +66,7 @@ export var CenterlineNametag = function CenterlineNametag(_ref) {
|
|
|
66
66
|
titleInset: width * 0.014
|
|
67
67
|
},
|
|
68
68
|
square: {
|
|
69
|
-
containerBottom: height * 0.
|
|
69
|
+
containerBottom: height * 0.23,
|
|
70
70
|
containerWidth: width * 0.82,
|
|
71
71
|
lineHeight: clamp(height * 0.007, 5, 8),
|
|
72
72
|
lineOffset: height * 0.008,
|
|
@@ -94,11 +94,11 @@ export var CenterlineNametag = function CenterlineNametag(_ref) {
|
|
|
94
94
|
var nameFit = distributeTextToFit(displayName, containerWidth, nameHeight, maxNameFontSize);
|
|
95
95
|
var nametagWidth = clamp(estimateLineWidth(displayName, nameFit.fontSize), containerWidth * 0.35, containerWidth);
|
|
96
96
|
var titleFontSize = fitSingleLineFontSize(displayTitle, nametagWidth - titleInset * 2, titleBarHeight * 0.74, maxTitleFontSize);
|
|
97
|
-
var titleGrowEnd = Math.round(fps * 1.
|
|
98
|
-
var lineFillStart = Math.round(fps * 0.
|
|
99
|
-
var lineFillEnd = lineFillStart + Math.round(fps *
|
|
100
|
-
var nameRevealStart = lineFillEnd + Math.round(fps * 0.
|
|
101
|
-
var nameRevealEnd = nameRevealStart + Math.round(fps * 1.
|
|
97
|
+
var titleGrowEnd = Math.round(fps * 1.2);
|
|
98
|
+
var lineFillStart = Math.round(fps * 0.5);
|
|
99
|
+
var lineFillEnd = lineFillStart + Math.round(fps * 0.95);
|
|
100
|
+
var nameRevealStart = lineFillEnd + Math.round(fps * 0.22);
|
|
101
|
+
var nameRevealEnd = nameRevealStart + Math.round(fps * 1.05);
|
|
102
102
|
var baseScale = interpolate(frame, [0, titleGrowEnd], [0, 1], {
|
|
103
103
|
easing: Easing.out(Easing.cubic),
|
|
104
104
|
extrapolateLeft: "clamp",
|
|
@@ -36,8 +36,8 @@ export var RightslideNametag = function RightslideNametag(_ref) {
|
|
|
36
36
|
accentColor = _useTheme.accentColor;
|
|
37
37
|
var _useOrientationBased = useOrientationBased({
|
|
38
38
|
landscape: {
|
|
39
|
-
containerBottom: height * 0.
|
|
40
|
-
|
|
39
|
+
containerBottom: height * 0.21,
|
|
40
|
+
containerRight: width * 0.04,
|
|
41
41
|
lineWidth: clamp(width * 0.004, 5, 8),
|
|
42
42
|
maxNameBoxWidth: width * 0.62,
|
|
43
43
|
maxNameFontSize: width * 0.07,
|
|
@@ -47,7 +47,7 @@ export var RightslideNametag = function RightslideNametag(_ref) {
|
|
|
47
47
|
titleGap: height * 0.012
|
|
48
48
|
},
|
|
49
49
|
portrait: {
|
|
50
|
-
containerBottom: height * 0.
|
|
50
|
+
containerBottom: height * 0.3,
|
|
51
51
|
containerLeft: width * 0.07,
|
|
52
52
|
lineWidth: clamp(width * 0.01, 5, 8),
|
|
53
53
|
maxNameBoxWidth: width * 0.84,
|
|
@@ -58,8 +58,8 @@ export var RightslideNametag = function RightslideNametag(_ref) {
|
|
|
58
58
|
titleGap: height * 0.008
|
|
59
59
|
},
|
|
60
60
|
square: {
|
|
61
|
-
containerBottom: height * 0.
|
|
62
|
-
|
|
61
|
+
containerBottom: height * 0.22,
|
|
62
|
+
containerRight: width * 0.06,
|
|
63
63
|
lineWidth: clamp(width * 0.007, 5, 8),
|
|
64
64
|
maxNameBoxWidth: width * 0.78,
|
|
65
65
|
maxNameFontSize: width * 0.095,
|
|
@@ -71,6 +71,7 @@ export var RightslideNametag = function RightslideNametag(_ref) {
|
|
|
71
71
|
}),
|
|
72
72
|
containerBottom = _useOrientationBased.containerBottom,
|
|
73
73
|
containerLeft = _useOrientationBased.containerLeft,
|
|
74
|
+
containerRight = _useOrientationBased.containerRight,
|
|
74
75
|
lineWidth = _useOrientationBased.lineWidth,
|
|
75
76
|
maxNameBoxWidth = _useOrientationBased.maxNameBoxWidth,
|
|
76
77
|
maxNameFontSize = _useOrientationBased.maxNameFontSize,
|
|
@@ -148,6 +149,7 @@ export var RightslideNametag = function RightslideNametag(_ref) {
|
|
|
148
149
|
fontFamily: fontFamily,
|
|
149
150
|
left: containerLeft,
|
|
150
151
|
position: "absolute",
|
|
152
|
+
right: containerRight,
|
|
151
153
|
width: maxNameBoxWidth + lineWidth
|
|
152
154
|
}
|
|
153
155
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -36,7 +36,7 @@ export var StackfillNametag = function StackfillNametag(_ref) {
|
|
|
36
36
|
accentColor = _useTheme.accentColor;
|
|
37
37
|
var _useOrientationBased = useOrientationBased({
|
|
38
38
|
landscape: {
|
|
39
|
-
containerBottom: height * 0.
|
|
39
|
+
containerBottom: height * 0.21,
|
|
40
40
|
containerLeft: width * 0.04,
|
|
41
41
|
maxNameBoxWidth: width * 0.62,
|
|
42
42
|
maxNameFontSize: width * 0.07,
|
|
@@ -46,7 +46,7 @@ export var StackfillNametag = function StackfillNametag(_ref) {
|
|
|
46
46
|
titleGap: height * 0.012
|
|
47
47
|
},
|
|
48
48
|
portrait: {
|
|
49
|
-
containerBottom: height * 0.
|
|
49
|
+
containerBottom: height * 0.3,
|
|
50
50
|
containerLeft: width * 0.07,
|
|
51
51
|
maxNameBoxWidth: width * 0.84,
|
|
52
52
|
maxNameFontSize: width * 0.12,
|
|
@@ -56,7 +56,7 @@ export var StackfillNametag = function StackfillNametag(_ref) {
|
|
|
56
56
|
titleGap: height * 0.008
|
|
57
57
|
},
|
|
58
58
|
square: {
|
|
59
|
-
containerBottom: height * 0.
|
|
59
|
+
containerBottom: height * 0.22,
|
|
60
60
|
containerLeft: width * 0.06,
|
|
61
61
|
maxNameBoxWidth: width * 0.78,
|
|
62
62
|
maxNameFontSize: width * 0.095,
|