Skip to content
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

Merged
merged 1 commit into from
Mar 14, 2016
Merged

Port #4173 to master: dashArray in Canvas #4308

merged 1 commit into from
Mar 14, 2016

Conversation

IvanSanchez
Copy link
Member

Allows using dashArray in <canvas> renderers.

@IvanSanchez IvanSanchez added this to the 1.0 milestone Mar 8, 2016
@yohanboniface
Copy link
Member

Worth a unittest?

@IvanSanchez
Copy link
Member Author

@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?

@yohanboniface
Copy link
Member

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…

mourner added a commit that referenced this pull request Mar 14, 2016
Port #4173 to master: dashArray in Canvas
@mourner mourner merged commit d773d6a into master Mar 14, 2016
@mourner mourner deleted the canvas-dasharray branch March 14, 2016 13:22
@mourner
Copy link
Member

mourner commented Mar 14, 2016

Oh, I didn't even notice it was for stable previously...

@gommo
Copy link

gommo commented Mar 23, 2016

We just found out that setLineDash isn't supported on IE10 and below so the code needs to check for that

@IvanSanchez
Copy link
Member Author

@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 dashArray option.

@gommo
Copy link

gommo commented Mar 23, 2016

I'll need to add a change so we don't actually call setLineDash

@IvanSanchez
Copy link
Member Author

@gommo Wait - does IE10 throw an error or something like that?

@gommo
Copy link

gommo commented Mar 23, 2016

Yeah it does!

@IvanSanchez
Copy link
Member Author

@gommo Then we need to fix this again!

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

Successfully merging this pull request may close these issues.

None yet

4 participants