Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SVGLength

Correspond to the basic data type.

interface SVGLength {
readonly SVG_LENGTHTYPE_CM: number;
readonly SVG_LENGTHTYPE_EMS: number;
readonly SVG_LENGTHTYPE_EXS: number;
readonly SVG_LENGTHTYPE_IN: number;
readonly SVG_LENGTHTYPE_MM: number;
readonly SVG_LENGTHTYPE_NUMBER: number;
readonly SVG_LENGTHTYPE_PC: number;
readonly SVG_LENGTHTYPE_PERCENTAGE: number;
readonly SVG_LENGTHTYPE_PT: number;
readonly SVG_LENGTHTYPE_PX: number;
readonly SVG_LENGTHTYPE_UNKNOWN: number;
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
}
var SVGLength: {
prototype: SVGLength;
readonly SVG_LENGTHTYPE_CM: number;
readonly SVG_LENGTHTYPE_EMS: number;
readonly SVG_LENGTHTYPE_EXS: number;
readonly SVG_LENGTHTYPE_IN: number;
readonly SVG_LENGTHTYPE_MM: number;
readonly SVG_LENGTHTYPE_NUMBER: number;
readonly SVG_LENGTHTYPE_PC: number;
readonly SVG_LENGTHTYPE_PERCENTAGE: number;
readonly SVG_LENGTHTYPE_PT: number;
readonly SVG_LENGTHTYPE_PX: number;
readonly SVG_LENGTHTYPE_UNKNOWN: number;
new (): SVGLength;
}
;

§Properties

§
readonly SVG_LENGTHTYPE_CM: number
[src]
§
readonly SVG_LENGTHTYPE_EMS: number
[src]
§
readonly SVG_LENGTHTYPE_EXS: number
[src]
§
readonly SVG_LENGTHTYPE_IN: number
[src]
§
readonly SVG_LENGTHTYPE_MM: number
[src]
§
readonly SVG_LENGTHTYPE_NUMBER: number
[src]
§
readonly SVG_LENGTHTYPE_PC: number
[src]
§
readonly SVG_LENGTHTYPE_PERCENTAGE: number
[src]
§
readonly SVG_LENGTHTYPE_PT: number
[src]
§
readonly SVG_LENGTHTYPE_PX: number
[src]
§
readonly SVG_LENGTHTYPE_UNKNOWN: number
[src]
§
readonly unitType: number
[src]
§
value: number
[src]
§
valueAsString: string
[src]
§
valueInSpecifiedUnits: number
[src]

§Methods

§
convertToSpecifiedUnits(unitType: number): void
[src]
§
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void
[src]