Skip to content

Commit

Permalink
Deploying to gh-pages from @ 43455ec 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Dec 25, 2024
1 parent 01a00d4 commit 6a130fc
Show file tree
Hide file tree
Showing 22 changed files with 1,280 additions and 1,136 deletions.
4 changes: 2 additions & 2 deletions dist/0.x/controllers/Button.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default class Button extends Controller {
constructor(object: any, property: any, options?: {});
name(name: any): void;
setOptions(options: any): void;
name(name: any): this;
setOptions(options: any): this;
#private;
}
import Controller from './Controller.js';
1 change: 1 addition & 0 deletions dist/0.x/controllers/Canvas.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export default class Canvas extends LabelController {
constructor(name: any);
get canvas(): HTMLElement;
listen(): this;
#private;
}
import LabelController from './LabelController.js';
1 change: 1 addition & 0 deletions dist/0.x/controllers/Container.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default class Container extends Controller {
addController(controller: any): any;
pushContainer(container: any): any;
popContainer(): this;
listen(): this;
#private;
}
import Controller from './Controller.js';
39 changes: 33 additions & 6 deletions dist/0.x/muigui.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/0.x/muigui.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/0.x/muigui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/0.x/muigui.min.js.map

Large diffs are not rendered by default.

39 changes: 33 additions & 6 deletions dist/0.x/muigui.module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/0.x/muigui.module.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/0.x/muigui.module.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/0.x/muigui.module.min.js.map

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions examples/js/long-hide.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import GUI from '../../dist/0.x/muigui.module.js';
//import {GUI} from '../../src/muigui.js';

const gui = new GUI();

function addFolder(gui, name) {
const f = gui.addFolder(name);
for (let i = 0; i < 50; ++i) {
f.addButton(i.toString(), () => {});
}
}

const degToRad = deg => deg * Math.PI / 180;

const settings = {
translation: new Float32Array([0, 0, 0]),
rotation: new Float32Array([0, 0, 0]),
scale: new Float32Array([1, 1, 1]),
baseRotation: degToRad(-45),
};

const radToDegOptions = { min: -180, max: 180, step: 1, converters: GUI.converters.radToDeg };
const cameraRadToDegOptions = { min: -180, max: 180, step: 1, converters: GUI.converters.radToDeg };

gui.add(settings, 'baseRotation', cameraRadToDegOptions);
/*const nodeLabel =*/ gui.addLabel('node:');
const trsFolder = gui.addFolder('orientation');
trsFolder.add(settings.translation, '0', -50, 50, 1).name('translation x');
trsFolder.add(settings.translation, '1', -50, 50, 1).name('translation y');
trsFolder.add(settings.translation, '2', -50, 50, 1).name('translation z');
trsFolder.add(settings.rotation, '0', radToDegOptions).name('rotation x');
trsFolder.add(settings.rotation, '1', radToDegOptions).name('rotation y');
trsFolder.add(settings.rotation, '2', radToDegOptions).name('rotation z');
trsFolder.add(settings.scale, '0', 0.001, 2).name('scale x');
trsFolder.add(settings.scale, '1', 0.001, 2).name('scale y');
trsFolder.add(settings.scale, '2', 0.001, 2).name('scale z');

addFolder(gui, 'one');
addFolder(gui, 'two');
addFolder(gui, 'three');
Loading

0 comments on commit 6a130fc

Please sign in to comment.