UNPKG

@rsmap/vue3ol

Version:

使用 vue3 风格封装后的 Openlayer 地图组件库。

22 lines (20 loc) 753 B
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: { speed?: unknown; duration?: unknown; side?: unknown; revers?: unknown; repeat?: unknown; hiddenStyle?: unknown; horizontal?: unknown; fade?: unknown; easing?: unknown; }; }; export {};