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