UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

40 lines (38 loc) 1.46 kB
import type Color from "../../Color.js"; import type { JSONSupport } from "../../core/JSONSupport.js"; import type { ColorLike } from "../../Color.js"; export interface ColorBackgroundProperties { /** * The color of the background. * This can be autocast with an array of rgb(a) values, named string, hex string or an hsl(a) string, * an object with `r`, `g`, `b`, and `a` properties, or a [Color](https://developers.arcgis.com/javascript/latest/references/core/Color/) object. * * @default "black" */ color?: ColorLike; } /** * Represents the background color of the [WebMap](https://developers.arcgis.com/javascript/latest/references/core/WebMap/) * when displayed in a [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/). * * @since 4.11 */ export default class ColorBackground extends JSONSupport { constructor(properties?: ColorBackgroundProperties); /** * The color of the background. * This can be autocast with an array of rgb(a) values, named string, hex string or an hsl(a) string, * an object with `r`, `g`, `b`, and `a` properties, or a [Color](https://developers.arcgis.com/javascript/latest/references/core/Color/) object. * * @default "black" */ get color(): Color; set color(value: ColorLike); /** * Creates a deep clone of the object. * * @returns A deep clone of the object that * invoked this method. */ clone(): ColorBackground; }