Merge main into denis/iss-live-telemetry

Conflicts: the locale catalogs, package boundaries and format scope are
three-way merges (entries main removed, such as displayPanelScroll.js,
stay removed); applicationShell.js and ContextView.vue keep main's Space
Missions panel and the STATION and LIVE wiring, moved back into
_initGlobalContextPanel; installations take main's feedback module, and
their label box joins main's card-on-top click rule; ports.test.mjs lists
modelParts and modelNodes; CURRENT-STATE.md keeps both edits.

zh-Hant is regenerated from zh-CN, as main now requires. "Below" keeps
main's translations.
This commit is contained in:
Denis Groshev committed 2026-11-19 17:07:48 +01:00
commit 0620d01140
1526 files changed
+52168 -11320

No files matched your search

+4
View File
@@ -167,6 +167,8 @@ export type Capability =
| 'splitSwipe'
/** Timed imagery frames with hidden prefetch. */
| 'imageryFrames'
/** Timed imagery the application hands over as finished tile images (`decoded`). */
| 'imageryDecoded'
/** Wind-relief and similar shading of the globe surface. */
| 'surfaceShading'
/** A version of what surface heights answer against (`globe.surfaceVersion`). */
@@ -193,6 +195,8 @@ export type Capability =
| 'motionSegments'
/** glTF models. */
| 'models'
/** Moving parts of glTF models posed as an item's `parts` says. */
| 'modelParts'
/** Image, video and canvas planes. */
| 'quads'
/** Custom meshes in a local east-north-up frame. */
+59
View File
@@ -459,6 +459,65 @@ export interface ModelItem extends Placed {
* change live.
*/
focus?: number;
/**
* `modelParts`: how the model's moving parts are posed. Applies to a
* model whose mesh carries a `_PART` vertex attribute (each vertex's part
* index) and whose root node's glTF `extras.parts` is its part table;
* ignored for any other. Omitted, or without the capability, the model is
* drawn whole, at rest, as its file draws it. Can change live, without
* loading the model again.
*/
parts?: ModelPartState;
}
/**
* A model's part state (`ModelItem.parts`), each member by part name; a
* part not named is at rest, and a name the model's part table lacks is
* ignored. The maths is `render/modelParts`'s `partMatrices`: about each
* part's pivot, its deploy fraction first, then its spin, then its pose,
* then its parent part's whole motion.
*/
export interface ModelPartState {
/**
* Degrees a second about the part's axis, which the renderer advances
* itself on its own clock each frame: a turning rotor costs the
* application no write per frame. A change of rate goes on from the angle
* reached, without a jump; a part that stops spinning stays where it is.
*/
spin?: Record<string, number>;
/**
* 0 (stowed, the table's first limit) to 1 (deployed, its second): a
* hinge or deploy part turned, a slide or separable part moved along its
* axis, that far between its limits. Clamped to 0..1.
*/
deploy?: Record<string, number>;
/** Each part's pose, on top of its spin and deploy fraction. */
poses?: Record<string, PartPose>;
}
/**
* One part's pose about its pivot, in the model's own frame (in its glTF:
* forward −X, up +Y, right −Z). A hinge or deploy part's turn about its
* axis stays within its limits, as does a slide part's travel; the rest of
* every part's motion is free. A number that is not finite counts as 0.
*/
export interface PartPose {
/** Metres along the model's right, forward and up. */
offsetM?: [right: number, forward: number, up: number];
/** Degrees clockwise seen from above, as a heading. Applied first. */
yawDeg?: number;
/** Degrees nose up. Applied after the yaw. */
pitchDeg?: number;
/** Degrees clockwise looking forward. Applied last. */
rollDeg?: number;
/** Not drawn, nor any part riding it. */
hidden?: boolean;
/**
* Drawn in a highlight colour: `true` for the renderer's own, or a
* colour. Anything else, or a colour the renderer cannot read, draws no
* highlight. Not inherited by the parts riding it.
*/
highlight?: boolean | Color;
}
/** A plane showing an image, a video or a canvas. */
+36 -2
View File
@@ -130,17 +130,51 @@ export interface TimedUrl {
url: string;
}
/**
* A tile of a `decoded` source at one slot: its finished image, `missing`
* (no tile there; draw the parent's), or `defer` (ask again on a later
* frame). The renderer owns the image once answered: it draws it as it is
* (its alpha too) and may close it once drawn.
*/
export type DecodedTile =
{ image: ImageBitmap } | { missing: true } | { defer: true };
/** What a `decoded` source is asked for: one tile at one slot. */
export interface DecodedTileRequest {
tile: TileRequest;
/** The slot, as `slotAt` or `prefetch` named it. */
slot: number;
/** Aborted once the renderer no longer wants the tile. */
signal: AbortSignal;
/** `shown`: the slot the clock shows; `prefetch`: one held ahead. */
urgency: 'shown' | 'prefetch';
}
/**
* A timed source: frames as URLs (one template per time), or video tiles
* in segments, each a template whose tiles are videos spanning `start` to
* `end` (epoch ms), a time within shown by its offset into the segment's
* videos. Outside every segment, the nearest segment end is shown.
*
* `decoded` (`imageryDecoded`): tiles the application makes itself and hands
* over as finished images. Its slots are times (epoch ms): `slotAt` names
* the slot a time shows (`null`: none, and nothing is drawn), `prefetch` the
* slots to hold ahead of it, nearest first. The renderer asks `tile` for the
* tiles each held slot draws, in the layer's tiling, and only draws what it
* is given. It shows the nearest slot only (`mode` is not read); the
* `prefetch` option caps how many of the source's slots it holds ahead.
*/
export type TimedSource =
| { kind: 'frames'; frames: TimedUrl[] }
| {
kind: 'video';
segments: Array<{ url: string; start: number; end: number }>;
}
| {
kind: 'decoded';
slotAt(time: number): number | null;
prefetch?(time: number): number[];
tile(request: DecodedTileRequest): Promise<DecodedTile>;
};
export interface ImageryLayer {
@@ -176,8 +210,8 @@ export interface ImageryLayer {
/** `imageryFrames`: which time to show, on the `own` clock. */
setFrameTime?(ms: number): void;
/**
* `imageryFrames`: the frame the layer's clock now shows (by its time)
* has been drawn. Fires once each time the shown frame changes, never
* `imageryFrames`: the frame the layer's clock now shows (by its time;
* a `decoded` source's by its slot) has been drawn. Fires once each time the shown frame changes, never
* for frames only prefetched.
*/
on(event: 'frameReady', cb: (time: number) => void): Off;
+2
View File
@@ -24,6 +24,7 @@ export const CAPABILITIES = Object.freeze([
'imageryOnTiles',
'splitSwipe',
'imageryFrames',
'imageryDecoded',
'surfaceShading',
'surfaceIdentity',
'imageHooks',
@@ -35,6 +36,7 @@ export const CAPABILITIES = Object.freeze([
'columns',
'motionSegments',
'models',
'modelParts',
'quads',
'meshes',
'fields',
+8
View File
@@ -58,6 +58,14 @@ export interface ApplicationHooks {
viewerDrawsEntity?(entity: unknown): boolean;
/** Values QA scripts read from the page's debug handle. */
qaHandles?: Readonly<Record<string, unknown>>;
/**
* The renderer's own engine, for an application that draws with it
* directly beside the contract: `kind` names the engine (`'cesium'` for
* Cesium, whose `Cesium.Viewer` is `viewer`) and the rest is that engine's
* own. An application draws only with engines whose kind it knows, and
* whatever it draws there is its own to add, update and remove.
*/
engine?: Readonly<{ kind: string; [key: string]: unknown }>;
/**
* Show a recoverable notice when the renderer stops drawing (an error, a
* lost context), with Retry and, if `allowReload`, Reset, by publishing it