Class: TouchZoomHandler
component.TouchZoomHandler
The TouchZoomHandler
allows the user to zoom the viewer image by pinching on a touchscreen.
example
var pointerComponent = viewer.getComponent("pointer");
pointerComponent.touchZoom.disable();pointerComponent.touchZoom.enable();
var isEnabled = pointerComponent.touchZoom.isEnabled;
#
HierarchyHandlerBase
<PointerConfiguration
>↳
TouchZoomHandler
#
Accessors#
isEnabled• get
isEnabled(): boolean
Returns a Boolean indicating whether the interaction is enabled.
#
Returnsboolean
true
if the interaction is enabled.
#
Defined incomponent/util/HandlerBase.ts:31
#
Methods#
disableâ–¸ disable(): void
Disables the interaction.
example
<component-name>.<handler-name>.disable();
#
Returnsvoid
#
Inherited fromHandlerBase.disable
#
Defined incomponent/util/HandlerBase.ts:60
#
enableâ–¸ enable(): void
Enables the interaction.
example
<component-name>.<handler-name>.enable();
#
Returnsvoid
#
Inherited fromHandlerBase.enable