Нет описания

123456789101112131415161718192021
  1. import { MarkerType } from './../types';
  2. import { SvgHelper } from '../../renderer/SvgHelper';
  3. import { RectBaseMarker } from '../RectMarker/RectBaseMarker';
  4. import { WhitePage } from '../../whiteboard/WhitePage';
  5. export class CoverMarker extends RectBaseMarker {
  6. type: MarkerType = 'cover';
  7. public static createMarker = (page?: WhitePage): RectBaseMarker => {
  8. const marker = new CoverMarker();
  9. marker.page = page;
  10. marker.init();
  11. return marker;
  12. };
  13. protected init() {
  14. super.init();
  15. SvgHelper.setAttributes(this.visual, [['class', 'cover-marker']]);
  16. }
  17. }