d3-canvas-transition icon indicating copy to clipboard operation
d3-canvas-transition copied to clipboard

clip-path not working

Open fluder opened this issue 6 years ago • 0 comments

I have code like this: let plot = visibleArea .append("g") .attr("clip-path", "url(#clip)"); visibleArea .append("g") .append("clipPath") .attr("id", "clip") .append("rect") .attr("x", margin) .attr("y", margin) .attr("width", width - margin - 2axisWidth + 5) .attr("height", height - margin - 2axisWidth + 5);

I've found that it doesn't work when I use d3-canvas-transition and rendering to canvas.

Can it be fixed? Or maybe there is some workaround for this problem?

fluder avatar Oct 30 '17 15:10 fluder