mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-12 15:20:13 +00:00
style: format caption component HTML files
This commit is contained in:
+12
-2
@@ -395,8 +395,18 @@
|
||||
function buildCaptions(groups) {
|
||||
var stage = document.getElementById("caption-stage");
|
||||
groups.forEach(function (group, groupIndex) {
|
||||
var groupText = group.words.map(function (w) { return w.text.toUpperCase(); }).join(" ");
|
||||
var computedSize = fitFontSize(groupText, CAPTION_FONT_SIZE, "900", "Gabarito", SAFE_ZONE_WIDTH);
|
||||
var groupText = group.words
|
||||
.map(function (w) {
|
||||
return w.text.toUpperCase();
|
||||
})
|
||||
.join(" ");
|
||||
var computedSize = fitFontSize(
|
||||
groupText,
|
||||
CAPTION_FONT_SIZE,
|
||||
"900",
|
||||
"Gabarito",
|
||||
SAFE_ZONE_WIDTH,
|
||||
);
|
||||
var groupEl = document.createElement("div");
|
||||
groupEl.id = "caption-group-" + groupIndex;
|
||||
groupEl.className = "caption-group";
|
||||
|
||||
Reference in New Issue
Block a user