W3C의 권고에 메소드 getSVGDocument()는 SVGDocument하지만 lib.d.ts의 코드 반환해야 따르면 Typescript에서 SVGDocument를 사용하는 방법?
interface GetSVGDocument {
getSVGDocument(): Document;
}
그래서 내가 그걸 어떻게 할 수
를? :var svgDoc:SVGDocument= document.getElementById('myId').getSVGDocument();
var svgElement:SVGElement = svgDoc.getElementById("myElement");
... further manipulations on svgElement
더 일반적으로 TypeScript의 SVG 구현을 통과 했습니까? 아니면 뭔가 빠졌습니까? SVG dom의 적절한 구현이 있습니까? 아니면 구현할 수 있습니까?