@emuanalytics/flow-rdf-core 4.0.0 → 4.0.2

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
@@ -35,7 +35,7 @@ const maplibre__default = /*#__PURE__*/_interopDefaultCompat(maplibre);
35
35
  const EventEmitter__default = /*#__PURE__*/_interopDefaultCompat(EventEmitter);
36
36
  const lzString__default = /*#__PURE__*/_interopDefaultCompat(lzString);
37
37
 
38
- const version = "4.0.0";
38
+ const version = "4.0.2";
39
39
 
40
40
  const CONSOLE_HIGHLIGHT_STYLE$1 = `
41
41
  padding: 2px 4px;
@@ -2286,7 +2286,7 @@ var __publicField$3 = (obj, key, value) => {
2286
2286
  };
2287
2287
  const debug$1 = Debug__default("flow:map");
2288
2288
  const MOUSE_MOVE_THROTTLE_DURATION = 100;
2289
- const _FlowMap = class _FlowMap extends EventEmitter__default {
2289
+ const _FlowCoreMap = class _FlowCoreMap extends EventEmitter__default {
2290
2290
  constructor(options) {
2291
2291
  super();
2292
2292
  __publicField$3(this, "_context");
@@ -2315,7 +2315,7 @@ const _FlowMap = class _FlowMap extends EventEmitter__default {
2315
2315
  });
2316
2316
  this._options = {
2317
2317
  id: randomId.randomId("map"),
2318
- ..._FlowMap._defaultOptions,
2318
+ ..._FlowCoreMap._defaultOptions,
2319
2319
  ...options
2320
2320
  };
2321
2321
  this._style = new MapStyle();
@@ -2717,12 +2717,12 @@ const _FlowMap = class _FlowMap extends EventEmitter__default {
2717
2717
  return requestParameters;
2718
2718
  }
2719
2719
  };
2720
- __publicField$3(_FlowMap, "_defaultOptions", {
2720
+ __publicField$3(_FlowCoreMap, "_defaultOptions", {
2721
2721
  boxZoom: false,
2722
2722
  doubleClickZoom: false,
2723
2723
  featureClickTolerance: 0
2724
2724
  });
2725
- let FlowMap = _FlowMap;
2725
+ let FlowCoreMap = _FlowCoreMap;
2726
2726
 
2727
2727
  var __defProp$2 = Object.defineProperty;
2728
2728
  var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -3101,6 +3101,34 @@ class StateStore {
3101
3101
  this.set(path, val);
3102
3102
  return val;
3103
3103
  }
3104
+ bindControl(el, statePath, options) {
3105
+ const toState = options?.toState ?? ((v) => v);
3106
+ const fromState = options?.fromState ?? ((v) => v);
3107
+ el.addEventListener("input", () => {
3108
+ this.set(statePath, toState(el.value));
3109
+ });
3110
+ el.addEventListener("flow-ui-change", () => {
3111
+ this.set(statePath, toState(el.value));
3112
+ });
3113
+ return this.toStream(statePath, true).subscribe((value) => {
3114
+ if (value !== el.value) {
3115
+ el.value = fromState(value);
3116
+ }
3117
+ });
3118
+ }
3119
+ bindElementProp(el, prop, statePath, options) {
3120
+ const fromState = options?.fromState ?? ((v) => v);
3121
+ return this.toStream(statePath, true).subscribe((value) => {
3122
+ if (value !== el[prop]) {
3123
+ el[prop] = fromState(value);
3124
+ }
3125
+ });
3126
+ }
3127
+ bindElementAttr(el, attr, statePath) {
3128
+ return this.toStream(statePath, true).subscribe((value) => {
3129
+ el.setAttribute(attr, value);
3130
+ });
3131
+ }
3104
3132
  toStream(path, fireImmediately = true) {
3105
3133
  this.checkInitialized();
3106
3134
  return mobxUtils.toStream(() => this.get(path), fireImmediately);
@@ -3258,7 +3286,7 @@ exports.DEFAULT_CONTEXT_ID = DEFAULT_CONTEXT_ID;
3258
3286
  exports.FillExtrusionLayerStyleBuilder = FillExtrusionLayerStyleBuilder;
3259
3287
  exports.FillLayerStyleBuilder = FillLayerStyleBuilder;
3260
3288
  exports.FlowContext = FlowContext;
3261
- exports.FlowMap = FlowMap;
3289
+ exports.FlowCoreMap = FlowCoreMap;
3262
3290
  exports.FlowRdfCoreGlobals = FlowRdfCoreGlobals;
3263
3291
  exports.HeatmapLayerStyleBuilder = HeatmapLayerStyleBuilder;
3264
3292
  exports.HillshadeLayerStyleBuilder = HillshadeLayerStyleBuilder;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
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.04b30d7a.cjs';
2
- export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder, e as FlowEngineEndpoint, K as FlowMap, H as HeatmapLayerStyleBuilder, k as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, x as MapAnimationOptions, y as MapCenterOptions, u as MapDataSourceOptions, v as MapDataSourceSpecification, t as MapDataSourceType, z as MapFeature, E as MapFeatureIdentifier, w as MapGeojsonData, q as MapLayerExpression, p as MapLayerOptions, s as MapLayerPropertyMetadataIndex, r as MapLayerSpecification, m as MapLayerStyleBuilder, f as MapLayerType, J as MapOptions, G as MapPaddingOptions, d as MapRegistry, I as MapSourceIdentifier, a3 as Path, a4 as PathValue, N as Query, V as QueryAttribute, _ as QueryDefinition, a0 as QueryDefinitionFn, X as QueryExtraParams, $ as QueryOptions, Y as QueryOrderClause, Q as QueryRegistry, U as QueryResultFormat, a1 as QueryResultTransformFn, Z as QuerySampleOptions, W as QueryWhereClauses, j as RasterLayerStyleBuilder, R as ReactiveExpression, a7 as SerializationFormat, a6 as StoreAnnotations, a5 as StoreConstructor, n as StyleExpression, h as SymbolLayerStyleBuilder, o as expr, l as layerStyle, O as query, P as queryMany, T as queryOne, a2 as traceReaction } from './shared/flow-rdf-core.04b30d7a.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.4dde996e.cjs';
2
+ export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder, K as FlowCoreMap, e as FlowEngineEndpoint, H as HeatmapLayerStyleBuilder, k as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, x as MapAnimationOptions, y as MapCenterOptions, u as MapDataSourceOptions, v as MapDataSourceSpecification, t as MapDataSourceType, z as MapFeature, E as MapFeatureIdentifier, w as MapGeojsonData, q as MapLayerExpression, p as MapLayerOptions, s as MapLayerPropertyMetadataIndex, r as MapLayerSpecification, m as MapLayerStyleBuilder, f as MapLayerType, J as MapOptions, G as MapPaddingOptions, d as MapRegistry, I as MapSourceIdentifier, a3 as Path, a4 as PathValue, N as Query, V as QueryAttribute, _ as QueryDefinition, a0 as QueryDefinitionFn, X as QueryExtraParams, $ as QueryOptions, Y as QueryOrderClause, Q as QueryRegistry, U as QueryResultFormat, a1 as QueryResultTransformFn, Z as QuerySampleOptions, W as QueryWhereClauses, j as RasterLayerStyleBuilder, R as ReactiveExpression, a7 as SerializationFormat, a6 as StoreAnnotations, a5 as StoreConstructor, n as StyleExpression, h as SymbolLayerStyleBuilder, o as expr, l as layerStyle, O as query, P as queryMany, T as queryOne, a2 as traceReaction } from './shared/flow-rdf-core.4dde996e.cjs';
3
3
  export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
4
4
  export { makeAutoObservable, makeObservable } from 'mobx';
5
5
  import '@emuanalytics/flow-engine-client';
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
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.04b30d7a.mjs';
2
- export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder, e as FlowEngineEndpoint, K as FlowMap, H as HeatmapLayerStyleBuilder, k as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, x as MapAnimationOptions, y as MapCenterOptions, u as MapDataSourceOptions, v as MapDataSourceSpecification, t as MapDataSourceType, z as MapFeature, E as MapFeatureIdentifier, w as MapGeojsonData, q as MapLayerExpression, p as MapLayerOptions, s as MapLayerPropertyMetadataIndex, r as MapLayerSpecification, m as MapLayerStyleBuilder, f as MapLayerType, J as MapOptions, G as MapPaddingOptions, d as MapRegistry, I as MapSourceIdentifier, a3 as Path, a4 as PathValue, N as Query, V as QueryAttribute, _ as QueryDefinition, a0 as QueryDefinitionFn, X as QueryExtraParams, $ as QueryOptions, Y as QueryOrderClause, Q as QueryRegistry, U as QueryResultFormat, a1 as QueryResultTransformFn, Z as QuerySampleOptions, W as QueryWhereClauses, j as RasterLayerStyleBuilder, R as ReactiveExpression, a7 as SerializationFormat, a6 as StoreAnnotations, a5 as StoreConstructor, n as StyleExpression, h as SymbolLayerStyleBuilder, o as expr, l as layerStyle, O as query, P as queryMany, T as queryOne, a2 as traceReaction } from './shared/flow-rdf-core.04b30d7a.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.4dde996e.mjs';
2
+ export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder, K as FlowCoreMap, e as FlowEngineEndpoint, H as HeatmapLayerStyleBuilder, k as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, x as MapAnimationOptions, y as MapCenterOptions, u as MapDataSourceOptions, v as MapDataSourceSpecification, t as MapDataSourceType, z as MapFeature, E as MapFeatureIdentifier, w as MapGeojsonData, q as MapLayerExpression, p as MapLayerOptions, s as MapLayerPropertyMetadataIndex, r as MapLayerSpecification, m as MapLayerStyleBuilder, f as MapLayerType, J as MapOptions, G as MapPaddingOptions, d as MapRegistry, I as MapSourceIdentifier, a3 as Path, a4 as PathValue, N as Query, V as QueryAttribute, _ as QueryDefinition, a0 as QueryDefinitionFn, X as QueryExtraParams, $ as QueryOptions, Y as QueryOrderClause, Q as QueryRegistry, U as QueryResultFormat, a1 as QueryResultTransformFn, Z as QuerySampleOptions, W as QueryWhereClauses, j as RasterLayerStyleBuilder, R as ReactiveExpression, a7 as SerializationFormat, a6 as StoreAnnotations, a5 as StoreConstructor, n as StyleExpression, h as SymbolLayerStyleBuilder, o as expr, l as layerStyle, O as query, P as queryMany, T as queryOne, a2 as traceReaction } from './shared/flow-rdf-core.4dde996e.mjs';
3
3
  export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
4
4
  export { makeAutoObservable, makeObservable } from 'mobx';
5
5
  import '@emuanalytics/flow-engine-client';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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.04b30d7a.js';
2
- export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder, e as FlowEngineEndpoint, K as FlowMap, H as HeatmapLayerStyleBuilder, k as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, x as MapAnimationOptions, y as MapCenterOptions, u as MapDataSourceOptions, v as MapDataSourceSpecification, t as MapDataSourceType, z as MapFeature, E as MapFeatureIdentifier, w as MapGeojsonData, q as MapLayerExpression, p as MapLayerOptions, s as MapLayerPropertyMetadataIndex, r as MapLayerSpecification, m as MapLayerStyleBuilder, f as MapLayerType, J as MapOptions, G as MapPaddingOptions, d as MapRegistry, I as MapSourceIdentifier, a3 as Path, a4 as PathValue, N as Query, V as QueryAttribute, _ as QueryDefinition, a0 as QueryDefinitionFn, X as QueryExtraParams, $ as QueryOptions, Y as QueryOrderClause, Q as QueryRegistry, U as QueryResultFormat, a1 as QueryResultTransformFn, Z as QuerySampleOptions, W as QueryWhereClauses, j as RasterLayerStyleBuilder, R as ReactiveExpression, a7 as SerializationFormat, a6 as StoreAnnotations, a5 as StoreConstructor, n as StyleExpression, h as SymbolLayerStyleBuilder, o as expr, l as layerStyle, O as query, P as queryMany, T as queryOne, a2 as traceReaction } from './shared/flow-rdf-core.04b30d7a.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.4dde996e.js';
2
+ export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder, K as FlowCoreMap, e as FlowEngineEndpoint, H as HeatmapLayerStyleBuilder, k as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, x as MapAnimationOptions, y as MapCenterOptions, u as MapDataSourceOptions, v as MapDataSourceSpecification, t as MapDataSourceType, z as MapFeature, E as MapFeatureIdentifier, w as MapGeojsonData, q as MapLayerExpression, p as MapLayerOptions, s as MapLayerPropertyMetadataIndex, r as MapLayerSpecification, m as MapLayerStyleBuilder, f as MapLayerType, J as MapOptions, G as MapPaddingOptions, d as MapRegistry, I as MapSourceIdentifier, a3 as Path, a4 as PathValue, N as Query, V as QueryAttribute, _ as QueryDefinition, a0 as QueryDefinitionFn, X as QueryExtraParams, $ as QueryOptions, Y as QueryOrderClause, Q as QueryRegistry, U as QueryResultFormat, a1 as QueryResultTransformFn, Z as QuerySampleOptions, W as QueryWhereClauses, j as RasterLayerStyleBuilder, R as ReactiveExpression, a7 as SerializationFormat, a6 as StoreAnnotations, a5 as StoreConstructor, n as StyleExpression, h as SymbolLayerStyleBuilder, o as expr, l as layerStyle, O as query, P as queryMany, T as queryOne, a2 as traceReaction } from './shared/flow-rdf-core.4dde996e.js';
3
3
  export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
4
4
  export { makeAutoObservable, makeObservable } from 'mobx';
5
5
  import '@emuanalytics/flow-engine-client';
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import lzString from 'lz-string';
15
15
  import 'parsimmon';
16
16
  import 'colorbrewer';
17
17
 
18
- const version = "4.0.0";
18
+ const version = "4.0.2";
19
19
 
20
20
  const CONSOLE_HIGHLIGHT_STYLE$1 = `
21
21
  padding: 2px 4px;
@@ -2266,7 +2266,7 @@ var __publicField$3 = (obj, key, value) => {
2266
2266
  };
2267
2267
  const debug$1 = Debug("flow:map");
2268
2268
  const MOUSE_MOVE_THROTTLE_DURATION = 100;
2269
- const _FlowMap = class _FlowMap extends EventEmitter {
2269
+ const _FlowCoreMap = class _FlowCoreMap extends EventEmitter {
2270
2270
  constructor(options) {
2271
2271
  super();
2272
2272
  __publicField$3(this, "_context");
@@ -2295,7 +2295,7 @@ const _FlowMap = class _FlowMap extends EventEmitter {
2295
2295
  });
2296
2296
  this._options = {
2297
2297
  id: randomId("map"),
2298
- ..._FlowMap._defaultOptions,
2298
+ ..._FlowCoreMap._defaultOptions,
2299
2299
  ...options
2300
2300
  };
2301
2301
  this._style = new MapStyle();
@@ -2697,12 +2697,12 @@ const _FlowMap = class _FlowMap extends EventEmitter {
2697
2697
  return requestParameters;
2698
2698
  }
2699
2699
  };
2700
- __publicField$3(_FlowMap, "_defaultOptions", {
2700
+ __publicField$3(_FlowCoreMap, "_defaultOptions", {
2701
2701
  boxZoom: false,
2702
2702
  doubleClickZoom: false,
2703
2703
  featureClickTolerance: 0
2704
2704
  });
2705
- let FlowMap = _FlowMap;
2705
+ let FlowCoreMap = _FlowCoreMap;
2706
2706
 
2707
2707
  var __defProp$2 = Object.defineProperty;
2708
2708
  var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -3081,6 +3081,34 @@ class StateStore {
3081
3081
  this.set(path, val);
3082
3082
  return val;
3083
3083
  }
3084
+ bindControl(el, statePath, options) {
3085
+ const toState = options?.toState ?? ((v) => v);
3086
+ const fromState = options?.fromState ?? ((v) => v);
3087
+ el.addEventListener("input", () => {
3088
+ this.set(statePath, toState(el.value));
3089
+ });
3090
+ el.addEventListener("flow-ui-change", () => {
3091
+ this.set(statePath, toState(el.value));
3092
+ });
3093
+ return this.toStream(statePath, true).subscribe((value) => {
3094
+ if (value !== el.value) {
3095
+ el.value = fromState(value);
3096
+ }
3097
+ });
3098
+ }
3099
+ bindElementProp(el, prop, statePath, options) {
3100
+ const fromState = options?.fromState ?? ((v) => v);
3101
+ return this.toStream(statePath, true).subscribe((value) => {
3102
+ if (value !== el[prop]) {
3103
+ el[prop] = fromState(value);
3104
+ }
3105
+ });
3106
+ }
3107
+ bindElementAttr(el, attr, statePath) {
3108
+ return this.toStream(statePath, true).subscribe((value) => {
3109
+ el.setAttribute(attr, value);
3110
+ });
3111
+ }
3084
3112
  toStream(path, fireImmediately = true) {
3085
3113
  this.checkInitialized();
3086
3114
  return toStream(() => this.get(path), fireImmediately);
@@ -3226,4 +3254,4 @@ const initializeContext = globalContextRegistry.initializeContext.bind(globalCon
3226
3254
  const uninitializeContext = globalContextRegistry.uninitializeContext.bind(globalContextRegistry);
3227
3255
  const getContext = globalContextRegistry.getContext.bind(globalContextRegistry);
3228
3256
 
3229
- export { BackgroundLayerStyleBuilder, CircleLayerStyleBuilder, ContextRegistry, DEFAULT_CONTEXT_ID, FillExtrusionLayerStyleBuilder, FillLayerStyleBuilder, FlowContext, FlowMap, FlowRdfCoreGlobals, HeatmapLayerStyleBuilder, HillshadeLayerStyleBuilder, LineLayerStyleBuilder, MapDataSource, MapLayer, MapLayerStyleBuilder, MapRegistry, MapStyle, Query, QueryRegistry, RasterLayerStyleBuilder, ReactiveExpression, StateStore, StyleExpression, SymbolLayerStyleBuilder, computed, expr, getContext, getGlobalState, initializeContext, isolateGlobalState, layerStyle, observable, query, queryMany, queryOne, serialize, traceReaction, uninitializeContext };
3257
+ export { BackgroundLayerStyleBuilder, CircleLayerStyleBuilder, ContextRegistry, DEFAULT_CONTEXT_ID, FillExtrusionLayerStyleBuilder, FillLayerStyleBuilder, FlowContext, FlowCoreMap, FlowRdfCoreGlobals, HeatmapLayerStyleBuilder, HillshadeLayerStyleBuilder, LineLayerStyleBuilder, MapDataSource, MapLayer, MapLayerStyleBuilder, MapRegistry, MapStyle, Query, QueryRegistry, RasterLayerStyleBuilder, ReactiveExpression, StateStore, StyleExpression, SymbolLayerStyleBuilder, computed, expr, getContext, getGlobalState, initializeContext, isolateGlobalState, layerStyle, observable, query, queryMany, queryOne, serialize, traceReaction, uninitializeContext };
@@ -11,8 +11,8 @@ const Debug = require('debug');
11
11
  const featureTypeChecks = require('../../../shared/flow-rdf-core.a82b9be4.cjs');
12
12
  const randomId = require('../../../shared/flow-rdf-core.f50908f0.cjs');
13
13
  const EventEmitter = require('eventemitter3');
14
- const lit = require('lit-html');
15
14
  const maplibre = require('@emuanalytics/maplibre-gl');
15
+ const lit = require('lit-html');
16
16
  const turfCircle = require('@turf/circle');
17
17
  const turfDistance = require('@turf/distance');
18
18
  const helpers = require('@turf/helpers');
@@ -47,8 +47,8 @@ const turfBuffer__default = /*#__PURE__*/_interopDefaultCompat(turfBuffer);
47
47
  const turfLength__default = /*#__PURE__*/_interopDefaultCompat(turfLength);
48
48
  const Debug__default = /*#__PURE__*/_interopDefaultCompat(Debug);
49
49
  const EventEmitter__default = /*#__PURE__*/_interopDefaultCompat(EventEmitter);
50
- const lit__namespace = /*#__PURE__*/_interopNamespaceCompat(lit);
51
50
  const maplibre__default = /*#__PURE__*/_interopDefaultCompat(maplibre);
51
+ const lit__namespace = /*#__PURE__*/_interopNamespaceCompat(lit);
52
52
  const turfCircle__default = /*#__PURE__*/_interopDefaultCompat(turfCircle);
53
53
  const turfDistance__default = /*#__PURE__*/_interopDefaultCompat(turfDistance);
54
54
  const saveAs__default = /*#__PURE__*/_interopDefaultCompat(saveAs);
@@ -1424,15 +1424,17 @@ const _DataJoin = class _DataJoin {
1424
1424
  this.autorunDisposer = mobx.autorun(
1425
1425
  async () => {
1426
1426
  let data = this.dataExpression ? mobx.toJS(this.dataExpression.value) : this.options.data;
1427
- const missingParams = this.options.parameters.map(
1428
- (p) => p.required && randomId.isNil(this.parameterExpressions[p.name].value) ? p.name : void 0
1429
- ).filter((p) => !!p);
1427
+ const missingParams = this.options.parameters.map((p) => p.required && randomId.isNil(this.parameterExpressions[p.name].value) ? p.name : void 0).filter((p) => !!p);
1430
1428
  if (randomId.isNull(data)) {
1431
1429
  debug$1(`FlowMap<${this.map.id}>: Skipping data join '${this.id}' (null data)`);
1432
1430
  return;
1433
1431
  }
1434
1432
  if (missingParams.length) {
1435
- debug$1(`FlowMap<${this.map.id}>: Skipping data join '${this.id}' (null required parameters: ${missingParams.join(", ")})`);
1433
+ debug$1(
1434
+ `FlowMap<${this.map.id}>: Skipping data join '${this.id}' (null required parameters: ${missingParams.join(
1435
+ ", "
1436
+ )})`
1437
+ );
1436
1438
  return;
1437
1439
  }
1438
1440
  debug$1(`FlowMap<${this.map.id}>: Performing data join '${this.id}'`);
@@ -1,5 +1,5 @@
1
- import { a8 as MapEvent, K as FlowMap, I as MapSourceIdentifier, a9 as MapFeatureId, aa as MapPluginBase, ab as PluginManager, ac as MapSourceEvent, ad as MapMouseEvent, ae as MapFeatureStream, af as PartialBy, x as MapAnimationOptions, ag as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, E as MapFeatureIdentifier, z as MapFeature } from '../../../shared/flow-rdf-core.04b30d7a.cjs';
2
- export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.04b30d7a.cjs';
1
+ import { a8 as MapEvent, K as FlowCoreMap, I as MapSourceIdentifier, a9 as MapFeatureId, aa as MapPluginBase, ab as PluginManager, ac as MapSourceEvent, ad as MapMouseEvent, ae as MapFeatureStream, af as PartialBy, x as MapAnimationOptions, ag as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, E as MapFeatureIdentifier, z as MapFeature } from '../../../shared/flow-rdf-core.4dde996e.cjs';
2
+ export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.4dde996e.cjs';
3
3
  import { F as Func } from '../../../shared/flow-rdf-core.63162669.cjs';
4
4
  import EventEmitter from 'eventemitter3';
5
5
  import * as lit from 'lit-html';
@@ -61,7 +61,7 @@ declare class AnnotationEvent extends MapEvent<AnnotationEventType> {
61
61
  activeFeatureId: string | null;
62
62
  activeFeatureType: AnnotationFeatureType | null;
63
63
  features: AnnotationFeature[];
64
- constructor(type: AnnotationEventType, map: FlowMap, data: AnnotationEventData);
64
+ constructor(type: AnnotationEventType, map: FlowCoreMap, data: AnnotationEventData);
65
65
  }
66
66
 
67
67
  type SelectionEventType = 'selectionChanged';
@@ -72,7 +72,7 @@ declare class SelectionEvent extends MapEvent<SelectionEventType> implements Map
72
72
  source: string;
73
73
  sourceLayer?: string;
74
74
  features: MapFeatureId[];
75
- constructor(type: SelectionEventType, map: FlowMap, sourceIdentifier: MapSourceIdentifier, features: MapFeatureId[]);
75
+ constructor(type: SelectionEventType, map: FlowCoreMap, sourceIdentifier: MapSourceIdentifier, features: MapFeatureId[]);
76
76
  }
77
77
 
78
78
  type SelectionMode = 'single' | 'multi' | 'none';
@@ -182,13 +182,13 @@ interface DataJoinParameter {
182
182
  }
183
183
  declare class DataJoin {
184
184
  readonly id: string;
185
- readonly map: FlowMap;
185
+ readonly map: FlowCoreMap;
186
186
  private static defaultOptions;
187
187
  private autorunDisposer;
188
188
  private dataExpression;
189
189
  private options;
190
190
  private parameterExpressions;
191
- constructor(id: string, map: FlowMap, options: DataJoinOptions);
191
+ constructor(id: string, map: FlowCoreMap, options: DataJoinOptions);
192
192
  get source(): string;
193
193
  start(): void;
194
194
  stop(): void;
@@ -281,7 +281,7 @@ interface MapPopupOptions {
281
281
  * @noInheritDoc
282
282
  */
283
283
  declare class MapPopup extends EventEmitter<MapPopupEvents> {
284
- readonly map: FlowMap;
284
+ readonly map: FlowCoreMap;
285
285
  readonly options: MapPopupOptions;
286
286
  private _feature?;
287
287
  private _contentContainer;
@@ -296,7 +296,7 @@ declare class MapPopup extends EventEmitter<MapPopupEvents> {
296
296
  * @param map Parent Flo.w map.
297
297
  * @param options Popup options.
298
298
  */
299
- constructor(map: FlowMap, options: MapPopupOptions);
299
+ constructor(map: FlowCoreMap, options: MapPopupOptions);
300
300
  get feature(): MapFeatureIdentifier | undefined;
301
301
  /**
302
302
  * Close the popup.
@@ -1,5 +1,5 @@
1
- import { a8 as MapEvent, K as FlowMap, I as MapSourceIdentifier, a9 as MapFeatureId, aa as MapPluginBase, ab as PluginManager, ac as MapSourceEvent, ad as MapMouseEvent, ae as MapFeatureStream, af as PartialBy, x as MapAnimationOptions, ag as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, E as MapFeatureIdentifier, z as MapFeature } from '../../../shared/flow-rdf-core.04b30d7a.mjs';
2
- export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.04b30d7a.mjs';
1
+ import { a8 as MapEvent, K as FlowCoreMap, I as MapSourceIdentifier, a9 as MapFeatureId, aa as MapPluginBase, ab as PluginManager, ac as MapSourceEvent, ad as MapMouseEvent, ae as MapFeatureStream, af as PartialBy, x as MapAnimationOptions, ag as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, E as MapFeatureIdentifier, z as MapFeature } from '../../../shared/flow-rdf-core.4dde996e.mjs';
2
+ export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.4dde996e.mjs';
3
3
  import { F as Func } from '../../../shared/flow-rdf-core.63162669.mjs';
4
4
  import EventEmitter from 'eventemitter3';
5
5
  import * as lit from 'lit-html';
@@ -61,7 +61,7 @@ declare class AnnotationEvent extends MapEvent<AnnotationEventType> {
61
61
  activeFeatureId: string | null;
62
62
  activeFeatureType: AnnotationFeatureType | null;
63
63
  features: AnnotationFeature[];
64
- constructor(type: AnnotationEventType, map: FlowMap, data: AnnotationEventData);
64
+ constructor(type: AnnotationEventType, map: FlowCoreMap, data: AnnotationEventData);
65
65
  }
66
66
 
67
67
  type SelectionEventType = 'selectionChanged';
@@ -72,7 +72,7 @@ declare class SelectionEvent extends MapEvent<SelectionEventType> implements Map
72
72
  source: string;
73
73
  sourceLayer?: string;
74
74
  features: MapFeatureId[];
75
- constructor(type: SelectionEventType, map: FlowMap, sourceIdentifier: MapSourceIdentifier, features: MapFeatureId[]);
75
+ constructor(type: SelectionEventType, map: FlowCoreMap, sourceIdentifier: MapSourceIdentifier, features: MapFeatureId[]);
76
76
  }
77
77
 
78
78
  type SelectionMode = 'single' | 'multi' | 'none';
@@ -182,13 +182,13 @@ interface DataJoinParameter {
182
182
  }
183
183
  declare class DataJoin {
184
184
  readonly id: string;
185
- readonly map: FlowMap;
185
+ readonly map: FlowCoreMap;
186
186
  private static defaultOptions;
187
187
  private autorunDisposer;
188
188
  private dataExpression;
189
189
  private options;
190
190
  private parameterExpressions;
191
- constructor(id: string, map: FlowMap, options: DataJoinOptions);
191
+ constructor(id: string, map: FlowCoreMap, options: DataJoinOptions);
192
192
  get source(): string;
193
193
  start(): void;
194
194
  stop(): void;
@@ -281,7 +281,7 @@ interface MapPopupOptions {
281
281
  * @noInheritDoc
282
282
  */
283
283
  declare class MapPopup extends EventEmitter<MapPopupEvents> {
284
- readonly map: FlowMap;
284
+ readonly map: FlowCoreMap;
285
285
  readonly options: MapPopupOptions;
286
286
  private _feature?;
287
287
  private _contentContainer;
@@ -296,7 +296,7 @@ declare class MapPopup extends EventEmitter<MapPopupEvents> {
296
296
  * @param map Parent Flo.w map.
297
297
  * @param options Popup options.
298
298
  */
299
- constructor(map: FlowMap, options: MapPopupOptions);
299
+ constructor(map: FlowCoreMap, options: MapPopupOptions);
300
300
  get feature(): MapFeatureIdentifier | undefined;
301
301
  /**
302
302
  * Close the popup.
@@ -1,5 +1,5 @@
1
- import { a8 as MapEvent, K as FlowMap, I as MapSourceIdentifier, a9 as MapFeatureId, aa as MapPluginBase, ab as PluginManager, ac as MapSourceEvent, ad as MapMouseEvent, ae as MapFeatureStream, af as PartialBy, x as MapAnimationOptions, ag as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, E as MapFeatureIdentifier, z as MapFeature } from '../../../shared/flow-rdf-core.04b30d7a.js';
2
- export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.04b30d7a.js';
1
+ import { a8 as MapEvent, K as FlowCoreMap, I as MapSourceIdentifier, a9 as MapFeatureId, aa as MapPluginBase, ab as PluginManager, ac as MapSourceEvent, ad as MapMouseEvent, ae as MapFeatureStream, af as PartialBy, x as MapAnimationOptions, ag as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, E as MapFeatureIdentifier, z as MapFeature } from '../../../shared/flow-rdf-core.4dde996e.js';
2
+ export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.4dde996e.js';
3
3
  import { F as Func } from '../../../shared/flow-rdf-core.63162669.js';
4
4
  import EventEmitter from 'eventemitter3';
5
5
  import * as lit from 'lit-html';
@@ -61,7 +61,7 @@ declare class AnnotationEvent extends MapEvent<AnnotationEventType> {
61
61
  activeFeatureId: string | null;
62
62
  activeFeatureType: AnnotationFeatureType | null;
63
63
  features: AnnotationFeature[];
64
- constructor(type: AnnotationEventType, map: FlowMap, data: AnnotationEventData);
64
+ constructor(type: AnnotationEventType, map: FlowCoreMap, data: AnnotationEventData);
65
65
  }
66
66
 
67
67
  type SelectionEventType = 'selectionChanged';
@@ -72,7 +72,7 @@ declare class SelectionEvent extends MapEvent<SelectionEventType> implements Map
72
72
  source: string;
73
73
  sourceLayer?: string;
74
74
  features: MapFeatureId[];
75
- constructor(type: SelectionEventType, map: FlowMap, sourceIdentifier: MapSourceIdentifier, features: MapFeatureId[]);
75
+ constructor(type: SelectionEventType, map: FlowCoreMap, sourceIdentifier: MapSourceIdentifier, features: MapFeatureId[]);
76
76
  }
77
77
 
78
78
  type SelectionMode = 'single' | 'multi' | 'none';
@@ -182,13 +182,13 @@ interface DataJoinParameter {
182
182
  }
183
183
  declare class DataJoin {
184
184
  readonly id: string;
185
- readonly map: FlowMap;
185
+ readonly map: FlowCoreMap;
186
186
  private static defaultOptions;
187
187
  private autorunDisposer;
188
188
  private dataExpression;
189
189
  private options;
190
190
  private parameterExpressions;
191
- constructor(id: string, map: FlowMap, options: DataJoinOptions);
191
+ constructor(id: string, map: FlowCoreMap, options: DataJoinOptions);
192
192
  get source(): string;
193
193
  start(): void;
194
194
  stop(): void;
@@ -281,7 +281,7 @@ interface MapPopupOptions {
281
281
  * @noInheritDoc
282
282
  */
283
283
  declare class MapPopup extends EventEmitter<MapPopupEvents> {
284
- readonly map: FlowMap;
284
+ readonly map: FlowCoreMap;
285
285
  readonly options: MapPopupOptions;
286
286
  private _feature?;
287
287
  private _contentContainer;
@@ -296,7 +296,7 @@ declare class MapPopup extends EventEmitter<MapPopupEvents> {
296
296
  * @param map Parent Flo.w map.
297
297
  * @param options Popup options.
298
298
  */
299
- constructor(map: FlowMap, options: MapPopupOptions);
299
+ constructor(map: FlowCoreMap, options: MapPopupOptions);
300
300
  get feature(): MapFeatureIdentifier | undefined;
301
301
  /**
302
302
  * Close the popup.
@@ -10,8 +10,8 @@ import Debug from 'debug';
10
10
  import { c as isPolygon, i as isLineString, b as isPoint } from '../../../shared/flow-rdf-core.1f0901c5.mjs';
11
11
  import { d as isDefined, j as isArray, g as isStringFull, x as isFunction, f as isString, e as ensureArray, o as isNumber, A as randomId, z as isURL, k as isArrayFull, b as isNil, a as isNull, m as isObject } from '../../../shared/flow-rdf-core.25e5f6d7.mjs';
12
12
  import EventEmitter$1, { EventEmitter } from 'eventemitter3';
13
- import * as lit from 'lit-html';
14
13
  import maplibre from '@emuanalytics/maplibre-gl';
14
+ import * as lit from 'lit-html';
15
15
  import turfCircle from '@turf/circle';
16
16
  import turfDistance from '@turf/distance';
17
17
  import { point } from '@turf/helpers';
@@ -1395,15 +1395,17 @@ const _DataJoin = class _DataJoin {
1395
1395
  this.autorunDisposer = autorun(
1396
1396
  async () => {
1397
1397
  let data = this.dataExpression ? toJS(this.dataExpression.value) : this.options.data;
1398
- const missingParams = this.options.parameters.map(
1399
- (p) => p.required && isNil(this.parameterExpressions[p.name].value) ? p.name : void 0
1400
- ).filter((p) => !!p);
1398
+ const missingParams = this.options.parameters.map((p) => p.required && isNil(this.parameterExpressions[p.name].value) ? p.name : void 0).filter((p) => !!p);
1401
1399
  if (isNull(data)) {
1402
1400
  debug$1(`FlowMap<${this.map.id}>: Skipping data join '${this.id}' (null data)`);
1403
1401
  return;
1404
1402
  }
1405
1403
  if (missingParams.length) {
1406
- debug$1(`FlowMap<${this.map.id}>: Skipping data join '${this.id}' (null required parameters: ${missingParams.join(", ")})`);
1404
+ debug$1(
1405
+ `FlowMap<${this.map.id}>: Skipping data join '${this.id}' (null required parameters: ${missingParams.join(
1406
+ ", "
1407
+ )})`
1408
+ );
1407
1409
  return;
1408
1410
  }
1409
1411
  debug$1(`FlowMap<${this.map.id}>: Performing data join '${this.id}'`);
@@ -1,5 +1,5 @@
1
1
  import { Client } from '@emuanalytics/flow-engine-client';
2
- import { IObservableStream, IDisposer, ISubscription } from 'mobx-utils';
2
+ import { ISubscription, IObservableStream, IDisposer } from 'mobx-utils';
3
3
  import { MapLibreEvent, MapMouseEvent as MapMouseEvent$1, MapOptions as MapOptions$1, Map } from '@emuanalytics/maplibre-gl';
4
4
  import EventEmitter$1, { EventEmitter } from 'eventemitter3';
5
5
 
@@ -34,6 +34,16 @@ declare class StateStore {
34
34
  toggle<P extends Path<this, StateStore>>(path: P): boolean;
35
35
  increment<P extends Path<this, StateStore>>(path: P): number;
36
36
  decrement<P extends Path<this, StateStore>>(path: P): number;
37
+ bindControl<TStatePath extends Path<this, StateStore>, TStateValue extends PathValue<this, TStatePath, StateStore>, TElementValue, TElement extends HTMLElement & {
38
+ value: TElementValue;
39
+ }>(el: TElement, statePath: TStatePath, options?: {
40
+ toState?: (value: TElementValue) => TStateValue;
41
+ fromState?: (value: TStateValue) => TElementValue;
42
+ }): ISubscription;
43
+ bindElementProp<TElementProp extends keyof TElement, TElement extends HTMLElement, TStatePath extends Path<this, StateStore>, TStateValue extends PathValue<this, TStatePath, StateStore>>(el: TElement, prop: TElementProp, statePath: TStatePath, options?: {
44
+ fromState?: (value: TStateValue) => TElement[TElementProp];
45
+ }): ISubscription;
46
+ bindElementAttr<TElement extends HTMLElement, P extends Path<this, StateStore>>(el: TElement, attr: string, statePath: P): ISubscription;
37
47
  toStream<P extends Path<this, StateStore>>(path: P, fireImmediately?: boolean): IObservableStream<PathValue<this, P, StateStore>>;
38
48
  autorun(autorunFn: (state: this) => void, name?: string): IDisposer;
39
49
  initialize(annotations?: StoreAnnotations<this>): void;
@@ -1559,10 +1569,10 @@ interface MapEventTypes {
1559
1569
  type MapEventType = keyof MapEventTypes;
1560
1570
  declare class MapEvent<EventType extends string = MapEventType, TOrig = unknown> {
1561
1571
  type: EventType;
1562
- map: FlowMap;
1572
+ map: FlowCoreMap;
1563
1573
  originalEvent?: TOrig;
1564
- static fromMaplibreEvent(type: string, map: FlowMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
1565
- constructor(type: EventType, map: FlowMap, originalEvent?: TOrig);
1574
+ static fromMaplibreEvent(type: string, map: FlowCoreMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
1575
+ constructor(type: EventType, map: FlowCoreMap, originalEvent?: TOrig);
1566
1576
  }
1567
1577
  type MapMouseEventType = 'click' | 'dblClick' | 'mouseMove' | 'mouseOut';
1568
1578
  declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
@@ -1575,24 +1585,24 @@ declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
1575
1585
  */
1576
1586
  lngLat: [number, number];
1577
1587
  features: MapFeature[];
1578
- static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowMap, features: MapFeature[]): MapMouseEvent;
1579
- constructor(type: MapMouseEventType, map: FlowMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
1588
+ static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowCoreMap, features: MapFeature[]): MapMouseEvent;
1589
+ constructor(type: MapMouseEventType, map: FlowCoreMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
1580
1590
  }
1581
1591
  type SourceEventType = 'sourceAdded' | 'sourceRemoved' | 'beforeSourceAdded' | 'beforeSourceRemoved' | 'sourceFeatureState';
1582
1592
  declare class MapSourceEvent extends MapEvent<SourceEventType> {
1583
1593
  source: string;
1584
- constructor(type: SourceEventType, map: FlowMap, source: string);
1594
+ constructor(type: SourceEventType, map: FlowCoreMap, source: string);
1585
1595
  }
1586
1596
  type LoadingEventType = 'loading';
1587
1597
  declare class MapLoadingEvent extends MapEvent<LoadingEventType> {
1588
1598
  loading: boolean;
1589
- constructor(map: FlowMap, loading: boolean);
1599
+ constructor(map: FlowCoreMap, loading: boolean);
1590
1600
  }
1591
1601
  type StyleChangeEventType = 'beforeStyleChanged' | 'styleChanged';
1592
1602
  declare class MapStyleChangeEvent extends MapEvent<StyleChangeEventType> {
1593
1603
  oldStyle: MapStyleSpecification;
1594
1604
  newStyle: MapStyleSpecification;
1595
- constructor(type: StyleChangeEventType, map: FlowMap, oldStyle: MapStyleSpecification, newStyle: MapStyleSpecification);
1605
+ constructor(type: StyleChangeEventType, map: FlowCoreMap, oldStyle: MapStyleSpecification, newStyle: MapStyleSpecification);
1596
1606
  }
1597
1607
 
1598
1608
  interface Handler {
@@ -1611,8 +1621,8 @@ declare class PluginManager {
1611
1621
  private _plugins;
1612
1622
  private _initialized;
1613
1623
  private _exclusivePlugins;
1614
- get map(): FlowMap<StateStore>;
1615
- constructor(map: FlowMap);
1624
+ get map(): FlowCoreMap<StateStore>;
1625
+ constructor(map: FlowCoreMap);
1616
1626
  usePlugin<T extends MapPluginBase>(plugin: PluginConstructor<T>, options?: PluginOptionsType<T>): T;
1617
1627
  getPlugin<T extends MapPluginBase = MapPluginBase>(pluginOrName: PluginConstructor<T> | string): T;
1618
1628
  removePlugin<T extends MapPluginBase>(pluginOrName: PluginConstructor<T> | string): this;
@@ -1653,7 +1663,7 @@ interface MapPluginBase<Options = any, Events extends EventEmitter.ValidEventTyp
1653
1663
  declare abstract class MapPluginBase<Options extends object | undefined = any, Events extends EventEmitter.ValidEventTypes = string | symbol> extends EventEmitter<Events> {
1654
1664
  private _pluginManager;
1655
1665
  options: Options;
1656
- get map(): FlowMap<StateStore>;
1666
+ get map(): FlowCoreMap<StateStore>;
1657
1667
  get pluginManager(): PluginManager;
1658
1668
  abstract readonly name: string;
1659
1669
  constructor(pluginManager: PluginManager, options?: Options);
@@ -1716,7 +1726,7 @@ declare class ImageRegistry {
1716
1726
  interface FeatureStreamOptions {
1717
1727
  featureIds: Array<string | number>;
1718
1728
  fireImmediately?: boolean;
1719
- map: FlowMap;
1729
+ map: FlowCoreMap;
1720
1730
  source: string;
1721
1731
  sourceLayer?: string;
1722
1732
  }
@@ -1746,7 +1756,7 @@ interface MapOptions<TState extends StateStore = StateStore> extends Omit<MapOpt
1746
1756
  featureClickTolerance?: number;
1747
1757
  contextId?: string;
1748
1758
  }
1749
- declare class FlowMap<TState extends StateStore = StateStore> extends EventEmitter$1<MapEventTypes> {
1759
+ declare class FlowCoreMap<TState extends StateStore = StateStore> extends EventEmitter$1<MapEventTypes> {
1750
1760
  private static _defaultOptions;
1751
1761
  private _context;
1752
1762
  private _initialized;
@@ -1854,13 +1864,13 @@ declare class MapRegistry {
1854
1864
  * @param id Map ID.
1855
1865
  * @param map Map to register.
1856
1866
  */
1857
- registerMap(map: FlowMap): FlowMap;
1867
+ registerMap(map: FlowCoreMap): FlowCoreMap;
1858
1868
  /**
1859
1869
  * Un-register a Flo.w map.
1860
1870
  *
1861
1871
  * @param id Map ID.
1862
1872
  */
1863
- unregisterMap(map: FlowMap): void;
1873
+ unregisterMap(map: FlowCoreMap): void;
1864
1874
  /**
1865
1875
  * Retrieve the specified map.
1866
1876
  *
@@ -1868,7 +1878,7 @@ declare class MapRegistry {
1868
1878
  *
1869
1879
  * @param id Map ID.
1870
1880
  */
1871
- getMap(id: string): Promise<FlowMap>;
1881
+ getMap(id: string): Promise<FlowCoreMap>;
1872
1882
  }
1873
1883
 
1874
1884
  declare const DEFAULT_CONTEXT_ID = "default";
@@ -1903,4 +1913,4 @@ declare class FlowContext<TState extends StateStore = StateStore> {
1903
1913
  evaluateExpression(expr: string): any;
1904
1914
  }
1905
1915
 
1906
- export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J, FlowMap as K, LineLayerStyleBuilder as L, type MapStyleSpecification as M, Query as N, query as O, queryMany as P, QueryRegistry as Q, ReactiveExpression as R, StateStore as S, queryOne as T, type QueryResultFormat as U, type QueryAttribute as V, type QueryWhereClauses as W, type QueryExtraParams as X, type QueryOrderClause as Y, type QuerySampleOptions as Z, type QueryDefinition as _, FlowContext as a, type QueryDefinitionFn as a0, type QueryResultTransformFn as a1, traceReaction as a2, type Path as a3, type PathValue as a4, type StoreConstructor as a5, type StoreAnnotations as a6, type SerializationFormat as a7, MapEvent as a8, type MapFeatureId as a9, MapPluginBase as aa, PluginManager as ab, MapSourceEvent as ac, MapMouseEvent as ad, MapFeatureStream as ae, type PartialBy as af, MapStyleChangeEvent as ag, type PluginOptionsType as ah, type PluginEventsType as ai, type PluginConstructor as aj, type EventHandlers as ak, MapDataSource as b, MapLayer as c, MapRegistry as d, type FlowEngineEndpoint as e, type MapLayerType as f, FillLayerStyleBuilder as g, SymbolLayerStyleBuilder as h, FillExtrusionLayerStyleBuilder as i, RasterLayerStyleBuilder as j, HillshadeLayerStyleBuilder as k, layerStyle as l, MapLayerStyleBuilder as m, StyleExpression as n, expr as o, type MapLayerOptions as p, type MapLayerExpression as q, type MapLayerSpecification as r, type MapLayerPropertyMetadataIndex as s, type MapDataSourceType as t, type MapDataSourceOptions as u, type MapDataSourceSpecification as v, type MapGeojsonData as w, type MapAnimationOptions as x, type MapCenterOptions as y, type MapFeature as z };
1916
+ export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J, FlowCoreMap as K, LineLayerStyleBuilder as L, type MapStyleSpecification as M, Query as N, query as O, queryMany as P, QueryRegistry as Q, ReactiveExpression as R, StateStore as S, queryOne as T, type QueryResultFormat as U, type QueryAttribute as V, type QueryWhereClauses as W, type QueryExtraParams as X, type QueryOrderClause as Y, type QuerySampleOptions as Z, type QueryDefinition as _, FlowContext as a, type QueryDefinitionFn as a0, type QueryResultTransformFn as a1, traceReaction as a2, type Path as a3, type PathValue as a4, type StoreConstructor as a5, type StoreAnnotations as a6, type SerializationFormat as a7, MapEvent as a8, type MapFeatureId as a9, MapPluginBase as aa, PluginManager as ab, MapSourceEvent as ac, MapMouseEvent as ad, MapFeatureStream as ae, type PartialBy as af, MapStyleChangeEvent as ag, type PluginOptionsType as ah, type PluginEventsType as ai, type PluginConstructor as aj, type EventHandlers as ak, MapDataSource as b, MapLayer as c, MapRegistry as d, type FlowEngineEndpoint as e, type MapLayerType as f, FillLayerStyleBuilder as g, SymbolLayerStyleBuilder as h, FillExtrusionLayerStyleBuilder as i, RasterLayerStyleBuilder as j, HillshadeLayerStyleBuilder as k, layerStyle as l, MapLayerStyleBuilder as m, StyleExpression as n, expr as o, type MapLayerOptions as p, type MapLayerExpression as q, type MapLayerSpecification as r, type MapLayerPropertyMetadataIndex as s, type MapDataSourceType as t, type MapDataSourceOptions as u, type MapDataSourceSpecification as v, type MapGeojsonData as w, type MapAnimationOptions as x, type MapCenterOptions as y, type MapFeature as z };
@@ -1,5 +1,5 @@
1
1
  import { Client } from '@emuanalytics/flow-engine-client';
2
- import { IObservableStream, IDisposer, ISubscription } from 'mobx-utils';
2
+ import { ISubscription, IObservableStream, IDisposer } from 'mobx-utils';
3
3
  import { MapLibreEvent, MapMouseEvent as MapMouseEvent$1, MapOptions as MapOptions$1, Map } from '@emuanalytics/maplibre-gl';
4
4
  import EventEmitter$1, { EventEmitter } from 'eventemitter3';
5
5
 
@@ -34,6 +34,16 @@ declare class StateStore {
34
34
  toggle<P extends Path<this, StateStore>>(path: P): boolean;
35
35
  increment<P extends Path<this, StateStore>>(path: P): number;
36
36
  decrement<P extends Path<this, StateStore>>(path: P): number;
37
+ bindControl<TStatePath extends Path<this, StateStore>, TStateValue extends PathValue<this, TStatePath, StateStore>, TElementValue, TElement extends HTMLElement & {
38
+ value: TElementValue;
39
+ }>(el: TElement, statePath: TStatePath, options?: {
40
+ toState?: (value: TElementValue) => TStateValue;
41
+ fromState?: (value: TStateValue) => TElementValue;
42
+ }): ISubscription;
43
+ bindElementProp<TElementProp extends keyof TElement, TElement extends HTMLElement, TStatePath extends Path<this, StateStore>, TStateValue extends PathValue<this, TStatePath, StateStore>>(el: TElement, prop: TElementProp, statePath: TStatePath, options?: {
44
+ fromState?: (value: TStateValue) => TElement[TElementProp];
45
+ }): ISubscription;
46
+ bindElementAttr<TElement extends HTMLElement, P extends Path<this, StateStore>>(el: TElement, attr: string, statePath: P): ISubscription;
37
47
  toStream<P extends Path<this, StateStore>>(path: P, fireImmediately?: boolean): IObservableStream<PathValue<this, P, StateStore>>;
38
48
  autorun(autorunFn: (state: this) => void, name?: string): IDisposer;
39
49
  initialize(annotations?: StoreAnnotations<this>): void;
@@ -1559,10 +1569,10 @@ interface MapEventTypes {
1559
1569
  type MapEventType = keyof MapEventTypes;
1560
1570
  declare class MapEvent<EventType extends string = MapEventType, TOrig = unknown> {
1561
1571
  type: EventType;
1562
- map: FlowMap;
1572
+ map: FlowCoreMap;
1563
1573
  originalEvent?: TOrig;
1564
- static fromMaplibreEvent(type: string, map: FlowMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
1565
- constructor(type: EventType, map: FlowMap, originalEvent?: TOrig);
1574
+ static fromMaplibreEvent(type: string, map: FlowCoreMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
1575
+ constructor(type: EventType, map: FlowCoreMap, originalEvent?: TOrig);
1566
1576
  }
1567
1577
  type MapMouseEventType = 'click' | 'dblClick' | 'mouseMove' | 'mouseOut';
1568
1578
  declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
@@ -1575,24 +1585,24 @@ declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
1575
1585
  */
1576
1586
  lngLat: [number, number];
1577
1587
  features: MapFeature[];
1578
- static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowMap, features: MapFeature[]): MapMouseEvent;
1579
- constructor(type: MapMouseEventType, map: FlowMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
1588
+ static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowCoreMap, features: MapFeature[]): MapMouseEvent;
1589
+ constructor(type: MapMouseEventType, map: FlowCoreMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
1580
1590
  }
1581
1591
  type SourceEventType = 'sourceAdded' | 'sourceRemoved' | 'beforeSourceAdded' | 'beforeSourceRemoved' | 'sourceFeatureState';
1582
1592
  declare class MapSourceEvent extends MapEvent<SourceEventType> {
1583
1593
  source: string;
1584
- constructor(type: SourceEventType, map: FlowMap, source: string);
1594
+ constructor(type: SourceEventType, map: FlowCoreMap, source: string);
1585
1595
  }
1586
1596
  type LoadingEventType = 'loading';
1587
1597
  declare class MapLoadingEvent extends MapEvent<LoadingEventType> {
1588
1598
  loading: boolean;
1589
- constructor(map: FlowMap, loading: boolean);
1599
+ constructor(map: FlowCoreMap, loading: boolean);
1590
1600
  }
1591
1601
  type StyleChangeEventType = 'beforeStyleChanged' | 'styleChanged';
1592
1602
  declare class MapStyleChangeEvent extends MapEvent<StyleChangeEventType> {
1593
1603
  oldStyle: MapStyleSpecification;
1594
1604
  newStyle: MapStyleSpecification;
1595
- constructor(type: StyleChangeEventType, map: FlowMap, oldStyle: MapStyleSpecification, newStyle: MapStyleSpecification);
1605
+ constructor(type: StyleChangeEventType, map: FlowCoreMap, oldStyle: MapStyleSpecification, newStyle: MapStyleSpecification);
1596
1606
  }
1597
1607
 
1598
1608
  interface Handler {
@@ -1611,8 +1621,8 @@ declare class PluginManager {
1611
1621
  private _plugins;
1612
1622
  private _initialized;
1613
1623
  private _exclusivePlugins;
1614
- get map(): FlowMap<StateStore>;
1615
- constructor(map: FlowMap);
1624
+ get map(): FlowCoreMap<StateStore>;
1625
+ constructor(map: FlowCoreMap);
1616
1626
  usePlugin<T extends MapPluginBase>(plugin: PluginConstructor<T>, options?: PluginOptionsType<T>): T;
1617
1627
  getPlugin<T extends MapPluginBase = MapPluginBase>(pluginOrName: PluginConstructor<T> | string): T;
1618
1628
  removePlugin<T extends MapPluginBase>(pluginOrName: PluginConstructor<T> | string): this;
@@ -1653,7 +1663,7 @@ interface MapPluginBase<Options = any, Events extends EventEmitter.ValidEventTyp
1653
1663
  declare abstract class MapPluginBase<Options extends object | undefined = any, Events extends EventEmitter.ValidEventTypes = string | symbol> extends EventEmitter<Events> {
1654
1664
  private _pluginManager;
1655
1665
  options: Options;
1656
- get map(): FlowMap<StateStore>;
1666
+ get map(): FlowCoreMap<StateStore>;
1657
1667
  get pluginManager(): PluginManager;
1658
1668
  abstract readonly name: string;
1659
1669
  constructor(pluginManager: PluginManager, options?: Options);
@@ -1716,7 +1726,7 @@ declare class ImageRegistry {
1716
1726
  interface FeatureStreamOptions {
1717
1727
  featureIds: Array<string | number>;
1718
1728
  fireImmediately?: boolean;
1719
- map: FlowMap;
1729
+ map: FlowCoreMap;
1720
1730
  source: string;
1721
1731
  sourceLayer?: string;
1722
1732
  }
@@ -1746,7 +1756,7 @@ interface MapOptions<TState extends StateStore = StateStore> extends Omit<MapOpt
1746
1756
  featureClickTolerance?: number;
1747
1757
  contextId?: string;
1748
1758
  }
1749
- declare class FlowMap<TState extends StateStore = StateStore> extends EventEmitter$1<MapEventTypes> {
1759
+ declare class FlowCoreMap<TState extends StateStore = StateStore> extends EventEmitter$1<MapEventTypes> {
1750
1760
  private static _defaultOptions;
1751
1761
  private _context;
1752
1762
  private _initialized;
@@ -1854,13 +1864,13 @@ declare class MapRegistry {
1854
1864
  * @param id Map ID.
1855
1865
  * @param map Map to register.
1856
1866
  */
1857
- registerMap(map: FlowMap): FlowMap;
1867
+ registerMap(map: FlowCoreMap): FlowCoreMap;
1858
1868
  /**
1859
1869
  * Un-register a Flo.w map.
1860
1870
  *
1861
1871
  * @param id Map ID.
1862
1872
  */
1863
- unregisterMap(map: FlowMap): void;
1873
+ unregisterMap(map: FlowCoreMap): void;
1864
1874
  /**
1865
1875
  * Retrieve the specified map.
1866
1876
  *
@@ -1868,7 +1878,7 @@ declare class MapRegistry {
1868
1878
  *
1869
1879
  * @param id Map ID.
1870
1880
  */
1871
- getMap(id: string): Promise<FlowMap>;
1881
+ getMap(id: string): Promise<FlowCoreMap>;
1872
1882
  }
1873
1883
 
1874
1884
  declare const DEFAULT_CONTEXT_ID = "default";
@@ -1903,4 +1913,4 @@ declare class FlowContext<TState extends StateStore = StateStore> {
1903
1913
  evaluateExpression(expr: string): any;
1904
1914
  }
1905
1915
 
1906
- export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J, FlowMap as K, LineLayerStyleBuilder as L, type MapStyleSpecification as M, Query as N, query as O, queryMany as P, QueryRegistry as Q, ReactiveExpression as R, StateStore as S, queryOne as T, type QueryResultFormat as U, type QueryAttribute as V, type QueryWhereClauses as W, type QueryExtraParams as X, type QueryOrderClause as Y, type QuerySampleOptions as Z, type QueryDefinition as _, FlowContext as a, type QueryDefinitionFn as a0, type QueryResultTransformFn as a1, traceReaction as a2, type Path as a3, type PathValue as a4, type StoreConstructor as a5, type StoreAnnotations as a6, type SerializationFormat as a7, MapEvent as a8, type MapFeatureId as a9, MapPluginBase as aa, PluginManager as ab, MapSourceEvent as ac, MapMouseEvent as ad, MapFeatureStream as ae, type PartialBy as af, MapStyleChangeEvent as ag, type PluginOptionsType as ah, type PluginEventsType as ai, type PluginConstructor as aj, type EventHandlers as ak, MapDataSource as b, MapLayer as c, MapRegistry as d, type FlowEngineEndpoint as e, type MapLayerType as f, FillLayerStyleBuilder as g, SymbolLayerStyleBuilder as h, FillExtrusionLayerStyleBuilder as i, RasterLayerStyleBuilder as j, HillshadeLayerStyleBuilder as k, layerStyle as l, MapLayerStyleBuilder as m, StyleExpression as n, expr as o, type MapLayerOptions as p, type MapLayerExpression as q, type MapLayerSpecification as r, type MapLayerPropertyMetadataIndex as s, type MapDataSourceType as t, type MapDataSourceOptions as u, type MapDataSourceSpecification as v, type MapGeojsonData as w, type MapAnimationOptions as x, type MapCenterOptions as y, type MapFeature as z };
1916
+ export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J, FlowCoreMap as K, LineLayerStyleBuilder as L, type MapStyleSpecification as M, Query as N, query as O, queryMany as P, QueryRegistry as Q, ReactiveExpression as R, StateStore as S, queryOne as T, type QueryResultFormat as U, type QueryAttribute as V, type QueryWhereClauses as W, type QueryExtraParams as X, type QueryOrderClause as Y, type QuerySampleOptions as Z, type QueryDefinition as _, FlowContext as a, type QueryDefinitionFn as a0, type QueryResultTransformFn as a1, traceReaction as a2, type Path as a3, type PathValue as a4, type StoreConstructor as a5, type StoreAnnotations as a6, type SerializationFormat as a7, MapEvent as a8, type MapFeatureId as a9, MapPluginBase as aa, PluginManager as ab, MapSourceEvent as ac, MapMouseEvent as ad, MapFeatureStream as ae, type PartialBy as af, MapStyleChangeEvent as ag, type PluginOptionsType as ah, type PluginEventsType as ai, type PluginConstructor as aj, type EventHandlers as ak, MapDataSource as b, MapLayer as c, MapRegistry as d, type FlowEngineEndpoint as e, type MapLayerType as f, FillLayerStyleBuilder as g, SymbolLayerStyleBuilder as h, FillExtrusionLayerStyleBuilder as i, RasterLayerStyleBuilder as j, HillshadeLayerStyleBuilder as k, layerStyle as l, MapLayerStyleBuilder as m, StyleExpression as n, expr as o, type MapLayerOptions as p, type MapLayerExpression as q, type MapLayerSpecification as r, type MapLayerPropertyMetadataIndex as s, type MapDataSourceType as t, type MapDataSourceOptions as u, type MapDataSourceSpecification as v, type MapGeojsonData as w, type MapAnimationOptions as x, type MapCenterOptions as y, type MapFeature as z };
@@ -1,5 +1,5 @@
1
1
  import { Client } from '@emuanalytics/flow-engine-client';
2
- import { IObservableStream, IDisposer, ISubscription } from 'mobx-utils';
2
+ import { ISubscription, IObservableStream, IDisposer } from 'mobx-utils';
3
3
  import { MapLibreEvent, MapMouseEvent as MapMouseEvent$1, MapOptions as MapOptions$1, Map } from '@emuanalytics/maplibre-gl';
4
4
  import EventEmitter$1, { EventEmitter } from 'eventemitter3';
5
5
 
@@ -34,6 +34,16 @@ declare class StateStore {
34
34
  toggle<P extends Path<this, StateStore>>(path: P): boolean;
35
35
  increment<P extends Path<this, StateStore>>(path: P): number;
36
36
  decrement<P extends Path<this, StateStore>>(path: P): number;
37
+ bindControl<TStatePath extends Path<this, StateStore>, TStateValue extends PathValue<this, TStatePath, StateStore>, TElementValue, TElement extends HTMLElement & {
38
+ value: TElementValue;
39
+ }>(el: TElement, statePath: TStatePath, options?: {
40
+ toState?: (value: TElementValue) => TStateValue;
41
+ fromState?: (value: TStateValue) => TElementValue;
42
+ }): ISubscription;
43
+ bindElementProp<TElementProp extends keyof TElement, TElement extends HTMLElement, TStatePath extends Path<this, StateStore>, TStateValue extends PathValue<this, TStatePath, StateStore>>(el: TElement, prop: TElementProp, statePath: TStatePath, options?: {
44
+ fromState?: (value: TStateValue) => TElement[TElementProp];
45
+ }): ISubscription;
46
+ bindElementAttr<TElement extends HTMLElement, P extends Path<this, StateStore>>(el: TElement, attr: string, statePath: P): ISubscription;
37
47
  toStream<P extends Path<this, StateStore>>(path: P, fireImmediately?: boolean): IObservableStream<PathValue<this, P, StateStore>>;
38
48
  autorun(autorunFn: (state: this) => void, name?: string): IDisposer;
39
49
  initialize(annotations?: StoreAnnotations<this>): void;
@@ -1559,10 +1569,10 @@ interface MapEventTypes {
1559
1569
  type MapEventType = keyof MapEventTypes;
1560
1570
  declare class MapEvent<EventType extends string = MapEventType, TOrig = unknown> {
1561
1571
  type: EventType;
1562
- map: FlowMap;
1572
+ map: FlowCoreMap;
1563
1573
  originalEvent?: TOrig;
1564
- static fromMaplibreEvent(type: string, map: FlowMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
1565
- constructor(type: EventType, map: FlowMap, originalEvent?: TOrig);
1574
+ static fromMaplibreEvent(type: string, map: FlowCoreMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
1575
+ constructor(type: EventType, map: FlowCoreMap, originalEvent?: TOrig);
1566
1576
  }
1567
1577
  type MapMouseEventType = 'click' | 'dblClick' | 'mouseMove' | 'mouseOut';
1568
1578
  declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
@@ -1575,24 +1585,24 @@ declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
1575
1585
  */
1576
1586
  lngLat: [number, number];
1577
1587
  features: MapFeature[];
1578
- static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowMap, features: MapFeature[]): MapMouseEvent;
1579
- constructor(type: MapMouseEventType, map: FlowMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
1588
+ static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowCoreMap, features: MapFeature[]): MapMouseEvent;
1589
+ constructor(type: MapMouseEventType, map: FlowCoreMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
1580
1590
  }
1581
1591
  type SourceEventType = 'sourceAdded' | 'sourceRemoved' | 'beforeSourceAdded' | 'beforeSourceRemoved' | 'sourceFeatureState';
1582
1592
  declare class MapSourceEvent extends MapEvent<SourceEventType> {
1583
1593
  source: string;
1584
- constructor(type: SourceEventType, map: FlowMap, source: string);
1594
+ constructor(type: SourceEventType, map: FlowCoreMap, source: string);
1585
1595
  }
1586
1596
  type LoadingEventType = 'loading';
1587
1597
  declare class MapLoadingEvent extends MapEvent<LoadingEventType> {
1588
1598
  loading: boolean;
1589
- constructor(map: FlowMap, loading: boolean);
1599
+ constructor(map: FlowCoreMap, loading: boolean);
1590
1600
  }
1591
1601
  type StyleChangeEventType = 'beforeStyleChanged' | 'styleChanged';
1592
1602
  declare class MapStyleChangeEvent extends MapEvent<StyleChangeEventType> {
1593
1603
  oldStyle: MapStyleSpecification;
1594
1604
  newStyle: MapStyleSpecification;
1595
- constructor(type: StyleChangeEventType, map: FlowMap, oldStyle: MapStyleSpecification, newStyle: MapStyleSpecification);
1605
+ constructor(type: StyleChangeEventType, map: FlowCoreMap, oldStyle: MapStyleSpecification, newStyle: MapStyleSpecification);
1596
1606
  }
1597
1607
 
1598
1608
  interface Handler {
@@ -1611,8 +1621,8 @@ declare class PluginManager {
1611
1621
  private _plugins;
1612
1622
  private _initialized;
1613
1623
  private _exclusivePlugins;
1614
- get map(): FlowMap<StateStore>;
1615
- constructor(map: FlowMap);
1624
+ get map(): FlowCoreMap<StateStore>;
1625
+ constructor(map: FlowCoreMap);
1616
1626
  usePlugin<T extends MapPluginBase>(plugin: PluginConstructor<T>, options?: PluginOptionsType<T>): T;
1617
1627
  getPlugin<T extends MapPluginBase = MapPluginBase>(pluginOrName: PluginConstructor<T> | string): T;
1618
1628
  removePlugin<T extends MapPluginBase>(pluginOrName: PluginConstructor<T> | string): this;
@@ -1653,7 +1663,7 @@ interface MapPluginBase<Options = any, Events extends EventEmitter.ValidEventTyp
1653
1663
  declare abstract class MapPluginBase<Options extends object | undefined = any, Events extends EventEmitter.ValidEventTypes = string | symbol> extends EventEmitter<Events> {
1654
1664
  private _pluginManager;
1655
1665
  options: Options;
1656
- get map(): FlowMap<StateStore>;
1666
+ get map(): FlowCoreMap<StateStore>;
1657
1667
  get pluginManager(): PluginManager;
1658
1668
  abstract readonly name: string;
1659
1669
  constructor(pluginManager: PluginManager, options?: Options);
@@ -1716,7 +1726,7 @@ declare class ImageRegistry {
1716
1726
  interface FeatureStreamOptions {
1717
1727
  featureIds: Array<string | number>;
1718
1728
  fireImmediately?: boolean;
1719
- map: FlowMap;
1729
+ map: FlowCoreMap;
1720
1730
  source: string;
1721
1731
  sourceLayer?: string;
1722
1732
  }
@@ -1746,7 +1756,7 @@ interface MapOptions<TState extends StateStore = StateStore> extends Omit<MapOpt
1746
1756
  featureClickTolerance?: number;
1747
1757
  contextId?: string;
1748
1758
  }
1749
- declare class FlowMap<TState extends StateStore = StateStore> extends EventEmitter$1<MapEventTypes> {
1759
+ declare class FlowCoreMap<TState extends StateStore = StateStore> extends EventEmitter$1<MapEventTypes> {
1750
1760
  private static _defaultOptions;
1751
1761
  private _context;
1752
1762
  private _initialized;
@@ -1854,13 +1864,13 @@ declare class MapRegistry {
1854
1864
  * @param id Map ID.
1855
1865
  * @param map Map to register.
1856
1866
  */
1857
- registerMap(map: FlowMap): FlowMap;
1867
+ registerMap(map: FlowCoreMap): FlowCoreMap;
1858
1868
  /**
1859
1869
  * Un-register a Flo.w map.
1860
1870
  *
1861
1871
  * @param id Map ID.
1862
1872
  */
1863
- unregisterMap(map: FlowMap): void;
1873
+ unregisterMap(map: FlowCoreMap): void;
1864
1874
  /**
1865
1875
  * Retrieve the specified map.
1866
1876
  *
@@ -1868,7 +1878,7 @@ declare class MapRegistry {
1868
1878
  *
1869
1879
  * @param id Map ID.
1870
1880
  */
1871
- getMap(id: string): Promise<FlowMap>;
1881
+ getMap(id: string): Promise<FlowCoreMap>;
1872
1882
  }
1873
1883
 
1874
1884
  declare const DEFAULT_CONTEXT_ID = "default";
@@ -1903,4 +1913,4 @@ declare class FlowContext<TState extends StateStore = StateStore> {
1903
1913
  evaluateExpression(expr: string): any;
1904
1914
  }
1905
1915
 
1906
- export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J, FlowMap as K, LineLayerStyleBuilder as L, type MapStyleSpecification as M, Query as N, query as O, queryMany as P, QueryRegistry as Q, ReactiveExpression as R, StateStore as S, queryOne as T, type QueryResultFormat as U, type QueryAttribute as V, type QueryWhereClauses as W, type QueryExtraParams as X, type QueryOrderClause as Y, type QuerySampleOptions as Z, type QueryDefinition as _, FlowContext as a, type QueryDefinitionFn as a0, type QueryResultTransformFn as a1, traceReaction as a2, type Path as a3, type PathValue as a4, type StoreConstructor as a5, type StoreAnnotations as a6, type SerializationFormat as a7, MapEvent as a8, type MapFeatureId as a9, MapPluginBase as aa, PluginManager as ab, MapSourceEvent as ac, MapMouseEvent as ad, MapFeatureStream as ae, type PartialBy as af, MapStyleChangeEvent as ag, type PluginOptionsType as ah, type PluginEventsType as ai, type PluginConstructor as aj, type EventHandlers as ak, MapDataSource as b, MapLayer as c, MapRegistry as d, type FlowEngineEndpoint as e, type MapLayerType as f, FillLayerStyleBuilder as g, SymbolLayerStyleBuilder as h, FillExtrusionLayerStyleBuilder as i, RasterLayerStyleBuilder as j, HillshadeLayerStyleBuilder as k, layerStyle as l, MapLayerStyleBuilder as m, StyleExpression as n, expr as o, type MapLayerOptions as p, type MapLayerExpression as q, type MapLayerSpecification as r, type MapLayerPropertyMetadataIndex as s, type MapDataSourceType as t, type MapDataSourceOptions as u, type MapDataSourceSpecification as v, type MapGeojsonData as w, type MapAnimationOptions as x, type MapCenterOptions as y, type MapFeature as z };
1916
+ export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J, FlowCoreMap as K, LineLayerStyleBuilder as L, type MapStyleSpecification as M, Query as N, query as O, queryMany as P, QueryRegistry as Q, ReactiveExpression as R, StateStore as S, queryOne as T, type QueryResultFormat as U, type QueryAttribute as V, type QueryWhereClauses as W, type QueryExtraParams as X, type QueryOrderClause as Y, type QuerySampleOptions as Z, type QueryDefinition as _, FlowContext as a, type QueryDefinitionFn as a0, type QueryResultTransformFn as a1, traceReaction as a2, type Path as a3, type PathValue as a4, type StoreConstructor as a5, type StoreAnnotations as a6, type SerializationFormat as a7, MapEvent as a8, type MapFeatureId as a9, MapPluginBase as aa, PluginManager as ab, MapSourceEvent as ac, MapMouseEvent as ad, MapFeatureStream as ae, type PartialBy as af, MapStyleChangeEvent as ag, type PluginOptionsType as ah, type PluginEventsType as ai, type PluginConstructor as aj, type EventHandlers as ak, MapDataSource as b, MapLayer as c, MapRegistry as d, type FlowEngineEndpoint as e, type MapLayerType as f, FillLayerStyleBuilder as g, SymbolLayerStyleBuilder as h, FillExtrusionLayerStyleBuilder as i, RasterLayerStyleBuilder as j, HillshadeLayerStyleBuilder as k, layerStyle as l, MapLayerStyleBuilder as m, StyleExpression as n, expr as o, type MapLayerOptions as p, type MapLayerExpression as q, type MapLayerSpecification as r, type MapLayerPropertyMetadataIndex as s, type MapDataSourceType as t, type MapDataSourceOptions as u, type MapDataSourceSpecification as v, type MapGeojsonData as w, type MapAnimationOptions as x, type MapCenterOptions as y, type MapFeature as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emuanalytics/flow-rdf-core",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "type": "module",