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
+2 -2
View File
@@ -482,7 +482,7 @@ CanvasReplay.prototype.fill_ = function(context) {
* @param {Array.<*>} instruction Instruction.
*/
CanvasReplay.prototype.setStrokeStyle_ = function(context, instruction) {
context.strokeStyle = /** @type {ol.ColorLike} */ (instruction[1]);
context.strokeStyle = /** @type {module:ol/colorlike~ColorLike} */ (instruction[1]);
context.lineWidth = /** @type {number} */ (instruction[2]);
context.lineCap = /** @type {string} */ (instruction[3]);
context.lineJoin = /** @type {string} */ (instruction[4]);
@@ -814,7 +814,7 @@ CanvasReplay.prototype.replay_ = function(
}
}
context.fillStyle = /** @type {ol.ColorLike} */ (instruction[1]);
context.fillStyle = /** @type {module:ol/colorlike~ColorLike} */ (instruction[1]);
++i;
break;
case CanvasInstruction.SET_STROKE_STYLE:
+2 -2
View File
@@ -44,14 +44,14 @@ const WebGLTextReplay = function(tolerance, maxExtent) {
/**
* @private
* @type {{strokeColor: (ol.ColorLike|null),
* @type {{strokeColor: (module:ol/colorlike~ColorLike|null),
* lineCap: (string|undefined),
* lineDash: Array.<number>,
* lineDashOffset: (number|undefined),
* lineJoin: (string|undefined),
* lineWidth: number,
* miterLimit: (number|undefined),
* fillColor: (ol.ColorLike|null),
* fillColor: (module:ol/colorlike~ColorLike|null),
* font: (string|undefined),
* scale: (number|undefined)}}
*/