Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @thi.ng/scenegraph with all npm packages installed. Try it out:

var scenegraph = require("@thi.ng/scenegraph")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@thi.ng/scenegraph v0.1.27

Extensible 2D/3D scene graph with @thi.ng/hiccup-canvas support

scenegraph

npm version npm downloads Twitter Follow

This project is part of the @thi.ng/umbrella monorepo.

About

Extensible 2D/3D scene graph with @thi.ng/hiccup-canvas support.

Status

ALPHA - bleeding edge / work-in-progress

Installation

yarn add @thi.ng/scenegraph
// ES module
<script type="module" src="https://unpkg.com/@thi.ng/scenegraph?module" crossorigin></script>

// UMD
<script src="https://unpkg.com/@thi.ng/scenegraph/lib/index.umd.js" crossorigin></script>

Package sizes (gzipped, pre-treeshake): ESM: 779 bytes / CJS: 822 bytes / UMD: 927 bytes

Dependencies

Usage examples

Several demos in this repo's /examples directory are using this package.

A selection:

ScreenshotDescriptionLive demoSource
2D scenegraph & shape pickingDemoSource
2D scenegraph & image map based geometry manipulationDemoSource

API

Generated API docs

TODO

Authors

Karsten Schmidt

License

© 2016 - 2020 Karsten Schmidt // Apache Software License 2.0

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free