GraphicalLine.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. "use strict";
  2. var DrawingEnums_1 = require("./DrawingEnums");
  3. var GraphicalLine = (function () {
  4. function GraphicalLine(start, end, width, styleEnum) {
  5. if (width === void 0) { width = 0; }
  6. if (styleEnum === void 0) { styleEnum = DrawingEnums_1.OutlineAndFillStyleEnum.BaseWritingColor; }
  7. this.start = start;
  8. this.end = end;
  9. this.width = width;
  10. this.styleId = styleEnum;
  11. }
  12. Object.defineProperty(GraphicalLine.prototype, "Start", {
  13. get: function () {
  14. return this.start;
  15. },
  16. set: function (value) {
  17. this.start = value;
  18. },
  19. enumerable: true,
  20. configurable: true
  21. });
  22. Object.defineProperty(GraphicalLine.prototype, "End", {
  23. get: function () {
  24. return this.end;
  25. },
  26. set: function (value) {
  27. this.end = value;
  28. },
  29. enumerable: true,
  30. configurable: true
  31. });
  32. Object.defineProperty(GraphicalLine.prototype, "Width", {
  33. get: function () {
  34. return this.width;
  35. },
  36. set: function (value) {
  37. this.width = value;
  38. },
  39. enumerable: true,
  40. configurable: true
  41. });
  42. return GraphicalLine;
  43. }());
  44. exports.GraphicalLine = GraphicalLine;