UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 1.76 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FooterHeaderFooter = void 0; class FooterHeaderFooter { constructor(data) { let centerDefault = ""; this.center = typeof (data === null || data === void 0 ? void 0 : data.center) !== "undefined" ? data === null || data === void 0 ? void 0 : data.center : centerDefault; let leftDefault = ""; this.left = typeof (data === null || data === void 0 ? void 0 : data.left) !== "undefined" ? data === null || data === void 0 ? void 0 : data.left : leftDefault; let rightDefault = ""; this.right = typeof (data === null || data === void 0 ? void 0 : data.right) !== "undefined" ? data === null || data === void 0 ? void 0 : data.right : rightDefault; } static getCenterDefault() { return ""; } static getCenterDescription() { return "The value displayed at the center of the footer."; } static getLeftDefault() { return ""; } static getLeftDescription() { return "The value displayed at the left of the footer."; } static getRightDefault() { return ""; } static getRightDescription() { return "The value displayed at the right of the footer."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new FooterHeaderFooter(data); } toJson() { return { 'center': this.center, 'left': this.left, 'right': this.right, }; } clone() { return FooterHeaderFooter.fromJson(this.toJson()); } } exports.FooterHeaderFooter = FooterHeaderFooter; //# sourceMappingURL=FooterHeaderFooter.js.map