Skip to content

About

Stateless panel-layout geometry plugin for GAMS, operating on caller-owned layout documents.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

GAMS Stateless Layout

The stateless layout component is a GAMS WASM Project Unit exporting gams:layout/layout@1.0.0. Callers own layout documents, Areas, Handles and stable content IDs; each operation receives a document and returns the next document plus operation metadata or a structured error. The component calculates geometry, not View content.

Unit Source / output License Original work
Stateless panel layout src/component.c, src/wit/package.wit; build.nosync/plugin.layout.wasm Apache-2.0, full third-party terms GAMS contributors; WASI SDK/runtime contributors

The raw component embeds complete LICENSE/NOTICE bytes as gams.license and gams.notice; preserve them when redistributing. Releases retain raw WASM on GitHub and ghcr.io/kkgams/gams/layout:<numeric-version>. Distribution versions do not change the WIT interface version.

Development

Install Nix; run native commands with nix develop --command make <target>. The flake pins WASI SDK, binding tools and Rust; Cargo locks the native Wasmtime runtime. Dependency-free Node runs only the pinned wiki engine.

Command Purpose
make build Compile the layout component under build.nosync/.
make package Build raw WASM, LICENSE, NOTICE and SHA256SUMS; unchanged output does no work.
make test Run native Cargo/Wasmtime initialization, resize and invalid-dimension assertions against a separate test component.
make open Build and open local gams.json in the released macOS Apple Silicon Host.
make serve-docs Serve pinned wiki; independent DOCS_PORT defaults to 8080.
make docs Build documentation into build.nosync/site/.
make validate-docs Validate documentation.
make clean Remove known generated output/docs and marked downloads; preserve supplied tools/Units and unidentified legacy output.

The local Project uses the built layout component, its pinned layout UI Service and the published Files View; it is not a geometry/API demo. The Host downloads only when absent, retains its notices and is not updated implicitly. Native tests do not cover Host GUI interactions or every layout operation. Supporting pins and caller-owned state remain unchanged.

About

Stateless panel-layout geometry plugin for GAMS, operating on caller-owned layout documents.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages