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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(long sw, long sh); | 75 [RaisesException] ImageData createImageData(long sw, long sh); |
76 [RaisesException] ImageData getImageData(long sx, long sy, long sw, long sh)
; | 76 [RaisesException] ImageData getImageData(long sx, long sy, long sw, long sh)
; |
77 [RaisesException] void putImageData(ImageData imagedata, long dx, long dy); | 77 [RaisesException] void putImageData(ImageData imagedata, long dx, long dy); |
78 [RaisesException] void putImageData(ImageData imagedata, long dx, long dy, l
ong dirtyX, long dirtyY, long dirtyWidth, long dirtyHeight); | 78 [RaisesException] void putImageData(ImageData imagedata, long dx, long dy, l
ong dirtyX, long dirtyY, long dirtyWidth, long dirtyHeight); |
79 | 79 |
80 // If OffscreenCanva ships before color managed canvas, this method must rem
ain behind flag. | 80 // If OffscreenCanva ships before color managed canvas, this method must rem
ain behind flag. |
81 // https://github.com/WICG/canvas-color-space/blob/master/CanvasColorSpacePr
oposal.md | 81 // https://github.com/WICG/canvas-color-space/blob/master/CanvasColorSpacePr
oposal.md |
82 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] ImageData creat
eImageData(unsigned long sw, unsigned long sh, ImageDataColorSettings imageDataC
olorSettings); | 82 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] ImageData creat
eImageData(unsigned long sw, unsigned long sh, ImageDataColorSettings imageDataC
olorSettings); |
83 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] ImageData creat
eImageData(ImageDataArray data, unsigned long sw, unsigned long sh, ImageDataCol
orSettings imageDataColorSettings); | 83 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] ImageData creat
eImageData(ImageDataArray data, unsigned long sw, unsigned long sh, ImageDataCol
orSettings imageDataColorSettings); |
84 | 84 |
85 | 85 |
86 // Line caps/joins | 86 // Line caps/joins |
87 attribute unrestricted double lineWidth; // (default 1) | 87 attribute unrestricted double lineWidth; // (default 1) |
88 attribute DOMString lineCap; // "butt", "round", "square" (default "butt") | 88 attribute DOMString lineCap; // "butt", "round", "square" (default "butt") |
89 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter") | 89 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter") |
90 attribute unrestricted double miterLimit; // (default 10) | 90 attribute unrestricted double miterLimit; // (default 10) |
91 | 91 |
92 // dashed lines | 92 // dashed lines |
93 void setLineDash(sequence<unrestricted double> dash); | 93 void setLineDash(sequence<unrestricted double> dash); |
94 sequence<unrestricted double> getLineDash(); | 94 sequence<unrestricted double> getLineDash(); |
95 attribute unrestricted double lineDashOffset; | 95 attribute unrestricted double lineDashOffset; |
96 }; | 96 }; |
97 | 97 |
98 OffscreenCanvasRenderingContext2D implements CanvasPath; | 98 OffscreenCanvasRenderingContext2D implements CanvasPath; |
OLD | NEW |