mainPaneHeight property
double
get
mainPaneHeight
Height of the main chart canvas pane (excluding sub-pane and bottom time axis).
Implementation
double get mainPaneHeight {
final totalHeight = _viewport.viewportHeight;
final availableHeight = (totalHeight - 24.0).clamp(10.0, totalHeight);
final hasSubPane = _subPaneResult != null || _subPaneResults.isNotEmpty;
if (hasSubPane) {
final totalSubRatio = (_subPaneRatio * _subPaneResults.length.clamp(1, 4)).clamp(0.15, 0.55);
return availableHeight * (1.0 - totalSubRatio);
}
return availableHeight;
}