@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
18 lines (17 loc) • 479 B
TypeScript
/**
* Background theme utils for Components.
*
* @internal
* @internal
*/
import type { Symbol2DUnion } from "../../symbols/types.js";
/**
* Determines the contrasting background theme ("light", "dark", or null) for a
* given symbol based on color luminance and a threshold.
*
* @param symbol
* @param threshold
* @internal
* @internal
*/
export function getContrastingBackgroundTheme(symbol: Symbol2DUnion, threshold?: number): "light" | "dark" | null | undefined;