@emuanalytics/flow-rdf-core 0.0.17 → 0.0.18

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/index.cjs CHANGED
@@ -5,8 +5,8 @@ const Debug = require('debug');
5
5
  const flowEngineClient = require('@emuanalytics/flow-engine-client');
6
6
  const stringUtils = require('./shared/flow-rdf-core.3042be4a.cjs');
7
7
  const mapFeatureStream = require('./shared/flow-rdf-core.278a260a.cjs');
8
+ const maplibregl = require('@emuanalytics/maplibre-gl');
8
9
  const EventEmitter = require('eventemitter3');
9
- const maplibre = require('@emuanalytics/maplibre-gl');
10
10
  const mobxUtils = require('mobx-utils');
11
11
  const functional = require('./shared/flow-rdf-core.c44cf082.cjs');
12
12
  require('@emuanalytics/maplibre-gl-style-spec');
@@ -31,7 +31,6 @@ function _interopNamespaceCompat(e) {
31
31
  const mobx__namespace = /*#__PURE__*/_interopNamespaceCompat(mobx);
32
32
  const Debug__default = /*#__PURE__*/_interopDefaultCompat(Debug);
33
33
  const EventEmitter__default = /*#__PURE__*/_interopDefaultCompat(EventEmitter);
34
- const maplibre__namespace = /*#__PURE__*/_interopNamespaceCompat(maplibre);
35
34
 
36
35
  function deferred() {
37
36
  let methods;
@@ -2319,7 +2318,7 @@ const _FlowMap = class _FlowMap extends EventEmitter__default {
2319
2318
  };
2320
2319
  }
2321
2320
  setCenter(center, animationOptions) {
2322
- const lngLat = stringUtils.isDefined(center.lng) && stringUtils.isDefined(center.lat) ? new maplibre__namespace.LngLat(center.lng, center.lat) : void 0;
2321
+ const lngLat = stringUtils.isDefined(center.lng) && stringUtils.isDefined(center.lat) ? new maplibregl.LngLat(center.lng, center.lat) : void 0;
2323
2322
  let method = this.maplibreMap.jumpTo;
2324
2323
  if (animationOptions) {
2325
2324
  switch (animationOptions.mode) {
@@ -2496,7 +2495,7 @@ const _FlowMap = class _FlowMap extends EventEmitter__default {
2496
2495
  this._style.bindState(this._context.state);
2497
2496
  const baseStyle = await this.loadBaseStyle(this._options.baseStyle);
2498
2497
  this._style.setBaseStyle(baseStyle);
2499
- this.maplibreMap = new maplibre__namespace.Map({
2498
+ this.maplibreMap = new maplibregl.Map({
2500
2499
  ...this._options,
2501
2500
  transformRequest: this.transformMapRequest.bind(this),
2502
2501
  style: baseStyle
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
- import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.4d307911.cjs';
2
- export { D as DEFAULT_CONTEXT_ID, d as FlowEngineEndpoint, y as FlowMap, r as MapAnimationOptions, s as MapCenterOptions, o as MapDataSourceOptions, p as MapDataSourceSpecification, n as MapDataSourceType, t as MapFeature, u as MapFeatureIdentifier, q as MapGeojsonData, j as MapLayerExpression, i as MapLayerOptions, m as MapLayerPropertyMetadataIndex, k as MapLayerSpecification, f as MapLayerStyleBuilder, e as MapLayerType, x as MapOptions, v as MapPaddingOptions, w as MapSourceIdentifier, P as Path, G as PathValue, Q as Query, R as ReactiveExpression, I as StoreAnnotations, H as StoreConstructor, g as StyleExpression, h as expr, l as layerStyle, z as query, B as queryMany, C as queryOne, E as traceReaction } from './shared/flow-rdf-core.4d307911.cjs';
1
+ import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.b618ecc3.cjs';
2
+ export { D as DEFAULT_CONTEXT_ID, d as FlowEngineEndpoint, y as FlowMap, r as MapAnimationOptions, s as MapCenterOptions, o as MapDataSourceOptions, p as MapDataSourceSpecification, n as MapDataSourceType, t as MapFeature, u as MapFeatureIdentifier, q as MapGeojsonData, j as MapLayerExpression, i as MapLayerOptions, m as MapLayerPropertyMetadataIndex, k as MapLayerSpecification, f as MapLayerStyleBuilder, e as MapLayerType, x as MapOptions, v as MapPaddingOptions, w as MapSourceIdentifier, P as Path, G as PathValue, Q as Query, R as ReactiveExpression, I as StoreAnnotations, H as StoreConstructor, g as StyleExpression, h as expr, l as layerStyle, z as query, B as queryMany, C as queryOne, E as traceReaction } from './shared/flow-rdf-core.b618ecc3.cjs';
3
3
  export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
4
4
  import '@emuanalytics/flow-engine-client';
5
- import 'eventemitter3';
6
5
  import '@emuanalytics/maplibre-gl';
6
+ import 'eventemitter3';
7
7
 
8
8
  interface SyncAnnotation<T = any> extends Annotation {
9
9
  serialize(val: T): string;
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.4d307911.mjs';
2
- export { D as DEFAULT_CONTEXT_ID, d as FlowEngineEndpoint, y as FlowMap, r as MapAnimationOptions, s as MapCenterOptions, o as MapDataSourceOptions, p as MapDataSourceSpecification, n as MapDataSourceType, t as MapFeature, u as MapFeatureIdentifier, q as MapGeojsonData, j as MapLayerExpression, i as MapLayerOptions, m as MapLayerPropertyMetadataIndex, k as MapLayerSpecification, f as MapLayerStyleBuilder, e as MapLayerType, x as MapOptions, v as MapPaddingOptions, w as MapSourceIdentifier, P as Path, G as PathValue, Q as Query, R as ReactiveExpression, I as StoreAnnotations, H as StoreConstructor, g as StyleExpression, h as expr, l as layerStyle, z as query, B as queryMany, C as queryOne, E as traceReaction } from './shared/flow-rdf-core.4d307911.mjs';
1
+ import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.b618ecc3.mjs';
2
+ export { D as DEFAULT_CONTEXT_ID, d as FlowEngineEndpoint, y as FlowMap, r as MapAnimationOptions, s as MapCenterOptions, o as MapDataSourceOptions, p as MapDataSourceSpecification, n as MapDataSourceType, t as MapFeature, u as MapFeatureIdentifier, q as MapGeojsonData, j as MapLayerExpression, i as MapLayerOptions, m as MapLayerPropertyMetadataIndex, k as MapLayerSpecification, f as MapLayerStyleBuilder, e as MapLayerType, x as MapOptions, v as MapPaddingOptions, w as MapSourceIdentifier, P as Path, G as PathValue, Q as Query, R as ReactiveExpression, I as StoreAnnotations, H as StoreConstructor, g as StyleExpression, h as expr, l as layerStyle, z as query, B as queryMany, C as queryOne, E as traceReaction } from './shared/flow-rdf-core.b618ecc3.mjs';
3
3
  export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
4
4
  import '@emuanalytics/flow-engine-client';
5
- import 'eventemitter3';
6
5
  import '@emuanalytics/maplibre-gl';
6
+ import 'eventemitter3';
7
7
 
8
8
  interface SyncAnnotation<T = any> extends Annotation {
9
9
  serialize(val: T): string;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.4d307911.js';
2
- export { D as DEFAULT_CONTEXT_ID, d as FlowEngineEndpoint, y as FlowMap, r as MapAnimationOptions, s as MapCenterOptions, o as MapDataSourceOptions, p as MapDataSourceSpecification, n as MapDataSourceType, t as MapFeature, u as MapFeatureIdentifier, q as MapGeojsonData, j as MapLayerExpression, i as MapLayerOptions, m as MapLayerPropertyMetadataIndex, k as MapLayerSpecification, f as MapLayerStyleBuilder, e as MapLayerType, x as MapOptions, v as MapPaddingOptions, w as MapSourceIdentifier, P as Path, G as PathValue, Q as Query, R as ReactiveExpression, I as StoreAnnotations, H as StoreConstructor, g as StyleExpression, h as expr, l as layerStyle, z as query, B as queryMany, C as queryOne, E as traceReaction } from './shared/flow-rdf-core.4d307911.js';
1
+ import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.b618ecc3.js';
2
+ export { D as DEFAULT_CONTEXT_ID, d as FlowEngineEndpoint, y as FlowMap, r as MapAnimationOptions, s as MapCenterOptions, o as MapDataSourceOptions, p as MapDataSourceSpecification, n as MapDataSourceType, t as MapFeature, u as MapFeatureIdentifier, q as MapGeojsonData, j as MapLayerExpression, i as MapLayerOptions, m as MapLayerPropertyMetadataIndex, k as MapLayerSpecification, f as MapLayerStyleBuilder, e as MapLayerType, x as MapOptions, v as MapPaddingOptions, w as MapSourceIdentifier, P as Path, G as PathValue, Q as Query, R as ReactiveExpression, I as StoreAnnotations, H as StoreConstructor, g as StyleExpression, h as expr, l as layerStyle, z as query, B as queryMany, C as queryOne, E as traceReaction } from './shared/flow-rdf-core.b618ecc3.js';
3
3
  export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
4
4
  import '@emuanalytics/flow-engine-client';
5
- import 'eventemitter3';
6
5
  import '@emuanalytics/maplibre-gl';
6
+ import 'eventemitter3';
7
7
 
8
8
  interface SyncAnnotation<T = any> extends Annotation {
9
9
  serialize(val: T): string;
package/dist/index.mjs CHANGED
@@ -4,8 +4,8 @@ import Debug from 'debug';
4
4
  import { Client } from '@emuanalytics/flow-engine-client';
5
5
  import { i as isUndefined, f as isString, o as isNumber, s as isBoolean, j as isArray, b as isNil, d as isDefined, g as isStringFull, z as isURL, e as ensureArray } from './shared/flow-rdf-core.b80085b4.mjs';
6
6
  import { R as ReactiveExpression, F as FlowError, g as MapStyleChangeEvent, r as randomId, P as PluginManager, f as MapLayer, e as MapDataSource, h as MapSourceEvent, M as MapEvent, d as FlowMapError, c as MapFeatureStream, b as assert, i as MapLoadingEvent, a as MapMouseEvent, j as die } from './shared/flow-rdf-core.b4b16e78.mjs';
7
+ import { LngLat, Map as Map$1 } from '@emuanalytics/maplibre-gl';
7
8
  import EventEmitter from 'eventemitter3';
8
- import * as maplibre from '@emuanalytics/maplibre-gl';
9
9
  import { toStream } from 'mobx-utils';
10
10
  import { t as throttle, a as debounceWithArgs } from './shared/flow-rdf-core.2e456f93.mjs';
11
11
  import '@emuanalytics/maplibre-gl-style-spec';
@@ -2299,7 +2299,7 @@ const _FlowMap = class _FlowMap extends EventEmitter {
2299
2299
  };
2300
2300
  }
2301
2301
  setCenter(center, animationOptions) {
2302
- const lngLat = isDefined(center.lng) && isDefined(center.lat) ? new maplibre.LngLat(center.lng, center.lat) : void 0;
2302
+ const lngLat = isDefined(center.lng) && isDefined(center.lat) ? new LngLat(center.lng, center.lat) : void 0;
2303
2303
  let method = this.maplibreMap.jumpTo;
2304
2304
  if (animationOptions) {
2305
2305
  switch (animationOptions.mode) {
@@ -2476,7 +2476,7 @@ const _FlowMap = class _FlowMap extends EventEmitter {
2476
2476
  this._style.bindState(this._context.state);
2477
2477
  const baseStyle = await this.loadBaseStyle(this._options.baseStyle);
2478
2478
  this._style.setBaseStyle(baseStyle);
2479
- this.maplibreMap = new maplibre.Map({
2479
+ this.maplibreMap = new Map$1({
2480
2480
  ...this._options,
2481
2481
  transformRequest: this.transformMapRequest.bind(this),
2482
2482
  style: baseStyle
@@ -12,7 +12,7 @@ const featureTypeChecks = require('../../../shared/flow-rdf-core.84eded74.cjs');
12
12
  const EventEmitter = require('eventemitter3');
13
13
  const stringUtils = require('../../../shared/flow-rdf-core.3042be4a.cjs');
14
14
  const lit = require('lit-html');
15
- const maplibre = require('@emuanalytics/maplibre-gl');
15
+ const maplibregl = require('@emuanalytics/maplibre-gl');
16
16
  const turfCircle = require('@turf/circle');
17
17
  const turfDistance = require('@turf/distance');
18
18
  const helpers = require('@turf/helpers');
@@ -47,7 +47,7 @@ const turfLength__default = /*#__PURE__*/_interopDefaultCompat(turfLength);
47
47
  const Debug__default = /*#__PURE__*/_interopDefaultCompat(Debug);
48
48
  const EventEmitter__default = /*#__PURE__*/_interopDefaultCompat(EventEmitter);
49
49
  const lit__namespace = /*#__PURE__*/_interopNamespaceCompat(lit);
50
- const maplibre__default = /*#__PURE__*/_interopDefaultCompat(maplibre);
50
+ const maplibregl__default = /*#__PURE__*/_interopDefaultCompat(maplibregl);
51
51
  const turfCircle__default = /*#__PURE__*/_interopDefaultCompat(turfCircle);
52
52
  const turfDistance__default = /*#__PURE__*/_interopDefaultCompat(turfDistance);
53
53
 
@@ -171,7 +171,7 @@ class MapPopup extends EventEmitter__default {
171
171
  if (feature) {
172
172
  mapFeatureStream.assert(isFeatureWithId(feature), "MapPopup.open(): feature must have unique ID");
173
173
  }
174
- this._maplibrePopup = new maplibre__default.Popup({
174
+ this._maplibrePopup = new maplibregl__default.Popup({
175
175
  className: this.cssClasses().join(" "),
176
176
  closeButton: this.options.closeButton,
177
177
  closeOnClick: this.options.closeOnClick,
@@ -1,5 +1,5 @@
1
- import { J as MapEvent, y as FlowMap, w as MapSourceIdentifier, K as MapFeatureId, L as MapPluginBase, N as PluginManager, O as MapSourceEvent, T as MapMouseEvent, U as MapFeatureStream, V as PartialBy, r as MapAnimationOptions, W as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, u as MapFeatureIdentifier, t as MapFeature } from '../../../shared/flow-rdf-core.4d307911.cjs';
2
- export { _ as EventHandlers, Z as PluginConstructor, Y as PluginEventsType, X as PluginOptionsType } from '../../../shared/flow-rdf-core.4d307911.cjs';
1
+ import { J as MapEvent, y as FlowMap, w as MapSourceIdentifier, K as MapFeatureId, L as MapPluginBase, N as PluginManager, O as MapSourceEvent, T as MapMouseEvent, U as MapFeatureStream, V as PartialBy, r as MapAnimationOptions, W as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, u as MapFeatureIdentifier, t as MapFeature } from '../../../shared/flow-rdf-core.b618ecc3.cjs';
2
+ export { _ as EventHandlers, Z as PluginConstructor, Y as PluginEventsType, X as PluginOptionsType } from '../../../shared/flow-rdf-core.b618ecc3.cjs';
3
3
  import { F as Func } from '../../../shared/flow-rdf-core.08975378.cjs';
4
4
  import EventEmitter from 'eventemitter3';
5
5
  import * as lit from 'lit-html';
@@ -1,5 +1,5 @@
1
- import { J as MapEvent, y as FlowMap, w as MapSourceIdentifier, K as MapFeatureId, L as MapPluginBase, N as PluginManager, O as MapSourceEvent, T as MapMouseEvent, U as MapFeatureStream, V as PartialBy, r as MapAnimationOptions, W as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, u as MapFeatureIdentifier, t as MapFeature } from '../../../shared/flow-rdf-core.4d307911.mjs';
2
- export { _ as EventHandlers, Z as PluginConstructor, Y as PluginEventsType, X as PluginOptionsType } from '../../../shared/flow-rdf-core.4d307911.mjs';
1
+ import { J as MapEvent, y as FlowMap, w as MapSourceIdentifier, K as MapFeatureId, L as MapPluginBase, N as PluginManager, O as MapSourceEvent, T as MapMouseEvent, U as MapFeatureStream, V as PartialBy, r as MapAnimationOptions, W as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, u as MapFeatureIdentifier, t as MapFeature } from '../../../shared/flow-rdf-core.b618ecc3.mjs';
2
+ export { _ as EventHandlers, Z as PluginConstructor, Y as PluginEventsType, X as PluginOptionsType } from '../../../shared/flow-rdf-core.b618ecc3.mjs';
3
3
  import { F as Func } from '../../../shared/flow-rdf-core.08975378.mjs';
4
4
  import EventEmitter from 'eventemitter3';
5
5
  import * as lit from 'lit-html';
@@ -1,5 +1,5 @@
1
- import { J as MapEvent, y as FlowMap, w as MapSourceIdentifier, K as MapFeatureId, L as MapPluginBase, N as PluginManager, O as MapSourceEvent, T as MapMouseEvent, U as MapFeatureStream, V as PartialBy, r as MapAnimationOptions, W as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, u as MapFeatureIdentifier, t as MapFeature } from '../../../shared/flow-rdf-core.4d307911.js';
2
- export { _ as EventHandlers, Z as PluginConstructor, Y as PluginEventsType, X as PluginOptionsType } from '../../../shared/flow-rdf-core.4d307911.js';
1
+ import { J as MapEvent, y as FlowMap, w as MapSourceIdentifier, K as MapFeatureId, L as MapPluginBase, N as PluginManager, O as MapSourceEvent, T as MapMouseEvent, U as MapFeatureStream, V as PartialBy, r as MapAnimationOptions, W as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, u as MapFeatureIdentifier, t as MapFeature } from '../../../shared/flow-rdf-core.b618ecc3.js';
2
+ export { _ as EventHandlers, Z as PluginConstructor, Y as PluginEventsType, X as PluginOptionsType } from '../../../shared/flow-rdf-core.b618ecc3.js';
3
3
  import { F as Func } from '../../../shared/flow-rdf-core.08975378.js';
4
4
  import EventEmitter from 'eventemitter3';
5
5
  import * as lit from 'lit-html';
@@ -11,7 +11,7 @@ import { c as isPolygon, i as isLineString, b as isPoint } from '../../../shared
11
11
  import EventEmitter$1, { EventEmitter } from 'eventemitter3';
12
12
  import { d as isDefined, g as isStringFull, x as isFunction, f as isString, e as ensureArray, o as isNumber, z as isURL, k as isArrayFull, b as isNil, a as isNull, m as isObject } from '../../../shared/flow-rdf-core.b80085b4.mjs';
13
13
  import * as lit from 'lit-html';
14
- import maplibre__default from '@emuanalytics/maplibre-gl';
14
+ import maplibregl from '@emuanalytics/maplibre-gl';
15
15
  import turfCircle from '@turf/circle';
16
16
  import turfDistance from '@turf/distance';
17
17
  import { point } from '@turf/helpers';
@@ -143,7 +143,7 @@ class MapPopup extends EventEmitter$1 {
143
143
  if (feature) {
144
144
  assert(isFeatureWithId(feature), "MapPopup.open(): feature must have unique ID");
145
145
  }
146
- this._maplibrePopup = new maplibre__default.Popup({
146
+ this._maplibrePopup = new maplibregl.Popup({
147
147
  className: this.cssClasses().join(" "),
148
148
  closeButton: this.options.closeButton,
149
149
  closeOnClick: this.options.closeOnClick,
@@ -1,7 +1,7 @@
1
1
  import { Client } from '@emuanalytics/flow-engine-client';
2
2
  import { IObservableStream, IDisposer, ISubscription } from 'mobx-utils';
3
+ import { MapLibreEvent, MapMouseEvent as MapMouseEvent$1, MapOptions as MapOptions$1, Map } from '@emuanalytics/maplibre-gl';
3
4
  import EventEmitter$1, { EventEmitter } from 'eventemitter3';
4
- import * as maplibre from '@emuanalytics/maplibre-gl';
5
5
 
6
6
  type Annotation = {
7
7
  annotationType: string;
@@ -1403,7 +1403,7 @@ declare class MapEvent<EventType extends string = MapEventType, TOrig = unknown>
1403
1403
  type: EventType;
1404
1404
  map: FlowMap;
1405
1405
  originalEvent?: TOrig;
1406
- static fromMaplibreEvent(type: string, map: FlowMap, maplibreEvent: maplibre.MapLibreEvent): MapEvent<any, unknown>;
1406
+ static fromMaplibreEvent(type: string, map: FlowMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
1407
1407
  constructor(type: EventType, map: FlowMap, originalEvent?: TOrig);
1408
1408
  }
1409
1409
  type MapMouseEventType = 'click' | 'dblClick' | 'mouseMove' | 'mouseOut';
@@ -1417,7 +1417,7 @@ declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
1417
1417
  */
1418
1418
  lngLat: [number, number];
1419
1419
  features: MapFeature[];
1420
- static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: maplibre.MapMouseEvent, map: FlowMap, features: MapFeature[]): MapMouseEvent;
1420
+ static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowMap, features: MapFeature[]): MapMouseEvent;
1421
1421
  constructor(type: MapMouseEventType, map: FlowMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
1422
1422
  }
1423
1423
  type SourceEventType = 'sourceAdded' | 'sourceRemoved' | 'beforeSourceAdded' | 'beforeSourceRemoved' | 'sourceFeatureState';
@@ -1527,7 +1527,7 @@ declare class MapFeatureStream {
1527
1527
  private suspend;
1528
1528
  }
1529
1529
 
1530
- interface MapOptions<TState extends StateStore = StateStore> extends Omit<maplibre.MapOptions, 'style'> {
1530
+ interface MapOptions<TState extends StateStore = StateStore> extends Omit<MapOptions$1, 'style'> {
1531
1531
  id?: string;
1532
1532
  baseStyle?: string | MapStyleSpecification;
1533
1533
  container: string | HTMLElement;
@@ -1547,7 +1547,7 @@ declare class FlowMap<TState extends StateStore = StateStore> extends EventEmitt
1547
1547
  private _style;
1548
1548
  private _styleUpdateSubscription;
1549
1549
  private _throttledMouseMove;
1550
- maplibreMap: maplibre.Map;
1550
+ maplibreMap: Map;
1551
1551
  constructor(options: MapOptions<TState>);
1552
1552
  get context(): FlowContext<TState>;
1553
1553
  get container(): HTMLElement;
@@ -1,7 +1,7 @@
1
1
  import { Client } from '@emuanalytics/flow-engine-client';
2
2
  import { IObservableStream, IDisposer, ISubscription } from 'mobx-utils';
3
+ import { MapLibreEvent, MapMouseEvent as MapMouseEvent$1, MapOptions as MapOptions$1, Map } from '@emuanalytics/maplibre-gl';
3
4
  import EventEmitter$1, { EventEmitter } from 'eventemitter3';
4
- import * as maplibre from '@emuanalytics/maplibre-gl';
5
5
 
6
6
  type Annotation = {
7
7
  annotationType: string;
@@ -1403,7 +1403,7 @@ declare class MapEvent<EventType extends string = MapEventType, TOrig = unknown>
1403
1403
  type: EventType;
1404
1404
  map: FlowMap;
1405
1405
  originalEvent?: TOrig;
1406
- static fromMaplibreEvent(type: string, map: FlowMap, maplibreEvent: maplibre.MapLibreEvent): MapEvent<any, unknown>;
1406
+ static fromMaplibreEvent(type: string, map: FlowMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
1407
1407
  constructor(type: EventType, map: FlowMap, originalEvent?: TOrig);
1408
1408
  }
1409
1409
  type MapMouseEventType = 'click' | 'dblClick' | 'mouseMove' | 'mouseOut';
@@ -1417,7 +1417,7 @@ declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
1417
1417
  */
1418
1418
  lngLat: [number, number];
1419
1419
  features: MapFeature[];
1420
- static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: maplibre.MapMouseEvent, map: FlowMap, features: MapFeature[]): MapMouseEvent;
1420
+ static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowMap, features: MapFeature[]): MapMouseEvent;
1421
1421
  constructor(type: MapMouseEventType, map: FlowMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
1422
1422
  }
1423
1423
  type SourceEventType = 'sourceAdded' | 'sourceRemoved' | 'beforeSourceAdded' | 'beforeSourceRemoved' | 'sourceFeatureState';
@@ -1527,7 +1527,7 @@ declare class MapFeatureStream {
1527
1527
  private suspend;
1528
1528
  }
1529
1529
 
1530
- interface MapOptions<TState extends StateStore = StateStore> extends Omit<maplibre.MapOptions, 'style'> {
1530
+ interface MapOptions<TState extends StateStore = StateStore> extends Omit<MapOptions$1, 'style'> {
1531
1531
  id?: string;
1532
1532
  baseStyle?: string | MapStyleSpecification;
1533
1533
  container: string | HTMLElement;
@@ -1547,7 +1547,7 @@ declare class FlowMap<TState extends StateStore = StateStore> extends EventEmitt
1547
1547
  private _style;
1548
1548
  private _styleUpdateSubscription;
1549
1549
  private _throttledMouseMove;
1550
- maplibreMap: maplibre.Map;
1550
+ maplibreMap: Map;
1551
1551
  constructor(options: MapOptions<TState>);
1552
1552
  get context(): FlowContext<TState>;
1553
1553
  get container(): HTMLElement;
@@ -1,7 +1,7 @@
1
1
  import { Client } from '@emuanalytics/flow-engine-client';
2
2
  import { IObservableStream, IDisposer, ISubscription } from 'mobx-utils';
3
+ import { MapLibreEvent, MapMouseEvent as MapMouseEvent$1, MapOptions as MapOptions$1, Map } from '@emuanalytics/maplibre-gl';
3
4
  import EventEmitter$1, { EventEmitter } from 'eventemitter3';
4
- import * as maplibre from '@emuanalytics/maplibre-gl';
5
5
 
6
6
  type Annotation = {
7
7
  annotationType: string;
@@ -1403,7 +1403,7 @@ declare class MapEvent<EventType extends string = MapEventType, TOrig = unknown>
1403
1403
  type: EventType;
1404
1404
  map: FlowMap;
1405
1405
  originalEvent?: TOrig;
1406
- static fromMaplibreEvent(type: string, map: FlowMap, maplibreEvent: maplibre.MapLibreEvent): MapEvent<any, unknown>;
1406
+ static fromMaplibreEvent(type: string, map: FlowMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
1407
1407
  constructor(type: EventType, map: FlowMap, originalEvent?: TOrig);
1408
1408
  }
1409
1409
  type MapMouseEventType = 'click' | 'dblClick' | 'mouseMove' | 'mouseOut';
@@ -1417,7 +1417,7 @@ declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
1417
1417
  */
1418
1418
  lngLat: [number, number];
1419
1419
  features: MapFeature[];
1420
- static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: maplibre.MapMouseEvent, map: FlowMap, features: MapFeature[]): MapMouseEvent;
1420
+ static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowMap, features: MapFeature[]): MapMouseEvent;
1421
1421
  constructor(type: MapMouseEventType, map: FlowMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
1422
1422
  }
1423
1423
  type SourceEventType = 'sourceAdded' | 'sourceRemoved' | 'beforeSourceAdded' | 'beforeSourceRemoved' | 'sourceFeatureState';
@@ -1527,7 +1527,7 @@ declare class MapFeatureStream {
1527
1527
  private suspend;
1528
1528
  }
1529
1529
 
1530
- interface MapOptions<TState extends StateStore = StateStore> extends Omit<maplibre.MapOptions, 'style'> {
1530
+ interface MapOptions<TState extends StateStore = StateStore> extends Omit<MapOptions$1, 'style'> {
1531
1531
  id?: string;
1532
1532
  baseStyle?: string | MapStyleSpecification;
1533
1533
  container: string | HTMLElement;
@@ -1547,7 +1547,7 @@ declare class FlowMap<TState extends StateStore = StateStore> extends EventEmitt
1547
1547
  private _style;
1548
1548
  private _styleUpdateSubscription;
1549
1549
  private _throttledMouseMove;
1550
- maplibreMap: maplibre.Map;
1550
+ maplibreMap: Map;
1551
1551
  constructor(options: MapOptions<TState>);
1552
1552
  get context(): FlowContext<TState>;
1553
1553
  get container(): HTMLElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emuanalytics/flow-rdf-core",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -75,7 +75,7 @@
75
75
  "dependencies": {
76
76
  "@emuanalytics/flow-engine-client": "^1.3.134",
77
77
  "@emuanalytics/mapbox-gl-draw": "^1.3.2",
78
- "@emuanalytics/maplibre-gl": "^3.3.1",
78
+ "@emuanalytics/maplibre-gl": "^3.3.3",
79
79
  "@emuanalytics/maplibre-gl-style-spec": "^19.3.1",
80
80
  "@turf/area": "^6.5.0",
81
81
  "@turf/bbox": "^6.5.0",