| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // https://html.spec.whatwg.org/multipage/scripting.html#the-offscreen-2d-render
ing-context | 5 // https://html.spec.whatwg.org/multipage/scripting.html#the-offscreen-2d-render
ing-context |
| 6 | 6 |
| 7 [ | 7 [ |
| 8 Exposed=(Window,Worker), | 8 Exposed=(Window,Worker), |
| 9 RuntimeEnabled=ExperimentalCanvasFeatures, | 9 RuntimeEnabled=ExperimentalCanvasFeatures, |
| 10 ] interface OffscreenCanvasRenderingContext2D { | 10 ] interface OffscreenCanvasRenderingContext2D { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 void scale(unrestricted double x, unrestricted double y); | 21 void scale(unrestricted double x, unrestricted double y); |
| 22 void rotate(unrestricted double angle); | 22 void rotate(unrestricted double angle); |
| 23 void translate(unrestricted double x, unrestricted double y); | 23 void translate(unrestricted double x, unrestricted double y); |
| 24 void transform(unrestricted double a, unrestricted double b, unrestricted do
uble c, unrestricted double d, unrestricted double e, unrestricted double f); | 24 void transform(unrestricted double a, unrestricted double b, unrestricted do
uble c, unrestricted double d, unrestricted double e, unrestricted double f); |
| 25 void setTransform(unrestricted double a, unrestricted double b, unrestricted
double c, unrestricted double d, unrestricted double e, unrestricted double f); | 25 void setTransform(unrestricted double a, unrestricted double b, unrestricted
double c, unrestricted double d, unrestricted double e, unrestricted double f); |
| 26 void resetTransform(); | 26 void resetTransform(); |
| 27 | 27 |
| 28 // compositing | 28 // compositing |
| 29 attribute unrestricted double globalAlpha; // (default 1.0) | 29 attribute unrestricted double globalAlpha; // (default 1.0) |
| 30 attribute DOMString globalCompositeOperation; // (default source-over) | 30 attribute DOMString globalCompositeOperation; // (default source-over) |
| 31 [Exposed=Window] attribute DOMString filter; | 31 attribute DOMString filter; |
| 32 | 32 |
| 33 // image smoothing | 33 // image smoothing |
| 34 attribute boolean imageSmoothingEnabled; // (default True) | 34 attribute boolean imageSmoothingEnabled; // (default True) |
| 35 attribute ImageSmoothingQuality imageSmoothingQuality; // (default "low") | 35 attribute ImageSmoothingQuality imageSmoothingQuality; // (default "low") |
| 36 | 36 |
| 37 // colors and styles | 37 // colors and styles |
| 38 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (de
fault black) | 38 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (de
fault black) |
| 39 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (defa
ult black) | 39 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (defa
ult black) |
| 40 CanvasGradient createLinearGradient(double x0, double y0, double x1, double
y1); | 40 CanvasGradient createLinearGradient(double x0, double y0, double x1, double
y1); |
| 41 [RaisesException] CanvasGradient createRadialGradient(double x0, double y0,
double r0, double x1, double y1, double r1); | 41 [RaisesException] CanvasGradient createRadialGradient(double x0, double y0,
double r0, double x1, double y1, double r1); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter") | 83 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter") |
| 84 attribute unrestricted double miterLimit; // (default 10) | 84 attribute unrestricted double miterLimit; // (default 10) |
| 85 | 85 |
| 86 // dashed lines | 86 // dashed lines |
| 87 void setLineDash(sequence<unrestricted double> dash); | 87 void setLineDash(sequence<unrestricted double> dash); |
| 88 sequence<unrestricted double> getLineDash(); | 88 sequence<unrestricted double> getLineDash(); |
| 89 attribute unrestricted double lineDashOffset; | 89 attribute unrestricted double lineDashOffset; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; | 92 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; |
| OLD | NEW |