UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

28 lines 981 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FitPageDestination = void 0; const index_1 = require("./../index"); class FitPageDestination extends index_1.DestinationEvent { constructor(data) { super(data); this.fitPage = index_1.FitPageDestinationFitPage.fromJson(data === null || data === void 0 ? void 0 : data.fitPage); } static getFitPageDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new FitPageDestination(data); } toJson() { var _a; return Object.assign(Object.assign({}, (super.toJson())), { 'fitPage': (_a = this.fitPage) === null || _a === void 0 ? void 0 : _a.toJson() }); } clone() { return FitPageDestination.fromJson(this.toJson()); } } exports.FitPageDestination = FitPageDestination; //# sourceMappingURL=FitPageDestination.js.map