public static HTMLElement?getElementById(string element) { var result = _js.Invoke(nameof(getElementById), element); if (result == null) { return(null); } return(JSObjectWrapperFactory.Create <HTMLElement>(result)); }
internal static void Initialize() { JSObjectWrapperFactory.RegisterFactory(typeof(HTMLElement), x => new HTMLElement(x)); }
internal static void Initialize() { JSObjectWrapperFactory.RegisterFactory(typeof(CanvasRenderingContext2D), x => new CanvasRenderingContext2D(x)); }