@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
58 lines • 2.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AnnotationRectangleRectangle = void 0;
class AnnotationRectangleRectangle {
constructor(data) {
let heightDefault = 0;
this.height = typeof (data === null || data === void 0 ? void 0 : data.height) !== "undefined" ? data === null || data === void 0 ? void 0 : data.height : heightDefault;
let widthDefault = 0;
this.width = typeof (data === null || data === void 0 ? void 0 : data.width) !== "undefined" ? data === null || data === void 0 ? void 0 : data.width : widthDefault;
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 getHeightDefault() {
return 0;
}
static getHeightDescription() {
return "The height of the rectangle in points.";
}
static getWidthDefault() {
return 0;
}
static getWidthDescription() {
return "The width of the rectangle in points.";
}
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 AnnotationRectangleRectangle(data);
}
toJson() {
return {
'height': this.height,
'width': this.width,
'x': this.x,
'y': this.y,
};
}
clone() {
return AnnotationRectangleRectangle.fromJson(this.toJson());
}
}
exports.AnnotationRectangleRectangle = AnnotationRectangleRectangle;
//# sourceMappingURL=AnnotationRectangleRectangle.js.map