toOverrides Method

Serialize a subset of these settings to JSON, such that they can be applied to another DisplayStyleSettings to selectively override those settings.

toOverrides(options?: DisplayStyleOverridesOptions): DisplayStyleSettingsProps

see DisplayStyleSettings.applyOverrides to apply the overrides to another DisplayStyleSettings..

Parameter Type Description
options DisplayStyleOverridesOptions Specifies which settings should be serialized. By default, settings that are specific to an iModel (e.g., subcategory overrides) or project (e.g., context reality models)
are omitted, as are drawing aids (e.g., ACS triad and grid).

Returns - DisplayStyleSettingsProps

a JSON representation of the selected settings suitable for passing to DisplayStyleSettings.applyOverrides.

Defined in

Last Updated: 11 June, 2024