S
S
Sergey Zhukov2015-11-17 11:47:19
JavaScript
Sergey Zhukov, 2015-11-17 11:47:19

Which solution works best with SVG?

Welcome all!
There is a purely theoretical question. I found such a feature in Jquery , it does not know how (or knows how, but poorly) to work with SVG elements . For example, to assign a class to a g or path element with addClass/toggleClass , one has to work "like text", at the attribute level with the attr
method. Is there a better solution for manipulating things like this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Adamos, 2015-11-17
@Adobe

jQuery SVG and you work with SVG giblets just like any other DOM object on the page.

A
Andrey Dyrkov, 2015-11-17
@VIKINGVyksa

d3.js library. Consider an analog of jquery, also works with the DOM, but focused on data visualization.

K
Konstantin Kitmanov, 2015-11-17
@k12th

d3 is great at manipulating SVG elements. You can probably pull out only the part responsible for working with SVG and not load the rest.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question