Skip to content

Commit

Permalink
Merge pull request #95 from notionparallax/patch-1
Browse files Browse the repository at this point in the history
Add viewbox line to the basic demo
  • Loading branch information
Fuzzyma authored Jan 12, 2023
2 parents c9f2ecd + c75d34d commit dc0af9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ To enable pan/zoom on an svg:
var canvas = SVG()
.addTo('#id')
.size(1000, 1000)
.viewbox('0 0 1000 1000')
.panZoom()

// zoom programatically
Expand All @@ -47,6 +48,7 @@ This could look like this:
var canvas = SVG()
.addTo('#id')
.size(1000, 1000)
.viewbox('0 0 1000 1000')
.panZoom({ zoomMin: 0.5, zoomMax: 20 })
```

Expand Down

0 comments on commit dc0af9d

Please sign in to comment.