Add 'translatestart', 'translateend' and 'translating' events to 'ol.interaction.Translate'
This commit is contained in:
@@ -7,35 +7,3 @@
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/** @type {number} */
|
||||
Touch.prototype.force;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
Touch.prototype.radiusX;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
Touch.prototype.radiusY;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
Touch.prototype.webkitForce;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
Touch.prototype.webkitRadiusX;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
Touch.prototype.webkitRadiusY;
|
||||
|
||||
|
||||
// see https://github.com/google/closure-compiler/pull/1139
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/pointerevents/#the-touch-action-css-property
|
||||
*/
|
||||
CSSProperties.prototype.touchAction;
|
||||
|
||||
943
externs/jquery-1.9.js
vendored
943
externs/jquery-1.9.js
vendored
File diff suppressed because it is too large
Load Diff
313
externs/olx.js
313
externs/olx.js
@@ -1291,7 +1291,7 @@ olx.control.ScaleLineOptions.prototype.units;
|
||||
/**
|
||||
* @typedef {{duration: (number|undefined),
|
||||
* className: (string|undefined),
|
||||
* label: (string|Node|undefined),
|
||||
* label: (string|Element|undefined),
|
||||
* tipLabel: (string|undefined),
|
||||
* target: (Element|undefined),
|
||||
* render: (function(ol.MapEvent)|undefined),
|
||||
@@ -1914,6 +1914,8 @@ olx.format.WFSOptions.prototype.schemaLocation;
|
||||
* maxFeatures: (number|undefined),
|
||||
* geometryName: (string|undefined),
|
||||
* propertyNames: (Array.<string>|undefined),
|
||||
* startIndex: (number|undefined),
|
||||
* count: (number|undefined),
|
||||
* bbox: (ol.Extent|undefined)}}
|
||||
* @api
|
||||
*/
|
||||
@@ -1993,6 +1995,25 @@ olx.format.WFSWriteGetFeatureOptions.prototype.geometryName;
|
||||
olx.format.WFSWriteGetFeatureOptions.prototype.propertyNames;
|
||||
|
||||
|
||||
/**
|
||||
* Start index to use for WFS paging. This is a WFS 2.0 feature backported to
|
||||
* WFS 1.1.0 by some Web Feature Services.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSWriteGetFeatureOptions.prototype.startIndex;
|
||||
|
||||
|
||||
/**
|
||||
* Number of features to retrieve when paging. This is a WFS 2.0 feature
|
||||
* backported to WFS 1.1.0 by some Web Feature Services. Please note that some
|
||||
* Web Feature Services have repurposed `maxfeatures` instead.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.format.WFSWriteGetFeatureOptions.prototype.count;
|
||||
|
||||
|
||||
/**
|
||||
* Extent to use for the BBOX filter.
|
||||
* @type {ol.Extent|undefined}
|
||||
@@ -2779,6 +2800,7 @@ olx.interaction.PointerOptions.prototype.handleUpEvent;
|
||||
* removeCondition: (ol.events.ConditionType|undefined),
|
||||
* toggleCondition: (ol.events.ConditionType|undefined),
|
||||
* multi: (boolean|undefined),
|
||||
* features: (ol.Collection.<ol.Feature>|undefined),
|
||||
* filter: (ol.interaction.SelectFilterFunction|undefined),
|
||||
* wrapX: (boolean|undefined)}}
|
||||
* @api
|
||||
@@ -2869,6 +2891,17 @@ olx.interaction.SelectOptions.prototype.toggleCondition;
|
||||
olx.interaction.SelectOptions.prototype.multi;
|
||||
|
||||
|
||||
/**
|
||||
* Collection where the interaction will place selected features. Optional. If
|
||||
* not set the interaction will create a collection. In any case the collection
|
||||
* used by the interaction is returned by
|
||||
* {@link ol.interaction.Select#getFeatures}.
|
||||
* @type {ol.Collection.<ol.Feature>}
|
||||
* @api
|
||||
*/
|
||||
olx.interaction.SelectOptions.prototype.features;
|
||||
|
||||
|
||||
/**
|
||||
* A function that takes an {@link ol.Feature} and an {@link ol.layer.Layer} and
|
||||
* returns `true` if the feature may be selected or `false` otherwise.
|
||||
@@ -2931,11 +2964,7 @@ olx.layer;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{brightness: (number|undefined),
|
||||
* contrast: (number|undefined),
|
||||
* hue: (number|undefined),
|
||||
* opacity: (number|undefined),
|
||||
* saturation: (number|undefined),
|
||||
* @typedef {{opacity: (number|undefined),
|
||||
* visible: (boolean|undefined),
|
||||
* extent: (ol.Extent|undefined),
|
||||
* zIndex: (number|undefined),
|
||||
@@ -2946,30 +2975,6 @@ olx.layer;
|
||||
olx.layer.BaseOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Brightness. Default is `0`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.BaseOptions.prototype.brightness;
|
||||
|
||||
|
||||
/**
|
||||
* Contrast. Default is `1`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.BaseOptions.prototype.contrast;
|
||||
|
||||
|
||||
/**
|
||||
* Hue. Default is `0`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.BaseOptions.prototype.hue;
|
||||
|
||||
|
||||
/**
|
||||
* Opacity (0, 1). Default is `1`.
|
||||
* @type {number|undefined}
|
||||
@@ -2978,14 +2983,6 @@ olx.layer.BaseOptions.prototype.hue;
|
||||
olx.layer.BaseOptions.prototype.opacity;
|
||||
|
||||
|
||||
/**
|
||||
* Saturation. Default is `1`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.BaseOptions.prototype.saturation;
|
||||
|
||||
|
||||
/**
|
||||
* Visibility. Default is `true`.
|
||||
* @type {boolean|undefined}
|
||||
@@ -3029,11 +3026,7 @@ olx.layer.BaseOptions.prototype.maxResolution;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{brightness: (number|undefined),
|
||||
* contrast: (number|undefined),
|
||||
* hue: (number|undefined),
|
||||
* opacity: (number|undefined),
|
||||
* saturation: (number|undefined),
|
||||
* @typedef {{opacity: (number|undefined),
|
||||
* source: (ol.source.Source|undefined),
|
||||
* visible: (boolean|undefined),
|
||||
* extent: (ol.Extent|undefined),
|
||||
@@ -3045,30 +3038,6 @@ olx.layer.BaseOptions.prototype.maxResolution;
|
||||
olx.layer.LayerOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Brightness. Default is `0`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.LayerOptions.prototype.brightness;
|
||||
|
||||
|
||||
/**
|
||||
* Contrast. Default is `1`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.LayerOptions.prototype.contrast;
|
||||
|
||||
|
||||
/**
|
||||
* Hue. Default is `0`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.LayerOptions.prototype.hue;
|
||||
|
||||
|
||||
/**
|
||||
* Opacity (0, 1). Default is `1`.
|
||||
* @type {number|undefined}
|
||||
@@ -3077,14 +3046,6 @@ olx.layer.LayerOptions.prototype.hue;
|
||||
olx.layer.LayerOptions.prototype.opacity;
|
||||
|
||||
|
||||
/**
|
||||
* Saturation. Default is `1`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.LayerOptions.prototype.saturation;
|
||||
|
||||
|
||||
/**
|
||||
* Source for this layer. If not provided to the constructor, the source can
|
||||
* be set by calling {@link ol.layer.Layer#setSource layer.setSource(source)}
|
||||
@@ -3138,11 +3099,7 @@ olx.layer.LayerOptions.prototype.maxResolution;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{brightness: (number|undefined),
|
||||
* contrast: (number|undefined),
|
||||
* hue: (number|undefined),
|
||||
* opacity: (number|undefined),
|
||||
* saturation: (number|undefined),
|
||||
* @typedef {{opacity: (number|undefined),
|
||||
* visible: (boolean|undefined),
|
||||
* extent: (ol.Extent|undefined),
|
||||
* zIndex: (number|undefined),
|
||||
@@ -3154,30 +3111,6 @@ olx.layer.LayerOptions.prototype.maxResolution;
|
||||
olx.layer.GroupOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Brightness. Default is `0`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.GroupOptions.prototype.brightness;
|
||||
|
||||
|
||||
/**
|
||||
* Contrast. Default is `1`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.GroupOptions.prototype.contrast;
|
||||
|
||||
|
||||
/**
|
||||
* Hue. Default is `0`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.GroupOptions.prototype.hue;
|
||||
|
||||
|
||||
/**
|
||||
* Opacity (0, 1). Default is `1`.
|
||||
* @type {number|undefined}
|
||||
@@ -3186,14 +3119,6 @@ olx.layer.GroupOptions.prototype.hue;
|
||||
olx.layer.GroupOptions.prototype.opacity;
|
||||
|
||||
|
||||
/**
|
||||
* Saturation. Default is `1`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.GroupOptions.prototype.saturation;
|
||||
|
||||
|
||||
/**
|
||||
* Visibility. Default is `true`.
|
||||
* @type {boolean|undefined}
|
||||
@@ -3245,10 +3170,7 @@ olx.layer.GroupOptions.prototype.layers;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{brightness: (number|undefined),
|
||||
* contrast: (number|undefined),
|
||||
* hue: (number|undefined),
|
||||
* gradient: (Array.<string>|undefined),
|
||||
* @typedef {{gradient: (Array.<string>|undefined),
|
||||
* radius: (number|undefined),
|
||||
* blur: (number|undefined),
|
||||
* shadow: (number|undefined),
|
||||
@@ -3257,7 +3179,6 @@ olx.layer.GroupOptions.prototype.layers;
|
||||
* minResolution: (number|undefined),
|
||||
* maxResolution: (number|undefined),
|
||||
* opacity: (number|undefined),
|
||||
* saturation: (number|undefined),
|
||||
* source: (ol.source.Vector|undefined),
|
||||
* visible: (boolean|undefined)}}
|
||||
* @api
|
||||
@@ -3265,30 +3186,6 @@ olx.layer.GroupOptions.prototype.layers;
|
||||
olx.layer.HeatmapOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Brightness.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.HeatmapOptions.prototype.brightness;
|
||||
|
||||
|
||||
/**
|
||||
* Contrast.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.HeatmapOptions.prototype.contrast;
|
||||
|
||||
|
||||
/**
|
||||
* Hue.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.HeatmapOptions.prototype.hue;
|
||||
|
||||
|
||||
/**
|
||||
* The color gradient of the heatmap, specified as an array of CSS color
|
||||
* strings. Default is `['#00f', '#0ff', '#0f0', '#ff0', '#f00']`.
|
||||
@@ -3365,14 +3262,6 @@ olx.layer.HeatmapOptions.prototype.maxResolution;
|
||||
olx.layer.HeatmapOptions.prototype.opacity;
|
||||
|
||||
|
||||
/**
|
||||
* Saturation.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.HeatmapOptions.prototype.saturation;
|
||||
|
||||
|
||||
/**
|
||||
* Source.
|
||||
* @type {ol.source.Vector}
|
||||
@@ -3390,11 +3279,7 @@ olx.layer.HeatmapOptions.prototype.visible;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{brightness: (number|undefined),
|
||||
* contrast: (number|undefined),
|
||||
* hue: (number|undefined),
|
||||
* opacity: (number|undefined),
|
||||
* saturation: (number|undefined),
|
||||
* @typedef {{opacity: (number|undefined),
|
||||
* map: (ol.Map|undefined),
|
||||
* source: (ol.source.Image|undefined),
|
||||
* visible: (boolean|undefined),
|
||||
@@ -3406,30 +3291,6 @@ olx.layer.HeatmapOptions.prototype.visible;
|
||||
olx.layer.ImageOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Brightness. Default is `0`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.ImageOptions.prototype.brightness;
|
||||
|
||||
|
||||
/**
|
||||
* Contrast. Default is `1`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.ImageOptions.prototype.contrast;
|
||||
|
||||
|
||||
/**
|
||||
* Hue. Default is `0`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.ImageOptions.prototype.hue;
|
||||
|
||||
|
||||
/**
|
||||
* Opacity (0, 1). Default is `1`.
|
||||
* @type {number|undefined}
|
||||
@@ -3438,14 +3299,6 @@ olx.layer.ImageOptions.prototype.hue;
|
||||
olx.layer.ImageOptions.prototype.opacity;
|
||||
|
||||
|
||||
/**
|
||||
* Saturation. Default is `1`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.ImageOptions.prototype.saturation;
|
||||
|
||||
|
||||
/**
|
||||
* Source for this layer.
|
||||
* @type {ol.source.Image}
|
||||
@@ -3499,12 +3352,8 @@ olx.layer.ImageOptions.prototype.maxResolution;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{brightness: (number|undefined),
|
||||
* contrast: (number|undefined),
|
||||
* hue: (number|undefined),
|
||||
* opacity: (number|undefined),
|
||||
* @typedef {{opacity: (number|undefined),
|
||||
* preload: (number|undefined),
|
||||
* saturation: (number|undefined),
|
||||
* source: (ol.source.Tile|undefined),
|
||||
* map: (ol.Map|undefined),
|
||||
* visible: (boolean|undefined),
|
||||
@@ -3517,30 +3366,6 @@ olx.layer.ImageOptions.prototype.maxResolution;
|
||||
olx.layer.TileOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Brightness. Default is `0`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.TileOptions.prototype.brightness;
|
||||
|
||||
|
||||
/**
|
||||
* Contrast. Default is `1`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.TileOptions.prototype.contrast;
|
||||
|
||||
|
||||
/**
|
||||
* Hue. Default is `0`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.TileOptions.prototype.hue;
|
||||
|
||||
|
||||
/**
|
||||
* Opacity (0, 1). Default is `1`.
|
||||
* @type {number|undefined}
|
||||
@@ -3558,14 +3383,6 @@ olx.layer.TileOptions.prototype.opacity;
|
||||
olx.layer.TileOptions.prototype.preload;
|
||||
|
||||
|
||||
/**
|
||||
* Saturation. Default is `1`.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.TileOptions.prototype.saturation;
|
||||
|
||||
|
||||
/**
|
||||
* Source for this layer.
|
||||
* @type {ol.source.Tile}
|
||||
@@ -3627,15 +3444,11 @@ olx.layer.TileOptions.prototype.useInterimTilesOnError;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{brightness: (number|undefined),
|
||||
* contrast: (number|undefined),
|
||||
* renderOrder: (function(ol.Feature, ol.Feature):number|null|undefined),
|
||||
* hue: (number|undefined),
|
||||
* @typedef {{renderOrder: (function(ol.Feature, ol.Feature):number|null|undefined),
|
||||
* minResolution: (number|undefined),
|
||||
* maxResolution: (number|undefined),
|
||||
* opacity: (number|undefined),
|
||||
* renderBuffer: (number|undefined),
|
||||
* saturation: (number|undefined),
|
||||
* source: (ol.source.Vector|undefined),
|
||||
* map: (ol.Map|undefined),
|
||||
* style: (ol.style.Style|Array.<ol.style.Style>|ol.style.StyleFunction|undefined),
|
||||
@@ -3647,22 +3460,6 @@ olx.layer.TileOptions.prototype.useInterimTilesOnError;
|
||||
olx.layer.VectorOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Brightness.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.VectorOptions.prototype.brightness;
|
||||
|
||||
|
||||
/**
|
||||
* Contrast.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.VectorOptions.prototype.contrast;
|
||||
|
||||
|
||||
/**
|
||||
* Render order. Function to be used when sorting features before rendering. By
|
||||
* default features are drawn in the order that they are created. Use `null` to
|
||||
@@ -3673,14 +3470,6 @@ olx.layer.VectorOptions.prototype.contrast;
|
||||
olx.layer.VectorOptions.prototype.renderOrder;
|
||||
|
||||
|
||||
/**
|
||||
* Hue.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.VectorOptions.prototype.hue;
|
||||
|
||||
|
||||
/**
|
||||
* Sets the layer as overlay on a map. The map will not manage this layer in its
|
||||
* layers collection, and the layer will be rendered on top. This is useful for
|
||||
@@ -3736,14 +3525,6 @@ olx.layer.VectorOptions.prototype.opacity;
|
||||
olx.layer.VectorOptions.prototype.renderBuffer;
|
||||
|
||||
|
||||
/**
|
||||
* Saturation.
|
||||
* @type {number|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.layer.VectorOptions.prototype.saturation;
|
||||
|
||||
|
||||
/**
|
||||
* Source.
|
||||
* @type {ol.source.Vector}
|
||||
@@ -6150,7 +5931,9 @@ olx.style.TextOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Font.
|
||||
* Font style as CSS 'font' value, see:
|
||||
* {@link https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font}.
|
||||
* Default is '10px sans-serif'
|
||||
* @type {string|undefined}
|
||||
* @api
|
||||
*/
|
||||
@@ -6192,7 +5975,7 @@ olx.style.TextOptions.prototype.rotation;
|
||||
|
||||
|
||||
/**
|
||||
* Text.
|
||||
* Text content.
|
||||
* @type {string|undefined}
|
||||
* @api
|
||||
*/
|
||||
@@ -6200,7 +5983,8 @@ olx.style.TextOptions.prototype.text;
|
||||
|
||||
|
||||
/**
|
||||
* Text alignment.
|
||||
* Text alignment. Possible values: 'left', 'right', 'center', 'end' or 'start'.
|
||||
* Default is 'start'.
|
||||
* @type {string|undefined}
|
||||
* @api
|
||||
*/
|
||||
@@ -6208,7 +5992,8 @@ olx.style.TextOptions.prototype.textAlign;
|
||||
|
||||
|
||||
/**
|
||||
* Text base line.
|
||||
* Text base line. Possible values: 'bottom', 'top', 'middle', 'alphabetic',
|
||||
* 'hanging', 'ideographic'. Default is 'alphabetic'.
|
||||
* @type {string|undefined}
|
||||
* @api
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user