Skip to content

Commit 0de9327

Browse files
authored
Update allFunction.js
1 parent 588d42f commit 0de9327

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/allFunction.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function wrapSVGTextCentered(text, maxCharsPerLine = 25, lineHeight = 16, svgHei
3434
if (line) lines.push(line.trim());
3535

3636
const totalHeight = lines.length * lineHeight;
37-
const startY = (svgHeight - totalHeight) / 2; // posisi vertikal awal
37+
const startY = (svgHeight - totalHeight) / 2;
3838

3939
return lines.map((l, i) =>
4040
`<tspan x="${svgWidth / 2}" dy="${i === 0 ? startY : lineHeight}" text-anchor="middle">${l}</tspan>`
@@ -51,3 +51,4 @@ function capitalize(str = "") {
5151

5252

5353
module.exports = { wrapSVGText, wrapSVGTextCentered, capitalize };
54+

0 commit comments

Comments
 (0)