Skip to content

Commit 8ebb1d3

Browse files
committed
ci: Set xmlns:xlink
1 parent bc993df commit 8ebb1d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/github-actions/illustrate-benchmark-reports.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Report, assertReport } from './benchmark/report-files'
77

88
const xmlHeader = '<?xml version="1.0" encoding="utf-8" ?>'
99
const xmlns = 'http://www.w3.org/2000/svg'
10+
const xlink = 'http://www.w3.org/1999/xlink'
1011

1112
const padding = 10
1213
const charWidth = 9
@@ -21,7 +22,7 @@ const barColor = ['red', 'green', 'blue', 'cyan', 'magenta', 'yellow', 'grey'] a
2122

2223
const getBarColor = (index: number) => barColor[index % barColor.length]
2324

24-
const fontFamily = 'monospace'
25+
const fontFamily = 'Consolas, Menlo, monospace'
2526

2627
function renderReport(report: Report) {
2728
assert(report.results.length > 0, 'There must be at least 1 report')
@@ -89,6 +90,7 @@ function renderReport(report: Report) {
8990
)
9091
return svg`<svg
9192
xmlns=${xmlns}
93+
xmlns:xlink=${xlink}
9294
viewBox=${[0, 0, viewBoxWidth, viewBoxHeight].join(' ')}
9395
>
9496
<rect

0 commit comments

Comments
 (0)