jeudi 15 octobre 2020

How do you access/iterate through the child elements of a group in SVG.js

I'm using the SVG.js library, I have a group created with the draw.group() function and I'd like to apply attributes to every element in the group. I've tried accessing the group.children and group.childNodes directly, tried using a group.forEach(function(){}); loop. Can't figure it out and couldn't find anything in the docs.

On that note, I find the docs somewhat lacking and certainly in no danger verbosity...




Aucun commentaire:

Enregistrer un commentaire