[p5.js 2.0+ Bug Report]: Mismatched map() Reference Example
メンテナーはふだん 2 日以内に返信
@j-xsen がすでに取り組んでいます。
2026年10月26日 から。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 87/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript
調査の方向性
例は src/math/calculation.js の772~789行目あたりにあります。map() のリファレンス例を読み、最後の line() 呼び出しを説明されている動作と比較してください。下の線が水平方向に伸びるように呼び出しを変更し、マウスを動かすとリファレンスページに水平線が2本表示されることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- WebGPU
- p5.strands
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
p5.js version
2.3.4
Web browser and version
1.97.57 Chromium: 155.0.8059.80 (Official Build) (64-bit)
Operating system
Windows
Steps to reproduce this
Problem
There is an issue with the documentation for the map function.
Steps:
- Visit the map documentation (https://p5js.org/reference/p5/map/)
- Place mouse over the first canvas
- There is one vertical line and one horizontal line, rather than two horizontal lines.
Snippet:
src/math/calculation.js lines 772-789:
* function setup() {
* createCanvas(100, 100);
*
* describe('Two horizontal lines. The top line grows horizontally as the mouse moves to the right. The bottom line also grows horizontally but is scaled to stay on the left half of the canvas.');
* }
*
* function draw() {
* background(200);
*
* // Draw the top line.
* line(0, 25, mouseX, 25);
*
* // Remap mouseX from [0, 100] to [0, 50].
* let x = map(mouseX, 0, 100, 0, 50);
*
* // Draw the bottom line.
* line(0, 75, 0, x);
* }
line(0, 75, 0, x); should be changed to line(0, 75, x, 75); to properly match the described behavior.
- 主要言語
- JavaScript
- スター
- 24.3k
- フォーク
- 3.9k
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 46
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
processing/p5.js のほかの issue
-
[p5.js 2.0+ Bug Report]: Incorrect isDone assignment in MediaElement.onended() example対応中かも @BhumitSahani が 3 日前に担当しました。 オープンArea:DOM p5.js 2.0+
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
processing/p5.js#9339 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Area:Core p5.js 2.0+
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
processing/p5.js#9319 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Area:WebGL p5.js 2.0+ p5.strands
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
processing/p5.js#9317 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
-
[p5.js 2.0+ Bug Report]: createRadio().disable(false) does not re-enable radio inputs対応中かも @aryanb1906 が 4 日前に担当しました。 オープンArea:DOM Good First Issue p5.js 2.0+
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
processing/p5.js#9316 · コメント 5 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[p5.js 2.0+ Bug Report]: touches[0].x lags one pointer event behind while dragging再び着手できるかも @titanstride が 13 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンArea:Events p5.js 2.0+
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
processing/p5.js#9305 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
processing/p5.js の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
danilogiles/enki-browser#113 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
ux
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
evcc-io/evcc#35605 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
weavefox/awesome-opc#29 ·
メンテナーはふだん 1 日以内に返信