mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 06:24:17 +00:00
Use svg polyline element attributes instead of CSS properties to set lines color and width
This commit is contained in:
parent
5bdf54782b
commit
134a017095
1 changed files with 2 additions and 2 deletions
|
@ -107,8 +107,8 @@
|
|||
function createLine(lineData) {
|
||||
var line = Tools.createSVGElement("polyline");
|
||||
line.id = lineData.id;
|
||||
line.style.stroke = lineData.color || "black";
|
||||
line.style.strokeWidth = lineData.size || 3;
|
||||
line.setAttribute("stroke", lineData.color);
|
||||
line.setAttribute("stroke-width", lineData.size);
|
||||
svg.appendChild(line);
|
||||
return line;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue