@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
28 lines • 772 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Positions = void 0;
const index_1 = require("./../index");
class Positions {
constructor(data) {
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
if (typeof data.rectangle !== "undefined") {
return index_1.AnnotationRectangle.fromJson(data);
}
if (typeof data.point !== "undefined") {
return index_1.AnnotationPoint.fromJson(data);
}
return new Positions(data);
}
toJson() {
return {};
}
clone() {
return Positions.fromJson(this.toJson());
}
}
exports.Positions = Positions;
//# sourceMappingURL=Positions.js.map