Code cleaned up

This commit is contained in:
Piotr Pekala 2019-01-11 06:03:57 -08:00
parent 669fcc0ddc
commit 27fa5f86fb
2 changed files with 5 additions and 6 deletions

View File

@ -1,6 +1,5 @@
<div #temporaryTextElement id="temporaryElement" class="temporaryElement" contenteditable="true" <div #temporaryTextElement id="temporaryElement" class="temporaryElement" contenteditable="true"
[style.top]=topPosition [style.top]=topPosition
[style.left]=leftPosition [style.left]=leftPosition>
[style.display]=display>
{{innerText}} {{innerText}}
</div> </div>

View File

@ -17,9 +17,9 @@ export class TextEditorComponent implements OnInit, OnDestroy {
@ViewChild('temporaryTextElement') temporaryTextElement: ElementRef; @ViewChild('temporaryTextElement') temporaryTextElement: ElementRef;
@Input('svg') svg: SVGSVGElement; @Input('svg') svg: SVGSVGElement;
private leftPosition: string = '0px'; leftPosition: string = '0px';
private topPosition: string = '0px'; topPosition: string = '0px';
private innerText: string = ''; innerText: string = '';
private editingDrawingId: string; private editingDrawingId: string;
private editedElement: any; private editedElement: any;