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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 void closePath(); | 69 void closePath(); |
70 void moveTo(float x, float y); | 70 void moveTo(float x, float y); |
71 void lineTo(float x, float y); | 71 void lineTo(float x, float y); |
72 void quadraticCurveTo(float cpx, float cpy, float x, float y); | 72 void quadraticCurveTo(float cpx, float cpy, float x, float y); |
73 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y); | 73 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y); |
74 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r adius); | 74 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r adius); |
75 void rect(float x, float y, float width, float height); | 75 void rect(float x, float y, float width, float height); |
76 [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise); | 76 [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise); |
77 [RaisesException] void ellipse(float x, float y, float radiusX, float radius Y, float rotation, float startAngle, float endAngle, [Default=Undefined] optiona l boolean anticlockwise); | 77 [RaisesException] void ellipse(float x, float y, float radiusX, float radius Y, float rotation, float startAngle, float endAngle, [Default=Undefined] optiona l boolean anticlockwise); |
78 | 78 |
79 void fill(optional CanvasWindingRule winding); | 79 void fill(); |
80 void fill(CanvasWindingRule winding); | |
81 [RuntimeEnabled=ExperimentalCanvasFeatures] void fill(Path path); | |
82 [RuntimeEnabled=ExperimentalCanvasFeatures] void fill(Path path, CanvasWindi ngRule winding); | |
80 void stroke(); | 83 void stroke(); |
81 void clip(optional CanvasWindingRule winding); | 84 [RuntimeEnabled=ExperimentalCanvasFeatures] void stroke(Path path); |
85 void clip(); | |
86 void clip(CanvasWindingRule winding); | |
eseidel
2014/02/20 18:59:52
Some of these are redundant, presumably to work ar
jcgregorio
2014/02/20 19:28:30
Done.
| |
87 [RuntimeEnabled=ExperimentalCanvasFeatures] void clip(Path path); | |
88 [RuntimeEnabled=ExperimentalCanvasFeatures] void clip(Path path, CanvasWindi ngRule winding); | |
82 boolean isPointInPath(float x, float y, optional CanvasWindingRule winding); | 89 boolean isPointInPath(float x, float y, optional CanvasWindingRule winding); |
83 boolean isPointInStroke(float x, float y); | 90 boolean isPointInStroke(float x, float y); |
84 | 91 |
85 // text | 92 // text |
86 attribute DOMString font; | 93 attribute DOMString font; |
87 attribute DOMString textAlign; | 94 attribute DOMString textAlign; |
88 attribute DOMString textBaseline; | 95 attribute DOMString textBaseline; |
89 | 96 |
90 TextMetrics measureText(DOMString text); | 97 TextMetrics measureText(DOMString text); |
91 | 98 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element); | 170 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element); |
164 | 171 |
165 readonly attribute float webkitBackingStorePixelRatio; | 172 readonly attribute float webkitBackingStorePixelRatio; |
166 | 173 |
167 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled; | 174 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled; |
168 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled; | 175 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled; |
169 | 176 |
170 Canvas2DContextAttributes getContextAttributes(); | 177 Canvas2DContextAttributes getContextAttributes(); |
171 }; | 178 }; |
172 | 179 |
OLD | NEW |