@graphty/graphty-element / session / BindingNumberFormat
Interface: BindingNumberFormat ​
Defined in: graphty-element/src/catalog/types.ts:902
How a binding writes a number as text: a label, a tooltip or a caption bound to a number value. Each field is the Intl.NumberFormat option of the same name; locale is its locale, the runtime's own when absent. Without a format a number is written in full, as String writes it.
Since ​
3.26.0
Properties ​
locale? ​
optionallocale?:string
Defined in: graphty-element/src/catalog/types.ts:908
A BCP 47 locale such as "en-US", which chooses the decimal and grouping marks.
maximumFractionDigits? ​
optionalmaximumFractionDigits?:number
Defined in: graphty-element/src/catalog/types.ts:904
The most digits after the decimal point, 0 to 100: 2 writes 129.64334 as 129.64.
maximumSignificantDigits? ​
optionalmaximumSignificantDigits?:number
Defined in: graphty-element/src/catalog/types.ts:906
The most significant digits, 1 to 21: 3 writes 129.64334 as 130 and 0.0123456 as 0.0123.