Changeset 15
- Timestamp:
- 20/04/06 13:58:36 (2 years ago)
- Files:
-
- plotkit/trunk/PlotKit/SweetCanvas.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plotkit/trunk/PlotKit/SweetCanvas.js
r11 r15 165 165 166 166 // faux shadow for firefox 167 context.save(); 168 if (this.isIE) { 169 context.fillStyle = "#cccccc"; 170 } 171 else { 172 context.fillStyle = Color.blackColor().colorWithAlpha(0.2).toRGBString(); 173 } 174 175 context.translate(-1, -2); 176 bind(makePath, this)(); 177 context.fill(); 167 if (this.options.shouldFill) { 168 context.save(); 169 if (this.isIE) { 170 context.fillStyle = "#cccccc"; 171 } 172 else { 173 context.fillStyle = Color.blackColor().colorWithAlpha(0.2).toRGBString(); 174 } 175 context.translate(-1, -2); 176 bind(makePath, this)(); 177 context.fill(); 178 } 178 179 context.restore(); 179 180 … … 184 185 context.strokeStyle = Color.whiteColor().toRGBString(); 185 186 186 bind(makePath, this)(); 187 context.fill(); 188 bind(makePath, this)(); 189 context.stroke(); 190 187 if (this.options.shouldFill) { 188 bind(makePath, this)(); 189 context.fill(); 190 } 191 if (this.options.shouldStroke) { 192 bind(makePath, this)(); 193 context.stroke(); 194 } 191 195 context.restore(); 192 196 }




Atom Feed for the Blog Entries