@honua/app-platform 0.0.20-alpha.0 → 0.1.1-beta.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/contract/discovery.d.ts +231 -0
- package/contract/discovery.d.ts.map +1 -0
- package/contract/discovery.js +554 -0
- package/contract/edit-sketch.d.ts +8 -0
- package/contract/edit-sketch.d.ts.map +1 -1
- package/contract/edit-sketch.js +15 -0
- package/contract/edit-snapping.d.ts +160 -0
- package/contract/edit-snapping.d.ts.map +1 -0
- package/contract/edit-snapping.js +675 -0
- package/contract/generated/projjson-v0.7-crs-validator.d.ts +35 -0
- package/contract/generated/projjson-v0.7-crs-validator.d.ts.map +1 -0
- package/contract/generated/projjson-v0.7-crs-validator.js +3941 -0
- package/contract/index.d.ts +11 -2
- package/contract/index.d.ts.map +1 -1
- package/contract/index.js +4 -1
- package/contract/pmtiles.d.ts +31 -0
- package/contract/pmtiles.d.ts.map +1 -1
- package/contract/pmtiles.js +60 -20
- package/contract/protocol-module.d.ts +70 -0
- package/contract/protocol-module.d.ts.map +1 -0
- package/contract/protocol-module.js +1 -0
- package/contract/schema-envelope.d.ts +26 -0
- package/contract/schema-envelope.d.ts.map +1 -0
- package/contract/schema-envelope.js +25 -0
- package/contract/schema.d.ts +582 -0
- package/contract/schema.d.ts.map +1 -0
- package/contract/schema.js +2483 -0
- package/contract/source-capability-support.d.ts +6 -0
- package/contract/source-capability-support.d.ts.map +1 -0
- package/contract/source-capability-support.js +154 -0
- package/contract/source.d.ts +35 -17
- package/contract/source.d.ts.map +1 -1
- package/contract/source.js +267 -71
- package/contract/types.d.ts +140 -4
- package/contract/types.d.ts.map +1 -1
- package/contract/types.js +6 -14
- package/core/bounded-json.d.ts +4 -0
- package/core/bounded-json.d.ts.map +1 -0
- package/core/bounded-json.js +38 -0
- package/core/cache-state.d.ts +9 -0
- package/core/cache-state.d.ts.map +1 -1
- package/core/cache-state.js +10 -0
- package/core/capabilities-xml.d.ts +33 -0
- package/core/capabilities-xml.d.ts.map +1 -0
- package/core/capabilities-xml.js +331 -0
- package/core/client.d.ts +4 -1
- package/core/client.d.ts.map +1 -1
- package/core/client.js +115 -29
- package/core/error-classifications.d.ts +153 -0
- package/core/error-classifications.d.ts.map +1 -0
- package/core/error-classifications.js +140 -0
- package/core/error-code-registry.d.ts +158 -0
- package/core/error-code-registry.d.ts.map +1 -0
- package/core/error-code-registry.js +143 -0
- package/core/error-envelope.d.ts +68 -0
- package/core/error-envelope.d.ts.map +1 -0
- package/core/error-envelope.js +357 -0
- package/core/errors.d.ts +45 -29
- package/core/errors.d.ts.map +1 -1
- package/core/errors.js +97 -50
- package/core/geoparquet-sql.d.ts +30 -2
- package/core/geoparquet-sql.d.ts.map +1 -1
- package/core/geoparquet-sql.js +38 -3
- package/core/odata-key-path.d.ts +12 -0
- package/core/odata-key-path.d.ts.map +1 -0
- package/core/odata-key-path.js +28 -0
- package/core/odata-write-codec.d.ts +66 -0
- package/core/odata-write-codec.d.ts.map +1 -0
- package/core/odata-write-codec.js +1083 -0
- package/core/odata.d.ts +59 -7
- package/core/odata.d.ts.map +1 -1
- package/core/odata.js +431 -99
- package/core/ogc-features.d.ts.map +1 -1
- package/core/ogc-features.js +3 -0
- package/core/ogc-maps.d.ts +7 -0
- package/core/ogc-maps.d.ts.map +1 -1
- package/core/ogc-maps.js +46 -7
- package/core/ogc-processes.d.ts +2 -1
- package/core/ogc-processes.d.ts.map +1 -1
- package/core/ogc-processes.js +33 -5
- package/core/ogc-records.d.ts +9 -0
- package/core/ogc-records.d.ts.map +1 -1
- package/core/ogc-records.js +78 -29
- package/core/ogc-tiles.d.ts +10 -1
- package/core/ogc-tiles.d.ts.map +1 -1
- package/core/ogc-tiles.js +56 -17
- package/core/path-utils.d.ts +9 -0
- package/core/path-utils.d.ts.map +1 -1
- package/core/path-utils.js +19 -0
- package/core/protocol-transport.d.ts +1 -0
- package/core/protocol-transport.d.ts.map +1 -1
- package/core/request-pipeline.d.ts.map +1 -1
- package/core/request-pipeline.js +1 -1
- package/core/spatial-filter.d.ts +8 -4
- package/core/spatial-filter.d.ts.map +1 -1
- package/core/spatial-filter.js +206 -16
- package/core/stac-static.d.ts +6 -2
- package/core/stac-static.d.ts.map +1 -1
- package/core/stac-static.js +260 -69
- package/core/surfaces.d.ts.map +1 -1
- package/core/surfaces.js +69 -5
- package/core/types.d.ts +125 -7
- package/core/types.d.ts.map +1 -1
- package/core/wfs-capabilities.d.ts +2 -0
- package/core/wfs-capabilities.d.ts.map +1 -1
- package/core/wfs-capabilities.js +8 -1
- package/core/wfs.d.ts.map +1 -1
- package/core/wfs.js +10 -0
- package/core/wms-capabilities.d.ts +56 -84
- package/core/wms-capabilities.d.ts.map +1 -1
- package/core/wms-capabilities.js +212 -509
- package/core/wmts-capabilities.d.ts +62 -62
- package/core/wmts-capabilities.d.ts.map +1 -1
- package/core/wmts-capabilities.js +224 -371
- package/esri-compat/editor.d.ts +8 -0
- package/esri-compat/editor.d.ts.map +1 -1
- package/esri-compat/editor.js +13 -0
- package/esri-compat/feature-layer.d.ts +2 -0
- package/esri-compat/feature-layer.d.ts.map +1 -1
- package/esri-compat/feature-layer.js +1 -0
- package/esri-compat/layer-list.d.ts +11 -0
- package/esri-compat/layer-list.d.ts.map +1 -1
- package/esri-compat/layer-list.js +49 -0
- package/esri-compat/legend.d.ts +10 -0
- package/esri-compat/legend.d.ts.map +1 -1
- package/esri-compat/legend.js +27 -0
- package/esri-compat/portal.d.ts +197 -0
- package/esri-compat/portal.d.ts.map +1 -0
- package/esri-compat/portal.js +251 -0
- package/esri-compat/renderer-objects.d.ts +40 -0
- package/esri-compat/renderer-objects.d.ts.map +1 -0
- package/esri-compat/renderer-objects.js +62 -0
- package/esri-compat/sketch.d.ts +43 -0
- package/esri-compat/sketch.d.ts.map +1 -1
- package/esri-compat/sketch.js +46 -0
- package/esri-compat/snapping.d.ts +43 -0
- package/esri-compat/snapping.d.ts.map +1 -0
- package/esri-compat/snapping.js +45 -0
- package/esri-compat/url.d.ts.map +1 -1
- package/esri-compat/url.js +1 -1
- package/esri-compat/widget-host.d.ts +84 -0
- package/esri-compat/widget-host.d.ts.map +1 -0
- package/esri-compat/widget-host.js +159 -0
- package/generated-app/errors.d.ts +18 -2
- package/generated-app/errors.d.ts.map +1 -1
- package/generated-app/errors.js +44 -11
- package/geocoding/index.d.ts +7 -0
- package/geocoding/index.d.ts.map +1 -1
- package/geocoding/index.js +5 -0
- package/geocoding/provider-http.d.ts +37 -0
- package/geocoding/provider-http.d.ts.map +1 -0
- package/geocoding/provider-http.js +91 -0
- package/geocoding/provider.d.ts +145 -0
- package/geocoding/provider.d.ts.map +1 -0
- package/geocoding/provider.js +41 -0
- package/geocoding/providers/honua.d.ts +28 -0
- package/geocoding/providers/honua.d.ts.map +1 -0
- package/geocoding/providers/honua.js +68 -0
- package/geocoding/providers/nominatim.d.ts +47 -0
- package/geocoding/providers/nominatim.d.ts.map +1 -0
- package/geocoding/providers/nominatim.js +105 -0
- package/geocoding/providers/pelias.d.ts +40 -0
- package/geocoding/providers/pelias.d.ts.map +1 -0
- package/geocoding/providers/pelias.js +115 -0
- package/geocoding/providers/photon.d.ts +39 -0
- package/geocoding/providers/photon.d.ts.map +1 -0
- package/geocoding/providers/photon.js +107 -0
- package/geometry/convert.d.ts +13 -0
- package/geometry/convert.d.ts.map +1 -0
- package/geometry/convert.js +12 -0
- package/geometry/index.d.ts +17 -0
- package/geometry/index.d.ts.map +1 -0
- package/geometry/index.js +15 -0
- package/geometry/internal.d.ts +25 -0
- package/geometry/internal.d.ts.map +1 -0
- package/geometry/internal.js +40 -0
- package/geometry/ops.d.ts +71 -0
- package/geometry/ops.d.ts.map +1 -0
- package/geometry/ops.js +147 -0
- package/geometry/project.d.ts +40 -0
- package/geometry/project.d.ts.map +1 -0
- package/geometry/project.js +88 -0
- package/geometry/types.d.ts +36 -0
- package/geometry/types.d.ts.map +1 -0
- package/geometry/types.js +12 -0
- package/map/automatic-mount-integration.d.ts +134 -0
- package/map/automatic-mount-integration.d.ts.map +1 -0
- package/map/automatic-mount-integration.js +305 -0
- package/map/automatic-source-strategy.d.ts +125 -0
- package/map/automatic-source-strategy.d.ts.map +1 -0
- package/map/automatic-source-strategy.js +494 -0
- package/map/data-to-map-bridge.d.ts +293 -0
- package/map/data-to-map-bridge.d.ts.map +1 -0
- package/map/data-to-map-bridge.js +817 -0
- package/map/geojson-projection.d.ts +33 -0
- package/map/geojson-projection.d.ts.map +1 -0
- package/map/geojson-projection.js +118 -0
- package/map/index.d.ts +14 -0
- package/map/index.d.ts.map +1 -1
- package/map/index.js +8 -0
- package/map/raster-source-spec.d.ts +30 -0
- package/map/raster-source-spec.d.ts.map +1 -0
- package/map/raster-source-spec.js +190 -0
- package/map/raster-source-strategy.d.ts +65 -0
- package/map/raster-source-strategy.d.ts.map +1 -0
- package/map/raster-source-strategy.js +232 -0
- package/map/source-to-maplibre.d.ts +91 -0
- package/map/source-to-maplibre.d.ts.map +1 -0
- package/map/source-to-maplibre.js +454 -0
- package/map/temporal-playback.d.ts +139 -0
- package/map/temporal-playback.d.ts.map +1 -0
- package/map/temporal-playback.js +247 -0
- package/package.json +33 -2
- package/query-planner/canonical.d.ts +7 -0
- package/query-planner/canonical.d.ts.map +1 -0
- package/query-planner/canonical.js +145 -0
- package/query-planner/cql2-json.d.ts +17 -0
- package/query-planner/cql2-json.d.ts.map +1 -0
- package/query-planner/cql2-json.js +646 -0
- package/query-planner/diagnostics.d.ts +35 -0
- package/query-planner/diagnostics.d.ts.map +1 -0
- package/query-planner/diagnostics.js +373 -0
- package/query-planner/duckdb.d.ts +79 -0
- package/query-planner/duckdb.d.ts.map +1 -0
- package/query-planner/duckdb.js +758 -0
- package/query-planner/execution-context.d.ts +5 -0
- package/query-planner/execution-context.d.ts.map +1 -0
- package/query-planner/execution-context.js +50 -0
- package/query-planner/executor.d.ts +5 -0
- package/query-planner/executor.d.ts.map +1 -0
- package/query-planner/executor.js +223 -0
- package/query-planner/geoservices.d.ts +91 -0
- package/query-planner/geoservices.d.ts.map +1 -0
- package/query-planner/geoservices.js +667 -0
- package/query-planner/grpc.d.ts +100 -0
- package/query-planner/grpc.d.ts.map +1 -0
- package/query-planner/grpc.js +736 -0
- package/query-planner/index.d.ts +44 -0
- package/query-planner/index.d.ts.map +1 -0
- package/query-planner/index.js +30 -0
- package/query-planner/ir.d.ts +20 -0
- package/query-planner/ir.d.ts.map +1 -0
- package/query-planner/ir.js +417 -0
- package/query-planner/local-aggregate.d.ts +5 -0
- package/query-planner/local-aggregate.d.ts.map +1 -0
- package/query-planner/local-aggregate.js +126 -0
- package/query-planner/odata.d.ts +48 -0
- package/query-planner/odata.d.ts.map +1 -0
- package/query-planner/odata.js +662 -0
- package/query-planner/ogc-compiler.d.ts +55 -0
- package/query-planner/ogc-compiler.d.ts.map +1 -0
- package/query-planner/ogc-compiler.js +480 -0
- package/query-planner/ogc-features.d.ts +53 -0
- package/query-planner/ogc-features.d.ts.map +1 -0
- package/query-planner/ogc-features.js +617 -0
- package/query-planner/planner.d.ts +17 -0
- package/query-planner/planner.d.ts.map +1 -0
- package/query-planner/planner.js +818 -0
- package/query-planner/resource.d.ts +94 -0
- package/query-planner/resource.d.ts.map +1 -0
- package/query-planner/resource.js +526 -0
- package/query-planner/semantic-canonical.d.ts +15 -0
- package/query-planner/semantic-canonical.d.ts.map +1 -0
- package/query-planner/semantic-canonical.js +62 -0
- package/query-planner/semantic-compat.d.ts +10 -0
- package/query-planner/semantic-compat.d.ts.map +1 -0
- package/query-planner/semantic-compat.js +35 -0
- package/query-planner/semantic-compiler.d.ts +64 -0
- package/query-planner/semantic-compiler.d.ts.map +1 -0
- package/query-planner/semantic-compiler.js +81 -0
- package/query-planner/semantic-literals.d.ts +30 -0
- package/query-planner/semantic-literals.d.ts.map +1 -0
- package/query-planner/semantic-literals.js +133 -0
- package/query-planner/semantic-types.d.ts +265 -0
- package/query-planner/semantic-types.d.ts.map +1 -0
- package/query-planner/semantic-types.js +1 -0
- package/query-planner/semantic.d.ts +54 -0
- package/query-planner/semantic.d.ts.map +1 -0
- package/query-planner/semantic.js +1421 -0
- package/query-planner/types.d.ts +560 -0
- package/query-planner/types.d.ts.map +1 -0
- package/query-planner/types.js +49 -0
- package/query-planner/wfs-semantic.d.ts +58 -0
- package/query-planner/wfs-semantic.d.ts.map +1 -0
- package/query-planner/wfs-semantic.js +547 -0
- package/query-planner/wfs.d.ts +6 -0
- package/query-planner/wfs.d.ts.map +1 -0
- package/query-planner/wfs.js +71 -0
- package/realtime/contract.d.ts +142 -0
- package/realtime/contract.d.ts.map +1 -0
- package/realtime/contract.js +154 -0
- package/realtime/honua-server.d.ts.map +1 -1
- package/realtime/honua-server.js +13 -8
- package/realtime/index.d.ts +19 -4
- package/realtime/index.d.ts.map +1 -1
- package/realtime/index.js +14 -4
- package/realtime/odata-delta.d.ts +114 -0
- package/realtime/odata-delta.d.ts.map +1 -0
- package/realtime/odata-delta.js +483 -0
- package/realtime/resumable-transport.d.ts +111 -0
- package/realtime/resumable-transport.d.ts.map +1 -0
- package/realtime/resumable-transport.js +406 -0
- package/realtime/resumable.d.ts +104 -0
- package/realtime/resumable.d.ts.map +1 -0
- package/realtime/resumable.js +632 -0
- package/realtime/sse.d.ts.map +1 -1
- package/realtime/sse.js +27 -23
- package/realtime/websocket.d.ts +60 -0
- package/realtime/websocket.d.ts.map +1 -0
- package/realtime/websocket.js +157 -0
- package/realtime/wire.d.ts +27 -0
- package/realtime/wire.d.ts.map +1 -0
- package/realtime/wire.js +57 -0
- package/replica-sync/errors.d.ts +2 -1
- package/replica-sync/errors.d.ts.map +1 -1
- package/replica-sync/errors.js +33 -2
- package/runtime/edit-snapping.d.ts +107 -0
- package/runtime/edit-snapping.d.ts.map +1 -0
- package/runtime/edit-snapping.js +190 -0
- package/runtime/errors.d.ts +3 -2
- package/runtime/errors.d.ts.map +1 -1
- package/runtime/errors.js +19 -2
- package/runtime/index.d.ts +6 -0
- package/runtime/index.d.ts.map +1 -1
- package/runtime/index.js +3 -0
- package/runtime/maplibre-renderer.d.ts +41 -0
- package/runtime/maplibre-renderer.d.ts.map +1 -0
- package/runtime/maplibre-renderer.js +322 -0
- package/runtime/query-tiles.d.ts +2 -1
- package/runtime/query-tiles.d.ts.map +1 -1
- package/runtime/query-tiles.js +6 -2
- package/runtime/source-bridge.d.ts +4 -4
- package/runtime/source-bridge.d.ts.map +1 -1
- package/runtime/source-bridge.js +9 -56
- package/runtime/style-interactions.d.ts +3 -2
- package/runtime/style-interactions.d.ts.map +1 -1
- package/runtime/style-interactions.js +11 -3
- package/runtime/terra-draw-sketch.d.ts +275 -0
- package/runtime/terra-draw-sketch.d.ts.map +1 -0
- package/runtime/terra-draw-sketch.js +404 -0
- package/scene-workspace/index.d.ts +4 -0
- package/scene-workspace/index.d.ts.map +1 -1
- package/scene-workspace/index.js +2 -0
- package/scene-workspace/source-to-cesium.d.ts +116 -0
- package/scene-workspace/source-to-cesium.d.ts.map +1 -0
- package/scene-workspace/source-to-cesium.js +791 -0
- package/scene-workspace/state-sync.d.ts +147 -0
- package/scene-workspace/state-sync.d.ts.map +1 -0
- package/scene-workspace/state-sync.js +1123 -0
- package/source-capability-registry.d.ts +1 -0
- package/source-capability-registry.js +1 -0
- package/source-capability-types.d.ts +186 -0
- package/source-capability-types.js +7 -0
- package/style/index.d.ts +2 -0
- package/style/index.d.ts.map +1 -1
- package/style/index.js +2 -0
- package/style/renderers.d.ts +326 -0
- package/style/renderers.d.ts.map +1 -0
- package/style/renderers.js +517 -0
- package/web-components/controller.d.ts +2 -0
- package/web-components/controller.d.ts.map +1 -1
- package/web-components/controller.js +49 -8
- package/web-components/elements.d.ts +95 -1
- package/web-components/elements.d.ts.map +1 -1
- package/web-components/elements.js +458 -19
- package/web-components/index.d.ts +8 -1
- package/web-components/index.d.ts.map +1 -1
- package/web-components/index.js +7 -0
- package/web-components/maplibre-renderer.d.ts.map +1 -1
- package/web-components/maplibre-renderer.js +87 -0
- package/web-components/measurement.d.ts +69 -0
- package/web-components/measurement.d.ts.map +1 -0
- package/web-components/measurement.js +523 -0
- package/web-components/types.d.ts +109 -0
- package/web-components/types.d.ts.map +1 -1
- package/webmap/convert-renderer.d.ts +24 -3
- package/webmap/convert-renderer.d.ts.map +1 -1
- package/webmap/convert-renderer.js +93 -112
- package/webmap/index.d.ts +1 -1
- package/webmap/index.d.ts.map +1 -1
- package/webmap/index.js +1 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type { FeatureSelectionTarget, FilterClause } from "../exploration/index.js";
|
|
2
|
+
import type { SceneCameraState, SceneDetailState, SceneTimelineState } from "./types.js";
|
|
3
|
+
export declare const SCENE_STATE_SYNC_KIND: "honua.scene-state-sync";
|
|
4
|
+
export declare const SCENE_STATE_SYNC_VERSION: "1.0";
|
|
5
|
+
export declare const SCENE_STATE_SYNC_SLICES: readonly ["camera", "selection", "filters", "time", "detail", "attribution", "realtime"];
|
|
6
|
+
export type SceneStateSyncSlice = (typeof SCENE_STATE_SYNC_SLICES)[number];
|
|
7
|
+
export type SceneStateSyncRenderer = "maplibre" | "cesium" | "custom";
|
|
8
|
+
export type SceneStateSyncFidelity = "exact" | "equivalent" | "unsupported";
|
|
9
|
+
export interface SceneStateSyncIdentity {
|
|
10
|
+
readonly sourceId: string;
|
|
11
|
+
readonly schemaVersion?: string;
|
|
12
|
+
readonly sourceVersion?: string;
|
|
13
|
+
readonly planId?: string;
|
|
14
|
+
readonly planFingerprint?: `sha256:${string}`;
|
|
15
|
+
}
|
|
16
|
+
export interface SceneStateSyncOrigin {
|
|
17
|
+
readonly applicationId: string;
|
|
18
|
+
readonly portId: string;
|
|
19
|
+
readonly renderer: SceneStateSyncRenderer;
|
|
20
|
+
}
|
|
21
|
+
export interface SceneStateSyncMapping {
|
|
22
|
+
readonly inbound: SceneStateSyncFidelity;
|
|
23
|
+
readonly outbound: SceneStateSyncFidelity;
|
|
24
|
+
readonly code: string;
|
|
25
|
+
readonly message: string;
|
|
26
|
+
}
|
|
27
|
+
export type SceneStateSyncMappings = Readonly<Record<SceneStateSyncSlice, SceneStateSyncMapping>>;
|
|
28
|
+
export interface SceneStateSyncRealtimeValue {
|
|
29
|
+
readonly status: "idle" | "connecting" | "connected" | "reconnecting" | "disconnected" | "error";
|
|
30
|
+
readonly freshness: "fresh" | "stale" | "unknown";
|
|
31
|
+
readonly observedAt?: string;
|
|
32
|
+
readonly cursorPresent: boolean;
|
|
33
|
+
readonly lagMs?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface SceneStateSyncAttributionValue {
|
|
36
|
+
/** Stable attribution identifiers; raw HTML, URLs, and credentials are excluded. */
|
|
37
|
+
readonly ids: readonly string[];
|
|
38
|
+
}
|
|
39
|
+
export interface SceneStateSyncValueMap {
|
|
40
|
+
readonly camera: SceneCameraState | undefined;
|
|
41
|
+
readonly selection: readonly FeatureSelectionTarget[];
|
|
42
|
+
readonly filters: Readonly<Record<string, FilterClause>>;
|
|
43
|
+
readonly time: SceneTimelineState;
|
|
44
|
+
readonly detail: SceneDetailState;
|
|
45
|
+
readonly attribution: SceneStateSyncAttributionValue;
|
|
46
|
+
readonly realtime: SceneStateSyncRealtimeValue;
|
|
47
|
+
}
|
|
48
|
+
export type SceneStateSyncInput = {
|
|
49
|
+
readonly [Slice in SceneStateSyncSlice]: {
|
|
50
|
+
readonly kind: typeof SCENE_STATE_SYNC_KIND;
|
|
51
|
+
readonly version: typeof SCENE_STATE_SYNC_VERSION;
|
|
52
|
+
readonly sequence: number;
|
|
53
|
+
readonly emittedAt: string;
|
|
54
|
+
readonly slice: Slice;
|
|
55
|
+
readonly value: SceneStateSyncValueMap[Slice];
|
|
56
|
+
readonly identity: SceneStateSyncIdentity;
|
|
57
|
+
/** Revision being acknowledged after a renderer applied a delivery. */
|
|
58
|
+
readonly causeRevision?: number;
|
|
59
|
+
};
|
|
60
|
+
}[SceneStateSyncSlice];
|
|
61
|
+
export type SceneStateSyncEnvelope = {
|
|
62
|
+
readonly [Slice in SceneStateSyncSlice]: {
|
|
63
|
+
readonly kind: typeof SCENE_STATE_SYNC_KIND;
|
|
64
|
+
readonly version: typeof SCENE_STATE_SYNC_VERSION;
|
|
65
|
+
readonly revision: number;
|
|
66
|
+
readonly acceptedAt: string;
|
|
67
|
+
readonly emittedAt: string;
|
|
68
|
+
readonly slice: Slice;
|
|
69
|
+
readonly value: SceneStateSyncValueMap[Slice];
|
|
70
|
+
readonly identity: SceneStateSyncIdentity;
|
|
71
|
+
readonly origin: SceneStateSyncOrigin;
|
|
72
|
+
readonly fidelity: SceneStateSyncMapping;
|
|
73
|
+
};
|
|
74
|
+
}[SceneStateSyncSlice];
|
|
75
|
+
export interface SceneStateSyncDelivery {
|
|
76
|
+
readonly envelope: SceneStateSyncEnvelope;
|
|
77
|
+
readonly target: SceneStateSyncOrigin;
|
|
78
|
+
readonly fidelity: SceneStateSyncMapping;
|
|
79
|
+
}
|
|
80
|
+
export interface SceneStateSyncPort {
|
|
81
|
+
readonly id: string;
|
|
82
|
+
readonly renderer: SceneStateSyncRenderer;
|
|
83
|
+
readonly mappings: SceneStateSyncMappings;
|
|
84
|
+
subscribe(listener: (event: SceneStateSyncInput) => void, signal: AbortSignal): () => void;
|
|
85
|
+
apply(delivery: SceneStateSyncDelivery, signal: AbortSignal): void | Promise<void>;
|
|
86
|
+
}
|
|
87
|
+
export type SceneStateSyncDiagnosticCode = "clock-failed" | "stale-update" | "loop-suppressed" | "duplicate-suppressed" | "coalesced" | "unsupported-origin" | "unsupported-target" | "apply-failed" | "port-detached";
|
|
88
|
+
export interface SceneStateSyncDiagnostic {
|
|
89
|
+
readonly code: SceneStateSyncDiagnosticCode;
|
|
90
|
+
readonly at: string;
|
|
91
|
+
readonly applicationId: string;
|
|
92
|
+
readonly portId: string;
|
|
93
|
+
readonly slice?: SceneStateSyncSlice;
|
|
94
|
+
readonly revision?: number;
|
|
95
|
+
readonly message: string;
|
|
96
|
+
}
|
|
97
|
+
export interface SceneStateSyncSnapshot {
|
|
98
|
+
readonly kind: typeof SCENE_STATE_SYNC_KIND;
|
|
99
|
+
readonly version: typeof SCENE_STATE_SYNC_VERSION;
|
|
100
|
+
readonly applicationId: string;
|
|
101
|
+
readonly revision: number;
|
|
102
|
+
readonly values: Readonly<Partial<{
|
|
103
|
+
readonly [Slice in SceneStateSyncSlice]: SceneStateSyncEnvelope;
|
|
104
|
+
}>>;
|
|
105
|
+
readonly diagnostics: readonly SceneStateSyncDiagnostic[];
|
|
106
|
+
}
|
|
107
|
+
export type SceneStateSyncEvent = {
|
|
108
|
+
readonly type: "state";
|
|
109
|
+
readonly envelope: SceneStateSyncEnvelope;
|
|
110
|
+
readonly snapshot: SceneStateSyncSnapshot;
|
|
111
|
+
} | {
|
|
112
|
+
readonly type: "diagnostic";
|
|
113
|
+
readonly diagnostic: SceneStateSyncDiagnostic;
|
|
114
|
+
};
|
|
115
|
+
export type SceneStateSyncErrorCode = "invalid-input" | "duplicate-port" | "unknown-port" | "attach-failed" | "disposed" | "dispose-failed";
|
|
116
|
+
export declare class HonuaSceneStateSyncError extends Error {
|
|
117
|
+
readonly code: SceneStateSyncErrorCode;
|
|
118
|
+
constructor(code: SceneStateSyncErrorCode, message: string, options?: {
|
|
119
|
+
readonly cause?: unknown;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
export interface CreateSceneStateSynchronizerOptions {
|
|
123
|
+
readonly applicationId: string;
|
|
124
|
+
readonly ports?: readonly SceneStateSyncPort[];
|
|
125
|
+
/** Camera/time coalescing window. Defaults to 16 ms; zero uses a microtask. */
|
|
126
|
+
readonly coalesceMs?: number;
|
|
127
|
+
readonly maxPorts?: number;
|
|
128
|
+
readonly maxDiagnostics?: number;
|
|
129
|
+
readonly now?: () => string;
|
|
130
|
+
readonly signal?: AbortSignal;
|
|
131
|
+
}
|
|
132
|
+
export interface SceneStateSynchronizer {
|
|
133
|
+
readonly disposed: boolean;
|
|
134
|
+
readonly portIds: readonly string[];
|
|
135
|
+
readonly snapshot: SceneStateSyncSnapshot;
|
|
136
|
+
attach(port: SceneStateSyncPort): void;
|
|
137
|
+
attachAll(ports: readonly SceneStateSyncPort[]): void;
|
|
138
|
+
detach(portId: string): void;
|
|
139
|
+
subscribe(listener: (event: SceneStateSyncEvent) => void): () => void;
|
|
140
|
+
flush(): Promise<void>;
|
|
141
|
+
dispose(): void;
|
|
142
|
+
}
|
|
143
|
+
/** Create one isolated renderer-neutral state synchronization lifecycle. */
|
|
144
|
+
export declare function createSceneStateSynchronizer(options: CreateSceneStateSynchronizerOptions): SceneStateSynchronizer;
|
|
145
|
+
/** Explicit default mapping truth for a renderer; callers may narrow any slice. */
|
|
146
|
+
export declare function defaultSceneStateSyncMappings(renderer: SceneStateSyncRenderer): SceneStateSyncMappings;
|
|
147
|
+
//# sourceMappingURL=state-sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state-sync.d.ts","sourceRoot":"","sources":["../../../src/scene-workspace/state-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEzF,eAAO,MAAM,qBAAqB,EAAG,wBAAiC,CAAC;AACvE,eAAO,MAAM,wBAAwB,EAAG,KAAc,CAAC;AAEvD,eAAO,MAAM,uBAAuB,0FAQ1B,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC3E,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACtE,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,YAAY,GAAG,aAAa,CAAC;AAE5E,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAA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