UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

39 lines 1.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AppearanceSource = void 0; const index_1 = require("./../index"); class AppearanceSource { constructor(data) { this.image = index_1.AppearanceImage.fromJson(data === null || data === void 0 ? void 0 : data.image); this.pdf = index_1.AppearancePdf.fromJson(data === null || data === void 0 ? void 0 : data.pdf); this.svg = index_1.AppearanceSvg.fromJson(data === null || data === void 0 ? void 0 : data.svg); } static getImageDescription() { return ""; } static getPdfDescription() { return ""; } static getSvgDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new AppearanceSource(data); } toJson() { var _a, _b, _c; return { 'image': (_a = this.image) === null || _a === void 0 ? void 0 : _a.toJson(), 'pdf': (_b = this.pdf) === null || _b === void 0 ? void 0 : _b.toJson(), 'svg': (_c = this.svg) === null || _c === void 0 ? void 0 : _c.toJson(), }; } clone() { return AppearanceSource.fromJson(this.toJson()); } } exports.AppearanceSource = AppearanceSource; //# sourceMappingURL=AppearanceSource.js.map