Skip to content

Commit 8173d95

Browse files
committed
Fix: use scaler for scan-line rect height in SVG generator
1 parent 99c2907 commit 8173d95

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/svg/generator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function renderFooter(
337337
x="${s(100)}"
338338
y="${s(80)}"
339339
width="${s(400)}"
340-
height="${sf}"
340+
height="${s(1)}"
341341
class="cp-accent-fill scan-line"
342342
fill-opacity="0.3"
343343
style="--scan-speed: ${params.speed || '8s'}; --scan-start: ${s(0)}px; --scan-end: ${s(240)}px;"
@@ -588,7 +588,7 @@ ${
588588
x="${s(100)}"
589589
y="${s(80)}"
590590
width="${s(400)}"
591-
height="${sf}"
591+
height="${s(1)}"
592592
class="cp-accent-fill scan-line"
593593
fill-opacity="0.3"
594594
style="--scan-speed: ${params.speed || '8s'}; --scan-start: ${s(0)}px; --scan-end: ${s(240)}px;"

0 commit comments

Comments
 (0)