define(["require", "exports", "./../enumerator"], function (require, exports, enumerator_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var PdfStringFormat = (function () {
function PdfStringFormat(arg1, arg2) {
this.horizontalScalingFactor = 100.0;
this.rightToLeft = false;
this._wordWrapType = enumerator_1._PdfWordWrapType.word;
this._isList = false;
this.lineLimit = true;
Eif (typeof arg1 !== 'undefined') {
this.alignment = arg1;
}
Eif (typeof arg2 !== 'undefined') {
this.lineAlignment = arg2;
}
else {
this.lineAlignment = PdfVerticalAlignment.top;
}
this.characterSpacing = 0;
this.wordSpacing = 0;
this.lineSpacing = 0;
this.clipPath = false;
this.firstLineIndent = 0;
this._internalParagraphIndent = 0;
this.measureTrailingSpaces = false;
this.noClip = false;
}
Object.defineProperty(PdfStringFormat.prototype, "paragraphIndent", {
get: function () {
return this._internalParagraphIndent;
},
set: function (value) {
this._internalParagraphIndent = value;
this.firstLineIndent = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(PdfStringFormat.prototype, "subSuperScript", {
get: function () {
Eif (typeof this._pdfSubSuperScript === 'undefined' || this._pdfSubSuperScript === null) {
return enumerator_1.PdfSubSuperScript.none;
}
else {
return this._pdfSubSuperScript;
}
},
set: function (value) {
this._pdfSubSuperScript = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(PdfStringFormat.prototype, "_wordWrap", {
get: function () {
return this._wordWrapType;
},
set: function (value) {
this._wordWrapType = value;
},
enumerable: true,
configurable: true
});
return PdfStringFormat;
}());
exports.PdfStringFormat = PdfStringFormat;
var PdfVerticalAlignment;
(function (PdfVerticalAlignment) {
PdfVerticalAlignment[PdfVerticalAlignment["top"] = 0] = "top";
PdfVerticalAlignment[PdfVerticalAlignment["middle"] = 1] = "middle";
PdfVerticalAlignment[PdfVerticalAlignment["bottom"] = 2] = "bottom";
})(PdfVerticalAlignment = exports.PdfVerticalAlignment || (exports.PdfVerticalAlignment = {}));
});
|