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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void scale(unrestricted float x, unrestricted float y); | 51 void scale(unrestricted float x, unrestricted float y); |
52 void rotate(unrestricted float angle); | 52 void rotate(unrestricted float angle); |
53 void translate(unrestricted float x, unrestricted float y); | 53 void translate(unrestricted float x, unrestricted float y); |
54 void transform(unrestricted float a, unrestricted float b, unrestricted floa
t c, unrestricted float d, unrestricted float e, unrestricted float f); | 54 void transform(unrestricted float a, unrestricted float b, unrestricted floa
t c, unrestricted float d, unrestricted float e, unrestricted float f); |
55 void setTransform(unrestricted float a, unrestricted float b, unrestricted f
loat c, unrestricted float d, unrestricted float e, unrestricted float f); | 55 void setTransform(unrestricted float a, unrestricted float b, unrestricted f
loat c, unrestricted float d, unrestricted float e, unrestricted float f); |
56 void resetTransform(); | 56 void resetTransform(); |
57 | 57 |
58 // compositing | 58 // compositing |
59 attribute unrestricted float globalAlpha; // (default 1.0) | 59 attribute unrestricted float globalAlpha; // (default 1.0) |
60 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; // (d
efault source-over) | 60 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; // (d
efault source-over) |
| 61 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString filter; // (
default 'none') |
61 | 62 |
62 // image smoothing | 63 // image smoothing |
63 [ImplementedAs=imageSmoothingEnabled, DeprecateAs=PrefixedImageSmoothingEnab
led] attribute boolean webkitImageSmoothingEnabled; | 64 [ImplementedAs=imageSmoothingEnabled, DeprecateAs=PrefixedImageSmoothingEnab
led] attribute boolean webkitImageSmoothingEnabled; |
64 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; | 65 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; |
65 | 66 |
66 // colors and styles (see also the CanvasDrawingStyles interface) | 67 // colors and styles (see also the CanvasDrawingStyles interface) |
67 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (de
fault black) | 68 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (de
fault black) |
68 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (defa
ult black) | 69 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (defa
ult black) |
69 CanvasGradient createLinearGradient(float x0, float y0, float x1, float y1); | 70 CanvasGradient createLinearGradient(float x0, float y0, float x1, float y1); |
70 [RaisesException] CanvasGradient createRadialGradient(float x0, float y0, fl
oat r0, float x1, float y1, float r1); | 71 [RaisesException] CanvasGradient createRadialGradient(float x0, float y0, fl
oat r0, float x1, float y1, float r1); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 142 |
142 // text | 143 // text |
143 attribute DOMString font; // (default 10px sans-serif) | 144 attribute DOMString font; // (default 10px sans-serif) |
144 attribute DOMString textAlign; // "start", "end", "left", "right", "center"
(default: "start") | 145 attribute DOMString textAlign; // "start", "end", "left", "right", "center"
(default: "start") |
145 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic
", "ideographic", "bottom" (default: "alphabetic") | 146 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic
", "ideographic", "bottom" (default: "alphabetic") |
146 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; /
/ "inherit", "rtl", "ltr" (default: "inherit") | 147 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; /
/ "inherit", "rtl", "ltr" (default: "inherit") |
147 | 148 |
148 }; | 149 }; |
149 | 150 |
150 CanvasRenderingContext2D implements CanvasPathMethods; | 151 CanvasRenderingContext2D implements CanvasPathMethods; |
OLD | NEW |