mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-07 01:56:04 +00:00
style: format caption component HTML files
This commit is contained in:
@@ -171,7 +171,11 @@
|
||||
|
||||
GROUPS.forEach(function (g, gi) {
|
||||
var groupWords = WORDS.slice(g.wordStart, g.wordEnd + 1);
|
||||
var groupText = groupWords.map(function (w) { return w.text.toUpperCase(); }).join(" ");
|
||||
var groupText = groupWords
|
||||
.map(function (w) {
|
||||
return w.text.toUpperCase();
|
||||
})
|
||||
.join(" ");
|
||||
var fontSize = fitFontSize(groupText, 96, "900", "'Outfit', sans-serif", 1760);
|
||||
var grp = document.createElement("div");
|
||||
grp.className = "ne-group";
|
||||
|
||||
Reference in New Issue
Block a user