All files / src/render/dom/value-types animatable-none.ts

100% Statements 7/7
66.67% Branches 4/6
100% Functions 1/1
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 1043x 43x   43x 13x 13x   13x    
import { complex, filter } from "style-value-types"
import { getDefaultValueType } from "./defaults"
 
export function getAnimatableNone(key: string, value: string) {
    let defaultValueType = getDefaultValueType(key)
    Eif (defaultValueType !== filter) defaultValueType = complex
    // If value is not recognised as animatable, ie "none", create an animatable version origin based on the target
    return defaultValueType.getAnimatableNone?.(value)
}