psychart
Version:
View air conditions on a psychrometric chart
77 lines (76 loc) • 1.28 kB
TypeScript
/**
* An (x,y) cartesian coordinate pair.
*/
export interface Point {
/**
* The x-coordinate (horizontal)
*/
readonly x: number;
/**
* The y-coordinate (vertical)
*/
readonly y: number;
}
/**
* Represents a set of options for this chart.
*/
export interface ChartOptions {
/**
* The outer size of this chart, in pixels.
*/
readonly size: Point;
/**
* The font used in this chart.
*/
readonly font: {
/**
* The name of the font family.
*/
readonly name: string;
/**
* The size of the font, in pixels.
*/
readonly size: number;
};
}
/**
* Defines where the anchor is on a `<text>` element.
*/
export declare const enum TextAnchor {
/**
* Centered
*/
C = 0,
/**
* Northwest (upper-left)
*/
NW = 1,
/**
* North (upper-centered)
*/
N = 2,
/**
* Northeast (upper-right)
*/
NE = 3,
/**
* East (right-centered)
*/
E = 4,
/**
* Southeast (lower-right)
*/
SE = 5,
/**
* South (lower-centered)
*/
S = 6,
/**
* Southwest (lower-left)
*/
SW = 7,
/**
* West (left-centered)
*/
W = 8
}