@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
38 lines • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Popup = void 0;
const index_1 = require("./../index");
class Popup {
constructor(data) {
let isOpenDefault = false;
this.isOpen = typeof (data === null || data === void 0 ? void 0 : data.isOpen) !== "undefined" ? data === null || data === void 0 ? void 0 : data.isOpen : isOpenDefault;
this.rectangle = index_1.MetadataRectangle.fromJson(data.rectangle);
}
static getIsOpenDefault() {
return false;
}
static getIsOpenDescription() {
return "When set to true, the popup shall be displayed, when opening the document.";
}
static getRectangleDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new Popup(data);
}
toJson() {
var _a;
return {
'isOpen': this.isOpen,
'rectangle': (_a = this.rectangle) === null || _a === void 0 ? void 0 : _a.toJson(),
};
}
clone() {
return Popup.fromJson(this.toJson());
}
}
exports.Popup = Popup;
//# sourceMappingURL=Popup.js.map