| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 * | 848 * |
| 849 * If the type requested is not 'image/png', and the returned value is | 849 * If the type requested is not 'image/png', and the returned value is |
| 850 * 'data:image/png', then the requested type is not supported. | 850 * 'data:image/png', then the requested type is not supported. |
| 851 * | 851 * |
| 852 * Example usage: | 852 * Example usage: |
| 853 * | 853 * |
| 854 * CanvasElement canvas = new CanvasElement(); | 854 * CanvasElement canvas = new CanvasElement(); |
| 855 * var ctx = canvas.context2D | 855 * var ctx = canvas.context2D |
| 856 * ..fillStyle = "rgb(200,0,0)" | 856 * ..fillStyle = "rgb(200,0,0)" |
| 857 * ..fillRect(10, 10, 55, 50); | 857 * ..fillRect(10, 10, 55, 50); |
| 858 * var dataUrl = canvas.toDataURL("image/jpeg", 0.95); | 858 * var dataUrl = canvas.toDataUrl("image/jpeg", 0.95); |
| 859 * // The Data Uri would look similar to | 859 * // The Data Uri would look similar to |
| 860 * // 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA | 860 * // 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA |
| 861 * // AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO | 861 * // AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO |
| 862 * // 9TXL0Y4OHwAAAABJRU5ErkJggg==' | 862 * // 9TXL0Y4OHwAAAABJRU5ErkJggg==' |
| 863 * //Create a new image element from the data URI. | 863 * //Create a new image element from the data URI. |
| 864 * var img = new ImageElement(); | 864 * var img = new ImageElement(); |
| 865 * img.src = dataUrl; | 865 * img.src = dataUrl; |
| 866 * document.body.children.add(img); | 866 * document.body.children.add(img); |
| 867 * | 867 * |
| 868 * See also: | 868 * See also: |
| (...skipping 28736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29605 _position = nextPosition; | 29605 _position = nextPosition; |
| 29606 return true; | 29606 return true; |
| 29607 } | 29607 } |
| 29608 _current = null; | 29608 _current = null; |
| 29609 _position = _array.length; | 29609 _position = _array.length; |
| 29610 return false; | 29610 return false; |
| 29611 } | 29611 } |
| 29612 | 29612 |
| 29613 T get current => _current; | 29613 T get current => _current; |
| 29614 } | 29614 } |
| OLD | NEW |