@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
31 lines • 911 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OCGSelection = void 0;
class OCGSelection {
constructor(data) {
let nameDefault = "";
this.name = typeof (data === null || data === void 0 ? void 0 : data.name) !== "undefined" ? data === null || data === void 0 ? void 0 : data.name : nameDefault;
}
static getNameDefault() {
return "";
}
static getNameDescription() {
return "The name of the layer that should be activated.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new OCGSelection(data);
}
toJson() {
return {
'name': this.name,
};
}
clone() {
return OCGSelection.fromJson(this.toJson());
}
}
exports.OCGSelection = OCGSelection;
//# sourceMappingURL=OCGSelection.js.map