Skip to content

Commit 2b43170

Browse files
committed
Relocate custom class definition
Give it better visibility and add a docstring.
1 parent daacd60 commit 2b43170

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

js/scripts/generate-wrappers.js

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,25 @@ var threeSrcDir = path.resolve(baseDir, 'node_modules', 'three', 'src');
2424
var AUTOGEN_EXT = 'autogen';
2525
var JS_AUTOGEN_EXT = '.' + AUTOGEN_EXT + '.js';
2626

27+
28+
/**
29+
* Custom classes, i.e. classes that should be included in the
30+
* autogen routine but which has no *direct* counterpart in the
31+
* three.js library.
32+
*/
33+
var CUSTOM_CLASSES = [
34+
'textures/ImageTexture.js',
35+
'textures/TextTexture.js',
36+
'controls/Controls.js',
37+
'controls/OrbitControls.js',
38+
'controls/TrackballControls.js',
39+
'controls/FlyControls.js',
40+
'controls/Picker.js',
41+
'geometries/PlainGeometry.js',
42+
'objects/CloneArray.js',
43+
];
44+
45+
2746
//
2847
// Templates
2948
//
@@ -898,17 +917,6 @@ function createTopLevelPythonModuleFile() {
898917

899918
}
900919

901-
var CUSTOM_CLASSES = [
902-
'textures/ImageTexture.js',
903-
'textures/TextTexture.js',
904-
'controls/Controls.js',
905-
'controls/OrbitControls.js',
906-
'controls/TrackballControls.js',
907-
'controls/FlyControls.js',
908-
'controls/Picker.js',
909-
'geometries/PlainGeometry.js',
910-
'objects/CloneArray.js',
911-
];
912920

913921
function createJavascriptFiles() {
914922
return mapPromiseFnOverThreeModules(createJavascriptWrapper)

0 commit comments

Comments
 (0)