SVG Performance

   



Error Checking in SVG Documents

All the SVG code in this book has been verified to work on a PC with Internet Explorer. If you have significant ECMAScript experience, you'll notice that some error checking has been omitted from the ECMAScript functions. For example, you could enhance the code in the init() function so that it checks whether or not each variable is null after it has been assigned a reference to some other object. This error checking was omitted because the focus of this book is to present techniques for rendering graphics and to do so in a manner that is as clear and simple as possible. You can easily add the additional error checking if you are working in a production environment, where you might want to display a message in an ECMAScript pop-up alert in the event of an error.



   



Fundamentals of SVG Programming. Concepts to Source Code
Fundamentals of SVG Programming: Concepts to Source Code (Graphics Series)
ISBN: 1584502983
EAN: 2147483647
Year: 2003
Pages: 362

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net