Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lil-gui

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lil-gui - npm Package Compare versions

Comparing version 0.8.9 to 0.8.11

dist/lil-gui.esm.js

13

package.json
{
"name": "lil-gui",
"version": "0.8.9",
"version": "0.8.11",
"author": {

@@ -8,4 +8,4 @@ "name": "George Michael Brower"

"description": "Makes a floating panel for controllers on the web.",
"module": "dist/lil-gui.module.js",
"main": "dist/lil-gui.module.js",
"module": "dist/lil-gui.esm.js",
"main": "dist/lil-gui.umd.js",
"config": {

@@ -17,2 +17,3 @@ "style": "dist/lil-gui.css",

"build": "npm run icons && npm run sass && npm run sass:min && npm run rollup",
"build:all": "npm run build && npm run api && npm run homepage",
"sass": "sass style/index.scss $npm_package_config_style --no-source-map --no-charset",

@@ -27,4 +28,4 @@ "sass:min": "sass style/index.scss $npm_package_config_styleMin --no-charset --no-source-map --style=compressed",

"server": "live-server --watch=$npm_package_main,index.html,examples --no-browser",
"preversion": "npm test",
"version": "npm run build && git add -A dist style/icons.scss",
"preversion": "npm run build:all && npm test",
"version": "npm run build:all && git add -A dist style/icons.scss",
"postversion": "git push --tags",

@@ -49,4 +50,4 @@ "dev": "npm run build && node -r esm scripts/dev.js"

"rollup": "^1.17.0",
"rollup-plugin-terser": "^5.1.2",
"sass": "^1.22.10",
"terser": "^4.3.8",
"webfont": "^9.0.0"

@@ -53,0 +54,0 @@ },

@@ -6,4 +6,6 @@ # lil-gui

```js
import GUI from 'lil-gui';
import GUI from 'lil-gui';
const gui = new GUI();
const myObject = {

@@ -16,10 +18,13 @@ myBoolean: true,

const gui = new GUI();
gui.add( myObject, 'myBoolean' ); // checkbox
// Controller types are inferred from property values
gui.add( myObject, 'myBoolean' ); // checkbox
gui.add( myObject, 'myFunction' ); // button
gui.add( myObject, 'myString' ); // text field
gui.add( myObject, 'myNumber', 0, 1 ); // slider
gui.add( myObject, 'myString' ); // text field
gui.add( myObject, 'myNumber' ); // number field
// dropdowns
// Add sliders to number fields by passing min and max
gui.add( myObject, 'myNumber', 0, 1 );
gui.add( myObject, 'myNumber', 0, 100, 1 ); // explicit step
// Create dropdowns by passing an array or object of named values
gui.add( myObject, 'myNumber', [ 0, 1, 2 ] );

@@ -26,0 +31,0 @@ gui.add( myObject, 'myNumber', { Label1: 0, Label2: 1, Label3: 2 } );

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc