UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

28 lines 994 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AnnotationRectangle = void 0; const index_1 = require("./../index"); class AnnotationRectangle extends index_1.Positions { constructor(data) { super(data); this.rectangle = index_1.AnnotationRectangleRectangle.fromJson(data === null || data === void 0 ? void 0 : data.rectangle); } static getRectangleDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new AnnotationRectangle(data); } toJson() { var _a; return Object.assign(Object.assign({}, (super.toJson())), { 'rectangle': (_a = this.rectangle) === null || _a === void 0 ? void 0 : _a.toJson() }); } clone() { return AnnotationRectangle.fromJson(this.toJson()); } } exports.AnnotationRectangle = AnnotationRectangle; //# sourceMappingURL=AnnotationRectangle.js.map