[Feature] Mark states: geometry keys (scale, translate, arc angles and radii)
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 42/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ệ
- d3, typescript
- Lĩnh vực
- data-visualization
Hướng nghiên cứu
Read packages/charts-core/src/types.ts and packages/charts-core/src/mark-state.ts, then trace how state transitions apply and tween style values for area and polar marks. Check the polar mark implementation and related state tests to identify the geometry paths involved. Done means the proposed scale and translate keys work for area-kind marks, polar geometry keys are supported, and state transitions tween them.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Version: @tanstack/charts 1.1.0 (57774e1). Split from #186 (comment section E) and #194 (section D) so it can be closed on its own; it also covers what remained of #126 after polar states shipped.
Common hover effects (an arc that grows 3%, a radar polygon at 1.05x, a funnel segment that pops) cannot be written as states; they need a custom spring on renderer-owned DOM.
What exists
ChartMarkStateStylehasr(dot),radiusandinset(bar, rect) anddx,dy,rotate(text), per the per-mark picks (types.ts:176-260, applied in mark-state.ts:205-235).- Marks that render as
areanodes (radialArc, sunburst sectors,areaY) have no geometry key at all (ChartAreaStateStyleis paint only), and no mark has a scale or translate key. - The group-states doc says the same: "Group states support paint; geometry properties such as dot radius and text rotation apply only to their corresponding leaves" (custom-extensions.md:221-223).
- Polar marks accept
states(polar.ts:229-230, polar.md:52-60), butChartMarkStateStylehas nostartAngle,endAngle,innerRadiusorouterRadius.
Ask
Add an optional scale (about the node's own centre or a given origin) and translate to ChartMarkStateStyle for area-kind marks, and for polar arcs innerRadius/outerRadius or startAngle/endAngle, resolved in applyStateStyle and tweened by the state transition.
Example (proposed API; outerRadius is the new key):
radialArc(rows, {
startAngle: 'start', endAngle: 'end', innerRadius: 60, outerRadius: 80,
states: [{ when: { focus: 'primary' }, style: { outerRadius: 84 }, transition: { type: 'spring', stiffness: 400, damping: 30 } }],
})
Read from source, not run.
Related: #186 (cost of state changes), #194 (arc motion), #126 (polar states).
- Ngôn ngữ chính
- TypeScript
- Star
- 870
- Fork
- 57
- Merge trung bình
- 11 giờ 58 phút
- Pull request đã merge (30 ngày)
- 18
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TanStack/charts
-
[Perf] Canvas layer composition is quadratic: splitRenderLayers re-copies the node array per nodeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Focus guides: `url(#id)` paints ignore `idPrefix`Có thể đã có người làm @getdownandcode đã nhận 37 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
TanStack/charts#211 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add reverse options to waffleY and waffleXCó thể đã có người làm @tannerlinsley đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của TanStack/charts
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fb55/htmlparser2#2579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue needs-review
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add Module DB RulesĐang mởdocumentation public
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
midnightntwrk/umbradb#65 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area/channels kind/bug priority/medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nanocoai/nanoclaw#4501 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docker images: plain X.Y.Z tag (e.g. 7.2.3) is never updated after the initial release buildĐang mởneeds verification
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 13 ngày