UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

52 lines 2.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FitWidthDestinationFitWidth = void 0; class FitWidthDestinationFitWidth { constructor(data) { let metricsDefault = "px"; this.metrics = typeof (data === null || data === void 0 ? void 0 : data.metrics) !== "undefined" ? data === null || data === void 0 ? void 0 : data.metrics : metricsDefault; let pageDefault = 1; this.page = typeof (data === null || data === void 0 ? void 0 : data.page) !== "undefined" ? data === null || data === void 0 ? void 0 : data.page : pageDefault; let topOffsetDefault = 0; this.topOffset = typeof (data === null || data === void 0 ? void 0 : data.topOffset) !== "undefined" ? data === null || data === void 0 ? void 0 : data.topOffset : topOffsetDefault; } static getMetricsDefault() { return "px"; } static getMetricsDescription() { return "Unit for the X-axis\/Y-axis position and signature field height and width arguments:\n\n* pt = Points(1\/72 inch)\n* pc = Picas(12 points)\n* px = Pixels(1\/96 inch)\n* mm = Millimeters\n* in = Inches"; } static getPageDefault() { return 1; } static getPageDescription() { return "The document page to which the jump will be."; } static getPageMin() { return 1; } static getTopOffsetDefault() { return 0; } static getTopOffsetDescription() { return "The area's offset from the top page margin."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new FitWidthDestinationFitWidth(data); } toJson() { return { 'metrics': this.metrics, 'page': this.page, 'topOffset': this.topOffset, }; } clone() { return FitWidthDestinationFitWidth.fromJson(this.toJson()); } } exports.FitWidthDestinationFitWidth = FitWidthDestinationFitWidth; //# sourceMappingURL=FitWidthDestinationFitWidth.js.map