Scale
Stores the scale properties in a particular axis (-x or -y).
Constructor Summary
| Public Constructor | ||
| public |
constructor(px: number, mag: number, unit: string) |
|
Member Summary
| Public Members | ||
| public |
Magnitude of the scale. |
|
| public |
Number of pixels that one magnitude value is equivalent. |
|
| public |
Conversion factor from units to pixels. |
|
| public |
Conversion factor from pixels to units. |
|
| public |
Units of the scale. |
|
Method Summary
| Public Methods | ||
| public |
Sets the scale for the axis. |
|
Public Constructors
Public Members
public px: number source
Number of pixels that one magnitude value is equivalent. Default value is 0.
public toPx: number source
Conversion factor from units to pixels. Default value is 0.
Example:
var pixels = units * scale.toPixels;