@JsType(isNative=true, name="SVGLength", namespace="<global>") public class SVGLength extends Object
Modifier and Type | Field and Description |
---|---|
static int |
SVG_LENGTHTYPE_CM |
static int |
SVG_LENGTHTYPE_EMS |
static int |
SVG_LENGTHTYPE_EXS |
static int |
SVG_LENGTHTYPE_IN |
static int |
SVG_LENGTHTYPE_MM |
static int |
SVG_LENGTHTYPE_NUMBER |
static int |
SVG_LENGTHTYPE_PC |
static int |
SVG_LENGTHTYPE_PERCENTAGE |
static int |
SVG_LENGTHTYPE_PT |
static int |
SVG_LENGTHTYPE_PX |
static int |
SVG_LENGTHTYPE_UNKNOWN |
Constructor and Description |
---|
SVGLength() |
Modifier and Type | Method and Description |
---|---|
void |
convertToSpecifiedUnits(int unitType) |
int |
getUnitType() |
double |
getValue() |
double |
getValueAsString() |
void |
getValueAsString(double valueAsString) |
double |
getValueInSpecifiedUnits() |
void |
newValueSpecifiedUnits(int unitType,
double valueInSpecifiedUnits) |
void |
setValue(double value) |
void |
setValueInSpecifiedUnits(double valueInSpecifiedUnits) |
@JsOverlay public static final int SVG_LENGTHTYPE_UNKNOWN
@JsOverlay public static final int SVG_LENGTHTYPE_NUMBER
@JsOverlay public static final int SVG_LENGTHTYPE_PERCENTAGE
@JsOverlay public static final int SVG_LENGTHTYPE_EMS
@JsOverlay public static final int SVG_LENGTHTYPE_EXS
@JsOverlay public static final int SVG_LENGTHTYPE_PX
@JsOverlay public static final int SVG_LENGTHTYPE_CM
@JsOverlay public static final int SVG_LENGTHTYPE_MM
@JsOverlay public static final int SVG_LENGTHTYPE_IN
@JsOverlay public static final int SVG_LENGTHTYPE_PT
@JsOverlay public static final int SVG_LENGTHTYPE_PC
@JsProperty(name="unitType") public int getUnitType()
@JsProperty(name="value") public double getValue()
@JsProperty(name="value") public void setValue(double value)
@JsProperty(name="valueInSpecifiedUnits") public double getValueInSpecifiedUnits()
@JsProperty(name="valueInSpecifiedUnits") public void setValueInSpecifiedUnits(double valueInSpecifiedUnits)
@JsProperty(name="valueAsString") public double getValueAsString()
@JsProperty(name="valueAsString") public void getValueAsString(double valueAsString)
public void newValueSpecifiedUnits(int unitType, double valueInSpecifiedUnits)
public void convertToSpecifiedUnits(int unitType)
Copyright © 2018 Xalys. All rights reserved.