2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added class to calculate context state while chart lines are filtering.

This commit is contained in:
23rd
2023-07-14 07:25:17 +03:00
committed by John Preston
parent 13959ca36c
commit e6559276c0
8 changed files with 125 additions and 58 deletions

View File

@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_statistics.h"
#include "statistics/chart_horizontal_lines_data.h"
#include "statistics/chart_line_view_context.h"
#include "statistics/statistics_common.h"
#include "ui/effects/animation_value.h"
#include "ui/effects/animations.h"
@@ -48,7 +49,7 @@ private:
void setXPercentageLimits(
Data::StatisticalChart &chartData,
Limits xPercentageLimits,
std::vector<ChartLineViewContext> &chartLinesViewContext,
const ChartLineViewContext &chartLinesViewContext,
crl::time now);
void start();
void finish();
@@ -58,7 +59,7 @@ private:
crl::time now,
std::vector<ChartHorizontalLinesData> &horizontalLines,
std::vector<BottomCaptionLineData> &dateLines,
std::vector<ChartLineViewContext> &chartLinesViewContext);
ChartLineViewContext &chartLinesViewContext);
[[nodiscard]] Limits currentXLimits() const;
[[nodiscard]] Limits currentXIndices() const;
@@ -119,7 +120,7 @@ private:
base::unique_qptr<ChartLinesFilterWidget> _filterButtons;
Data::StatisticalChart _chartData;
std::vector<ChartLineViewContext> _animatedChartLines;
ChartLineViewContext _animatedChartLines;
struct {
base::unique_qptr<PointDetailsWidget> widget;