Changeset 19
- Timestamp:
- 01/05/06 11:37:55 (2 years ago)
- Files:
-
- plotkit/trunk/PlotKit/Canvas.js (modified) (5 diffs)
- plotkit/trunk/PlotKit/Layout.js (modified) (2 diffs)
- plotkit/trunk/PlotKit/PlotKit.js (added)
- plotkit/trunk/PlotKit/SVG.js (modified) (3 diffs)
- plotkit/trunk/PlotKit/SweetCanvas.js (modified) (1 diff)
- plotkit/trunk/PlotKit/SweetSVG.js (modified) (1 diff)
- plotkit/trunk/doc/PlotKit.SVG.txt (modified) (1 diff)
- plotkit/trunk/packed (added)
- plotkit/trunk/scripts (added)
- plotkit/trunk/scripts/custom_rhino.jar (added)
- plotkit/trunk/scripts/pack.py (added)
- plotkit/trunk/tests/quickstart-svg.xhtml (added)
- plotkit/trunk/tests/quickstart.html (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plotkit/trunk/PlotKit/Canvas.js
r18 r19 1 1 /* 2 2 PlotKit Canvas 3 --------------3 ============== 4 4 5 5 Provides HTML Canvas Renderer. This is supported under: … … 23 23 24 24 try { 25 if (typeof(PlotKit.Layout) == 'undefined') 25 if ((typeof(PlotKit.Base) == 'undefined') || 26 (typeof(PlotKit.Layout) == 'undefined')) 26 27 { 27 28 throw ""; … … 29 30 } 30 31 catch (e) { 31 throw "PlotKit.Layout depends on MochiKit.{Base,Color,DOM,Format} and PlotKit. Base and PlotKit.Layout"32 throw "PlotKit.Layout depends on MochiKit.{Base,Color,DOM,Format} and PlotKit.{Base,Layout}" 32 33 } 33 34 … … 94 95 this.isIE = PlotKit.Base.excanvasSupported(); 95 96 96 if (this.isIE ) {97 if (this.isIE && !isNil(G_vmlCanvasManager)) { 97 98 this.IEDelay = 0.5; 98 99 this.maxTries = 5; … … 649 650 return true; 650 651 }; 652 653 // Namespace Iniitialisation 654 655 PlotKit.Canvas = {} 656 PlotKit.Canvas.CanvasRenderer = PlotKit.CanvasRenderer; 657 658 PlotKit.Canvas.EXPORT = [ 659 "CanvasRenderer" 660 ]; 661 662 PlotKit.Canvas.EXPORT_OK = [ 663 "CanvasRenderer" 664 ]; 665 666 PlotKit.Canvas.__new__ = function() { 667 var m = MochiKit.Base; 668 669 m.nameFunctions(this); 670 671 this.EXPORT_TAGS = { 672 ":common": this.EXPORT, 673 ":all": m.concat(this.EXPORT, this.EXPORT_OK) 674 }; 675 }; 676 677 PlotKit.Canvas.__new__(); 678 MochiKit.Base._exportSymbols(this, PlotKit.Canvas); 679 plotkit/trunk/PlotKit/Layout.js
r12 r19 1 1 /* 2 2 PlotKit Layout 3 --------------3 ============== 4 4 5 5 Handles laying out data on to a virtual canvas square canvas between 0.0 … … 587 587 // -------------------------------------------------------------------- 588 588 589 590 // Namespace Iniitialisation 591 592 PlotKit.LayoutModule = {}; 593 PlotKit.LayoutModule.Layout = PlotKit.Layout; 594 595 PlotKit.LayoutModule.EXPORT = [ 596 "Layout" 597 ]; 598 599 PlotKit.LayoutModule.EXPORT_OK = []; 600 601 PlotKit.LayoutModule.__new__ = function() { 602 var m = MochiKit.Base; 603 604 m.nameFunctions(this); 605 606 this.EXPORT_TAGS = { 607 ":common": this.EXPORT, 608 ":all": m.concat(this.EXPORT, this.EXPORT_OK) 609 }; 610 }; 611 612 PlotKit.LayoutModule.__new__(); 613 MochiKit.Base._exportSymbols(this, PlotKit.LayoutModule); 614 615 plotkit/trunk/PlotKit/SVG.js
r12 r19 51 51 } 52 52 53 PlotKit.SVGRenderer.isSupported = function() {54 // TODO55 return true;56 };57 53 58 54 PlotKit.SVGRenderer.prototype.__init__ = function(element, layout, options) { … … 626 622 627 623 var html = '<svg:svg width="' + width + '" height="' + height + '" '; 628 html += 'id="' + eid + '" version="1.1" baseProfile="full" >';624 html += 'id="' + eid + '" version="1.1" baseProfile="full" />'; 629 625 630 626 var canvas = document.createElement(html); … … 676 672 return false; 677 673 }; 674 675 // Namespace Iniitialisation 676 677 PlotKit.SVG = {} 678 PlotKit.SVG.SVGRenderer = PlotKit.SVGRenderer; 679 680 PlotKit.SVG.EXPORT = [ 681 "SVGRenderer" 682 ]; 683 684 PlotKit.SVG.EXPORT_OK = [ 685 "SVGRenderer" 686 ]; 687 688 PlotKit.SVG.__new__ = function() { 689 var m = MochiKit.Base; 690 691 m.nameFunctions(this); 692 693 this.EXPORT_TAGS = { 694 ":common": this.EXPORT, 695 ":all": m.concat(this.EXPORT, this.EXPORT_OK) 696 }; 697 }; 698 699 PlotKit.SVG.__new__(); 700 MochiKit.Base._exportSymbols(this, PlotKit.SVG); 701 plotkit/trunk/PlotKit/SweetCanvas.js
r15 r19 284 284 } 285 285 }; 286 287 // Namespace Iniitialisation 288 289 PlotKit.SweetCanvas = {} 290 PlotKit.SweetCanvas.SweetCanvasRenderer = PlotKit.SweetCanvasRenderer; 291 292 PlotKit.SweetCanvas.EXPORT = [ 293 "SweetCanvasRenderer" 294 ]; 295 296 PlotKit.SweetCanvas.EXPORT_OK = [ 297 "SweetCanvasRenderer" 298 ]; 299 300 PlotKit.SweetCanvas.__new__ = function() { 301 var m = MochiKit.Base; 302 303 m.nameFunctions(this); 304 305 this.EXPORT_TAGS = { 306 ":common": this.EXPORT, 307 ":all": m.concat(this.EXPORT, this.EXPORT_OK) 308 }; 309 }; 310 311 PlotKit.SweetCanvas.__new__(); 312 MochiKit.Base._exportSymbols(this, PlotKit.SweetCanvas); 313 plotkit/trunk/PlotKit/SweetSVG.js
r12 r19 195 195 196 196 }; 197 198 // Namespace Iniitialisation 199 200 PlotKit.SweetSVG = {} 201 PlotKit.SweetSVG.SweetSVGRenderer = PlotKit.SweetSVGRenderer; 202 203 PlotKit.SweetSVG.EXPORT = [ 204 "SweetSVGRenderer" 205 ]; 206 207 PlotKit.SweetSVG.EXPORT_OK = [ 208 "SweetSVGRenderer" 209 ]; 210 211 PlotKit.SweetSVG.__new__ = function() { 212 var m = MochiKit.Base; 213 214 m.nameFunctions(this); 215 216 this.EXPORT_TAGS = { 217 ":common": this.EXPORT, 218 ":all": m.concat(this.EXPORT, this.EXPORT_OK) 219 }; 220 }; 221 222 PlotKit.SweetSVG.__new__(); 223 MochiKit.Base._exportSymbols(this, PlotKit.SweetSVG); plotkit/trunk/doc/PlotKit.SVG.txt
r13 r19 34 34 xmlns:xlink="http://www.w3.org/1999/xlink"> 35 35 <head> 36 <object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2" ></object>36 <object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2" width="1" height="1"></object> 37 37 <?import namespace="svg" implementation="#AdobeSVG"?> 38 38 ...




Atom Feed for the Blog Entries