UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

41 lines 1.67 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SetOCGStateActionSetLayerState = void 0; const index_1 = require("./../index"); class SetOCGStateActionSetLayerState { constructor(data) { this.layerState = (data.layerState || []).map(index_1.LayerStateSetOCGStateAction.fromJson); let preserveRadioButtonRelationDefault = true; this.preserveRadioButtonRelation = typeof (data === null || data === void 0 ? void 0 : data.preserveRadioButtonRelation) !== "undefined" ? data === null || data === void 0 ? void 0 : data.preserveRadioButtonRelation : preserveRadioButtonRelationDefault; } static getLayerStateDefault() { return []; } static getLayerStateDescription() { return ""; } static getPreserveRadioButtonRelationDefault() { return true; } static getPreserveRadioButtonRelationDescription() { return "When set to true, connected radio button states shall be preserved."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new SetOCGStateActionSetLayerState(data); } toJson() { var _a; return { 'layerState': (_a = this.layerState) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()), 'preserveRadioButtonRelation': this.preserveRadioButtonRelation, }; } clone() { return SetOCGStateActionSetLayerState.fromJson(this.toJson()); } } exports.SetOCGStateActionSetLayerState = SetOCGStateActionSetLayerState; //# sourceMappingURL=SetOCGStateActionSetLayerState.js.map