File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11import { TRANSFORMERS } from '../constants'
22import { AcceptNumbericVars } from '../constants/arithmetic'
3+ import { condition } from './condition'
34import { effect } from './effect'
45import { formatValue } from './expression'
56import { flags } from './flags'
@@ -58,6 +59,8 @@ export const getTransformations = (options):string[] => {
5859 result . push ( effect ( options . effect ) )
5960 result . push ( flags ( options . flags ) )
6061 result . push ( rawTransformation ( options . rawTransformation ) )
62+ result . push ( condition ( options . condition ) )
63+
6164 return result . filter ( Boolean )
6265}
6366
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { Effect } from './transformation/Effect'
99import { ROTATION_MODES } from '../constants/rotation'
1010import { Gravity } from "./transformation/Gravity" ;
1111import { Variable } from "./transformation/Variable" ;
12+ import { Condition } from "./transformation" ;
1213
1314export type Radius = number | string
1415
@@ -58,7 +59,7 @@ export interface TransformerOption {
5859 format ?: string ,
5960 fetchFormat ?: string ,
6061 gravity ?: Gravity ,
61- if ?: string ,
62+ condition ?: Condition ,
6263 flags ?: Flag ,
6364 opacity ?: number | string ,
6465 overlay ?: string ,
You can’t perform that action at this time.
0 commit comments