@honua/app-platform 0.0.20-alpha.0
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/LICENSE +201 -0
- package/README.md +11 -0
- package/app/index.d.ts +164 -0
- package/app/index.d.ts.map +1 -0
- package/app/index.js +424 -0
- package/app-controller/controller.d.ts +425 -0
- package/app-controller/controller.d.ts.map +1 -0
- package/app-controller/controller.js +1173 -0
- package/app-controller/index.d.ts +14 -0
- package/app-controller/index.d.ts.map +1 -0
- package/app-controller/index.js +12 -0
- package/app-workspace/index.d.ts +421 -0
- package/app-workspace/index.d.ts.map +1 -0
- package/app-workspace/index.js +722 -0
- package/collaboration/client.d.ts +40 -0
- package/collaboration/client.d.ts.map +1 -0
- package/collaboration/client.js +299 -0
- package/collaboration/errors.d.ts +15 -0
- package/collaboration/errors.d.ts.map +1 -0
- package/collaboration/errors.js +17 -0
- package/collaboration/fixture.d.ts +41 -0
- package/collaboration/fixture.d.ts.map +1 -0
- package/collaboration/fixture.js +362 -0
- package/collaboration/index.d.ts +18 -0
- package/collaboration/index.d.ts.map +1 -0
- package/collaboration/index.js +14 -0
- package/collaboration/types.d.ts +240 -0
- package/collaboration/types.d.ts.map +1 -0
- package/collaboration/types.js +1 -0
- package/contract/analytics-sources.d.ts +149 -0
- package/contract/analytics-sources.d.ts.map +1 -0
- package/contract/analytics-sources.js +235 -0
- package/contract/edit-session.d.ts +203 -0
- package/contract/edit-session.d.ts.map +1 -0
- package/contract/edit-session.js +760 -0
- package/contract/edit-sketch.d.ts +91 -0
- package/contract/edit-sketch.d.ts.map +1 -0
- package/contract/edit-sketch.js +281 -0
- package/contract/index.d.ts +63 -0
- package/contract/index.d.ts.map +1 -0
- package/contract/index.js +52 -0
- package/contract/jobs.d.ts +149 -0
- package/contract/jobs.d.ts.map +1 -0
- package/contract/jobs.js +40 -0
- package/contract/pmtiles.d.ts +162 -0
- package/contract/pmtiles.d.ts.map +1 -0
- package/contract/pmtiles.js +155 -0
- package/contract/source.d.ts +447 -0
- package/contract/source.d.ts.map +1 -0
- package/contract/source.js +3909 -0
- package/contract/spatial-aggregation.d.ts +336 -0
- package/contract/spatial-aggregation.d.ts.map +1 -0
- package/contract/spatial-aggregation.js +298 -0
- package/contract/temporal.d.ts +455 -0
- package/contract/temporal.d.ts.map +1 -0
- package/contract/temporal.js +146 -0
- package/contract/tiles.d.ts +370 -0
- package/contract/tiles.d.ts.map +1 -0
- package/contract/tiles.js +519 -0
- package/contract/types.d.ts +694 -0
- package/contract/types.d.ts.map +1 -0
- package/contract/types.js +183 -0
- package/contract/widget-source.d.ts +205 -0
- package/contract/widget-source.d.ts.map +1 -0
- package/contract/widget-source.js +1473 -0
- package/control-plane/client.d.ts +95 -0
- package/control-plane/client.d.ts.map +1 -0
- package/control-plane/client.js +374 -0
- package/control-plane/index.d.ts +18 -0
- package/control-plane/index.d.ts.map +1 -0
- package/control-plane/index.js +14 -0
- package/control-plane/types.d.ts +233 -0
- package/control-plane/types.d.ts.map +1 -0
- package/control-plane/types.js +7 -0
- package/controls/basemap-style-binding.d.ts +54 -0
- package/controls/basemap-style-binding.d.ts.map +1 -0
- package/controls/basemap-style-binding.js +199 -0
- package/controls/basemap-switcher.d.ts +95 -0
- package/controls/basemap-switcher.d.ts.map +1 -0
- package/controls/basemap-switcher.js +379 -0
- package/controls/element-utils.d.ts +48 -0
- package/controls/element-utils.d.ts.map +1 -0
- package/controls/element-utils.js +78 -0
- package/controls/index.d.ts +33 -0
- package/controls/index.d.ts.map +1 -0
- package/controls/index.js +30 -0
- package/controls/layer-list.d.ts +98 -0
- package/controls/layer-list.d.ts.map +1 -0
- package/controls/layer-list.js +375 -0
- package/controls/legend-derive.d.ts +53 -0
- package/controls/legend-derive.d.ts.map +1 -0
- package/controls/legend-derive.js +196 -0
- package/controls/legend.d.ts +104 -0
- package/controls/legend.d.ts.map +1 -0
- package/controls/legend.js +381 -0
- package/controls/swipe-control.d.ts +80 -0
- package/controls/swipe-control.d.ts.map +1 -0
- package/controls/swipe-control.js +368 -0
- package/controls/types.d.ts +227 -0
- package/controls/types.d.ts.map +1 -0
- package/controls/types.js +11 -0
- package/core/auth/client-credentials-provider.d.ts +51 -0
- package/core/auth/client-credentials-provider.d.ts.map +1 -0
- package/core/auth/client-credentials-provider.js +115 -0
- package/core/auth/credential-store.d.ts +52 -0
- package/core/auth/credential-store.d.ts.map +1 -0
- package/core/auth/credential-store.js +82 -0
- package/core/auth/index.d.ts +23 -0
- package/core/auth/index.d.ts.map +1 -0
- package/core/auth/index.js +20 -0
- package/core/auth/oauth2-provider.d.ts +114 -0
- package/core/auth/oauth2-provider.d.ts.map +1 -0
- package/core/auth/oauth2-provider.js +408 -0
- package/core/auth/pkce.d.ts +25 -0
- package/core/auth/pkce.d.ts.map +1 -0
- package/core/auth/pkce.js +46 -0
- package/core/auth/static-providers.d.ts +20 -0
- package/core/auth/static-providers.d.ts.map +1 -0
- package/core/auth/static-providers.js +26 -0
- package/core/auth/token-endpoint.d.ts +40 -0
- package/core/auth/token-endpoint.d.ts.map +1 -0
- package/core/auth/token-endpoint.js +133 -0
- package/core/auth/types.d.ts +144 -0
- package/core/auth/types.d.ts.map +1 -0
- package/core/auth/types.js +8 -0
- package/core/batch.d.ts +37 -0
- package/core/batch.d.ts.map +1 -0
- package/core/batch.js +79 -0
- package/core/cache-state.d.ts +79 -0
- package/core/cache-state.d.ts.map +1 -0
- package/core/cache-state.js +87 -0
- package/core/client.d.ts +607 -0
- package/core/client.d.ts.map +1 -0
- package/core/client.js +1716 -0
- package/core/compatibility.d.ts +18 -0
- package/core/compatibility.d.ts.map +1 -0
- package/core/compatibility.js +245 -0
- package/core/errors.d.ts +139 -0
- package/core/errors.d.ts.map +1 -0
- package/core/errors.js +176 -0
- package/core/esri-geojson.d.ts +66 -0
- package/core/esri-geojson.d.ts.map +1 -0
- package/core/esri-geojson.js +363 -0
- package/core/geoparquet-sql.d.ts +162 -0
- package/core/geoparquet-sql.d.ts.map +1 -0
- package/core/geoparquet-sql.js +333 -0
- package/core/geoservices.d.ts +34 -0
- package/core/geoservices.d.ts.map +1 -0
- package/core/geoservices.js +434 -0
- package/core/grpc-adapter.d.ts +23 -0
- package/core/grpc-adapter.d.ts.map +1 -0
- package/core/grpc-adapter.js +688 -0
- package/core/odata.d.ts +347 -0
- package/core/odata.d.ts.map +1 -0
- package/core/odata.js +913 -0
- package/core/ogc-conformance.d.ts +35 -0
- package/core/ogc-conformance.d.ts.map +1 -0
- package/core/ogc-conformance.js +134 -0
- package/core/ogc-endpoint-layout.d.ts +70 -0
- package/core/ogc-endpoint-layout.d.ts.map +1 -0
- package/core/ogc-endpoint-layout.js +173 -0
- package/core/ogc-features.d.ts +23 -0
- package/core/ogc-features.d.ts.map +1 -0
- package/core/ogc-features.js +129 -0
- package/core/ogc-maps.d.ts +49 -0
- package/core/ogc-maps.d.ts.map +1 -0
- package/core/ogc-maps.js +126 -0
- package/core/ogc-processes.d.ts +118 -0
- package/core/ogc-processes.d.ts.map +1 -0
- package/core/ogc-processes.js +423 -0
- package/core/ogc-records.d.ts +75 -0
- package/core/ogc-records.d.ts.map +1 -0
- package/core/ogc-records.js +251 -0
- package/core/ogc-tiles.d.ts +125 -0
- package/core/ogc-tiles.d.ts.map +1 -0
- package/core/ogc-tiles.js +183 -0
- package/core/path-utils.d.ts +69 -0
- package/core/path-utils.d.ts.map +1 -0
- package/core/path-utils.js +123 -0
- package/core/pbf-decoder.d.ts +39 -0
- package/core/pbf-decoder.d.ts.map +1 -0
- package/core/pbf-decoder.js +702 -0
- package/core/process-runner.d.ts +104 -0
- package/core/process-runner.d.ts.map +1 -0
- package/core/process-runner.js +315 -0
- package/core/protocol-transport.d.ts +76 -0
- package/core/protocol-transport.d.ts.map +1 -0
- package/core/protocol-transport.js +15 -0
- package/core/query-builder.d.ts +261 -0
- package/core/query-builder.d.ts.map +1 -0
- package/core/query-builder.js +538 -0
- package/core/request-pipeline.d.ts +88 -0
- package/core/request-pipeline.d.ts.map +1 -0
- package/core/request-pipeline.js +273 -0
- package/core/spatial-filter.d.ts +93 -0
- package/core/spatial-filter.d.ts.map +1 -0
- package/core/spatial-filter.js +153 -0
- package/core/stac-static.d.ts +51 -0
- package/core/stac-static.d.ts.map +1 -0
- package/core/stac-static.js +195 -0
- package/core/stac.d.ts +67 -0
- package/core/stac.d.ts.map +1 -0
- package/core/stac.js +259 -0
- package/core/surfaces.d.ts +540 -0
- package/core/surfaces.d.ts.map +1 -0
- package/core/surfaces.js +1964 -0
- package/core/terrain-elevation.d.ts +114 -0
- package/core/terrain-elevation.d.ts.map +1 -0
- package/core/terrain-elevation.js +150 -0
- package/core/types.d.ts +1404 -0
- package/core/types.d.ts.map +1 -0
- package/core/types.js +13 -0
- package/core/wfs-capabilities.d.ts +153 -0
- package/core/wfs-capabilities.d.ts.map +1 -0
- package/core/wfs-capabilities.js +490 -0
- package/core/wfs-filter.d.ts +118 -0
- package/core/wfs-filter.d.ts.map +1 -0
- package/core/wfs-filter.js +634 -0
- package/core/wfs.d.ts +232 -0
- package/core/wfs.d.ts.map +1 -0
- package/core/wfs.js +426 -0
- package/core/wire-shared.d.ts +32 -0
- package/core/wire-shared.d.ts.map +1 -0
- package/core/wire-shared.js +76 -0
- package/core/wms-axis.d.ts +36 -0
- package/core/wms-axis.d.ts.map +1 -0
- package/core/wms-axis.js +73 -0
- package/core/wms-capabilities.d.ts +110 -0
- package/core/wms-capabilities.d.ts.map +1 -0
- package/core/wms-capabilities.js +559 -0
- package/core/wms-types.d.ts +128 -0
- package/core/wms-types.d.ts.map +1 -0
- package/core/wms-types.js +32 -0
- package/core/wms.d.ts +144 -0
- package/core/wms.d.ts.map +1 -0
- package/core/wms.js +338 -0
- package/core/wmts-capabilities.d.ts +82 -0
- package/core/wmts-capabilities.d.ts.map +1 -0
- package/core/wmts-capabilities.js +402 -0
- package/core/wmts.d.ts +103 -0
- package/core/wmts.d.ts.map +1 -0
- package/core/wmts.js +332 -0
- package/core/xml-text.d.ts +20 -0
- package/core/xml-text.d.ts.map +1 -0
- package/core/xml-text.js +85 -0
- package/esri-compat/basemap-gallery.d.ts +38 -0
- package/esri-compat/basemap-gallery.d.ts.map +1 -0
- package/esri-compat/basemap-gallery.js +159 -0
- package/esri-compat/basemap-layer-list.d.ts +35 -0
- package/esri-compat/basemap-layer-list.d.ts.map +1 -0
- package/esri-compat/basemap-layer-list.js +139 -0
- package/esri-compat/basemap.d.ts +32 -0
- package/esri-compat/basemap.d.ts.map +1 -0
- package/esri-compat/basemap.js +84 -0
- package/esri-compat/bookmarks.d.ts +36 -0
- package/esri-compat/bookmarks.d.ts.map +1 -0
- package/esri-compat/bookmarks.js +108 -0
- package/esri-compat/class-breaks-renderer.d.ts +50 -0
- package/esri-compat/class-breaks-renderer.d.ts.map +1 -0
- package/esri-compat/class-breaks-renderer.js +164 -0
- package/esri-compat/color.d.ts +22 -0
- package/esri-compat/color.d.ts.map +1 -0
- package/esri-compat/color.js +106 -0
- package/esri-compat/controls.d.ts +174 -0
- package/esri-compat/controls.d.ts.map +1 -0
- package/esri-compat/controls.js +479 -0
- package/esri-compat/coordinate-conversion.d.ts +41 -0
- package/esri-compat/coordinate-conversion.d.ts.map +1 -0
- package/esri-compat/coordinate-conversion.js +125 -0
- package/esri-compat/directions.d.ts +45 -0
- package/esri-compat/directions.d.ts.map +1 -0
- package/esri-compat/directions.js +123 -0
- package/esri-compat/editor.d.ts +47 -0
- package/esri-compat/editor.d.ts.map +1 -0
- package/esri-compat/editor.js +170 -0
- package/esri-compat/esri-config.d.ts +16 -0
- package/esri-compat/esri-config.d.ts.map +1 -0
- package/esri-compat/esri-config.js +23 -0
- package/esri-compat/esri-request.d.ts +17 -0
- package/esri-compat/esri-request.d.ts.map +1 -0
- package/esri-compat/esri-request.js +127 -0
- package/esri-compat/event-bus.d.ts +106 -0
- package/esri-compat/event-bus.d.ts.map +1 -0
- package/esri-compat/event-bus.js +90 -0
- package/esri-compat/expand.d.ts +36 -0
- package/esri-compat/expand.d.ts.map +1 -0
- package/esri-compat/expand.js +97 -0
- package/esri-compat/extent.d.ts +43 -0
- package/esri-compat/extent.d.ts.map +1 -0
- package/esri-compat/extent.js +140 -0
- package/esri-compat/feature-filter.d.ts +55 -0
- package/esri-compat/feature-filter.d.ts.map +1 -0
- package/esri-compat/feature-filter.js +109 -0
- package/esri-compat/feature-form.d.ts +64 -0
- package/esri-compat/feature-form.d.ts.map +1 -0
- package/esri-compat/feature-form.js +137 -0
- package/esri-compat/feature-layer.d.ts +173 -0
- package/esri-compat/feature-layer.d.ts.map +1 -0
- package/esri-compat/feature-layer.js +661 -0
- package/esri-compat/feature-set.d.ts +32 -0
- package/esri-compat/feature-set.d.ts.map +1 -0
- package/esri-compat/feature-set.js +80 -0
- package/esri-compat/feature-table.d.ts +141 -0
- package/esri-compat/feature-table.d.ts.map +1 -0
- package/esri-compat/feature-table.js +500 -0
- package/esri-compat/feature-templates.d.ts +41 -0
- package/esri-compat/feature-templates.d.ts.map +1 -0
- package/esri-compat/feature-templates.js +97 -0
- package/esri-compat/feature.d.ts +33 -0
- package/esri-compat/feature.d.ts.map +1 -0
- package/esri-compat/feature.js +83 -0
- package/esri-compat/geojson-layer.d.ts +86 -0
- package/esri-compat/geojson-layer.d.ts.map +1 -0
- package/esri-compat/geojson-layer.js +191 -0
- package/esri-compat/geometry-engine.d.ts +107 -0
- package/esri-compat/geometry-engine.d.ts.map +1 -0
- package/esri-compat/geometry-engine.js +266 -0
- package/esri-compat/graphic.d.ts +46 -0
- package/esri-compat/graphic.d.ts.map +1 -0
- package/esri-compat/graphic.js +103 -0
- package/esri-compat/graphics-layer.d.ts +49 -0
- package/esri-compat/graphics-layer.d.ts.map +1 -0
- package/esri-compat/graphics-layer.js +185 -0
- package/esri-compat/group-layer.d.ts +48 -0
- package/esri-compat/group-layer.d.ts.map +1 -0
- package/esri-compat/group-layer.js +212 -0
- package/esri-compat/identify.d.ts +71 -0
- package/esri-compat/identify.d.ts.map +1 -0
- package/esri-compat/identify.js +299 -0
- package/esri-compat/identity-manager.d.ts +74 -0
- package/esri-compat/identity-manager.d.ts.map +1 -0
- package/esri-compat/identity-manager.js +245 -0
- package/esri-compat/imagery-layer.d.ts +78 -0
- package/esri-compat/imagery-layer.d.ts.map +1 -0
- package/esri-compat/imagery-layer.js +167 -0
- package/esri-compat/label-class.d.ts +31 -0
- package/esri-compat/label-class.d.ts.map +1 -0
- package/esri-compat/label-class.js +102 -0
- package/esri-compat/layer-list.d.ts +77 -0
- package/esri-compat/layer-list.d.ts.map +1 -0
- package/esri-compat/layer-list.js +342 -0
- package/esri-compat/legend.d.ts +53 -0
- package/esri-compat/legend.d.ts.map +1 -0
- package/esri-compat/legend.js +254 -0
- package/esri-compat/map-image-layer.d.ts +162 -0
- package/esri-compat/map-image-layer.d.ts.map +1 -0
- package/esri-compat/map-image-layer.js +709 -0
- package/esri-compat/map-view.d.ts +323 -0
- package/esri-compat/map-view.d.ts.map +1 -0
- package/esri-compat/map-view.js +1175 -0
- package/esri-compat/map.d.ts +47 -0
- package/esri-compat/map.d.ts.map +1 -0
- package/esri-compat/map.js +209 -0
- package/esri-compat/measurement-2d.d.ts +61 -0
- package/esri-compat/measurement-2d.d.ts.map +1 -0
- package/esri-compat/measurement-2d.js +184 -0
- package/esri-compat/measurement.d.ts +45 -0
- package/esri-compat/measurement.d.ts.map +1 -0
- package/esri-compat/measurement.js +193 -0
- package/esri-compat/oauth-info.d.ts +50 -0
- package/esri-compat/oauth-info.d.ts.map +1 -0
- package/esri-compat/oauth-info.js +142 -0
- package/esri-compat/picture-marker-symbol.d.ts +35 -0
- package/esri-compat/picture-marker-symbol.d.ts.map +1 -0
- package/esri-compat/picture-marker-symbol.js +126 -0
- package/esri-compat/point.d.ts +31 -0
- package/esri-compat/point.d.ts.map +1 -0
- package/esri-compat/point.js +102 -0
- package/esri-compat/polygon.d.ts +31 -0
- package/esri-compat/polygon.d.ts.map +1 -0
- package/esri-compat/polygon.js +107 -0
- package/esri-compat/polyline.d.ts +31 -0
- package/esri-compat/polyline.d.ts.map +1 -0
- package/esri-compat/polyline.js +107 -0
- package/esri-compat/popup-template.d.ts +55 -0
- package/esri-compat/popup-template.d.ts.map +1 -0
- package/esri-compat/popup-template.js +128 -0
- package/esri-compat/popup.d.ts +54 -0
- package/esri-compat/popup.d.ts.map +1 -0
- package/esri-compat/popup.js +312 -0
- package/esri-compat/print.d.ts +47 -0
- package/esri-compat/print.d.ts.map +1 -0
- package/esri-compat/print.js +105 -0
- package/esri-compat/query.d.ts +58 -0
- package/esri-compat/query.d.ts.map +1 -0
- package/esri-compat/query.js +128 -0
- package/esri-compat/reactive-utils.d.ts +24 -0
- package/esri-compat/reactive-utils.d.ts.map +1 -0
- package/esri-compat/reactive-utils.js +193 -0
- package/esri-compat/request.d.ts +41 -0
- package/esri-compat/request.d.ts.map +1 -0
- package/esri-compat/request.js +253 -0
- package/esri-compat/route-layer.d.ts +59 -0
- package/esri-compat/route-layer.d.ts.map +1 -0
- package/esri-compat/route-layer.js +223 -0
- package/esri-compat/route-task.d.ts +88 -0
- package/esri-compat/route-task.d.ts.map +1 -0
- package/esri-compat/route-task.js +225 -0
- package/esri-compat/scene-view.d.ts +41 -0
- package/esri-compat/scene-view.d.ts.map +1 -0
- package/esri-compat/scene-view.js +68 -0
- package/esri-compat/search.d.ts +112 -0
- package/esri-compat/search.d.ts.map +1 -0
- package/esri-compat/search.js +820 -0
- package/esri-compat/simple-fill-symbol.d.ts +27 -0
- package/esri-compat/simple-fill-symbol.d.ts.map +1 -0
- package/esri-compat/simple-fill-symbol.js +85 -0
- package/esri-compat/simple-line-symbol.d.ts +27 -0
- package/esri-compat/simple-line-symbol.d.ts.map +1 -0
- package/esri-compat/simple-line-symbol.js +85 -0
- package/esri-compat/simple-marker-symbol.d.ts +29 -0
- package/esri-compat/simple-marker-symbol.d.ts.map +1 -0
- package/esri-compat/simple-marker-symbol.js +92 -0
- package/esri-compat/simple-renderer.d.ts +29 -0
- package/esri-compat/simple-renderer.d.ts.map +1 -0
- package/esri-compat/simple-renderer.js +92 -0
- package/esri-compat/sketch.d.ts +64 -0
- package/esri-compat/sketch.d.ts.map +1 -0
- package/esri-compat/sketch.js +227 -0
- package/esri-compat/spatial-reference.d.ts +31 -0
- package/esri-compat/spatial-reference.d.ts.map +1 -0
- package/esri-compat/spatial-reference.js +102 -0
- package/esri-compat/swipe.d.ts +34 -0
- package/esri-compat/swipe.d.ts.map +1 -0
- package/esri-compat/swipe.js +93 -0
- package/esri-compat/table-list.d.ts +36 -0
- package/esri-compat/table-list.d.ts.map +1 -0
- package/esri-compat/table-list.js +126 -0
- package/esri-compat/text-symbol.d.ts +37 -0
- package/esri-compat/text-symbol.d.ts.map +1 -0
- package/esri-compat/text-symbol.js +123 -0
- package/esri-compat/tile-layer.d.ts +52 -0
- package/esri-compat/tile-layer.d.ts.map +1 -0
- package/esri-compat/tile-layer.js +168 -0
- package/esri-compat/time-slider.d.ts +70 -0
- package/esri-compat/time-slider.d.ts.map +1 -0
- package/esri-compat/time-slider.js +208 -0
- package/esri-compat/track.d.ts +51 -0
- package/esri-compat/track.d.ts.map +1 -0
- package/esri-compat/track.js +174 -0
- package/esri-compat/unique-value-renderer.d.ts +41 -0
- package/esri-compat/unique-value-renderer.d.ts.map +1 -0
- package/esri-compat/unique-value-renderer.js +127 -0
- package/esri-compat/url.d.ts +13 -0
- package/esri-compat/url.d.ts.map +1 -0
- package/esri-compat/url.js +68 -0
- package/esri-compat/vector-tile-layer.d.ts +47 -0
- package/esri-compat/vector-tile-layer.d.ts.map +1 -0
- package/esri-compat/vector-tile-layer.js +130 -0
- package/esri-compat/web-map.d.ts +14 -0
- package/esri-compat/web-map.d.ts.map +1 -0
- package/esri-compat/web-map.js +24 -0
- package/esri-compat/wfs-layer.d.ts +64 -0
- package/esri-compat/wfs-layer.d.ts.map +1 -0
- package/esri-compat/wfs-layer.js +145 -0
- package/esri-compat/wms-layer.d.ts +76 -0
- package/esri-compat/wms-layer.d.ts.map +1 -0
- package/esri-compat/wms-layer.js +157 -0
- package/exploration/context.d.ts +25 -0
- package/exploration/context.d.ts.map +1 -0
- package/exploration/context.js +396 -0
- package/exploration/index.d.ts +27 -0
- package/exploration/index.d.ts.map +1 -0
- package/exploration/index.js +24 -0
- package/exploration/presets.d.ts +27 -0
- package/exploration/presets.d.ts.map +1 -0
- package/exploration/presets.js +114 -0
- package/exploration/reducer.d.ts +23 -0
- package/exploration/reducer.d.ts.map +1 -0
- package/exploration/reducer.js +332 -0
- package/exploration/selection.d.ts +25 -0
- package/exploration/selection.d.ts.map +1 -0
- package/exploration/selection.js +34 -0
- package/exploration/selectors.d.ts +56 -0
- package/exploration/selectors.d.ts.map +1 -0
- package/exploration/selectors.js +110 -0
- package/exploration/types.d.ts +294 -0
- package/exploration/types.d.ts.map +1 -0
- package/exploration/types.js +33 -0
- package/expr/expression.d.ts +457 -0
- package/expr/expression.d.ts.map +1 -0
- package/expr/expression.js +663 -0
- package/expr/index.d.ts +32 -0
- package/expr/index.d.ts.map +1 -0
- package/expr/index.js +30 -0
- package/filter-registry/index.d.ts +145 -0
- package/filter-registry/index.d.ts.map +1 -0
- package/filter-registry/index.js +531 -0
- package/gen/honua/v1/feature_service_pb.d.ts +918 -0
- package/gen/honua/v1/feature_service_pb.d.ts.map +1 -0
- package/gen/honua/v1/feature_service_pb.js +375 -0
- package/generated-app/errors.d.ts +41 -0
- package/generated-app/errors.d.ts.map +1 -0
- package/generated-app/errors.js +41 -0
- package/generated-app/index.d.ts +17 -0
- package/generated-app/index.d.ts.map +1 -0
- package/generated-app/index.js +12 -0
- package/generated-app/manifest.d.ts +183 -0
- package/generated-app/manifest.d.ts.map +1 -0
- package/generated-app/manifest.js +14 -0
- package/generated-app/projection.d.ts +44 -0
- package/generated-app/projection.d.ts.map +1 -0
- package/generated-app/projection.js +234 -0
- package/generated-app/runtime.d.ts +215 -0
- package/generated-app/runtime.d.ts.map +1 -0
- package/generated-app/runtime.js +1196 -0
- package/geocoding/index.d.ts +106 -0
- package/geocoding/index.d.ts.map +1 -0
- package/geocoding/index.js +278 -0
- package/interactions/detail-model.d.ts +54 -0
- package/interactions/detail-model.d.ts.map +1 -0
- package/interactions/detail-model.js +105 -0
- package/interactions/exploration-bindings.d.ts +120 -0
- package/interactions/exploration-bindings.d.ts.map +1 -0
- package/interactions/exploration-bindings.js +218 -0
- package/interactions/feature-state.d.ts +144 -0
- package/interactions/feature-state.d.ts.map +1 -0
- package/interactions/feature-state.js +169 -0
- package/interactions/hit-test.d.ts +112 -0
- package/interactions/hit-test.d.ts.map +1 -0
- package/interactions/hit-test.js +291 -0
- package/interactions/index.d.ts +31 -0
- package/interactions/index.d.ts.map +1 -0
- package/interactions/index.js +24 -0
- package/interactions/share-state.d.ts +36 -0
- package/interactions/share-state.d.ts.map +1 -0
- package/interactions/share-state.js +123 -0
- package/map/feature-service-adapter.d.ts +138 -0
- package/map/feature-service-adapter.d.ts.map +1 -0
- package/map/feature-service-adapter.js +279 -0
- package/map/honua-map.d.ts +203 -0
- package/map/honua-map.d.ts.map +1 -0
- package/map/honua-map.js +347 -0
- package/map/index.d.ts +27 -0
- package/map/index.d.ts.map +1 -0
- package/map/index.js +22 -0
- package/map/maplibre-target.d.ts +103 -0
- package/map/maplibre-target.d.ts.map +1 -0
- package/map/maplibre-target.js +164 -0
- package/map/webmap-maplibre.d.ts +60 -0
- package/map/webmap-maplibre.d.ts.map +1 -0
- package/map/webmap-maplibre.js +212 -0
- package/operate/client.d.ts +94 -0
- package/operate/client.d.ts.map +1 -0
- package/operate/client.js +361 -0
- package/operate/index.d.ts +22 -0
- package/operate/index.d.ts.map +1 -0
- package/operate/index.js +19 -0
- package/operate/types.d.ts +397 -0
- package/operate/types.d.ts.map +1 -0
- package/operate/types.js +17 -0
- package/operator/client.d.ts +60 -0
- package/operator/client.d.ts.map +1 -0
- package/operator/client.js +20 -0
- package/operator/controllers/approval.d.ts +52 -0
- package/operator/controllers/approval.d.ts.map +1 -0
- package/operator/controllers/approval.js +123 -0
- package/operator/controllers/base.d.ts +27 -0
- package/operator/controllers/base.d.ts.map +1 -0
- package/operator/controllers/base.js +53 -0
- package/operator/controllers/builder-workspace.d.ts +55 -0
- package/operator/controllers/builder-workspace.d.ts.map +1 -0
- package/operator/controllers/builder-workspace.js +108 -0
- package/operator/controllers/chat.d.ts +61 -0
- package/operator/controllers/chat.d.ts.map +1 -0
- package/operator/controllers/chat.js +154 -0
- package/operator/controllers/clarification.d.ts +52 -0
- package/operator/controllers/clarification.d.ts.map +1 -0
- package/operator/controllers/clarification.js +121 -0
- package/operator/controllers/execution.d.ts +60 -0
- package/operator/controllers/execution.d.ts.map +1 -0
- package/operator/controllers/execution.js +286 -0
- package/operator/controllers/index.d.ts +23 -0
- package/operator/controllers/index.d.ts.map +1 -0
- package/operator/controllers/index.js +15 -0
- package/operator/controllers/map-workspace.d.ts +85 -0
- package/operator/controllers/map-workspace.d.ts.map +1 -0
- package/operator/controllers/map-workspace.js +296 -0
- package/operator/controllers/plan-review.d.ts +66 -0
- package/operator/controllers/plan-review.d.ts.map +1 -0
- package/operator/controllers/plan-review.js +124 -0
- package/operator/errors.d.ts +62 -0
- package/operator/errors.d.ts.map +1 -0
- package/operator/errors.js +75 -0
- package/operator/i18n/index.d.ts +10 -0
- package/operator/i18n/index.d.ts.map +1 -0
- package/operator/i18n/index.js +8 -0
- package/operator/i18n/messages.d.ts +19 -0
- package/operator/i18n/messages.d.ts.map +1 -0
- package/operator/i18n/messages.js +54 -0
- package/operator/index.d.ts +19 -0
- package/operator/index.d.ts.map +1 -0
- package/operator/index.js +15 -0
- package/operator/telemetry.d.ts +26 -0
- package/operator/telemetry.d.ts.map +1 -0
- package/operator/telemetry.js +9 -0
- package/operator/theming/index.d.ts +12 -0
- package/operator/theming/index.d.ts.map +1 -0
- package/operator/theming/index.js +9 -0
- package/operator/theming/provider.d.ts +27 -0
- package/operator/theming/provider.d.ts.map +1 -0
- package/operator/theming/provider.js +26 -0
- package/operator/theming/tokens.d.ts +28 -0
- package/operator/theming/tokens.d.ts.map +1 -0
- package/operator/theming/tokens.js +65 -0
- package/operator/workspace/events.d.ts +70 -0
- package/operator/workspace/events.d.ts.map +1 -0
- package/operator/workspace/events.js +9 -0
- package/operator/workspace/index.d.ts +12 -0
- package/operator/workspace/index.d.ts.map +1 -0
- package/operator/workspace/index.js +8 -0
- package/operator/workspace/types.d.ts +178 -0
- package/operator/workspace/types.d.ts.map +1 -0
- package/operator/workspace/types.js +47 -0
- package/operator/workspace/workspace.d.ts +58 -0
- package/operator/workspace/workspace.d.ts.map +1 -0
- package/operator/workspace/workspace.js +339 -0
- package/package.json +105 -0
- package/realtime/exploration.d.ts +16 -0
- package/realtime/exploration.d.ts.map +1 -0
- package/realtime/exploration.js +32 -0
- package/realtime/honua-server.d.ts +123 -0
- package/realtime/honua-server.d.ts.map +1 -0
- package/realtime/honua-server.js +188 -0
- package/realtime/index.d.ts +20 -0
- package/realtime/index.d.ts.map +1 -0
- package/realtime/index.js +14 -0
- package/realtime/projections.d.ts +30 -0
- package/realtime/projections.d.ts.map +1 -0
- package/realtime/projections.js +51 -0
- package/realtime/reducer.d.ts +14 -0
- package/realtime/reducer.d.ts.map +1 -0
- package/realtime/reducer.js +351 -0
- package/realtime/sse.d.ts +23 -0
- package/realtime/sse.d.ts.map +1 -0
- package/realtime/sse.js +143 -0
- package/realtime/store.d.ts +18 -0
- package/realtime/store.d.ts.map +1 -0
- package/realtime/store.js +63 -0
- package/realtime/types.d.ts +190 -0
- package/realtime/types.d.ts.map +1 -0
- package/realtime/types.js +10 -0
- package/replica-sync/client.d.ts +32 -0
- package/replica-sync/client.d.ts.map +1 -0
- package/replica-sync/client.js +52 -0
- package/replica-sync/errors.d.ts +22 -0
- package/replica-sync/errors.d.ts.map +1 -0
- package/replica-sync/errors.js +29 -0
- package/replica-sync/fixture.d.ts +40 -0
- package/replica-sync/fixture.d.ts.map +1 -0
- package/replica-sync/fixture.js +364 -0
- package/replica-sync/index.d.ts +22 -0
- package/replica-sync/index.d.ts.map +1 -0
- package/replica-sync/index.js +17 -0
- package/replica-sync/types.d.ts +270 -0
- package/replica-sync/types.d.ts.map +1 -0
- package/replica-sync/types.js +13 -0
- package/runtime/diff.d.ts +31 -0
- package/runtime/diff.d.ts.map +1 -0
- package/runtime/diff.js +143 -0
- package/runtime/errors.d.ts +40 -0
- package/runtime/errors.d.ts.map +1 -0
- package/runtime/errors.js +35 -0
- package/runtime/index.d.ts +59 -0
- package/runtime/index.d.ts.map +1 -0
- package/runtime/index.js +40 -0
- package/runtime/legend.d.ts +23 -0
- package/runtime/legend.d.ts.map +1 -0
- package/runtime/legend.js +38 -0
- package/runtime/load-package.d.ts +125 -0
- package/runtime/load-package.d.ts.map +1 -0
- package/runtime/load-package.js +272 -0
- package/runtime/map-package-fetch.d.ts +107 -0
- package/runtime/map-package-fetch.d.ts.map +1 -0
- package/runtime/map-package-fetch.js +336 -0
- package/runtime/map-package-realtime.d.ts +169 -0
- package/runtime/map-package-realtime.d.ts.map +1 -0
- package/runtime/map-package-realtime.js +350 -0
- package/runtime/map-package-validation.d.ts +30 -0
- package/runtime/map-package-validation.d.ts.map +1 -0
- package/runtime/map-package-validation.js +257 -0
- package/runtime/map-package-watch.d.ts +78 -0
- package/runtime/map-package-watch.d.ts.map +1 -0
- package/runtime/map-package-watch.js +695 -0
- package/runtime/map-package.d.ts +167 -0
- package/runtime/map-package.d.ts.map +1 -0
- package/runtime/map-package.js +15 -0
- package/runtime/ogc-styles.d.ts +110 -0
- package/runtime/ogc-styles.d.ts.map +1 -0
- package/runtime/ogc-styles.js +195 -0
- package/runtime/pmtiles-protocol.d.ts +77 -0
- package/runtime/pmtiles-protocol.d.ts.map +1 -0
- package/runtime/pmtiles-protocol.js +120 -0
- package/runtime/popups.d.ts +62 -0
- package/runtime/popups.d.ts.map +1 -0
- package/runtime/popups.js +95 -0
- package/runtime/query-tiles.d.ts +217 -0
- package/runtime/query-tiles.d.ts.map +1 -0
- package/runtime/query-tiles.js +801 -0
- package/runtime/runtime.d.ts +243 -0
- package/runtime/runtime.d.ts.map +1 -0
- package/runtime/runtime.js +1147 -0
- package/runtime/source-bridge.d.ts +99 -0
- package/runtime/source-bridge.d.ts.map +1 -0
- package/runtime/source-bridge.js +428 -0
- package/runtime/style-compose.d.ts +46 -0
- package/runtime/style-compose.d.ts.map +1 -0
- package/runtime/style-compose.js +144 -0
- package/runtime/style-interactions.d.ts +141 -0
- package/runtime/style-interactions.d.ts.map +1 -0
- package/runtime/style-interactions.js +574 -0
- package/runtime/style-spec-validation.d.ts +23 -0
- package/runtime/style-spec-validation.d.ts.map +1 -0
- package/runtime/style-spec-validation.js +357 -0
- package/scene-workspace/analysis-widgets.d.ts +334 -0
- package/scene-workspace/analysis-widgets.d.ts.map +1 -0
- package/scene-workspace/analysis-widgets.js +424 -0
- package/scene-workspace/cesium-adapter.d.ts +438 -0
- package/scene-workspace/cesium-adapter.d.ts.map +1 -0
- package/scene-workspace/cesium-adapter.js +493 -0
- package/scene-workspace/index.d.ts +21 -0
- package/scene-workspace/index.d.ts.map +1 -0
- package/scene-workspace/index.js +14 -0
- package/scene-workspace/primitives.d.ts +162 -0
- package/scene-workspace/primitives.d.ts.map +1 -0
- package/scene-workspace/primitives.js +255 -0
- package/scene-workspace/scene-discovery.d.ts +196 -0
- package/scene-workspace/scene-discovery.d.ts.map +1 -0
- package/scene-workspace/scene-discovery.js +228 -0
- package/scene-workspace/scene-view.d.ts +209 -0
- package/scene-workspace/scene-view.d.ts.map +1 -0
- package/scene-workspace/scene-view.js +267 -0
- package/scene-workspace/types.d.ts +229 -0
- package/scene-workspace/types.d.ts.map +1 -0
- package/scene-workspace/types.js +23 -0
- package/scene-workspace/workspace.d.ts +13 -0
- package/scene-workspace/workspace.d.ts.map +1 -0
- package/scene-workspace/workspace.js +391 -0
- package/share/denial.d.ts +78 -0
- package/share/denial.d.ts.map +1 -0
- package/share/denial.js +61 -0
- package/share/embed-token.d.ts +71 -0
- package/share/embed-token.d.ts.map +1 -0
- package/share/embed-token.js +99 -0
- package/share/index.d.ts +35 -0
- package/share/index.d.ts.map +1 -0
- package/share/index.js +30 -0
- package/share/open-data.d.ts +114 -0
- package/share/open-data.d.ts.map +1 -0
- package/share/open-data.js +81 -0
- package/share/types.d.ts +163 -0
- package/share/types.d.ts.map +1 -0
- package/share/types.js +17 -0
- package/studio/capability-manifest.d.ts +285 -0
- package/studio/capability-manifest.d.ts.map +1 -0
- package/studio/capability-manifest.js +59 -0
- package/studio/chart-spec.d.ts +85 -0
- package/studio/chart-spec.d.ts.map +1 -0
- package/studio/chart-spec.js +106 -0
- package/studio/index.d.ts +34 -0
- package/studio/index.d.ts.map +1 -0
- package/studio/index.js +27 -0
- package/studio/provenance.d.ts +131 -0
- package/studio/provenance.d.ts.map +1 -0
- package/studio/provenance.js +39 -0
- package/studio/publish.d.ts +64 -0
- package/studio/publish.d.ts.map +1 -0
- package/studio/publish.js +13 -0
- package/studio/types.d.ts +278 -0
- package/studio/types.d.ts.map +1 -0
- package/studio/types.js +71 -0
- package/studio/validate.d.ts +45 -0
- package/studio/validate.d.ts.map +1 -0
- package/studio/validate.js +255 -0
- package/studio/validation.d.ts +112 -0
- package/studio/validation.d.ts.map +1 -0
- package/studio/validation.js +42 -0
- package/style/factory.d.ts +30 -0
- package/style/factory.d.ts.map +1 -0
- package/style/factory.js +61 -0
- package/style/index.d.ts +25 -0
- package/style/index.d.ts.map +1 -0
- package/style/index.js +24 -0
- package/style/specification.d.ts +203 -0
- package/style/specification.d.ts.map +1 -0
- package/style/specification.js +178 -0
- package/style/wms-wmts-resolvers.d.ts +38 -0
- package/style/wms-wmts-resolvers.d.ts.map +1 -0
- package/style/wms-wmts-resolvers.js +92 -0
- package/web-components/controller.d.ts +39 -0
- package/web-components/controller.d.ts.map +1 -0
- package/web-components/controller.js +640 -0
- package/web-components/elements.d.ts +210 -0
- package/web-components/elements.d.ts.map +1 -0
- package/web-components/elements.js +1651 -0
- package/web-components/index.d.ts +24 -0
- package/web-components/index.d.ts.map +1 -0
- package/web-components/index.js +22 -0
- package/web-components/maplibre-renderer.d.ts +22 -0
- package/web-components/maplibre-renderer.d.ts.map +1 -0
- package/web-components/maplibre-renderer.js +474 -0
- package/web-components/types.d.ts +397 -0
- package/web-components/types.d.ts.map +1 -0
- package/web-components/types.js +1 -0
- package/webmap/contract.d.ts +28 -0
- package/webmap/contract.d.ts.map +1 -0
- package/webmap/contract.js +130 -0
- package/webmap/convert-basemap.d.ts +17 -0
- package/webmap/convert-basemap.d.ts.map +1 -0
- package/webmap/convert-basemap.js +78 -0
- package/webmap/convert-extent.d.ts +17 -0
- package/webmap/convert-extent.d.ts.map +1 -0
- package/webmap/convert-extent.js +114 -0
- package/webmap/convert-label.d.ts +13 -0
- package/webmap/convert-label.d.ts.map +1 -0
- package/webmap/convert-label.js +125 -0
- package/webmap/convert-layer.d.ts +22 -0
- package/webmap/convert-layer.d.ts.map +1 -0
- package/webmap/convert-layer.js +181 -0
- package/webmap/convert-popup.d.ts +34 -0
- package/webmap/convert-popup.d.ts.map +1 -0
- package/webmap/convert-popup.js +68 -0
- package/webmap/convert-renderer.d.ts +17 -0
- package/webmap/convert-renderer.d.ts.map +1 -0
- package/webmap/convert-renderer.js +161 -0
- package/webmap/convert-symbol.d.ts +17 -0
- package/webmap/convert-symbol.d.ts.map +1 -0
- package/webmap/convert-symbol.js +122 -0
- package/webmap/index.d.ts +44 -0
- package/webmap/index.d.ts.map +1 -0
- package/webmap/index.js +33 -0
- package/webmap/parse.d.ts +25 -0
- package/webmap/parse.d.ts.map +1 -0
- package/webmap/parse.js +83 -0
- package/webmap/types.d.ts +264 -0
- package/webmap/types.d.ts.map +1 -0
- package/webmap/types.js +13 -0
- package/webmap/warnings.d.ts +30 -0
- package/webmap/warnings.d.ts.map +1 -0
- package/webmap/warnings.js +37 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { safeInvokeCompatListener } from "./event-bus.js";
|
|
2
|
+
export class PointCompat {
|
|
3
|
+
loaded;
|
|
4
|
+
loadStatus;
|
|
5
|
+
x;
|
|
6
|
+
y;
|
|
7
|
+
z;
|
|
8
|
+
m;
|
|
9
|
+
spatialReference;
|
|
10
|
+
watchListeners;
|
|
11
|
+
constructor(options = {}) {
|
|
12
|
+
this.loaded = false;
|
|
13
|
+
this.loadStatus = "not-loaded";
|
|
14
|
+
this.x = normalizeFiniteNumber(options.x);
|
|
15
|
+
this.y = normalizeFiniteNumber(options.y);
|
|
16
|
+
this.z = normalizeFiniteNumber(options.z);
|
|
17
|
+
this.m = normalizeFiniteNumber(options.m);
|
|
18
|
+
this.spatialReference = options.spatialReference;
|
|
19
|
+
this.watchListeners = new Map();
|
|
20
|
+
}
|
|
21
|
+
async load() {
|
|
22
|
+
if (this.loaded) {
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
this.loadStatus = "loading";
|
|
26
|
+
this.notifyWatchers("loadStatus", this.loadStatus);
|
|
27
|
+
this.loaded = true;
|
|
28
|
+
this.notifyWatchers("loaded", this.loaded);
|
|
29
|
+
this.loadStatus = "loaded";
|
|
30
|
+
this.notifyWatchers("loadStatus", this.loadStatus);
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
async when(callback) {
|
|
34
|
+
const point = await this.load();
|
|
35
|
+
if (callback) {
|
|
36
|
+
callback(point);
|
|
37
|
+
}
|
|
38
|
+
return point;
|
|
39
|
+
}
|
|
40
|
+
watch(propertyName, listener) {
|
|
41
|
+
let listeners = this.watchListeners.get(propertyName);
|
|
42
|
+
if (!listeners) {
|
|
43
|
+
listeners = new Set();
|
|
44
|
+
this.watchListeners.set(propertyName, listeners);
|
|
45
|
+
}
|
|
46
|
+
listeners.add(listener);
|
|
47
|
+
return {
|
|
48
|
+
remove: () => {
|
|
49
|
+
listeners?.delete(listener);
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
update(options) {
|
|
54
|
+
if (options.x !== undefined) {
|
|
55
|
+
this.x = normalizeFiniteNumber(options.x);
|
|
56
|
+
this.notifyWatchers("x", this.x);
|
|
57
|
+
}
|
|
58
|
+
if (options.y !== undefined) {
|
|
59
|
+
this.y = normalizeFiniteNumber(options.y);
|
|
60
|
+
this.notifyWatchers("y", this.y);
|
|
61
|
+
}
|
|
62
|
+
if (options.z !== undefined) {
|
|
63
|
+
this.z = normalizeFiniteNumber(options.z);
|
|
64
|
+
this.notifyWatchers("z", this.z);
|
|
65
|
+
}
|
|
66
|
+
if (options.m !== undefined) {
|
|
67
|
+
this.m = normalizeFiniteNumber(options.m);
|
|
68
|
+
this.notifyWatchers("m", this.m);
|
|
69
|
+
}
|
|
70
|
+
if (options.spatialReference !== undefined) {
|
|
71
|
+
this.spatialReference = options.spatialReference;
|
|
72
|
+
this.notifyWatchers("spatialReference", this.spatialReference);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
clone() {
|
|
76
|
+
return new PointCompat(this.toJSON());
|
|
77
|
+
}
|
|
78
|
+
toJSON() {
|
|
79
|
+
return {
|
|
80
|
+
x: this.x,
|
|
81
|
+
y: this.y,
|
|
82
|
+
z: this.z,
|
|
83
|
+
m: this.m,
|
|
84
|
+
spatialReference: this.spatialReference,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
destroy() {
|
|
88
|
+
this.watchListeners.clear();
|
|
89
|
+
}
|
|
90
|
+
notifyWatchers(propertyName, value) {
|
|
91
|
+
const listeners = this.watchListeners.get(propertyName);
|
|
92
|
+
if (!listeners) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
for (const listener of listeners) {
|
|
96
|
+
safeInvokeCompatListener(listener, value);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function normalizeFiniteNumber(value) {
|
|
101
|
+
return typeof value === "number" && Number.isFinite(value) ? value : undefined;
|
|
102
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface PolygonCompatOptions {
|
|
2
|
+
rings?: unknown[][][];
|
|
3
|
+
spatialReference?: unknown;
|
|
4
|
+
hasZ?: boolean;
|
|
5
|
+
hasM?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type PolygonLoadStatusCompat = "not-loaded" | "loading" | "loaded";
|
|
8
|
+
export interface PolygonHandleCompat {
|
|
9
|
+
remove(): void;
|
|
10
|
+
}
|
|
11
|
+
export declare class PolygonCompat {
|
|
12
|
+
loaded: boolean;
|
|
13
|
+
loadStatus: PolygonLoadStatusCompat;
|
|
14
|
+
rings: unknown[][][];
|
|
15
|
+
spatialReference: unknown;
|
|
16
|
+
hasZ: boolean;
|
|
17
|
+
hasM: boolean;
|
|
18
|
+
private readonly watchListeners;
|
|
19
|
+
constructor(options?: PolygonCompatOptions);
|
|
20
|
+
load(): Promise<PolygonCompat>;
|
|
21
|
+
when(callback?: (polygon: PolygonCompat) => void): Promise<PolygonCompat>;
|
|
22
|
+
watch(propertyName: string, listener: (value: unknown) => void): PolygonHandleCompat;
|
|
23
|
+
addRing(ring: unknown[][]): void;
|
|
24
|
+
removeRing(index: number): boolean;
|
|
25
|
+
update(options: PolygonCompatOptions): void;
|
|
26
|
+
clone(): PolygonCompat;
|
|
27
|
+
toJSON(): PolygonCompatOptions;
|
|
28
|
+
destroy(): void;
|
|
29
|
+
private notifyWatchers;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=polygon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../src/esri-compat/polygon.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE1E,MAAM,WAAW,mBAAmB;IAClC,MAAM,IAAI,IAAI,CAAC;CAChB;AAED,qBAAa,aAAa;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,uBAAuB,CAAC;IACpC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6C;gBAEzD,OAAO,GAAE,oBAAyB;IAUxC,IAAI,IAAI,OAAO,CAAC,aAAa,CAAC;IAc9B,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC;IAQ/E,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,mBAAmB;IAepF,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,GAAG,IAAI;IAKhC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IASlC,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI;IAmB3C,KAAK,IAAI,aAAa;IAItB,MAAM,IAAI,oBAAoB;IAS9B,OAAO,IAAI,IAAI;IAItB,OAAO,CAAC,cAAc;CAUvB"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { safeInvokeCompatListener } from "./event-bus.js";
|
|
2
|
+
export class PolygonCompat {
|
|
3
|
+
loaded;
|
|
4
|
+
loadStatus;
|
|
5
|
+
rings;
|
|
6
|
+
spatialReference;
|
|
7
|
+
hasZ;
|
|
8
|
+
hasM;
|
|
9
|
+
watchListeners;
|
|
10
|
+
constructor(options = {}) {
|
|
11
|
+
this.loaded = false;
|
|
12
|
+
this.loadStatus = "not-loaded";
|
|
13
|
+
this.rings = options.rings ? options.rings.map(cloneRing) : [];
|
|
14
|
+
this.spatialReference = options.spatialReference;
|
|
15
|
+
this.hasZ = options.hasZ ?? false;
|
|
16
|
+
this.hasM = options.hasM ?? false;
|
|
17
|
+
this.watchListeners = new Map();
|
|
18
|
+
}
|
|
19
|
+
async load() {
|
|
20
|
+
if (this.loaded) {
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
this.loadStatus = "loading";
|
|
24
|
+
this.notifyWatchers("loadStatus", this.loadStatus);
|
|
25
|
+
this.loaded = true;
|
|
26
|
+
this.notifyWatchers("loaded", this.loaded);
|
|
27
|
+
this.loadStatus = "loaded";
|
|
28
|
+
this.notifyWatchers("loadStatus", this.loadStatus);
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
async when(callback) {
|
|
32
|
+
const polygon = await this.load();
|
|
33
|
+
if (callback) {
|
|
34
|
+
callback(polygon);
|
|
35
|
+
}
|
|
36
|
+
return polygon;
|
|
37
|
+
}
|
|
38
|
+
watch(propertyName, listener) {
|
|
39
|
+
let listeners = this.watchListeners.get(propertyName);
|
|
40
|
+
if (!listeners) {
|
|
41
|
+
listeners = new Set();
|
|
42
|
+
this.watchListeners.set(propertyName, listeners);
|
|
43
|
+
}
|
|
44
|
+
listeners.add(listener);
|
|
45
|
+
return {
|
|
46
|
+
remove: () => {
|
|
47
|
+
listeners?.delete(listener);
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
addRing(ring) {
|
|
52
|
+
this.rings.push(cloneRing(ring));
|
|
53
|
+
this.notifyWatchers("rings", this.rings);
|
|
54
|
+
}
|
|
55
|
+
removeRing(index) {
|
|
56
|
+
if (!Number.isInteger(index) || index < 0 || index >= this.rings.length) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
this.rings.splice(index, 1);
|
|
60
|
+
this.notifyWatchers("rings", this.rings);
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
update(options) {
|
|
64
|
+
if (options.rings !== undefined) {
|
|
65
|
+
this.rings = options.rings.map(cloneRing);
|
|
66
|
+
this.notifyWatchers("rings", this.rings);
|
|
67
|
+
}
|
|
68
|
+
if (options.spatialReference !== undefined) {
|
|
69
|
+
this.spatialReference = options.spatialReference;
|
|
70
|
+
this.notifyWatchers("spatialReference", this.spatialReference);
|
|
71
|
+
}
|
|
72
|
+
if (options.hasZ !== undefined) {
|
|
73
|
+
this.hasZ = options.hasZ;
|
|
74
|
+
this.notifyWatchers("hasZ", this.hasZ);
|
|
75
|
+
}
|
|
76
|
+
if (options.hasM !== undefined) {
|
|
77
|
+
this.hasM = options.hasM;
|
|
78
|
+
this.notifyWatchers("hasM", this.hasM);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
clone() {
|
|
82
|
+
return new PolygonCompat(this.toJSON());
|
|
83
|
+
}
|
|
84
|
+
toJSON() {
|
|
85
|
+
return {
|
|
86
|
+
rings: this.rings.map(cloneRing),
|
|
87
|
+
spatialReference: this.spatialReference,
|
|
88
|
+
hasZ: this.hasZ,
|
|
89
|
+
hasM: this.hasM,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
destroy() {
|
|
93
|
+
this.watchListeners.clear();
|
|
94
|
+
}
|
|
95
|
+
notifyWatchers(propertyName, value) {
|
|
96
|
+
const listeners = this.watchListeners.get(propertyName);
|
|
97
|
+
if (!listeners) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
for (const listener of listeners) {
|
|
101
|
+
safeInvokeCompatListener(listener, value);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function cloneRing(ring) {
|
|
106
|
+
return ring.map((point) => [...point]);
|
|
107
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface PolylineCompatOptions {
|
|
2
|
+
paths?: unknown[][][];
|
|
3
|
+
spatialReference?: unknown;
|
|
4
|
+
hasZ?: boolean;
|
|
5
|
+
hasM?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type PolylineLoadStatusCompat = "not-loaded" | "loading" | "loaded";
|
|
8
|
+
export interface PolylineHandleCompat {
|
|
9
|
+
remove(): void;
|
|
10
|
+
}
|
|
11
|
+
export declare class PolylineCompat {
|
|
12
|
+
loaded: boolean;
|
|
13
|
+
loadStatus: PolylineLoadStatusCompat;
|
|
14
|
+
paths: unknown[][][];
|
|
15
|
+
spatialReference: unknown;
|
|
16
|
+
hasZ: boolean;
|
|
17
|
+
hasM: boolean;
|
|
18
|
+
private readonly watchListeners;
|
|
19
|
+
constructor(options?: PolylineCompatOptions);
|
|
20
|
+
load(): Promise<PolylineCompat>;
|
|
21
|
+
when(callback?: (polyline: PolylineCompat) => void): Promise<PolylineCompat>;
|
|
22
|
+
watch(propertyName: string, listener: (value: unknown) => void): PolylineHandleCompat;
|
|
23
|
+
addPath(path: unknown[][]): void;
|
|
24
|
+
removePath(index: number): boolean;
|
|
25
|
+
update(options: PolylineCompatOptions): void;
|
|
26
|
+
clone(): PolylineCompat;
|
|
27
|
+
toJSON(): PolylineCompatOptions;
|
|
28
|
+
destroy(): void;
|
|
29
|
+
private notifyWatchers;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=polyline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyline.d.ts","sourceRoot":"","sources":["../../../src/esri-compat/polyline.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3E,MAAM,WAAW,oBAAoB;IACnC,MAAM,IAAI,IAAI,CAAC;CAChB;AAED,qBAAa,cAAc;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,wBAAwB,CAAC;IACrC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6C;gBAEzD,OAAO,GAAE,qBAA0B;IAUzC,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC;IAc/B,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,GAAG,OAAO,CAAC,cAAc,CAAC;IAQlF,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,oBAAoB;IAerF,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,GAAG,IAAI;IAKhC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IASlC,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI;IAmB5C,KAAK,IAAI,cAAc;IAIvB,MAAM,IAAI,qBAAqB;IAS/B,OAAO,IAAI,IAAI;IAItB,OAAO,CAAC,cAAc;CAUvB"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { safeInvokeCompatListener } from "./event-bus.js";
|
|
2
|
+
export class PolylineCompat {
|
|
3
|
+
loaded;
|
|
4
|
+
loadStatus;
|
|
5
|
+
paths;
|
|
6
|
+
spatialReference;
|
|
7
|
+
hasZ;
|
|
8
|
+
hasM;
|
|
9
|
+
watchListeners;
|
|
10
|
+
constructor(options = {}) {
|
|
11
|
+
this.loaded = false;
|
|
12
|
+
this.loadStatus = "not-loaded";
|
|
13
|
+
this.paths = options.paths ? options.paths.map(clonePath) : [];
|
|
14
|
+
this.spatialReference = options.spatialReference;
|
|
15
|
+
this.hasZ = options.hasZ ?? false;
|
|
16
|
+
this.hasM = options.hasM ?? false;
|
|
17
|
+
this.watchListeners = new Map();
|
|
18
|
+
}
|
|
19
|
+
async load() {
|
|
20
|
+
if (this.loaded) {
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
this.loadStatus = "loading";
|
|
24
|
+
this.notifyWatchers("loadStatus", this.loadStatus);
|
|
25
|
+
this.loaded = true;
|
|
26
|
+
this.notifyWatchers("loaded", this.loaded);
|
|
27
|
+
this.loadStatus = "loaded";
|
|
28
|
+
this.notifyWatchers("loadStatus", this.loadStatus);
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
async when(callback) {
|
|
32
|
+
const polyline = await this.load();
|
|
33
|
+
if (callback) {
|
|
34
|
+
callback(polyline);
|
|
35
|
+
}
|
|
36
|
+
return polyline;
|
|
37
|
+
}
|
|
38
|
+
watch(propertyName, listener) {
|
|
39
|
+
let listeners = this.watchListeners.get(propertyName);
|
|
40
|
+
if (!listeners) {
|
|
41
|
+
listeners = new Set();
|
|
42
|
+
this.watchListeners.set(propertyName, listeners);
|
|
43
|
+
}
|
|
44
|
+
listeners.add(listener);
|
|
45
|
+
return {
|
|
46
|
+
remove: () => {
|
|
47
|
+
listeners?.delete(listener);
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
addPath(path) {
|
|
52
|
+
this.paths.push(clonePath(path));
|
|
53
|
+
this.notifyWatchers("paths", this.paths);
|
|
54
|
+
}
|
|
55
|
+
removePath(index) {
|
|
56
|
+
if (!Number.isInteger(index) || index < 0 || index >= this.paths.length) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
this.paths.splice(index, 1);
|
|
60
|
+
this.notifyWatchers("paths", this.paths);
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
update(options) {
|
|
64
|
+
if (options.paths !== undefined) {
|
|
65
|
+
this.paths = options.paths.map(clonePath);
|
|
66
|
+
this.notifyWatchers("paths", this.paths);
|
|
67
|
+
}
|
|
68
|
+
if (options.spatialReference !== undefined) {
|
|
69
|
+
this.spatialReference = options.spatialReference;
|
|
70
|
+
this.notifyWatchers("spatialReference", this.spatialReference);
|
|
71
|
+
}
|
|
72
|
+
if (options.hasZ !== undefined) {
|
|
73
|
+
this.hasZ = options.hasZ;
|
|
74
|
+
this.notifyWatchers("hasZ", this.hasZ);
|
|
75
|
+
}
|
|
76
|
+
if (options.hasM !== undefined) {
|
|
77
|
+
this.hasM = options.hasM;
|
|
78
|
+
this.notifyWatchers("hasM", this.hasM);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
clone() {
|
|
82
|
+
return new PolylineCompat(this.toJSON());
|
|
83
|
+
}
|
|
84
|
+
toJSON() {
|
|
85
|
+
return {
|
|
86
|
+
paths: this.paths.map(clonePath),
|
|
87
|
+
spatialReference: this.spatialReference,
|
|
88
|
+
hasZ: this.hasZ,
|
|
89
|
+
hasM: this.hasM,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
destroy() {
|
|
93
|
+
this.watchListeners.clear();
|
|
94
|
+
}
|
|
95
|
+
notifyWatchers(propertyName, value) {
|
|
96
|
+
const listeners = this.watchListeners.get(propertyName);
|
|
97
|
+
if (!listeners) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
for (const listener of listeners) {
|
|
101
|
+
safeInvokeCompatListener(listener, value);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function clonePath(path) {
|
|
106
|
+
return path.map((point) => [...point]);
|
|
107
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CompatEventBus } from "./event-bus.js";
|
|
2
|
+
export interface PopupTemplateFieldInfo {
|
|
3
|
+
fieldName: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
format?: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
export interface PopupTemplateAction {
|
|
9
|
+
title: string;
|
|
10
|
+
id: string;
|
|
11
|
+
type?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface PopupTemplateExpressionInfo {
|
|
15
|
+
name: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
expression: string;
|
|
18
|
+
returnType?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface PopupTemplateCompatOptions {
|
|
21
|
+
title?: string | ((...args: unknown[]) => string) | null;
|
|
22
|
+
content?: string | Record<string, unknown>[] | ((...args: unknown[]) => string) | null;
|
|
23
|
+
fieldInfos?: readonly PopupTemplateFieldInfo[];
|
|
24
|
+
actions?: readonly PopupTemplateAction[];
|
|
25
|
+
expressionInfos?: readonly PopupTemplateExpressionInfo[];
|
|
26
|
+
outFields?: readonly string[];
|
|
27
|
+
eventBus?: CompatEventBus;
|
|
28
|
+
}
|
|
29
|
+
export type PopupTemplateLoadStatusCompat = "not-loaded" | "loading" | "loaded";
|
|
30
|
+
export interface PopupTemplateHandleCompat {
|
|
31
|
+
remove(): void;
|
|
32
|
+
}
|
|
33
|
+
export declare class PopupTemplateCompat {
|
|
34
|
+
readonly eventBus: CompatEventBus;
|
|
35
|
+
loaded: boolean;
|
|
36
|
+
loadStatus: PopupTemplateLoadStatusCompat;
|
|
37
|
+
title: string | ((...args: unknown[]) => string) | null;
|
|
38
|
+
content: string | Record<string, unknown>[] | ((...args: unknown[]) => string) | null;
|
|
39
|
+
fieldInfos: PopupTemplateFieldInfo[];
|
|
40
|
+
actions: PopupTemplateAction[];
|
|
41
|
+
expressionInfos: PopupTemplateExpressionInfo[];
|
|
42
|
+
outFields: string[];
|
|
43
|
+
private readonly watchListeners;
|
|
44
|
+
constructor(options?: PopupTemplateCompatOptions);
|
|
45
|
+
load(): Promise<PopupTemplateCompat>;
|
|
46
|
+
when(callback?: (template: PopupTemplateCompat) => void): Promise<PopupTemplateCompat>;
|
|
47
|
+
watch(propertyName: string, listener: (value: unknown) => void): PopupTemplateHandleCompat;
|
|
48
|
+
update(options: PopupTemplateCompatOptions): void;
|
|
49
|
+
getTitle(feature: Record<string, unknown>): string;
|
|
50
|
+
getContent(feature: Record<string, unknown>): string;
|
|
51
|
+
clone(): PopupTemplateCompat;
|
|
52
|
+
destroy(): void;
|
|
53
|
+
private notifyWatchers;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=popup-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popup-template.d.ts","sourceRoot":"","sources":["../../../src/esri-compat/popup-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAmD,MAAM,gBAAgB,CAAC;AAEjG,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM,CAAC,GAAG,IAAI,CAAC;IACzD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM,CAAC,GAAG,IAAI,CAAC;IACvF,UAAU,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC/C,OAAO,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACzC,eAAe,CAAC,EAAE,SAAS,2BAA2B,EAAE,CAAC;IACzD,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,MAAM,MAAM,6BAA6B,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhF,MAAM,WAAW,yBAAyB;IACxC,MAAM,IAAI,IAAI,CAAC;CAChB;AAED,qBAAa,mBAAmB;IAC9B,SAAgB,QAAQ,EAAE,cAAc,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,6BAA6B,CAAC;IAC1C,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM,CAAC,GAAG,IAAI,CAAC;IACxD,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM,CAAC,GAAG,IAAI,CAAC;IACtF,UAAU,EAAE,sBAAsB,EAAE,CAAC;IACrC,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,eAAe,EAAE,2BAA2B,EAAE,CAAC;IAC/C,SAAS,EAAE,MAAM,EAAE,CAAC;IAC3B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6C;gBAEzD,OAAO,GAAE,0BAA+B;IAgB9C,IAAI,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAgBpC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,mBAAmB,KAAK,IAAI,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAQ5F,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,yBAAyB;IAe1F,MAAM,CAAC,OAAO,EAAE,0BAA0B,GAAG,IAAI;IA6BjD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;IAKlD,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;IAKpD,KAAK,IAAI,mBAAmB;IAY5B,OAAO,IAAI,IAAI;IAItB,OAAO,CAAC,cAAc;CAUvB"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { CompatEventBus, resolveCompatEventBus, safeInvokeCompatListener } from "./event-bus.js";
|
|
2
|
+
export class PopupTemplateCompat {
|
|
3
|
+
eventBus;
|
|
4
|
+
loaded;
|
|
5
|
+
loadStatus;
|
|
6
|
+
title;
|
|
7
|
+
content;
|
|
8
|
+
fieldInfos;
|
|
9
|
+
actions;
|
|
10
|
+
expressionInfos;
|
|
11
|
+
outFields;
|
|
12
|
+
watchListeners;
|
|
13
|
+
constructor(options = {}) {
|
|
14
|
+
this.eventBus =
|
|
15
|
+
options.eventBus ??
|
|
16
|
+
resolveCompatEventBus(options.fieldInfos, options.actions, options.expressionInfos) ??
|
|
17
|
+
new CompatEventBus();
|
|
18
|
+
this.loaded = false;
|
|
19
|
+
this.loadStatus = "not-loaded";
|
|
20
|
+
this.title = options.title ?? null;
|
|
21
|
+
this.content = options.content ?? null;
|
|
22
|
+
this.fieldInfos = options.fieldInfos ? [...options.fieldInfos] : [];
|
|
23
|
+
this.actions = options.actions ? [...options.actions] : [];
|
|
24
|
+
this.expressionInfos = options.expressionInfos ? [...options.expressionInfos] : [];
|
|
25
|
+
this.outFields = options.outFields ? [...options.outFields] : [];
|
|
26
|
+
this.watchListeners = new Map();
|
|
27
|
+
}
|
|
28
|
+
async load() {
|
|
29
|
+
if (this.loaded) {
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
this.loadStatus = "loading";
|
|
33
|
+
this.notifyWatchers("loadStatus", this.loadStatus);
|
|
34
|
+
this.eventBus.emit("popup-template.loading", undefined, this);
|
|
35
|
+
this.loaded = true;
|
|
36
|
+
this.notifyWatchers("loaded", this.loaded);
|
|
37
|
+
this.loadStatus = "loaded";
|
|
38
|
+
this.notifyWatchers("loadStatus", this.loadStatus);
|
|
39
|
+
this.eventBus.emit("popup-template.loaded", undefined, this);
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
async when(callback) {
|
|
43
|
+
const template = await this.load();
|
|
44
|
+
if (callback) {
|
|
45
|
+
callback(template);
|
|
46
|
+
}
|
|
47
|
+
return template;
|
|
48
|
+
}
|
|
49
|
+
watch(propertyName, listener) {
|
|
50
|
+
let listeners = this.watchListeners.get(propertyName);
|
|
51
|
+
if (!listeners) {
|
|
52
|
+
listeners = new Set();
|
|
53
|
+
this.watchListeners.set(propertyName, listeners);
|
|
54
|
+
}
|
|
55
|
+
listeners.add(listener);
|
|
56
|
+
return {
|
|
57
|
+
remove: () => {
|
|
58
|
+
listeners?.delete(listener);
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
update(options) {
|
|
63
|
+
if (options.title !== undefined) {
|
|
64
|
+
this.title = options.title;
|
|
65
|
+
this.notifyWatchers("title", this.title);
|
|
66
|
+
}
|
|
67
|
+
if (options.content !== undefined) {
|
|
68
|
+
this.content = options.content;
|
|
69
|
+
this.notifyWatchers("content", this.content);
|
|
70
|
+
}
|
|
71
|
+
if (options.fieldInfos !== undefined) {
|
|
72
|
+
this.fieldInfos = [...options.fieldInfos];
|
|
73
|
+
this.notifyWatchers("fieldInfos", this.fieldInfos);
|
|
74
|
+
}
|
|
75
|
+
if (options.actions !== undefined) {
|
|
76
|
+
this.actions = [...options.actions];
|
|
77
|
+
this.notifyWatchers("actions", this.actions);
|
|
78
|
+
}
|
|
79
|
+
if (options.expressionInfos !== undefined) {
|
|
80
|
+
this.expressionInfos = [...options.expressionInfos];
|
|
81
|
+
this.notifyWatchers("expressionInfos", this.expressionInfos);
|
|
82
|
+
}
|
|
83
|
+
if (options.outFields !== undefined) {
|
|
84
|
+
this.outFields = [...options.outFields];
|
|
85
|
+
this.notifyWatchers("outFields", this.outFields);
|
|
86
|
+
}
|
|
87
|
+
this.eventBus.emit("popup-template.updated", undefined, this);
|
|
88
|
+
}
|
|
89
|
+
getTitle(feature) {
|
|
90
|
+
if (typeof this.title !== "string")
|
|
91
|
+
return String(this.title ?? "");
|
|
92
|
+
return interpolateFieldTokens(this.title, feature);
|
|
93
|
+
}
|
|
94
|
+
getContent(feature) {
|
|
95
|
+
if (typeof this.content !== "string")
|
|
96
|
+
return String(this.content ?? "");
|
|
97
|
+
return interpolateFieldTokens(this.content, feature);
|
|
98
|
+
}
|
|
99
|
+
clone() {
|
|
100
|
+
return new PopupTemplateCompat({
|
|
101
|
+
title: this.title,
|
|
102
|
+
content: this.content,
|
|
103
|
+
fieldInfos: this.fieldInfos,
|
|
104
|
+
actions: this.actions,
|
|
105
|
+
expressionInfos: this.expressionInfos,
|
|
106
|
+
outFields: this.outFields,
|
|
107
|
+
eventBus: this.eventBus,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
destroy() {
|
|
111
|
+
this.watchListeners.clear();
|
|
112
|
+
}
|
|
113
|
+
notifyWatchers(propertyName, value) {
|
|
114
|
+
const listeners = this.watchListeners.get(propertyName);
|
|
115
|
+
if (!listeners) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
for (const listener of listeners) {
|
|
119
|
+
safeInvokeCompatListener(listener, value);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function interpolateFieldTokens(template, attributes) {
|
|
124
|
+
return template.replace(/\{([^}]+)\}/g, (_match, fieldName) => {
|
|
125
|
+
const value = attributes[fieldName];
|
|
126
|
+
return value === undefined || value === null ? "" : String(value);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CompatEventBus } from "./event-bus.js";
|
|
2
|
+
export interface PopupCompatOptions {
|
|
3
|
+
view?: unknown;
|
|
4
|
+
container?: unknown;
|
|
5
|
+
eventBus?: CompatEventBus;
|
|
6
|
+
autoOpenEnabled?: boolean;
|
|
7
|
+
dockEnabled?: boolean;
|
|
8
|
+
dockOptions?: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface PopupOpenOptionsCompat {
|
|
11
|
+
location?: unknown;
|
|
12
|
+
features?: readonly unknown[];
|
|
13
|
+
title?: string;
|
|
14
|
+
content?: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface PopupHandleCompat {
|
|
17
|
+
remove(): void;
|
|
18
|
+
}
|
|
19
|
+
export type PopupLoadStatusCompat = "not-loaded" | "loading" | "loaded";
|
|
20
|
+
export declare class PopupCompat {
|
|
21
|
+
readonly view: unknown;
|
|
22
|
+
readonly container: unknown;
|
|
23
|
+
readonly eventBus: CompatEventBus;
|
|
24
|
+
loaded: boolean;
|
|
25
|
+
loadStatus: PopupLoadStatusCompat;
|
|
26
|
+
visible: boolean;
|
|
27
|
+
location: unknown;
|
|
28
|
+
features: unknown[];
|
|
29
|
+
title: string | undefined;
|
|
30
|
+
content: unknown;
|
|
31
|
+
autoOpenEnabled: boolean;
|
|
32
|
+
dockEnabled: boolean;
|
|
33
|
+
dockOptions: unknown;
|
|
34
|
+
selectedFeature: unknown;
|
|
35
|
+
selectedFeatureIndex: number;
|
|
36
|
+
private readonly subscriptions;
|
|
37
|
+
private readonly watchListeners;
|
|
38
|
+
constructor(options?: PopupCompatOptions);
|
|
39
|
+
load(): Promise<PopupCompat>;
|
|
40
|
+
when(callback?: (widget: PopupCompat) => void): Promise<PopupCompat>;
|
|
41
|
+
open(options?: PopupOpenOptionsCompat): void;
|
|
42
|
+
close(): void;
|
|
43
|
+
clear(): void;
|
|
44
|
+
selectFeature(featureOrIndex: unknown | number): unknown;
|
|
45
|
+
next(): unknown;
|
|
46
|
+
previous(): unknown;
|
|
47
|
+
watch(propertyName: string, listener: (value: unknown) => void): PopupHandleCompat;
|
|
48
|
+
destroy(): void;
|
|
49
|
+
private applyOpenOptions;
|
|
50
|
+
private syncFromViewPopup;
|
|
51
|
+
private applySelection;
|
|
52
|
+
private notifyWatchers;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=popup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popup.d.ts","sourceRoot":"","sources":["../../../src/esri-compat/popup.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAIf,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,IAAI,IAAI,CAAC;CAChB;AAED,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAExE,qBAAa,WAAW;IACtB,SAAgB,IAAI,EAAE,OAAO,CAAC;IAC9B,SAAgB,SAAS,EAAE,OAAO,CAAC;IACnC,SAAgB,QAAQ,EAAE,cAAc,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,qBAAqB,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAEpC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA4B;IAC1D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6C;gBAEzD,OAAO,GAAE,kBAAuB;IA6BtC,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC;IAiB5B,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC;IAQ1E,IAAI,CAAC,OAAO,GAAE,sBAA2B,GAAG,IAAI;IAwBhD,KAAK,IAAI,IAAI;IA+Bb,KAAK,IAAI,IAAI;IAIb,aAAa,CAAC,cAAc,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO;IAoBxD,IAAI,IAAI,OAAO;IAgBf,QAAQ,IAAI,OAAO;IAgBnB,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,iBAAiB;IAelF,OAAO,IAAI,IAAI;IAOtB,OAAO,CAAC,gBAAgB;IAOxB,OAAO,CAAC,iBAAiB;IAmDzB,OAAO,CAAC,cAAc;IAoBtB,OAAO,CAAC,cAAc;CAUvB"}
|