Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace dat.gui with lil-gui #22765

Merged
merged 4 commits into from
Nov 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions docs/scenes/bones-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
WebGLRenderer
} from "../../build/three.module.js";

import { GUI } from '../../examples/jsm/libs/dat.gui.module.js';
import { GUI } from '../../examples/jsm/libs/lil-gui.module.min.js';
import { OrbitControls } from '../../examples/jsm/controls/OrbitControls.js';

let gui, scene, camera, renderer, orbit, lights, mesh, bones, skeletonHelper;
Expand Down Expand Up @@ -189,10 +189,10 @@
let folder = gui.addFolder( "General Options" );

folder.add( state, "animateBones" );
folder.__controllers[ 0 ].name( "Animate Bones" );
folder.controllers[ 0 ].name( "Animate Bones" );

folder.add( mesh, "pose" );
folder.__controllers[ 1 ].name( ".pose()" );
folder.controllers[ 1 ].name( ".pose()" );

const bones = mesh.skeleton.bones;

Expand All @@ -214,17 +214,17 @@
folder.add( bone.scale, 'y', 0, 2 );
folder.add( bone.scale, 'z', 0, 2 );

folder.__controllers[ 0 ].name( "position.x" );
folder.__controllers[ 1 ].name( "position.y" );
folder.__controllers[ 2 ].name( "position.z" );
folder.controllers[ 0 ].name( "position.x" );
folder.controllers[ 1 ].name( "position.y" );
folder.controllers[ 2 ].name( "position.z" );

folder.__controllers[ 3 ].name( "rotation.x" );
folder.__controllers[ 4 ].name( "rotation.y" );
folder.__controllers[ 5 ].name( "rotation.z" );
folder.controllers[ 3 ].name( "rotation.x" );
folder.controllers[ 4 ].name( "rotation.y" );
folder.controllers[ 5 ].name( "rotation.z" );

folder.__controllers[ 6 ].name( "scale.x" );
folder.__controllers[ 7 ].name( "scale.y" );
folder.__controllers[ 8 ].name( "scale.z" );
folder.controllers[ 6 ].name( "scale.x" );
folder.controllers[ 7 ].name( "scale.y" );
folder.controllers[ 8 ].name( "scale.z" );

}

Expand Down
2 changes: 1 addition & 1 deletion docs/scenes/geometry-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
WebGLRenderer
} from '../../build/three.module.js';

import { GUI } from '../../examples/jsm/libs/dat.gui.module.js';
import { GUI } from '../../examples/jsm/libs/lil-gui.module.min.js';
import { OrbitControls } from '../../examples/jsm/controls/OrbitControls.js';

const twoPi = Math.PI * 2;
Expand Down
4 changes: 2 additions & 2 deletions docs/scenes/material-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<script type="module">

import * as THREE from '../../build/three.module.js';
import * as DAT from '../../examples/jsm/libs/dat.gui.module.js';
import { GUI } from '../../examples/jsm/libs/lil-gui.module.min.js';
import { RoomEnvironment } from '../../examples/jsm/environments/RoomEnvironment.js';

const constants = {
Expand Down Expand Up @@ -715,7 +715,7 @@

document.getElementById( 'newWindow' ).href += window.location.hash;

const gui = new DAT.GUI();
const gui = new GUI();

const renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setPixelRatio( window.devicePixelRatio );
Expand Down
14 changes: 0 additions & 14 deletions examples/js/libs/dat.gui.min.js

This file was deleted.

Loading