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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user