Bind rendered editing callbacks to captured element lifetimes

This commit is contained in:
2026-11-09 19:26:00 +08:00
parent 28c792d640
commit 9efe6e7c9f
14 changed files with 103 additions and 45 deletions
+10
View File
@@ -453,3 +453,13 @@ A real three-node fixture verifies that editing one node through ACK leaves an
unrelated node and nonincident edge's render function counts unchanged. Connected
edges may legitimately remeasure when a custom renderer's data changes; this does
not assume arbitrary custom Handle layouts stay fixed.
Node projections now carry readonly `__headlessTarget` display metadata with
id/incarnation/ownerCanvasId/display canvasId, written from model identity after
user data is projected. It is not a persisted element field. The application binds
legacy editing actions to that captured target through `useScopedNodeEditing`;
old incarnation/owner/placement and detached/closed-view callbacks do not write to
current records. Frame titles, node titles, text/style/branch/transform controls
use the scoped bridge. Legacy non-headless contexts retain their old interface.
Text grouping now records incarnation and drops obsolete groups. This is separate
from the public explicit-Target action API and gesture lease tokens.