c3
c3 copied to clipboard
Make clip-path configurable (relative/absolute)
I have some problems with converting generated SVG to PDF. One of them is that clip-path attributes of g's are absolute. Can you please provide an option for enabling/disabling relative urls?
I found commit 262672f for Issue #134 and propose to make it like this:
function getClipPath(id) {
var relative = $$.config.relativeClipPath || window.navigator.appVersion.toLowerCase().indexOf("msie 9.") >= 0;
return "url(" + (relativeClipPath ? "" : document.URL.split('#')[0]) + "#" + id + ")";
}
Cheers!
+1
Having the same problem when using C3 by loading the HTML document with res:// protocol (compiled in EXE).
Perhaps there is an alternative solution for 5813ff389fa08f878165d1c6375d817053b6917e, so that there must not be an absolute URL at all.
+1
+1
+1