Example #1
0
        public static HTMLElement?getElementById(string element)
        {
            var result = _js.Invoke(nameof(getElementById), element);

            if (result == null)
            {
                return(null);
            }

            return(JSObjectWrapperFactory.Create <HTMLElement>(result));
        }
Example #2
0
 internal static void Initialize()
 {
     JSObjectWrapperFactory.RegisterFactory(typeof(HTMLElement), x => new HTMLElement(x));
 }
 internal static void Initialize()
 {
     JSObjectWrapperFactory.RegisterFactory(typeof(CanvasRenderingContext2D), x => new CanvasRenderingContext2D(x));
 }