import { Color } from "../core/util/Color"; import { Theme } from "../core/Theme"; import type { Root } from "../core/Root"; /** * Options for {@link AdaptiveTheme}. */ export interface IAdaptiveThemeSettings { /** * The color the palette is built from, and its first color, as a hex * number, a CSS string or a [[Color]]. It also colors the primary buttons, * and in dark mode tints all interface colors. If not set, green `#4b8e39` * is used, and `baseColor2` defaults to yellow `#ffdd00`. */ baseColor?: number | string | Color; /** * A second color: the palette then runs as a gradient from `baseColor` to * this one, instead of spreading out over the color wheel. */ baseColor2?: number | string | Color; /** * Number of series colors to make. * * @default 10 */ count?: number; /** * Makes a dark theme, with a dark background and interface colors faintly * tinted with the hue of `baseColor`. * * @default false */ dark?: boolean; /** * Takes the colors in an alternating order (1, 4, 2, 5, 3, 6), so series * next to each other differ more. Most useful with `baseColor2`, whose * gradient puts similar colors side by side. * * @default false */ interleave?: boolean; /** * Fills map polygons with a mid shade of `baseColor`, as light as a map's * default land, instead of `baseColor` itself. * * @default false */ mapShade?: boolean; /** * Lightens (in dark mode) or darkens colors that would have too little * contrast with the background, keeping their hue: `true` for at least 3:1, * or a ratio, e.g. `4.5`. Applies to the series colors, `baseColor` and * `baseColor2` included, and the primary buttons. * * @default false */ keepContrast?: boolean | number; } /** * "Adaptive": makes a whole series palette from one or two colors. With one, * the other colors share an even lightness and spread out over the color * wheel; with two, they run as a gradient between them. The first color is * `baseColor` itself, so a brand color appears in the chart (unless * `keepContrast` has to change it). * * It is a function rather than a class, so that it can take settings: * * ```TypeScript * root.setThemes([ * am5themes_Adaptive(root, { baseColor: 0x2c6e91, dark: true }) * ]); * ``` * * @see {@link https://www.amcharts.com/docs/v5/concepts/themes/} for more info * @important */ export declare function AdaptiveTheme(root: Root, settings?: IAdaptiveThemeSettings): Theme; export declare namespace AdaptiveTheme { var _a: (root: Root, settings?: IAdaptiveThemeSettings) => Theme; export { _a as new }; } //# sourceMappingURL=AdaptiveTheme.d.ts.map