请告诉我如何更改我无法使用此插件 API 找到的默认缩放值?请帮忙 ?谢谢
这是我的 HTML
<section id="focal1">
<div id="dd2">
<div class="buttons1">
<button id="zoominbtn1" class="zoom-in-1">+</button>
<button id="zoomoutbtn1" class="zoom-out-1">-</button>
<input type="range" class="zoom-range-1" style="position: absolute; margin-top: 2px; background-color: cornsilk;">
<button id="restbtn1" class="reset-1" style="margin-left: 254px;">Default Zoom</button>
</div>
<div class="parent1" >
<div class="panzoom1">
<div id="belowpart">
<img src="" usemap='#searchplot' class='searchplot_css' title='searchplot' alt='searchplot' id='img-searchplot' />
<map id='searchplot' name='searchplot'>
</map>
</div>
</div>
</div>
</div>
</section>
这是 panzoom 函数 JS:
(function() {
var $section = $('#focal1').first();
$section.find('.panzoom1').panzoom({
$zoomIn: $section.find(".zoom-in-1"),
$zoomOut: $section.find(".zoom-out-1"),
$zoomRange: $section.find(".zoom-range-1"),
$reset: $section.find(".reset-1")
});
})();
我在初始化后立即调用 zoom() 或在选项中为 startTransform 设置一个值?我希望默认值为零,并且在加载图像时也应该缩小如何做到这一点?