all files / drawing/ pdf-drawing.js

84.29% Statements 59/70
76.19% Branches 16/21
64.29% Functions 9/14
84.29% Lines 59/70
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 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126   2667× 14× 14×     2653× 2653×         2653× 2653×               4176×         4176× 4176×         4176× 4176×               2507×     2503× 1395× 1395× 1395× 1395× 1395× 1395×     1108× 1108× 1108× 1108× 1108× 1108× 1108× 1108×                                                                    
define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var PointF = (function () {
        function PointF(x, y) {
            if (typeof x === 'undefined') {
                this.x = 0;
                this.y = 0;
            }
            else {
                Eif (x !== null) {
                    this.x = x;
                }
                else {
                    this.x = 0;
                }
                Eif (y !== null) {
                    this.y = y;
                }
                else {
                    this.y = 0;
                }
            }
        }
        return PointF;
    }());
    exports.PointF = PointF;
    var SizeF = (function () {
        function SizeF(width, height) {
            Iif (typeof height === 'undefined') {
                this.height = 0;
                this.width = 0;
            }
            else {
                Eif (height !== null) {
                    this.height = height;
                }
                else {
                    this.height = 0;
                }
                Eif (width !== null) {
                    this.width = width;
                }
                else {
                    this.width = 0;
                }
            }
        }
        return SizeF;
    }());
    exports.SizeF = SizeF;
    var RectangleF = (function () {
        function RectangleF(arg1, arg2, arg3, arg4) {
            if (typeof arg1 === typeof arg1 && typeof arg1 === 'undefined') {
                this.x = 0;
                this.y = 0;
                this.height = 0;
                this.width = 0;
            }
            else {
                if (arg1 instanceof PointF && arg2 instanceof SizeF && typeof arg3 === 'undefined') {
                    var pointf = arg1;
                    this.x = pointf.x;
                    this.y = pointf.y;
                    var sizef = arg2;
                    this.height = sizef.height;
                    this.width = sizef.width;
                }
                else {
                    var x = arg1;
                    var y = arg2;
                    var width = arg3;
                    var height = arg4;
                    this.x = x;
                    this.y = y;
                    this.height = height;
                    this.width = width;
                }
            }
        }
        return RectangleF;
    }());
    exports.RectangleF = RectangleF;
    var Rectangle = (function () {
        function Rectangle(left, top, right, bottom) {
            this.left = left;
            this.top = top;
            this.right = right;
            this.bottom = bottom;
        }
        Object.defineProperty(Rectangle.prototype, "width", {
            get: function () {
                return this.right - this.left;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(Rectangle.prototype, "height", {
            get: function () {
                return this.bottom - this.top;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(Rectangle.prototype, "topLeft", {
            get: function () {
                return new PointF(this.left, this.top);
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(Rectangle.prototype, "size", {
            get: function () {
                return new SizeF(this.width, this.height);
            },
            enumerable: true,
            configurable: true
        });
        Rectangle.prototype.toString = function () {
            return this.topLeft + 'x' + this.size;
        };
        return Rectangle;
    }());
    exports.Rectangle = Rectangle;
});