@radiofrance/svelte-leaflet 0.1.0-alpha.15 → 0.1.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Polygon.svelte.d.ts +3 -2
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/Polygon.svelte.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type { Polygon as LeafletPolygon, PolylineOptions
|
|
2
|
+
import type { Polygon as LeafletPolygon, PolylineOptions } from 'leaflet';
|
|
3
|
+
import { type Latlngs } from './index.js';
|
|
3
4
|
declare const __propDef: {
|
|
4
5
|
props: {
|
|
5
|
-
latlngs:
|
|
6
|
+
latlngs: Latlngs;
|
|
6
7
|
options?: PolylineOptions | undefined;
|
|
7
8
|
instance?: LeafletPolygon | undefined;
|
|
8
9
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ControlPosition, DragEndEvent, ErrorEvent, Evented, LayerEvent, LayersControlEvent, LeafletEvent, LeafletKeyboardEvent, LeafletMouseEvent, LocateOptions, LocationEvent, PopupEvent, ResizeEvent, TooltipEvent } from 'leaflet';
|
|
1
|
+
import type { ControlPosition, DragEndEvent, ErrorEvent, Evented, LatLngExpression, LayerEvent, LayersControlEvent, LeafletEvent, LeafletKeyboardEvent, LeafletMouseEvent, LocateOptions, LocationEvent, PopupEvent, ResizeEvent, TooltipEvent } from 'leaflet';
|
|
2
2
|
import type { EventDispatcher } from 'svelte';
|
|
3
3
|
export { default as Map } from './Map.svelte';
|
|
4
4
|
export { default as Marker } from './Marker.svelte';
|
|
@@ -9,6 +9,7 @@ export { default as Circle } from './Circle.svelte';
|
|
|
9
9
|
export { default as Polygon } from './Polygon.svelte';
|
|
10
10
|
export type { Marker as LeafletMarker } from './Marker.svelte';
|
|
11
11
|
export type { Circle as LeafletCircle, CircleOptions, DragEndEvent, ErrorEvent, LatLngExpression, LatLngLiteral, LatLngTuple, LayerEvent, LayersControlEvent, LeafletEvent, LeafletKeyboardEvent, LeafletMouseEvent, LocationEvent, Map as LeafletMap, MapOptions, MarkerOptions, PathOptions, PopupEvent, PopupOptions, ResizeEvent, TooltipEvent } from 'leaflet';
|
|
12
|
+
export type Latlngs = LatLngExpression[] | LatLngExpression[][] | LatLngExpression[][][];
|
|
12
13
|
export declare function bindEvents(instance: Evented, dispatch: EventDispatcher<Record<string, unknown>>, events: readonly string[]): void;
|
|
13
14
|
export declare const interactiveLayerEvents: readonly ["click", "dblclick", "mousedown", "mouseup", "mouseover", "mouseout", "contextmenu"];
|
|
14
15
|
export declare const keyboardEvents: readonly ["keypress", "keydown", "keyup"];
|