Skip to content

Commit

Permalink
fix: const enums (#2651)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh authored Aug 16, 2021
1 parent 0b1f0a7 commit eeda86b
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/css/property-descriptors/background-clip.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {CSSValue, isIdentToken} from '../syntax/parser';
import {Context} from '../../core/context';
export enum BACKGROUND_CLIP {
export const enum BACKGROUND_CLIP {
BORDER_BOX = 0,
PADDING_BOX = 1,
CONTENT_BOX = 2
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/background-repeat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {CSSValue, isIdentToken, parseFunctionArgs} from '../syntax/parser';
import {Context} from '../../core/context';
export type BackgroundRepeat = BACKGROUND_REPEAT[];

export enum BACKGROUND_REPEAT {
export const enum BACKGROUND_REPEAT {
REPEAT = 0,
NO_REPEAT = 1,
REPEAT_X = 2,
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/border-style.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context';
export enum BORDER_STYLE {
export const enum BORDER_STYLE {
NONE = 0,
SOLID = 1,
DASHED = 2,
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/float.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context';
export enum FLOAT {
export const enum FLOAT {
NONE = 0,
LEFT = 1,
RIGHT = 2,
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/font-style.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context';
export enum FONT_STYLE {
export const enum FONT_STYLE {
NORMAL = 'normal',
ITALIC = 'italic',
OBLIQUE = 'oblique'
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/list-style-position.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context';
export enum LIST_STYLE_POSITION {
export const enum LIST_STYLE_POSITION {
INSIDE = 0,
OUTSIDE = 1
}
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/list-style-type.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context';
export enum LIST_STYLE_TYPE {
export const enum LIST_STYLE_TYPE {
NONE = -1,
DISC = 0,
CIRCLE = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/overflow.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {CSSValue, isIdentToken} from '../syntax/parser';
import {Context} from '../../core/context';
export enum OVERFLOW {
export const enum OVERFLOW {
VISIBLE = 0,
HIDDEN = 1,
SCROLL = 2,
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/paint-order.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {CSSValue, isIdentToken} from '../syntax/parser';
import {Context} from '../../core/context';
export enum PAINT_ORDER_LAYER {
export const enum PAINT_ORDER_LAYER {
FILL,
STROKE,
MARKERS
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/position.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context';
export enum POSITION {
export const enum POSITION {
STATIC = 0,
RELATIVE = 1,
ABSOLUTE = 2,
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/text-align.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context';
export enum TEXT_ALIGN {
export const enum TEXT_ALIGN {
LEFT = 0,
CENTER = 1,
RIGHT = 2
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/text-transform.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context';
export enum TEXT_TRANSFORM {
export const enum TEXT_TRANSFORM {
NONE = 0,
LOWERCASE = 1,
UPPERCASE = 2,
Expand Down
2 changes: 1 addition & 1 deletion src/css/property-descriptors/visibility.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context';
export enum VISIBILITY {
export const enum VISIBILITY {
VISIBLE = 0,
HIDDEN = 1,
COLLAPSE = 2
Expand Down
6 changes: 3 additions & 3 deletions src/css/types/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {radialGradient} from './functions/radial-gradient';
import {prefixRadialGradient} from './functions/-prefix-radial-gradient';
import {Context} from '../../core/context';

export enum CSSImageType {
export const enum CSSImageType {
URL,
LINEAR_GRADIENT,
RADIAL_GRADIENT
Expand Down Expand Up @@ -56,12 +56,12 @@ export interface CSSLinearGradientImage extends ICSSGradientImage {
type: CSSImageType.LINEAR_GRADIENT;
}

export enum CSSRadialShape {
export const enum CSSRadialShape {
CIRCLE,
ELLIPSE
}

export enum CSSRadialExtent {
export const enum CSSRadialExtent {
CLOSEST_SIDE,
FARTHEST_SIDE,
CLOSEST_CORNER,
Expand Down
2 changes: 1 addition & 1 deletion src/render/path.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {BezierCurve} from './bezier-curve';
import {Vector} from './vector';
export enum PathType {
export const enum PathType {
VECTOR = 0,
BEZIER_CURVE = 1
}
Expand Down

0 comments on commit eeda86b

Please sign in to comment.