UNPKG

vue3-openlayers

Version:
68 lines (66 loc) 3.28 kB
import { default as Cluster, Options } from 'ol/source/Cluster'; import { Ref, DefineComponent, ShallowRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue'; import { default as Feature, FeatureLike } from 'ol/Feature'; import { Geometry } from 'ol/geom'; import { VectorSourceEvent } from 'ol/source/Vector'; import { default as __DTS_DEFAULT_0__ } from 'ol/events/Event'; import { ObjectEvent } from 'ol/Object'; declare function __VLS_template(): { default?(_: {}): any; }; declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Options<Feature< Geometry>>>, { wrapX: boolean; }>, { layer: Ref<Cluster<Feature< Geometry>>, Cluster<Feature< Geometry>>> | null | undefined; source: ShallowRef<Cluster< FeatureLike>>; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { addfeature: (event: VectorSourceEvent<Feature< Geometry>>) => void; changefeature: (event: VectorSourceEvent<Feature< Geometry>>) => void; clear: (event: VectorSourceEvent<Feature< Geometry>>) => void; featuresloadend: (event: VectorSourceEvent<Feature< Geometry>>) => void; featuresloaderror: (event: VectorSourceEvent<Feature< Geometry>>) => void; featuresloadstart: (event: VectorSourceEvent<Feature< Geometry>>) => void; removefeature: (event: VectorSourceEvent<Feature< Geometry>>) => void; change: (event: __DTS_DEFAULT_0__) => void; error: (event: __DTS_DEFAULT_0__) => void; propertychange: (event: ObjectEvent) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Options<Feature< Geometry>>>, { wrapX: boolean; }>>> & { onChange?: ((event: __DTS_DEFAULT_0__) => any) | undefined; onError?: ((event: __DTS_DEFAULT_0__) => any) | undefined; onPropertychange?: ((event: ObjectEvent) => any) | undefined; onClear?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined; onAddfeature?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined; onChangefeature?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined; onFeaturesloadend?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined; onFeaturesloaderror?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined; onFeaturesloadstart?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined; onRemovefeature?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined; }, { wrapX: boolean; }, {}>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };