antvis / antvis/G2

[Feat]: 增加 document 相关 API

Open
#6,865 0 comments 0 reactions 0 assignees View on GitHub
feature 💡 OSCP
Dominant language
TypeScript
Stars
12.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Describe the feature / 功能描述

1. 通过 chart 实例获取 G 的 document
2. 文档中增加 G 的 document 的相关 API 和使用
3. 渲染画布中的元素,classname 都要规范使用

可以解决大量自定义场景,通过数据去筛选过滤出元素,获取元素的位置、监听元素的事件,然后做一些自定义绘制或者操作。

![Image](https://github.com/user-attachments/assets/86a5b90f-afc4-4e61-b045-def77e6d8a85)

### Are you willing to contribute? / 是否愿意参与贡献?

✅ Yes / 是

Contributor guide

Open the contributing guide

Research direction

Start by locating how a chart instance exposes G's document and review the existing API documentation. Then identify the documentation and rendering-classname areas mentioned in the issue. Done means the document access and usage are documented, and rendered elements use consistent classnames.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.