Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: グラフのバーをクリックすることで走者のページへ遷移できるようにした #298

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

staticWagomU
Copy link
Contributor

@staticWagomU staticWagomU commented Feb 20, 2024

0006-02-20.18.10.00.mov

動画に残し忘れましたが、10位の人をクリックしても遷移することを確認しています。

if(data.labels === null || data.labels![item.index] === null) return;
const labelText = data.labels![item.index] + '';

const matched = /^\d+\.\s+(\S+)/.exec(labelText);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この部分の正規表現を甘めにしているんですが、厳密にしたほうがいいですか?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tick から取る方法しかないということですよね。であれば、今のままで問題ないと思います!

Copy link
Contributor

@monaqa monaqa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!やはりグラフから直接遷移できるのはいいですね。

@monaqa
Copy link
Contributor

monaqa commented Feb 20, 2024

Svelte の prettier が入ってないことに気づきましたが、それは別 PR で対応しましょう。こちらはマージします。

@monaqa monaqa merged commit 1255406 into vim-jp:main Feb 20, 2024
1 check passed
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