Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Drop SVGZoomEvent.
  • Loading branch information
erikdahlstrom committed Feb 5, 2016
1 parent bb87c6d commit 3844475
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 96 deletions.
1 change: 1 addition & 0 deletions master/changes.html
Expand Up @@ -482,6 +482,7 @@ <h3 id="interact">Interactivity chapter</h3>
<li>Replaced DOMFocusIn and DOMFocusOut with focusin and focusout, and added the blur event.</li>
<li>Added keyboard events.</li>
<li>Removed mutation events.</li>
<li>Removed SVGZoomEvent.</li>
</ul>

<h3 id="linking">Linking chapter</h3>
Expand Down
2 changes: 0 additions & 2 deletions master/definitions.xml
Expand Up @@ -647,7 +647,6 @@
<attribute name='onerror' href='interact.html#OnErrorEventAttribute'/>
<attribute name='onresize' href='interact.html#OnResizeEventAttribute'/>
<attribute name='onscroll' href='interact.html#OnScrollEventAttribute'/>
<attribute name='onzoom' href='interact.html#OnZoomEventAttribute'/>
</attributecategory>

<attributecategory
Expand Down Expand Up @@ -955,7 +954,6 @@
<interface name='SVGAElement' href='linking.html#InterfaceSVGAElement'/>
<interface name='SVGViewElement' href='linking.html#InterfaceSVGViewElement'/>
<interface name='SVGScriptElement' href='interact.html#InterfaceSVGScriptElement'/>
<interface name='SVGZoomEvent' href='interact.html#InterfaceSVGZoomEvent'/>
<interface name='SVGMetadataElement' href='struct.html#InterfaceSVGMetadataElement'/>
<interface name='SVGForeignObjectElement' href='embedded.html#InterfaceSVGForeignObjectElement'/>
<interface name='SVGSolidcolorElement' href='pservers.html#InterfaceSVGSolidcolorElement'/>
Expand Down
88 changes: 2 additions & 86 deletions master/interact.html
Expand Up @@ -389,7 +389,7 @@ <h2 id="SVGEvents">Complete list of supported events</h2>
<p>resize events do not bubble and are not cancelable.</p>
<p class="issue" data-issue="5">The term 'document view' is not defined, raised in this <a href="https://lists.w3.org/Archives/Public/www-svg/2015Mar/0037.html">www-svg thread</a>.
Should probably be linked to CSSOM View, and/or be clarified that it is mostly intended for standalone svg documents.
The issue applies to the 'scroll' and 'SVGZoom' events as well.
The issue applies to the 'scroll' event as well.
</p>
</td>
<td>(same)</td>
Expand All @@ -411,21 +411,6 @@ <h2 id="SVGEvents">Complete list of supported events</h2>
<td>none</td>
<td>onscroll</td>
</tr>
<tr>
<td id="ZoomEvent"><p class="event-name"><strong>SVGZoom</strong></p>
<p>Occurs when the zoom level of a document view is being
changed, either through a direct user interaction or any
change to the <a>SVGSVGElement::currentScale</a>
property available on <a>SVGSVGElement</a> interface. This event
is only applicable to <a>outermost svg elements</a> and is
dispatched after the zoom level modification has taken
place. The target of the event is the <a>'svg'</a> element.</p>
<p>SVGZoom events bubble but are not cancelable.</p>
</td>
<td>none</td>
<td>none</td>
<td>onzoom</td>
</tr>
<tr>
<td id="BeginEvent"><p class="event-name"><strong>beginEvent</strong></p>
<p>Occurs when an animation element begins. For details,
Expand Down Expand Up @@ -1404,8 +1389,7 @@ <h3 id="DocumentEvents">Document-level event attributes</h3>
<dfn id="OnAbortEventAttribute">onabort</dfn>,
<dfn id="OnErrorEventAttribute">onerror</dfn>,
<dfn id="OnResizeEventAttribute">onresize</dfn>,
<dfn id="OnScrollEventAttribute">onscroll</dfn>,
<dfn id="OnZoomEventAttribute">onzoom</dfn>
<dfn id="OnScrollEventAttribute">onscroll</dfn>
</td>
<td>(see below)</td>
<td>(none)</td>
Expand Down Expand Up @@ -1691,73 +1675,5 @@ <h3 id="InterfaceSVGScriptElement">Interface SVGScriptElement</h3>
</edit:with>
</div>

<h3 id="InterfaceSVGZoomEvent">Interface SVGZoomEvent</h3>

<p>A DOM consumer can use the hasFeature of the DOMImplementation interface
to determine whether the SVG zoom event set has been implemented by a DOM
implementation. The feature string for this event set is "SVGZoomEvents".
This string is also used with the createEvent method.</p>

<p>The zoom event handler occurs before the zoom event is processed. The
remainder of the DOM represents the previous state of the document. The
document will be updated upon normal return from the event handler.</p>

<p>The UI event type for a zoom event is:</p>

<dl>
<dt><strong>SVGZoom</strong></dt>
<dd>The zoom event occurs when the user initiates an action
which causes the current view of the SVG document fragment
to be rescaled. Event handlers are only recognized on <a>'svg'</a> elements. See <a href="interact.html#ZoomEvent">SVGZoom event</a>.

<ul>
<li>Bubbles: Yes</li>
<li>Cancelable: No</li>
<li>Context Info: zoomRectScreen, previousScale,
previousTranslate, newScale, newTranslate, screenX,
screenY, clientX, clientY, altKey, ctrlKey, shiftKey,
metaKey, relatedNode.<br/>
(screenX, screenY, clientX and clientY indicate the
center of the zoom area, with clientX and clientY in
viewport coordinates for the corresponding <a>'svg'</a> element. relatedNode is
the corresponding <a>'svg'</a>
element.)</li>
</ul>
</dd>
</dl>

<div class="ready-for-wider-review">
<pre class="idl">interface <b>SVGZoomEvent</b> : UIEvent {
[SameObject] readonly attribute <a>DOMRectReadOnly</a> <a href="interact.html#__svg__SVGZoomEvent__zoomRectScreen">zoomRectScreen</a>;
readonly attribute float <a href="interact.html#__svg__SVGZoomEvent__previousScale">previousScale</a>;
[SameObject] readonly attribute <a>DOMPointReadOnly</a> <a href="interact.html#__svg__SVGZoomEvent__previousTranslate">previousTranslate</a>;
readonly attribute float <a href="interact.html#__svg__SVGZoomEvent__newScale">newScale</a>;
[SameObject] readonly attribute <a>DOMPointReadOnly</a> <a href="interact.html#__svg__SVGZoomEvent__newTranslate">newTranslate</a>;
};</pre>

<p>The <b id="__svg__SVGZoomEvent__zoomRectScreen">zoomRectScreen</b> IDL attribute
represents the specified zoom rectangle in screen units.</p>

<p>The <b id="__svg__SVGZoomEvent__previousScale">previousScale</b> and
<b id="__svg__SVGZoomEvent__previousTranslate">previousTranslate</b> IDL attributes
represent the scale factor and translation values from previous zoom operations
that was in place before the zoom operation occurred.</p>

<p>The <b id="__svg__SVGZoomEvent__newScale">newScale</b> and
<b id="__svg__SVGZoomEvent__newTranslate">newTranslate</b> IDL attributes
represent the scale factor and translation values that will be in place
after the zoom operation has been processed.</p>

<p>When an <a>SVGZoomEvent</a> object is created, it is initialized with values
for its <a href="#__svg__SVGZoomEvent__zoomRectScreen">zoomRectScreen</a>,
<a href="#__svg__SVGZoomEvent__previousScale">previousScale</a>,
<a href="#__svg__SVGZoomEvent__previousTranslate">previousTranslate</a>,
<a href="#__svg__SVGZoomEvent__newScale">newScale</a> and
<a href="#__svg__SVGZoomEvent__newTranslate">newTranslate</a> members.
On getting any of these IDL attributes, the corresponding value the
<a>SVGZoomEvent</a> object was initialized with is returend.</p>
</div>


</body>
</html>
8 changes: 0 additions & 8 deletions master/svgdom.html
Expand Up @@ -265,14 +265,6 @@ <h2 id="RelationshipWithDOM3Events">Relationship with DOM Level 3 Events</h2>
</ul>
</li>

<li>
The SVG DOM defines an additional custom event interface:
<ul>
<li><a href="interact.html#ZoomEvent">SVGZoom</a>
(definition can be found in the description of the <a>SVGZoomEvent</a> interface)</li>
</ul>
</li>

<li>
The following event types are triggered due to state
changes in animations. (The definitions for these events
Expand Down

0 comments on commit 3844475

Please sign in to comment.