+
+
+
+
+
+
+
+
+
+
+ @if (_isLoading)
+ {
+
Loading...
+ }
+
+ @if (!string.IsNullOrEmpty(_errorMessage))
+ {
+
@_errorMessage
+ }
+
+
+@code {
+ private bool _isLoading;
+ private string? _errorMessage;
+ private bool _rendererInitialized;
+
+ protected override async Task OnAfterRenderAsync(bool firstRender)
+ {
+ if (firstRender)
+ {
+ try
+ {
+ // Initialize the renderer with the canvas
+ var success = await JS.InvokeAsync