cavalier_contours_wasm

Wraps types and functions from cavalier_contours using wasm-bindgen for use in web apps.

Usage no npm install needed!

<script type="module">
  import cavalierContoursWasm from 'https://cdn.skypack.dev/cavalier_contours_wasm';
</script>

README

base:https://github.com/jbuckmccready/cavalier_contours base:https://github.com/jbuckmccready/cavalier_contours_web_demo/tree/master/wasm

import { initWasm, Polyline } from "cavalier_contours_wasm";

async function do()
{
    await initWasm();//await this

    let pl = new Polyline();//new

    pl.free();//free
}