1
var view = Raphael(10, 50, 800, 600); 
var testLine = view.path("M343,56 L343,560 Z");  // A simple straight line.
testLine.attr({stroke:"gold"}); 
testLine.attr({"stroke-width":25.0});
testLine.attr({"stroke-linecap":"round"});  // No linecap!

linecap が round に設定されていないのはなぜですか?

4

1 に答える 1

1

「Z」パス ターミネータを削除することで修正されました。

var testLine = view.path("M343,56 L343,560");
于 2012-07-02T00:52:50.937 に答える