UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

40 lines 1.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VisibilityBackgroundBaseSettings = void 0; class VisibilityBackgroundBaseSettings { constructor(data) { let onPrintDefault = true; this.onPrint = typeof (data === null || data === void 0 ? void 0 : data.onPrint) !== "undefined" ? data === null || data === void 0 ? void 0 : data.onPrint : onPrintDefault; let onScreenDefault = true; this.onScreen = typeof (data === null || data === void 0 ? void 0 : data.onScreen) !== "undefined" ? data === null || data === void 0 ? void 0 : data.onScreen : onScreenDefault; } static getOnPrintDefault() { return true; } static getOnPrintDescription() { return "If true, the background will be printed when the document is printed."; } static getOnScreenDefault() { return true; } static getOnScreenDescription() { return "If true, the background will be shown when the document is displayed."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new VisibilityBackgroundBaseSettings(data); } toJson() { return { 'onPrint': this.onPrint, 'onScreen': this.onScreen, }; } clone() { return VisibilityBackgroundBaseSettings.fromJson(this.toJson()); } } exports.VisibilityBackgroundBaseSettings = VisibilityBackgroundBaseSettings; //# sourceMappingURL=VisibilityBackgroundBaseSettings.js.map