Skip to content

Commit

Permalink
[e] (0) Update notes in canvas source regarding upcoming new features.
Browse files Browse the repository at this point in the history
Affected topics: Canvas

git-svn-id: http://svn.whatwg.org/webapps@7011 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 29, 2012
1 parent f91c5b2 commit 4d9dce8
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 42 deletions.
32 changes: 18 additions & 14 deletions complete.html
Expand Up @@ -34835,7 +34835,7 @@ <h4 id=the-canvas-element><span class=secno>4.8.11 </span>The <dfn id=canvas><co

<h5 id=2dcontext><span class=secno>4.8.11.1 </span>The 2D context</h5>

<!-- v2: we're on v4.1. suggestions for next version are marked v5, v6. -->
<!-- v2: we're on v4.1. suggestions for next version are marked v5. suggestions for subsequent versions are marked v6, v7. -->



Expand Down Expand Up @@ -34865,7 +34865,7 @@ <h5 id=2dcontext><span class=secno>4.8.11.1 </span>The 2D context</h5>
void <a href=#dom-context-2d-save title=dom-context-2d-save>save</a>(); // push state on state stack
void <a href=#dom-context-2d-restore title=dom-context-2d-restore>restore</a>(); // pop state stack and restore state
<!--
// v6 we've also received requests for:
// v7 we've also received requests for:
attribute boolean <span title="dom-context-2d-forceHighQuality">forceHighQuality</span> // (default false)
// when enabled, it would prevent the UA from falling back on lower-quality but faster rendering routines
// useful e.g. for when an image manipulation app uses <canvas> both for UI previews and the actual work
Expand All @@ -34877,15 +34877,15 @@ <h5 id=2dcontext><span class=secno>4.8.11.1 </span>The 2D context</h5>
void <a href=#dom-context-2d-transform title=dom-context-2d-transform>transform</a>(double a, double b, double c, double d, double e, double f);
void <a href=#dom-context-2d-settransform title=dom-context-2d-setTransform>setTransform</a>(double a, double b, double c, double d, double e, double f);
<!--
// v6 we've also received requests for:
void skew(...);
void reflect(...); // or mirror(...)
// v7 we've also received requests (though not many so far) for:
void skew(...); // is this common enough that one can't just use setTransform()?
void reflect(...); and void mirror(...); // aren't negative values in scale() sufficient for these?
-->
// compositing
attribute double <a href=#dom-context-2d-globalalpha title=dom-context-2d-globalAlpha>globalAlpha</a>; // (default 1.0)
attribute DOMString <a href=#dom-context-2d-globalcompositeoperation title=dom-context-2d-globalCompositeOperation>globalCompositeOperation</a>; // (default source-over)
<!--
// v6 we've also received requests for:
// v7 we've also received requests for:
- turning off antialiasing to avoid seams when patterns are painted next to each other
- might be better to overdraw?
- might be better to just draw at a higher res then downsample, like for 3d?
Expand Down Expand Up @@ -35081,7 +35081,7 @@ <h6 id=the-canvas-state><span class=secno>4.8.11.1.1 </span>The canvas state</h6
drawing state it describes. If there is no saved state, the method
must do nothing.</p>

<!-- v6
<!-- v7
idea from Mihai:
> 5. Drawing states should be saveable with IDs, and for easier restoring.
>
Expand Down Expand Up @@ -35429,6 +35429,7 @@ <h6 id=colors-and-styles><span class=secno>4.8.11.1.4 </span>Colors and styles</
* fill rule for deciding between winding and even-odd algorithms.
SVG has fill-rule: nonzero | evenodd
http://www.w3.org/TR/SVG/painting.html#FillProperties
see also mozFillRule: http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-June/032002.html

-->

Expand Down Expand Up @@ -35744,7 +35745,7 @@ <h6 id=colors-and-styles><span class=secno>4.8.11.1.4 </span>Colors and styles</
<!-- drawImage() has an equivalent paragraph -->

<!--
Requests for v6 features:
Requests for v5 features:
* apply transforms to patterns, so you don't have to create
transformed patterns manually by rendering them to an off-screen
canvas then using that canvas as the pattern.
Expand Down Expand Up @@ -35915,7 +35916,7 @@ <h6 id=line-styles><span class=secno>4.8.11.1.5 </span>Line styles</h6>
initially have the value <code>10.0</code>.</p>

<!--
v6: dashed lines have been requested. Philip Taylor provides these
v5: dashed lines have been requested. Philip Taylor provides these
notes on what would need to be defined for dashed lines:
> I don't think it's entirely trivial to add, to the detail that's
> necessary in a specification. The common graphics APIs (at least
Expand All @@ -35932,10 +35933,10 @@ <h6 id=line-styles><span class=secno>4.8.11.1.5 </span>Line styles</h6>
> that the underlying graphics library does differently. (SVG Tiny 1.2
> appears to skip some of the problems by leaving things undefined and
> allowing whatever behavior the graphics library has.)
-->

Another request has been for hairline width lines, that remain
hairline width with transform. ack Shaun Morris.
-->
<!--v6: Another request has been for hairline width lines, that remain
hairline width with transform. ack Shaun Morris. -->

</div>

Expand Down Expand Up @@ -36613,6 +36614,9 @@ <h6 id=complex-shapes-(paths)><span class=secno>4.8.11.1.8 </span>Complex shapes
* support ways of extending the clipping region (union instead of intersection)
- also "add", "subtract", "replace", "intersect" and "xor"
- maybe just support creating unions, intersections, and other -ions of paths
-->
<!-- v5
Jordan OSETE suggests:
* support ways of resetting the clipping region without save/restore
-->

Expand Down Expand Up @@ -37220,8 +37224,8 @@ <h6 id=text-0><span class=secno>4.8.11.1.9 </span>Text</h6> <!-- a v3 feature --
area of the canvas that the clipping region covers, not just the box
given by the em square height and measured text width.</p>

<!-- v6: Drawing text along a given path -->
<!-- v6: Adding text to a path -->
<!-- v5: Drawing text along a given path -->
<!-- v5: Adding text to a path -->
<!-- see also: http://www.w3.org/TR/SVG11/text.html#TextpathLayoutRules -->
<!-- see also: http://developer.mozilla.org/en/docs/Drawing_text_using_a_canvas -->

Expand Down
32 changes: 18 additions & 14 deletions index
Expand Up @@ -34835,7 +34835,7 @@ dictionary <dfn id=trackeventinit>TrackEventInit</dfn> : <a href=#eventinit>Even

<h5 id=2dcontext><span class=secno>4.8.11.1 </span>The 2D context</h5>

<!-- v2: we're on v4.1. suggestions for next version are marked v5, v6. -->
<!-- v2: we're on v4.1. suggestions for next version are marked v5. suggestions for subsequent versions are marked v6, v7. -->



Expand Down Expand Up @@ -34865,7 +34865,7 @@ dictionary <dfn id=trackeventinit>TrackEventInit</dfn> : <a href=#eventinit>Even
void <a href=#dom-context-2d-save title=dom-context-2d-save>save</a>(); // push state on state stack
void <a href=#dom-context-2d-restore title=dom-context-2d-restore>restore</a>(); // pop state stack and restore state
<!--
// v6 we've also received requests for:
// v7 we've also received requests for:
attribute boolean <span title="dom-context-2d-forceHighQuality">forceHighQuality</span> // (default false)
// when enabled, it would prevent the UA from falling back on lower-quality but faster rendering routines
// useful e.g. for when an image manipulation app uses <canvas> both for UI previews and the actual work
Expand All @@ -34877,15 +34877,15 @@ dictionary <dfn id=trackeventinit>TrackEventInit</dfn> : <a href=#eventinit>Even
void <a href=#dom-context-2d-transform title=dom-context-2d-transform>transform</a>(double a, double b, double c, double d, double e, double f);
void <a href=#dom-context-2d-settransform title=dom-context-2d-setTransform>setTransform</a>(double a, double b, double c, double d, double e, double f);
<!--
// v6 we've also received requests for:
void skew(...);
void reflect(...); // or mirror(...)
// v7 we've also received requests (though not many so far) for:
void skew(...); // is this common enough that one can't just use setTransform()?
void reflect(...); and void mirror(...); // aren't negative values in scale() sufficient for these?
-->
// compositing
attribute double <a href=#dom-context-2d-globalalpha title=dom-context-2d-globalAlpha>globalAlpha</a>; // (default 1.0)
attribute DOMString <a href=#dom-context-2d-globalcompositeoperation title=dom-context-2d-globalCompositeOperation>globalCompositeOperation</a>; // (default source-over)
<!--
// v6 we've also received requests for:
// v7 we've also received requests for:
- turning off antialiasing to avoid seams when patterns are painted next to each other
- might be better to overdraw?
- might be better to just draw at a higher res then downsample, like for 3d?
Expand Down Expand Up @@ -35081,7 +35081,7 @@ interface <dfn id=imagedata>ImageData</dfn> {
drawing state it describes. If there is no saved state, the method
must do nothing.</p>

<!-- v6
<!-- v7
idea from Mihai:
> 5. Drawing states should be saveable with IDs, and for easier restoring.
>
Expand Down Expand Up @@ -35429,6 +35429,7 @@ idea from Mihai:
* fill rule for deciding between winding and even-odd algorithms.
SVG has fill-rule: nonzero | evenodd
http://www.w3.org/TR/SVG/painting.html#FillProperties
see also mozFillRule: http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-June/032002.html

-->

Expand Down Expand Up @@ -35744,7 +35745,7 @@ idea from Mihai:
<!-- drawImage() has an equivalent paragraph -->

<!--
Requests for v6 features:
Requests for v5 features:
* apply transforms to patterns, so you don't have to create
transformed patterns manually by rendering them to an off-screen
canvas then using that canvas as the pattern.
Expand Down Expand Up @@ -35915,7 +35916,7 @@ idea from Mihai:
initially have the value <code>10.0</code>.</p>

<!--
v6: dashed lines have been requested. Philip Taylor provides these
v5: dashed lines have been requested. Philip Taylor provides these
notes on what would need to be defined for dashed lines:
> I don't think it's entirely trivial to add, to the detail that's
> necessary in a specification. The common graphics APIs (at least
Expand All @@ -35932,10 +35933,10 @@ notes on what would need to be defined for dashed lines:
> that the underlying graphics library does differently. (SVG Tiny 1.2
> appears to skip some of the problems by leaving things undefined and
> allowing whatever behavior the graphics library has.)
-->

Another request has been for hairline width lines, that remain
hairline width with transform. ack Shaun Morris.
-->
<!--v6: Another request has been for hairline width lines, that remain
hairline width with transform. ack Shaun Morris. -->

</div>

Expand Down Expand Up @@ -36613,6 +36614,9 @@ hairline width with transform. ack Shaun Morris.
* support ways of extending the clipping region (union instead of intersection)
- also "add", "subtract", "replace", "intersect" and "xor"
- maybe just support creating unions, intersections, and other -ions of paths
-->
<!-- v5
Jordan OSETE suggests:
* support ways of resetting the clipping region without save/restore
-->

Expand Down Expand Up @@ -37220,8 +37224,8 @@ v6DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex
area of the canvas that the clipping region covers, not just the box
given by the em square height and measured text width.</p>

<!-- v6: Drawing text along a given path -->
<!-- v6: Adding text to a path -->
<!-- v5: Drawing text along a given path -->
<!-- v5: Adding text to a path -->
<!-- see also: http://www.w3.org/TR/SVG11/text.html#TextpathLayoutRules -->
<!-- see also: http://developer.mozilla.org/en/docs/Drawing_text_using_a_canvas -->

Expand Down
32 changes: 18 additions & 14 deletions source
Expand Up @@ -40514,7 +40514,7 @@ dictionary <dfn>TrackEventInit</dfn> : <span>EventInit</span> {

<h5 id="2dcontext">The 2D context</h5>

<!-- v2: we're on v4.1. suggestions for next version are marked v5, v6. -->
<!-- v2: we're on v4.1. suggestions for next version are marked v5. suggestions for subsequent versions are marked v6, v7. -->

<!--START 2dcontext-->

Expand Down Expand Up @@ -40549,7 +40549,7 @@ dictionary <dfn>TrackEventInit</dfn> : <span>EventInit</span> {
void <span title="dom-context-2d-save">save</span>(); // push state on state stack
void <span title="dom-context-2d-restore">restore</span>(); // pop state stack and restore state
<!--
// v6 we've also received requests for:
// v7 we've also received requests for:
attribute boolean <span title="dom-context-2d-forceHighQuality">forceHighQuality</span> // (default false)
// when enabled, it would prevent the UA from falling back on lower-quality but faster rendering routines
// useful e.g. for when an image manipulation app uses <canvas> both for UI previews and the actual work
Expand All @@ -40561,15 +40561,15 @@ dictionary <dfn>TrackEventInit</dfn> : <span>EventInit</span> {
void <span title="dom-context-2d-transform">transform</span>(double a, double b, double c, double d, double e, double f);
void <span title="dom-context-2d-setTransform">setTransform</span>(double a, double b, double c, double d, double e, double f);
<!--
// v6 we've also received requests for:
void skew(...);
void reflect(...); // or mirror(...)
// v7 we've also received requests (though not many so far) for:
void skew(...); // is this common enough that one can't just use setTransform()?
void reflect(...); and void mirror(...); // aren't negative values in scale() sufficient for these?
-->
// compositing
attribute double <span title="dom-context-2d-globalAlpha">globalAlpha</span>; // (default 1.0)
attribute DOMString <span title="dom-context-2d-globalCompositeOperation">globalCompositeOperation</span>; // (default source-over)
<!--
// v6 we've also received requests for:
// v7 we've also received requests for:
- turning off antialiasing to avoid seams when patterns are painted next to each other
- might be better to overdraw?
- might be better to just draw at a higher res then downsample, like for 3d?
Expand Down Expand Up @@ -40797,7 +40797,7 @@ interface <dfn>ImageData</dfn> {
drawing state it describes. If there is no saved state, the method
must do nothing.</p>

<!-- v6
<!-- v7
idea from Mihai:
> 5. Drawing states should be saveable with IDs, and for easier restoring.
>
Expand Down Expand Up @@ -41205,6 +41205,7 @@ idea from Mihai:
* fill rule for deciding between winding and even-odd algorithms.
SVG has fill-rule: nonzero | evenodd
http://www.w3.org/TR/SVG/painting.html#FillProperties
see also mozFillRule: http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-June/032002.html

-->

Expand Down Expand Up @@ -41603,7 +41604,7 @@ idea from Mihai:
<!-- drawImage() has an equivalent paragraph -->

<!--
Requests for v6 features:
Requests for v5 features:
* apply transforms to patterns, so you don't have to create
transformed patterns manually by rendering them to an off-screen
canvas then using that canvas as the pattern.
Expand Down Expand Up @@ -41795,7 +41796,7 @@ idea from Mihai:
initially have the value <code>10.0</code>.</p>

<!--
v6: dashed lines have been requested. Philip Taylor provides these
v5: dashed lines have been requested. Philip Taylor provides these
notes on what would need to be defined for dashed lines:
> I don't think it's entirely trivial to add, to the detail that's
> necessary in a specification. The common graphics APIs (at least
Expand All @@ -41812,10 +41813,10 @@ notes on what would need to be defined for dashed lines:
> that the underlying graphics library does differently. (SVG Tiny 1.2
> appears to skip some of the problems by leaving things undefined and
> allowing whatever behavior the graphics library has.)
-->

Another request has been for hairline width lines, that remain
hairline width with transform. ack Shaun Morris.
-->
<!--v6: Another request has been for hairline width lines, that remain
hairline width with transform. ack Shaun Morris. -->

</div>

Expand Down Expand Up @@ -42647,6 +42648,9 @@ hairline width with transform. ack Shaun Morris.
* support ways of extending the clipping region (union instead of intersection)
- also "add", "subtract", "replace", "intersect" and "xor"
- maybe just support creating unions, intersections, and other -ions of paths
-->
<!-- v5
Jordan OSETE suggests:
* support ways of resetting the clipping region without save/restore
-->

Expand Down Expand Up @@ -43350,8 +43354,8 @@ v6DVT (also check for '- -' bits in the part above) -->
area of the canvas that the clipping region covers, not just the box
given by the em square height and measured text width.</p>

<!-- v6: Drawing text along a given path -->
<!-- v6: Adding text to a path -->
<!-- v5: Drawing text along a given path -->
<!-- v5: Adding text to a path -->
<!-- see also: http://www.w3.org/TR/SVG11/text.html#TextpathLayoutRules -->
<!-- see also: http://developer.mozilla.org/en/docs/Drawing_text_using_a_canvas -->

Expand Down

0 comments on commit 4d9dce8

Please sign in to comment.