-
Notifications
You must be signed in to change notification settings - Fork 199
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
给 Group 增加 findByClassName 方法 #301
Comments
dengfuping
added a commit
that referenced
this issue
Dec 10, 2019
/**
* 根据 name 查找元素列表
* @param {string} name 元素名称
* @return {IElement[]} 元素
*/
findAllByName(name: string): IElement[];
|
dengfuping
added a commit
that referenced
this issue
Dec 10, 2019
14 tasks
dengfuping
added a commit
that referenced
this issue
Dec 10, 2019
dengfuping
added a commit
that referenced
this issue
Dec 10, 2019
感觉不如直接提供 querySelector 啊😂 |
|
openwayne
pushed a commit
to openwayne/g
that referenced
this issue
Jan 18, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
在 addShape 时 attrs 中有一个 string 类型的属性 className。可以通过 group.findByClassName('classnamexxx') 找到对应的 shape。
What does the proposed API look like?
API
USAGE
The text was updated successfully, but these errors were encountered: