Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dataarts/dat.gui
Lightweight controller library for JavaScript.
https://github.com/dataarts/dat.gui
Last synced: about 2 months ago
JSON representation
Lightweight controller library for JavaScript.
- Host: GitHub
- URL: https://github.com/dataarts/dat.gui
- Owner: dataarts
- License: apache-2.0
- Created: 2011-01-23T21:04:58.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-03-21T04:53:45.000Z (3 months ago)
- Last Synced: 2024-04-14T12:32:54.297Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 14.9 MB
- Stars: 7,304
- Watchers: 153
- Forks: 1,083
- Open Issues: 111
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-javascript - dat.GUI - A lightweight gui controller for changing variables in JavaScript. (Form Widgets / Other)
- awesome-game-engine-dev - dat.GUI - Lightweight gui for changing variables in JavaScript. (Libraries / JavaScript)
- awesome-stars - dat.gui - dat.gui is a lightweight controller library for JavaScript. (JavaScript)
- awesome-stars - dat.gui
- my-awesome-starred - dataarts/dat.gui - Lightweight controller library for JavaScript. (JavaScript)
- awesome-stars - dataarts/dat.gui - Lightweight controller library for JavaScript. (others)
- awesome-stars - dataarts/dat.gui - Lightweight controller library for JavaScript. (JavaScript)
- awesome-stars - dat.gui - dat.gui is a lightweight controller library for JavaScript. (JavaScript)
- awesome-stars - dat.gui
- awesome-javascript-builds-project - dat.GUI - A lightweight gui controller for changing variables in JavaScript. (Form Widgets / Other)
- awesome-stars - dat.gui
- my-awesome-stars - dataarts/dat.gui - Lightweight controller library for JavaScript. (JavaScript)
- awesome-starred - dataarts/dat.gui - Lightweight controller library for JavaScript. (others)
- awesome-threejs - dat.gui: 一个轻量级的可视化库供开发者调试变量使用
README
# dat.GUI
A lightweight graphical user interface for changing variables in JavaScript.Get started with dat.GUI by reading the [API documentation](API.md).
## Packaged Builds
The easiest way to use dat.GUI in your code is by using the built source at `build/dat.gui.min.js`. These built JavaScript files bundle all the necessary dependencies to run dat.GUI.In your `head` tag, include the following code:
```html```
## Installing from npm
```bash
$ npm install --save dat.gui
``````js
// CommonJS:
const dat = require('dat.gui');// ES6:
import * as dat from 'dat.gui';const gui = new dat.GUI();
```## Directory Contents
```
├── build - Compiled source code.
├── src - Source files.
└── tests - Tests.
```## Building your own dat.GUI
In the terminal, enter the following:
```
$ npm install
$ npm run build
```## npm scripts
- npm run build - Build development and production version of scripts.
- npm run dev - Build development version of script and watch for changes.## Working with Content Security Policy
If you're using a server with a Content Security Policy in place that blocks 'unsafe-inline', you will have problems when dat.gui.js tries to inject style information. To get around this, load 'build/dat.gui.css' as an external style sheet.## Changes
View the [Change Log](https://github.com/dataarts/dat.gui)## Thanks
The following libraries / open-source projects were used in the development of dat.GUI:
* [Rollup](https://rollupjs.org)
* [Sass](http://sass-lang.com/)
* [Node.js](http://nodejs.org/)
* [QUnit](https://github.com/jquery/qunit) / [jquery](http://jquery.com/)