Merge pull request '支持纯图片元素的 Canvas 快照格式' (#11) from codex/plain-images into main
Foundry Go checks / check (push) Successful in 2m52s
Deploy Foundry Core / deploy (push) Successful in 4m32s

Reviewed-on: #11
This commit was merged in pull request #11.
This commit is contained in:
2026-11-06 04:44:26 +00:00
3 changed files with 25 additions and 1 deletions
+5
View File
@@ -105,6 +105,11 @@ serialize autosaves and handle 412 explicitly. Restore node style dimensions
from width/height and render edges as Bézier curves. These frontend changes are
outside this Core delivery; local drafts alone are not database persistence.
Canvas schema 1 supports unframed images: `type: "plainImage"` with
`data.kind: "plain-image"`. They require the same validated `data.src` as image
cards, support geometry/rotation/frame membership, and cannot connect to edges.
This is a snapshot-format extension with no additional migration.
Canvas schema 1 also supports frames: `type: "frame"` with `data.kind: "frame"`.
Frame names use `data.title`; optional `data.labelMode` is `hidden`, `fixed`, or
`scaled` (frontend default: `fixed`). Frames cannot rotate, connect to edges,