blob: eea389a5336dc386e50fc8165deadd59c1228988 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
---
title: <view>
slug: Web/SVG/Element/view
translation_of: Web/SVG/Element/view
---
<div>{{SVGRef}}</div>
<p><view> ist ein definierter Weg, das Bild zu betrachten, wie eine Vergrößerungsstufe oder eine Detail-Ansicht.</p>
<h2 id="Gebrauchs-Kontext">Gebrauchs-Kontext</h2>
<p>{{svginfo}}</p>
<h2 id="Attribute">Attribute</h2>
<h3 id="Globale_Attribute">Globale Attribute</h3>
<ul>
<li><a href="/en-US/docs/Web/SVG/Attribute#Aria_attributes" title="en/SVG/Attribute#Core">Bereichattribute</a> »</li>
<li><a href="/en-US/docs/Web/SVG/Attribute#Core_attributes" title="en/SVG/Attribute#Core">Kernattribute</a> »</li>
<li><a href="/en-US/docs/Web/SVG/Attribute#Global_event_attributes" title="en/SVG/Attribute#Core">Globale Ereignisattribute</a> »</li>
<li>{{SVGAttr("externalResourcesRequired")}}</li>
</ul>
<h3 id="Spezifische_Attribute">Spezifische Attribute</h3>
<ul>
<li>{{SVGAttr("viewBox")}}</li>
<li>{{SVGAttr("preserveAspectRatio")}}</li>
<li>{{SVGAttr("zoomAndPan")}}</li>
<li>{{SVGAttr("viewTarget")}}</li>
</ul>
<h2 id="Beispiel">Beispiel</h2>
<h3 id="SVG">SVG</h3>
<pre class="brush: html"><svg width="600" height="200" viewBox="0 0 600 200"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<radialGradient id="gradient">
<stop offset="0%" stop-color="#8cffa0" />
<stop offset="100%" stop-color="#8ca0ff" />
</radialGradient>
</defs>
<circle r="50" cx="180" cy="50" style="fill:url(#gradient)"/>
<view id="halfSizeView" viewBox="0 0 1200 400"/>
<view id="normalSizeView" viewBox="0 0 600 200"/>
<view id="doubleSizeView" viewBox="0 0 300 100"/>
<a xlink:href="#halfSizeView">
<text x="5" y="20" font-size="20">half size</text>
</a>
<a xlink:href="#normalSizeView">
<text x="5" y="40" font-size="20">normal size</text>
</a>
<a xlink:href="#doubleSizeView">
<text x="5" y="60" font-size="20">double size</text>
</a>
</svg></pre>
<h3 id="Ergebnis">Ergebnis</h3>
<p>{{EmbedLiveSample("Example", 600, 200)}}</p>
<h2 id="DOM_Interface">DOM Interface</h2>
<p>This element implements the {{domxref("SVGViewElement")}} interface.</p>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('SVG2', 'linking.html#ViewElement', '<view>')}}</td>
<td>{{Spec2('SVG2')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('SVG1.1', 'linking.html#ViewElement', '<view>')}}</td>
<td>{{Spec2('SVG1.1')}}</td>
<td>Initial definition</td>
</tr>
</tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>Feature</th>
<th>Chrome</th>
<th>Edge</th>
<th>Firefox (Gecko)</th>
<th>Internet Explorer</th>
<th>Opera</th>
<th>Safari</th>
</tr>
<tr>
<td>Basic support</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatGeckoDesktop("15.0")}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatUnknown}}</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>Feature</th>
<th>Android</th>
<th>Edge</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Phone</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>Basic support</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatGeckoMobile("15.0")}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
</tr>
</tbody>
</table>
</div>
|