define(["require", "exports", "./../../drawing/pdf-drawing", "./automatic-field"], function (require, exports, pdf_drawing_1, automatic_field_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var PdfAutomaticFieldInfo = (function () {
function PdfAutomaticFieldInfo(field, location, scaleX, scaleY) {
this.pageNumberFieldLocation = new pdf_drawing_1.PointF();
this.pageNumberField = null;
this.scaleX = 1;
this.scaleY = 1;
Iif (typeof location === 'undefined' && field instanceof PdfAutomaticFieldInfo) {
this.pageNumberField = field.field;
this.pageNumberFieldLocation = field.location;
this.scaleX = field.scalingX;
this.scaleY = field.scalingY;
}
else Eif (typeof scaleX === 'undefined' && location instanceof pdf_drawing_1.PointF && field instanceof automatic_field_1.PdfAutomaticField) {
this.pageNumberField = field;
this.pageNumberFieldLocation = location;
}
else {
this.pageNumberField = field;
this.pageNumberFieldLocation = location;
this.scaleX = scaleX;
this.scaleY = scaleY;
}
}
Object.defineProperty(PdfAutomaticFieldInfo.prototype, "location", {
get: function () {
return this.pageNumberFieldLocation;
},
set: function (value) {
this.pageNumberFieldLocation = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(PdfAutomaticFieldInfo.prototype, "field", {
get: function () {
return this.pageNumberField;
},
set: function (value) {
this.pageNumberField = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(PdfAutomaticFieldInfo.prototype, "scalingX", {
get: function () {
return this.scaleX;
},
set: function (value) {
this.scaleX = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(PdfAutomaticFieldInfo.prototype, "scalingY", {
get: function () {
return this.scaleY;
},
set: function (value) {
this.scaleY = value;
},
enumerable: true,
configurable: true
});
return PdfAutomaticFieldInfo;
}());
exports.PdfAutomaticFieldInfo = PdfAutomaticFieldInfo;
});
|