OLD | NEW |
1 { | 1 { |
2 "html": { | 2 "html": { |
3 "CanvasGradient": { | 3 "CanvasGradient": { |
4 "comment": [ | 4 "comment": [ |
5 "/**\n * An opaque canvas object representing a gradient.\n *\n * Create
d by calling [createLinearGradient] or [createRadialGradient] on a\n * [CanvasRe
nderingContext2D] object.\n *\n * Example usage:\n *\n * var canvas = new Ca
nvasElement(width: 600, height: 600);\n * var ctx = canvas.context2d;\n *
ctx.clearRect(0, 0, 600, 600);\n * ctx.save();\n * // Create radial gr
adient.\n * CanvasGradient gradient = ctx.createRadialGradient(0, 0, 0, 0, 0
, 600);\n * gradient.addColorStop(0, '#000');\n * gradient.addColorStop(
1, 'rgb(255, 255, 255)');\n * // Assign gradients to fill.\n * ctx.fillS
tyle = gradient;\n * // Draw a rectangle with a gradient fill.\n * ctx.f
illRect(0, 0, 600, 600);\n * ctx.save();\n * document.body.children.add(
canvas);\n *\n * See also:\n *\n * * [CanvasGradient](https://developer.mozilla.
org/en-US/docs/DOM/CanvasGradient) from MDN.\n * * [CanvasGradient](http://www.w
hatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#canvasgr
adient) from whatwg.\n * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dconte
xt-20100304/#canvasgradient) from W3C.\n */" | 5 "/**\n * An opaque canvas object representing a gradient.\n *\n * Create
d by calling [createLinearGradient] or [createRadialGradient] on a\n * [CanvasRe
nderingContext2D] object.\n *\n * Example usage:\n *\n * var canvas = new Ca
nvasElement(width: 600, height: 600);\n * var ctx = canvas.context2d;\n *
ctx.clearRect(0, 0, 600, 600);\n * ctx.save();\n * // Create radial gr
adient.\n * CanvasGradient gradient = ctx.createRadialGradient(0, 0, 0, 0, 0
, 600);\n * gradient.addColorStop(0, '#000');\n * gradient.addColorStop(
1, 'rgb(255, 255, 255)');\n * // Assign gradients to fill.\n * ctx.fillS
tyle = gradient;\n * // Draw a rectangle with a gradient fill.\n * ctx.f
illRect(0, 0, 600, 600);\n * ctx.save();\n * document.body.children.add(
canvas);\n *\n * See also:\n *\n * * [CanvasGradient](https://developer.mozilla.
org/en-US/docs/DOM/CanvasGradient) from MDN.\n * * [CanvasGradient](http://www.w
hatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#canvasgr
adient) from whatwg.\n * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dconte
xt-20100304/#canvasgradient) from W3C.\n */" |
6 ], | 6 ], |
7 "members": { | 7 "members": { |
8 "addColorStop": [ | 8 "addColorStop": [ |
9 "/**\n * Adds a color stop to this gradient at the offset.\n *\n
* The [offset] can range between 0.0 and 1.0.\n *\n * See also:\n *\n *
* [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linear-gr
adient#Gradient_with_multiple_color_stops) from MDN.\n */" | 9 "/**\n * Adds a color stop to this gradient at the offset.\n *\n
* The [offset] can range between 0.0 and 1.0.\n *\n * See also:\n *\n *
* [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linear-gr
adient#Gradient_with_multiple_color_stops) from MDN.\n */" |
10 ] | 10 ] |
11 } | 11 } |
12 }, | 12 }, |
13 "CanvasPattern": { | 13 "CanvasPattern": { |
14 "comment": [ | 14 "comment": [ |
15 "/**\n * An opaque object representing a pattern of image, canvas, or vi
deo.\n *\n * Created by calling [createPattern] on a [CanvasRenderingContext2D]
object.\n *\n * Example usage:\n *\n * var canvas = new CanvasElement(width:
600, height: 600);\n * var ctx = canvas.context2d;\n * var img = new Im
ageElement();\n * // Image src needs to be loaded before pattern is applied.
\n * img.on.load.add((event) {\n * // When the image is loaded, create
a pattern\n * // from the ImageElement.\n * CanvasPattern pattern =
ctx.createPattern(img, 'repeat');\n * ctx.rect(0, 0, canvas.width, canvas
.height);\n * ctx.fillStyle = pattern;\n * ctx.fill();\n * });\n
* img.src = \"images/foo.jpg\";\n * document.body.children.add(canvas);
\n *\n * See also:\n * * [CanvasPattern](https://developer.mozilla.org/en-US/doc
s/DOM/CanvasPattern) from MDN.\n * * [CanvasPattern](http://www.whatwg.org/specs
/web-apps/current-work/multipage/the-canvas-element.html#canvaspattern) from wha
twg.\n * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canv
aspattern) from W3C.\n */" | 15 "/**\n * An opaque object representing a pattern of image, canvas, or vi
deo.\n *\n * Created by calling [createPattern] on a [CanvasRenderingContext2D]
object.\n *\n * Example usage:\n *\n * var canvas = new CanvasElement(width:
600, height: 600);\n * var ctx = canvas.context2d;\n * var img = new Im
ageElement();\n * // Image src needs to be loaded before pattern is applied.
\n * img.onLoad.listen((event) {\n * // When the image is loaded, crea
te a pattern\n * // from the ImageElement.\n * CanvasPattern pattern
= ctx.createPattern(img, 'repeat');\n * ctx.rect(0, 0, canvas.width, canv
as.height);\n * ctx.fillStyle = pattern;\n * ctx.fill();\n * });
\n * img.src = \"images/foo.jpg\";\n * document.body.children.add(canvas
);\n *\n * See also:\n * * [CanvasPattern](https://developer.mozilla.org/en-US/d
ocs/DOM/CanvasPattern) from MDN.\n * * [CanvasPattern](http://www.whatwg.org/spe
cs/web-apps/current-work/multipage/the-canvas-element.html#canvaspattern) from w
hatwg.\n * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#ca
nvaspattern) from W3C.\n */" |
16 ] | 16 ] |
17 }, | 17 }, |
18 "CanvasRenderingContext": { | 18 "CanvasRenderingContext": { |
19 "comment": [ | 19 "comment": [ |
20 "/**\n * A rendering context for a canvas element.\n *\n * This context
is extended by [CanvasRenderingContext2D] and\n * [WebGLRenderingContext].\n */" | 20 "/**\n * A rendering context for a canvas element.\n *\n * This context
is extended by [CanvasRenderingContext2D] and\n * [WebGLRenderingContext].\n */" |
21 ], | 21 ], |
22 "members": { | 22 "members": { |
23 "canvas": [ | 23 "canvas": [ |
24 "/// Reference to the canvas element to which this context belongs." | 24 "/// Reference to the canvas element to which this context belongs." |
25 ] | 25 ] |
26 } | 26 } |
27 }, | 27 }, |
28 "HTMLCanvasElement": { | 28 "HTMLCanvasElement": { |
29 "members": { | 29 "members": { |
30 "height": [ | 30 "height": [ |
31 "/// The height of this canvas element in CSS pixels." | 31 "/// The height of this canvas element in CSS pixels." |
32 ], | 32 ], |
33 "toDataURL": [ | 33 "toDataURL": [ |
34 "/**\n * Returns a data URI containing a representation of the image
in the\n * format specified by type (defaults to 'image/png').\n *\n * Da
ta Uri format is as follow `data:[<MIME-type>][;charset=<encoding>][;base64],<da
ta>`\n *\n * Optional parameter [quality] in the range of 0.0 and 1.0 can be
used when requesting [type]\n * 'image/jpeg' or 'image/webp'. If [quality] is
not passed the default\n * value is used. Note: the default value varies by b
rowser.\n *\n * If the height or width of this canvas element is 0, then 'da
ta:' is returned,\n * representing no data.\n *\n * If the type requested
is not 'image/png', and the returned value is\n * 'data:image/png', then the r
equested type is not supported.\n *\n * Example usage:\n *\n * Canva
sElement canvas = new CanvasElement();\n * var ctx = canvas.context2d\n
* ..fillStyle = \"rgb(200,0,0)\"\n * ..fillRect(10, 10, 55, 50);\n *
var dataUrl = canvas.toDataURL(\"image/jpeg\", 0.95);\n * // The Data
Uri would look similar to\n * // 'data:image/png;base64,iVBORw0KGgoAAAANS
UhEUgAAAAUA\n * // AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxglj
NBAAO\n * // 9TXL0Y4OHwAAAABJRU5ErkJggg=='\n * //Create a new image
element from the data URI.\n * var img = new ImageElement();\n * img
.src = dataUrl;\n * document.body.children.add(img);\n *\n * See also:
\n *\n * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) f
rom Wikipedia.\n *\n * * [HTMLCanvasElement](https://developer.mozilla.org/e
n-US/docs/DOM/HTMLCanvasElement) from MDN.\n *\n * * [toDataUrl](http://dev.
w3.org/html5/spec/the-canvas-element.html#dom-canvas-todataurl) from W3C.\n */
" | 34 "/**\n * Returns a data URI containing a representation of the image
in the\n * format specified by type (defaults to 'image/png').\n *\n * Da
ta Uri format is as follow `data:[<MIME-type>][;charset=<encoding>][;base64],<da
ta>`\n *\n * Optional parameter [quality] in the range of 0.0 and 1.0 can be
used when requesting [type]\n * 'image/jpeg' or 'image/webp'. If [quality] is
not passed the default\n * value is used. Note: the default value varies by b
rowser.\n *\n * If the height or width of this canvas element is 0, then 'da
ta:' is returned,\n * representing no data.\n *\n * If the type requested
is not 'image/png', and the returned value is\n * 'data:image/png', then the r
equested type is not supported.\n *\n * Example usage:\n *\n * Canva
sElement canvas = new CanvasElement();\n * var ctx = canvas.context2d\n
* ..fillStyle = \"rgb(200,0,0)\"\n * ..fillRect(10, 10, 55, 50);\n *
var dataUrl = canvas.toDataURL(\"image/jpeg\", 0.95);\n * // The Data
Uri would look similar to\n * // 'data:image/png;base64,iVBORw0KGgoAAAANS
UhEUgAAAAUA\n * // AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxglj
NBAAO\n * // 9TXL0Y4OHwAAAABJRU5ErkJggg=='\n * //Create a new image
element from the data URI.\n * var img = new ImageElement();\n * img
.src = dataUrl;\n * document.body.children.add(img);\n *\n * See also:
\n *\n * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) f
rom Wikipedia.\n *\n * * [HTMLCanvasElement](https://developer.mozilla.org/e
n-US/docs/DOM/HTMLCanvasElement) from MDN.\n *\n * * [toDataUrl](http://dev.
w3.org/html5/spec/the-canvas-element.html#dom-canvas-todataurl) from W3C.\n */
" |
35 ], | 35 ], |
36 "width": [ | 36 "width": [ |
37 "/// The width of this canvas element in CSS pixels." | 37 "/// The width of this canvas element in CSS pixels." |
38 ] | 38 ] |
39 } | 39 } |
40 } | 40 } |
41 } | 41 } |
42 } | 42 } |
OLD | NEW |