Closed alxwrd closed 6 years ago
This addresses issue #3.
The problem was Firefox does not handle commas (,) in an SVG path. See https://stackoverflow.com/questions/12661323/svg-path-tag-does-not-work-on-firefox.
,
This was occuring in makePath() and makeArea() when the string pathD was concatenated to the array result of data.map.
makePath()
makeArea()
pathD
data.map
I've added a .join("") onto the end of result to .map() to turn it back into a string.
.join("")
.map()
Looks good :+1:
Awesome! Thanks @jamesevickery for pointing this out and @alxwrd for the fix!
This addresses issue #3.
The problem was Firefox does not handle commas (
,
) in an SVG path. See https://stackoverflow.com/questions/12661323/svg-path-tag-does-not-work-on-firefox.This was occuring in
makePath()
andmakeArea()
when the stringpathD
was concatenated to the array result ofdata.map
.I've added a
.join("")
onto the end of result to.map()
to turn it back into a string.Before
After
After in Chrome