Skip to content

Type Alias: LayoutUpdate<L> ​

ts
type LayoutUpdate<L> = { readonly [K in keyof L]?: L[K] | null } & AttributeUpdate;

Layout edits for relayout: attribute paths ('xaxis.range[0]', untyped) and whole layout attributes, typed like the layout ({ title: { text: 'Sales' } }). null resets an attribute to its default.

Type Parameters ​

Type ParameterDefault typeDescription
L extends objectBaseLayoutThe layout type: the base layout by default, the full bundle's Layout there.

Released under the MIT License.