<div class="map-editor-info">
    <div class="px-1 pt-1">
        @X
    </div>
    <div class ="px-1 pb-1">
        @Y
    </div>
</div>

@code {
    private double X;
    private double Y;

    public void Update(double x, double y)
    {
        X = Math.Round(x, 3);
        Y = Math.Round(y, 3);
        StateHasChanged();
    }
}
