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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // image smoothing | 62 // image smoothing |
63 [ImplementedAs=imageSmoothingEnabled, DeprecateAs=PrefixedImageSmoothingEnab
led] attribute boolean webkitImageSmoothingEnabled; | 63 [ImplementedAs=imageSmoothingEnabled, DeprecateAs=PrefixedImageSmoothingEnab
led] attribute boolean webkitImageSmoothingEnabled; |
64 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; // (default True) | 64 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; // (default True) |
65 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute ImageSmoothingQuality
imageSmoothingQuality; // (default "low") | 65 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute ImageSmoothingQuality
imageSmoothingQuality; // (default "low") |
66 | 66 |
67 // colors and styles (see also the CanvasDrawingStyles interface) | 67 // colors and styles (see also the CanvasDrawingStyles interface) |
68 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (de
fault black) | 68 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (de
fault black) |
69 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (defa
ult black) | 69 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (defa
ult black) |
70 CanvasGradient createLinearGradient(double x0, double y0, double x1, double
y1); | 70 CanvasGradient createLinearGradient(double x0, double y0, double x1, double
y1); |
71 [RaisesException] CanvasGradient createRadialGradient(double x0, double y0,
double r0, double x1, double y1, double r1); | 71 [RaisesException] CanvasGradient createRadialGradient(double x0, double y0,
double r0, double x1, double y1, double r1); |
72 [RaisesException] CanvasPattern createPattern(CanvasImageSource image, DOMSt
ring? repetitionType); | 72 [RaisesException] CanvasPattern? createPattern(CanvasImageSource image, [Tre
atNullAs=NullString] DOMString repetitionType); |
73 | 73 |
74 // shadows | 74 // shadows |
75 attribute unrestricted double shadowOffsetX; | 75 attribute unrestricted double shadowOffsetX; |
76 attribute unrestricted double shadowOffsetY; | 76 attribute unrestricted double shadowOffsetY; |
77 attribute unrestricted double shadowBlur; | 77 attribute unrestricted double shadowBlur; |
78 attribute DOMString shadowColor; | 78 attribute DOMString shadowColor; |
79 | 79 |
80 // rects | 80 // rects |
81 void clearRect(unrestricted double x, unrestricted double y, unrestricted do
uble width, unrestricted double height); | 81 void clearRect(unrestricted double x, unrestricted double y, unrestricted do
uble width, unrestricted double height); |
82 void fillRect(unrestricted double x, unrestricted double y, unrestricted dou
ble width, unrestricted double height); | 82 void fillRect(unrestricted double x, unrestricted double y, unrestricted dou
ble width, unrestricted double height); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 // text | 143 // text |
144 attribute DOMString font; // (default 10px sans-serif) | 144 attribute DOMString font; // (default 10px sans-serif) |
145 attribute DOMString textAlign; // "start", "end", "left", "right", "center"
(default: "start") | 145 attribute DOMString textAlign; // "start", "end", "left", "right", "center"
(default: "start") |
146 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic
", "ideographic", "bottom" (default: "alphabetic") | 146 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic
", "ideographic", "bottom" (default: "alphabetic") |
147 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; /
/ "inherit", "rtl", "ltr" (default: "inherit") | 147 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; /
/ "inherit", "rtl", "ltr" (default: "inherit") |
148 | 148 |
149 }; | 149 }; |
150 | 150 |
151 CanvasRenderingContext2D implements CanvasPathMethods; | 151 CanvasRenderingContext2D implements CanvasPathMethods; |
OLD | NEW |