Move olx.style.FillOptions to src/ol/style/Fill

This commit is contained in:
Frederic Junod
2018-03-27 15:44:53 +02:00
parent 45ad265849
commit ac1a9e97ed
2 changed files with 10 additions and 17 deletions

View File

@@ -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.<number>|undefined),
* anchorOrigin: (module:ol/style/IconOrigin~IconOrigin|undefined),

View File

@@ -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) {