// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { DerivedTableConfig } from "./DerivedTableConfig.d.ts"; import type { Filter } from "./Filter.d.ts"; import type { Layout } from "./Layout.d.ts"; import type { OptionalUpdate } from "./OptionalUpdate.d.ts"; import type { ViewerConfigInitial } from "./ViewerConfigInitial.d.ts"; /** * The `restoreWorkspace()` argument: a field-wise update of the element's * workspace state, like [`ViewerConfigUpdate`] for a panel, where an absent * key is unchanged, `null` resets and a value replaces. * * [`ViewerConfigUpdate`]: super::ViewerConfigUpdate */ export type WorkspaceConfigUpdate = { /** * The `@perspective-dev/viewer` version a saved workspace was written * by, named in the error when such a workspace is rejected. */ version?: string, /** * The panel to activate with the settings sidebar open, by `panels` key * or existing panel id; `null` closes the sidebar. */ active?: OptionalUpdate, /** * The layout tree to stage, naming `panels` keys (or, without `panels`, * existing panel ids) at most once; a panel it omits is dropped. */ layout?: Layout, /** * The complete replacement panel set, each [`ViewerConfigInitial`] entry * creating a new panel (`{}` empties the element); absent keeps the * existing panels. */ panels?: { [key in string]?: ViewerConfigInitial }, /** * The complete replacement set of derived `Table`s, in any order (they * are built parent-first); absent keeps the current ones, `{}` deletes * them all. */ derived_tables?: { [key in string]?: DerivedTableConfig }, /** * The element-level cross-filter set applied to every detail panel as * one unattributed bucket, replacing the current set; `null` clears it. */ global_filters?: OptionalUpdate>, /** * The master (filter-source) panels by `panels` key or existing panel * id, unknown ids dropped with a warning; `null` demotes every panel. */ masters?: OptionalUpdate>, /** * Named color-scale definitions applied to the host (see * [`WorkspaceConfig::palette`]), replacing the previous palette; `null` * clears it. */ palette?: OptionalUpdate<{ [key in string]?: string }>, };