0
JavaScript로 SVG를 만들고 싶습니다. SVG 요소 (JS 형식 SVGSVGElement)가 있지만이 형식에는 createSvgRect, createSvgTransfrom 등과 같은 메서드가 있지만 createSvgPath는 없습니다. SVG에서 어떻게 경로를 만들 수 있습니까?SVGSVGElement에서 SVGPathElement를 만드는 방법
var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
svg.setAttribute("width", (200).toString());
svg.setAttribute("height", (200).toString());
// there i need to create path from svg object
코드를 보여주세요! – helderdarocha
여기에서 토론 확인 http://stackoverflow.com/questions/7547117/add-a-new-line-in-svg-bug-cannot-see-the-line – Danyu