UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

40 lines 1.67 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MarkRelation = void 0; class MarkRelation { constructor(data) { let markedDefault = false; this.marked = typeof (data === null || data === void 0 ? void 0 : data.marked) !== "undefined" ? data === null || data === void 0 ? void 0 : data.marked : markedDefault; let objectIDDefault = ""; this.objectID = typeof (data === null || data === void 0 ? void 0 : data.objectID) !== "undefined" ? data === null || data === void 0 ? void 0 : data.objectID : objectIDDefault; } static getMarkedDefault() { return false; } static getMarkedDescription() { return "If this is set to true, the selected annotation has been marked, otherwise it has been unmarked."; } static getObjectIDDefault() { return ""; } static getObjectIDDescription() { return "The object ID of the annotation. **Info:** A PDF object ID consists of two numbers, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new MarkRelation(data); } toJson() { return { 'marked': this.marked, 'objectID': this.objectID, }; } clone() { return MarkRelation.fromJson(this.toJson()); } } exports.MarkRelation = MarkRelation; //# sourceMappingURL=MarkRelation.js.map