-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port #4173 to master: dashArray in Canvas #4308
Conversation
Worth a unittest? |
@yohanboniface This is a graphical thing - in order to do unit tests for this we would need to do like Mapnik does, and compare screenshots to reference screenshots. Bit of an undertaking right now? |
Was just thinking about testing that the attributes are on the DOM element. But maybe that would be like testing browser Canvas implementation at the end… |
Port #4173 to master: dashArray in Canvas
Oh, I didn't even notice it was for stable previously... |
We just found out that setLineDash isn't supported on IE10 and below so the code needs to check for that |
@gommo Is there any workaround for IE10? According to https://msdn.microsoft.com/en-us/library/dn265063%28v=vs.85%29.aspx , it doesn't seem like it. We might just need to note this down in the API docs for the |
I'll need to add a change so we don't actually call setLineDash |
@gommo Wait - does IE10 throw an error or something like that? |
Yeah it does! |
@gommo Then we need to fix this again! |
Allows using
dashArray
in<canvas>
renderers.