class EE::UI::Charts::AxisViewport

Mutable, per-view range in transformed coordinates.

#include <chartaxis.hpp>

class AxisViewport {
public:
    // methods

    DataRange range() const;
    bool manual() const;
    void fit(std::optional<DataRange> extent, const ChartAxis& axis);
    void setRange(DataRange range, const ChartAxis& axis);
    void zoom(double anchor, double factor, const ChartAxis& axis);
    void pan(double delta, const ChartAxis& axis);
    double toPixel(double value, float pixelStart, float pixelLength, bool inverted, const ChartAxis& axis) const;
    double fromPixel(float pixel, float pixelStart, float pixelLength, bool inverted, const ChartAxis& axis) const;
};