Skip to content

Instantly share code, notes, and snippets.

@fabiovalse
Last active November 8, 2019 06:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save fabiovalse/629b54148c6644b33e2ed9f7b73f0b40 to your computer and use it in GitHub Desktop.
Save fabiovalse/629b54148c6644b33e2ed9f7b73f0b40 to your computer and use it in GitHub Desktop.
External SVG import & zoom

This example shows how to import an external SVG file into a web page. Furthermore, the D3 zoom bahaviour can be used for zoom in/out the image.

Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment