| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 [RaisesException] void drawImage(CanvasImageSource image, unrestricted float
x, unrestricted float y); | 111 [RaisesException] void drawImage(CanvasImageSource image, unrestricted float
x, unrestricted float y); |
| 112 [RaisesException] void drawImage(CanvasImageSource image, unrestricted float
x, unrestricted float y, unrestricted float width, unrestricted float height); | 112 [RaisesException] void drawImage(CanvasImageSource image, unrestricted float
x, unrestricted float y, unrestricted float width, unrestricted float height); |
| 113 [RaisesException] void drawImage(CanvasImageSource image, unrestricted float
sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrest
ricted float dx, unrestricted float dy, unrestricted float dw, unrestricted floa
t dh); | 113 [RaisesException] void drawImage(CanvasImageSource image, unrestricted float
sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrest
ricted float dx, unrestricted float dy, unrestricted float dw, unrestricted floa
t dh); |
| 114 | 114 |
| 115 // hit regions | 115 // hit regions |
| 116 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegi
on(optional HitRegionOptions options); | 116 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegi
on(optional HitRegionOptions options); |
| 117 [RuntimeEnabled=ExperimentalCanvasFeatures] void removeHitRegion(DOMString i
d); | 117 [RuntimeEnabled=ExperimentalCanvasFeatures] void removeHitRegion(DOMString i
d); |
| 118 [RuntimeEnabled=ExperimentalCanvasFeatures] void clearHitRegions(); | 118 [RuntimeEnabled=ExperimentalCanvasFeatures] void clearHitRegions(); |
| 119 | 119 |
| 120 // pixel manipulation | 120 // pixel manipulation |
| 121 ImageData createImageData(ImageData imagedata); | 121 [RaisesException] ImageData createImageData(ImageData imagedata); |
| 122 [RaisesException] ImageData createImageData(float sw, float sh); | 122 [RaisesException] ImageData createImageData(float sw, float sh); |
| 123 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float
sh); | 123 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float
sh); |
| 124 void putImageData(ImageData imagedata, float dx, float dy); | 124 void putImageData(ImageData imagedata, float dx, float dy); |
| 125 void putImageData(ImageData imagedata, float dx, float dy, float dirtyX, flo
at dirtyY, float dirtyWidth, float dirtyHeight); | 125 void putImageData(ImageData imagedata, float dx, float dy, float dirtyX, flo
at dirtyY, float dirtyWidth, float dirtyHeight); |
| 126 | 126 |
| 127 // Context state | 127 // Context state |
| 128 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n
o-longer experimental | 128 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n
o-longer experimental |
| 129 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost(); | 129 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost(); |
| 130 | 130 |
| 131 Canvas2DContextAttributes getContextAttributes(); | 131 Canvas2DContextAttributes getContextAttributes(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 144 | 144 |
| 145 // text | 145 // text |
| 146 attribute DOMString font; // (default 10px sans-serif) | 146 attribute DOMString font; // (default 10px sans-serif) |
| 147 attribute DOMString textAlign; // "start", "end", "left", "right", "center"
(default: "start") | 147 attribute DOMString textAlign; // "start", "end", "left", "right", "center"
(default: "start") |
| 148 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic
", "ideographic", "bottom" (default: "alphabetic") | 148 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic
", "ideographic", "bottom" (default: "alphabetic") |
| 149 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; /
/ "inherit", "rtl", "ltr" (default: "inherit") | 149 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; /
/ "inherit", "rtl", "ltr" (default: "inherit") |
| 150 | 150 |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 CanvasRenderingContext2D implements CanvasPathMethods; | 153 CanvasRenderingContext2D implements CanvasPathMethods; |
| OLD | NEW |