TextStyleResolver Class @beta

Resolves the effective style of TextBlockComponents and Leaders, taking into account overrides of the instance and its parent(s).

Methods

Name Description
constructor(args: TextStyleResolverArgs): TextStyleResolver    
resolveIndentation(styleOverrides: TextStyleSettingsProps, depth: number): number Computes the indentation based on its style and nesting depth.  
resolveMarkerText(overrides: TextStyleSettingsProps, index: number): string    
resolveSettings(overrides: TextStyleSettingsProps, isLeader: booleanfalse): TextStyleSettings Resolves the effective text style settings for a given TextBlockComponent, applying block-level overrides.  

Properties

Name Type Description
blockSettings Readonly TextStyleSettings The resolved style of the TextBlock.  

Defined in

Last Updated: 07 October, 2025