yoga-wasm-deno

Building Yoga Flexbox layout engine for WebAssembly and running it in Deno.

Usage

import { Yoga } from "https://deno.land/x/yoga_wasm/mod.ts";

Example

See ./src/example.ts.

deno run https://deno.land/x/yoga_wasm/src/example.ts

Outputs:

{ child0Left: 0, child0Top: 0, child1Left: 80, child1Top: 0 }

Build

Pre-requisites

Build Yoga for WebAssembly

./make-in-container

Run tests

./make-in-container test