{"id":65582,"date":"2026-11-25T19:16:02","date_gmt":"2026-11-25T18:16:02","guid":{"rendered":"https:\/\/amit-automation.cz\/podpora\/casto-kladene-otazky\/amit-designer-napoveda\/view-script-function-zoom\/"},"modified":"2026-11-25T19:16:02","modified_gmt":"2026-11-25T18:16:02","slug":"view-script-function-zoom","status":"publish","type":"napoveda","link":"https:\/\/amit-automation.cz\/en\/support\/faq\/amit-designer-help\/view-script-function-zoom\/","title":{"rendered":"View script function \u2013 zoom"},"content":{"rendered":"<h3><span style=\"color: #4baddd;\">Zoom to Area<\/span><\/h3>\n<p style=\"text-align: justify;\">Programmatically zoom to a given area. Area is defined by x, y and width and height parameters. All parameters are in pixels.<\/p>\n<pre><span style=\"color: #4baddd;\">myscada.zoomToArea(x,y,width,height);<\/span><\/pre>\n<h3><span style=\"color: #4baddd;\">Get Zoom Level<\/span><\/h3>\n<p style=\"text-align: justify;\">To get a zoom level use function<\/p>\n<pre><span style=\"color: #4baddd;\">var zoomlevel=myscada.getZoom();<\/span><\/pre>\n<h3><span style=\"color: #4baddd;\">Disable Scrolling<\/span><\/h3>\n<p style=\"text-align: justify;\">To disable or enable back scrolling use function<\/p>\n<pre><span style=\"color: #4baddd;\">myscada.setScrollEnabled(false);<\/span><\/pre>\n","protected":false},"menu_order":130,"template":"","class_list":["post-65582","napoveda","type-napoveda","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda\/65582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda"}],"about":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/types\/napoveda"}],"version-history":[{"count":0,"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda\/65582\/revisions"}],"wp:attachment":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/media?parent=65582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}