@zync/zync-screnplay-player 0.1.244 → 0.1.245
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.
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1
7
|
import { AbsoluteFill, Sequence, interpolate, random, spring, useCurrentFrame, useVideoConfig } from "remotion";
|
|
2
8
|
import React from "react";
|
|
3
9
|
import { loadFont as loadRegularFont } from "@remotion/google-fonts/Montserrat";
|
|
@@ -13,6 +19,7 @@ var toNumber = function toNumber(value, fallback) {
|
|
|
13
19
|
var parsed = Number(value);
|
|
14
20
|
return Number.isFinite(parsed) ? parsed : fallback;
|
|
15
21
|
};
|
|
22
|
+
var blackOutlineShadow = ["-2px -2px 0 #000", "0 -2px 0 #000", "2px -2px 0 #000", "2px 0 0 #000", "2px 2px 0 #000", "0 2px 0 #000", "-2px 2px 0 #000", "-2px 0 0 #000"];
|
|
16
23
|
export var CaptionElegant = function CaptionElegant(_ref) {
|
|
17
24
|
var transcripts = _ref.transcripts,
|
|
18
25
|
color = _ref.color;
|
|
@@ -122,7 +129,7 @@ export var CaptionElegant = function CaptionElegant(_ref) {
|
|
|
122
129
|
opacity: opacity,
|
|
123
130
|
transform: "translateY(".concat(translateY, "px)"),
|
|
124
131
|
color: baseColor,
|
|
125
|
-
textShadow: isCursiveWord ? "0 0 1px rgba(255,255,255,.85), 0 0 4px rgba(255,255,255,.55), 0 0 10px rgba(255,255,255,.25)" : "0 3px 0 rgba(0,0,0,.18)",
|
|
132
|
+
textShadow: [].concat(blackOutlineShadow, _toConsumableArray(isCursiveWord ? ["0 0 1px rgba(255,255,255,.85)", "0 0 4px rgba(255,255,255,.55)", "0 0 10px rgba(255,255,255,.25)"] : ["0 3px 0 rgba(0,0,0,.18)"])).join(", "),
|
|
126
133
|
WebkitFontSmoothing: "antialiased",
|
|
127
134
|
MozOsxFontSmoothing: "grayscale",
|
|
128
135
|
transition: "font-family 0.2s ease, font-weight 0.2s ease",
|