Class: DragPanHandler
component.DragPanHandler
The DragPanHandler
allows the user to pan the viewer image by clicking and dragging the cursor.
example
var pointerComponent = viewer.getComponent("pointer");
pointerComponent.dragPan.disable();pointerComponent.dragPan.enable();
var isEnabled = pointerComponent.dragPan.isEnabled;
#
HierarchyHandlerBase
<PointerConfiguration
>↳
DragPanHandler
#
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