Use const enums (to inline their values in JS)

This commit is contained in:
Alex Dima
2018-09-06 20:39:01 +02:00
parent bdaedb0238
commit c36258d23f
76 changed files with 130 additions and 125 deletions

View File

@@ -16,11 +16,11 @@ export interface IAnchor {
height?: number;
}
export enum AnchorAlignment {
export const enum AnchorAlignment {
LEFT, RIGHT
}
export enum AnchorPosition {
export const enum AnchorPosition {
BELOW, ABOVE
}
@@ -53,7 +53,7 @@ export interface ISize {
export interface IView extends IPosition, ISize { }
export enum LayoutAnchorPosition {
export const enum LayoutAnchorPosition {
Before,
After
}