Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hugojosefson/yoga-wasm-deno
WASM build of Yoga Flexbox layout engine, for Deno.
https://github.com/hugojosefson/yoga-wasm-deno
deno layout wasm webassembly yoga
Last synced: 29 days ago
JSON representation
WASM build of Yoga Flexbox layout engine, for Deno.
- Host: GitHub
- URL: https://github.com/hugojosefson/yoga-wasm-deno
- Owner: hugojosefson
- License: mit
- Created: 2023-01-01T21:01:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T15:05:59.000Z (almost 2 years ago)
- Last Synced: 2024-11-16T22:05:49.051Z (about 2 months ago)
- Topics: deno, layout, wasm, webassembly, yoga
- Language: TypeScript
- Homepage: https://deno.land/x/yoga_wasm
- Size: 263 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yoga_wasm for Deno
A WebAssembly build of [Yoga](https://github.com/facebook/yoga) Flexbox layout
engine, for [Deno](https://deno.land/).## Usage
```typescript
import { Yoga } from "https://deno.land/x/yoga_wasm/mod.ts";
```### Example
See [./src/example.ts](https://deno.land/x/yoga_wasm/src/example.ts?source).
```bash
deno run https://deno.land/x/yoga_wasm/src/example.ts
```Outputs:
```js
{ child0Left: 0, child0Top: 0, child1Left: 80, child1Top: 0 }
```## Build
### Pre-requisites
- `bash`
- `podman` or `docker` command-line tool
- Install for example via https://podman-desktop.io/### Build Yoga for WebAssembly
```bash
./make-in-container
```### Run tests
```bash
./make-in-container test
```## License
Yoga files in the `./dist` directory are licensed under the MIT license, see
[./dist/LICENSE](https://deno.land/x/yoga_wasm/dist/LICENSE?source).Files in other directories, such as build scripts etc, are MIT licensed, see
[./LICENSE](https://deno.land/x/yoga_wasm/LICENSE?source).