MCPcopy
hub / github.com/dataarts/dat.gui

github.com/dataarts/dat.gui @v0.7.9 sqlite

repository ↗ · DeepWiki ↗ · release v0.7.9 ↗
195 symbols 392 edges 26 files 21 documented · 11%
README

dat.GUI

A lightweight graphical user interface for changing variables in JavaScript.

Get started with dat.GUI by reading the API documentation.

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:

<script type="text/javascript" src="https://github.com/dataarts/dat.gui/raw/v0.7.9/dat.gui.min.js"></script>

Installing from npm

$ npm install --save dat.gui
// 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

Thanks

The following libraries / open-source projects were used in the development of dat.GUI: * Rollup * Sass * Node.js * QUnit / jquery

Core symbols most depended-on inside this repo

jQuery
called by 64
tests/jquery.js
getValue
called by 23
src/dat/controllers/Controller.js
toString
called by 17
src/dat/color/Color.js
id
called by 14
tests/qunit.js
extend
called by 11
tests/qunit.js
cssValueToPixels
called by 10
src/dat/dom/dom.js
setValue
called by 10
src/dat/controllers/Controller.js
makeArray
called by 10
tests/jquery.js

Shape

Function 114
Method 59
Class 22

Languages

TypeScript100%

Modules by API surface

tests/jquery.js54 symbols
tests/qunit.js26 symbols
src/dat/gui/GUI.js22 symbols
src/dat/controllers/ColorController.js14 symbols
src/dat/controllers/NumberControllerSlider.js11 symbols
src/dat/controllers/NumberControllerBox.js11 symbols
src/dat/controllers/Controller.js9 symbols
src/dat/controllers/NumberController.js8 symbols
src/dat/color/Color.js8 symbols
src/dat/dom/CenteredDiv.js6 symbols
src/dat/controllers/StringController.js6 symbols
src/dat/controllers/BooleanController.js6 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

babel-core6.26.3 · 1×
babel-plugin-external-helpers6.22.0 · 1×
babel-preset-env1.7.0 · 1×
concurrently3.5.1 · 1×
eslint6.8.0 · 1×
eslint-config-airbnb-base14.1.0 · 1×
eslint-loader4.0.0 · 1×
eslint-plugin-import2.20.2 · 1×
extend3.0.2 · 1×
jsdoc-to-markdown5.0.3 · 1×
replace-between0.0.8 · 1×
rollup0.54.1 · 1×

For agents

$ claude mcp add dat.gui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact