@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
49 lines • 2.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolboxAnnotationAnnotation = void 0;
const index_1 = require("./../index");
class ToolboxAnnotationAnnotation {
constructor(data) {
this.add = index_1.AddToolboxAnnotation.fromJson(data === null || data === void 0 ? void 0 : data.add);
this.clear = index_1.ClearToolboxAnnotation.fromJson(data === null || data === void 0 ? void 0 : data.clear);
this.comment = index_1.CommentToolboxAnnotation.fromJson(data === null || data === void 0 ? void 0 : data.comment);
this.edit = index_1.EditToolboxAnnotation.fromJson(data === null || data === void 0 ? void 0 : data.edit);
this.remove = index_1.RemoveToolboxAnnotation.fromJson(data === null || data === void 0 ? void 0 : data.remove);
}
static getAddDescription() {
return "";
}
static getClearDescription() {
return "";
}
static getCommentDescription() {
return "";
}
static getEditDescription() {
return "";
}
static getRemoveDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new ToolboxAnnotationAnnotation(data);
}
toJson() {
var _a, _b, _c, _d, _e;
return {
'add': (_a = this.add) === null || _a === void 0 ? void 0 : _a.toJson(),
'clear': (_b = this.clear) === null || _b === void 0 ? void 0 : _b.toJson(),
'comment': (_c = this.comment) === null || _c === void 0 ? void 0 : _c.toJson(),
'edit': (_d = this.edit) === null || _d === void 0 ? void 0 : _d.toJson(),
'remove': (_e = this.remove) === null || _e === void 0 ? void 0 : _e.toJson(),
};
}
clone() {
return ToolboxAnnotationAnnotation.fromJson(this.toJson());
}
}
exports.ToolboxAnnotationAnnotation = ToolboxAnnotationAnnotation;
//# sourceMappingURL=ToolboxAnnotationAnnotation.js.map