Module type for ol.ColorLike
This commit is contained in:
@@ -482,7 +482,7 @@ CanvasReplay.prototype.fill_ = function(context) {
|
|||||||
* @param {Array.<*>} instruction Instruction.
|
* @param {Array.<*>} instruction Instruction.
|
||||||
*/
|
*/
|
||||||
CanvasReplay.prototype.setStrokeStyle_ = function(context, 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.lineWidth = /** @type {number} */ (instruction[2]);
|
||||||
context.lineCap = /** @type {string} */ (instruction[3]);
|
context.lineCap = /** @type {string} */ (instruction[3]);
|
||||||
context.lineJoin = /** @type {string} */ (instruction[4]);
|
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;
|
++i;
|
||||||
break;
|
break;
|
||||||
case CanvasInstruction.SET_STROKE_STYLE:
|
case CanvasInstruction.SET_STROKE_STYLE:
|
||||||
|
|||||||
@@ -44,14 +44,14 @@ const WebGLTextReplay = function(tolerance, maxExtent) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {{strokeColor: (ol.ColorLike|null),
|
* @type {{strokeColor: (module:ol/colorlike~ColorLike|null),
|
||||||
* lineCap: (string|undefined),
|
* lineCap: (string|undefined),
|
||||||
* lineDash: Array.<number>,
|
* lineDash: Array.<number>,
|
||||||
* lineDashOffset: (number|undefined),
|
* lineDashOffset: (number|undefined),
|
||||||
* lineJoin: (string|undefined),
|
* lineJoin: (string|undefined),
|
||||||
* lineWidth: number,
|
* lineWidth: number,
|
||||||
* miterLimit: (number|undefined),
|
* miterLimit: (number|undefined),
|
||||||
* fillColor: (ol.ColorLike|null),
|
* fillColor: (module:ol/colorlike~ColorLike|null),
|
||||||
* font: (string|undefined),
|
* font: (string|undefined),
|
||||||
* scale: (number|undefined)}}
|
* scale: (number|undefined)}}
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const Fill = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {ol.Color|ol.ColorLike}
|
* @type {ol.Color|module:ol/colorlike~ColorLike}
|
||||||
*/
|
*/
|
||||||
this.color_ = options.color !== undefined ? options.color : null;
|
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.
|
* @return {ol.style.Fill} The cloned style.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -45,7 +45,7 @@ Fill.prototype.clone = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the fill color.
|
* Get the fill color.
|
||||||
* @return {ol.Color|ol.ColorLike} Color.
|
* @return {ol.Color|module:ol/colorlike~ColorLike} Color.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
Fill.prototype.getColor = function() {
|
Fill.prototype.getColor = function() {
|
||||||
@@ -56,7 +56,7 @@ Fill.prototype.getColor = function() {
|
|||||||
/**
|
/**
|
||||||
* Set the color.
|
* Set the color.
|
||||||
*
|
*
|
||||||
* @param {ol.Color|ol.ColorLike} color Color.
|
* @param {ol.Color|module:ol/colorlike~ColorLike} color Color.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
Fill.prototype.setColor = function(color) {
|
Fill.prototype.setColor = function(color) {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const Stroke = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {ol.Color|ol.ColorLike}
|
* @type {ol.Color|module:ol/colorlike~ColorLike}
|
||||||
*/
|
*/
|
||||||
this.color_ = options.color !== undefined ? options.color : null;
|
this.color_ = options.color !== undefined ? options.color : null;
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ Stroke.prototype.clone = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the stroke color.
|
* Get the stroke color.
|
||||||
* @return {ol.Color|ol.ColorLike} Color.
|
* @return {ol.Color|module:ol/colorlike~ColorLike} Color.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
Stroke.prototype.getColor = function() {
|
Stroke.prototype.getColor = function() {
|
||||||
@@ -160,7 +160,7 @@ Stroke.prototype.getWidth = function() {
|
|||||||
/**
|
/**
|
||||||
* Set the color.
|
* Set the color.
|
||||||
*
|
*
|
||||||
* @param {ol.Color|ol.ColorLike} color Color.
|
* @param {ol.Color|module:ol/colorlike~ColorLike} color Color.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
Stroke.prototype.setColor = function(color) {
|
Stroke.prototype.setColor = function(color) {
|
||||||
|
|||||||
+8
-8
@@ -70,7 +70,7 @@ ol.Attribution;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{fillStyle: ol.ColorLike}}
|
* @typedef {{fillStyle: module:ol/colorlike~ColorLike}}
|
||||||
*/
|
*/
|
||||||
ol.CanvasFillState;
|
ol.CanvasFillState;
|
||||||
|
|
||||||
@@ -91,8 +91,8 @@ ol.CanvasFunctionType;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{currentFillStyle: (ol.ColorLike|undefined),
|
* @typedef {{currentFillStyle: (module:ol/colorlike~ColorLike|undefined),
|
||||||
* currentStrokeStyle: (ol.ColorLike|undefined),
|
* currentStrokeStyle: (module:ol/colorlike~ColorLike|undefined),
|
||||||
* currentLineCap: (string|undefined),
|
* currentLineCap: (string|undefined),
|
||||||
* currentLineDash: Array.<number>,
|
* currentLineDash: Array.<number>,
|
||||||
* currentLineDashOffset: (number|undefined),
|
* currentLineDashOffset: (number|undefined),
|
||||||
@@ -100,8 +100,8 @@ ol.CanvasFunctionType;
|
|||||||
* currentLineWidth: (number|undefined),
|
* currentLineWidth: (number|undefined),
|
||||||
* currentMiterLimit: (number|undefined),
|
* currentMiterLimit: (number|undefined),
|
||||||
* lastStroke: (number|undefined),
|
* lastStroke: (number|undefined),
|
||||||
* fillStyle: (ol.ColorLike|undefined),
|
* fillStyle: (module:ol/colorlike~ColorLike|undefined),
|
||||||
* strokeStyle: (ol.ColorLike|undefined),
|
* strokeStyle: (module:ol/colorlike~ColorLike|undefined),
|
||||||
* lineCap: (string|undefined),
|
* lineCap: (string|undefined),
|
||||||
* lineDash: Array.<number>,
|
* lineDash: Array.<number>,
|
||||||
* lineDashOffset: (number|undefined),
|
* lineDashOffset: (number|undefined),
|
||||||
@@ -119,7 +119,7 @@ ol.CanvasFillStrokeState;
|
|||||||
* lineJoin: string,
|
* lineJoin: string,
|
||||||
* lineWidth: number,
|
* lineWidth: number,
|
||||||
* miterLimit: number,
|
* miterLimit: number,
|
||||||
* strokeStyle: ol.ColorLike}}
|
* strokeStyle: module:ol/colorlike~ColorLike}}
|
||||||
*/
|
*/
|
||||||
ol.CanvasStrokeState;
|
ol.CanvasStrokeState;
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ ol.CanvasTextState;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{strokeStyle: (ol.ColorLike|undefined), strokeWidth: number,
|
* @typedef {{strokeStyle: (module:ol/colorlike~ColorLike|undefined), strokeWidth: number,
|
||||||
* size: number, lineDash: Array.<number>}}
|
* size: number, lineDash: Array.<number>}}
|
||||||
*/
|
*/
|
||||||
ol.CircleRenderOptions;
|
ol.CircleRenderOptions;
|
||||||
@@ -223,7 +223,7 @@ ol.RasterOperation;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{
|
* @typedef {{
|
||||||
* strokeStyle: (ol.ColorLike|undefined),
|
* strokeStyle: (module:ol/colorlike~ColorLike|undefined),
|
||||||
* strokeWidth: number,
|
* strokeWidth: number,
|
||||||
* size: number,
|
* size: number,
|
||||||
* lineCap: string,
|
* lineCap: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user