Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 992 Bytes

counter-style.counterstylerenderer.maxcounterleninrange.md

File metadata and controls

29 lines (17 loc) · 992 Bytes

Home > @jsamr/counter-style > CounterStyleRenderer > maxCounterLenInRange

CounterStyleRenderer.maxCounterLenInRange() method

Get the maximum counter representation length given an index range. If a fallback is defined, it will be used for values outside the range boundaries of this renderer.

Signature:

maxCounterLenInRange(min: number, max: number): number;

Parameters

Parameter Type Description
min number The minimum inclusive value.
max number The maximum inclusive value.

Returns:

number

Remarks

This method doesn't take into account unicode grapheme clusters.