fix: const enums (#2651)

This commit is contained in:
Niklas von Hertzen 2021-08-16 19:30:33 +08:00 committed by GitHub
parent 0b1f0a7e90
commit eeda86bd5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 17 additions and 17 deletions

View File

@ -1,7 +1,7 @@
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {CSSValue, isIdentToken} from '../syntax/parser'; import {CSSValue, isIdentToken} from '../syntax/parser';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum BACKGROUND_CLIP { export const enum BACKGROUND_CLIP {
BORDER_BOX = 0, BORDER_BOX = 0,
PADDING_BOX = 1, PADDING_BOX = 1,
CONTENT_BOX = 2 CONTENT_BOX = 2

View File

@ -3,7 +3,7 @@ import {CSSValue, isIdentToken, parseFunctionArgs} from '../syntax/parser';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export type BackgroundRepeat = BACKGROUND_REPEAT[]; export type BackgroundRepeat = BACKGROUND_REPEAT[];
export enum BACKGROUND_REPEAT { export const enum BACKGROUND_REPEAT {
REPEAT = 0, REPEAT = 0,
NO_REPEAT = 1, NO_REPEAT = 1,
REPEAT_X = 2, REPEAT_X = 2,

View File

@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum BORDER_STYLE { export const enum BORDER_STYLE {
NONE = 0, NONE = 0,
SOLID = 1, SOLID = 1,
DASHED = 2, DASHED = 2,

View File

@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum FLOAT { export const enum FLOAT {
NONE = 0, NONE = 0,
LEFT = 1, LEFT = 1,
RIGHT = 2, RIGHT = 2,

View File

@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum FONT_STYLE { export const enum FONT_STYLE {
NORMAL = 'normal', NORMAL = 'normal',
ITALIC = 'italic', ITALIC = 'italic',
OBLIQUE = 'oblique' OBLIQUE = 'oblique'

View File

@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum LIST_STYLE_POSITION { export const enum LIST_STYLE_POSITION {
INSIDE = 0, INSIDE = 0,
OUTSIDE = 1 OUTSIDE = 1
} }

View File

@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum LIST_STYLE_TYPE { export const enum LIST_STYLE_TYPE {
NONE = -1, NONE = -1,
DISC = 0, DISC = 0,
CIRCLE = 1, CIRCLE = 1,

View File

@ -1,7 +1,7 @@
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {CSSValue, isIdentToken} from '../syntax/parser'; import {CSSValue, isIdentToken} from '../syntax/parser';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum OVERFLOW { export const enum OVERFLOW {
VISIBLE = 0, VISIBLE = 0,
HIDDEN = 1, HIDDEN = 1,
SCROLL = 2, SCROLL = 2,

View File

@ -1,7 +1,7 @@
import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyListDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {CSSValue, isIdentToken} from '../syntax/parser'; import {CSSValue, isIdentToken} from '../syntax/parser';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum PAINT_ORDER_LAYER { export const enum PAINT_ORDER_LAYER {
FILL, FILL,
STROKE, STROKE,
MARKERS MARKERS

View File

@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum POSITION { export const enum POSITION {
STATIC = 0, STATIC = 0,
RELATIVE = 1, RELATIVE = 1,
ABSOLUTE = 2, ABSOLUTE = 2,

View File

@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum TEXT_ALIGN { export const enum TEXT_ALIGN {
LEFT = 0, LEFT = 0,
CENTER = 1, CENTER = 1,
RIGHT = 2 RIGHT = 2

View File

@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum TEXT_TRANSFORM { export const enum TEXT_TRANSFORM {
NONE = 0, NONE = 0,
LOWERCASE = 1, LOWERCASE = 1,
UPPERCASE = 2, UPPERCASE = 2,

View File

@ -1,6 +1,6 @@
import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor'; import {IPropertyIdentValueDescriptor, PropertyDescriptorParsingType} from '../IPropertyDescriptor';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum VISIBILITY { export const enum VISIBILITY {
VISIBLE = 0, VISIBLE = 0,
HIDDEN = 1, HIDDEN = 1,
COLLAPSE = 2 COLLAPSE = 2

View File

@ -10,7 +10,7 @@ import {radialGradient} from './functions/radial-gradient';
import {prefixRadialGradient} from './functions/-prefix-radial-gradient'; import {prefixRadialGradient} from './functions/-prefix-radial-gradient';
import {Context} from '../../core/context'; import {Context} from '../../core/context';
export enum CSSImageType { export const enum CSSImageType {
URL, URL,
LINEAR_GRADIENT, LINEAR_GRADIENT,
RADIAL_GRADIENT RADIAL_GRADIENT
@ -56,12 +56,12 @@ export interface CSSLinearGradientImage extends ICSSGradientImage {
type: CSSImageType.LINEAR_GRADIENT; type: CSSImageType.LINEAR_GRADIENT;
} }
export enum CSSRadialShape { export const enum CSSRadialShape {
CIRCLE, CIRCLE,
ELLIPSE ELLIPSE
} }
export enum CSSRadialExtent { export const enum CSSRadialExtent {
CLOSEST_SIDE, CLOSEST_SIDE,
FARTHEST_SIDE, FARTHEST_SIDE,
CLOSEST_CORNER, CLOSEST_CORNER,

View File

@ -1,6 +1,6 @@
import {BezierCurve} from './bezier-curve'; import {BezierCurve} from './bezier-curve';
import {Vector} from './vector'; import {Vector} from './vector';
export enum PathType { export const enum PathType {
VECTOR = 0, VECTOR = 0,
BEZIER_CURVE = 1 BEZIER_CURVE = 1
} }