@gravitee/gamma-lib-observability 1.39.0 → 1.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"doughnut-center-stat.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/doughnut-center-stat.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAkBzD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,GACjC,kBAAkB,GAAG,SAAS,CAMhC"}
1
+ {"version":3,"file":"doughnut-center-stat.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/doughnut-center-stat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAkBzD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,GACjC,kBAAkB,GAAG,SAAS,CAMhC"}
@@ -18,6 +18,16 @@ export declare function humanizeAnalyticsToken(token: string): string;
18
18
  export declare function resolveFacetValueLabel(input: FacetValueLabelInput): string;
19
19
  /** Sums facet bucket values to obtain the total used to compute each share %. */
20
20
  export declare function computeFacetTotal(values: readonly number[]): number;
21
+ /**
22
+ * Formats a facet total for display in a confined spot (the doughnut center
23
+ * hole). `compactTick` alone is not enough: it is an axis tick formatter that
24
+ * only compacts from 1 000 upward and returns smaller values verbatim, so a
25
+ * fractional total would render with full float precision. Below 1 000 the
26
+ * total is capped at 2 decimals instead; a non-zero total that would round
27
+ * down to `0` (or `-0` for negatives) renders as `<0.01` / `>-0.01` so it
28
+ * does not read as no total at all.
29
+ */
30
+ export declare function formatFacetTotal(total: number): string;
21
31
  /**
22
32
  * Builds a tooltip value formatter that appends each value's share of the facet
23
33
  * total, e.g. `4 (44%)`. Falls back to the formatted value alone when the total
@@ -1 +1 @@
1
- {"version":3,"file":"facet-value-format.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/facet-value-format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAO5D;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAK1E;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAEnE;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,SAAS,CAU5F"}
1
+ {"version":3,"file":"facet-value-format.d.ts","sourceRoot":"","sources":["../../../src/dashboards/renderers/facet-value-format.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAA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