public SizeWatcherInterop(IJSRuntime js, ElementReference element, Action <SKSize> callback)
     : base(js, JsFilename)
 {
     htmlElement    = element;
     htmlElementId  = element.Id;
     callbackHelper = new FloatFloatActionHelper((x, y) => callback(new SKSize(x, y)));
 }
 private DpiWatcherInterop(IJSRuntime js)
     : base(js, JsFilename)
 {
     callbackHelper = new FloatFloatActionHelper((o, n) => callbacksEvent?.Invoke(n));
 }