@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
28 lines • 916 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolboxScale = void 0;
const index_1 = require("./../index");
class ToolboxScale extends index_1.BaseToolbox {
constructor(data) {
super(data);
this.scale = index_1.ToolboxScaleScale.fromJson(data === null || data === void 0 ? void 0 : data.scale);
}
static getScaleDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new ToolboxScale(data);
}
toJson() {
var _a;
return Object.assign(Object.assign({}, (super.toJson())), { 'scale': (_a = this.scale) === null || _a === void 0 ? void 0 : _a.toJson() });
}
clone() {
return ToolboxScale.fromJson(this.toJson());
}
}
exports.ToolboxScale = ToolboxScale;
//# sourceMappingURL=ToolboxScale.js.map