Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

clip-path not working #6

Open
fluder opened this issue Oct 30, 2017 · 0 comments
Open

clip-path not working #6

fluder opened this issue Oct 30, 2017 · 0 comments

Comments

@fluder
Copy link

fluder commented Oct 30, 2017

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 - 2
axisWidth + 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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant