Module type for ol.style.*
This commit is contained in:
@@ -34,7 +34,7 @@ VectorContext.prototype.drawGeometry = function(geometry) {};
|
||||
/**
|
||||
* Set the rendering style.
|
||||
*
|
||||
* @param {ol.style.Style} style The rendering style.
|
||||
* @param {module:ol/style/Style~Style} style The rendering style.
|
||||
*/
|
||||
VectorContext.prototype.setStyle = function(style) {};
|
||||
|
||||
@@ -48,7 +48,7 @@ VectorContext.prototype.drawCircle = function(circleGeometry, feature) {};
|
||||
|
||||
/**
|
||||
* @param {module:ol/Feature~Feature} feature Feature.
|
||||
* @param {ol.style.Style} style Style.
|
||||
* @param {module:ol/style/Style~Style} style Style.
|
||||
*/
|
||||
VectorContext.prototype.drawFeature = function(feature, style) {};
|
||||
|
||||
@@ -115,21 +115,21 @@ VectorContext.prototype.drawText = function(geometry, feature) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.style.Fill} fillStyle Fill style.
|
||||
* @param {ol.style.Stroke} strokeStyle Stroke style.
|
||||
* @param {module:ol/style/Fill~Fill} fillStyle Fill style.
|
||||
* @param {module:ol/style/Stroke~Stroke} strokeStyle Stroke style.
|
||||
*/
|
||||
VectorContext.prototype.setFillStrokeStyle = function(fillStyle, strokeStyle) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.style.Image} imageStyle Image style.
|
||||
* @param {module:ol/style/Image~ImageStyle} imageStyle Image style.
|
||||
* @param {ol.DeclutterGroup=} opt_declutterGroup Declutter.
|
||||
*/
|
||||
VectorContext.prototype.setImageStyle = function(imageStyle, opt_declutterGroup) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.style.Text} textStyle Text style.
|
||||
* @param {module:ol/style/Text~Text} textStyle Text style.
|
||||
* @param {ol.DeclutterGroup=} opt_declutterGroup Declutter.
|
||||
*/
|
||||
VectorContext.prototype.setTextStyle = function(textStyle, opt_declutterGroup) {};
|
||||
|
||||
@@ -435,7 +435,7 @@ CanvasImmediateRenderer.prototype.drawCircle = function(geometry) {
|
||||
* Set the rendering style. Note that since this is an immediate rendering API,
|
||||
* any `zIndex` on the provided style will be ignored.
|
||||
*
|
||||
* @param {ol.style.Style} style The rendering style.
|
||||
* @param {module:ol/style/Style~Style} style The rendering style.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
@@ -493,7 +493,7 @@ CanvasImmediateRenderer.prototype.drawGeometry = function(geometry) {
|
||||
* {@link module:ol/layer/Vector~VectorLayer} instead.
|
||||
*
|
||||
* @param {module:ol/Feature~Feature} feature Feature.
|
||||
* @param {ol.style.Style} style Style.
|
||||
* @param {module:ol/style/Style~Style} style Style.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
@@ -811,8 +811,8 @@ CanvasImmediateRenderer.prototype.setContextTextState_ = function(textState) {
|
||||
* Set the fill and stroke style for subsequent draw operations. To clear
|
||||
* either fill or stroke styles, pass null for the appropriate parameter.
|
||||
*
|
||||
* @param {ol.style.Fill} fillStyle Fill style.
|
||||
* @param {ol.style.Stroke} strokeStyle Stroke style.
|
||||
* @param {module:ol/style/Fill~Fill} fillStyle Fill style.
|
||||
* @param {module:ol/style/Stroke~Stroke} strokeStyle Stroke style.
|
||||
* @override
|
||||
*/
|
||||
CanvasImmediateRenderer.prototype.setFillStrokeStyle = function(fillStyle, strokeStyle) {
|
||||
@@ -859,7 +859,7 @@ CanvasImmediateRenderer.prototype.setFillStrokeStyle = function(fillStyle, strok
|
||||
* Set the image style for subsequent draw operations. Pass null to remove
|
||||
* the image style.
|
||||
*
|
||||
* @param {ol.style.Image} imageStyle Image style.
|
||||
* @param {module:ol/style/Image~ImageStyle} imageStyle Image style.
|
||||
* @override
|
||||
*/
|
||||
CanvasImmediateRenderer.prototype.setImageStyle = function(imageStyle) {
|
||||
@@ -891,7 +891,7 @@ CanvasImmediateRenderer.prototype.setImageStyle = function(imageStyle) {
|
||||
* Set the text style for subsequent draw operations. Pass null to
|
||||
* remove the text style.
|
||||
*
|
||||
* @param {ol.style.Text} textStyle Text style.
|
||||
* @param {module:ol/style/Text~Text} textStyle Text style.
|
||||
* @override
|
||||
*/
|
||||
CanvasImmediateRenderer.prototype.setTextStyle = function(textStyle) {
|
||||
|
||||
@@ -60,25 +60,25 @@ const WebGLImmediateRenderer = function(context, center, resolution, rotation, s
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.style.Image}
|
||||
* @type {module:ol/style/Image~ImageStyle}
|
||||
*/
|
||||
this.imageStyle_ = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.style.Fill}
|
||||
* @type {module:ol/style/Fill~Fill}
|
||||
*/
|
||||
this.fillStyle_ = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.style.Stroke}
|
||||
* @type {module:ol/style/Stroke~Stroke}
|
||||
*/
|
||||
this.strokeStyle_ = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.style.Text}
|
||||
* @type {module:ol/style/Text~Text}
|
||||
*/
|
||||
this.textStyle_ = null;
|
||||
|
||||
@@ -115,7 +115,7 @@ WebGLImmediateRenderer.prototype.drawText_ = function(replayGroup, geometry) {
|
||||
* Set the rendering style. Note that since this is an immediate rendering API,
|
||||
* any `zIndex` on the provided style will be ignored.
|
||||
*
|
||||
* @param {ol.style.Style} style The rendering style.
|
||||
* @param {module:ol/style/Style~Style} style The rendering style.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
|
||||
@@ -74,7 +74,7 @@ inherits(WebGLReplayGroup, ReplayGroup);
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.style.Style} style Style.
|
||||
* @param {module:ol/style/Style~Style} style Style.
|
||||
* @param {boolean} group Group with previous replay.
|
||||
*/
|
||||
WebGLReplayGroup.prototype.addDeclutter = function(style, group) {};
|
||||
|
||||
Reference in New Issue
Block a user