Property CurrentView
- Namespace
- SharpVectors.Dom.Svg
- Assembly
- SharpVectors.Core.dll
CurrentView
The definition of the initial view (i.e., before magnification and panning) of the current innermost SVG document fragment.
ISvgViewSpec CurrentView { get; }
Property Value
Remarks
The meaning depends on the situation:
-
If the initial view was a "standard" view, then:
- the values for viewBox, preserveAspectRatio and zoomAndPan within currentView will match the values for the corresponding DOM attributes that are on SVGSVGElement directly
- the values for transform and viewTarget within currentView will be null
-
If the initial view was a link into a 'view' element, then:
- the values for viewBox, preserveAspectRatio and zoomAndPan within currentView will correspond to the corresponding attributes for the given 'view' element
- the values for transform and viewTarget within currentView will be null
-
If the initial view was a link into another element (i.e., other
than a 'view'), then:
- the values for viewBox, preserveAspectRatio and zoomAndPan within currentView will match the values for the corresponding DOM attributes that are on SVGSVGElement directly for the closest ancestor 'svg' element
- the values for transform within currentView will be null
- the viewTarget within 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 viewBox, preserveAspectRatio, zoomAndPan, transform and viewTarget within currentView will correspond to the values from the SVG view specification fragment identifier