UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

34 lines 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FitBoundingBoxDestinationFitBoundingBox = void 0; class FitBoundingBoxDestinationFitBoundingBox { constructor(data) { 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; } static getPageDefault() { return 1; } static getPageDescription() { return "The document page to which the jump will be."; } static getPageMin() { return 1; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new FitBoundingBoxDestinationFitBoundingBox(data); } toJson() { return { 'page': this.page, }; } clone() { return FitBoundingBoxDestinationFitBoundingBox.fromJson(this.toJson()); } } exports.FitBoundingBoxDestinationFitBoundingBox = FitBoundingBoxDestinationFitBoundingBox; //# sourceMappingURL=FitBoundingBoxDestinationFitBoundingBox.js.map