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: 26.1.3
* Build date: Jun 16, 2026
* Copyright (c) 2012 - 2026 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);
};
}
}