UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

29 lines 967 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PositionSimpleShapeAnnotation = void 0; const index_1 = require("./../index"); class PositionSimpleShapeAnnotation { constructor(data) { this.rectangle = index_1.Rectangle.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 PositionSimpleShapeAnnotation(data); } toJson() { var _a; return { 'rectangle': (_a = this.rectangle) === null || _a === void 0 ? void 0 : _a.toJson(), }; } clone() { return PositionSimpleShapeAnnotation.fromJson(this.toJson()); } } exports.PositionSimpleShapeAnnotation = PositionSimpleShapeAnnotation; //# sourceMappingURL=PositionSimpleShapeAnnotation.js.map