Specifies a unit of measurement.
Namespace: MindFusion.Mapping
Package: Unit.js
JavaScript Copy Code |
---|
// enum |
Member name | Description | |
---|---|---|
Percent |
The measurement is a percentage relative to the parent element. |
|
Pixel |
The measurement is in pixels. |
The following code uses the UnitType enumeration to check the type of a Unit value:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var unit = new m.Unit(); if(unit.type == m.UnitType.Percent) |