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

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: