This project is part of the @thi.ng/umbrella monorepo.
Extensible 2D/3D scene graph with @thi.ng/hiccup-canvas support.
ALPHA - bleeding edge / work-in-progress
Search or submit any issues for this package
- @thi.ng/hdom-canvas - @thi.ng/hdom component wrapper for declarative canvas scenegraphs
- @thi.ng/hiccup - HTML/SVG/XML serialization of nested data structures, iterables & closures
- @thi.ng/hiccup-canvas - Hiccup shape tree renderer for vanilla Canvas 2D contexts
- @thi.ng/hiccup-svg - SVG element functions for @thi.ng/hiccup & @thi.ng/hdom
- @thi.ng/rdom-canvas - @thi.ng/rdom component wrapper for @thi.ng/hiccup-canvas and declarative canvas drawing
yarn add @thi.ng/scenegraph
ES module import:
<script type="module" src="https://cdn.skypack.dev/@thi.ng/scenegraph"></script>
For Node.js REPL:
# with flag only for < v16
node --experimental-repl-await
> const scenegraph = await import("@thi.ng/scenegraph");
Package sizes (gzipped, pre-treeshake): ESM: 980 bytes
Several demos in this repo's /examples directory are using this package.
A selection:
Screenshot | Description | Live demo | Source |
---|---|---|---|
2D scenegraph & shape picking | Demo | Source | |
2D scenegraph & image map based geometry manipulation | Demo | Source | |
Minimal shader graph developed during livestream #2 | Demo | Source |
TODO
Karsten Schmidt
If this project contributes to an academic publication, please cite it as:
@misc{thing-scenegraph,
title = "@thi.ng/scenegraph",
author = "Karsten Schmidt",
note = "https://thi.ng/scenegraph",
year = 2016
}
© 2016 - 2021 Karsten Schmidt // Apache Software License 2.0