Open blpraveen opened 9 months ago
When Zoomin to minimum scale align the image to center by default. is it possible
Using Vue2 js
<panZoom selector=".zoomable" :options="{minZoom: 1, maxZoom: 5}" @init="panCheck()"> <img :src="chartImage" class="chart-img zoomable"> <span class="chart-mark popover__title not-zoomable"> </span> </panZoom> panCheck(panzoomInstance,id){ if(panzoomInstance){ panzoomInstance.on('zoomend', function(e){ if(panzoomInstance.getMaxZoom() === 1){ panzoomInstance.setTransformOrigin({x: 0.5, y: 0.5}); } }); } },
When Zoomin to minimum scale align the image to center by default. is it possible
Using Vue2 js