canvas-website/src
Jeff Emmett 678df2bbca fix: properly reset pin state to prevent shape jumping on re-pin
When pinning a shape again after unpinning, leftover state from the
previous session was causing the shape to jump/resize unexpectedly.

Changes:
- Add clearPinState() helper to reset all refs and cancel animations
- Add cleanShapeMeta() helper to remove all pin-related meta properties
- Clear all state immediately when pinning starts (before setting new state)
- Clear refs immediately when unpinning (not in setTimeout)
- Remove pinnedAtZoom from meta cleanup (legacy from CSS scaling)
- Don't call updatePinnedPosition() on pin start - shape is already
  at correct position, only need to listen for future camera changes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 19:57:21 -05:00
..
automerge feat: improve social network presence handling and cleanup 2025-12-15 00:01:28 -05:00
collections implemented collections and graph layout tool 2025-07-29 14:52:57 -04:00
components fix: remove CSS transform scaling from pinned shapes 2025-12-16 12:11:45 -05:00
config automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
constants final update fix old data conversion 2025-11-10 15:38:53 -08:00
context perf: optimize bundle size with lazy loading and dependency removal 2025-12-15 18:59:52 -05:00
css feat: add Drawfast tool, improve share UI, and various UI enhancements 2025-12-15 00:03:12 -05:00
graph automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
hooks fix: properly reset pin state to prevent shape jumping on re-pin 2025-12-16 19:57:21 -05:00
lib perf: optimize bundle size with lazy loading and dependency removal 2025-12-15 18:59:52 -05:00
open-mapping fix: enable open-mapping module with TypeScript fixes 2025-12-07 11:48:49 -08:00
propagators feat: fix Holon shape H3 validation + offline persistence + geometry error handling 2025-11-29 21:36:02 -08:00
public feat: update mulTmux terminal tool and improve shape utilities 2025-11-26 04:08:08 -08:00
routes feat: add MycroZine Generator shape with 5-phase workflow 2025-12-15 19:35:28 -05:00
shapes feat: add MycroZine Generator shape with 5-phase workflow 2025-12-15 19:35:28 -05:00
slides slidedeck shape installed, still minor difficulty in keyboard arrow transition between slides (last slide + wraparound) 2025-01-23 14:14:04 +01:00
tools feat: add MycroZine Generator shape with 5-phase workflow 2025-12-15 19:35:28 -05:00
types refactor: remove OddJS dependency and fix Automerge sync 2025-11-16 20:19:02 -07:00
ui refactor: reorder context menu and remove Collections 2025-12-15 19:49:35 -05:00
utils feat: add Drawfast tool, improve share UI, and various UI enhancements 2025-12-15 00:03:12 -05:00
App.tsx perf: optimize bundle size with lazy loading and dependency removal 2025-12-15 18:59:52 -05:00
CmdK.tsx feat: fix Holon shape H3 validation + offline persistence + geometry error handling 2025-11-29 21:36:02 -08:00
GestureTool.ts everything working in dev 2025-11-10 11:06:13 -08:00
default_gestures.ts automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
gestures.ts add in gestures and ctrl+space command tool (TBD add global LLM) 2025-07-29 16:02:51 -04:00
prompt.ts everything working in dev 2025-11-10 11:06:13 -08:00
snapshot.json everything working in dev 2025-11-10 11:06:13 -08:00
ui.tsx everything working in dev 2025-11-10 11:06:13 -08:00
vite-env.d.ts chore: exclude open-mapping from build, fix TypeScript errors 2025-12-05 12:16:29 -08:00