all files / graphics/figures/ rectangle-area.js

54.35% Statements 25/46
47.83% Branches 11/23
44.44% Functions 8/18
51.16% Lines 22/43
11 statements, 6 functions, 9 branches Ignored     
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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89                                                                                                                                     
/* istanbul ignore next */ 
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
define(["require", "exports", "./../pdf-pen", "./../../drawing/pdf-drawing", "./../figures/base/fill-element"], function (require, exports, pdf_pen_1, pdf_drawing_1, fill_element_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var PdfRectangleArea = (function (_super) {
        __extends(PdfRectangleArea, _super);
        function PdfRectangleArea(arg1, arg2, arg3, arg4, arg5, arg6) {
            var _this = _super.call(this) || this;
            _this.bounds = new pdf_drawing_1.RectangleF(0, 0, 0, 0);
            if (typeof arg1 === 'undefined') {
            }
            else if (arg1 instanceof pdf_pen_1.PdfPen) {
                _this = _super.call(this, arg1, arg2) || this;
                if (arg3 instanceof pdf_drawing_1.RectangleF) {
                    _this.bounds = arg3;
                }
                else {
                    _this.bounds = new pdf_drawing_1.RectangleF(arg3, arg4, arg5, arg6);
                }
            }
            else if (arg1 instanceof pdf_drawing_1.RectangleF) {
                _this.bounds = arg1;
            }
            else {
                _this.bounds = new pdf_drawing_1.RectangleF(arg1, arg2, arg3, arg4);
            }
            return _this;
        }
        Object.defineProperty(PdfRectangleArea.prototype, "x", {
            get: function () {
                return this.bounds.x;
            },
            set: function (value) {
                this.bounds.x = value;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(PdfRectangleArea.prototype, "y", {
            get: function () {
                return this.bounds.y;
            },
            set: function (value) {
                this.bounds.y = value;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(PdfRectangleArea.prototype, "width", {
            get: function () {
                return this.bounds.width;
            },
            set: function (value) {
                this.bounds.width = value;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(PdfRectangleArea.prototype, "height", {
            get: function () {
                return this.bounds.height;
            },
            set: function (value) {
                this.bounds.height = value;
            },
            enumerable: true,
            configurable: true
        });
        PdfRectangleArea.prototype.getBoundsInternal = function () {
            return this.bounds;
        };
        return PdfRectangleArea;
    }(fill_element_1.PdfFillElement));
    exports.PdfRectangleArea = PdfRectangleArea;
});