Open ty0x2333 opened 2 years ago
I use Macaw for SVG rendering.
I have the same problem as #766
I need to dynamically modify the style by class. But there is no way to get nodes by class.
class
SVGParser currently only parses id as a Node Tag. This Pull Request parses class as a Node Tag as well.
id
This way, the node of the specified class can be found by the node.nodesBy(tag:) method without breaking the original design.
node.nodesBy(tag:)
I use Macaw for SVG rendering.
I have the same problem as #766
I need to dynamically modify the style by
class
. But there is no way to get nodes byclass
.SVGParser currently only parses
id
as a Node Tag. This Pull Request parsesclass
as a Node Tag as well.This way, the node of the specified class can be found by the
node.nodesBy(tag:)
method without breaking the original design.