Commit Graph
43 Commits
Author SHA1 Message Date
Hermes Agent ff2430b6f5 fix: docked window now re-pins on Figma panel resize (drift detect) 2026-09-16 12:49:50 +02:00
Hermes Agent 029806f5e0 fix: floor resize width/height at 1 so Figma validation never sees 0 2026-09-11 14:30:29 +02:00
Hermes Agent a06802a9fc revert: drop minWidth/minHeight (Figma rejects these keys); native floor stays 2026-09-11 14:24:20 +02:00
Hermes Agent 226e75f2c3 fix: set minWidth/minHeight=0 in showUI so resize past Figma default floor 2026-09-11 14:21:05 +02:00
Hermes Agent b39e510098 fix: keep maximize flag across native-drag poll (was overwritten by debounced save) 2026-09-11 14:16:20 +02:00
Hermes Agent f885be7266 feat: persist maximize state so Restore button shows after reopen 2026-09-11 14:10:58 +02:00
Hermes Agent a6d02322f3 fix: persist maximize + corners as free placement (exact size/pos), edges as dock 2026-09-11 13:59:24 +02:00
Hermes Agent fd0c52342f feat: drop plugin-side min window size; let Figma enforce its own limit 2026-09-11 13:49:39 +02:00
Hermes Agent ce20357098 feat: persist window placement across restarts via figma.clientStorage (dock|free, default=center) 2026-09-11 13:46:02 +02:00
Hermes Agent eefdff9620 tweak: side dock bottom inset 70px 2026-09-10 18:03:20 +02:00
Hermes Agent ef89c8abfc feat: side dock leaves 80px bottom inset so Figma panel stays visible 2026-09-10 18:00:00 +02:00
Hermes Agent 05bbcdb474 fix: side dock (left/right) pins to top, not vertically centered 2026-09-10 17:50:26 +02:00
Hermes Agent bb0b01cabc fix: center is pure one-shot (no centerLocked); resize no longer snaps to center 2026-09-10 17:40:14 +02:00
Hermes Agent ee87211f76 feat: corner click in dock sets free axis to 50% viewport (DOCK_HALF), drag still resizes 2026-09-10 16:57:31 +02:00
Hermes Agent ccc38a0561 feat: corner click in edge-dock starts single-axis resize (exit dock); corners/center not dock 2026-09-10 15:41:04 +02:00
Hermes Agent 6624805449 fix: dock position uses real (post-clamp) window size, not requested canon 2026-09-10 13:40:34 +02:00
Hermes Agent 6901c5e0cd fix: manual resize no longer resets on pointerup (canonical vs hold mode) 2026-09-09 20:43:46 +02:00
Hermes Agent 20777fb0de fix: left/top resize — let Figma move window (no explicit reposition, kills jitter) 2026-09-09 19:41:45 +02:00
Hermes Agent a86c3e3152 fix: RESIZE_START takes start size from UI (no window in main thread) 2026-09-09 19:38:22 +02:00
Hermes Agent c8df3b8054 fix: resize anchored at start (no jump) — absolute target from RESIZE_START anchor 2026-09-09 19:36:53 +02:00
Hermes Agent be419351b2 feat: 8 perimeter resize handles (static divs, no .map, typed callbacks) 2026-09-09 19:29:46 +02:00
Hermes Agent b6c0a58071 feat: 8 invisible resize handles on whole perimeter (replace native useWindowResize) 2026-09-09 19:25:38 +02:00
Hermes Agent 8a0bf4d8f3 feat: 8 invisible resize handles on whole perimeter (edges + corners) 2026-09-09 19:19:26 +02:00
Hermes Agent c0e2fe0358 feat: center one-shot but keeps position on manual resize (centerLocked) 2026-09-09 19:13:58 +02:00
Hermes Agent ab6a2e879f feat: edge fix-size editable via manual resize; center one-shot; corners keep size 2026-09-09 19:10:48 +02:00
Hermes Agent 61577b01cd fix: corners only move window, keep size (don't stretch) 2026-09-09 18:59:47 +02:00
Hermes Agent e57e4c18ea feat: center dock = 50% of viewport (w/h) 2026-09-09 18:55:58 +02:00
Hermes Agent 837bdfbfae feat: dock edges fixed-size (left/right=320w full-h, top/bottom=320h full-w), corners full 2026-09-09 18:51:44 +02:00
Hermes Agent a38f7188ee feat: dock buttons stretch window to zone (edge/corner) + reposition; center keeps size 2026-09-09 18:44:30 +02:00
Hermes Agent 5984df1692 fix: account for 38px plugin header in gapB/center.y and vertical dock 2026-09-09 18:33:16 +02:00
Hermes Agent b57cda16ec feat: normalized window position relX/relY relative to viewport (no infinite-canvas coords) 2026-09-09 18:22:29 +02:00
Hermes Agent d29654b8d5 feat: 9-position dock grid (4 corners + 4 edges + center) 2026-09-09 17:54:53 +02:00
Hermes Agent 0d61580acb fix: measure real window size via iframe innerWidth, not requested lastSize (fix gap tautology) 2026-09-09 16:23:12 +02:00
Hermes Agent b2ae4c44d6 feat: maximize window to full viewport (maxViewport = bounds*zoom), clamp drag 2026-09-09 16:05:50 +02:00
Hermes Agent 4228357a35 fix: convert window px size to canvas-units (w/zoom) for dock + gap/center math 2026-09-09 15:50:34 +02:00
Hermes Agent 9f9349efb6 fix: keep docked window pinned to edge across zoom/pan via viewport poll 2026-09-09 15:13:05 +02:00
Hermes Agent dcfb235d06 feat: show derived window data (zoom, viewport, gaps, center)
- main.ts GET_WINDOW_INFO: add zoom, viewport bounds, gaps L/R/T/B, center
  computed from figma.viewport + plugin window geometry
- ui.tsx: render additional readout lines under 🔍 Инфо
2026-09-09 13:18:32 +02:00
Hermes Agent ecbbd5d8c1 feat: show live window x/y/size debug readout inside plugin
- main.ts: track lastSize; GET_WINDOW_INFO handler returns x/y via
  figma.ui.getPosition().canvasSpace (typed as any) + stored width/height
- ui.tsx: WINDOW_INFO listener, '🔍 Инфо' button, render x/y/w/h block
2026-09-09 13:12:17 +02:00
Hermes Agent bc9b2e60e9 feat: window docking buttons (left/center/right) via figma.ui.reposition
- main.ts: add DOCK_WINDOW handler using figma.viewport.bounds + figma.ui.resize/reposition
- ui.tsx: add dock buttons (Left/Center/Right) + keep expand/collapse + drag handle
2026-09-09 13:08:11 +02:00
Hermes Agent f3575e30ee chore: drop size from plugin window title (Figma title bar is not customizable; keep name only) 2026-09-09 13:01:04 +02:00
Hermes Agent 26d391f90a fix: drag works from first attempt + size in window header
- ui.tsx: pass min/max opts to useWindowResize (fixes first-drag bug)
- ui.tsx: move live size to top toolbar (left of expand button)
- main.ts: set figma window title with startup size via showUI({title})
2026-09-09 12:50:35 +02:00
Hermes 6c7be98a82 feat: relaunch button in right panel + drag-resize window
- package.json: add relaunchButtons (runAI) for right-panel shortcut
- main.ts: setRelaunchData + RESIZE_WINDOW handler (figma.ui.resize)
- ui.tsx: useWindowResize native drag handle + expand/collapse toggle
- .gitignore: exclude _reference/ (temp old-plugin copy)
- IDEA.md: commit+push to Gitea is mandatory workflow
2026-09-09 12:38:13 +02:00
Hermes Agent 567ce34285 bootstrap: Hello World Figma plugin skeleton 2026-09-09 11:27:11 +02:00