UNPKG

vue3-openlayers

Version:
97 lines (95 loc) 5.06 kB
import { default as AnimatedCluster } from 'ol-ext/layer/AnimatedCluster'; import { Options } from 'ol/layer/Vector'; import { default as VectorSource, VectorSourceEvent } from 'ol/source/Vector'; import { LayerSwitcherOptions, KeysMatching } from '../../types'; import { DefineComponent, ShallowRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue'; import { Map, Feature } from 'ol'; import { default as __DTS_DEFAULT_0__ } from 'ol/events/Event'; import { ObjectEvent } from 'ol/Object'; import { default as __DTS_DEFAULT_1__ } from 'ol/render/Event'; import { Geometry } from 'ol/geom'; interface ClusterOptions extends Options<VectorSource> { animationDuration?: number; easingFunction?: (t: number) => number; animationMethod?: (t: number) => number; } type Props = { distance?: number; } & ClusterOptions & LayerSwitcherOptions; declare function __VLS_template(): { default?(_: {}): any; }; declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, Omit<Props, KeysMatching<Props, object>>>, { vectorLayer: ShallowRef<AnimatedCluster>; map: Map | undefined; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { sourceready: (event: __DTS_DEFAULT_0__) => void; change: (event: __DTS_DEFAULT_0__) => void; error: (event: __DTS_DEFAULT_0__) => void; propertychange: (event: ObjectEvent) => void; "change:extent": (event: ObjectEvent) => void; "change:maxResolution": (event: ObjectEvent) => void; "change:maxZoom": (event: ObjectEvent) => void; "change:minResolution": (event: ObjectEvent) => void; "change:minZoom": (event: ObjectEvent) => void; "change:opacity": (event: ObjectEvent) => void; "change:source": (event: ObjectEvent) => void; "change:visible": (event: ObjectEvent) => void; "change:zIndex": (event: ObjectEvent) => void; postrender: (event: __DTS_DEFAULT_1__) => void; prerender: (event: __DTS_DEFAULT_1__) => void; 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; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, Omit<Props, KeysMatching<Props, object>>>>> & { 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; "onChange:extent"?: ((event: ObjectEvent) => any) | undefined; "onChange:maxResolution"?: ((event: ObjectEvent) => any) | undefined; "onChange:maxZoom"?: ((event: ObjectEvent) => any) | undefined; "onChange:minResolution"?: ((event: ObjectEvent) => any) | undefined; "onChange:minZoom"?: ((event: ObjectEvent) => any) | undefined; "onChange:opacity"?: ((event: ObjectEvent) => any) | undefined; "onChange:source"?: ((event: ObjectEvent) => any) | undefined; "onChange:visible"?: ((event: ObjectEvent) => any) | undefined; "onChange:zIndex"?: ((event: ObjectEvent) => any) | undefined; onPostrender?: ((event: __DTS_DEFAULT_1__) => any) | undefined; onPrerender?: ((event: __DTS_DEFAULT_1__) => any) | undefined; onSourceready?: ((event: __DTS_DEFAULT_0__) => 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; }, {}, {}>; 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; }; };