feat(web): viewport transform parity — offscreen backend, per-island pivots, ortho sizing
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

- Offscreen worker backend publishes the camera probe, so the G/R/S modal's
  pointer basis, transform gizmo and wireframe work on both renderers.
- Edit-mode INDIVIDUAL_ORIGINS pivots every connected island on its own centre,
  committed as one grouped transaction (T(P)·R·S·T(-P) in object space).
- Gizmo hits carry the pivot index; orthographic views size the axes from the
  visible world height instead of the 45° fov fallback.
- View-menu navigation no longer switches workspace when a viewport is already
  on screen (the engine workspace transaction dropped the editor out of Edit).
- Modal commits queue behind the shared command tail, so a trailing
  editEditorContext cannot consume the user's first Ctrl+Z.
- Floating sidebar rotation field confirmed in degrees; headed cases for the
  offscreen path, per-island pivots and the sidebar unit, plus receipts/docs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-28 07:48:17 +08:00
parent 10851c1e02
commit c47fa79102
1207 changed files with 170580 additions and 105 deletions

View File

@@ -726,6 +726,11 @@ export class WebEngineClient {
return this.callJson("setRNAProperty", params);
}
/** Toggle the native viewport "Display Axes" (OB_AXIS) flag; display-only, no undo step. */
async viewportObjectAxis(params: { enabled: boolean; name?: string }): Promise<{ status: WebEngineStatus; result: unknown }> {
return this.callJson("viewportObjectAxis", params);
}
async listRNACollections(params: Record<string, unknown> = {}): Promise<{ status: WebEngineStatus; collections: RNACollectionDescriptor[] }> {
const { status, result } = await this.callJson<unknown>("listRNACollections", params);
const collections = Array.isArray(result) ? result : (result && typeof result === "object" && Array.isArray((result as { collections?: unknown }).collections) ? (result as { collections: unknown[] }).collections : []);