Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Feature] brushX: a transient drag-range mode

Đang mở
#198 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
data-visualization

Hướng nghiên cứu

Start in packages/charts-core/src/interaction-brush.ts: the controlled range option (around lines 56-66), the always-built start and end handles (lines 216 and 226), and the blank-click zero-width commit (lines 408-421). The new opt-in mode needs a design decision first, since the option shape and its interaction with pending PR #162 are unsettled. Done means preview events fire during drag, one commit fires on release, and the range resets on pointer leave or cancel.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

A line or area chart should keep hover tooltip and crosshair, and also let the user press-drag to get an unsnapped x range. The range should exist only while the button is held. brushX cannot do this: its range is persistent and has handles.

Expected

An opt-in mode such as { persistent: false, handles: false }: preview events while dragging, one commit on release, then the range resets (also on pointer leave or cancel). Idle hover can use hover: 'passthrough' once #162 lands.

The docs could also link the existing application-owned route (pointer: false with interaction.resolvePointer and setControlledFocus) from the brush docs (interactions-and-selections.md:447-451, interactions-and-selections.md:370-374).

Related

PR #162 fixes hover focus being cleared while brushX is mounted. Nothing covers the transient mode.

Ngôn ngữ chính
TypeScript
Star
819
Fork
49
Merge trung bình
4 giờ 40 phút
Pull request đã merge (30 ngày)
16

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TanStack/charts

Tất cả issue của TanStack/charts

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.