UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

31 lines 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConverterImage = void 0; class ConverterImage { constructor(data) { let maintainAspectRatioDefault = false; this.maintainAspectRatio = typeof (data === null || data === void 0 ? void 0 : data.maintainAspectRatio) !== "undefined" ? data === null || data === void 0 ? void 0 : data.maintainAspectRatio : maintainAspectRatioDefault; } static getMaintainAspectRatioDefault() { return false; } static getMaintainAspectRatioDescription() { return "If enabled (\"true\"), then the aspect ratio of the graphic will be maintained when the graphic is converted to a specified page size in the PDF. If no paper size is defined, then the aspect ratio does not matter, because the page in the PDF will then always have the size of the graphic."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new ConverterImage(data); } toJson() { return { 'maintainAspectRatio': this.maintainAspectRatio, }; } clone() { return ConverterImage.fromJson(this.toJson()); } } exports.ConverterImage = ConverterImage; //# sourceMappingURL=ConverterImage.js.map