import { VScreenAnimationType } from "../types.js";
const EFFECT_NONE = VScreenAnimationType.none;
const toMs = (seconds)=>(seconds ?? 0) * 1000;
const getPrimaryEffect = (config)=>config?.effects?.[0] ?? EFFECT_NONE;
const allowAnimation = (config)=>{
    if (!config?.enable) return false;
    return getPrimaryEffect(config) !== EFFECT_NONE;
};
const allowLineOrAreaAnimation = (config)=>{
    if (!config?.enable) return false;
    const effects = config.effects ?? [];
    const effect = effects[effects.length - 1] ?? EFFECT_NONE;
    return effect !== EFFECT_NONE;
};
export { atmospherePoint, getFinalAttribute } from "./pointAtmosphere.js";
export { EFFECT_NONE, allowAnimation, allowLineOrAreaAnimation, getPrimaryEffect, toMs };

//# sourceMappingURL=index.js.map