Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove docs for SVG viewTarget attribute #31151

Merged
merged 2 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -125377,10 +125377,6 @@
"Mogglewump"
]
},
"Web/SVG/Attribute/viewTarget": {
"modified": "2020-10-15T22:18:25.792Z",
"contributors": ["Sebastianz"]
},
"Web/SVG/Attribute/visibility": {
"modified": "2020-10-15T21:07:30.330Z",
"contributors": [
Expand Down
7 changes: 3 additions & 4 deletions files/en-us/web/api/svgsvgelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,21 @@ _This interface also inherits properties from its parent, {{domxref("SVGGraphics
- : An {{domxref("SVGViewSpec")}} defining the initial view (i.e., before magnification and panning) of the current innermost SVG document fragment. The meaning depends on the situation: If the initial view was a "standard" view, then:

- the values for {{SVGAttr("viewBox")}}, {{SVGAttr("preserveAspectRatio")}} and {{SVGAttr("zoomAndPan")}} within {{SVGAttr("currentView")}} will match the values for the corresponding DOM attributes that are on `SVGSVGElement` directly
- the values for {{SVGAttr("transform")}} and {{SVGAttr("viewTarget")}} within {{SVGAttr("currentView")}} will be `null`
- the value for {{SVGAttr("transform")}} within {{SVGAttr("currentView")}} will be `null`

If the initial view was a link into a {{SVGElement("view")}} element, then:

- the values for {{SVGAttr("viewBox")}}, {{SVGAttr("preserveAspectRatio")}} and {{SVGAttr("zoomAndPan")}} within {{SVGAttr("currentView")}} will correspond to the corresponding attributes for the given {{SVGElement("view")}} element
- the values for {{SVGAttr("transform")}} and {{SVGAttr("viewTarget")}} within {{SVGAttr("currentView")}} will be `null`
- the value for {{SVGAttr("transform")}} within {{SVGAttr("currentView")}} will be `null`

If the initial view was a link into another element (i.e., other than a {{SVGElement("view")}}), then:

- the values for {{SVGAttr("viewBox")}}, {{SVGAttr("preserveAspectRatio")}} and {{SVGAttr("zoomAndPan")}} within {{SVGAttr("currentView")}} will match the values for the corresponding DOM attributes that are on `SVGSVGElement` directly for the closest ancestor {{SVGElement("svg")}} element
- the values for {{SVGAttr("transform")}} within {{SVGAttr("currentView")}} will be `null`
- the {{SVGAttr("viewTarget")}} within {{SVGAttr("currentView")}} will represent the target of the link

If the initial view was a link into the SVG document fragment using an SVG view specification fragment identifier (i.e., `#svgView(…)`), then:

- the values for {{SVGAttr("viewBox")}}, {{SVGAttr("preserveAspectRatio")}}, {{SVGAttr("zoomAndPan")}}, {{SVGAttr("transform")}} and {{SVGAttr("viewTarget")}} within {{SVGAttr("currentView")}} will correspond to the values from the SVG view specification fragment identifier
- the values for {{SVGAttr("viewBox")}}, {{SVGAttr("preserveAspectRatio")}}, {{SVGAttr("zoomAndPan")}}, {{SVGAttr("transform")}} within {{SVGAttr("currentView")}} will correspond to the values from the SVG view specification fragment identifier

- {{domxref("SVGSVGElement.currentScale")}}
- : On an outermost {{SVGElement("svg")}} element, this float attribute indicates the current scale factor relative to the initial view to take into account user magnification and panning operations. DOM attributes `currentScale` and `currentTranslate` are equivalent to the 2×3 matrix `[a b c d e f] = [currentScale 0 0 currentScale currentTranslate.x currentTranslate.y]`. If "magnification" is enabled (i.e., `zoomAndPan="magnify"`), then the effect is as if an extra transformation were placed at the outermost level on the SVG document fragment (i.e., outside the outermost {{SVGElement("svg")}} element).
Expand Down
1 change: 0 additions & 1 deletion files/en-us/web/svg/attribute/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ Below is a list of all of the attributes available in SVG along with links to re
- {{SVGAttr("vert-origin-x")}}
- {{SVGAttr("vert-origin-y")}}
- {{SVGAttr("viewBox")}}
- {{SVGAttr("viewTarget")}}
- {{SVGAttr("visibility")}}

### W
Expand Down
46 changes: 0 additions & 46 deletions files/en-us/web/svg/attribute/viewtarget/index.md

This file was deleted.

1 change: 0 additions & 1 deletion files/en-us/web/svg/element/view/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ A view is a defined way to view the image, like a zoom level or a detail view.
- {{SVGAttr("viewBox")}}
- {{SVGAttr("preserveAspectRatio")}}
- {{SVGAttr("zoomAndPan")}} {{Deprecated_Inline}} {{Non-standard_Inline}}
- {{SVGAttr("viewTarget")}} {{Deprecated_Inline}}

## Example

Expand Down
3 changes: 1 addition & 2 deletions files/jsondata/SVGData.json
Original file line number Diff line number Diff line change
Expand Up @@ -1741,8 +1741,7 @@
"'externalResourcesRequired'",
"'viewBox'",
"'preserveAspectRatio'",
"'zoomAndPan'",
"'viewTarget'"
"'zoomAndPan'"
],
"interfaces": ["SVGViewElement"]
},
Expand Down