feat(editor): the canvas draws the view the Rust core composed; denylist and anatomy dependency removed

This commit is contained in:
bchanot committed 2026-10-14 23:59:46 +02:00
1 parent 43a370aed1
commit 09a6cf7def
11 files changed
+165 -158

No files matched your search

+10
View File
@@ -1,6 +1,7 @@
import type { CoreOutcome, SheetSession } from '@faunosteo/core-wasm'
import type {
ArchiveImport,
CanvasView,
DraftRestore,
LateralSide,
Observation,
@@ -89,6 +90,15 @@ export class SheetOps {
return this.run('archive.import', attachment)
}
/**
* The editor canvas of a view: the sheet's drawing, sanitised once at load, with the
* annotation layer (R3). Failures: `unknown_view`, `no_asset`, `svg_rejected` (the reason
* in `detail`), `invalid_character`.
*/
canvasView(viewId: string): CoreOutcome<CanvasView> {
return this.run('view.canvas', { viewId })
}
/** The snapshot of this sheet an archive of `report` carries. */
snapshot(report: Report): CoreOutcome<SheetSnapshot> {
return this.run('archive.snapshot', { report })