Skip to content

Commit 53307d9

Browse files
committed
init
1 parent 5f8c634 commit 53307d9

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

index.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@
1414

1515
import { GUI, controllers } from '../../dat.gui';
1616

17+
/**
18+
* @class Example of subtype of CustomController class.
19+
*
20+
* @extends dat.controllers.CustomController
21+
*
22+
* @param {Object} object The object to be manipulated
23+
* @param {string} property The name of the property to be manipulated
24+
* @param {Object} [params] Optional parameters
25+
*/
26+
export class KnobController extends controllers.CustomController {
27+
constructor( object, property, ...opts ) {
28+
super( object, property, opts );
29+
// ... set up options if needed
30+
}
31+
}
32+
/*
1733
export class KnobController extends controllers.CustomController {
1834
constructor( a, b ) {
1935
super(function (controller) {
@@ -37,7 +53,7 @@ export class KnobController extends controllers.CustomController {
3753
3854
}
3955
}
40-
56+
*/
4157
export class PlayController extends controllers.CustomController {
4258
constructor( init ) {
4359
super( init );

0 commit comments

Comments
 (0)