Module type for ol.ColorLike

This commit is contained in:
Frederic Junod
2018-03-19 09:24:32 +01:00
parent 2d9014ce11
commit f5aa7d7867
5 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ const Stroke = function(opt_options) {
/**
* @private
* @type {ol.Color|ol.ColorLike}
* @type {ol.Color|module:ol/colorlike~ColorLike}
*/
this.color_ = options.color !== undefined ? options.color : null;
@@ -89,7 +89,7 @@ Stroke.prototype.clone = function() {
/**
* Get the stroke color.
* @return {ol.Color|ol.ColorLike} Color.
* @return {ol.Color|module:ol/colorlike~ColorLike} Color.
* @api
*/
Stroke.prototype.getColor = function() {
@@ -160,7 +160,7 @@ Stroke.prototype.getWidth = function() {
/**
* Set the color.
*
* @param {ol.Color|ol.ColorLike} color Color.
* @param {ol.Color|module:ol/colorlike~ColorLike} color Color.
* @api
*/
Stroke.prototype.setColor = function(color) {