devexpress-reporting
Version:
DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.
31 lines (30 loc) • 1.03 kB
JavaScript
/**
* DevExpress HTML/JS Reporting (designer\bands\xrMarginBands.js)
* Version: 24.2.6
* Build date: Mar 18, 2025
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* License: https://www.devexpress.com/Support/EULAs/universal.xml
*/
import * as ko from 'knockout';
import { BandSurface, BandViewModel } from './xrBand';
export class TopMarginBand extends BandViewModel {
initHeight() {
this.height = this.parentModel() && this.root.margins.top || ko.observable(0);
super.initHeight();
}
}
export class BottomMarginBand extends BandViewModel {
initHeight() {
this.height = this.parentModel() && this.root.margins.bottom || ko.observable(0);
super.initHeight();
}
}
export class BottomMarginSurface extends BandSurface {
getBackgroundRect() {
const top = this.parent.pageHeight() - this._height(), bottom = undefined, height = this._height();
return { top, bottom, height };
}
get parent() {
return this._getParent();
}
}