@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
40 lines • 1.24 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BoxesToolboxOptions = void 0;
const index_1 = require("./../index");
class BoxesToolboxOptions {
constructor(data) {
this.remove = (data.remove || []).map(index_1.RemoveBoxes.fromJson);
this.resize = (data.resize || []).map(index_1.ResizeBoxes.fromJson);
}
static getRemoveDefault() {
return [];
}
static getRemoveDescription() {
return "";
}
static getResizeDefault() {
return [];
}
static getResizeDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new BoxesToolboxOptions(data);
}
toJson() {
var _a, _b;
return {
'remove': (_a = this.remove) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()),
'resize': (_b = this.resize) === null || _b === void 0 ? void 0 : _b.map((data) => data.toJson()),
};
}
clone() {
return BoxesToolboxOptions.fromJson(this.toJson());
}
}
exports.BoxesToolboxOptions = BoxesToolboxOptions;
//# sourceMappingURL=BoxesToolboxOptions.js.map