Skip to content

矢印ラインを描画するcanvasツール - #90

Draft
fnobi wants to merge 6 commits into
mainfrom
claude/session-v1x8dd
Draft

矢印ラインを描画するcanvasツール#90
fnobi wants to merge 6 commits into
mainfrom
claude/session-v1x8dd

Conversation

@fnobi

@fnobi fnobi commented Aug 25, 2026

Copy link
Copy Markdown
Owner

No description provided.

claude added 6 commits August 25, 2026 06:32
クリックした点を順にline状に接続し、border-imageのように
矢印画像をセグメント方向へタイル状に繰り返し描画する。
添付の矢印画像は直接取得できないため、同じ意匠の仮アセット
(src/asset/arrow-line/arrow-tile.svg)で代替している。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CpW56yMnmiTNUZg1RuHnKm
tileLength を56→112にし、同じ長さの線上に描画される矢印の数を
半分にした。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CpW56yMnmiTNUZg1RuHnKm
矢印画像は伸縮させずに固定サイズで描画し、タイル間の空白(間隔)を
スライダーで変更できるようにした。以前のtileLengthを引き伸ばして
密度を下げる実装は矢印が変形してしまうため廃止。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CpW56yMnmiTNUZg1RuHnKm
各セグメントの矢印タイルの下地として、アルファ50%の赤色で
帯状に塗りつぶすようにした。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CpW56yMnmiTNUZg1RuHnKm
各点を一本のパスでつなぎ、lineJoin: round のstrokeで下地を描画する
ことで、セグメントの結合部分の汚れを解消した。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CpW56yMnmiTNUZg1RuHnKm
見た目の微調整ができるよう、stepを1から0.1に変更した。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CpW56yMnmiTNUZg1RuHnKm
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hinagata-next Ready Ready Preview Aug 25, 2026 7:18am

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.

2 participants