HTML5 Viewer SDK API Documentation 

Namespaces


Class Index

Classes in s7sdk.event

Class s7sdk.event.ZoomTargetEvent

Dispatched whenever a zoom target has been selected.

Class Summary
Constructor Attributes Constructor Name and Description
 
s7sdk.event.ZoomTargetEvent(type, idx, frame, image, zoomRgn)
Field Summary
Field Attributes Field Name and Description
<static>  
s7sdk.event.ZoomTargetEvent.ZOOM_TARGET
Defines a value of the type property of a zoomTarget event object.
Class Detail
s7sdk.event.ZoomTargetEvent(type, idx, frame, image, zoomRgn)
This example demonstrates handling a ZoomTargetsEvent.  It changes the displayed
rectangle in the ZoomView component.  The listener function is targetSelected(event),
the ZoomView component is myZoomView and the ZoomTarget component is myZoomTarget.


function targetSelected(event) {
     myZoomView.zoomRgn(event.s7event.zoomRgn);
     myZoomTargets.setFrame(event.s7event.image);
}
myZoomTargets.addEventListener(s7sdk.event.ZoomTargetEvent.ZOOM_TARGET, targetSelected,
                                 false);
 
Parameters:
type
Event type.
idx
Zoom target index.
frame
Frame associated with the target.
image
ItemDesc for image associated with the target.
zoomRgn
Zoom region in the top resolution image coordinates.
See:
s7sdk.image.ZoomTargets
Field Detail
<static> s7sdk.event.ZoomTargetEvent.ZOOM_TARGET
Defines a value of the type property of a zoomTarget event object.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jan 30 2020 16:40:36 GMT+0200 (EET)