UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 1.87 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HeaderFooterPositions = void 0; class HeaderFooterPositions { 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 "Used to define the text content of the header\/footer in the centre."; } static getLeftDefault() { return ""; } static getLeftDescription() { return "Used to define the text content of the header\/footer on the left page margin."; } static getRightDefault() { return ""; } static getRightDescription() { return "Used to define the text content of the header\/footer on the right page margin."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new HeaderFooterPositions(data); } toJson() { return { 'center': this.center, 'left': this.left, 'right': this.right, }; } clone() { return HeaderFooterPositions.fromJson(this.toJson()); } } exports.HeaderFooterPositions = HeaderFooterPositions; //# sourceMappingURL=HeaderFooterPositions.js.map