circosJS icon indicating copy to clipboard operation
circosJS copied to clipboard

Swap <div> for <svg>?

Open russellbits opened this issue 6 years ago • 3 comments

I use circos.js as a smaller part of a large SVG construction. I cannot get circos to draw to an <svg> element despite the fact that <svg> elements can contain more <svg> elements. Since Circos.js is only looking for an "id" attribute, what is keeping it from using an <svg id="circos"> kind of tag as opposed to a <div>?

russellbits avatar Jan 22 '18 19:01 russellbits

Thanks for reporting this issue. You're right. Could you propose a pull request to fix it? Otherwise I might fix it one of these days.

nicgirault avatar Jan 24 '18 07:01 nicgirault

I'll create a pull request. I think I can see where some changes need to be made. However, you don't have a webpack-dev-server or an express engine in your repository. How do you test your demo/ without a server—or do you just use Apache?

russellbits avatar Jan 25 '18 23:01 russellbits

Any updates on this issue?

Apparently using an SVG as a container used to work on v2.0.0, but stopped working after v2.0.4 (inclusive).

almeidaxan avatar Nov 08 '18 23:11 almeidaxan