types/openlayers - updates for olx.interaction.SelectOptions and ol.View (#23123)

* Initialize ol type

* Type definitions

* import openlayers

* Update tsconfig.json

* Update index.d.ts

* fix(): no-declare-current-package

* lint(): new line at end of files

* fix(test, lint)

* fix(tsconfig): format tsconfig.json

* fix(types/ol): add import 'ol' from 'openalyers'

* types/openlayers add hitTolerance to SelectOptions

* update 'Definitions by'
This commit is contained in:
YairTawil
2018-01-23 20:10:26 +02:00
committed by Andy
parent acbc6ad7f5
commit 27a4ffdc6f

View File

@@ -6,6 +6,7 @@
// Alexandre Melard <https://github.com/mylen>
// Chad Johnston <https://github.com/iamthechad>
// Dan Manastireanu <https://github.com/danmana>
// Yair Tawil <https://github.com/yairtawil>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Definitions partially generated using tsd-jsdoc (https://github.com/englercj/tsd-jsdoc)
@@ -12383,11 +12384,11 @@ declare module ol {
* The size is the pixel dimensions of the box into which the calculated extent
* should fit. In most cases you want to get the extent of the entire map,
* that is `map.getSize()`.
* @param {ol.Size} size Box pixel size.
* @param {ol.Size=} size Box pixel size.
* @return {ol.Extent} Extent.
* @api stable
*/
calculateExtent(size: ol.Size): ol.Extent;
calculateExtent(size?: ol.Size): ol.Extent;
/**
* Get the maximum resolution of the view.
@@ -13325,7 +13326,8 @@ declare module olx {
* multi: (boolean|undefined),
* features: (ol.Collection.<ol.Feature>|undefined),
* filter: (ol.SelectFilterFunction|undefined),
* wrapX: (boolean|undefined)}}
* wrapX: (boolean|undefined),
* hitTolerance: (number|undefined)}}
*/
interface SelectOptions {
addCondition?: ol.EventsConditionType;
@@ -13338,6 +13340,7 @@ declare module olx {
features?: ol.Collection<ol.Feature>;
filter?: ol.SelectFilterFunction;
wrapX?: boolean;
hitTolerance?: number;
}