d3 v7.9.0 – d3.pointer() uses createSVGPoint() which is now deprecated

オープン
#320 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@Fil がすでに取り組んでいます。

2025年1月3日 から。

  • #322 @Fil による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
d3, javascript
領域
frontend

調査の方向性

Start by locating d3.pointer() in the d3-selection source and checking how it currently uses createSVGPoint(). Review the linked pull request #322 for work already underway and compare its approach with the issue’s suggestion to use DOMPoint or DOMPointReadOnly. Done means the pointer calculation no longer depends on the deprecated API and the relevant tests pass.

索引モデルが issue の本文から書いたものです。

説明

The function createSVGPoint() is deprecated according to https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint.

It doesn't throw any errors but it may be best to refactor d3.pointer to use DOMPoint or DOMPointReadOnly for future browser support.

主要言語
JavaScript
スター
571
フォーク
283
平均マージ
7時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

d3/d3-selection のほかの issue

d3/d3-selection の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。