Skip to main content

yoga_wasm for Deno

A WebAssembly build of Yoga Flexbox layout engine, for 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

License

Yoga files in the ./dist directory are licensed under the MIT license, see ./dist/LICENSE.

Files in other directories, such as build scripts etc, are MIT licensed, see ./LICENSE.