MDN self-hosted library · e01.org

SVGNumber

SVG

no runnable cells web-api-interface upstream source

SVG

The SVGNumber interface corresponds to the <number> basic data type.

An SVGNumber object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.

Instance properties

  • SVGNumber.value
  • : A float representing the number.

    Note: If the SVGNumber is read-only, a DOMException with the code NO_MODIFICATION_ALLOWED_ERR is raised on an attempt to change the value.

Instance methods

This interface doesn't provide any specific methods.

Specifications

Browser compatibility