@@ -5,10 +5,10 @@ import Formatted from './types/formatted';
55import Padding from '../util/padding' ;
66import VariableAnchorOffsetCollection from '../util/variable_anchor_offset_collection' ;
77import ResolvedImage from './types/resolved_image' ;
8- import { NullType , NumberType , StringType , BooleanType , ColorType , ObjectType , ValueType , CollatorType , FormattedType , ResolvedImageType , array , PaddingType , VariableAnchorOffsetCollectionType , ProjectionTransition } from './types' ;
8+ import { NullType , NumberType , StringType , BooleanType , ColorType , ObjectType , ValueType , CollatorType , FormattedType , ResolvedImageType , array , PaddingType , VariableAnchorOffsetCollectionType , ProjectionTransitionType } from './types' ;
99
1010import type { Type } from './types' ;
11- import { Projection } from '../util/projection' ;
11+ import { ProjectionTransition } from '../util/projection' ;
1212
1313export function validateRGBA ( r : unknown , g : unknown , b : unknown , a ?: unknown ) : string | null {
1414 if ( ! (
@@ -29,7 +29,7 @@ export function validateRGBA(r: unknown, g: unknown, b: unknown, a?: unknown): s
2929 return null ;
3030}
3131
32- export type Value = null | string | boolean | number | Color | Projection | Collator | Formatted | Padding | ResolvedImage | VariableAnchorOffsetCollection | ReadonlyArray < Value > | {
32+ export type Value = null | string | boolean | number | Color | ProjectionTransition | Collator | Formatted | Padding | ResolvedImage | VariableAnchorOffsetCollection | ReadonlyArray < Value > | {
3333 readonly [ x : string ] : Value ;
3434} ;
3535
@@ -38,7 +38,7 @@ export function isValue(mixed: unknown): boolean {
3838 typeof mixed === 'string' ||
3939 typeof mixed === 'boolean' ||
4040 typeof mixed === 'number' ||
41- mixed instanceof Projection ||
41+ mixed instanceof ProjectionTransition ||
4242 mixed instanceof Color ||
4343 mixed instanceof Collator ||
4444 mixed instanceof Formatted ||
@@ -76,8 +76,8 @@ export function typeOf(value: Value): Type {
7676 return NumberType ;
7777 } else if ( value instanceof Color ) {
7878 return ColorType ;
79- } else if ( value instanceof Projection ) {
80- return ProjectionTransition ;
79+ } else if ( value instanceof ProjectionTransition ) {
80+ return ProjectionTransitionType ;
8181 } else if ( value instanceof Collator ) {
8282 return CollatorType ;
8383 } else if ( value instanceof Formatted ) {
@@ -116,11 +116,11 @@ export function toString(value: Value) {
116116 return '' ;
117117 } else if ( type === 'string' || type === 'number' || type === 'boolean' ) {
118118 return String ( value ) ;
119- } else if ( value instanceof Color || value instanceof Projection || value instanceof Formatted || value instanceof Padding || value instanceof VariableAnchorOffsetCollection || value instanceof ResolvedImage ) {
119+ } else if ( value instanceof Color || value instanceof ProjectionTransition || value instanceof Formatted || value instanceof Padding || value instanceof VariableAnchorOffsetCollection || value instanceof ResolvedImage ) {
120120 return value . toString ( ) ;
121121 } else {
122122 return JSON . stringify ( value ) ;
123123 }
124124}
125125
126- export { Color , Collator , Projection , Padding , VariableAnchorOffsetCollection } ;
126+ export { Color , Collator , ProjectionTransition as Projection , Padding , VariableAnchorOffsetCollection } ;
0 commit comments