指定组中的 elementFromPoint
在 SVG 文档中,
我可以仅在指定组中使用 elementFromPoint() 吗?
我试图找到占用特定坐标的所有元素。
用于查找直线或圆的交点。
为了执行此操作以及撤消或重做功能,我的 SVG 将每个元素附加到 ID 为 线性增加。
例如在lastest made group和
lastest-1 made group上逐点查找元素。
我还尝试再次将显示属性设置为 none 和 elemetFromPoint,但没有运气。
关于仅从指定组中的点查找元素有什么想法吗?
提前致谢!
in SVG document
can I use elementFromPoint() in only specified group?
I am trying to find all Elements which take up specific coordinate.
for finding line or circle intersections.
to do this and undo or redo function, my SVG append every element to group whose ID is
linearly increase.
such as finding element by point on lastest made group and
lastest-1 made group.
I also tried set display attribute to none and elemetFromPoint again, but have no luck.
any idea about finding element from point in only specified group?
thanks in advanced!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论