@byjohann/ui
Advanced tools
Comparing version 0.7.1 to 0.7.2
import type { InjectionKey, ShallowRef } from "vue"; | ||
import type { Event, Map, MapEvent } from "mapbox-gl"; | ||
type Listener = (arg1: any) => void; | ||
import type { Map } from "mapbox-gl"; | ||
export type MapboxImage = HTMLImageElement | ImageBitmap | ImageData | { | ||
@@ -17,13 +16,3 @@ width: number; | ||
} | ||
export declare class Evented { | ||
on(type: MapEvent, listener: Listener): this; | ||
off(type: MapEvent, listener: Listener): this; | ||
once(type: MapEvent): Promise<Event>; | ||
once(type: MapEvent, listener: Listener): this; | ||
fire(event: Event | string, properties?: object): this; | ||
listens(type: string): boolean; | ||
setEventedParent(parent?: Evented, data?: unknown | (() => unknown)): this; | ||
} | ||
export declare const mapCtxKey: InjectionKey<ShallowRef<Map | undefined>>; | ||
export declare function getClusterIndex(): number; | ||
export {}; |
import type { Ref } from "vue"; | ||
import type { Evented } from "../components/context"; | ||
import type { Marker, Map as _Map } from "mapbox-gl"; | ||
/** | ||
* Map a Mapbox element's events to a Vue component | ||
*/ | ||
export declare function useEventsBinding<T extends Evented>( | ||
/** The emit function for the current component */ | ||
emitFn: (event: string, ...args: any[]) => void, | ||
export declare function useEventsBinding<T extends _Map | Marker>( | ||
/** The element bound to the component */ | ||
element: Ref<T | undefined>, | ||
/** The events to map */ | ||
events?: string[], | ||
/** The layer on which the events are delegated */ | ||
layerId?: string): void; | ||
element: Ref<T | undefined>, { emit, events, layerId, }: { | ||
/** The emit function for the current component */ | ||
emit: (event: string, ...args: any[]) => void; | ||
/** The events to map */ | ||
events?: string[]; | ||
/** The layer on which the events are delegated */ | ||
layerId?: string; | ||
}): void; |
import type { Ref } from "vue"; | ||
import type { Evented } from "../components/context"; | ||
import type { Marker, Map as _Map } from "mapbox-gl"; | ||
/** | ||
* Map a Mapbox element's events to the given Vue element | ||
*/ | ||
export declare function usePropsBinding<T extends Evented>(props: Record<string, unknown>, element: Ref<T | undefined>): void; | ||
export declare function usePropsBinding<T extends _Map | Marker>(props: Record<string, unknown>, element: Ref<T | undefined>): void; |
{ | ||
"name": "@byjohann/ui", | ||
"type": "module", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"packageManager": "pnpm@9.5.0", | ||
@@ -6,0 +6,0 @@ "description": "A collection of Vue.js components for my projects", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63953
486