Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
tweaking how svg renders itself
Browse files Browse the repository at this point in the history
  • Loading branch information
wcharczuk committed Oct 3, 2023
1 parent b3fc6cb commit 7281bbd
Show file tree
Hide file tree
Showing 2 changed files with 257 additions and 257 deletions.
2 changes: 1 addition & 1 deletion vector_renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ type canvas struct {
func (c *canvas) Start(width, height int) {
c.width = width
c.height = height
c.w.Write([]byte(fmt.Sprintf(`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="%d" height="%d">\n`, c.width, c.height)))
c.w.Write([]byte(fmt.Sprintf(`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 %d %d">`, c.width, c.height)))
if c.css != "" {
c.w.Write([]byte(`<style type="text/css"`))
if c.nonce != "" {
Expand Down
Loading

0 comments on commit 7281bbd

Please sign in to comment.