GraphicalLine.ts 951 B

1234567891011121314151617181920212223242526272829303132
  1. import {OutlineAndFillStyleEnum} from "./DrawingEnums";
  2. import {PointF2D} from "../../Common/DataObjects/PointF2D";
  3. export class GraphicalLine {
  4. private start: PointF2D;
  5. private end: PointF2D;
  6. private width: number;
  7. constructor(start: PointF2D, end: PointF2D, width: number = 0, styleEnum: OutlineAndFillStyleEnum = OutlineAndFillStyleEnum.BaseWritingColor) {
  8. this.start = start;
  9. this.end = end;
  10. this.width = width;
  11. this.StyleId = <number>styleEnum;
  12. }
  13. public StyleId: number;
  14. public get Start(): PointF2D {
  15. return this.start;
  16. }
  17. public set Start(value: PointF2D) {
  18. this.start = value;
  19. }
  20. public get End(): PointF2D {
  21. return this.end;
  22. }
  23. public set End(value: PointF2D) {
  24. this.end = value;
  25. }
  26. public get Width(): number {
  27. return this.width;
  28. }
  29. public set Width(value: number) {
  30. this.width = value;
  31. }
  32. }