No Description

RectangularMarkerGrips.js 1.2KB

1234567891011121314151617181920212223242526272829303132
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var RectangularMarkerGrips = (function () {
  4. function RectangularMarkerGrips() {
  5. var _this = this;
  6. this.findGripByVisual = function (gripVisual) {
  7. switch (gripVisual) {
  8. case _this.topLeft.visual:
  9. return _this.topLeft;
  10. case _this.topCenter.visual:
  11. return _this.topCenter;
  12. case _this.topRight.visual:
  13. return _this.topRight;
  14. case _this.centerLeft.visual:
  15. return _this.centerLeft;
  16. case _this.centerRight.visual:
  17. return _this.centerRight;
  18. case _this.bottomLeft.visual:
  19. return _this.bottomLeft;
  20. case _this.bottomCenter.visual:
  21. return _this.bottomCenter;
  22. case _this.bottomRight.visual:
  23. return _this.bottomRight;
  24. default:
  25. return _this.topLeft;
  26. }
  27. };
  28. }
  29. return RectangularMarkerGrips;
  30. }());
  31. exports.RectangularMarkerGrips = RectangularMarkerGrips;