Пример #1
0
 /// <inheritdoc/>
 protected override async Task <IJSObjectReference> CreateJsObjectRef()
 {
     if (Min.JSBinder is null)
     {
         await Min.BindJsObjectReference(this.JSBinder);
     }
     Min.GuardAgainstNullBinding("Cannot create Bounds object. No JavaScript binding has been set up for the Min property.");
     if (Max.JSBinder is null)
     {
         await Max.BindJsObjectReference(this.JSBinder);
     }
     Max.GuardAgainstNullBinding("Cannot create Bounds object. No JavaScript binding has been set up for the Max property.");
     return(await JSBinder.JSRuntime.InvokeAsync <IJSObjectReference>("L.bounds", Min.JSObjectReference, Max.JSObjectReference));
 }