Add canvas rotation hotkeys (SP-012) - #39
Merged
Merged
Conversation
- Add rotateSelectedBy API and [ / ] for 90° CCW/CW - Snap rotate-handle to 45° while Shift is held (22.5° tolerance so 0° is reachable) - Wire docs /stickpak rotate buttons; bump designer to 1.1.1 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
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
Implements StickPak kanban SP-012: Shift+drag 45° rotation snap and 90° rotate left/right for selected stickers in
@jeffgo10/react-canvas-designer(1.1.1). Docs/stickpakgets toolbar buttons; storefront can pin and optionally add matching UI after publish.Changes
Packages (
@jeffgo10/*)react-canvas-designer1.0.3 → 1.1.1rotateSelectedBy(degrees)handle API (single + multi-select)rotationSnapsat 45° (tolerance 22.5° so upright 0° is reachable)[/]rotate 90° CCW / CWrotationSnaps/rotationSnapTolerance/forceUpdateDocs app (
apps/docs)/stickpakshowcase[/]Docs / Cursor rules / agent tooling
phase-1.md,engineering-notes.md, and designer pin inls-foundry-core.mdcCommits
4ce686fTest plan
pnpm test --filter=@jeffgo10/react-canvas-designerpnpm run build --filter=@jeffgo10/react-canvas-designerpnpm run dev --filter=@ls-foundry/docs→/stickpak[/]→ 90° left/rightNotes / follow-ups
pnpm run deploy(or CI on merge tomaster).@jeffgo10/react-canvas-designer@1.1.1; optional toolbar callingrotateSelectedBy(±90)(shortcuts work from the package once pinned).Made with Cursor