OLD | NEW |
1 | 1 |
2 class CanvasRenderingContext2DJs extends CanvasRenderingContextJs implements Can
vasRenderingContext2D native "*CanvasRenderingContext2D" { | 2 class _CanvasRenderingContext2DJs extends _CanvasRenderingContextJs implements C
anvasRenderingContext2D native "*CanvasRenderingContext2D" { |
3 | 3 |
4 Dynamic get fillStyle() native "return this.fillStyle;"; | 4 Dynamic get fillStyle() native "return this.fillStyle;"; |
5 | 5 |
6 void set fillStyle(Dynamic value) native "this.fillStyle = value;"; | 6 void set fillStyle(Dynamic value) native "this.fillStyle = value;"; |
7 | 7 |
8 String get font() native "return this.font;"; | 8 String get font() native "return this.font;"; |
9 | 9 |
10 void set font(String value) native "this.font = value;"; | 10 void set font(String value) native "this.font = value;"; |
11 | 11 |
12 num get globalAlpha() native "return this.globalAlpha;"; | 12 num get globalAlpha() native "return this.globalAlpha;"; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; | 78 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; |
79 | 79 |
80 void clearRect(num x, num y, num width, num height) native; | 80 void clearRect(num x, num y, num width, num height) native; |
81 | 81 |
82 void clearShadow() native; | 82 void clearShadow() native; |
83 | 83 |
84 void clip() native; | 84 void clip() native; |
85 | 85 |
86 void closePath() native; | 86 void closePath() native; |
87 | 87 |
88 ImageDataJs createImageData(var imagedata_OR_sw, [num sh = null]) native; | 88 _ImageDataJs createImageData(var imagedata_OR_sw, [num sh = null]) native; |
89 | 89 |
90 CanvasGradientJs createLinearGradient(num x0, num y0, num x1, num y1) native; | 90 _CanvasGradientJs createLinearGradient(num x0, num y0, num x1, num y1) native; |
91 | 91 |
92 CanvasPatternJs createPattern(var canvas_OR_image, String repetitionType) nati
ve; | 92 _CanvasPatternJs createPattern(var canvas_OR_image, String repetitionType) nat
ive; |
93 | 93 |
94 CanvasGradientJs createRadialGradient(num x0, num y0, num r0, num x1, num y1,
num r1) native; | 94 _CanvasGradientJs createRadialGradient(num x0, num y0, num r0, num x1, num y1,
num r1) native; |
95 | 95 |
96 void drawImage(var canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw
_OR_width = null, num height_OR_sh = null, num dx = null, num dy = null, num dw
= null, num dh = null]) native; | 96 void drawImage(var canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw
_OR_width = null, num height_OR_sh = null, num dx = null, num dy = null, num dw
= null, num dh = null]) native; |
97 | 97 |
98 void drawImageFromRect(HTMLImageElementJs image, [num sx = null, num sy = null
, num sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num
dh = null, String compositeOperation = null]) native; | 98 void drawImageFromRect(_HTMLImageElementJs image, [num sx = null, num sy = nul
l, num sw = null, num sh = null, num dx = null, num dy = null, num dw = null, nu
m dh = null, String compositeOperation = null]) native; |
99 | 99 |
100 void fill() native; | 100 void fill() native; |
101 | 101 |
102 void fillRect(num x, num y, num width, num height) native; | 102 void fillRect(num x, num y, num width, num height) native; |
103 | 103 |
104 void fillText(String text, num x, num y, [num maxWidth = null]) native; | 104 void fillText(String text, num x, num y, [num maxWidth = null]) native; |
105 | 105 |
106 ImageDataJs getImageData(num sx, num sy, num sw, num sh) native; | 106 _ImageDataJs getImageData(num sx, num sy, num sw, num sh) native; |
107 | 107 |
108 bool isPointInPath(num x, num y) native; | 108 bool isPointInPath(num x, num y) native; |
109 | 109 |
110 void lineTo(num x, num y) native; | 110 void lineTo(num x, num y) native; |
111 | 111 |
112 TextMetricsJs measureText(String text) native; | 112 _TextMetricsJs measureText(String text) native; |
113 | 113 |
114 void moveTo(num x, num y) native; | 114 void moveTo(num x, num y) native; |
115 | 115 |
116 void putImageData(ImageDataJs imagedata, num dx, num dy, [num dirtyX = null, n
um dirtyY = null, num dirtyWidth = null, num dirtyHeight = null]) native; | 116 void putImageData(_ImageDataJs imagedata, num dx, num dy, [num dirtyX = null,
num dirtyY = null, num dirtyWidth = null, num dirtyHeight = null]) native; |
117 | 117 |
118 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; | 118 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; |
119 | 119 |
120 void rect(num x, num y, num width, num height) native; | 120 void rect(num x, num y, num width, num height) native; |
121 | 121 |
122 void restore() native; | 122 void restore() native; |
123 | 123 |
124 void rotate(num angle) native; | 124 void rotate(num angle) native; |
125 | 125 |
126 void save() native; | 126 void save() native; |
(...skipping 23 matching lines...) Expand all Loading... |
150 void stroke() native; | 150 void stroke() native; |
151 | 151 |
152 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n
ative; | 152 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n
ative; |
153 | 153 |
154 void strokeText(String text, num x, num y, [num maxWidth = null]) native; | 154 void strokeText(String text, num x, num y, [num maxWidth = null]) native; |
155 | 155 |
156 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 156 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
157 | 157 |
158 void translate(num tx, num ty) native; | 158 void translate(num tx, num ty) native; |
159 } | 159 } |
OLD | NEW |