Creates a Unit instance with the specified value and UnitType.Pixel.
Namespace: MindFusion.Mapping
Package: Unit.js
JavaScript Copy Code |
---|
function pixel (value) |
Number. The value of the unit.
Unit. The new Unit.
The following code creates a new Unit with value of 100 pixels:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var unit = m.Unit.pixel(100); |