Repository navigation
feat(renderer): a long-press tells the host where the card is, and the library draws it alone - #103
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
onNodeLongPress(node, press):presshasat, the card'sframeon screen, andcontents(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.CanvasNodePreviewdraws those nodes on their own, recorded as the canvas records itself (images, SVGs, text), sized bycanvasNodePreviewSize.resolveFileUriandisImageFilefor a host's actions.nodeContents(2 new, 205 in all).Workspace uses it for the system's context menu on iOS, with a haptic.
🤖 Generated with Claude Code