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:
Tim van der Meij 2019-04-06 17:15:14 +02:00 committed by GitHub
commit ce62373db3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1132 additions and 1126 deletions

View File

@ -888,14 +888,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
ctx.lineDashOffset = dashPhase;
}
},
setRenderingIntent: function CanvasGraphics_setRenderingIntent(intent) {
// Maybe if we one day fully support color spaces this will be important
// for now we can ignore.
// TODO set rendering intent?
setRenderingIntent(intent) {
// This operation is ignored since we haven't found a use case for it yet.
},
setFlatness: function CanvasGraphics_setFlatness(flatness) {
// There's no way to control this with canvas, but we can safely ignore.
// TODO set flatness?
setFlatness(flatness) {
// This operation is ignored since we haven't found a use case for it yet.
},
setGState: function CanvasGraphics_setGState(states) {
for (var i = 0, ii = states.length; i < ii; i++) {

File diff suppressed because it is too large Load Diff