SVGMarkerElement: markerHeight property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The markerHeight
read-only property of the SVGMarkerElement
interface returns an SVGAnimatedLength
object containing the height of the
viewport as defined by the markerHeight
attribute.
Value
An SVGAnimatedLength
object. The baseVal
property of this object returns an SVGLength
, the value of which returns the height
.
Examples
The markerHeight
property returns an SVGAnimatedLength
which contains an SVGLength
with the value of the markerHeight
attribute.
html
js
let marker = document.getElementById("arrow");
console.log(marker.markerHeight.baseVal.value); // 6
Specifications
Specification |
---|
Scalable Vector Graphics (SVG) 2 # __svg__SVGMarkerElement__markerHeight |