flexlayout-react
Version:
A multi-tab docking layout manager
29 lines (23 loc) • 574 B
text/typescript
export class Orientation {
static HORZ = new Orientation("horz");
static VERT = new Orientation("vert");
static flip(from: Orientation) {
if (from === Orientation.HORZ) {
return Orientation.VERT;
} else {
return Orientation.HORZ;
}
}
/** @internal */
private _name: string;
/** @internal */
private constructor(name: string) {
this._name = name;
}
getName() {
return this._name;
}
toString() {
return this._name;
}
}