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