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