| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 boolean isPointInStroke(unrestricted double x, unrestricted double y); | 65 boolean isPointInStroke(unrestricted double x, unrestricted double y); |
| 66 boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted dou
ble y); | 66 boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted dou
ble y); |
| 67 | 67 |
| 68 // drawing images | 68 // drawing images |
| 69 [CallWith=ScriptState, RaisesException] void drawImage(CanvasImageSource ima
ge, unrestricted double x, unrestricted double y); | 69 [CallWith=ScriptState, RaisesException] void drawImage(CanvasImageSource ima
ge, unrestricted double x, unrestricted double y); |
| 70 [CallWith=ScriptState, RaisesException] void drawImage(CanvasImageSource ima
ge, unrestricted double x, unrestricted double y, unrestricted double width, unr
estricted double height); | 70 [CallWith=ScriptState, RaisesException] void drawImage(CanvasImageSource ima
ge, unrestricted double x, unrestricted double y, unrestricted double width, unr
estricted double height); |
| 71 [CallWith=ScriptState, RaisesException] void drawImage(CanvasImageSource ima
ge, unrestricted double sx, unrestricted double sy, unrestricted double sw, unre
stricted double sh, unrestricted double dx, unrestricted double dy, unrestricted
double dw, unrestricted double dh); | 71 [CallWith=ScriptState, RaisesException] void drawImage(CanvasImageSource ima
ge, unrestricted double sx, unrestricted double sy, unrestricted double sw, unre
stricted double sh, unrestricted double dx, unrestricted double dy, unrestricted
double dw, unrestricted double dh); |
| 72 | 72 |
| 73 // pixel manipulation | 73 // pixel manipulation |
| 74 [RaisesException] ImageData createImageData(ImageData imagedata); | 74 [RaisesException] ImageData createImageData(ImageData imagedata); |
| 75 [RaisesException] ImageData createImageData(double sw, double sh); | 75 [RaisesException] ImageData createImageData(long sw, long sh); |
| 76 [RaisesException] ImageData getImageData(double sx, double sy, double sw, do
uble sh); | 76 [RaisesException] ImageData getImageData(long sx, long sy, long sw, long sh)
; |
| 77 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y); | 77 [RaisesException] void putImageData(ImageData imagedata, long dx, long dy); |
| 78 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); | 78 [RaisesException] void putImageData(ImageData imagedata, long dx, long dy, l
ong dirtyX, long dirtyY, long dirtyWidth, long dirtyHeight); |
| 79 | 79 |
| 80 // Line caps/joins | 80 // Line caps/joins |
| 81 attribute unrestricted double lineWidth; // (default 1) | 81 attribute unrestricted double lineWidth; // (default 1) |
| 82 attribute DOMString lineCap; // "butt", "round", "square" (default "butt") | 82 attribute DOMString lineCap; // "butt", "round", "square" (default "butt") |
| 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 |