@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
41 lines • 1.42 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HideActionHideAnnotation = void 0;
const index_1 = require("./../index");
class HideActionHideAnnotation {
constructor(data) {
this.annotation = (data.annotation || []).map(index_1.AnnotationSelection.fromJson);
let hideDefault = true;
this.hide = typeof (data === null || data === void 0 ? void 0 : data.hide) !== "undefined" ? data === null || data === void 0 ? void 0 : data.hide : hideDefault;
}
static getAnnotationDefault() {
return [];
}
static getAnnotationDescription() {
return "";
}
static getHideDefault() {
return true;
}
static getHideDescription() {
return "Used to define whether the selected annotations should be hidden or shown.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new HideActionHideAnnotation(data);
}
toJson() {
var _a;
return {
'annotation': (_a = this.annotation) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()),
'hide': this.hide,
};
}
clone() {
return HideActionHideAnnotation.fromJson(this.toJson());
}
}
exports.HideActionHideAnnotation = HideActionHideAnnotation;
//# sourceMappingURL=HideActionHideAnnotation.js.map