toosoon-gui
v3.0.0
Published
Graphical user interface (GUI) library providing functionalities for manipulating variables and fire functions on the fly
Downloads
27
Readme
TOOSOON GUI
Graphical user interface (GUI) library providing functionalities for manipulating variables and fire functions on the fly.
Credits: dat.gui
Installation
Yarn:
$ yarn add toosoon-gui
NPM:
$ npm install toosoon-gui
Documentation
Usage
Basic
import GUI from 'toosoon-gui';
const gui = new GUI({ title: 'Settings' });
GUI Wrapper
The GUIWrapper
class allows you to create a fake instance of GUI
. This is helpful when you need to remove the GUI features on some environments.
import GUI, { Gui, GUIWrapper } from 'toosoon-gui';
const gui: Gui = DEBUG ? new GUI() : new GUIWrapper();
API
See full documentation here.
License
MIT License, see LICENSE for details.