Changeset 42
- Timestamp:
- 06/07/06 09:19:50 (2 years ago)
- Files:
-
- plotkit/trunk/PlotKit/SweetCanvas.js (modified) (3 diffs)
- plotkit/trunk/doc/PlotKit.html (modified) (1 diff)
- plotkit/trunk/doc/PlotKit.txt (modified) (2 diffs)
- plotkit/trunk/tests/debug.html (added)
- plotkit/trunk/tests/labels.html (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plotkit/trunk/PlotKit/SweetCanvas.js
r37 r42 116 116 } 117 117 118 context.fillStyle = chooseColor(bar.name).toRGBString(); 119 context.fillRect(x, y, w, h); 118 if (this.options.shouldFill) { 119 context.fillStyle = chooseColor(bar.name).toRGBString(); 120 context.fillRect(x, y, w, h); 121 } 120 122 121 123 context.shadowBlur = 0; … … 174 176 } 175 177 context.translate(-1, -2); 176 bind(makePath, this)(context); 177 context.fill(); 178 bind(makePath, this)(context); 179 if (this.options.shouldFill) { 180 context.fill(); 181 } 178 182 context.restore(); 179 183 } … … 251 255 252 256 if (Math.abs(slices[i].startAngle - slices[i].endAngle) > 0.0001) { 253 makePath(); 254 context.fill(); 257 if (this.options.shouldFill) { 258 makePath(); 259 context.fill(); 260 } 255 261 makePath(); 256 262 context.stroke(); plotkit/trunk/doc/PlotKit.html
r41 r42 139 139 <a href="http://media.liquidx.net/js/plotkit-tests/dynamic.html">Dynamic Charting</a>. 140 140 </li> 141 142 <li> 143 <a href="http://media.liquidx.net/js/plotkit-tests/labels.html">Labels Example</a>. Thanks to Christopher Armstrong. 144 </li> 141 145 </ul> 142 146 143 147 <h1> Version History</h1> 148 <ul> 149 <li> 150 Make Sweet{Canvas/SVG}Renderers respect shouldFill. 151 </li> 152 </ul> 144 153 145 154 <h3>PlotKit 0.8</h3> plotkit/trunk/doc/PlotKit.txt
r41 r42 68 68 * Unit Tests [Canvas][CanvasTest], [SVG][SVGTest], [SweetCanvas][SCanvasTest], [SweetSVG][SSVGTest]. 69 69 * [Dynamic Charting][DynamicTest]. 70 * [Labels Example][]. Thanks to Christopher Armstrong. 70 71 71 72 Version History 72 73 =============== 74 75 * Make Sweet{Canvas/SVG}Renderers respect shouldFill. 73 76 74 77 ###PlotKit 0.8 … … 121 124 [QuickstartEasyDemo]: http://media.liquidx.net/js/plotkit-tests/quickstart-easy.html 122 125 [DynamicTest]: http://media.liquidx.net/js/plotkit-tests/dynamic.html 126 [Labels Example]: http://media.liquidx.net/js/plotkit-tests/labels.html 123 127 124 128 {% endfilter %}




Atom Feed for the Blog Entries