{ "dart.dom.html": { "CanvasGradient": { "comment": [ "/**", " * An opaque canvas object representing a gradient.", " *", " * Created by calling [createLinearGradient] or [createRadialGradient] on a", " * [CanvasRenderingContext2D] object.", " *", " * Example usage:", " *", " * var canvas = new CanvasElement(width: 600, height: 600);", " * var ctx = canvas.context2D;", " * ctx.clearRect(0, 0, 600, 600);", " * ctx.save();", " * // Create radial gradient.", " * CanvasGradient gradient = ctx.createRadialGradient(0, 0, 0, 0, 0, 600);", " * gradient.addColorStop(0, '#000');", " * gradient.addColorStop(1, 'rgb(255, 255, 255)');", " * // Assign gradients to fill.", " * ctx.fillStyle = gradient;", " * // Draw a rectangle with a gradient fill.", " * ctx.fillRect(0, 0, 600, 600);", " * ctx.save();", " * document.body.children.add(canvas);", " *", " * See also:", " *", " * * [CanvasGradient](https://developer.mozilla.org/en-US/docs/DOM/CanvasGradient) from MDN.", " * * [CanvasGradient](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#canvasgradient) from whatwg.", " * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvasgradient) from W3C.", " */" ], "members": { "addColorStop": [ "/**", " * Adds a color stop to this gradient at the offset.", " *", " * The [offset] can range between 0.0 and 1.0.", " *", " * See also:", " *", " * * [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linear-gradient#Gradient_with_multiple_color_stops) from MDN.", " */" ] } }, "CanvasPattern": { "comment": [ "/**", " * An opaque object representing a pattern of image, canvas, or video.", " *", " * Created by calling [createPattern] on a [CanvasRenderingContext2D] object.", " *", " * Example usage:", " *", " * var canvas = new CanvasElement(width: 600, height: 600);", " * var ctx = canvas.context2D;", " * var img = new ImageElement();", " * // Image src needs to be loaded before pattern is applied.", " * img.onLoad.listen((event) {", " * // When the image is loaded, create a pattern", " * // from the ImageElement.", " * CanvasPattern pattern = ctx.createPattern(img, 'repeat');", " * ctx.rect(0, 0, canvas.width, canvas.height);", " * ctx.fillStyle = pattern;", " * ctx.fill();", " * });", " * img.src = \"images/foo.jpg\";", " * document.body.children.add(canvas);", " *", " * See also:", " * * [CanvasPattern](https://developer.mozilla.org/en-US/docs/DOM/CanvasPattern) from MDN.", " * * [CanvasPattern](http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#canvaspattern) from whatwg.", " * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspattern) from W3C.", " */" ] }, "CanvasRenderingContext": { "comment": [ "/**", " * A rendering context for a canvas element.", " *", " * This context is extended by [CanvasRenderingContext2D] and", " * [WebGLRenderingContext].", " */" ], "members": { "canvas": [ "/// Reference to the canvas element to which this context belongs." ] } }, "Clipboard": { "members": { "getData": [ "/**", " * Gets the data for the specified type.", " *", " * The data is only available from within a drop operation (such as an", " * [Element.onDrop] event) and will return `null` before the event is", " * triggered.", " *", " * Data transfer is prohibited across domains. If a drag originates", " * from content from another domain or protocol (HTTP vs HTTPS) then the", " * data cannot be accessed.", " *", " * The [type] can have values such as:", " *", " * * `'Text'`", " * * `'URL'`", " */" ] } }, "Document": { "members": { "createElement": [ "/// Deprecated: use new Element.tag(tagName) instead." ], "querySelector": [ "/**", " * Finds the first descendant element of this document that matches the", " * specified group of selectors.", " *", " * Unless your webpage contains multiple documents, the top-level query", " * method behaves the same as this method, so you should use it instead to", " * save typing a few characters.", " *", " * [selectors] should be a string using CSS selector syntax.", " * var element1 = document.query('.className');", " * var element2 = document.query('#id');", " *", " * For details about CSS selector syntax, see the", " * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).", " */" ] } }, "Element": { "members": { "querySelector": [ "/**", " * Finds the first descendant element of this element that matches the", " * specified group of selectors.", " *", " * [selectors] should be a string using CSS selector syntax.", " *", " * // Gets the first descendant with the class 'classname'", " * var element = element.query('.className');", " * // Gets the element with id 'id'", " * var element = element.query('#id');", " * // Gets the first descendant [ImageElement]", " * var img = element.query('img');", " *", " * See also:", " *", " * * [CSS Selectors](http://docs.webplatform.org/wiki/css/selectors)", " */" ] } }, "HTMLAreaElement": { "comment": [ "/**", " * DOM Area Element, which links regions of an image map with a hyperlink.", " *", " * The element can also define an uninteractive region of the map.", " *", " * See also:", " *", " * * [](https://developer.mozilla.org/en-US/docs/HTML/Element/area)", " * on MDN.", " */" ] }, "HTMLCanvasElement": { "members": { "height": [ "/// The height of this canvas element in CSS pixels." ], "width": [ "/// The width of this canvas element in CSS pixels." ] } }, "HTMLDivElement": { "comment": [ "/**", " * Represents an HTML