Allow CanvasPattern or CanvasGradient as stroke style

This commit is contained in:
Frederic Junod
2016-09-06 08:57:04 +02:00
parent 51776ed79e
commit e48fda6bef
12 changed files with 97 additions and 34 deletions
+5 -4
View File
@@ -6932,7 +6932,7 @@ olx.style.RegularShapeOptions.prototype.atlasManager;
/**
* @typedef {{color: (ol.Color|string|undefined),
* @typedef {{color: (ol.Color|ol.ColorLike|undefined),
* lineCap: (string|undefined),
* lineJoin: (string|undefined),
* lineDash: (Array.<number>|undefined),
@@ -6943,9 +6943,10 @@ olx.style.StrokeOptions;
/**
* Color. See {@link ol.color} for possible formats. Default null; if null,
* the Canvas/renderer default black will be used.
* @type {ol.Color|string|undefined}
* A color, gradient or pattern. See {@link ol.color}
* and {@link ol.colorlike} for possible formats. Default null;
* if null, the Canvas/renderer default black will be used.
* @type {ol.Color|ol.ColorLike|undefined}
* @api
*/
olx.style.StrokeOptions.prototype.color;