export const getChartPixelsPerPoint = ({ attributes, chartSettings, }) => {
    const { pixelsPerPoint: pixelsPerPointAttribute, } = attributes;
    if (typeof pixelsPerPointAttribute === "number") {
        return pixelsPerPointAttribute;
    }
    const pixelsPerPointSetting = chartSettings.pixelsPerPoint(attributes);
    return Math.max(...[
        pixelsPerPointSetting,
        window.NETDATA.options.current.pixels_per_point,
    ].filter((px) => typeof px === "number"));
};
//# sourceMappingURL=get-chart-pixels-per-point.js.map