all files / core/ pdf-page-import-options.js

35.71% Statements 10/28
0% Branches 0/24
18.18% Functions 2/11
35.71% Lines 10/28
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65                                                                                                              
define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var PdfPageImportOptions = (function () {
        function PdfPageImportOptions(options) {
            this._optimizeResources = true;
            this._groupFormFields = false;
            if (options && 'targetIndex' in options && options.targetIndex !== null && typeof options.targetIndex !== 'undefined') {
                this._targetIndex = options.targetIndex;
            }
            if (options && 'rotation' in options && options.rotation !== null && typeof options.rotation !== 'undefined') {
                this._rotation = options.rotation;
            }
            if (options && 'optimizeResources' in options && options.optimizeResources !== null && typeof options.optimizeResources !== 'undefined') {
                this._optimizeResources = options.optimizeResources;
            }
            if (options && 'groupFormFields' in options && options.groupFormFields !== null && typeof options.groupFormFields !== 'undefined') {
                this._groupFormFields = options.groupFormFields;
            }
        }
        Object.defineProperty(PdfPageImportOptions.prototype, "targetIndex", {
            get: function () {
                return this._targetIndex;
            },
            set: function (value) {
                this._targetIndex = value;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(PdfPageImportOptions.prototype, "rotation", {
            get: function () {
                return this._rotation;
            },
            set: function (value) {
                this._rotation = value;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(PdfPageImportOptions.prototype, "optimizeResources", {
            get: function () {
                return this._optimizeResources;
            },
            set: function (value) {
                this._optimizeResources = value;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(PdfPageImportOptions.prototype, "groupFormFields", {
            get: function () {
                return this._groupFormFields;
            },
            set: function (value) {
                this._groupFormFields = value;
            },
            enumerable: true,
            configurable: true
        });
        return PdfPageImportOptions;
    }());
    exports.PdfPageImportOptions = PdfPageImportOptions;
});