@emuanalytics/flow-rdf-core 4.0.4 → 4.0.6
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/README.md +1 -64
- package/dist/index.d.mts +36 -31
- package/dist/index.d.ts +36 -31
- package/dist/index.mjs +20 -3249
- package/dist/lib/context/context-registry.mjs +63 -0
- package/dist/lib/context/debugger.mjs +240 -0
- package/dist/lib/context/flow-context.mjs +61 -0
- package/dist/lib/context/global-state.mjs +70 -0
- package/dist/lib/context/map-registry.mjs +59 -0
- package/dist/lib/context/query-registry.mjs +53 -0
- package/dist/lib/errors/flow-error.mjs +10 -0
- package/dist/lib/errors/flow-expression-error.mjs +14 -0
- package/dist/lib/errors/flow-map-error.mjs +9 -0
- package/dist/lib/expressions/expression-parser.mjs +198 -0
- package/dist/lib/expressions/functions/from-palette.mjs +75 -0
- package/dist/lib/expressions/functions/regex.mjs +25 -0
- package/dist/lib/expressions/functions/state.mjs +25 -0
- package/dist/lib/expressions/parser-helpers.mjs +37 -0
- package/dist/lib/expressions/reactive-expression.mjs +253 -0
- package/dist/lib/map/flow-core-map.mjs +749 -0
- package/dist/lib/map/plugins/annotations/annotation-layers.mjs +163 -0
- package/dist/lib/map/plugins/annotations/annotation.events.mjs +27 -0
- package/dist/lib/map/plugins/annotations/annotation.plugin.mjs +498 -0
- package/dist/lib/map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.mjs +67 -0
- package/dist/lib/map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.mjs +65 -0
- package/dist/lib/map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.mjs +15 -0
- package/dist/lib/map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.mjs +20 -0
- package/dist/lib/map/plugins/data-join.plugin.mjs +173 -0
- package/dist/lib/map/plugins/export/export.plugin.mjs +21 -0
- package/dist/lib/map/plugins/export/map-exporter.mjs +177 -0
- package/dist/lib/map/plugins/hover-effect.plugin.mjs +58 -0
- package/dist/lib/map/plugins/index.d.mts +37 -72
- package/dist/lib/map/plugins/index.d.ts +37 -72
- package/dist/lib/map/plugins/index.mjs +11 -1810
- package/dist/lib/map/plugins/keyboard-shortcut-manager.mjs +120 -0
- package/dist/lib/map/plugins/map-plugin-base.mjs +25 -0
- package/dist/lib/map/plugins/plugin-manager.mjs +135 -0
- package/dist/lib/map/plugins/popup.plugin.mjs +55 -0
- package/dist/lib/map/plugins/selection/selection.events.mjs +21 -0
- package/dist/lib/map/plugins/selection/selection.plugin.mjs +136 -0
- package/dist/lib/map/plugins/selection/source-selection.mjs +156 -0
- package/dist/lib/map/plugins/url-sync.plugin.mjs +55 -0
- package/dist/lib/map/support/image-registry.mjs +82 -0
- package/dist/lib/map/support/map-events.mjs +71 -0
- package/dist/lib/map/support/map-feature-stream.mjs +158 -0
- package/dist/lib/map/support/map-popup.mjs +159 -0
- package/dist/lib/map/types.mjs +7 -0
- package/dist/lib/map-style/map-data-source.mjs +192 -0
- package/dist/lib/map-style/map-layer-style-builder-generated.mjs +1307 -0
- package/dist/lib/map-style/map-layer-style-builder.mjs +86 -0
- package/dist/lib/map-style/map-layer.mjs +223 -0
- package/dist/lib/map-style/map-style.mjs +178 -0
- package/dist/lib/queries/async-committer.mjs +30 -0
- package/dist/lib/queries/query.mjs +172 -0
- package/dist/lib/state-store/decorators.mjs +83 -0
- package/dist/lib/state-store/state-store.mjs +534 -0
- package/dist/lib/state-store/utils.mjs +7 -0
- package/dist/lib/utils/announce.mjs +12 -0
- package/dist/lib/utils/assert.mjs +12 -0
- package/dist/{shared/flow-rdf-core.187cb345.mjs → lib/utils/debounce.mjs} +3 -39
- package/dist/lib/utils/decorators.mjs +59 -0
- package/dist/lib/utils/deferred.mjs +11 -0
- package/dist/lib/utils/ensure-array.mjs +16 -0
- package/dist/{shared/flow-rdf-core.1f0901c5.mjs → lib/utils/feature-type-checks.mjs} +2 -2
- package/dist/lib/utils/functional.mjs +22 -0
- package/dist/lib/utils/global.mjs +18 -0
- package/dist/lib/utils/index.mjs +8 -5
- package/dist/lib/utils/random-id.mjs +9 -0
- package/dist/lib/utils/string-utils.mjs +3 -0
- package/dist/lib/utils/throttle.mjs +20 -0
- package/dist/{shared/flow-rdf-core.25e5f6d7.mjs → lib/utils/type-checks.mjs} +1 -26
- package/dist/lib/utils/watchable-promise.mjs +55 -0
- package/dist/package.json.mjs +3 -0
- package/dist/shared/{flow-rdf-core.4dde996e.d.cts → flow-rdf-core.cef13c7e.d.mts} +1315 -172
- package/dist/shared/{flow-rdf-core.4dde996e.d.ts → flow-rdf-core.cef13c7e.d.ts} +1315 -172
- package/package.json +4 -8
- package/dist/index.cjs +0 -3316
- package/dist/index.d.cts +0 -90
- package/dist/lib/map/plugins/index.cjs +0 -1850
- package/dist/lib/map/plugins/index.d.cts +0 -345
- package/dist/lib/utils/index.cjs +0 -48
- package/dist/lib/utils/index.d.cts +0 -160
- package/dist/shared/flow-rdf-core.06e85a6c.cjs +0 -1394
- package/dist/shared/flow-rdf-core.4dde996e.d.mts +0 -1916
- package/dist/shared/flow-rdf-core.55c169ca.cjs +0 -150
- package/dist/shared/flow-rdf-core.63162669.d.cts +0 -10
- package/dist/shared/flow-rdf-core.65045caf.mjs +0 -1360
- package/dist/shared/flow-rdf-core.a82b9be4.cjs +0 -34
- package/dist/shared/flow-rdf-core.f50908f0.cjs +0 -102
package/dist/index.d.cts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
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
|
-
export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
|
|
4
|
-
export { makeAutoObservable, makeObservable } from 'mobx';
|
|
5
|
-
import '@emuanalytics/flow-engine-client';
|
|
6
|
-
import '@emuanalytics/maplibre-gl';
|
|
7
|
-
import 'eventemitter3';
|
|
8
|
-
|
|
9
|
-
interface SyncAnnotation<T = any> extends Annotation {
|
|
10
|
-
serialize(val: T): string;
|
|
11
|
-
deserialize(val: string, target?: T): T;
|
|
12
|
-
}
|
|
13
|
-
declare const serialize: PropertyDecorator & SyncAnnotation<any> & {
|
|
14
|
-
raw: PropertyDecorator & SyncAnnotation<any>;
|
|
15
|
-
string: PropertyDecorator & SyncAnnotation<string>;
|
|
16
|
-
number: PropertyDecorator & SyncAnnotation<number>;
|
|
17
|
-
json: PropertyDecorator & SyncAnnotation<Record<string, boolean>>;
|
|
18
|
-
state: PropertyDecorator & SyncAnnotation<any>;
|
|
19
|
-
};
|
|
20
|
-
interface ReactiveAnnotation extends Annotation {
|
|
21
|
-
mobxAnnotation: any;
|
|
22
|
-
}
|
|
23
|
-
declare const observable: PropertyDecorator & ReactiveAnnotation & {
|
|
24
|
-
deep: PropertyDecorator & ReactiveAnnotation;
|
|
25
|
-
ref: PropertyDecorator & ReactiveAnnotation;
|
|
26
|
-
struct: PropertyDecorator & ReactiveAnnotation;
|
|
27
|
-
shallow: PropertyDecorator & ReactiveAnnotation;
|
|
28
|
-
};
|
|
29
|
-
declare const computed: PropertyDecorator & ReactiveAnnotation & {
|
|
30
|
-
struct: PropertyDecorator & ReactiveAnnotation;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
declare class ContextRegistry {
|
|
34
|
-
private static _defaultOptions;
|
|
35
|
-
private _contexts;
|
|
36
|
-
/**
|
|
37
|
-
* Initialize a new Flo.w context.
|
|
38
|
-
*
|
|
39
|
-
* @param options Context options.
|
|
40
|
-
*/
|
|
41
|
-
initializeContext<TState extends StateStore = StateStore>(options: FlowContextOptions<TState>): FlowContext<TState>;
|
|
42
|
-
uninitializeContext(contextId?: string): void;
|
|
43
|
-
getContext<TState extends StateStore = StateStore>(id?: string): Promise<FlowContext<TState>>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
declare class FlowRdfCoreGlobals {
|
|
47
|
-
/**
|
|
48
|
-
* FlowRdfCoreGlobals version.
|
|
49
|
-
* Compatiblity with other versions loaded in memory as long as this version matches.
|
|
50
|
-
* It indicates that the global state still stores similar information
|
|
51
|
-
*
|
|
52
|
-
* N.B: this version is unrelated to the package version.
|
|
53
|
-
*/
|
|
54
|
-
version: number;
|
|
55
|
-
globalContextRegistry: ContextRegistry;
|
|
56
|
-
}
|
|
57
|
-
declare function isolateGlobalState(): void;
|
|
58
|
-
declare function getGlobalState(): FlowRdfCoreGlobals;
|
|
59
|
-
|
|
60
|
-
interface MapStyleOptions {
|
|
61
|
-
id: string;
|
|
62
|
-
}
|
|
63
|
-
declare class MapStyle {
|
|
64
|
-
private static _defaultBaseStyle;
|
|
65
|
-
private _state;
|
|
66
|
-
private _baseStyle;
|
|
67
|
-
private _sources;
|
|
68
|
-
private _layers;
|
|
69
|
-
private _layerOrder;
|
|
70
|
-
get styleSpecification(): MapStyleSpecification;
|
|
71
|
-
get formattedName(): string;
|
|
72
|
-
constructor();
|
|
73
|
-
bindState(state: StateStore): this;
|
|
74
|
-
setBaseStyle(style?: MapStyleSpecification): this;
|
|
75
|
-
addSource(source: MapDataSource): this;
|
|
76
|
-
removeSource(id: string, removeLayers?: boolean): this;
|
|
77
|
-
getSource(id: string): MapDataSource;
|
|
78
|
-
getSources(filter?: (source: MapDataSource) => boolean): MapDataSource[];
|
|
79
|
-
addLayer(layer: MapLayer): this;
|
|
80
|
-
removeLayer(id: string): this;
|
|
81
|
-
getLayer(id: string): MapLayer;
|
|
82
|
-
getLayers(filter?: (layer: MapLayer) => boolean): MapLayer[];
|
|
83
|
-
private layerInsertionPoint;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
declare const initializeContext: <TState extends StateStore = StateStore>(options: FlowContextOptions<TState>) => FlowContext<TState>;
|
|
87
|
-
declare const uninitializeContext: (contextId?: string) => void;
|
|
88
|
-
declare const getContext: <TState extends StateStore = StateStore>(id?: string) => Promise<FlowContext<TState>>;
|
|
89
|
-
|
|
90
|
-
export { ContextRegistry, FlowContext, FlowContextOptions, FlowRdfCoreGlobals, MapDataSource, MapLayer, MapStyle, type MapStyleOptions, MapStyleSpecification, StateStore, computed, getContext, getGlobalState, initializeContext, isolateGlobalState, observable, serialize, uninitializeContext };
|