Skip to content

Commit 2645c32

Browse files
committed
Added description to every command-type with valid input types
1 parent ec531e5 commit 2645c32

22 files changed

Lines changed: 181 additions & 45 deletions

editor/js/Cmd.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
/**
2-
* Created by Daniel on 20.07.15.
2+
* @author dforrer / https://github.com/dforrer
3+
*/
4+
5+
/**
6+
* @param editorRef pointer to main editor object used to initialize
7+
* each command object with a reference to the editor
8+
* @constructor
39
*/
410

511
Cmd = function ( editorRef ) {

editor/js/CmdAddObject.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
/**
2-
* Created by Daniel on 20.07.15.
2+
* @author dforrer / https://github.com/dforrer
3+
*/
4+
5+
/**
6+
* @param object THREE.Object3D
7+
* @constructor
38
*/
49

510
CmdAddObject = function ( object ) {

editor/js/CmdAddScript.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
/**
2-
* Created by Daniel on 20.07.15.
2+
* @author dforrer / https://github.com/dforrer
3+
*/
4+
5+
/**
6+
* @param object THREE.Object3D
7+
* @param script javascript object
8+
* @constructor
39
*/
410

511
CmdAddScript = function ( object, script ) {

editor/js/CmdMoveObject.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
/**
2-
* Created by Daniel on 20.07.15.
2+
* @author dforrer / https://github.com/dforrer
3+
*/
4+
5+
/**
6+
* @param object THREE.Object3D
7+
* @param newParent THREE.Object3D
8+
* @param newBefore THREE.Object3D
9+
* @constructor
310
*/
411

512
CmdMoveObject = function ( object, newParent, newBefore ) {

editor/js/CmdMultiCmds.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
/**
2-
* Created by Daniel on 20.07.15.
2+
* @author dforrer / https://github.com/dforrer
3+
*/
4+
5+
/**
6+
* @param cmdArray array containing command objects
7+
* @constructor
38
*/
49

510
CmdMultiCmds = function ( cmdArray ) {

editor/js/CmdRemoveObject.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
/**
2-
* Created by Daniel on 20.07.15.
2+
* @author dforrer / https://github.com/dforrer
3+
*/
4+
5+
/**
6+
* @param object THREE.Object3D
7+
* @constructor
38
*/
49

510
CmdRemoveObject = function ( object ) {

editor/js/CmdRemoveScript.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
/**
2-
* Created by Daniel on 20.07.15.
2+
* @author dforrer / https://github.com/dforrer
3+
*/
4+
5+
/**
6+
* @param object THREE.Object3D
7+
* @param script javascript object
8+
* @constructor
39
*/
410

511
CmdRemoveScript = function ( object, script ) {

editor/js/CmdSetColor.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
/**
2-
* Created by Daniel on 21.07.15.
2+
* @author dforrer / https://github.com/dforrer
3+
*/
4+
5+
/**
6+
* @param object THREE.Object3D
7+
* @param attributeName string
8+
* @param newValue integer representing a hex color value
9+
* @constructor
310
*/
411

512
CmdSetColor = function ( object, attributeName, newValue ) {

editor/js/CmdSetGeometry.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
/**
2-
* Created by Daniel on 21.07.15.
2+
* @author dforrer / https://github.com/dforrer
3+
*/
4+
5+
/**
6+
* @param object THREE.Object3D
7+
* @param newGeometry THREE.Geometry
8+
* @constructor
39
*/
410

511
CmdSetGeometry = function ( object, newGeometry ) {

editor/js/CmdSetGeometryValue.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
/**
2-
* Created by Daniel on 21.07.15.
2+
* @author dforrer / https://github.com/dforrer
3+
*/
4+
5+
/**
6+
* @param object THREE.Object3D
7+
* @param attributeName string
8+
* @param newValue number, string, boolean or object
9+
* @constructor
310
*/
411

512
CmdSetGeometryValue = function ( object, attributeName, newValue ) {

0 commit comments

Comments
 (0)