You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.8 KiB

export default Fill;
export type Options = {
/**
* 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.
*/
color?: import("../color.js").Color | import("../colorlike.js").ColorLike | null | undefined;
};
/**
* @module ol/style/Fill
*/
/**
* @typedef {Object} Options
* @property {import("../color.js").Color|import("../colorlike.js").ColorLike|null} [color=null] 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.
* @api
*/
declare class Fill {
/**
* @param {Options} [options] Options.
*/
constructor(options?: Options | undefined);
/**
* @private
* @type {import("../color.js").Color|import("../colorlike.js").ColorLike|null}
*/
private color_;
/**
* Clones the style. The color is not cloned if it is an {@link module:ol/colorlike~ColorLike}.
* @return {Fill} The cloned style.
* @api
*/
clone(): Fill;
/**
* Get the fill color.
* @return {import("../color.js").Color|import("../colorlike.js").ColorLike|null} Color.
* @api
*/
getColor(): import("../color.js").Color | import("../colorlike.js").ColorLike | null;
/**
* Set the color.
*
* @param {import("../color.js").Color|import("../colorlike.js").ColorLike|null} color Color.
* @api
*/
setColor(color: import("../color.js").Color | import("../colorlike.js").ColorLike | null): void;
}
//# sourceMappingURL=Fill.d.ts.map