mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 12:09:04 +08:00
openlayers: Adding missing options on olx.interaction.PinchZoomOptions and olx.interaction.MouseWheelZoomOptions
This commit is contained in:
10
types/openlayers/index.d.ts
vendored
10
types/openlayers/index.d.ts
vendored
@@ -12578,11 +12578,15 @@ declare module olx {
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{duration: (number|undefined),
|
||||
* @typedef {{constrainResolution: (boolean|undefined),
|
||||
* duration: (number|undefined),
|
||||
* timeout: (number|undefined),
|
||||
* useAnchor: (boolean|undefined)}}
|
||||
*/
|
||||
interface MouseWheelZoomOptions {
|
||||
constrainResolution?: boolean;
|
||||
duration?: number;
|
||||
timeout?: number;
|
||||
useAnchor?: boolean;
|
||||
}
|
||||
|
||||
@@ -12598,9 +12602,11 @@ declare module olx {
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{duration: (number|undefined)}}
|
||||
* @typedef {{constrainResolution: (boolean|undefined)
|
||||
* duration: (number|undefined)}}
|
||||
*/
|
||||
interface PinchZoomOptions {
|
||||
constrainResolution?: boolean;
|
||||
duration?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -717,6 +717,17 @@ const select: ol.interaction.Select = new ol.interaction.Select({
|
||||
layers: (layer: ol.layer.Layer) => true,
|
||||
});
|
||||
|
||||
let pinchZoom: ol.interaction.PinchZoom = new ol.interaction.PinchZoom({
|
||||
constrainResolution: booleanValue,
|
||||
duration: numberValue
|
||||
});
|
||||
|
||||
let mouseWheelZoom: ol.interaction.MouseWheelZoom = new ol.interaction.MouseWheelZoom({
|
||||
constrainResolution: booleanValue,
|
||||
duration: numberValue,
|
||||
timeout: numberValue,
|
||||
useAnchor: booleanValue
|
||||
});
|
||||
//
|
||||
// ol.style.RegularShape
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user