Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📖 Document Improvement Project 🔨 #6463

Open
Aarebecca opened this issue Nov 1, 2024 · 8 comments
Open

📖 Document Improvement Project 🔨 #6463

Aarebecca opened this issue Nov 1, 2024 · 8 comments

Comments

@Aarebecca
Copy link
Contributor

In order to help G6 create more user-friendly and easily accessible documentation, we hereby launch this project.
For those community users who have put forward important suggestions and made outstanding contributions during the improvement process of the G6 documentation, we will send AntV peripheral gifts 🎁.

You can participate in the following ways:

  1. Reply under this Issue with all kinds of problems you have found or think exist in the official documentation of G6 5.0.

For example, any situation where you think the G6 5.0 documentation is worthy of improvement, such as unclear expression, missing content, errors, etc.

  1. Contribute a PR for G6 for the problems or improvement points in the documentation and associate it with this Issue.

为了助力 G6 打造出更易于上手操作以及便捷查阅的文档,我们特此启动此项计划。
对于那些在 G6 文档改进过程中提出重要建议、做出突出贡献的社区用户,我们将送上 AntV 周边礼品🎁。

你能够通过以下方式参与其中:

  1. 在该 Issue 下回复你所发现或者认为 G6 5.0 官方文档中存在的各类问题。

例如表述不够清晰、内容有所缺失、出现错误等任何你觉得 G6 5.0 文档有值得改进之处的情况。

  1. 针对文档中存在的问题或者改进点,为 G6 贡献 PR,并与该 Issue 相关联。
@Aarebecca Aarebecca pinned this issue Nov 1, 2024
@Aarebecca Aarebecca changed the title 📖 Document Improvement Project 📖 Document Improvement Project 🔨 Nov 1, 2024
@Rey-Wang
Copy link
Contributor

Rey-Wang commented Nov 2, 2024

求一份自定义节点的详细代码实例

@Aarebecca
Copy link
Contributor Author

求一份自定义节点的详细代码实例

可以参考:自定义节点

@Rey-Wang
Copy link
Contributor

Rey-Wang commented Nov 9, 2024

求一份自定义节点的详细代码实例

可以参考:自定义节点

需要一个类似于生命周期函数的列表,现在写自定义节点很难知道应该覆盖哪个函数

@AmorDiamond
Copy link

请问树形布局下,有没有方法能控制默认展开的节点,不需要全部展开。以及控制相邻节点只能同时展开一个。 @Aarebecca

@Aarebecca
Copy link
Contributor Author

求一份自定义节点的详细代码实例

可以参考:自定义节点

需要一个类似于生命周期函数的列表,现在写自定义节点很难知道应该覆盖哪个函数

参考:https://g6.antv.antgroup.com/api/reference/g6/elementhooks

@Aarebecca
Copy link
Contributor Author

以及控制相邻节点只能同时展开一个

在数据中配置 collapsed 即可

@liuyonghu
Copy link

不会真的感觉文档写的一点问题都没有吧,怀疑都没有人审稿。
去看看这里的 type ,怎么解释的,然后举一反三去查吧。
https://g6.antv.antgroup.com/api/reference/g6/nodeoptions

@veaba
Copy link

veaba commented Dec 9, 2024

老实说,文档门槛实在太高,压根不知道找到想使用的示例。

建议不要站在开发者的角度去怎么写,而站在初学者角度,看怎么降低学习门槛会比较重要,不要指望用户都达到开发者的知识水平哈。

举个实例:

1、想要找到 框选的 node 的事件,于是找到 https://g6.antv.antgroup.com/api/behaviors/brush-select#api ,问题来了,key 的枚举是什么?给个 link 去查询一下吧,或者 demo 中提供下,console 代码也行呀,对于新手,想在几分钟内上手,去学习几年开发的东西,想来也是挺难的。

2、挺认可这些酷炫的示例,就是上手文档门槛太高,再花费半小时,再找不到想要的功能的使用方法,不得不考虑使用的图表库啦

3、文档地址在这里:https://github.com/antvis/G6/tree/v5/packages/site ,自己动手

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants