Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Versions
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
bash
podman
ordocker
command-line tool- Install for example via https://podman-desktop.io/
Build Yoga for WebAssembly
./make-in-container
Run tests
./make-in-container test