mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-10 19:21:40 +00:00
Code cleaned up
This commit is contained in:
parent
669fcc0ddc
commit
27fa5f86fb
@ -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>
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user