0
를 병합하는 방법을 나는 두 물체두 개체
나는이 두 개체를 병합 defPathValues에서 다른 빈 속성을 제거 할var defPathValues={'id':'','fill':'','fill-opacity':'','stroke-width':'','stroke-linecap':'','stroke-linejoin':'',
'stroke':'','d':'','transform':''};
var options={'id':'ele1', 'fill':'white'};
이 (즉, 우리가 통과 옵션에 따라).
병합 후 svg path 요소에서 이러한 속성을 설정하고 싶습니다.
는 그 전에 내가 대신 경로 요소의 ATTR에 직접 객체를 설정하려는 그var path = document.createElementNS(this.svgLink, "path");
$(path).attr({
'id': this.SvgObject.id+ "_" + series.Name + "_"+ seriesIndex,
'fill': 'none',
'stroke-width': style.SeriesStyle.BorderWidth,
'stroke': style.SeriesInterior,
'stroke-linecap': style.SeriesStyle.LineCap,
'stroke-linejoin':style.SeriesStyle.LineJoin,
'd': direction,
});
같은 데. 내가 어떻게 할 수 있니?