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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 enum CanvasWindingRule { "nonzero", "evenodd" }; | 26 enum CanvasWindingRule { "nonzero", "evenodd" }; |
27 | 27 |
28 interface CanvasRenderingContext2D { | 28 interface CanvasRenderingContext2D { |
29 | 29 |
30 readonly attribute HTMLCanvasElement canvas; | 30 readonly attribute HTMLCanvasElement canvas; |
31 | 31 |
32 void save(); | 32 void save(); |
33 void restore(); | 33 void restore(); |
34 | 34 |
35 [StrictTypeChecking, RuntimeEnabled=ExperimentalCanvasFeatures, RaisesExcept
ion=Setter] attribute SVGMatrix currentTransform; | 35 [StrictTypeChecking, RuntimeEnabled=ExperimentalCanvasFeatures] attribute SV
GMatrix currentTransform; |
36 void scale(float sx, float sy); | 36 void scale(float sx, float sy); |
37 void rotate(float angle); | 37 void rotate(float angle); |
38 void translate(float tx, float ty); | 38 void translate(float tx, float ty); |
39 void transform(float m11, float m12, float m21, float m22, float dx, float d
y); | 39 void transform(float m11, float m12, float m21, float m22, float dx, float d
y); |
40 void setTransform(float m11, float m12, float m21, float m22, float dx, floa
t dy); | 40 void setTransform(float m11, float m12, float m21, float m22, float dx, floa
t dy); |
41 void resetTransform(); | 41 void resetTransform(); |
42 | 42 |
43 attribute float globalAlpha; | 43 attribute float globalAlpha; |
44 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; | 44 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; |
45 | 45 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawFocusIfNeeded(Element e
lement); | 173 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawFocusIfNeeded(Element e
lement); |
174 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); | 174 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); |
175 | 175 |
176 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; | 176 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; |
177 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; | 177 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; |
178 | 178 |
179 Canvas2DContextAttributes getContextAttributes(); | 179 Canvas2DContextAttributes getContextAttributes(); |
180 }; | 180 }; |
181 | 181 |
182 CanvasRenderingContext2D implements CanvasPathMethods; | 182 CanvasRenderingContext2D implements CanvasPathMethods; |
OLD | NEW |