Commit 5d7b3235 by Tomas Alabes

Merge pull request #962 from TheCloudlessSky/fix-svg-empty-stroke-dasharray

Use 'none' instead of '0' for 'stroke-dasharray'.
parents a29d980d fde58752
......@@ -280,8 +280,6 @@ window.Raphael && window.Raphael.svg && function(R) {
}
},
dasharray = {
"": [0],
"none": [0],
"-": [3, 1],
".": [1, 1],
"-.": [3, 1, 1, 1],
......@@ -305,6 +303,9 @@ window.Raphael && window.Raphael.svg && function(R) {
}
$(o.node, {"stroke-dasharray": dashes.join(",")});
}
else {
$(o.node, {"stroke-dasharray": "none"});
}
},
setFillAndStroke = function (o, params) {
var node = o.node,
......@@ -985,7 +986,7 @@ window.Raphael && window.Raphael.svg && function(R) {
o ry (number) vertical radius of the ellipse
o src (string) image URL, only works for @Element.image element
o stroke (string) stroke colour
o stroke-dasharray (string) [“”, “`-`”, “`.`”, “`-.`”, “`-..`”, “`. `”, “`- `”, “`--`”, “`- .`”, “`--.`”, “`--..`”]
o stroke-dasharray (string) [“”, “none”, “`-`”, “`.`”, “`-.`”, “`-..`”, “`. `”, “`- `”, “`--`”, “`- .`”, “`--.`”, “`--..`”]
o stroke-linecap (string) [“`butt`”, “`square`”, “`round`”]
o stroke-linejoin (string) [“`bevel`”, “`round`”, “`miter`”]
o stroke-miterlimit (number)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6095,8 +6095,6 @@
}
},
dasharray = {
"": [0],
"none": [0],
"-": [3, 1],
".": [1, 1],
"-.": [3, 1, 1, 1],
......@@ -6120,6 +6118,9 @@
}
$(o.node, {"stroke-dasharray": dashes.join(",")});
}
else {
$(o.node, {"stroke-dasharray": "none"});
}
},
setFillAndStroke = function (o, params) {
var node = o.node,
......@@ -6800,7 +6801,7 @@
o ry (number) vertical radius of the ellipse
o src (string) image URL, only works for @Element.image element
o stroke (string) stroke colour
o stroke-dasharray (string) [“”, “`-`”, “`.`”, “`-.`”, “`-..`”, “`. `”, “`- `”, “`--`”, “`- .`”, “`--.`”, “`--..`”]
o stroke-dasharray (string) [“”, “none”, “`-`”, “`.`”, “`-.`”, “`-..`”, “`. `”, “`- `”, “`--`”, “`- .`”, “`--.`”, “`--..`”]
o stroke-linecap (string) [“`butt`”, “`square`”, “`round`”]
o stroke-linejoin (string) [“`bevel`”, “`round`”, “`miter`”]
o stroke-miterlimit (number)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment