Label.js 625 B

123456789101112131415161718
  1. "use strict";
  2. var TextAlignment_1 = require("../Common/Enums/TextAlignment");
  3. var Fonts_1 = require("../Common/Enums/Fonts");
  4. var Label = (function () {
  5. function Label(text, alignment, font) {
  6. if (text === void 0) { text = ""; }
  7. if (alignment === void 0) { alignment = TextAlignment_1.TextAlignment.LeftBottom; }
  8. if (font === void 0) { font = Fonts_1.Fonts.TimesNewRoman; }
  9. this.text = text;
  10. this.textAlignment = alignment;
  11. this.font = font;
  12. }
  13. Label.prototype.ToString = function () {
  14. return this.text;
  15. };
  16. return Label;
  17. }());
  18. exports.Label = Label;