Since your SVG selection is typed as d3.Selection<SVGSVGElement, unknown, null, undefined> , then: const zoomBehavior = d3 .zoom<SVGSVGElement, unknown>() .
確定! 回上一頁