Table of Contents

Property CurrentView

Namespace
SharpVectors.Dom.Svg
Assembly
SharpVectors.Model.dll

CurrentView

The definition of 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: o the values for viewBox, preserveAspectRatio and zoomAndPan within currentView will match the values for the corresponding DOM attributes that are on SVGSVGElement directly o the values for transform and viewTarget within currentView will be null
  • If the initial view was a link into a 'view' element, then: o the values for viewBox, preserveAspectRatio and zoomAndPan within currentView will correspond to the corresponding attributes for the given 'view' element o 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: o 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 o the values for transform within currentView will be null o 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: o the values for viewBox, preserveAspectRatio, zoomAndPan, transform and viewTarget within currentView will correspond to the values from the SVG view specification fragment identifier The object itself and its contents are both readonly.
public ISvgViewSpec CurrentView { get; }

Property Value

ISvgViewSpec