UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

59 lines 2.87 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GoTo3DViewActionGoTo3DView = void 0; const index_1 = require("./../index"); class GoTo3DViewActionGoTo3DView { constructor(data) { this.annotation = index_1.AnnotationSelection.fromJson(data.annotation); let indexDefault = 0; this.index = typeof (data === null || data === void 0 ? void 0 : data.index) !== "undefined" ? data === null || data === void 0 ? void 0 : data.index : indexDefault; let nameDefault = ""; this.name = typeof (data === null || data === void 0 ? void 0 : data.name) !== "undefined" ? data === null || data === void 0 ? void 0 : data.name : nameDefault; let relativeDefault = "Default"; this.relative = typeof (data === null || data === void 0 ? void 0 : data.relative) !== "undefined" ? data === null || data === void 0 ? void 0 : data.relative : relativeDefault; } static getAnnotationDescription() { return ""; } static getIndexDefault() { return 0; } static getIndexDescription() { return "The index for the 3D annotation view. This value is an alternative to \"name\" and \"relative\" and does not have to be set if either one of these values are specified."; } static getIndexMin() { return 0; } static getNameDefault() { return ""; } static getNameDescription() { return "The name of the 3D annotation view. This value is an alternative to \"index\" and \"relative\" and does not have to be set if either one of these values are specified."; } static getRelativeDefault() { return "Default"; } static getRelativeDescription() { return "A view of the 3D annotation that has been defined relative to the currently visualized view. This value is an alternative to \"name\" and \"index\" and does not have to be set if either one of these values are specified.\n\n* First = The first view of the 3D annotation.\n* Last = The last view of the 3D annotation.\n* Next = The next view of the 3D annotation.\n* Previous = The previous view of the 3D annotation.\n* Default = The default view of the 3D annotation."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new GoTo3DViewActionGoTo3DView(data); } toJson() { var _a; return { 'annotation': (_a = this.annotation) === null || _a === void 0 ? void 0 : _a.toJson(), 'index': this.index, 'name': this.name, 'relative': this.relative, }; } clone() { return GoTo3DViewActionGoTo3DView.fromJson(this.toJson()); } } exports.GoTo3DViewActionGoTo3DView = GoTo3DViewActionGoTo3DView; //# sourceMappingURL=GoTo3DViewActionGoTo3DView.js.map