Files
FreeCADWasmDev/web/src/scene-document.ts
wangdequan 65f59aba25 Remove OpenSCAD from the web port
Web FreeCAD does not implement OpenSCAD. Drop the module end to end
instead of keeping a blocked or placeholder shell:

- delete the parity-matrix row and regenerate the module registry
  (31 modules, OpenSCAD absent)
- remove the OpenSCAD-only frontend modules (worker, facades, slice,
  mesh backend, desktop/preferences tasks) and strip the OpenSCAD
  branches from the dispatchers, shells, storage and router
- neutralise the two shared owners that outlived the module:
  openscad-desktop-view -> scene-viewport (SceneViewport) and
  openscad-desktop-adapter -> scene-document (SceneDocument), so Part,
  Mesh and the other consumers keep working
- drop the FreeCADWebOpenSCADRuntimeProbe target and
  FREECAD_WEB_ENABLE_OPENSCAD option from the kernel CMake;
  BUILD_OPENSCAD stays in the forced-off list
- delete web/openscad.html, its Vite input, the kernel artifacts and
  the 17 OpenSCAD tool entry points

AGENTS.md records the removal rule. tsc --noEmit is clean and
grep -ri openscad web/src is empty.

Also carry the Boost pthread guard: under Emscripten a plain -lpthread
implies -sUSE_PTHREADS=1 and therewith --shared-memory, which the
non-atomics VTK archives cannot link against.

Validation NOT_RUN / PARTIAL_FAILED, Acceptance NOT_CLAIMED.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 06:53:03 +08:00

23 lines
842 B
TypeScript

export interface SceneDocument {
documentId: string;
documentToken?: string;
action?: string;
undoCount?: number;
redoCount?: number;
selection: string[];
created?: string[];
removed?: string[];
modified?: string[];
file?: { name: string; base64: string };
objects: Array<{
name: string; label: string; typeId: string; dependencies: string[];
measurement?: import("./measure-document-adapter.js").DistanceAnnotation;
faceCount?: number; edgeCount?: number; visible?: boolean;
explodeGroup?: { eligible: boolean; reason: string };
color?: number[]; colors?: number[]; opacity?: number; points?: number[][]; facets?: number[][]; lines?: number[][][]; pointMarkers?: number[][];
placement?: number[];
tolerance?: { vertex: number; edge: number; face: number };
base?: string | null;
}>;
}