OLD | NEW |
| (Empty) |
1 | |
2 class _CanvasRenderingContext2DJs extends _CanvasRenderingContextJs implements C
anvasRenderingContext2D native "*CanvasRenderingContext2D" { | |
3 | |
4 Dynamic fillStyle; | |
5 | |
6 String font; | |
7 | |
8 num globalAlpha; | |
9 | |
10 String globalCompositeOperation; | |
11 | |
12 String lineCap; | |
13 | |
14 String lineJoin; | |
15 | |
16 num lineWidth; | |
17 | |
18 num miterLimit; | |
19 | |
20 num shadowBlur; | |
21 | |
22 String shadowColor; | |
23 | |
24 num shadowOffsetX; | |
25 | |
26 num shadowOffsetY; | |
27 | |
28 Dynamic strokeStyle; | |
29 | |
30 String textAlign; | |
31 | |
32 String textBaseline; | |
33 | |
34 List webkitLineDash; | |
35 | |
36 num webkitLineDashOffset; | |
37 | |
38 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) native; | |
39 | |
40 void arcTo(num x1, num y1, num x2, num y2, num radius) native; | |
41 | |
42 void beginPath() native; | |
43 | |
44 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; | |
45 | |
46 void clearRect(num x, num y, num width, num height) native; | |
47 | |
48 void clearShadow() native; | |
49 | |
50 void clip() native; | |
51 | |
52 void closePath() native; | |
53 | |
54 _ImageDataJs createImageData(var imagedata_OR_sw, [num sh = null]) native; | |
55 | |
56 _CanvasGradientJs createLinearGradient(num x0, num y0, num x1, num y1) native; | |
57 | |
58 _CanvasPatternJs createPattern(var canvas_OR_image, String repetitionType) nat
ive; | |
59 | |
60 _CanvasGradientJs createRadialGradient(num x0, num y0, num r0, num x1, num y1,
num r1) native; | |
61 | |
62 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; | |
63 | |
64 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; | |
65 | |
66 void fill() native; | |
67 | |
68 void fillRect(num x, num y, num width, num height) native; | |
69 | |
70 void fillText(String text, num x, num y, [num maxWidth = null]) native; | |
71 | |
72 _ImageDataJs getImageData(num sx, num sy, num sw, num sh) native; | |
73 | |
74 bool isPointInPath(num x, num y) native; | |
75 | |
76 void lineTo(num x, num y) native; | |
77 | |
78 _TextMetricsJs measureText(String text) native; | |
79 | |
80 void moveTo(num x, num y) native; | |
81 | |
82 void putImageData(_ImageDataJs imagedata, num dx, num dy, [num dirtyX = null,
num dirtyY = null, num dirtyWidth = null, num dirtyHeight = null]) native; | |
83 | |
84 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; | |
85 | |
86 void rect(num x, num y, num width, num height) native; | |
87 | |
88 void restore() native; | |
89 | |
90 void rotate(num angle) native; | |
91 | |
92 void save() native; | |
93 | |
94 void scale(num sx, num sy) native; | |
95 | |
96 void setAlpha(num alpha) native; | |
97 | |
98 void setCompositeOperation(String compositeOperation) native; | |
99 | |
100 void setFillColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = nul
l, num b_OR_y = null, num a_OR_k = null, num a = null]) native; | |
101 | |
102 void setLineCap(String cap) native; | |
103 | |
104 void setLineJoin(String join) native; | |
105 | |
106 void setLineWidth(num width) native; | |
107 | |
108 void setMiterLimit(num limit) native; | |
109 | |
110 void setShadow(num width, num height, num blur, [var c_OR_color_OR_grayLevel_O
R_r = null, num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, nu
m a = null]) native; | |
111 | |
112 void setStrokeColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = n
ull, num b_OR_y = null, num a_OR_k = null, num a = null]) native; | |
113 | |
114 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; | |
115 | |
116 void stroke() native; | |
117 | |
118 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n
ative; | |
119 | |
120 void strokeText(String text, num x, num y, [num maxWidth = null]) native; | |
121 | |
122 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; | |
123 | |
124 void translate(num tx, num ty) native; | |
125 } | |
OLD | NEW |