katucharts.js 0.2.4 → 0.2.5

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.
@@ -34,6 +34,7 @@ export declare class Chart {
34
34
  private clipPathId;
35
35
  private chartWidth;
36
36
  private chartHeight;
37
+ private autoHeight;
37
38
  private resizeObserver;
38
39
  private titleGroup;
39
40
  private stackLabelsGroup;
@@ -50,6 +51,37 @@ export declare class Chart {
50
51
  private axes;
51
52
  private createFixedAxisOverlay;
52
53
  private getDefaultHeightAspectRatio;
54
+ /**
55
+ * Minimum usable plot-area height for an auto-sized chart. Below this the
56
+ * series get squeezed into an unreadable strip on narrow viewports.
57
+ */
58
+ private static readonly MIN_AUTO_PLOT_HEIGHT;
59
+ /**
60
+ * Hard ceiling for auto-grown height so a chart with extreme fixed overhead
61
+ * (very long rotated labels, large legends) can't expand without bound.
62
+ */
63
+ private static readonly MAX_AUTO_HEIGHT;
64
+ /**
65
+ * Minimum height per category band on a vertical category axis (heatmap rows,
66
+ * inverted/bar categories) so row labels don't overlap.
67
+ */
68
+ private static readonly MIN_CATEGORY_ROW_HEIGHT;
69
+ /**
70
+ * When the height is derived rather than configured, a chart on a narrow
71
+ * viewport can end up shorter than the fixed vertical overhead (title,
72
+ * subtitle, legend, axis labels), collapsing the plot area to nothing.
73
+ *
74
+ * The overhead is independent of the chart height, so a single probe layout
75
+ * at a tall height yields the true overhead; the height is then grown just
76
+ * enough to give the plot area a usable minimum.
77
+ */
78
+ private fitHeightToContent;
79
+ /**
80
+ * Categories rendered down the vertical axis (heatmap rows, or the category
81
+ * axis of an inverted/bar chart). Each one needs a minimum band so the labels
82
+ * stay legible instead of piling up when the plot is short.
83
+ */
84
+ private verticalCategoryCount;
53
85
  private resolveHeight;
54
86
  private applyChartStyles;
55
87
  private computeLayout;