You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
978 B
45 lines
978 B
|
3 years ago
|
export default PinchZoom;
|
||
|
|
export type Options = {
|
||
|
|
/**
|
||
|
|
* Animation duration in milliseconds.
|
||
|
|
*/
|
||
|
|
duration?: number | undefined;
|
||
|
|
};
|
||
|
|
/**
|
||
|
|
* @typedef {Object} Options
|
||
|
|
* @property {number} [duration=400] Animation duration in milliseconds.
|
||
|
|
*/
|
||
|
|
/**
|
||
|
|
* @classdesc
|
||
|
|
* Allows the user to zoom the map by pinching with two fingers
|
||
|
|
* on a touch screen.
|
||
|
|
* @api
|
||
|
|
*/
|
||
|
|
declare class PinchZoom extends PointerInteraction {
|
||
|
|
/**
|
||
|
|
* @param {Options} [options] Options.
|
||
|
|
*/
|
||
|
|
constructor(options?: Options | undefined);
|
||
|
|
/**
|
||
|
|
* @private
|
||
|
|
* @type {import("../coordinate.js").Coordinate}
|
||
|
|
*/
|
||
|
|
private anchor_;
|
||
|
|
/**
|
||
|
|
* @private
|
||
|
|
* @type {number}
|
||
|
|
*/
|
||
|
|
private duration_;
|
||
|
|
/**
|
||
|
|
* @private
|
||
|
|
* @type {number|undefined}
|
||
|
|
*/
|
||
|
|
private lastDistance_;
|
||
|
|
/**
|
||
|
|
* @private
|
||
|
|
* @type {number}
|
||
|
|
*/
|
||
|
|
private lastScaleDelta_;
|
||
|
|
}
|
||
|
|
import PointerInteraction from "./Pointer.js";
|
||
|
|
//# sourceMappingURL=PinchZoom.d.ts.map
|