UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

46 lines 1.61 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DestinationEvent = void 0; const index_1 = require("./../index"); class DestinationEvent { constructor(data) { } static fromJson(data) { if (data === undefined || data === null) { return data; } if (typeof data.zoomPage !== "undefined") { return index_1.ZoomDestination.fromJson(data); } if (typeof data.fitPage !== "undefined") { return index_1.FitPageDestination.fromJson(data); } if (typeof data.fitBoundingBoxWidth !== "undefined") { return index_1.FitBoundingBoxWidthDestination.fromJson(data); } if (typeof data.fitWidth !== "undefined") { return index_1.FitWidthDestination.fromJson(data); } if (typeof data.fitHeight !== "undefined") { return index_1.FitHeightDestination.fromJson(data); } if (typeof data.fitRectangle !== "undefined") { return index_1.FitRectangleDestination.fromJson(data); } if (typeof data.fitBoundingBox !== "undefined") { return index_1.FitBoundingBoxDestination.fromJson(data); } if (typeof data.goToNamed !== "undefined") { return index_1.NamedDestination.fromJson(data); } return new DestinationEvent(data); } toJson() { return {}; } clone() { return DestinationEvent.fromJson(this.toJson()); } } exports.DestinationEvent = DestinationEvent; //# sourceMappingURL=DestinationEvent.js.map