devexpress-reporting
Version:
DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.
18 lines (17 loc) • 652 B
JavaScript
/**
* DevExpress HTML/JS Reporting (designer\wizard\internal\_pageSetupUtils.js)
* Version: 25.2.3
* Build date: Dec 15, 2025
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* License: https://www.devexpress.com/Support/EULAs/universal.xml
*/
import { pixelToUnits, unitsToPixel } from '@devexpress/analytics-core/analytics-internal';
import { ReportUnit } from '../reportWizardState';
export class PageSetupHelper {
static getConverter(from, to) {
return (val) => {
const pixels = unitsToPixel(val, ReportUnit[from], 1);
return pixelToUnits(pixels, ReportUnit[to], 1);
};
}
}