mapillary-js
Version:
WebGL JavaScript library for displaying street level imagery from mapillary.com
54 lines (48 loc) • 1.03 kB
text/typescript
import { IComponentConfiguration } from "../../Component";
/**
* Interface for configuration of mouse component.
*
* @interface
* @example
* ```
* var viewer = new Mapillary.Viewer({
* ...
* component: {
* mouse: {
* doubleClickZoom: false,
* dragPan: false,
* scrollZoom: false,
* touchZoom: false,
* },
* },
* ...
* });
* ```
*/
export interface IMouseConfiguration extends IComponentConfiguration {
/**
* Enable or disable the `DoubleClickZoomHandler`.
*
* @default false
*/
doubleClickZoom?: boolean;
/**
* Enable or disable the `DragPanHandler`.
*
* @default true
*/
dragPan?: boolean;
/**
* Enable or disable the `ScrollZoomHandler`.
*
* @default true
*/
scrollZoom?: boolean;
/**
* Enable or disable the `TouchZoomHandler`.
*
* @default true
*/
touchZoom?: boolean;
}
export default IMouseConfiguration;