Comparing version 0.8.9 to 0.8.11
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
153464
9
3326
48
1