問題タブ [svgpanzoom]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
454 参照

javascript - svg-pan-zoomでスクロールバーを表示するには?

svg-pan-zoom でズーム中にスクロールバーを有効にする方法を知りたいです。

overflow: auto外部の div または svg タグを試してみましたが、うまくいきませんでした。

うまくいけば、ここで助けを得ることができます。

0 投票する
1 に答える
361 参照

svgpanzoom - Initiate new center on load SVG pan zoom

To change the position of an SVG with SvgPanZoom one has to use

But this causes SvgPanZoom to move the SVG initially from center to the new position, as it will first place the SVG in the middle of the viewport by default.

Is there a way to force a different center point of the SVG onload before SvgPanZoom will place the SVG?

Best, hirschferkel