O'Reilly logo

Designing SVG Web Graphics by Andrew H. Watt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Plug-In Component and Making It Mobile

I pointed out to you earlier that the Adobe SVG Viewer does not now support the import of external SVG images using the <image> element. However, after the viewer has that functionality, you can add a whole new dimension to the reuse of code. Reusing code as separate files in some settings makes lots of sense.

Most of this chapter has been pretty abstract, so take a look at a practical issue that arises when you are trying to make an SVG visual component fully reusable.

One advantage of using nested <svg> elements—whether in a single document or using the <image> element to import an external SVG file or visual component—is the ability a separate <svg> element gives you to reposition a complex ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required