矢印ラインを描画するcanvasツール - #90
Draft
fnobi wants to merge 6 commits into
Draft
Conversation
クリックした点を順に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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.