[Feature] `fillOpacity` and `strokeOpacity` as per-datum channels, and `fill` on `rect`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with the channel definitions in packages/charts-core/src/rect.ts, bar.ts and dot.ts, then trace how marks pass visual channels into rendering and motion updates. Compare rect with barY and barX to identify the relevant types and tests. Done when per datum fillOpacity and strokeOpacity work on all four marks and rect accepts a per datum fill channel.
索引モデルが issue の本文から書いたものです。
説明
Version: @tanstack/charts 1.5.0 (b236dae).
A mark cannot draw its data at different opacities.
fillOpacityandstrokeOpacityare numbers onrect,barY,barXanddot(rect.ts:48, bar.ts:70, dot.ts:52).fillis aVisualChannelon bars but a constant onrect(bar.ts:69, rect.ts:47).- Mark
statestake a per-datumfillOpacity, but wait while data motion is active (motion.md:77), so they never apply in a chart that updates on every frame.
Use case: dimming the marks outside a range while the range is dragged.
The workaround is one mark for each datum:
marks: rows.map((row) =>
rect([row], { id: `bar-${row.key}`, x1: 'x1', x2: 'x2', y1: 'y1', y2: 'y2', key: 'key', fillOpacity: row.opacity }),
)
The opacity tweens, but each update costs up to twice as much. Median synchronous host.update under motion(), headless Chromium 153, values changing and nothing else:
| Bars | One mark | One mark for each bar |
|---|---|---|
| 48 | 1.8 ms | 2.4 ms |
| 192 | 7.1 ms | 13.1 ms |
| 768 | 57.4 ms | 116.4 ms |
Ask
fillOpacityasVisualChannel<TDatum, number>onrect,barY,barXanddot, andstrokeOpacitylikewise.fillasVisualChannel<TDatum, string>onrect, as bars have.
- 主要言語
- TypeScript
- スター
- 870
- フォーク
- 57
- 平均マージ
- 11時間 58分
- マージ済み PR(30日)
- 18
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TanStack/charts のほかの issue
-
[Perf] Canvas layer composition is quadratic: splitRenderLayers re-copies the node array per nodeオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
[Bug] Focus guides: `url(#id)` paints ignore `idPrefix`対応中かも @getdownandcode が 37 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TanStack/charts#211 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Add reverse options to waffleY and waffleX対応中かも @tannerlinsley が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
TanStack/charts の issue をすべて見る
似ている issue
-
inference/go type/feature
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/opencode#65148 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
truapi-release
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
paritytech/product-sdk#529 ·
メンテナーはふだん 1 日以内に返信
-
Add: Mansudae TVオープンapproved check:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
devlikeapro/waha#2369 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bigbluebutton/bigbluebutton#26638 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信