Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: client/html/generated/src/wrapping/_CanvasRenderingContext2DWrappingImplementation.dart

Issue 8835006: New version of dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typos Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 class CanvasRenderingContext2DWrappingImplementation extends CanvasRenderingCont extWrappingImplementation implements CanvasRenderingContext2D { 7 class CanvasRenderingContext2DWrappingImplementation extends CanvasRenderingCont extWrappingImplementation implements CanvasRenderingContext2D {
8 CanvasRenderingContext2DWrappingImplementation._wrap(ptr) : super._wrap(ptr) { } 8 CanvasRenderingContext2DWrappingImplementation._wrap(ptr) : super._wrap(ptr) { }
9 9
10 Object get fillStyle() { return LevelDom.wrapObject(_ptr.fillStyle); }
11
12 void set fillStyle(Object value) { _ptr.fillStyle = LevelDom.unwrapMaybePrimit ive(value); }
13
10 String get font() { return _ptr.font; } 14 String get font() { return _ptr.font; }
11 15
12 void set font(String value) { _ptr.font = value; } 16 void set font(String value) { _ptr.font = value; }
13 17
14 num get globalAlpha() { return _ptr.globalAlpha; } 18 num get globalAlpha() { return _ptr.globalAlpha; }
15 19
16 void set globalAlpha(num value) { _ptr.globalAlpha = value; } 20 void set globalAlpha(num value) { _ptr.globalAlpha = value; }
17 21
18 String get globalCompositeOperation() { return _ptr.globalCompositeOperation; } 22 String get globalCompositeOperation() { return _ptr.globalCompositeOperation; }
19 23
(...skipping 24 matching lines...) Expand all
44 void set shadowColor(String value) { _ptr.shadowColor = value; } 48 void set shadowColor(String value) { _ptr.shadowColor = value; }
45 49
46 num get shadowOffsetX() { return _ptr.shadowOffsetX; } 50 num get shadowOffsetX() { return _ptr.shadowOffsetX; }
47 51
48 void set shadowOffsetX(num value) { _ptr.shadowOffsetX = value; } 52 void set shadowOffsetX(num value) { _ptr.shadowOffsetX = value; }
49 53
50 num get shadowOffsetY() { return _ptr.shadowOffsetY; } 54 num get shadowOffsetY() { return _ptr.shadowOffsetY; }
51 55
52 void set shadowOffsetY(num value) { _ptr.shadowOffsetY = value; } 56 void set shadowOffsetY(num value) { _ptr.shadowOffsetY = value; }
53 57
58 Object get strokeStyle() { return LevelDom.wrapObject(_ptr.strokeStyle); }
59
60 void set strokeStyle(Object value) { _ptr.strokeStyle = LevelDom.unwrapMaybePr imitive(value); }
61
54 String get textAlign() { return _ptr.textAlign; } 62 String get textAlign() { return _ptr.textAlign; }
55 63
56 void set textAlign(String value) { _ptr.textAlign = value; } 64 void set textAlign(String value) { _ptr.textAlign = value; }
57 65
58 String get textBaseline() { return _ptr.textBaseline; } 66 String get textBaseline() { return _ptr.textBaseline; }
59 67
60 void set textBaseline(String value) { _ptr.textBaseline = value; } 68 void set textBaseline(String value) { _ptr.textBaseline = value; }
61 69
70 List get webkitLineDash() { return _ptr.webkitLineDash; }
71
72 void set webkitLineDash(List value) { _ptr.webkitLineDash = value; }
73
74 num get webkitLineDashOffset() { return _ptr.webkitLineDashOffset; }
75
76 void set webkitLineDashOffset(num value) { _ptr.webkitLineDashOffset = value; }
77
62 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) { 78 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) {
63 _ptr.arc(x, y, radius, startAngle, endAngle, anticlockwise); 79 _ptr.arc(x, y, radius, startAngle, endAngle, anticlockwise);
64 return; 80 return;
65 } 81 }
66 82
67 void arcTo(num x1, num y1, num x2, num y2, num radius) { 83 void arcTo(num x1, num y1, num x2, num y2, num radius) {
68 _ptr.arcTo(x1, y1, x2, y2, radius); 84 _ptr.arcTo(x1, y1, x2, y2, radius);
69 return; 85 return;
70 } 86 }
71 87
(...skipping 23 matching lines...) Expand all
95 } 111 }
96 112
97 void closePath() { 113 void closePath() {
98 _ptr.closePath(); 114 _ptr.closePath();
99 return; 115 return;
100 } 116 }
101 117
102 ImageData createImageData(var imagedata_OR_sw, [num sh = null]) { 118 ImageData createImageData(var imagedata_OR_sw, [num sh = null]) {
103 if (imagedata_OR_sw is ImageData) { 119 if (imagedata_OR_sw is ImageData) {
104 if (sh === null) { 120 if (sh === null) {
105 return LevelDom.wrapImageData(_ptr.createImageData(LevelDom.unwrap(image data_OR_sw))); 121 return LevelDom.wrapImageData(_ptr.createImageData(LevelDom.unwrapMaybeP rimitive(imagedata_OR_sw)));
106 } 122 }
107 } else { 123 } else {
108 if (imagedata_OR_sw is num) { 124 if (imagedata_OR_sw is num) {
109 return LevelDom.wrapImageData(_ptr.createImageData(LevelDom.unwrap(image data_OR_sw), sh)); 125 return LevelDom.wrapImageData(_ptr.createImageData(LevelDom.unwrapMaybeP rimitive(imagedata_OR_sw), sh));
110 } 126 }
111 } 127 }
112 throw "Incorrect number or type of arguments"; 128 throw "Incorrect number or type of arguments";
113 } 129 }
114 130
115 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) { 131 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) {
116 return LevelDom.wrapCanvasGradient(_ptr.createLinearGradient(x0, y0, x1, y1) ); 132 return LevelDom.wrapCanvasGradient(_ptr.createLinearGradient(x0, y0, x1, y1) );
117 } 133 }
118 134
119 CanvasPattern createPattern(var canvas_OR_image, String repetitionType) { 135 CanvasPattern createPattern(var canvas_OR_image, String repetitionType) {
120 if (canvas_OR_image is CanvasElement) { 136 if (canvas_OR_image is CanvasElement) {
121 return LevelDom.wrapCanvasPattern(_ptr.createPattern(LevelDom.unwrap(canva s_OR_image), repetitionType)); 137 return LevelDom.wrapCanvasPattern(_ptr.createPattern(LevelDom.unwrapMaybeP rimitive(canvas_OR_image), repetitionType));
122 } else { 138 } else {
123 if (canvas_OR_image is ImageElement) { 139 if (canvas_OR_image is ImageElement) {
124 return LevelDom.wrapCanvasPattern(_ptr.createPattern(LevelDom.unwrap(can vas_OR_image), repetitionType)); 140 return LevelDom.wrapCanvasPattern(_ptr.createPattern(LevelDom.unwrapMayb ePrimitive(canvas_OR_image), repetitionType));
125 } 141 }
126 } 142 }
127 throw "Incorrect number or type of arguments"; 143 throw "Incorrect number or type of arguments";
128 } 144 }
129 145
130 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) { 146 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) {
131 return LevelDom.wrapCanvasGradient(_ptr.createRadialGradient(x0, y0, r0, x1, y1, r1)); 147 return LevelDom.wrapCanvasGradient(_ptr.createRadialGradient(x0, y0, r0, x1, y1, r1));
132 } 148 }
133 149
134 void drawImage(var canvas_OR_image, 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, n um dh = null]) { 150 void drawImage(var canvas_OR_image, 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, n um dh = null]) {
135 if (canvas_OR_image is ImageElement) { 151 if (canvas_OR_image is ImageElement) {
136 if (sw_OR_width === null) { 152 if (sw_OR_width === null) {
137 if (height_OR_sh === null) { 153 if (height_OR_sh === null) {
138 if (dx === null) { 154 if (dx === null) {
139 if (dy === null) { 155 if (dy === null) {
140 if (dw === null) { 156 if (dw === null) {
141 if (dh === null) { 157 if (dh === null) {
142 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_O R_y); 158 _ptr.drawImage(LevelDom.unwrapMaybePrimitive(canvas_OR_image), sx_OR_x, sy_OR_y);
143 return; 159 return;
144 } 160 }
145 } 161 }
146 } 162 }
147 } 163 }
148 } 164 }
149 } else { 165 } else {
150 if (dx === null) { 166 if (dx === null) {
151 if (dy === null) { 167 if (dy === null) {
152 if (dw === null) { 168 if (dw === null) {
153 if (dh === null) { 169 if (dh === null) {
154 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_OR_ y, sw_OR_width, height_OR_sh); 170 _ptr.drawImage(LevelDom.unwrapMaybePrimitive(canvas_OR_image), s x_OR_x, sy_OR_y, sw_OR_width, height_OR_sh);
155 return; 171 return;
156 } 172 }
157 } 173 }
158 } 174 }
159 } else { 175 } else {
160 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_OR_y, sw_ OR_width, height_OR_sh, dx, dy, dw, dh); 176 _ptr.drawImage(LevelDom.unwrapMaybePrimitive(canvas_OR_image), sx_OR_x , sy_OR_y, sw_OR_width, height_OR_sh, dx, dy, dw, dh);
161 return; 177 return;
162 } 178 }
163 } 179 }
164 } else { 180 } else {
165 if (canvas_OR_image is CanvasElement) { 181 if (canvas_OR_image is CanvasElement) {
166 if (sw_OR_width === null) { 182 if (sw_OR_width === null) {
167 if (height_OR_sh === null) { 183 if (height_OR_sh === null) {
168 if (dx === null) { 184 if (dx === null) {
169 if (dy === null) { 185 if (dy === null) {
170 if (dw === null) { 186 if (dw === null) {
171 if (dh === null) { 187 if (dh === null) {
172 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy _OR_y); 188 _ptr.drawImage(LevelDom.unwrapMaybePrimitive(canvas_OR_image ), sx_OR_x, sy_OR_y);
173 return; 189 return;
174 } 190 }
175 } 191 }
176 } 192 }
177 } 193 }
178 } 194 }
179 } else { 195 } else {
180 if (dx === null) { 196 if (dx === null) {
181 if (dy === null) { 197 if (dy === null) {
182 if (dw === null) { 198 if (dw === null) {
183 if (dh === null) { 199 if (dh === null) {
184 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_O R_y, sw_OR_width, height_OR_sh); 200 _ptr.drawImage(LevelDom.unwrapMaybePrimitive(canvas_OR_image), sx_OR_x, sy_OR_y, sw_OR_width, height_OR_sh);
185 return; 201 return;
186 } 202 }
187 } 203 }
188 } 204 }
189 } else { 205 } else {
190 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_OR_y, s w_OR_width, height_OR_sh, dx, dy, dw, dh); 206 _ptr.drawImage(LevelDom.unwrapMaybePrimitive(canvas_OR_image), sx_OR _x, sy_OR_y, sw_OR_width, height_OR_sh, dx, dy, dw, dh);
191 return; 207 return;
192 } 208 }
193 } 209 }
194 } 210 }
195 } 211 }
196 throw "Incorrect number or type of arguments"; 212 throw "Incorrect number or type of arguments";
197 } 213 }
198 214
199 void drawImageFromRect(ImageElement 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]) { 215 void drawImageFromRect(ImageElement 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]) {
200 if (sx === null) { 216 if (sx === null) {
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 _ptr.setCompositeOperation(compositeOperation); 433 _ptr.setCompositeOperation(compositeOperation);
418 return; 434 return;
419 } 435 }
420 436
421 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]) { 437 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]) {
422 if (c_OR_color_OR_grayLevel_OR_r is String) { 438 if (c_OR_color_OR_grayLevel_OR_r is String) {
423 if (alpha_OR_g_OR_m === null) { 439 if (alpha_OR_g_OR_m === null) {
424 if (b_OR_y === null) { 440 if (b_OR_y === null) {
425 if (a_OR_k === null) { 441 if (a_OR_k === null) {
426 if (a === null) { 442 if (a === null) {
427 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r)); 443 _ptr.setFillColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_gray Level_OR_r));
428 return; 444 return;
429 } 445 }
430 } 446 }
431 } 447 }
432 } else { 448 } else {
433 if (b_OR_y === null) { 449 if (b_OR_y === null) {
434 if (a_OR_k === null) { 450 if (a_OR_k === null) {
435 if (a === null) { 451 if (a === null) {
436 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), a lpha_OR_g_OR_m); 452 _ptr.setFillColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_gray Level_OR_r), alpha_OR_g_OR_m);
437 return; 453 return;
438 } 454 }
439 } 455 }
440 } 456 }
441 } 457 }
442 } else { 458 } else {
443 if (c_OR_color_OR_grayLevel_OR_r is num) { 459 if (c_OR_color_OR_grayLevel_OR_r is num) {
444 if (alpha_OR_g_OR_m === null) { 460 if (alpha_OR_g_OR_m === null) {
445 if (b_OR_y === null) { 461 if (b_OR_y === null) {
446 if (a_OR_k === null) { 462 if (a_OR_k === null) {
447 if (a === null) { 463 if (a === null) {
448 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r)) ; 464 _ptr.setFillColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_gr ayLevel_OR_r));
449 return; 465 return;
450 } 466 }
451 } 467 }
452 } 468 }
453 } else { 469 } else {
454 if (b_OR_y === null) { 470 if (b_OR_y === null) {
455 if (a_OR_k === null) { 471 if (a_OR_k === null) {
456 if (a === null) { 472 if (a === null) {
457 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), alpha_OR_g_OR_m); 473 _ptr.setFillColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_gr ayLevel_OR_r), alpha_OR_g_OR_m);
458 return; 474 return;
459 } 475 }
460 } 476 }
461 } else { 477 } else {
462 if (a === null) { 478 if (a === null) {
463 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), a lpha_OR_g_OR_m, b_OR_y, a_OR_k); 479 _ptr.setFillColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_gray Level_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k);
464 return; 480 return;
465 } else { 481 } else {
466 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), a lpha_OR_g_OR_m, b_OR_y, a_OR_k, a); 482 _ptr.setFillColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_gray Level_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k, a);
467 return; 483 return;
468 } 484 }
469 } 485 }
470 } 486 }
471 } 487 }
472 } 488 }
473 throw "Incorrect number or type of arguments"; 489 throw "Incorrect number or type of arguments";
474 } 490 }
475 491
476 void setFillStyle(var color_OR_gradient_OR_pattern) {
477 if (color_OR_gradient_OR_pattern is String) {
478 _ptr.setFillStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern));
479 return;
480 } else {
481 if (color_OR_gradient_OR_pattern is CanvasGradient) {
482 _ptr.setFillStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern));
483 return;
484 } else {
485 if (color_OR_gradient_OR_pattern is CanvasPattern) {
486 _ptr.setFillStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern));
487 return;
488 }
489 }
490 }
491 throw "Incorrect number or type of arguments";
492 }
493
494 void setLineCap(String cap) { 492 void setLineCap(String cap) {
495 _ptr.setLineCap(cap); 493 _ptr.setLineCap(cap);
496 return; 494 return;
497 } 495 }
498 496
499 void setLineJoin(String join) { 497 void setLineJoin(String join) {
500 _ptr.setLineJoin(join); 498 _ptr.setLineJoin(join);
501 return; 499 return;
502 } 500 }
503 501
(...skipping 18 matching lines...) Expand all
522 } 520 }
523 } 521 }
524 } 522 }
525 } 523 }
526 } else { 524 } else {
527 if (c_OR_color_OR_grayLevel_OR_r is String) { 525 if (c_OR_color_OR_grayLevel_OR_r is String) {
528 if (alpha_OR_g_OR_m === null) { 526 if (alpha_OR_g_OR_m === null) {
529 if (b_OR_y === null) { 527 if (b_OR_y === null) {
530 if (a_OR_k === null) { 528 if (a_OR_k === null) {
531 if (a === null) { 529 if (a === null) {
532 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O R_grayLevel_OR_r)); 530 _ptr.setShadow(width, height, blur, LevelDom.unwrapMaybePrimitiv e(c_OR_color_OR_grayLevel_OR_r));
533 return; 531 return;
534 } 532 }
535 } 533 }
536 } 534 }
537 } else { 535 } else {
538 if (b_OR_y === null) { 536 if (b_OR_y === null) {
539 if (a_OR_k === null) { 537 if (a_OR_k === null) {
540 if (a === null) { 538 if (a === null) {
541 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O R_grayLevel_OR_r), alpha_OR_g_OR_m); 539 _ptr.setShadow(width, height, blur, LevelDom.unwrapMaybePrimitiv e(c_OR_color_OR_grayLevel_OR_r), alpha_OR_g_OR_m);
542 return; 540 return;
543 } 541 }
544 } 542 }
545 } 543 }
546 } 544 }
547 } else { 545 } else {
548 if (c_OR_color_OR_grayLevel_OR_r is num) { 546 if (c_OR_color_OR_grayLevel_OR_r is num) {
549 if (alpha_OR_g_OR_m === null) { 547 if (alpha_OR_g_OR_m === null) {
550 if (b_OR_y === null) { 548 if (b_OR_y === null) {
551 if (a_OR_k === null) { 549 if (a_OR_k === null) {
552 if (a === null) { 550 if (a === null) {
553 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color _OR_grayLevel_OR_r)); 551 _ptr.setShadow(width, height, blur, LevelDom.unwrapMaybePrimit ive(c_OR_color_OR_grayLevel_OR_r));
554 return; 552 return;
555 } 553 }
556 } 554 }
557 } 555 }
558 } else { 556 } else {
559 if (b_OR_y === null) { 557 if (b_OR_y === null) {
560 if (a_OR_k === null) { 558 if (a_OR_k === null) {
561 if (a === null) { 559 if (a === null) {
562 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color _OR_grayLevel_OR_r), alpha_OR_g_OR_m); 560 _ptr.setShadow(width, height, blur, LevelDom.unwrapMaybePrimit ive(c_OR_color_OR_grayLevel_OR_r), alpha_OR_g_OR_m);
563 return; 561 return;
564 } 562 }
565 } 563 }
566 } else { 564 } else {
567 if (a === null) { 565 if (a === null) {
568 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O R_grayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k); 566 _ptr.setShadow(width, height, blur, LevelDom.unwrapMaybePrimitiv e(c_OR_color_OR_grayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k);
569 return; 567 return;
570 } else { 568 } else {
571 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O R_grayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k, a); 569 _ptr.setShadow(width, height, blur, LevelDom.unwrapMaybePrimitiv e(c_OR_color_OR_grayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k, a);
572 return; 570 return;
573 } 571 }
574 } 572 }
575 } 573 }
576 } 574 }
577 } 575 }
578 } 576 }
579 throw "Incorrect number or type of arguments"; 577 throw "Incorrect number or type of arguments";
580 } 578 }
581 579
582 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]) { 580 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]) {
583 if (c_OR_color_OR_grayLevel_OR_r is String) { 581 if (c_OR_color_OR_grayLevel_OR_r is String) {
584 if (alpha_OR_g_OR_m === null) { 582 if (alpha_OR_g_OR_m === null) {
585 if (b_OR_y === null) { 583 if (b_OR_y === null) {
586 if (a_OR_k === null) { 584 if (a_OR_k === null) {
587 if (a === null) { 585 if (a === null) {
588 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r)) ; 586 _ptr.setStrokeColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_gr ayLevel_OR_r));
589 return; 587 return;
590 } 588 }
591 } 589 }
592 } 590 }
593 } else { 591 } else {
594 if (b_OR_y === null) { 592 if (b_OR_y === null) {
595 if (a_OR_k === null) { 593 if (a_OR_k === null) {
596 if (a === null) { 594 if (a === null) {
597 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), alpha_OR_g_OR_m); 595 _ptr.setStrokeColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_gr ayLevel_OR_r), alpha_OR_g_OR_m);
598 return; 596 return;
599 } 597 }
600 } 598 }
601 } 599 }
602 } 600 }
603 } else { 601 } else {
604 if (c_OR_color_OR_grayLevel_OR_r is num) { 602 if (c_OR_color_OR_grayLevel_OR_r is num) {
605 if (alpha_OR_g_OR_m === null) { 603 if (alpha_OR_g_OR_m === null) {
606 if (b_OR_y === null) { 604 if (b_OR_y === null) {
607 if (a_OR_k === null) { 605 if (a_OR_k === null) {
608 if (a === null) { 606 if (a === null) {
609 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r )); 607 _ptr.setStrokeColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_ grayLevel_OR_r));
610 return; 608 return;
611 } 609 }
612 } 610 }
613 } 611 }
614 } else { 612 } else {
615 if (b_OR_y === null) { 613 if (b_OR_y === null) {
616 if (a_OR_k === null) { 614 if (a_OR_k === null) {
617 if (a === null) { 615 if (a === null) {
618 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r ), alpha_OR_g_OR_m); 616 _ptr.setStrokeColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_ grayLevel_OR_r), alpha_OR_g_OR_m);
619 return; 617 return;
620 } 618 }
621 } 619 }
622 } else { 620 } else {
623 if (a === null) { 621 if (a === null) {
624 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k); 622 _ptr.setStrokeColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_gr ayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k);
625 return; 623 return;
626 } else { 624 } else {
627 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k, a); 625 _ptr.setStrokeColor(LevelDom.unwrapMaybePrimitive(c_OR_color_OR_gr ayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k, a);
628 return; 626 return;
629 } 627 }
630 } 628 }
631 } 629 }
632 } 630 }
633 } 631 }
634 throw "Incorrect number or type of arguments"; 632 throw "Incorrect number or type of arguments";
635 } 633 }
636 634
637 void setStrokeStyle(var color_OR_gradient_OR_pattern) {
638 if (color_OR_gradient_OR_pattern is String) {
639 _ptr.setStrokeStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern));
640 return;
641 } else {
642 if (color_OR_gradient_OR_pattern is CanvasGradient) {
643 _ptr.setStrokeStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern));
644 return;
645 } else {
646 if (color_OR_gradient_OR_pattern is CanvasPattern) {
647 _ptr.setStrokeStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern));
648 return;
649 }
650 }
651 }
652 throw "Incorrect number or type of arguments";
653 }
654
655 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) { 635 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) {
656 _ptr.setTransform(m11, m12, m21, m22, dx, dy); 636 _ptr.setTransform(m11, m12, m21, m22, dx, dy);
657 return; 637 return;
658 } 638 }
659 639
660 void stroke() { 640 void stroke() {
661 _ptr.stroke(); 641 _ptr.stroke();
662 return; 642 return;
663 } 643 }
664 644
(...skipping 20 matching lines...) Expand all
685 void transform(num m11, num m12, num m21, num m22, num dx, num dy) { 665 void transform(num m11, num m12, num m21, num m22, num dx, num dy) {
686 _ptr.transform(m11, m12, m21, m22, dx, dy); 666 _ptr.transform(m11, m12, m21, m22, dx, dy);
687 return; 667 return;
688 } 668 }
689 669
690 void translate(num tx, num ty) { 670 void translate(num tx, num ty) {
691 _ptr.translate(tx, ty); 671 _ptr.translate(tx, ty);
692 return; 672 return;
693 } 673 }
694 } 674 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698