Skip to content

Conversation

yvonneyx
Copy link
Contributor

@yvonneyx yvonneyx added the OSCP label Mar 19, 2025
Copy link

Walkthrough: 本次PR对网格线插件文档进行了全面改造,增加了详细的使用说明和配置示例,提升了文档的可读性和实用性。

Changes:

文件 描述
packages/site/common/api/plugins/grid-line.md 更新了插件配置,增加了key属性以支持动态更新。
packages/site/docs/manual/plugin/build-in/GridLine.zh.md 重写了网格线插件文档,增加了概述、使用场景、基本用法、配置项和代码示例等内容。

@@ -6,7 +6,7 @@ createGraph(
edge: { style: { stroke: '#8b9baf' } },
layout: { type: 'force' },
behaviors: ['drag-canvas'],
plugins: [{ type: 'grid-line', size: 30 }],
plugins: [{ type: 'grid-line', key: 'grid-line', size: 30 }],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition of the key property to the plugin configuration allows for dynamic updates, which is a functional improvement. Ensure that this change is compatible with existing configurations.

@yvonneyx yvonneyx merged commit 9c53e95 into v5 Mar 19, 2025
1 check passed
@yvonneyx yvonneyx deleted the docs/plugin branch March 19, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Docs]: 改造文档「插件 - 内置插件 - GridLine 网格线」
2 participants