Move sub-namespace typedefs to typedefs.js
Here too there is one problem case.
This commit is contained in:
@@ -13,16 +13,6 @@ ol.style.ImageState = {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{opacity: number,
|
||||
* rotateWithView: boolean,
|
||||
* rotation: number,
|
||||
* scale: number,
|
||||
* snapToPixel: boolean}}
|
||||
*/
|
||||
ol.style.ImageOptions;
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* A base class used for creating subclasses and not instantiated in
|
||||
|
||||
@@ -191,18 +191,6 @@ ol.style.Style.prototype.setZIndex = function(zIndex) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* A function that takes an {@link ol.Feature} and a `{number}` representing
|
||||
* the view's resolution. The function should return a {@link ol.style.Style}
|
||||
* or an array of them. This way e.g. a vector layer can be styled.
|
||||
*
|
||||
* @typedef {function((ol.Feature|ol.render.Feature), number):
|
||||
* (ol.style.Style|Array.<ol.style.Style>)}
|
||||
* @api
|
||||
*/
|
||||
ol.style.StyleFunction;
|
||||
|
||||
|
||||
/**
|
||||
* Convert the provided object into a style function. Functions passed through
|
||||
* unchanged. Arrays of ol.style.Style or single style objects wrapped in a
|
||||
@@ -349,17 +337,6 @@ ol.style.createDefaultEditingStyles = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* A function that takes an {@link ol.Feature} as argument and returns an
|
||||
* {@link ol.geom.Geometry} that will be rendered and styled for the feature.
|
||||
*
|
||||
* @typedef {function((ol.Feature|ol.render.Feature)):
|
||||
* (ol.geom.Geometry|ol.render.Feature|undefined)}
|
||||
* @api
|
||||
*/
|
||||
ol.style.GeometryFunction;
|
||||
|
||||
|
||||
/**
|
||||
* Function that is called with a feature and returns its default geometry.
|
||||
* @param {ol.Feature|ol.render.Feature} feature Feature to get the geometry
|
||||
|
||||
Reference in New Issue
Block a user