No Description

index.js 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = function (d, b) {
  4. extendStatics = Object.setPrototypeOf ||
  5. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  6. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  7. return extendStatics(d, b);
  8. };
  9. return function (d, b) {
  10. extendStatics(d, b);
  11. function __() { this.constructor = d; }
  12. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  13. };
  14. })();
  15. Object.defineProperty(exports, "__esModule", { value: true });
  16. var SvgHelper_1 = require("../../renderer/SvgHelper");
  17. var RectBaseMarker_1 = require("../RectMarker/RectBaseMarker");
  18. var CoverMarker = (function (_super) {
  19. __extends(CoverMarker, _super);
  20. function CoverMarker() {
  21. var _this = _super !== null && _super.apply(this, arguments) || this;
  22. _this.type = 'cover';
  23. return _this;
  24. }
  25. CoverMarker.prototype.init = function () {
  26. _super.prototype.init.call(this);
  27. SvgHelper_1.SvgHelper.setAttributes(this.visual, [['class', 'cover-marker']]);
  28. };
  29. CoverMarker.createMarker = function (page) {
  30. var marker = new CoverMarker();
  31. marker.page = page;
  32. marker.init();
  33. return marker;
  34. };
  35. return CoverMarker;
  36. }(RectBaseMarker_1.RectBaseMarker));
  37. exports.CoverMarker = CoverMarker;