From ac1a9e97edd60cc186e13d10319c811368d6b63c Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 27 Mar 2018 15:44:53 +0200 Subject: [PATCH] Move olx.style.FillOptions to src/ol/style/Fill --- externs/olx.js | 16 ---------------- src/ol/style/Fill.js | 11 ++++++++++- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 15afe4bd68..7543037d20 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -2655,22 +2655,6 @@ olx.style.CircleOptions.prototype.stroke; olx.style.CircleOptions.prototype.atlasManager; -/** - * @typedef {{color: (ol.Color|ol.ColorLike|undefined)}} - */ -olx.style.FillOptions; - - -/** - * 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.FillOptions.prototype.color; - - /** * @typedef {{anchor: (Array.|undefined), * anchorOrigin: (module:ol/style/IconOrigin~IconOrigin|undefined), diff --git a/src/ol/style/Fill.js b/src/ol/style/Fill.js index 7ee84718e3..20434c4085 100644 --- a/src/ol/style/Fill.js +++ b/src/ol/style/Fill.js @@ -4,12 +4,21 @@ import {getUid} from '../index.js'; import {asString} from '../color.js'; + +/** + * @typedef {Object} Options + * @property {module:ol/color~Color|module:ol/colorlike~ColorLike} [color] A color, gradient or pattern. + * See {@link module:ol/color~Color} and {@link module:ol/colorlike~ColorLike} for possible formats. + * Default null; if null, the Canvas/renderer default black will be used. + */ + + /** * @classdesc * Set fill style for vector features. * * @constructor - * @param {olx.style.FillOptions=} opt_options Options. + * @param {module:ol/style/Fill~Options=} opt_options Options. * @api */ const Fill = function(opt_options) {