@finos/perspective-viewer
Version:
The `<perspective-viewer>` Custom Element, frontend for Perspective.js
32 lines (31 loc) • 1.22 kB
TypeScript
import type { CustomNumberFormatConfig } from "./CustomNumberFormatConfig.js";
import type { DatetimeColorMode } from "./DatetimeColorMode.js";
import type { DatetimeFormatType } from "./DatetimeFormatType.js";
import type { FormatMode } from "./FormatMode.js";
import type { NumberBackgroundMode } from "./NumberBackgroundMode.js";
import type { NumberForegroundMode } from "./NumberForegroundMode.js";
import type { StringColorMode } from "./StringColorMode.js";
/**
* The value de/serialized and stored in the viewer config.
* Also passed to the plugin via `plugin.save()`.
*/
export type ColumnConfigValues = {
symbols?: {
[key in string]?: string;
};
number_format?: CustomNumberFormatConfig | null;
aggregate_depth?: number;
number_fg_mode?: NumberForegroundMode;
number_bg_mode?: NumberBackgroundMode;
pos_fg_color: string | null;
neg_fg_color: string | null;
pos_bg_color: string | null;
neg_bg_color: string | null;
fg_gradient: number | null;
bg_gradient: number | null;
format?: FormatMode;
string_color_mode?: StringColorMode;
color?: string | null;
date_format?: DatetimeFormatType;
datetime_color_mode?: DatetimeColorMode;
};