Skip to content

feat: Tidy Up + Select Same Fill#63

Merged
Pregum merged 1 commit intomainfrom
feat/arrange-snap-rotation
Apr 23, 2026
Merged

feat: Tidy Up + Select Same Fill#63
Pregum merged 1 commit intomainfrom
feat/arrange-snap-rotation

Conversation

@Pregum
Copy link
Copy Markdown
Owner

@Pregum Pregum commented Apr 23, 2026

Summary

  • Tidy Up: 選択ノードを等間隔の row / column / grid に整列。Command Palette から呼び出し(auto / row / column / grid の 4 コマンド)。auto モードは bbox の縦横比から向きを自動判定。
  • Select Same Fill: 選択ノードと同じ fill を持つ全ノードを一括選択(Selection Colors と連携する操作)。
  • 新規 `utils/tidyUp.ts` は React/状態に依存しない pure function のみ。

Test plan

  • `npm run build`: ✅ 型チェック + ビルド成功
  • `npx vitest run`: ✅ 302 tests passed (23 files) — 新規 14 tests 追加 (tidyUp: 10, findNodesBySameFill: 4)
  • 複数ノードを選択 → Command Palette で "Tidy Up" → 自動で row/column/grid に整う
  • "Tidy Up — Row/Column/Grid" で強制モード切り替えが効く
  • ノードを 1 つ選択 → "Select Same Fill" で同色 fill のノードが全選択される

🤖 Generated with Claude Code

- Tidy Up: 選択ノードを等間隔の row/column/grid に整列。
  auto モードは bbox の縦横比から自動判定。
- Select Same Fill: 選択ノードと同じ fill を持つ全ノードを選択。
- utils/tidyUp: pure function (detectTidyMode, tidyUp)
- tests: 10 tests for tidyUp, 4 tests for findNodesBySameFill

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Pregum Pregum merged commit 2b76b20 into main Apr 23, 2026
1 check passed
@Pregum Pregum deleted the feat/arrange-snap-rotation branch April 23, 2026 06:37
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