| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 interface CanvasRenderingContext2D extends CanvasRenderingContext { | 7 interface CanvasRenderingContext2D extends CanvasRenderingContext { |
| 8 | 8 |
| 9 Object get fillStyle(); | 9 Object get fillStyle(); |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void closePath(); | 91 void closePath(); |
| 92 | 92 |
| 93 ImageData createImageData(var imagedata_OR_sw, [num sh]); | 93 ImageData createImageData(var imagedata_OR_sw, [num sh]); |
| 94 | 94 |
| 95 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1); | 95 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1); |
| 96 | 96 |
| 97 CanvasPattern createPattern(var canvas_OR_image, String repetitionType); | 97 CanvasPattern createPattern(var canvas_OR_image, String repetitionType); |
| 98 | 98 |
| 99 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1); | 99 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1); |
| 100 | 100 |
| 101 void drawImage(var canvas_OR_image, num sx_OR_x, num sy_OR_y, [num sw_OR_width
, num height_OR_sh, num dx, num dy, num dw, num dh]); | 101 void drawImage(var canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw
_OR_width, num height_OR_sh, num dx, num dy, num dw, num dh]); |
| 102 | 102 |
| 103 void drawImageFromRect(HTMLImageElement image, [num sx, num sy, num sw, num sh
, num dx, num dy, num dw, num dh, String compositeOperation]); | 103 void drawImageFromRect(HTMLImageElement image, [num sx, num sy, num sw, num sh
, num dx, num dy, num dw, num dh, String compositeOperation]); |
| 104 | 104 |
| 105 void fill(); | 105 void fill(); |
| 106 | 106 |
| 107 void fillRect(num x, num y, num width, num height); | 107 void fillRect(num x, num y, num width, num height); |
| 108 | 108 |
| 109 void fillText(String text, num x, num y, [num maxWidth]); | 109 void fillText(String text, num x, num y, [num maxWidth]); |
| 110 | 110 |
| 111 ImageData getImageData(num sx, num sy, num sw, num sh); | 111 ImageData getImageData(num sx, num sy, num sw, num sh); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 void stroke(); | 155 void stroke(); |
| 156 | 156 |
| 157 void strokeRect(num x, num y, num width, num height, [num lineWidth]); | 157 void strokeRect(num x, num y, num width, num height, [num lineWidth]); |
| 158 | 158 |
| 159 void strokeText(String text, num x, num y, [num maxWidth]); | 159 void strokeText(String text, num x, num y, [num maxWidth]); |
| 160 | 160 |
| 161 void transform(num m11, num m12, num m21, num m22, num dx, num dy); | 161 void transform(num m11, num m12, num m21, num m22, num dx, num dy); |
| 162 | 162 |
| 163 void translate(num tx, num ty); | 163 void translate(num tx, num ty); |
| 164 } | 164 } |
| OLD | NEW |