Correspond to the basic data type.

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

Properties

SVG_LENGTHTYPE_CM: number
SVG_LENGTHTYPE_EMS: number
SVG_LENGTHTYPE_EXS: number
SVG_LENGTHTYPE_IN: number
SVG_LENGTHTYPE_MM: number
SVG_LENGTHTYPE_NUMBER: number
SVG_LENGTHTYPE_PC: number
SVG_LENGTHTYPE_PERCENTAGE: number
SVG_LENGTHTYPE_PT: number
SVG_LENGTHTYPE_PX: number
SVG_LENGTHTYPE_UNKNOWN: number
unitType: number
value: number
valueAsString: string
valueInSpecifiedUnits: number

Methods

  • Parameters

    • unitType: number

    Returns void

  • Parameters

    • unitType: number
    • valueInSpecifiedUnits: number

    Returns void