Skip to content
Snippets Groups Projects
Commit fe2c5059 authored by jojohoch's avatar jojohoch
Browse files

Use interface in definition of EventEmitter in TextComponent

parent b7a7c95a
No related branches found
No related tags found
No related merge requests found
Pipeline #65651 failed
import { import {
AfterViewInit, Component, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild
} from '@angular/core'; } from '@angular/core';
import { TextElement } from 'common/models/elements/text/text'; import { TextElement } from 'common/models/elements/text/text';
import { ValueChangeElement } from 'common/models/elements/element'; import { ValueChangeElement } from 'common/models/elements/element';
import { ImageFullscreenDirective } from 'common/directives/image-fullscreen.directive'; import { ImageFullscreenDirective } from 'common/directives/image-fullscreen.directive';
import { BehaviorSubject } from 'rxjs'; import { BehaviorSubject } from 'rxjs';
import { MarkingData } from 'common/models/marking-data';
import { ElementComponent } from '../../directives/element-component.directive'; import { ElementComponent } from '../../directives/element-component.directive';
@Component({ @Component({
...@@ -65,12 +66,7 @@ export class TextComponent extends ElementComponent implements OnInit { ...@@ -65,12 +66,7 @@ export class TextComponent extends ElementComponent implements OnInit {
@Output() selectedColorChanged = new EventEmitter<string | undefined>(); @Output() selectedColorChanged = new EventEmitter<string | undefined>();
@Output() elementValueChanged = new EventEmitter<ValueChangeElement>(); @Output() elementValueChanged = new EventEmitter<ValueChangeElement>();
@Output() textSelectionStart = new EventEmitter<PointerEvent>(); @Output() textSelectionStart = new EventEmitter<PointerEvent>();
@Output() markingDataChanged = new EventEmitter<{ @Output() markingDataChanged = new EventEmitter<MarkingData>();
active: boolean,
mode: 'mark' | 'delete',
color: string,
colorName: string | undefined
}>();
@ViewChild(ImageFullscreenDirective) imageFullScreenDirective!: ImageFullscreenDirective; @ViewChild(ImageFullscreenDirective) imageFullScreenDirective!: ImageFullscreenDirective;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment