Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Offset for tips

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞

調査の方向性

Issue ではファイルやテストは指定されていません。まず tooltip の配置と anchor、dx、dy の処理を追跡します。完了の条件は、tooltip の anchor が変化しても正しい状態を保つ動的なオフセットをサポートし、各方向への移動をカバーすることです。

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

説明

enhancement

By default, Plot positions tooltips automatically, changing the anchor so that the tooltip always remains within the canvas.

The tooltip is always positioned in the center of the element it is attached to.
In some cases, it is desired that the position of the tooltip has an offset. However, because the anchor is changing depending where the tooltip is rendered, offset values dy and dx can't be used statically, as this value would need to be positive, negative or 0 depending on the anchor position.

The example below illustrates how the tooltip is overlapping the text of a data point.
In some cases the tooltip would need to be moved up/down or left / right.

An additional parameter dOffset would be handy for dynamic positioning.

The parameters anchor and dy/dx can't be functions, therefor it is impossible to adjust these values at the moment.

image

主要言語
HTML
スター
5.4k
フォーク
250
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

observablehq/plot のほかの issue

observablehq/plot の issue をすべて見る

似ている issue

Data Visualization の issue をもっと見る

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

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