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

docs: update graph instance methods docs #5203

Merged
merged 1 commit into from
Nov 29, 2023
Merged

docs: update graph instance methods docs #5203

merged 1 commit into from
Nov 29, 2023

Conversation

Aarebecca
Copy link
Contributor

文档走查和格式化

image image

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

| `config` | `any` | The configuration of the shape style, such as size, color, etc. Applicable for drawing temporary shapes instead of copying items, as copying items will directly use the styles of the copied items |

• **Returns**: `DisplayObject`<`any`, `any`\>, the drawn shape object. If copying items, it will return a shape group containing all related shapes.
<img src='https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*VkT7T4Qzt2gAAAAAAAAAAAAADmJ7AQ/original' />
Copy link

Choose a reason for hiding this comment

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

This image is missing a text alternative. This is a problem for people using screen readers.

| `config` | `any` | 图形样式的配置,例如大小、颜色等。适用于绘制临时图形,而不是复制元素,因为复制元素将直接使用被复制元素的样式 |

• **返回值**: `DisplayObject`<`any`, `any`\>,被绘制的图形对象。若为复制元素,则将返回包含所有相关图形的图形分组。
<img src='https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*VkT7T4Qzt2gAAAAAAAAAAAAADmJ7AQ/original' />
Copy link

Choose a reason for hiding this comment

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

This image is missing a text alternative. This is a problem for people using screen readers.

@Aarebecca Aarebecca merged commit a2e59c9 into v5 Nov 29, 2023
2 checks passed
@Aarebecca Aarebecca deleted the docs/graph-methods branch November 29, 2023 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant