Skip to content

feat(renderer): a long-press tells the host where the card is, and the library draws it alone - #103

Merged
LeslieOA merged 1 commit into
developfrom
feat/long-press-preview
Nov 1, 2026
Merged

LeslieOA merged 1 commit into
developfrom
feat/long-press-preview

Conversation

@LeslieOA

@LeslieOA LeslieOA commented Nov 1, 2026

Copy link
Copy Markdown
Member

Summary

  • onNodeLongPress(node, press): press has at, the card's frame on screen, and contents (a group with what's inside it, and the edges between). With a host's menu, the canvas doesn't reveal an image's name itself.
  • CanvasNodePreview draws those nodes on their own, recorded as the canvas records itself (images, SVGs, text), sized by canvasNodePreviewSize.
  • Exports resolveFileUri and isImageFile for a host's actions.
  • Tests: nodeContents (2 new, 205 in all).

Workspace uses it for the system's context menu on iOS, with a haptic.

🤖 Generated with Claude Code

…e library draws it alone

onNodeLongPress now gets the card's frame on screen and what a preview
of it draws (a group with what's inside it, and the edges between),
for a host that shows the system's context menu with the card lifted.
With a host's menu, the canvas no longer reveals an image's name
itself: the menu says it.

CanvasNodePreview draws those nodes on their own, recorded as the
canvas records itself, sized by canvasNodePreviewSize. resolveFileUri
and isImageFile are exported for a host's actions (copy, share).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LeslieOA
LeslieOA merged commit 7a05aef into develop Nov 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant