Changeset 5
- Timestamp:
- 07/03/06 01:09:31 (2 years ago)
- Files:
-
- plotkit/trunk/PlotKit/SVG.js (modified) (2 diffs)
- plotkit/trunk/tests/svg.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plotkit/trunk/PlotKit/SVG.js
r4 r5 1 1 // ------------------------------------------------------------------------- 2 // NOTES: - Cannot use MochiKit.js, need to include everything individually.3 // - Need document header hack for Adobe SVG plugin4 // 5 // 2 // NOTES: - If you use XHTML1.1 strict, then you must include each MochiKit 3 // file individuall. 4 // - For IE support, you must include the AdobeSVG object hack. 5 // See tests/svg.html for details. 6 6 // ------------------------------------------------------------------------- 7 7 // ------------------------------------------------------------------------- … … 280 280 attrs["d"] = pathString; 281 281 282 var slice= this.createSVGElement("path", attrs);283 this.root.appendChild( slice);282 var elem = this.createSVGElement("path", attrs); 283 this.root.appendChild(elem); 284 284 } 285 285 }; plotkit/trunk/tests/svg.html
r4 r5 3 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 4 4 <head> 5 <title>PlotKit: SVGRenderer Test</title> 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 7 <link href="/css/page.css" media="screen" rel="Stylesheet" 8 type="text/css" /> 9 <link href="tests.css" media="screen" rel="Stylesheet" type="text/css" /> 10 11 <script src="/js/mochi/Base.js" type="text/javascript"></script> 12 <script src="/js/mochi/Iter.js" type="text/javascript"></script> 13 <script src="/js/mochi/DOM.js" type="text/javascript"></script> 14 <script src="/js/mochi/Color.js" type="text/javascript"></script> 15 <script src="/js/mochi/Format.js" type="text/javascript"></script> 16 <script src="/js/mochi/Logging.js" type="text/javascript"></script> 17 <script src="/js/mochi/LoggingPane.js" type="text/javascript"></script> 5 <title>PlotKit: SVGRenderer Test</title> 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 7 <link href="/css/page.css" media="screen" rel="Stylesheet" type="text/css" /> 8 <link href="tests.css" media="screen" rel="Stylesheet" type="text/css" /> 9 <script src="/js/mochi/MochiKit.js" type="text/javascript"></script> 18 10 <script src="/js/plotkit/Base.js" type="text/javascript"></script> 19 11 <script src="/js/plotkit/Layout.js" type="text/javascript"></script> 20 12 <script src="/js/plotkit/SVG.js" type="text/javascript"></script> 21 13 <script src="/js/plotkit-tests/svg.js" type="text/javascript"></script> 14 15 <!-- START Required for IE to support inlined SVG --> 16 <object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2" width="1" height="1"></object> 17 <?import namespace="svg" implementation="#AdobeSVG"?> 18 <!-- END Required for IE to support inlined SVG --> 19 22 20 </head> 23 21 … … 25 23 <div id="body"> 26 24 <h2>SVG Renderer Tests</h2> 27 28 <object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object>29 <?import namespace="svg" implementation="#AdobeSVG"?>30 31 25 <div id="tests"></div> 32 33 26 <div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div> 34 27 </div>




Atom Feed for the Blog Entries