@emuanalytics/flow-rdf-core 1.1.0 → 1.1.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/bundle/flow-rdf-core.js +42592 -0
- package/dist/bundle/flow-rdf-core.js.map +7 -0
- package/dist/bundle/flow-rdf-core.min.js +635 -0
- package/dist/bundle/flow-rdf-core.min.js.map +7 -0
- package/dist/cjs/index.d.ts +8 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +7 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/errors/flow-core-error.d.ts +4 -0
- package/dist/cjs/lib/errors/flow-core-error.d.ts.map +1 -0
- package/dist/cjs/lib/errors/flow-core-error.js +30 -0
- package/dist/cjs/lib/errors/flow-core-error.js.map +1 -0
- package/dist/cjs/lib/errors/flow-core-expression-error.d.ts +7 -0
- package/dist/cjs/lib/errors/flow-core-expression-error.d.ts.map +1 -0
- package/dist/cjs/lib/errors/flow-core-expression-error.js +41 -0
- package/dist/cjs/lib/errors/flow-core-expression-error.js.map +1 -0
- package/dist/cjs/lib/errors/flow-core-map-error.d.ts +5 -0
- package/dist/cjs/lib/errors/flow-core-map-error.d.ts.map +1 -0
- package/dist/cjs/lib/errors/flow-core-map-error.js +28 -0
- package/dist/cjs/lib/errors/flow-core-map-error.js.map +1 -0
- package/dist/cjs/lib/errors/index.d.ts +3 -0
- package/dist/cjs/lib/errors/index.d.ts.map +1 -0
- package/dist/cjs/lib/errors/index.js +8 -0
- package/dist/cjs/lib/errors/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-expression.js +277 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-expression.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-parser.d.ts +2 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-parser.js +215 -0
- package/dist/cjs/lib/flow-core-expression/flow-core-parser.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
- package/dist/cjs/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/functions/from-palette.js +80 -0
- package/dist/cjs/lib/flow-core-expression/functions/from-palette.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/functions/state.d.ts +9 -0
- package/dist/cjs/lib/flow-core-expression/functions/state.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/functions/state.js +25 -0
- package/dist/cjs/lib/flow-core-expression/functions/state.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/index.d.ts +2 -0
- package/dist/cjs/lib/flow-core-expression/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/index.js +18 -0
- package/dist/cjs/lib/flow-core-expression/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/parser-helpers.d.ts +2 -0
- package/dist/cjs/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/parser-helpers.js +54 -0
- package/dist/cjs/lib/flow-core-expression/parser-helpers.js.map +1 -0
- package/dist/cjs/lib/flow-core-expression/types.d.ts +27 -0
- package/dist/cjs/lib/flow-core-expression/types.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-expression/types.js +3 -0
- package/dist/cjs/lib/flow-core-expression/types.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/flow-core-map.d.ts +84 -0
- package/dist/cjs/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/flow-core-map.js +836 -0
- package/dist/cjs/lib/flow-core-map/flow-core-map.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/index.d.ts +2 -0
- package/dist/cjs/lib/flow-core-map/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/index.js +18 -0
- package/dist/cjs/lib/flow-core-map/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.js +94 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation-layers.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.js +71 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.events.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +67 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.js +732 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/annotation.plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js +11 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js +70 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js +75 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js +19 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js +21 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/types.js +3 -0
- package/dist/cjs/lib/flow-core-map/plugins/annotations/types.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.d.ts +45 -0
- package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.js +344 -0
- package/dist/cjs/lib/flow-core-map/plugins/data-join.plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
- package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.js +58 -0
- package/dist/cjs/lib/flow-core-map/plugins/flow-core-map-plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
- package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.js +109 -0
- package/dist/cjs/lib/flow-core-map/plugins/hover-effect.plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +26 -0
- package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.js +166 -0
- package/dist/cjs/lib/flow-core-map/plugins/keyboard-shortcut-manager.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
- package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.js +242 -0
- package/dist/cjs/lib/flow-core-map/plugins/plugin-manager.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
- package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.js +108 -0
- package/dist/cjs/lib/flow-core-map/plugins/popup.plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.js +50 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.events.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.js +195 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/selection.plugin.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.js +276 -0
- package/dist/cjs/lib/flow-core-map/plugins/selection/source-selection.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.d.ts +56 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.js +147 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-events.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.js +207 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-feature-stream.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.d.ts +39 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.js +259 -0
- package/dist/cjs/lib/flow-core-map/support/flow-core-map-popup.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/image-registry.d.ts +2 -0
- package/dist/cjs/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/support/image-registry.js +86 -0
- package/dist/cjs/lib/flow-core-map/support/image-registry.js.map +1 -0
- package/dist/cjs/lib/flow-core-map/types.d.ts +45 -0
- package/dist/cjs/lib/flow-core-map/types.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map/types.js +10 -0
- package/dist/cjs/lib/flow-core-map/types.js.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.d.ts +26 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.js +286 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-data-source.js.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.d.ts +58 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.js +357 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-layer.js.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.js +314 -0
- package/dist/cjs/lib/flow-core-map-style/flow-core-map-style.js.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/index.d.ts +5 -0
- package/dist/cjs/lib/flow-core-map-style/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/index.js +21 -0
- package/dist/cjs/lib/flow-core-map-style/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/types.d.ts +49 -0
- package/dist/cjs/lib/flow-core-map-style/types.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-map-style/types.js +3 -0
- package/dist/cjs/lib/flow-core-map-style/types.js.map +1 -0
- package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.d.ts +36 -0
- package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.js +3 -0
- package/dist/cjs/lib/flow-core-query/FlowQueryResultFormat.js.map +1 -0
- package/dist/{types/lib → cjs/lib/flow-core-query}/async-committer.d.ts +0 -0
- package/dist/cjs/lib/flow-core-query/async-committer.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-query/async-committer.js +95 -0
- package/dist/cjs/lib/flow-core-query/async-committer.js.map +1 -0
- package/dist/cjs/lib/flow-core-query/flow-core-query.d.ts +35 -0
- package/dist/cjs/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-query/flow-core-query.js +371 -0
- package/dist/cjs/lib/flow-core-query/flow-core-query.js.map +1 -0
- package/dist/cjs/lib/flow-core-query/index.d.ts +2 -0
- package/dist/cjs/lib/flow-core-query/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-query/index.js +18 -0
- package/dist/cjs/lib/flow-core-query/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
- package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.js +203 -0
- package/dist/cjs/lib/flow-core-state-store/flow-core-state-store.js.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/index.d.ts +6 -0
- package/dist/cjs/lib/flow-core-state-store/index.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/index.js +25 -0
- package/dist/cjs/lib/flow-core-state-store/index.js.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/utils.d.ts +10 -0
- package/dist/cjs/lib/flow-core-state-store/utils.d.ts.map +1 -0
- package/dist/cjs/lib/flow-core-state-store/utils.js +9 -0
- package/dist/cjs/lib/flow-core-state-store/utils.js.map +1 -0
- package/dist/cjs/lib/utils/assert.d.ts +2 -0
- package/dist/cjs/lib/utils/assert.d.ts.map +1 -0
- package/dist/cjs/lib/utils/assert.js +11 -0
- package/dist/cjs/lib/utils/assert.js.map +1 -0
- package/dist/cjs/lib/utils/ensure-array.d.ts +2 -0
- package/dist/cjs/lib/utils/ensure-array.d.ts.map +1 -0
- package/dist/cjs/lib/utils/ensure-array.js +23 -0
- package/dist/cjs/lib/utils/ensure-array.js.map +1 -0
- package/dist/cjs/lib/utils/feature-type-checks.d.ts +5 -0
- package/dist/cjs/lib/utils/feature-type-checks.d.ts.map +1 -0
- package/dist/cjs/lib/utils/feature-type-checks.js +30 -0
- package/dist/cjs/lib/utils/feature-type-checks.js.map +1 -0
- package/dist/cjs/lib/utils/functional.d.ts +34 -0
- package/dist/cjs/lib/utils/functional.d.ts.map +1 -0
- package/dist/cjs/lib/utils/functional.js +144 -0
- package/dist/cjs/lib/utils/functional.js.map +1 -0
- package/dist/cjs/lib/utils/index.d.ts +2 -0
- package/dist/cjs/lib/utils/index.d.ts.map +1 -0
- package/dist/cjs/lib/utils/index.js +18 -0
- package/dist/cjs/lib/utils/index.js.map +1 -0
- package/dist/cjs/lib/utils/string-utils.d.ts +2 -0
- package/dist/cjs/lib/utils/string-utils.d.ts.map +1 -0
- package/dist/cjs/lib/utils/string-utils.js +11 -0
- package/dist/cjs/lib/utils/string-utils.js.map +1 -0
- package/dist/cjs/lib/utils/type-checks.d.ts +25 -0
- package/dist/cjs/lib/utils/type-checks.d.ts.map +1 -0
- package/dist/cjs/lib/utils/type-checks.js +80 -0
- package/dist/cjs/lib/utils/type-checks.js.map +1 -0
- package/dist/cjs/lib/utils/typescript-utils.d.ts +2 -0
- package/dist/cjs/lib/utils/typescript-utils.d.ts.map +1 -0
- package/dist/cjs/lib/utils/typescript-utils.js +3 -0
- package/dist/cjs/lib/utils/typescript-utils.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +7 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/errors/flow-core-error.d.ts +4 -0
- package/dist/esm/lib/errors/flow-core-error.d.ts.map +1 -0
- package/dist/esm/lib/errors/flow-core-error.js +8 -0
- package/dist/esm/lib/errors/flow-core-error.js.map +1 -0
- package/dist/esm/lib/errors/flow-core-expression-error.d.ts +7 -0
- package/dist/esm/lib/errors/flow-core-expression-error.d.ts.map +1 -0
- package/dist/esm/lib/errors/flow-core-expression-error.js +19 -0
- package/dist/esm/lib/errors/flow-core-expression-error.js.map +1 -0
- package/dist/esm/lib/errors/flow-core-map-error.d.ts +5 -0
- package/dist/esm/lib/errors/flow-core-map-error.d.ts.map +1 -0
- package/dist/esm/lib/errors/flow-core-map-error.js +7 -0
- package/dist/esm/lib/errors/flow-core-map-error.js.map +1 -0
- package/dist/esm/lib/errors/index.d.ts +3 -0
- package/dist/esm/lib/errors/index.d.ts.map +1 -0
- package/dist/esm/lib/errors/index.js +3 -0
- package/dist/esm/lib/errors/index.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
- package/dist/esm/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/flow-core-expression.js +148 -0
- package/dist/esm/lib/flow-core-expression/flow-core-expression.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/flow-core-parser.d.ts +2 -0
- package/dist/esm/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/flow-core-parser.js +147 -0
- package/dist/esm/lib/flow-core-expression/flow-core-parser.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
- package/dist/esm/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/functions/from-palette.js +73 -0
- package/dist/esm/lib/flow-core-expression/functions/from-palette.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/functions/state.d.ts +9 -0
- package/dist/esm/lib/flow-core-expression/functions/state.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/functions/state.js +23 -0
- package/dist/esm/lib/flow-core-expression/functions/state.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/index.d.ts +2 -0
- package/dist/esm/lib/flow-core-expression/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/index.js +2 -0
- package/dist/esm/lib/flow-core-expression/index.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/parser-helpers.d.ts +2 -0
- package/dist/esm/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/parser-helpers.js +24 -0
- package/dist/esm/lib/flow-core-expression/parser-helpers.js.map +1 -0
- package/dist/esm/lib/flow-core-expression/types.d.ts +27 -0
- package/dist/esm/lib/flow-core-expression/types.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-expression/types.js +2 -0
- package/dist/esm/lib/flow-core-expression/types.js.map +1 -0
- package/dist/esm/lib/flow-core-map/flow-core-map.d.ts +84 -0
- package/dist/esm/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/flow-core-map.js +491 -0
- package/dist/esm/lib/flow-core-map/flow-core-map.js.map +1 -0
- package/dist/esm/lib/flow-core-map/index.d.ts +2 -0
- package/dist/esm/lib/flow-core-map/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/index.js +2 -0
- package/dist/esm/lib/flow-core-map/index.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.js +150 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation-layers.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.js +49 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.events.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +67 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.js +524 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/annotation.plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js +4 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js +65 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js +59 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js +14 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js +19 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/types.js +2 -0
- package/dist/esm/lib/flow-core-map/plugins/annotations/types.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.d.ts +45 -0
- package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.js +204 -0
- package/dist/esm/lib/flow-core-map/plugins/data-join.plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
- package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.js +28 -0
- package/dist/esm/lib/flow-core-map/plugins/flow-core-map-plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
- package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.js +62 -0
- package/dist/esm/lib/flow-core-map/plugins/hover-effect.plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +26 -0
- package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.js +98 -0
- package/dist/esm/lib/flow-core-map/plugins/keyboard-shortcut-manager.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
- package/dist/esm/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/plugin-manager.js +144 -0
- package/dist/esm/lib/flow-core-map/plugins/plugin-manager.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
- package/dist/esm/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/popup.plugin.js +64 -0
- package/dist/esm/lib/flow-core-map/plugins/popup.plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.js +28 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.events.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.js +123 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/selection.plugin.js.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.js +188 -0
- package/dist/esm/lib/flow-core-map/plugins/selection/source-selection.js.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-events.d.ts +56 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-events.js +101 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-events.js.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.js +140 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-feature-stream.js.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.d.ts +39 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.js +158 -0
- package/dist/esm/lib/flow-core-map/support/flow-core-map-popup.js.map +1 -0
- package/dist/esm/lib/flow-core-map/support/image-registry.d.ts +2 -0
- package/dist/esm/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/support/image-registry.js +56 -0
- package/dist/esm/lib/flow-core-map/support/image-registry.js.map +1 -0
- package/dist/esm/lib/flow-core-map/types.d.ts +45 -0
- package/dist/esm/lib/flow-core-map/types.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map/types.js +6 -0
- package/dist/esm/lib/flow-core-map/types.js.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.d.ts +26 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.js +197 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-data-source.js.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.d.ts +58 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.js +228 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-layer.js.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-style.js +200 -0
- package/dist/esm/lib/flow-core-map-style/flow-core-map-style.js.map +1 -0
- package/dist/esm/lib/flow-core-map-style/index.d.ts +5 -0
- package/dist/esm/lib/flow-core-map-style/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map-style/index.js +5 -0
- package/dist/esm/lib/flow-core-map-style/index.js.map +1 -0
- package/dist/esm/lib/flow-core-map-style/types.d.ts +49 -0
- package/dist/esm/lib/flow-core-map-style/types.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-map-style/types.js +2 -0
- package/dist/esm/lib/flow-core-map-style/types.js.map +1 -0
- package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.d.ts +36 -0
- package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.js +2 -0
- package/dist/esm/lib/flow-core-query/FlowQueryResultFormat.js.map +1 -0
- package/dist/esm/lib/flow-core-query/async-committer.d.ts +15 -0
- package/dist/esm/lib/flow-core-query/async-committer.d.ts.map +1 -0
- package/dist/esm/lib/{async-committer.js → flow-core-query/async-committer.js} +1 -9
- package/dist/esm/lib/flow-core-query/async-committer.js.map +1 -0
- package/dist/esm/lib/flow-core-query/flow-core-query.d.ts +35 -0
- package/dist/esm/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
- package/dist/esm/lib/{flow-query.js → flow-core-query/flow-core-query.js} +100 -35
- package/dist/esm/lib/flow-core-query/flow-core-query.js.map +1 -0
- package/dist/esm/lib/flow-core-query/index.d.ts +2 -0
- package/dist/esm/lib/flow-core-query/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-query/index.js +2 -0
- package/dist/esm/lib/flow-core-query/index.js.map +1 -0
- package/dist/esm/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
- package/dist/esm/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-state-store/flow-core-state-store.js +121 -0
- package/dist/esm/lib/flow-core-state-store/flow-core-state-store.js.map +1 -0
- package/dist/esm/lib/flow-core-state-store/index.d.ts +6 -0
- package/dist/esm/lib/flow-core-state-store/index.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-state-store/index.js +4 -0
- package/dist/esm/lib/flow-core-state-store/index.js.map +1 -0
- package/dist/esm/lib/flow-core-state-store/utils.d.ts +10 -0
- package/dist/esm/lib/flow-core-state-store/utils.d.ts.map +1 -0
- package/dist/esm/lib/flow-core-state-store/utils.js +5 -0
- package/dist/esm/lib/flow-core-state-store/utils.js.map +1 -0
- package/dist/esm/lib/utils/assert.d.ts +2 -0
- package/dist/esm/lib/utils/assert.d.ts.map +1 -0
- package/dist/esm/lib/utils/assert.js +7 -0
- package/dist/esm/lib/utils/assert.js.map +1 -0
- package/dist/esm/lib/utils/ensure-array.d.ts +2 -0
- package/dist/esm/lib/utils/ensure-array.d.ts.map +1 -0
- package/dist/esm/lib/utils/ensure-array.js +15 -0
- package/dist/esm/lib/utils/ensure-array.js.map +1 -0
- package/dist/esm/lib/utils/feature-type-checks.d.ts +5 -0
- package/dist/esm/lib/utils/feature-type-checks.d.ts.map +1 -0
- package/dist/esm/lib/utils/feature-type-checks.js +23 -0
- package/dist/esm/lib/utils/feature-type-checks.js.map +1 -0
- package/dist/esm/lib/utils/functional.d.ts +34 -0
- package/dist/esm/lib/utils/functional.d.ts.map +1 -0
- package/dist/esm/lib/utils/functional.js +89 -0
- package/dist/esm/lib/utils/functional.js.map +1 -0
- package/dist/esm/lib/utils/index.d.ts +2 -0
- package/dist/esm/lib/utils/index.d.ts.map +1 -0
- package/dist/esm/lib/utils/index.js +2 -0
- package/dist/esm/lib/utils/index.js.map +1 -0
- package/dist/esm/lib/utils/string-utils.d.ts +2 -0
- package/dist/esm/lib/utils/string-utils.d.ts.map +1 -0
- package/dist/esm/lib/utils/string-utils.js +3 -0
- package/dist/esm/lib/utils/string-utils.js.map +1 -0
- package/dist/esm/lib/utils/type-checks.d.ts +25 -0
- package/dist/esm/lib/utils/type-checks.d.ts.map +1 -0
- package/dist/esm/lib/utils/type-checks.js +51 -0
- package/dist/esm/lib/utils/type-checks.js.map +1 -0
- package/dist/esm/lib/utils/typescript-utils.d.ts +2 -0
- package/dist/esm/lib/utils/typescript-utils.d.ts.map +1 -0
- package/dist/esm/lib/utils/typescript-utils.js +2 -0
- package/dist/esm/lib/utils/typescript-utils.js.map +1 -0
- package/dist/esm5/index.d.ts +8 -0
- package/dist/esm5/index.d.ts.map +1 -0
- package/dist/esm5/index.js +8 -0
- package/dist/esm5/index.js.map +1 -0
- package/dist/esm5/lib/errors/flow-core-error.d.ts +4 -0
- package/dist/esm5/lib/errors/flow-core-error.d.ts.map +1 -0
- package/dist/esm5/lib/errors/flow-core-error.js +13 -0
- package/dist/esm5/lib/errors/flow-core-error.js.map +1 -0
- package/dist/esm5/lib/errors/flow-core-expression-error.d.ts +7 -0
- package/dist/esm5/lib/errors/flow-core-expression-error.d.ts.map +1 -0
- package/dist/esm5/lib/errors/flow-core-expression-error.js +24 -0
- package/dist/esm5/lib/errors/flow-core-expression-error.js.map +1 -0
- package/dist/esm5/lib/errors/flow-core-map-error.d.ts +5 -0
- package/dist/esm5/lib/errors/flow-core-map-error.d.ts.map +1 -0
- package/dist/esm5/lib/errors/flow-core-map-error.js +11 -0
- package/dist/esm5/lib/errors/flow-core-map-error.js.map +1 -0
- package/dist/esm5/lib/errors/index.d.ts +3 -0
- package/dist/esm5/lib/errors/index.d.ts.map +1 -0
- package/dist/esm5/lib/errors/index.js +3 -0
- package/dist/esm5/lib/errors/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-expression.js +224 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-expression.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-parser.d.ts +2 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-parser.js +185 -0
- package/dist/esm5/lib/flow-core-expression/flow-core-parser.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
- package/dist/esm5/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/functions/from-palette.js +75 -0
- package/dist/esm5/lib/flow-core-expression/functions/from-palette.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/functions/state.d.ts +9 -0
- package/dist/esm5/lib/flow-core-expression/functions/state.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/functions/state.js +23 -0
- package/dist/esm5/lib/flow-core-expression/functions/state.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/index.d.ts +2 -0
- package/dist/esm5/lib/flow-core-expression/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/index.js +2 -0
- package/dist/esm5/lib/flow-core-expression/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/parser-helpers.d.ts +2 -0
- package/dist/esm5/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/parser-helpers.js +29 -0
- package/dist/esm5/lib/flow-core-expression/parser-helpers.js.map +1 -0
- package/dist/esm5/lib/flow-core-expression/types.d.ts +27 -0
- package/dist/esm5/lib/flow-core-expression/types.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-expression/types.js +2 -0
- package/dist/esm5/lib/flow-core-expression/types.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/flow-core-map.d.ts +84 -0
- package/dist/esm5/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/flow-core-map.js +746 -0
- package/dist/esm5/lib/flow-core-map/flow-core-map.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/index.d.ts +2 -0
- package/dist/esm5/lib/flow-core-map/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/index.js +2 -0
- package/dist/esm5/lib/flow-core-map/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.js +90 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation-layers.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.js +54 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.events.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +67 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.js +701 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/annotation.plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js +4 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js +65 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js +60 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js +14 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js +19 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/types.js +2 -0
- package/dist/esm5/lib/flow-core-map/plugins/annotations/types.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.d.ts +45 -0
- package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.js +277 -0
- package/dist/esm5/lib/flow-core-map/plugins/data-join.plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
- package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.js +41 -0
- package/dist/esm5/lib/flow-core-map/plugins/flow-core-map-plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
- package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.js +92 -0
- package/dist/esm5/lib/flow-core-map/plugins/hover-effect.plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +26 -0
- package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.js +153 -0
- package/dist/esm5/lib/flow-core-map/plugins/keyboard-shortcut-manager.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
- package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.js +226 -0
- package/dist/esm5/lib/flow-core-map/plugins/plugin-manager.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
- package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.js +91 -0
- package/dist/esm5/lib/flow-core-map/plugins/popup.plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.js +33 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.events.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.js +178 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/selection.plugin.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.js +238 -0
- package/dist/esm5/lib/flow-core-map/plugins/selection/source-selection.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.d.ts +56 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.js +130 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-events.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.js +191 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-feature-stream.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.d.ts +39 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.js +205 -0
- package/dist/esm5/lib/flow-core-map/support/flow-core-map-popup.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/image-registry.d.ts +2 -0
- package/dist/esm5/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/support/image-registry.js +80 -0
- package/dist/esm5/lib/flow-core-map/support/image-registry.js.map +1 -0
- package/dist/esm5/lib/flow-core-map/types.d.ts +45 -0
- package/dist/esm5/lib/flow-core-map/types.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map/types.js +6 -0
- package/dist/esm5/lib/flow-core-map/types.js.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.d.ts +26 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.js +257 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-data-source.js.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.d.ts +58 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.js +321 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-layer.js.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.js +276 -0
- package/dist/esm5/lib/flow-core-map-style/flow-core-map-style.js.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/index.d.ts +5 -0
- package/dist/esm5/lib/flow-core-map-style/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/index.js +5 -0
- package/dist/esm5/lib/flow-core-map-style/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/types.d.ts +49 -0
- package/dist/esm5/lib/flow-core-map-style/types.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-map-style/types.js +2 -0
- package/dist/esm5/lib/flow-core-map-style/types.js.map +1 -0
- package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.d.ts +36 -0
- package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.js +2 -0
- package/dist/esm5/lib/flow-core-query/FlowQueryResultFormat.js.map +1 -0
- package/dist/esm5/lib/flow-core-query/async-committer.d.ts +15 -0
- package/dist/esm5/lib/flow-core-query/async-committer.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-query/async-committer.js +57 -0
- package/dist/esm5/lib/flow-core-query/async-committer.js.map +1 -0
- package/dist/esm5/lib/flow-core-query/flow-core-query.d.ts +35 -0
- package/dist/esm5/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-query/flow-core-query.js +316 -0
- package/dist/esm5/lib/flow-core-query/flow-core-query.js.map +1 -0
- package/dist/esm5/lib/flow-core-query/index.d.ts +2 -0
- package/dist/esm5/lib/flow-core-query/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-query/index.js +2 -0
- package/dist/esm5/lib/flow-core-query/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
- package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.js +190 -0
- package/dist/esm5/lib/flow-core-state-store/flow-core-state-store.js.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/index.d.ts +6 -0
- package/dist/esm5/lib/flow-core-state-store/index.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/index.js +4 -0
- package/dist/esm5/lib/flow-core-state-store/index.js.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/utils.d.ts +10 -0
- package/dist/esm5/lib/flow-core-state-store/utils.d.ts.map +1 -0
- package/dist/esm5/lib/flow-core-state-store/utils.js +5 -0
- package/dist/esm5/lib/flow-core-state-store/utils.js.map +1 -0
- package/dist/esm5/lib/utils/assert.d.ts +2 -0
- package/dist/esm5/lib/utils/assert.d.ts.map +1 -0
- package/dist/esm5/lib/utils/assert.js +7 -0
- package/dist/esm5/lib/utils/assert.js.map +1 -0
- package/dist/esm5/lib/utils/ensure-array.d.ts +2 -0
- package/dist/esm5/lib/utils/ensure-array.d.ts.map +1 -0
- package/dist/esm5/lib/utils/ensure-array.js +19 -0
- package/dist/esm5/lib/utils/ensure-array.js.map +1 -0
- package/dist/esm5/lib/utils/feature-type-checks.d.ts +5 -0
- package/dist/esm5/lib/utils/feature-type-checks.d.ts.map +1 -0
- package/dist/esm5/lib/utils/feature-type-checks.js +23 -0
- package/dist/esm5/lib/utils/feature-type-checks.js.map +1 -0
- package/dist/esm5/lib/utils/functional.d.ts +34 -0
- package/dist/esm5/lib/utils/functional.d.ts.map +1 -0
- package/dist/esm5/lib/utils/functional.js +112 -0
- package/dist/esm5/lib/utils/functional.js.map +1 -0
- package/dist/esm5/lib/utils/index.d.ts +2 -0
- package/dist/esm5/lib/utils/index.d.ts.map +1 -0
- package/dist/esm5/lib/utils/index.js +2 -0
- package/dist/esm5/lib/utils/index.js.map +1 -0
- package/dist/esm5/lib/utils/string-utils.d.ts +2 -0
- package/dist/esm5/lib/utils/string-utils.d.ts.map +1 -0
- package/dist/esm5/lib/utils/string-utils.js +7 -0
- package/dist/esm5/lib/utils/string-utils.js.map +1 -0
- package/dist/esm5/lib/utils/type-checks.d.ts +25 -0
- package/dist/esm5/lib/utils/type-checks.d.ts.map +1 -0
- package/dist/esm5/lib/utils/type-checks.js +53 -0
- package/dist/esm5/lib/utils/type-checks.js.map +1 -0
- package/dist/esm5/lib/utils/typescript-utils.d.ts +2 -0
- package/dist/esm5/lib/utils/typescript-utils.d.ts.map +1 -0
- package/dist/esm5/lib/utils/typescript-utils.js +2 -0
- package/dist/esm5/lib/utils/typescript-utils.js.map +1 -0
- package/dist/flow-rdf-core.css +1 -0
- package/dist/types/index.d.ts +7 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/errors/flow-core-error.d.ts +4 -0
- package/dist/types/lib/errors/flow-core-error.d.ts.map +1 -0
- package/dist/types/lib/errors/flow-core-expression-error.d.ts +7 -0
- package/dist/types/lib/errors/flow-core-expression-error.d.ts.map +1 -0
- package/dist/types/lib/errors/flow-core-map-error.d.ts +5 -0
- package/dist/types/lib/errors/flow-core-map-error.d.ts.map +1 -0
- package/dist/types/lib/errors/index.d.ts +3 -0
- package/dist/types/lib/errors/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/flow-core-expression.d.ts +29 -0
- package/dist/types/lib/flow-core-expression/flow-core-expression.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/flow-core-parser.d.ts +19 -0
- package/dist/types/lib/flow-core-expression/flow-core-parser.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/functions/from-palette.d.ts +12 -0
- package/dist/types/lib/flow-core-expression/functions/from-palette.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/functions/state.d.ts +9 -0
- package/dist/types/lib/flow-core-expression/functions/state.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/index.d.ts +2 -0
- package/dist/types/lib/flow-core-expression/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/parser-helpers.d.ts +2 -0
- package/dist/types/lib/flow-core-expression/parser-helpers.d.ts.map +1 -0
- package/dist/types/lib/flow-core-expression/types.d.ts +27 -0
- package/dist/types/lib/flow-core-expression/types.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/flow-core-map.d.ts +106 -0
- package/dist/types/lib/flow-core-map/flow-core-map.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/index.d.ts +2 -0
- package/dist/types/lib/flow-core-map/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts +4 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation-layers.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation.events.d.ts +25 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation.events.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts +70 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/annotation.plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts +4 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts +3 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DirectModeOverride.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts +23 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/modes/DragCircleMode.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts +3 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/create_supplementary_points_circle.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts +6 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/maplibre-gl-draw-circle/lib/utils/drag_pan.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/types.d.ts +34 -0
- package/dist/types/lib/flow-core-map/plugins/annotations/types.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/data-join.plugin.d.ts +47 -0
- package/dist/types/lib/flow-core-map/plugins/data-join.plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts +41 -0
- package/dist/types/lib/flow-core-map/plugins/flow-core-map-plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/hover-effect.plugin.d.ts +14 -0
- package/dist/types/lib/flow-core-map/plugins/hover-effect.plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts +52 -0
- package/dist/types/lib/flow-core-map/plugins/keyboard-shortcut-manager.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/plugin-manager.d.ts +27 -0
- package/dist/types/lib/flow-core-map/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/popup.plugin.d.ts +17 -0
- package/dist/types/lib/flow-core-map/plugins/popup.plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/selection/selection.events.d.ts +14 -0
- package/dist/types/lib/flow-core-map/plugins/selection/selection.events.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/selection/selection.plugin.d.ts +31 -0
- package/dist/types/lib/flow-core-map/plugins/selection/selection.plugin.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/plugins/selection/source-selection.d.ts +24 -0
- package/dist/types/lib/flow-core-map/plugins/selection/source-selection.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-events.d.ts +62 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-events.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts +29 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-feature-stream.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-popup.d.ts +74 -0
- package/dist/types/lib/flow-core-map/support/flow-core-map-popup.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/support/image-registry.d.ts +2 -0
- package/dist/types/lib/flow-core-map/support/image-registry.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map/types.d.ts +57 -0
- package/dist/types/lib/flow-core-map/types.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-data-source.d.ts +33 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-data-source.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-layer.d.ts +71 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-layer.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-style.d.ts +32 -0
- package/dist/types/lib/flow-core-map-style/flow-core-map-style.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map-style/index.d.ts +5 -0
- package/dist/types/lib/flow-core-map-style/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-map-style/types.d.ts +60 -0
- package/dist/types/lib/flow-core-map-style/types.d.ts.map +1 -0
- package/dist/types/lib/{flow-query.d.ts → flow-core-query/FlowQueryResultFormat.d.ts} +9 -26
- package/dist/types/lib/flow-core-query/FlowQueryResultFormat.d.ts.map +1 -0
- package/dist/types/lib/flow-core-query/async-committer.d.ts +15 -0
- package/dist/types/lib/flow-core-query/async-committer.d.ts.map +1 -0
- package/dist/types/lib/flow-core-query/flow-core-query.d.ts +35 -0
- package/dist/types/lib/flow-core-query/flow-core-query.d.ts.map +1 -0
- package/dist/types/lib/flow-core-query/index.d.ts +2 -0
- package/dist/types/lib/flow-core-query/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-state-store/flow-core-state-store.d.ts +25 -0
- package/dist/types/lib/flow-core-state-store/flow-core-state-store.d.ts.map +1 -0
- package/dist/types/lib/flow-core-state-store/index.d.ts +6 -0
- package/dist/types/lib/flow-core-state-store/index.d.ts.map +1 -0
- package/dist/types/lib/flow-core-state-store/utils.d.ts +10 -0
- package/dist/types/lib/flow-core-state-store/utils.d.ts.map +1 -0
- package/dist/types/lib/utils/assert.d.ts +2 -0
- package/dist/types/lib/utils/assert.d.ts.map +1 -0
- package/dist/types/lib/utils/ensure-array.d.ts +2 -0
- package/dist/types/lib/utils/ensure-array.d.ts.map +1 -0
- package/dist/types/lib/utils/feature-type-checks.d.ts +5 -0
- package/dist/types/lib/utils/feature-type-checks.d.ts.map +1 -0
- package/dist/types/lib/utils/functional.d.ts +70 -0
- package/dist/types/lib/utils/functional.d.ts.map +1 -0
- package/dist/types/lib/utils/index.d.ts +2 -0
- package/dist/types/lib/utils/index.d.ts.map +1 -0
- package/dist/types/lib/utils/string-utils.d.ts +2 -0
- package/dist/types/lib/utils/string-utils.d.ts.map +1 -0
- package/dist/types/lib/utils/type-checks.d.ts +25 -0
- package/dist/types/lib/utils/type-checks.d.ts.map +1 -0
- package/dist/types/lib/utils/typescript-utils.d.ts +2 -0
- package/dist/types/lib/utils/typescript-utils.d.ts.map +1 -0
- package/package.json +81 -12
- package/.turbo/turbo-build.log +0 -17
- package/CHANGELOG.md +0 -13
- package/dist/cjs/lib/async-committer.js +0 -47
- package/dist/cjs/lib/async-committer.js.map +0 -1
- package/dist/cjs/lib/flow-query.js +0 -183
- package/dist/cjs/lib/flow-query.js.map +0 -1
- package/dist/esm/lib/async-committer.js.map +0 -1
- package/dist/esm/lib/flow-query.js.map +0 -1
- package/dist/types/lib/async-committer.d.ts.map +0 -1
- package/dist/types/lib/flow-query.d.ts.map +0 -1
- package/jest.config.js +0 -3
- package/src/__tests__/test.spec.ts +0 -116
- package/src/index.ts +0 -2
- package/src/lib/async-committer.ts +0 -23
- package/src/lib/flow-query.ts +0 -244
- package/tsconfig.build.json +0 -12
- package/tsconfig.json +0 -103
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FlowCoreStateStore } from '../flow-core-state-store';
|
|
2
|
+
import { FlowCoreMapDataSourceOptions, FlowCoreMapDataSourceSpecification, FlowCoreMapDataSourceType, FlowCoreMapGeojsonData } from './types';
|
|
3
|
+
export interface FlowCoreMapEndpoint {
|
|
4
|
+
host: string;
|
|
5
|
+
apiKey?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class FlowCoreMapDataSource {
|
|
8
|
+
private static defaultOptions;
|
|
9
|
+
private options;
|
|
10
|
+
private srcExpression;
|
|
11
|
+
private parameters;
|
|
12
|
+
private state;
|
|
13
|
+
get id(): string;
|
|
14
|
+
get type(): FlowCoreMapDataSourceType;
|
|
15
|
+
get featureId(): string | undefined;
|
|
16
|
+
get dataSourceSpecification(): FlowCoreMapDataSourceSpecification;
|
|
17
|
+
constructor(options: FlowCoreMapDataSourceOptions);
|
|
18
|
+
bindState(state: FlowCoreStateStore | null): this;
|
|
19
|
+
setSrc(val: FlowCoreMapGeojsonData): void;
|
|
20
|
+
setParameter(name: string, expression: string | null): void;
|
|
21
|
+
setFlowEndpoint(endpoint: FlowCoreMapEndpoint): void;
|
|
22
|
+
private formattedName;
|
|
23
|
+
private setSrcExpression;
|
|
24
|
+
private expandSrc;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=flow-core-map-data-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-core-map-data-source.d.ts","sourceRoot":"","sources":["../../../../src/lib/flow-core-map-style/flow-core-map-data-source.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,4BAA4B,EAAE,kCAAkC,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAG9I,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,qBAAqB;IAChC,OAAO,CAAC,MAAM,CAAC,cAAc,CAO3B;IAEF,OAAO,CAAC,OAAO,CAA+B;IAC9C,OAAO,CAAC,aAAa,CAAgE;IACrF,OAAO,CAAC,UAAU,CAA0C;IAC5D,OAAO,CAAC,KAAK,CAAmC;IAEhD,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,IAAI,IAAI,yBAAyB,CAEpC;IAED,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAElC;IAED,IAAI,uBAAuB,IAAI,kCAAkC,CA+DhE;gBAEW,OAAO,EAAE,4BAA4B;IA+BjD,SAAS,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,GAAG,IAAI;IAcjD,MAAM,CAAC,GAAG,EAAE,sBAAsB;IAKlC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IASpD,eAAe,CAAC,QAAQ,EAAE,mBAAmB;IAK7C,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,gBAAgB;IAkBxB,OAAO,CAAC,SAAS;CAgDlB"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { __assign, __read } from "tslib";
|
|
2
|
+
import { action, computed, observable } from '../flow-core-state-store';
|
|
3
|
+
import { FlowCoreError } from '../errors';
|
|
4
|
+
import { FlowCoreExpression } from '../flow-core-expression';
|
|
5
|
+
import { isIn, isNil, isString, isStringFull, isURL } from '../utils';
|
|
6
|
+
import { makeObservable, toJS } from 'mobx';
|
|
7
|
+
var FlowCoreMapDataSource = (function () {
|
|
8
|
+
function FlowCoreMapDataSource(options) {
|
|
9
|
+
Object.defineProperty(this, "options", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true,
|
|
13
|
+
value: void 0
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(this, "srcExpression", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: null
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(this, "parameters", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
value: {}
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(this, "state", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: null
|
|
32
|
+
});
|
|
33
|
+
this.options = __assign(__assign({}, FlowCoreMapDataSource.defaultOptions), options);
|
|
34
|
+
if (!isIn(options.type, ['vector', 'geojson', 'raster'])) {
|
|
35
|
+
throw new FlowCoreError("".concat(this.formattedName(), ": unrecognized type '").concat(options.type, "'"));
|
|
36
|
+
}
|
|
37
|
+
this.setSrcExpression(options.src);
|
|
38
|
+
makeObservable(this, {
|
|
39
|
+
options: observable,
|
|
40
|
+
srcExpression: observable,
|
|
41
|
+
parameters: observable,
|
|
42
|
+
dataSourceSpecification: computed,
|
|
43
|
+
bindState: action,
|
|
44
|
+
setSrc: action,
|
|
45
|
+
setParameter: action,
|
|
46
|
+
}, { name: this.formattedName(options.id) });
|
|
47
|
+
}
|
|
48
|
+
Object.defineProperty(FlowCoreMapDataSource.prototype, "id", {
|
|
49
|
+
get: function () {
|
|
50
|
+
return this.options.id;
|
|
51
|
+
},
|
|
52
|
+
enumerable: false,
|
|
53
|
+
configurable: true
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(FlowCoreMapDataSource.prototype, "type", {
|
|
56
|
+
get: function () {
|
|
57
|
+
return this.options.type;
|
|
58
|
+
},
|
|
59
|
+
enumerable: false,
|
|
60
|
+
configurable: true
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(FlowCoreMapDataSource.prototype, "featureId", {
|
|
63
|
+
get: function () {
|
|
64
|
+
return this.options.featureId;
|
|
65
|
+
},
|
|
66
|
+
enumerable: false,
|
|
67
|
+
configurable: true
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(FlowCoreMapDataSource.prototype, "dataSourceSpecification", {
|
|
70
|
+
get: function () {
|
|
71
|
+
var src = this.srcExpression ? toJS(this.srcExpression.value) : this.options.src;
|
|
72
|
+
if (isString(src)) {
|
|
73
|
+
src = this.expandSrc(src, this.options.type);
|
|
74
|
+
}
|
|
75
|
+
var ds;
|
|
76
|
+
switch (this.options.type) {
|
|
77
|
+
case 'vector':
|
|
78
|
+
ds = isStringFull(src)
|
|
79
|
+
? {
|
|
80
|
+
type: 'vector',
|
|
81
|
+
url: src
|
|
82
|
+
}
|
|
83
|
+
:
|
|
84
|
+
{
|
|
85
|
+
type: 'geojson',
|
|
86
|
+
data: { type: 'FeatureCollection', features: [] }
|
|
87
|
+
};
|
|
88
|
+
if (this.options.featureId) {
|
|
89
|
+
ds.promoteId = this.options.featureId;
|
|
90
|
+
}
|
|
91
|
+
return ds;
|
|
92
|
+
case 'raster':
|
|
93
|
+
ds = isStringFull(src)
|
|
94
|
+
? {
|
|
95
|
+
type: 'raster',
|
|
96
|
+
url: src
|
|
97
|
+
}
|
|
98
|
+
:
|
|
99
|
+
{
|
|
100
|
+
type: 'geojson',
|
|
101
|
+
data: { type: 'FeatureCollection', features: [] }
|
|
102
|
+
};
|
|
103
|
+
return ds;
|
|
104
|
+
case 'geojson':
|
|
105
|
+
ds = {
|
|
106
|
+
type: 'geojson',
|
|
107
|
+
data: src || { type: 'FeatureCollection', features: [] }
|
|
108
|
+
};
|
|
109
|
+
if (this.options.cluster) {
|
|
110
|
+
ds.cluster = true;
|
|
111
|
+
ds.clusterMaxZoom = this.options.clusterMaxZoom;
|
|
112
|
+
ds.clusterMinPoints = this.options.clusterMinPoints;
|
|
113
|
+
ds.clusterRadius = this.options.clusterRadius;
|
|
114
|
+
}
|
|
115
|
+
if (this.options.featureId) {
|
|
116
|
+
ds.promoteId = this.options.featureId;
|
|
117
|
+
}
|
|
118
|
+
return ds;
|
|
119
|
+
default:
|
|
120
|
+
throw new FlowCoreError("".concat(this.formattedName(), ": unrecognized type '").concat(this.options.type, "'"));
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
enumerable: false,
|
|
124
|
+
configurable: true
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(FlowCoreMapDataSource.prototype, "bindState", {
|
|
127
|
+
enumerable: false,
|
|
128
|
+
configurable: true,
|
|
129
|
+
writable: true,
|
|
130
|
+
value: function (state) {
|
|
131
|
+
var _a;
|
|
132
|
+
this.state = state;
|
|
133
|
+
if (this.srcExpression) {
|
|
134
|
+
(_a = this.srcExpression) === null || _a === void 0 ? void 0 : _a.bindState(state);
|
|
135
|
+
}
|
|
136
|
+
Object.values(this.parameters).forEach(function (expr) { return expr.bindState(state); });
|
|
137
|
+
return this;
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(FlowCoreMapDataSource.prototype, "setSrc", {
|
|
141
|
+
enumerable: false,
|
|
142
|
+
configurable: true,
|
|
143
|
+
writable: true,
|
|
144
|
+
value: function (val) {
|
|
145
|
+
this.options.src = val;
|
|
146
|
+
this.setSrcExpression(val);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(FlowCoreMapDataSource.prototype, "setParameter", {
|
|
150
|
+
enumerable: false,
|
|
151
|
+
configurable: true,
|
|
152
|
+
writable: true,
|
|
153
|
+
value: function (name, expression) {
|
|
154
|
+
if (isNil(expression)) {
|
|
155
|
+
delete this.parameters[name];
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
var expr = new FlowCoreExpression(expression);
|
|
159
|
+
this.parameters[name] = expr.bindState(this.state);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(FlowCoreMapDataSource.prototype, "setFlowEndpoint", {
|
|
164
|
+
enumerable: false,
|
|
165
|
+
configurable: true,
|
|
166
|
+
writable: true,
|
|
167
|
+
value: function (endpoint) {
|
|
168
|
+
this.options.flowHost = endpoint.host;
|
|
169
|
+
this.options.flowApiKey = endpoint.apiKey;
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
Object.defineProperty(FlowCoreMapDataSource.prototype, "formattedName", {
|
|
173
|
+
enumerable: false,
|
|
174
|
+
configurable: true,
|
|
175
|
+
writable: true,
|
|
176
|
+
value: function (id) {
|
|
177
|
+
return "FlowCoreMapDataSource<".concat(id || this.options.id, ">");
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(FlowCoreMapDataSource.prototype, "setSrcExpression", {
|
|
181
|
+
enumerable: false,
|
|
182
|
+
configurable: true,
|
|
183
|
+
writable: true,
|
|
184
|
+
value: function (src) {
|
|
185
|
+
if (isString(src)) {
|
|
186
|
+
if (isURL(src))
|
|
187
|
+
src = "'".concat(src, "'");
|
|
188
|
+
this.srcExpression = new FlowCoreExpression(src);
|
|
189
|
+
this.srcExpression.bindState(this.state);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
this.srcExpression = null;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
Object.defineProperty(FlowCoreMapDataSource.prototype, "expandSrc", {
|
|
197
|
+
enumerable: false,
|
|
198
|
+
configurable: true,
|
|
199
|
+
writable: true,
|
|
200
|
+
value: function (src, type) {
|
|
201
|
+
var host = this.options.flowHost;
|
|
202
|
+
var isGeoJSON = false;
|
|
203
|
+
if (!isURL(src)) {
|
|
204
|
+
switch (type) {
|
|
205
|
+
case 'vector':
|
|
206
|
+
case 'raster':
|
|
207
|
+
src = "".concat(host, "/tiles/").concat(src, "/index.json");
|
|
208
|
+
break;
|
|
209
|
+
case 'geojson':
|
|
210
|
+
src = "".concat(host, "/api/v1/datasets/").concat(src, "/query");
|
|
211
|
+
isGeoJSON = true;
|
|
212
|
+
break;
|
|
213
|
+
default:
|
|
214
|
+
throw new FlowCoreError("".concat(this.formattedName(), ": unrecognized type '").concat(this.options.type, "'"));
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
var urlObj = new URL(src);
|
|
218
|
+
var combinedParams = new URLSearchParams(urlObj.searchParams);
|
|
219
|
+
Object.entries(this.parameters)
|
|
220
|
+
.filter(function (_a) {
|
|
221
|
+
var _b = __read(_a, 2), _ = _b[0], expr = _b[1];
|
|
222
|
+
return !isNil(expr.value);
|
|
223
|
+
})
|
|
224
|
+
.forEach(function (_a) {
|
|
225
|
+
var _b = __read(_a, 2), key = _b[0], expr = _b[1];
|
|
226
|
+
return combinedParams.append(key, expr.value);
|
|
227
|
+
});
|
|
228
|
+
if (!combinedParams.has('apikey') && this.options.flowApiKey) {
|
|
229
|
+
combinedParams.append('apikey', this.options.flowApiKey);
|
|
230
|
+
}
|
|
231
|
+
if (this.options.limit) {
|
|
232
|
+
combinedParams.append('limit', this.options.limit.toString(10));
|
|
233
|
+
}
|
|
234
|
+
if (isGeoJSON) {
|
|
235
|
+
combinedParams.append('format', 'geojson');
|
|
236
|
+
}
|
|
237
|
+
urlObj.search = combinedParams.toString();
|
|
238
|
+
return urlObj.toString();
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(FlowCoreMapDataSource, "defaultOptions", {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
configurable: true,
|
|
244
|
+
writable: true,
|
|
245
|
+
value: {
|
|
246
|
+
type: 'vector',
|
|
247
|
+
cluster: false,
|
|
248
|
+
clusterRadius: 50,
|
|
249
|
+
clusterMaxZoom: 20,
|
|
250
|
+
clusterMinPoints: 2,
|
|
251
|
+
flowHost: 'https://flow.emu-analytics.net'
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
return FlowCoreMapDataSource;
|
|
255
|
+
}());
|
|
256
|
+
export { FlowCoreMapDataSource };
|
|
257
|
+
//# sourceMappingURL=flow-core-map-data-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-core-map-data-source.js","sourceRoot":"","sources":["../../../../src/lib/flow-core-map-style/flow-core-map-data-source.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBA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AAS,EAAE;gBACb,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;aAC5C;YAED,MAAM,CAAC,MAAM,GAAG,cAAc,CAAC,QAAQ,EAAE,CAAC;YAC1C,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;QAC3B,CAAC;;IAhOD;;;;eAAuE;YACrE,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,EAAE;YACjB,cAAc,EAAE,EAAE;YAClB,gBAAgB,EAAE,CAAC;YACnB,QAAQ,EAAE,gCAAgC;SAC3C;OAAC;IA0NJ,4BAAC;CAAA,AAlOD,IAkOC;SAlOY,qBAAqB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ParserExpression } from '../flow-core-expression/types';
|
|
2
|
+
import { FlowCoreStateStore } from '../flow-core-state-store';
|
|
3
|
+
export declare type FlowCoreMapLayerType = 'fill' | 'fill-extrusion' | 'circle' | 'line' | 'symbol' | 'raster';
|
|
4
|
+
export interface FlowCoreMapLayerOptions {
|
|
5
|
+
id: string;
|
|
6
|
+
type: FlowCoreMapLayerType;
|
|
7
|
+
source: string;
|
|
8
|
+
sourceLayer?: string;
|
|
9
|
+
interactive?: boolean;
|
|
10
|
+
minZoom?: number;
|
|
11
|
+
maxZoom?: number;
|
|
12
|
+
above?: string;
|
|
13
|
+
below?: string;
|
|
14
|
+
filter?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare type FlowCoreMapLayerExpression = ParserExpression;
|
|
17
|
+
export interface FlowCoreMapLayerSpecification {
|
|
18
|
+
id: string;
|
|
19
|
+
type: FlowCoreMapLayerType;
|
|
20
|
+
metadata?: any;
|
|
21
|
+
source: string;
|
|
22
|
+
'source-layer'?: string;
|
|
23
|
+
minzoom?: number;
|
|
24
|
+
maxzoom?: number;
|
|
25
|
+
filter?: FlowCoreMapLayerExpression;
|
|
26
|
+
layout?: Record<string, FlowCoreMapLayerExpression>;
|
|
27
|
+
paint?: Record<string, FlowCoreMapLayerExpression>;
|
|
28
|
+
}
|
|
29
|
+
export declare class FlowCoreMapLayer {
|
|
30
|
+
private static propertyMetadataIndex;
|
|
31
|
+
private static defaultOptions;
|
|
32
|
+
private options;
|
|
33
|
+
private state;
|
|
34
|
+
private filter;
|
|
35
|
+
private paintProps;
|
|
36
|
+
private layoutProps;
|
|
37
|
+
get layerSpecification(): FlowCoreMapLayerSpecification;
|
|
38
|
+
get id(): string;
|
|
39
|
+
get type(): string;
|
|
40
|
+
get source(): string;
|
|
41
|
+
get interactive(): boolean;
|
|
42
|
+
get above(): string | undefined;
|
|
43
|
+
get below(): string | undefined;
|
|
44
|
+
constructor(options: FlowCoreMapLayerOptions, style?: string);
|
|
45
|
+
bindState(state: FlowCoreStateStore | null): this;
|
|
46
|
+
setMinZoom(zoom: number): this;
|
|
47
|
+
setMaxZoom(zoom: number): this;
|
|
48
|
+
setInteractive(interactive: boolean): this;
|
|
49
|
+
setAbove(layerId: string | undefined): this;
|
|
50
|
+
setBelow(layerId: string | undefined): this;
|
|
51
|
+
setStyle(styleProgram: string): void;
|
|
52
|
+
setStyleProperty(property: string, expression: string | null): void;
|
|
53
|
+
setFilter(expression: string | null): void;
|
|
54
|
+
private formattedName;
|
|
55
|
+
private getPropertyMetadata;
|
|
56
|
+
private static initializePropertyMetadataIndex;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=flow-core-map-layer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-core-map-layer.d.ts","sourceRoot":"","sources":["../../../../src/lib/flow-core-map-style/flow-core-map-layer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9D,oBAAY,oBAAoB,GAAG,MAAM,GAAG,gBAAgB,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CA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,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;gBAEW,OAAO,EAAE,uBAAuB,EAAE,KAAK,CAAC,EAAE,MAAM;IA0C5D,SAAS,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,GAAG,IAAI;IAejD,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAK9B,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAK9B,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI;IAK1C,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAK3C,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAK3C,QAAQ,CAAC,YAAY,EAAE,MAAM;IAkB7B,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAiBnE,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAmB1C,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,mBAAmB;IAoB3B,OAAO,CAAC,MAAM,CAAC,+BAA+B;CAkB/C"}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import * as maplibreSpec from '@maplibre/maplibre-gl-style-spec';
|
|
3
|
+
import { observable, action, computed, makeObservable } from 'mobx';
|
|
4
|
+
import { FlowCoreError } from '../errors';
|
|
5
|
+
import { FlowCoreExpression } from '../flow-core-expression';
|
|
6
|
+
import { isDefined, isNil, isObjectFull } from '../utils/type-checks';
|
|
7
|
+
var FlowCoreMapLayer = (function () {
|
|
8
|
+
function FlowCoreMapLayer(options, style) {
|
|
9
|
+
Object.defineProperty(this, "options", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true,
|
|
13
|
+
value: void 0
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(this, "state", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: null
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(this, "filter", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
value: null
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(this, "paintProps", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: {}
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(this, "layoutProps", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
value: {}
|
|
38
|
+
});
|
|
39
|
+
this.options = __assign(__assign({}, FlowCoreMapLayer.defaultOptions), options);
|
|
40
|
+
this.getPropertyMetadata('visibility', options.type);
|
|
41
|
+
makeObservable(this, {
|
|
42
|
+
paintProps: observable,
|
|
43
|
+
layoutProps: observable,
|
|
44
|
+
filter: observable,
|
|
45
|
+
options: observable,
|
|
46
|
+
layerSpecification: computed,
|
|
47
|
+
bindState: action,
|
|
48
|
+
setMinZoom: action,
|
|
49
|
+
setMaxZoom: action,
|
|
50
|
+
setInteractive: action,
|
|
51
|
+
setAbove: action,
|
|
52
|
+
setBelow: action,
|
|
53
|
+
setStyle: action,
|
|
54
|
+
setStyleProperty: action,
|
|
55
|
+
setFilter: action
|
|
56
|
+
}, { name: this.formattedName(options.id) });
|
|
57
|
+
if (options.filter) {
|
|
58
|
+
this.setFilter(options.filter);
|
|
59
|
+
}
|
|
60
|
+
if (style) {
|
|
61
|
+
this.setStyle(style);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "layerSpecification", {
|
|
65
|
+
get: function () {
|
|
66
|
+
var _this = this;
|
|
67
|
+
this.options.above;
|
|
68
|
+
this.options.below;
|
|
69
|
+
var layer = {
|
|
70
|
+
id: this.options.id,
|
|
71
|
+
type: this.options.type,
|
|
72
|
+
source: this.options.source
|
|
73
|
+
};
|
|
74
|
+
if (isDefined(this.options.minZoom)) {
|
|
75
|
+
layer.minzoom = this.options.minZoom;
|
|
76
|
+
}
|
|
77
|
+
if (isDefined(this.options.maxZoom)) {
|
|
78
|
+
layer.maxzoom = this.options.maxZoom;
|
|
79
|
+
}
|
|
80
|
+
if (isDefined(this.options.sourceLayer)) {
|
|
81
|
+
layer['source-layer'] = this.options.sourceLayer;
|
|
82
|
+
}
|
|
83
|
+
if (isDefined(this.filter)) {
|
|
84
|
+
layer.filter = this.filter.maplibreExpression;
|
|
85
|
+
}
|
|
86
|
+
if (isObjectFull(this.paintProps)) {
|
|
87
|
+
layer.paint = Object.keys(this.paintProps).reduce(function (accum, key) {
|
|
88
|
+
accum[key] = _this.paintProps[key].maplibreExpression;
|
|
89
|
+
return accum;
|
|
90
|
+
}, {});
|
|
91
|
+
}
|
|
92
|
+
if (isObjectFull(this.layoutProps)) {
|
|
93
|
+
layer.layout = Object.keys(this.layoutProps).reduce(function (accum, key) {
|
|
94
|
+
var expr = _this.layoutProps[key].maplibreExpression;
|
|
95
|
+
if (key === 'visibility') {
|
|
96
|
+
expr = _this.layoutProps[key].value ? 'visible' : 'none';
|
|
97
|
+
}
|
|
98
|
+
accum[key] = expr;
|
|
99
|
+
return accum;
|
|
100
|
+
}, {});
|
|
101
|
+
}
|
|
102
|
+
return layer;
|
|
103
|
+
},
|
|
104
|
+
enumerable: false,
|
|
105
|
+
configurable: true
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "id", {
|
|
108
|
+
get: function () {
|
|
109
|
+
return this.options.id;
|
|
110
|
+
},
|
|
111
|
+
enumerable: false,
|
|
112
|
+
configurable: true
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "type", {
|
|
115
|
+
get: function () {
|
|
116
|
+
return this.options.type;
|
|
117
|
+
},
|
|
118
|
+
enumerable: false,
|
|
119
|
+
configurable: true
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "source", {
|
|
122
|
+
get: function () {
|
|
123
|
+
return this.options.source;
|
|
124
|
+
},
|
|
125
|
+
enumerable: false,
|
|
126
|
+
configurable: true
|
|
127
|
+
});
|
|
128
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "interactive", {
|
|
129
|
+
get: function () {
|
|
130
|
+
return !!this.options.interactive;
|
|
131
|
+
},
|
|
132
|
+
enumerable: false,
|
|
133
|
+
configurable: true
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "above", {
|
|
136
|
+
get: function () {
|
|
137
|
+
return this.options.above;
|
|
138
|
+
},
|
|
139
|
+
enumerable: false,
|
|
140
|
+
configurable: true
|
|
141
|
+
});
|
|
142
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "below", {
|
|
143
|
+
get: function () {
|
|
144
|
+
return this.options.below;
|
|
145
|
+
},
|
|
146
|
+
enumerable: false,
|
|
147
|
+
configurable: true
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "bindState", {
|
|
150
|
+
enumerable: false,
|
|
151
|
+
configurable: true,
|
|
152
|
+
writable: true,
|
|
153
|
+
value: function (state) {
|
|
154
|
+
this.state = state;
|
|
155
|
+
if (this.filter) {
|
|
156
|
+
this.filter.bindState(state);
|
|
157
|
+
}
|
|
158
|
+
Object.values(this.paintProps).forEach(function (prop) { return prop.bindState(state); });
|
|
159
|
+
Object.values(this.layoutProps).forEach(function (prop) { return prop.bindState(state); });
|
|
160
|
+
return this;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "setMinZoom", {
|
|
164
|
+
enumerable: false,
|
|
165
|
+
configurable: true,
|
|
166
|
+
writable: true,
|
|
167
|
+
value: function (zoom) {
|
|
168
|
+
this.options.minZoom = zoom;
|
|
169
|
+
return this;
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "setMaxZoom", {
|
|
173
|
+
enumerable: false,
|
|
174
|
+
configurable: true,
|
|
175
|
+
writable: true,
|
|
176
|
+
value: function (zoom) {
|
|
177
|
+
this.options.maxZoom = zoom;
|
|
178
|
+
return this;
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "setInteractive", {
|
|
182
|
+
enumerable: false,
|
|
183
|
+
configurable: true,
|
|
184
|
+
writable: true,
|
|
185
|
+
value: function (interactive) {
|
|
186
|
+
this.options.interactive = interactive;
|
|
187
|
+
return this;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "setAbove", {
|
|
191
|
+
enumerable: false,
|
|
192
|
+
configurable: true,
|
|
193
|
+
writable: true,
|
|
194
|
+
value: function (layerId) {
|
|
195
|
+
this.options.above = layerId;
|
|
196
|
+
return this;
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "setBelow", {
|
|
200
|
+
enumerable: false,
|
|
201
|
+
configurable: true,
|
|
202
|
+
writable: true,
|
|
203
|
+
value: function (layerId) {
|
|
204
|
+
this.options.below = layerId;
|
|
205
|
+
return this;
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "setStyle", {
|
|
209
|
+
enumerable: false,
|
|
210
|
+
configurable: true,
|
|
211
|
+
writable: true,
|
|
212
|
+
value: function (styleProgram) {
|
|
213
|
+
var _this = this;
|
|
214
|
+
var parsedProgram = FlowCoreExpression.parseProgram(styleProgram);
|
|
215
|
+
var props = Object.keys(parsedProgram);
|
|
216
|
+
props.forEach(function (prop) {
|
|
217
|
+
var metadata = _this.getPropertyMetadata(prop, _this.options.type);
|
|
218
|
+
var layerProps = metadata.type === 'paint' ? _this.paintProps : _this.layoutProps;
|
|
219
|
+
layerProps[prop] = parsedProgram[prop].bindState(_this.state);
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "setStyleProperty", {
|
|
224
|
+
enumerable: false,
|
|
225
|
+
configurable: true,
|
|
226
|
+
writable: true,
|
|
227
|
+
value: function (property, expression) {
|
|
228
|
+
var metadata = this.getPropertyMetadata(property, this.options.type);
|
|
229
|
+
var props = metadata.type === 'paint' ? this.paintProps : this.layoutProps;
|
|
230
|
+
if (isNil(expression)) {
|
|
231
|
+
delete props[property];
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
var expr = new FlowCoreExpression(expression).bindState(this.state);
|
|
235
|
+
if (expr.parseError) {
|
|
236
|
+
throw expr.parseError;
|
|
237
|
+
}
|
|
238
|
+
props[property] = expr;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "setFilter", {
|
|
243
|
+
enumerable: false,
|
|
244
|
+
configurable: true,
|
|
245
|
+
writable: true,
|
|
246
|
+
value: function (expression) {
|
|
247
|
+
this.filter = null;
|
|
248
|
+
if (isDefined(expression)) {
|
|
249
|
+
var expr = new FlowCoreExpression(expression).bindState(this.state);
|
|
250
|
+
if (expr.parseError) {
|
|
251
|
+
throw expr.parseError;
|
|
252
|
+
}
|
|
253
|
+
if (!maplibreSpec.expression.isExpressionFilter(expr.maplibreExpression)) {
|
|
254
|
+
expr = new FlowCoreExpression(expr.expression, ['to-boolean', expr.maplibreExpression]);
|
|
255
|
+
}
|
|
256
|
+
this.filter = expr;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "formattedName", {
|
|
261
|
+
enumerable: false,
|
|
262
|
+
configurable: true,
|
|
263
|
+
writable: true,
|
|
264
|
+
value: function (id) {
|
|
265
|
+
return "FlowCoreMapLayer<".concat(id || this.options.id, ">");
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
Object.defineProperty(FlowCoreMapLayer.prototype, "getPropertyMetadata", {
|
|
269
|
+
enumerable: false,
|
|
270
|
+
configurable: true,
|
|
271
|
+
writable: true,
|
|
272
|
+
value: function (property, layerType) {
|
|
273
|
+
if (!FlowCoreMapLayer.propertyMetadataIndex) {
|
|
274
|
+
FlowCoreMapLayer.initializePropertyMetadataIndex();
|
|
275
|
+
}
|
|
276
|
+
var layerMetadata = FlowCoreMapLayer.propertyMetadataIndex[layerType];
|
|
277
|
+
if (!layerMetadata) {
|
|
278
|
+
throw new FlowCoreError("".concat(this.formattedName(), ": unknown layer type '").concat(layerType, "'"));
|
|
279
|
+
}
|
|
280
|
+
var propertyMetadata = layerMetadata[property];
|
|
281
|
+
if (!propertyMetadata) {
|
|
282
|
+
throw new FlowCoreError("".concat(this.formattedName(), ": unknown layer property '").concat(property, "'"));
|
|
283
|
+
}
|
|
284
|
+
return propertyMetadata;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
Object.defineProperty(FlowCoreMapLayer, "initializePropertyMetadataIndex", {
|
|
288
|
+
enumerable: false,
|
|
289
|
+
configurable: true,
|
|
290
|
+
writable: true,
|
|
291
|
+
value: function () {
|
|
292
|
+
var layerTypes = Object.keys(maplibreSpec.latest.layer.type.values);
|
|
293
|
+
this.propertyMetadataIndex = layerTypes.reduce(function (acc, layerType) {
|
|
294
|
+
acc[layerType] = {};
|
|
295
|
+
['layout', 'paint'].forEach(function (propType) {
|
|
296
|
+
Object.keys(maplibreSpec.latest["".concat(propType, "_").concat(layerType)]).forEach(function (prop) {
|
|
297
|
+
acc[layerType][prop] = {
|
|
298
|
+
property: prop,
|
|
299
|
+
type: propType,
|
|
300
|
+
definition: maplibreSpec.latest["".concat(propType, "_").concat(layerType)][prop]
|
|
301
|
+
};
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
return acc;
|
|
305
|
+
}, {});
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
Object.defineProperty(FlowCoreMapLayer, "defaultOptions", {
|
|
309
|
+
enumerable: true,
|
|
310
|
+
configurable: true,
|
|
311
|
+
writable: true,
|
|
312
|
+
value: {
|
|
313
|
+
interactive: true,
|
|
314
|
+
minZoom: 0,
|
|
315
|
+
maxZoom: 18
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
return FlowCoreMapLayer;
|
|
319
|
+
}());
|
|
320
|
+
export { FlowCoreMapLayer };
|
|
321
|
+
//# sourceMappingURL=flow-core-map-layer.js.map
|