Support canvas frame nodes and explicit membership snapshots
This commit is contained in:
@@ -104,3 +104,15 @@ at least 5 MiB; load the server snapshot, offer migration of old local drafts,
|
||||
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 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,
|
||||
or belong to other frames. Any non-frame node can specify `data.frameId`, which
|
||||
must reference a frame in the same snapshot; forward references are supported.
|
||||
Membership is explicit and independent of geometry: moving a frame over existing
|
||||
content does not add members. The frontend assigns membership on content drop
|
||||
and implements label zoom behavior. Core preserves the supplied membership and
|
||||
label mode without inferring them from positions. Renderer-only `zIndex` is
|
||||
ignored alongside transient state; restore frame layering in the frontend.
|
||||
This extends existing JSONB snapshots and requires no additional migration.
|
||||
|
||||
Reference in New Issue
Block a user