@tileflow/interactions 0.1.0-alpha.0 → 0.1.0-alpha.1

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.
@@ -100,19 +100,6 @@ type TileflowMapLibreDomCustomRenderers = Readonly<{
100
100
  popup: boolean;
101
101
  tooltip: boolean;
102
102
  }>;
103
- type TileflowLegacyMarker = Readonly<{
104
- color?: string;
105
- coordinates: readonly [longitude: number, latitude: number];
106
- id: string;
107
- label?: string;
108
- }>;
109
- type TileflowNormalizedLegacyMarkers = Readonly<{
110
- annotations: readonly TileflowAnnotation[];
111
- /** Exact legacy element titles, including an explicitly empty label. */
112
- titles: ReadonlyMap<string, string>;
113
- }>;
114
- /** Normalizes the deprecated plural-coordinate marker shape once for all framework adapters. */
115
- declare function normalizeTileflowLegacyMarkers(markers: readonly TileflowLegacyMarker[]): TileflowNormalizedLegacyMarkers;
116
103
  type TileflowMapLibreDomRuntimeOptions<TMap, TMarker extends TileflowMapLibrePositioned<TMap>, TOverlay extends TileflowMapLibrePositioned<TMap>, TAnnotation extends TileflowAnnotation = TileflowAnnotation> = Readonly<{
117
104
  createMarker: (input: TileflowMapLibreDomMarkerFactoryInput<TAnnotation>) => TMarker;
118
105
  createOverlay: (input: TileflowMapLibreDomOverlayFactoryInput<TAnnotation>) => TOverlay;
@@ -295,4 +282,4 @@ type TileflowMapLibreSemanticDomRuntime = Readonly<{
295
282
  */
296
283
  declare function createTileflowMapLibreSemanticDomRuntime<TMap, TOverlay extends TileflowMapLibrePositioned<TMap>>(options: TileflowMapLibreSemanticDomRuntimeOptions<TMap, TOverlay>): TileflowMapLibreSemanticDomRuntime;
297
284
 
298
- export { type TileflowAnnotationRegistry, type TileflowAnnotationRegistryAdapter, type TileflowAnnotationRegistryEntry, type TileflowLegacyMarker, type TileflowMapLibreDomCustomRenderers, type TileflowMapLibreDomDiagnosticListener, type TileflowMapLibreDomDocument, type TileflowMapLibreDomInteractionStateListener, type TileflowMapLibreDomMarkerFactoryInput, type TileflowMapLibreDomOverlayFactoryInput, type TileflowMapLibreDomOverlayKind, type TileflowMapLibreDomRenderTarget, type TileflowMapLibreDomRenderTargetKind, type TileflowMapLibreDomRenderTargetListener, type TileflowMapLibreDomRuntime, type TileflowMapLibreDomRuntimeOptions, type TileflowMapLibreDomStateChangeReason, type TileflowMapLibreInteractionCoordinator, type TileflowMapLibreInteractionCoordinatorOptions, type TileflowMapLibreInteractionParticipant, type TileflowMapLibreInteractionParticipantKind, type TileflowMapLibrePoiController, type TileflowMapLibrePoiControllerOptions, type TileflowMapLibrePoiFeature, type TileflowMapLibrePoiMap, type TileflowMapLibrePoiMatch, type TileflowMapLibrePoiPointerEvent, type TileflowMapLibrePositioned, type TileflowMapLibreSemanticDomOverlayFactoryInput, type TileflowMapLibreSemanticDomRenderTarget, type TileflowMapLibreSemanticDomRuntime, type TileflowMapLibreSemanticDomRuntimeOptions, type TileflowNormalizedLegacyMarkers, type TileflowOverlayState, type TileflowOverlayStateChangeReason, type TileflowOverlayStateController, type TileflowOverlayStateListener, createTileflowAnnotationRegistry, createTileflowMapLibreDomRuntime, createTileflowMapLibreInteractionCoordinator, createTileflowMapLibrePoiController, createTileflowMapLibreSemanticDomRuntime, createTileflowOverlayStateController, normalizeTileflowLegacyMarkers };
285
+ export { type TileflowAnnotationRegistry, type TileflowAnnotationRegistryAdapter, type TileflowAnnotationRegistryEntry, type TileflowMapLibreDomCustomRenderers, type TileflowMapLibreDomDiagnosticListener, type TileflowMapLibreDomDocument, type TileflowMapLibreDomInteractionStateListener, type TileflowMapLibreDomMarkerFactoryInput, type TileflowMapLibreDomOverlayFactoryInput, type TileflowMapLibreDomOverlayKind, type TileflowMapLibreDomRenderTarget, type TileflowMapLibreDomRenderTargetKind, type TileflowMapLibreDomRenderTargetListener, type TileflowMapLibreDomRuntime, type TileflowMapLibreDomRuntimeOptions, type TileflowMapLibreDomStateChangeReason, type TileflowMapLibreInteractionCoordinator, type TileflowMapLibreInteractionCoordinatorOptions, type TileflowMapLibreInteractionParticipant, type TileflowMapLibreInteractionParticipantKind, type TileflowMapLibrePoiController, type TileflowMapLibrePoiControllerOptions, type TileflowMapLibrePoiFeature, type TileflowMapLibrePoiMap, type TileflowMapLibrePoiMatch, type TileflowMapLibrePoiPointerEvent, type TileflowMapLibrePositioned, type TileflowMapLibreSemanticDomOverlayFactoryInput, type TileflowMapLibreSemanticDomRenderTarget, type TileflowMapLibreSemanticDomRuntime, type TileflowMapLibreSemanticDomRuntimeOptions, type TileflowOverlayState, type TileflowOverlayStateChangeReason, type TileflowOverlayStateController, type TileflowOverlayStateListener, createTileflowAnnotationRegistry, createTileflowMapLibreDomRuntime, createTileflowMapLibreInteractionCoordinator, createTileflowMapLibrePoiController, createTileflowMapLibreSemanticDomRuntime, createTileflowOverlayStateController };
@@ -304,21 +304,6 @@ function notifyOverlayListeners(listeners, state, previous, reason) {
304
304
  }
305
305
 
306
306
  // src/maplibre-dom.ts
307
- function normalizeTileflowLegacyMarkers(markers) {
308
- const titles = /* @__PURE__ */ new Map();
309
- const annotations = markers.map((marker) => {
310
- const title = marker.label ?? marker.id;
311
- titles.set(marker.id, title);
312
- return {
313
- ariaLabel: title.trim().length > 0 ? title : marker.id,
314
- coordinate: marker.coordinates,
315
- id: marker.id,
316
- kind: "marker",
317
- ...marker.color === void 0 ? {} : { marker: { color: marker.color } }
318
- };
319
- });
320
- return Object.freeze({ annotations: Object.freeze(annotations), titles });
321
- }
322
307
  var runtimeSequence = 0;
323
308
  function createTileflowMapLibreDomRuntime(options) {
324
309
  const document = options.document;
@@ -2887,6 +2872,5 @@ export {
2887
2872
  createTileflowMapLibreInteractionCoordinator,
2888
2873
  createTileflowMapLibrePoiController,
2889
2874
  createTileflowMapLibreSemanticDomRuntime,
2890
- createTileflowOverlayStateController,
2891
- normalizeTileflowLegacyMarkers
2875
+ createTileflowOverlayStateController
2892
2876
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tileflow/interactions",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Portable annotation and interaction contracts for Tileflow maps.",
6
6
  "type": "module",