@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,438 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cesium 3D `SceneRuntimeAdapter` for the renderer-neutral scene workspace.
|
|
3
|
+
*
|
|
4
|
+
* This module deliberately keeps the camera-state mapping pure and free of any
|
|
5
|
+
* static Cesium import so that 2D-only consumers never pay the CesiumJS bundle
|
|
6
|
+
* cost. The CesiumJS runtime is only pulled in lazily (`await import("cesium")`)
|
|
7
|
+
* when a live {@link CesiumSceneRuntimeTarget} is actually driven.
|
|
8
|
+
*
|
|
9
|
+
* As of honua-server#1197 the adapter renders Honua 3D content end-to-end:
|
|
10
|
+
* 3D-Tiles tilesets (add/remove/visibility), terrain providers (quantized-mesh
|
|
11
|
+
* via `CesiumTerrainProvider`, with vertical exaggeration), and glTF/GLB model
|
|
12
|
+
* layers placed with heading/pitch/roll + scale. It also resolves a picked
|
|
13
|
+
* 3D-Tiles feature's attributes (batch properties / `EXT_structural_metadata`).
|
|
14
|
+
*
|
|
15
|
+
* The provider wiring is still kept Cesium-mockable: every CesiumJS symbol the
|
|
16
|
+
* adapter touches is read off the lazily-imported module, so the wiring is
|
|
17
|
+
* exercised against a `vi.mock("cesium")` stub without a live WebGL `Viewer`.
|
|
18
|
+
*
|
|
19
|
+
* @experimental Part of the experimental `scene-workspace` surface; not yet
|
|
20
|
+
* covered by the SDK's semver contract prior to `1.0.0`.
|
|
21
|
+
* @module
|
|
22
|
+
*/
|
|
23
|
+
import { type SceneElevationSourcePrimitive, type SceneModelLayerPrimitive, type ScenePrimitiveApplyResult, type SceneRuntimeAdapter, type SceneRuntimeCapabilities, type SceneRuntimePrimitive } from "./primitives.js";
|
|
24
|
+
import type { SceneCameraState, SceneWorkspaceState } from "./types.js";
|
|
25
|
+
/**
|
|
26
|
+
* Capabilities advertised by the Cesium adapter. Unlike the MapLibre 2.5D
|
|
27
|
+
* adapter, Cesium is a true globe renderer: full 3D camera with
|
|
28
|
+
* heading/pitch/roll/height, terrain across the common elevation protocols, and
|
|
29
|
+
* model layers for 3D Tiles / glTF / I3S / point clouds.
|
|
30
|
+
*/
|
|
31
|
+
export declare const CESIUM_SCENE_CAPABILITIES: SceneRuntimeCapabilities;
|
|
32
|
+
/**
|
|
33
|
+
* Cesium camera orientation, expressed in radians (Cesium's native unit).
|
|
34
|
+
*/
|
|
35
|
+
export interface CesiumHeadingPitchRollRadians {
|
|
36
|
+
readonly heading: number;
|
|
37
|
+
readonly pitch: number;
|
|
38
|
+
readonly roll: number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A renderer-neutral description of a Cesium `Camera.setView` call. Longitude /
|
|
42
|
+
* latitude / height are kept in degrees + metres (the workspace contract) and
|
|
43
|
+
* the orientation is pre-converted to radians so a live adapter can hand it
|
|
44
|
+
* straight to Cesium without re-deriving units.
|
|
45
|
+
*/
|
|
46
|
+
export interface CesiumCameraView {
|
|
47
|
+
readonly destination: {
|
|
48
|
+
readonly longitude: number;
|
|
49
|
+
readonly latitude: number;
|
|
50
|
+
readonly height: number;
|
|
51
|
+
};
|
|
52
|
+
readonly orientation: CesiumHeadingPitchRollRadians;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The minimal slice of Cesium's `Camera` that the adapter reads from. Cesium
|
|
56
|
+
* exposes `positionCartographic` (lon/lat/height in radians + metres) and
|
|
57
|
+
* heading/pitch/roll getters in radians. Modelling only this surface keeps the
|
|
58
|
+
* state mapping unit-testable without a live WebGL `Viewer`.
|
|
59
|
+
*/
|
|
60
|
+
export interface CesiumCameraLike {
|
|
61
|
+
readonly positionCartographic: {
|
|
62
|
+
readonly longitude: number;
|
|
63
|
+
readonly latitude: number;
|
|
64
|
+
readonly height: number;
|
|
65
|
+
};
|
|
66
|
+
readonly heading: number;
|
|
67
|
+
readonly pitch: number;
|
|
68
|
+
readonly roll: number;
|
|
69
|
+
setView(options: {
|
|
70
|
+
destination?: unknown;
|
|
71
|
+
orientation?: {
|
|
72
|
+
heading?: number;
|
|
73
|
+
pitch?: number;
|
|
74
|
+
roll?: number;
|
|
75
|
+
};
|
|
76
|
+
}): void;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* A 3D-Tiles tileset handle (the bits the adapter mutates). Real Cesium
|
|
80
|
+
* `Cesium3DTileset` instances satisfy this; tests pass a plain object.
|
|
81
|
+
*
|
|
82
|
+
* `extras` mirrors Cesium's `Cesium3DTileset.extras` — the parsed `extras`
|
|
83
|
+
* object from the tileset.json root, available once the tileset is ready. The
|
|
84
|
+
* server advertises its attribute-driven styling there under `honua_style`
|
|
85
|
+
* (honua-server#1206). `style` is the settable `Cesium3DTileStyle` slot.
|
|
86
|
+
*/
|
|
87
|
+
export interface CesiumTilesetLike {
|
|
88
|
+
show: boolean;
|
|
89
|
+
modelMatrix?: unknown;
|
|
90
|
+
extras?: unknown;
|
|
91
|
+
style?: unknown;
|
|
92
|
+
destroy?(): void;
|
|
93
|
+
isDestroyed?(): boolean;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* A glTF/GLB model handle (the bits the adapter mutates). Real Cesium `Model`
|
|
97
|
+
* instances satisfy this.
|
|
98
|
+
*/
|
|
99
|
+
export interface CesiumModelLike {
|
|
100
|
+
show: boolean;
|
|
101
|
+
modelMatrix?: unknown;
|
|
102
|
+
destroy?(): void;
|
|
103
|
+
isDestroyed?(): boolean;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* The Cesium `PrimitiveCollection` surface (off `scene.primitives`) the adapter
|
|
107
|
+
* uses to add/remove tilesets and models.
|
|
108
|
+
*/
|
|
109
|
+
export interface CesiumPrimitiveCollectionLike {
|
|
110
|
+
add(primitive: unknown, index?: number): unknown;
|
|
111
|
+
remove(primitive?: unknown): boolean;
|
|
112
|
+
contains(primitive?: unknown): boolean;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The Cesium `Scene` surface the adapter mutates: a primitive collection for
|
|
116
|
+
* tilesets/models, a settable `terrainProvider`, vertical exaggeration, and a
|
|
117
|
+
* `pick` entry point used by {@link pickCesiumFeatureAttributes}.
|
|
118
|
+
*/
|
|
119
|
+
export interface CesiumSceneLike {
|
|
120
|
+
readonly primitives: CesiumPrimitiveCollectionLike;
|
|
121
|
+
terrainProvider?: unknown;
|
|
122
|
+
verticalExaggeration?: number;
|
|
123
|
+
pick?(windowPosition: unknown, width?: number, height?: number): unknown;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The subset of a live Cesium `Viewer`/`Scene` the adapter drives. Supplying
|
|
127
|
+
* this is optional: an adapter created without a target still diagnoses
|
|
128
|
+
* primitives and performs pure camera math, it just cannot mutate a live globe.
|
|
129
|
+
*
|
|
130
|
+
* `scene` is optional so a camera-only target (as shipped in #1196) keeps
|
|
131
|
+
* working unchanged; layer rendering simply no-ops without it.
|
|
132
|
+
*/
|
|
133
|
+
export interface CesiumSceneRuntimeTarget {
|
|
134
|
+
readonly camera: CesiumCameraLike;
|
|
135
|
+
readonly scene?: CesiumSceneLike;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* A renderer-neutral plan for placing one model/tileset/terrain provider on a
|
|
139
|
+
* live scene. Pure (no Cesium import) so the mapping is unit-testable; the live
|
|
140
|
+
* adapter materializes each plan via the lazily-loaded Cesium module.
|
|
141
|
+
*/
|
|
142
|
+
export interface CesiumModelPlacement {
|
|
143
|
+
readonly position: {
|
|
144
|
+
readonly longitude: number;
|
|
145
|
+
readonly latitude: number;
|
|
146
|
+
readonly height: number;
|
|
147
|
+
};
|
|
148
|
+
readonly orientation: CesiumHeadingPitchRollRadians;
|
|
149
|
+
readonly scale: number;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The handle returned by {@link applyCesiumScenePrimitives} so callers can
|
|
153
|
+
* later toggle visibility or tear a layer down. Keyed by the primitive id.
|
|
154
|
+
*/
|
|
155
|
+
export interface CesiumLayerHandle {
|
|
156
|
+
readonly id: string;
|
|
157
|
+
readonly kind: "model-layer" | "elevation-source";
|
|
158
|
+
readonly format?: SceneModelLayerPrimitive["format"];
|
|
159
|
+
setVisible(visible: boolean): void;
|
|
160
|
+
remove(): void;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Map a renderer-neutral {@link SceneCameraState} (degrees + metres) onto a
|
|
164
|
+
* Cesium `setView` description (degrees destination + radian orientation).
|
|
165
|
+
*
|
|
166
|
+
* Heading/pitch/roll default to Cesium's own defaults — heading 0 (north),
|
|
167
|
+
* pitch -90 (looking straight down), roll 0 — when the workspace omits them.
|
|
168
|
+
*/
|
|
169
|
+
export declare function cameraStateToCesiumView(camera: SceneCameraState): CesiumCameraView;
|
|
170
|
+
/**
|
|
171
|
+
* Read a live (or mocked) Cesium camera back into a renderer-neutral
|
|
172
|
+
* {@link SceneCameraState}. This is the inverse of
|
|
173
|
+
* {@link cameraStateToCesiumView} and is the load-bearing half of the
|
|
174
|
+
* camera-state round-trip through the workspace.
|
|
175
|
+
*/
|
|
176
|
+
export declare function cesiumCameraToSceneState(camera: CesiumCameraLike): SceneCameraState;
|
|
177
|
+
/**
|
|
178
|
+
* Apply a {@link SceneCameraState} to a live (or mocked) Cesium camera.
|
|
179
|
+
*
|
|
180
|
+
* The destination is left as degrees + height on the `setView` call; a live
|
|
181
|
+
* adapter (see {@link applyCesiumScenePrimitives}) converts it to a
|
|
182
|
+
* `Cartesian3` via the lazily-loaded Cesium module before calling `setView`.
|
|
183
|
+
* Tests can pass a mock camera and assert the orientation (in radians) directly.
|
|
184
|
+
*/
|
|
185
|
+
export declare function applyCameraStateToCesiumCamera(camera: CesiumCameraLike, state: SceneCameraState, toCartesian?: (lon: number, lat: number, height: number) => unknown): void;
|
|
186
|
+
/**
|
|
187
|
+
* Resolve the scale factor for a model layer. The primitive allows a uniform
|
|
188
|
+
* number or a per-axis triple; Cesium `Model.fromGltfAsync` takes a single
|
|
189
|
+
* uniform `scale`, so a triple collapses to its first finite component (with a
|
|
190
|
+
* sane `1` fallback). Non-finite / non-positive values fall back to `1`.
|
|
191
|
+
*/
|
|
192
|
+
export declare function resolveCesiumModelScale(scale: SceneModelLayerPrimitive["scale"]): number;
|
|
193
|
+
/**
|
|
194
|
+
* Map a {@link SceneModelLayerPrimitive} onto a renderer-neutral
|
|
195
|
+
* {@link CesiumModelPlacement} (degrees + metres position, radian orientation,
|
|
196
|
+
* uniform scale). Pure so the placement math is unit-testable without Cesium.
|
|
197
|
+
*
|
|
198
|
+
* `position` defaults to lon/lat 0 at height 0; `rotation` (degrees, in the
|
|
199
|
+
* workspace contract) defaults to heading/pitch/roll 0.
|
|
200
|
+
*/
|
|
201
|
+
export declare function modelLayerToCesiumPlacement(primitive: SceneModelLayerPrimitive): CesiumModelPlacement;
|
|
202
|
+
/**
|
|
203
|
+
* The Cesium symbols the live wiring needs. Modelled as the minimal slice of
|
|
204
|
+
* `typeof import("cesium")` so a `vi.mock("cesium")` stub can satisfy it.
|
|
205
|
+
*/
|
|
206
|
+
type CesiumModule = {
|
|
207
|
+
readonly Cartesian3: {
|
|
208
|
+
fromDegrees(longitude: number, latitude: number, height?: number): unknown;
|
|
209
|
+
};
|
|
210
|
+
readonly HeadingPitchRoll: new (heading?: number, pitch?: number, roll?: number) => unknown;
|
|
211
|
+
readonly Transforms: {
|
|
212
|
+
headingPitchRollToFixedFrame(origin: unknown, headingPitchRoll: unknown): unknown;
|
|
213
|
+
};
|
|
214
|
+
readonly Matrix4: {
|
|
215
|
+
multiplyByUniformScale(matrix: unknown, scale: number, result: unknown): unknown;
|
|
216
|
+
clone(matrix: unknown, result?: unknown): unknown;
|
|
217
|
+
};
|
|
218
|
+
readonly Cesium3DTileset: {
|
|
219
|
+
fromUrl(url: string, options?: Record<string, unknown>): Promise<CesiumTilesetLike>;
|
|
220
|
+
};
|
|
221
|
+
readonly Cesium3DTileStyle: new (style?: Record<string, unknown>) => unknown;
|
|
222
|
+
readonly Model: {
|
|
223
|
+
fromGltfAsync(options: Record<string, unknown>): Promise<CesiumModelLike>;
|
|
224
|
+
};
|
|
225
|
+
readonly CesiumTerrainProvider: {
|
|
226
|
+
fromUrl(url: string, options?: Record<string, unknown>): Promise<unknown>;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* A condition block of a 3D-Tiles styling expression. Each entry is an
|
|
231
|
+
* `[expression, result]` pair evaluated in priority order, where `expression`
|
|
232
|
+
* is a Cesium styling-language string (`${attr}` references feature attributes)
|
|
233
|
+
* and `result` is the value applied when the expression is the first to match.
|
|
234
|
+
* A trailing `["true", <default>]` entry supplies the fallback.
|
|
235
|
+
*
|
|
236
|
+
* This is shaped EXACTLY as a CesiumJS `Cesium3DTileStyle` `color`/`show`
|
|
237
|
+
* block, so a spec can be handed straight to `new Cesium3DTileStyle({ ... })`.
|
|
238
|
+
*/
|
|
239
|
+
export interface Honua3DStyleConditions {
|
|
240
|
+
readonly conditions: ReadonlyArray<readonly [string, string]>;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The attribute-driven 3D-Tiles styling contract the Honua server emits as a
|
|
244
|
+
* `style.json` sidecar next to `tileset.json` (honua-server#1206). The server
|
|
245
|
+
* advertises it in the tileset's root `extras.honua_style`; the `style.color`
|
|
246
|
+
* / `style.show` blocks are pre-shaped for `Cesium3DTileStyle`.
|
|
247
|
+
*
|
|
248
|
+
* `style.color` and `style.show` are each optional — when a block is omitted
|
|
249
|
+
* the corresponding aspect of the Cesium style is left untouched.
|
|
250
|
+
*/
|
|
251
|
+
export interface Honua3DStyleSpec {
|
|
252
|
+
readonly encoding: "3d-tiles-styling";
|
|
253
|
+
readonly version: string;
|
|
254
|
+
readonly defaultMaterial?: {
|
|
255
|
+
readonly color?: string;
|
|
256
|
+
readonly opacity?: number;
|
|
257
|
+
};
|
|
258
|
+
readonly style: {
|
|
259
|
+
readonly color?: Honua3DStyleConditions;
|
|
260
|
+
readonly show?: Honua3DStyleConditions;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* The descriptor the server places at `extras.honua_style` on the tileset.json
|
|
265
|
+
* root to advertise its styling sidecar. `uri` is RELATIVE to the tileset.json
|
|
266
|
+
* URL and is resolved against the tileset's base URL before fetching.
|
|
267
|
+
*/
|
|
268
|
+
export interface Honua3DStyleDescriptor {
|
|
269
|
+
readonly encoding: "3d-tiles-styling";
|
|
270
|
+
readonly version: string;
|
|
271
|
+
readonly uri: string;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Read the `honua_style` descriptor off a tileset's (or tileset.json's)
|
|
275
|
+
* `extras`, if present and well-formed. Returns `undefined` when the tileset
|
|
276
|
+
* carries no Honua styling metadata (the common case for plain tilesets), so
|
|
277
|
+
* the auto-apply path can no-op silently.
|
|
278
|
+
*/
|
|
279
|
+
export declare function readHonua3DStyleDescriptor(extras: unknown): Honua3DStyleDescriptor | undefined;
|
|
280
|
+
/**
|
|
281
|
+
* Resolve a sidecar `uri` (relative, per the contract) against the
|
|
282
|
+
* `tileset.json` URL it was advertised in. Falls back to returning the raw
|
|
283
|
+
* `uri` unchanged when `tilesetUrl` is not a parseable absolute/base URL (e.g.
|
|
284
|
+
* a bare relative path in a test), which keeps a plain `fetch` workable.
|
|
285
|
+
*/
|
|
286
|
+
export declare function resolveHonua3DStyleUri(uri: string, tilesetUrl: string): string;
|
|
287
|
+
/**
|
|
288
|
+
* Fetch + parse the `style.json` sidecar at `styleUrl`.
|
|
289
|
+
*
|
|
290
|
+
* The sidecar is a STATIC asset served next to `tileset.json` (not a Honua API
|
|
291
|
+
* call), so it is fetched with a plain global `fetch` rather than routed
|
|
292
|
+
* through the SDK's authenticated request path — this keeps the styling module
|
|
293
|
+
* free of a client dependency and mirrors how Cesium itself loads tileset
|
|
294
|
+
* assets. A custom `fetchImpl` can be injected (tests pass a mock).
|
|
295
|
+
*/
|
|
296
|
+
export declare function fetchHonua3DStyleSpec(styleUrl: string, fetchImpl?: typeof fetch): Promise<Honua3DStyleSpec>;
|
|
297
|
+
/**
|
|
298
|
+
* Discover and load the Honua 3D styling spec advertised by a tileset.
|
|
299
|
+
*
|
|
300
|
+
* Reads `extras.honua_style` (off either a loaded `Cesium3DTileset` or a parsed
|
|
301
|
+
* tileset.json `extras` object), resolves the sidecar `uri` against
|
|
302
|
+
* `tilesetUrl`, and fetches the `style.json`. Returns `undefined` when the
|
|
303
|
+
* tileset advertises no Honua styling, so callers can treat "no style" as a
|
|
304
|
+
* silent no-op rather than an error.
|
|
305
|
+
*/
|
|
306
|
+
export declare function loadHonua3DStyle(extras: unknown, tilesetUrl: string, fetchImpl?: typeof fetch): Promise<Honua3DStyleSpec | undefined>;
|
|
307
|
+
/**
|
|
308
|
+
* Build a Cesium `Cesium3DTileStyle` options object from a spec, including only
|
|
309
|
+
* the blocks (`color` / `show`) that are present. The spec's blocks are already
|
|
310
|
+
* `Cesium3DTileStyle`-shaped, so they are passed through verbatim. Pure (no
|
|
311
|
+
* Cesium import) so the block-selection logic is unit-testable.
|
|
312
|
+
*/
|
|
313
|
+
export declare function honua3DStyleToCesiumStyleOptions(spec: Honua3DStyleSpec): Record<string, unknown>;
|
|
314
|
+
/**
|
|
315
|
+
* Apply a Honua 3D styling spec to a tileset by constructing a
|
|
316
|
+
* `Cesium3DTileStyle` (only from the present `color` / `show` blocks) and
|
|
317
|
+
* assigning it to `tileset.style`. Lazily loads Cesium the same way the rest of
|
|
318
|
+
* the adapter does, so no static `import("cesium")` leaks into the 2D bundle.
|
|
319
|
+
*
|
|
320
|
+
* When the spec carries neither a `color` nor a `show` block, the tileset's
|
|
321
|
+
* `style` is left untouched (nothing to apply).
|
|
322
|
+
*/
|
|
323
|
+
export declare function applyHonua3DStyle(tileset: CesiumTilesetLike, spec: Honua3DStyleSpec, cesium?: CesiumModule): Promise<void>;
|
|
324
|
+
/**
|
|
325
|
+
* Programmatic override for a tileset's styling: apply a (typically
|
|
326
|
+
* server-discovered, but possibly hand-authored) {@link Honua3DStyleSpec} to a
|
|
327
|
+
* live tileset. Thin alias over {@link applyHonua3DStyle} that reads as an
|
|
328
|
+
* intentional manual set at the call site.
|
|
329
|
+
*/
|
|
330
|
+
export declare function setTilesetStyle(tileset: CesiumTilesetLike, spec: Honua3DStyleSpec, cesium?: CesiumModule): Promise<void>;
|
|
331
|
+
/**
|
|
332
|
+
* Discover and apply the server's attribute-driven styling to an already-loaded
|
|
333
|
+
* tileset, if it advertises any (`extras.honua_style`). Returns the applied
|
|
334
|
+
* spec (or `undefined` when the tileset carries no Honua styling). Used by
|
|
335
|
+
* {@link addCesium3DTileset}'s auto-apply path and exposed for callers that
|
|
336
|
+
* load a tileset themselves.
|
|
337
|
+
*/
|
|
338
|
+
export declare function applyTilesetServerStyle(tileset: CesiumTilesetLike, tilesetUrl: string, cesium?: CesiumModule, fetchImpl?: typeof fetch): Promise<Honua3DStyleSpec | undefined>;
|
|
339
|
+
/**
|
|
340
|
+
* Options controlling {@link addCesium3DTileset}.
|
|
341
|
+
*/
|
|
342
|
+
export interface AddCesium3DTilesetOptions {
|
|
343
|
+
/**
|
|
344
|
+
* When `true` (the default), a tileset that advertises Honua styling metadata
|
|
345
|
+
* (`extras.honua_style`) has its `style.json` sidecar fetched and applied
|
|
346
|
+
* automatically after the tileset loads. Set to `false` to add the tileset
|
|
347
|
+
* unstyled (e.g. to apply a custom style via {@link setTilesetStyle}).
|
|
348
|
+
*/
|
|
349
|
+
readonly applyServerStyle?: boolean;
|
|
350
|
+
/**
|
|
351
|
+
* Override the `fetch` used to load the styling sidecar. Defaults to the
|
|
352
|
+
* global `fetch`. Primarily a test seam.
|
|
353
|
+
*/
|
|
354
|
+
readonly fetchImpl?: typeof fetch;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Materialize a 3D-Tiles tileset from a model-layer primitive and add it to the
|
|
358
|
+
* scene's primitive collection, returning a handle for later visibility /
|
|
359
|
+
* teardown. Exported so consumers (and tests) can drive a single tileset.
|
|
360
|
+
*
|
|
361
|
+
* If the loaded tileset advertises the server's attribute-driven styling
|
|
362
|
+
* contract (`extras.honua_style`, honua-server#1206) the sidecar style is
|
|
363
|
+
* fetched and applied automatically (honua-server#1206). Pass
|
|
364
|
+
* `{ applyServerStyle: false }` to skip that and style the tileset manually via
|
|
365
|
+
* {@link setTilesetStyle}. A tileset without `honua_style` is added unchanged
|
|
366
|
+
* (no fetch), so existing callers are unaffected.
|
|
367
|
+
*/
|
|
368
|
+
export declare function addCesium3DTileset(scene: CesiumSceneLike, primitive: SceneModelLayerPrimitive, cesium?: CesiumModule, options?: AddCesium3DTilesetOptions): Promise<CesiumLayerHandle>;
|
|
369
|
+
/**
|
|
370
|
+
* Materialize a glTF/GLB model from a model-layer primitive, placing it at the
|
|
371
|
+
* primitive's position/rotation/scale, and add it to the scene. Returns a
|
|
372
|
+
* handle for visibility / teardown.
|
|
373
|
+
*/
|
|
374
|
+
export declare function addCesiumModel(scene: CesiumSceneLike, primitive: SceneModelLayerPrimitive, cesium?: CesiumModule): Promise<CesiumLayerHandle>;
|
|
375
|
+
/**
|
|
376
|
+
* Wire a terrain provider from an elevation-source primitive onto the scene.
|
|
377
|
+
*
|
|
378
|
+
* `quantized-mesh` maps to `CesiumTerrainProvider.fromUrl` natively. `terrain-rgb`
|
|
379
|
+
* / `raster-dem` (Mapbox/Terrarium-encoded raster DEM tiles) are treated the
|
|
380
|
+
* same way: Cesium consumes a quantized-mesh-style endpoint at `url`, so we wire
|
|
381
|
+
* the provider when a `url` is present and otherwise leave the globe on its
|
|
382
|
+
* default ellipsoid (the diagnostic already flags a missing url). Exaggeration
|
|
383
|
+
* is applied via the scene's `verticalExaggeration`.
|
|
384
|
+
*/
|
|
385
|
+
export declare function applyCesiumTerrain(scene: CesiumSceneLike, primitive: SceneElevationSourcePrimitive, cesium?: CesiumModule): Promise<CesiumLayerHandle | undefined>;
|
|
386
|
+
/**
|
|
387
|
+
* Resolve the attributes of a picked 3D-Tiles feature.
|
|
388
|
+
*
|
|
389
|
+
* Cesium returns a `Cesium3DTileFeature` from `scene.pick(...)` for tileset
|
|
390
|
+
* hits; its batch-table / `EXT_structural_metadata` properties are read via
|
|
391
|
+
* `getPropertyIds()` + `getProperty(id)`. Anything else (terrain, a glTF model
|
|
392
|
+
* primitive, empty space) yields `undefined`. Pure given a picked object, so it
|
|
393
|
+
* is unit-testable with a plain stub.
|
|
394
|
+
*/
|
|
395
|
+
export declare function resolvePickedFeatureAttributes(picked: unknown): Record<string, unknown> | undefined;
|
|
396
|
+
/**
|
|
397
|
+
* Pick a 3D-Tiles feature at the given window position and return its
|
|
398
|
+
* attributes (or `undefined` for a miss / non-feature hit). Convenience wrapper
|
|
399
|
+
* over `scene.pick` + {@link resolvePickedFeatureAttributes} for identify flows.
|
|
400
|
+
*/
|
|
401
|
+
export declare function pickCesiumFeatureAttributes(scene: CesiumSceneLike, windowPosition: unknown): Record<string, unknown> | undefined;
|
|
402
|
+
/**
|
|
403
|
+
* Apply scene primitives to a live Cesium target.
|
|
404
|
+
*
|
|
405
|
+
* As of #1197 this lands the full 3D stack against `target.scene`:
|
|
406
|
+
* - `camera` → `Camera.setView` (via the lazily-loaded `Cartesian3`).
|
|
407
|
+
* - `elevation-source` → `scene.terrainProvider` + `verticalExaggeration`.
|
|
408
|
+
* - `model-layer` (`3d-tiles`) → `Cesium3DTileset.fromUrl` added to
|
|
409
|
+
* `scene.primitives`; (`gltf`/`glb`) → `Model.fromGltfAsync` placed by
|
|
410
|
+
* position/rotation/scale.
|
|
411
|
+
*
|
|
412
|
+
* Returns the diagnostics plus the live layer handles keyed by primitive id so
|
|
413
|
+
* callers can toggle visibility / tear layers down. Layer rendering is skipped
|
|
414
|
+
* (gracefully) when no `scene` is attached or when a primitive diagnoses as
|
|
415
|
+
* unsupported. I3S model layers and extrusions are declared-capable but not yet
|
|
416
|
+
* materialized here (no Honua server primitives emit them); point clouds ride
|
|
417
|
+
* the 3D-Tiles path and are gated on server ingest (honua-server#1201).
|
|
418
|
+
*/
|
|
419
|
+
export declare function applyCesiumScenePrimitives(target: CesiumSceneRuntimeTarget, primitives: readonly SceneRuntimePrimitive[], _state?: SceneWorkspaceState): Promise<ScenePrimitiveApplyResult & {
|
|
420
|
+
readonly layers: ReadonlyMap<string, CesiumLayerHandle>;
|
|
421
|
+
}>;
|
|
422
|
+
/**
|
|
423
|
+
* Create a {@link SceneRuntimeAdapter} backed by CesiumJS.
|
|
424
|
+
*
|
|
425
|
+
* When `options.target` (a live Cesium `Viewer`/`Scene` surface — a `camera`
|
|
426
|
+
* plus an optional `scene`) is supplied, `apply` drives the live globe: camera
|
|
427
|
+
* sync plus, when a `scene` is attached, terrain providers, 3D-Tiles tilesets,
|
|
428
|
+
* and glTF/GLB model layers (#1197). Without a target the adapter still
|
|
429
|
+
* diagnoses primitives against Cesium's true-3D capabilities — useful for
|
|
430
|
+
* migration analysis before a viewer exists. CesiumJS itself is only imported
|
|
431
|
+
* lazily when `apply` runs.
|
|
432
|
+
*/
|
|
433
|
+
export declare function createCesiumSceneAdapter(options?: {
|
|
434
|
+
readonly id?: string;
|
|
435
|
+
readonly target?: CesiumSceneRuntimeTarget;
|
|
436
|
+
}): SceneRuntimeAdapter;
|
|
437
|
+
export {};
|
|
438
|
+
//# sourceMappingURL=cesium-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cesium-adapter.d.ts","sourceRoot":"","sources":["../../../src/scene-workspace/cesium-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAI3B,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAExE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAE,wBAiBvC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH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