@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
40 lines • 1.26 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AnnotationPointPoint = void 0;
class AnnotationPointPoint {
constructor(data) {
let xDefault = 0;
this.x = typeof (data === null || data === void 0 ? void 0 : data.x) !== "undefined" ? data === null || data === void 0 ? void 0 : data.x : xDefault;
let yDefault = 0;
this.y = typeof (data === null || data === void 0 ? void 0 : data.y) !== "undefined" ? data === null || data === void 0 ? void 0 : data.y : yDefault;
}
static getXDefault() {
return 0;
}
static getXDescription() {
return "The x coordinate in points.";
}
static getYDefault() {
return 0;
}
static getYDescription() {
return "The y coordinate in points.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new AnnotationPointPoint(data);
}
toJson() {
return {
'x': this.x,
'y': this.y,
};
}
clone() {
return AnnotationPointPoint.fromJson(this.toJson());
}
}
exports.AnnotationPointPoint = AnnotationPointPoint;
//# sourceMappingURL=AnnotationPointPoint.js.map