Git Product home page Git Product logo

wasm-dom's Introduction

wasm-dom

This project is intended to support C# API bindings to the Web browser API's via mono's webassembly implementation.

Current Work

This is a work in progress, and we are only getting started. This means that the activation workflow for .NET code is not finalized, nor is the Web browser API that is exposed to running .NET code.

The TsToCSharp project is being used to generate a strongly typed .NET API from TypeScript type definitions. The definitions of the .NET API that are included in the Mono.WebAssembly.DOM module are generated from the TypeScript lib.dom.d.ts file.

With that being said, the following are functioning:

  • Global Object access which includes javascrip objects like Window and Document.
  • Property Getters and Setters
  • Method Invoke
  • Attributes and Attribute Styles Getters and Setters
  • AddEventListener and RemoveEventListener - These are made available via the event DOMEventHandler and DOMEventArgs classes. C# event handlers code can be used to attach to these events that are made public.

Contents

You should now have the following directory structure

.
|--- wasm-dom                           
     |--- samples					// Where you can find sample code.	 
     |--- mono						// Custom mono webassembly module (see README.md)
     |--- Mono.WebAssembly.DOM 		// DOM Integration Code
     |--- wasm-dom-library.sln      // Solution file

Prerequisites

A custom mono webassembly module needs to be build for now. Please follow the Build Instructions. See README.

Building wasm-dom

Open the wasm-dom-library.sln in Visual Studio and build or the following command line:

$ msbuild wasm-dom-library.sln

Samples

The samples directory contains samples that can be run.

Future Work

  • Project Templates
  • Generated NuGets to be made available

wasm-dom's People

Contributors

kjpou1 avatar akoeplinger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.