| 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.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 */" |
| 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 "Document": { |
| 29 "members": { |
| 30 "body": [ |
| 31 "/// Moved to [HtmlDocument]." |
| 32 ], |
| 33 "caretRangeFromPoint": [ |
| 34 "/// Use the [Range] constructor instead." |
| 35 ], |
| 36 "createElement": [ |
| 37 "/// Deprecated: use new Element.tag(tagName) instead." |
| 38 ], |
| 39 "createTouchList": [ |
| 40 "/// Use the [TouchList] constructor isntead." |
| 41 ], |
| 42 "getCSSCanvasContext": [ |
| 43 "/// Moved to [HtmlDocument]." |
| 44 ], |
| 45 "getElementById": [ |
| 46 "/// Deprecated: use query(\"#$elementId\") instead." |
| 47 ], |
| 48 "head": [ |
| 49 "/// Moved to [HtmlDocument]." |
| 50 ], |
| 51 "lastModified": [ |
| 52 "/// Moved to [HtmlDocument]." |
| 53 ], |
| 54 "querySelector": [ |
| 55 "/// Deprecated: renamed to the shorter name [query]." |
| 56 ], |
| 57 "querySelectorAll": [ |
| 58 "/// Deprecated: use query(\"#$elementId\") instead." |
| 59 ], |
| 60 "referrer": [ |
| 61 "/// Moved to [HtmlDocument]." |
| 62 ], |
| 63 "styleSheets": [ |
| 64 "/// Moved to [HtmlDocument]" |
| 65 ], |
| 66 "title": [ |
| 67 "/// Moved to [HtmlDocument]." |
| 68 ], |
| 69 "webkitCancelFullScreen": [ |
| 70 "/// Moved to [HtmlDocument]." |
| 71 ], |
| 72 "webkitExitFullscreen": [ |
| 73 "/// Moved to [HtmlDocument]." |
| 74 ], |
| 75 "webkitExitPointerLock": [ |
| 76 "/// Moved to [HtmlDocument]." |
| 77 ], |
| 78 "webkitFullscreenElement": [ |
| 79 "/// Moved to [HtmlDocument]." |
| 80 ], |
| 81 "webkitFullscreenEnabled": [ |
| 82 "/// Moved to [HtmlDocument]." |
| 83 ], |
| 84 "webkitHidden": [ |
| 85 "/// Moved to [HtmlDocument]." |
| 86 ], |
| 87 "webkitIsFullScreen": [ |
| 88 "/// Moved to [HtmlDocument]." |
| 89 ], |
| 90 "webkitPointerLockElement": [ |
| 91 "/// Moved to [HtmlDocument]." |
| 92 ] |
| 93 } |
| 94 }, |
| 28 "HTMLCanvasElement": { | 95 "HTMLCanvasElement": { |
| 29 "members": { | 96 "members": { |
| 30 "height": [ | 97 "height": [ |
| 31 "/// The height of this canvas element in CSS pixels." | 98 "/// The height of this canvas element in CSS pixels." |
| 32 ], | 99 ], |
| 33 "toDataURL": [ | 100 "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 */
" | 101 "/**\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 ], | 102 ], |
| 36 "width": [ | 103 "width": [ |
| 37 "/// The width of this canvas element in CSS pixels." | 104 "/// The width of this canvas element in CSS pixels." |
| 38 ] | 105 ] |
| 39 } | 106 } |
| 40 } | 107 } |
| 41 } | 108 } |
| 42 } | 109 } |
| OLD | NEW |