Merge pull request #10674 from timvandermeij/svg-backend-es6
Convert `src/display/svg.js` to ES6 syntax and implement `setRenderingIntent` and `setFlatness` for the SVG backend
This commit is contained in:
		
						commit
						ce62373db3
					
				| @ -888,14 +888,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { | |||||||
|         ctx.lineDashOffset = dashPhase; |         ctx.lineDashOffset = dashPhase; | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     setRenderingIntent: function CanvasGraphics_setRenderingIntent(intent) { |     setRenderingIntent(intent) { | ||||||
|       // Maybe if we one day fully support color spaces this will be important
 |       // This operation is ignored since we haven't found a use case for it yet.
 | ||||||
|       // for now we can ignore.
 |  | ||||||
|       // TODO set rendering intent?
 |  | ||||||
|     }, |     }, | ||||||
|     setFlatness: function CanvasGraphics_setFlatness(flatness) { |     setFlatness(flatness) { | ||||||
|       // There's no way to control this with canvas, but we can safely ignore.
 |       // This operation is ignored since we haven't found a use case for it yet.
 | ||||||
|       // TODO set flatness?
 |  | ||||||
|     }, |     }, | ||||||
|     setGState: function CanvasGraphics_setGState(states) { |     setGState: function CanvasGraphics_setGState(states) { | ||||||
|       for (var i = 0, ii = states.length; i < ii; i++) { |       for (var i = 0, ii = states.length; i < ii; i++) { | ||||||
|  | |||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user