Home : HTML5 Web Viewing Controls : New Feature (10.6.1.4) Zoom Area in WebDocumentViewer
Q10427 - INFO: New Feature (10.6.1.4) Zoom Area in WebDocumentViewer

New in DotImage 10.6, ServicePack 1, FixPack 4 (10.6.1.4) WebDocumentViewer Select Area Zoooming

SUMMARY

Selection-based zoom is where a user draws a rectangle on the current image, and the control responds by zooming to allow that desired area to "best fit" into the current viewer.

This feature needs to be turned on in configuration (see below) but to use it, the user clicks on the Select Area box then uses the mouse to draw a rectangle. The moment they mouseUp from the drawing, the viewer will zoom to "best-fit" the rectangle of interest

CONFIGURATION

Config.showselecttools: Boolean

enable the new zoom by selection feature:

showselecttools: true


PROGRAMMATICALLY TRIGGERING ZOOM SELECTION

The programmer can programmatically trirgger this by calling

_viewer.trigger('menuclickzoom-area');


HIDING THE ZOOM AREA SELECT BUTTON/CONTROL

If you don't need it at all, simply leave the showselecttools configuration set to false.

If you need to situationally hide/show it, do not REMOVE button from dom ..

HIDE
$('.atala-ui-icon-zoom-area').parent().hide();

SHOW
$('.atala-ui-icon-zoom-area').parent().show();

 

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2017. InstantASP Ltd. All Rights Reserved