findFeatureOverrideProviderOfType Method

Locate the first registered FeatureOverrideProvider of the specified class. For example, to locate a registered EmphasizeElements provider:

const provider: EmphasizeElements = viewport.findFeatureOverrideProviderOfType<EmphasizeElements>(EmphasizeElements);

findFeatureOverrideProviderOfType<T>(type: Constructor<T>): undefined | T

see Viewport.findFeatureOverrideProvider to locate a registered provider matching any arbitrary criterion.

Parameter Type Description
type Constructor<T>  

Returns - undefined | T

Defined in

Last Updated: 11 June, 2024