ingred-ui 37.5.0 → 37.6.0

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,2 +1,2 @@
1
- export { computeMaxStackedTotal, computeYTicks } from "./scale";
1
+ export { computeFixedIntervalYTicks, computeMaxStackedTotal, computeYTicks, getAxisMax, } from "./scale";
2
2
  export { formatChartPercentValue, getStackedPercentMaxValue, normalizeStackedSeriesToPercent, } from "./normalizeStackedSeries";
@@ -1,2 +1,16 @@
1
- export declare function computeYTicks(maxValue: number, tickCount: number): number[];
1
+ /**
2
+ * 縦軸の目盛り。最後の値が軸の最大値で、データの最大値以上になる。
3
+ * その最大値でもう一度呼んでも、同じ目盛りを返す。
4
+ * within は凡例の出し入れ中だけ使い、補間中の最大値を超えない切りのいい目盛りにする。
5
+ */
6
+ export declare function computeYTicks(maxValue: number, intervalCount: number, options?: {
7
+ within?: boolean;
8
+ }): number[];
9
+ /**
10
+ * 区間数を固定した 1 / 2 / 5 の目盛り。最後の値が軸の最大値。
11
+ * 複合グラフの右軸を、左軸と同じ本数に揃えるときに使う。
12
+ */
13
+ export declare function computeFixedIntervalYTicks(maxValue: number, intervalCount: number): number[];
14
+ /** computeYTicks の最後の値。描画の分母に使う */
15
+ export declare function getAxisMax(maxValue: number, intervalCount: number): number;
2
16
  export declare function computeMaxStackedTotal(datasets: (number | null)[][], categoryCount?: number): number;