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
+4 -4
View File
@@ -18,7 +18,7 @@ const Fill = function(opt_options) {
/**
* @private
* @type {ol.Color|ol.ColorLike}
* @type {ol.Color|module:ol/colorlike~ColorLike}
*/
this.color_ = options.color !== undefined ? options.color : null;
@@ -31,7 +31,7 @@ const Fill = function(opt_options) {
/**
* Clones the style. The color is not cloned if it is an {@link ol.ColorLike}.
* Clones the style. The color is not cloned if it is an {@link module:ol/colorlike~ColorLike}.
* @return {ol.style.Fill} The cloned style.
* @api
*/
@@ -45,7 +45,7 @@ Fill.prototype.clone = function() {
/**
* Get the fill color.
* @return {ol.Color|ol.ColorLike} Color.
* @return {ol.Color|module:ol/colorlike~ColorLike} Color.
* @api
*/
Fill.prototype.getColor = function() {
@@ -56,7 +56,7 @@ Fill.prototype.getColor = function() {
/**
* Set the color.
*
* @param {ol.Color|ol.ColorLike} color Color.
* @param {ol.Color|module:ol/colorlike~ColorLike} color Color.
* @api
*/
Fill.prototype.setColor = function(color) {
+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) {