Commit e1e2daea by Tomas Alabes

Merge pull request #833 from TheCloudlessSky/stroke-dasharray-fix

Allow unsetting the stroke-dasharray in VML. Fixes #617.
parents b003c541 007ee4f4
...@@ -306,7 +306,7 @@ window.Raphael && window.Raphael.vml && function(R) { ...@@ -306,7 +306,7 @@ window.Raphael && window.Raphael.vml && function(R) {
params["stroke-linejoin"] && (stroke.joinstyle = params["stroke-linejoin"] || "miter"); params["stroke-linejoin"] && (stroke.joinstyle = params["stroke-linejoin"] || "miter");
stroke.miterlimit = params["stroke-miterlimit"] || 8; stroke.miterlimit = params["stroke-miterlimit"] || 8;
params["stroke-linecap"] && (stroke.endcap = params["stroke-linecap"] == "butt" ? "flat" : params["stroke-linecap"] == "square" ? "square" : "round"); params["stroke-linecap"] && (stroke.endcap = params["stroke-linecap"] == "butt" ? "flat" : params["stroke-linecap"] == "square" ? "square" : "round");
if (params["stroke-dasharray"]) { if ("stroke-dasharray" in params) {
var dasharray = { var dasharray = {
"-": "shortdash", "-": "shortdash",
".": "shortdot", ".": "shortdot",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -7433,7 +7433,7 @@ ...@@ -7433,7 +7433,7 @@
params["stroke-linejoin"] && (stroke.joinstyle = params["stroke-linejoin"] || "miter"); params["stroke-linejoin"] && (stroke.joinstyle = params["stroke-linejoin"] || "miter");
stroke.miterlimit = params["stroke-miterlimit"] || 8; stroke.miterlimit = params["stroke-miterlimit"] || 8;
params["stroke-linecap"] && (stroke.endcap = params["stroke-linecap"] == "butt" ? "flat" : params["stroke-linecap"] == "square" ? "square" : "round"); params["stroke-linecap"] && (stroke.endcap = params["stroke-linecap"] == "butt" ? "flat" : params["stroke-linecap"] == "square" ? "square" : "round");
if (params["stroke-dasharray"]) { if ("stroke-dasharray" in params) {
var dasharray = { var dasharray = {
"-": "shortdash", "-": "shortdash",
".": "shortdot", ".": "shortdot",
......
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