vue3-openlayers
Version:
OpenLayers Wrapper for Vue3
22 lines (20 loc) • 753 B
TypeScript
import { FeatureAnimationOptions, FeatureAnimation } from '../components/animations/AnimationTypes';
import { ComputedRef } from 'vue';
type GenericFeatureAnimationOptions = Partial<Record<keyof FeatureAnimationOptions, unknown>>;
export default function useAnimation(AnimationType: new (props: Record<string, unknown>) => FeatureAnimation, props: GenericFeatureAnimationOptions): {
map: unknown;
vectorLayer: unknown;
animation: ComputedRef<FeatureAnimation>;
properties: {
repeat?: unknown;
speed?: unknown;
duration?: unknown;
side?: unknown;
revers?: unknown;
hiddenStyle?: unknown;
horizontal?: unknown;
fade?: unknown;
easing?: unknown;
};
};
export {};