Xinf API Reference
Back | Index
class xinf.ony.type.Length

An SVG-like Length value, a distance measurement.

This is currently mostly a stub, to allow for parsing length values with units. Conversion is not correct.

Proper documentation will follow here when it is properly implemented.

See also: SVG Length See also: SVG Units

var unitType :String (read-only)
var value :Float
var valueInSpecifiedUnits :Float
var DOMString :String
function new( ?s:String, ?v:Float ) :Void
function newValueSpecifiedUnits( unitType:String, i:Float ) :Void
function convertToSpecifiedUnits( newType:String, ?data:Float ) :Bool
function getUnitType( ) :String
function getValue( ) :Float
function setValue( v:Float ) :Float
function toString( ) :String
function getDOMString( ) :String
function setDOMString( s:String ) :String
static var TYPE_UNKNOWN :String
static var TYPE_NUMBER :String
static var TYPE_PERCENTAGE :String
static var TYPE_EMS :String
static var TYPE_EXS :String
static var TYPE_PX :String
static var TYPE_CM :String
static var TYPE_MM :String
static var TYPE_IN :String
static var TYPE_PT :String
static var TYPE_PC :String
Back | Index