Skip to content

Add canvas rotation hotkeys (SP-012) - #39

Merged
jeffgo10 merged 1 commit into
masterfrom
feat/sp-012-rotation-hotkeys
Aug 3, 2026
Merged

Add canvas rotation hotkeys (SP-012)#39
jeffgo10 merged 1 commit into
masterfrom
feat/sp-012-rotation-hotkeys

Conversation

@jeffgo10

@jeffgo10 jeffgo10 commented Aug 3, 2026

Copy link
Copy Markdown
Owner

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 /stickpak gets toolbar buttons; storefront can pin and optionally add matching UI after publish.

Changes

Packages (@jeffgo10/*)

  • Bump react-canvas-designer 1.0.3 → 1.1.1
  • Add rotateSelectedBy(degrees) handle API (single + multi-select)
  • Shift held while dragging the rotate handle enables Konva rotationSnaps at 45° (tolerance 22.5° so upright is reachable)
  • Keyboard [ / ] rotate 90° CCW / CW
  • Extend Konva test mocks for rotationSnaps / rotationSnapTolerance / forceUpdate

Docs app (apps/docs)

  • Rotate left/right 90° buttons on /stickpak showcase
  • Selection hint text for Shift snap and [ / ]

Docs / Cursor rules / agent tooling

  • Update phase-1.md, engineering-notes.md, and designer pin in ls-foundry-core.mdc
  • README documents new shortcuts and API

Commits

SHA Message
4ce686f Add canvas rotation hotkeys (SP-012) with 45° Shift snap.

Test plan

  • pnpm test --filter=@jeffgo10/react-canvas-designer
  • pnpm run build --filter=@jeffgo10/react-canvas-designer
  • pnpm run dev --filter=@ls-foundry/docs/stickpak
    • Hold Shift while dragging rotate handle → snaps to 45° including
    • Press [ / ] → 90° left/right
    • Toolbar Rotate left/right buttons work with selection
    • Inspect mode ignores rotate shortcuts/buttons

Notes / follow-ups

  • Publish with pnpm run deploy (or CI on merge to master).
  • Storefront: pin @jeffgo10/react-canvas-designer@1.1.1; optional toolbar calling rotateSelectedBy(±90) (shortcuts work from the package once pinned).

Made with Cursor

- 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>
@cursor

cursor Bot commented Aug 3, 2026

Copy link
Copy Markdown

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.

@jeffgo10
jeffgo10 merged commit 213a2c5 into master Aug 3, 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