Browse Source

Editor: Code clean up.

Mr.doob 5 years ago
parent
commit
ff1fc11c85
79 changed files with 205 additions and 204 deletions
  1. 2 2
      editor/docs/Implementing additional commands for undo-redo.md
  2. 2 2
      editor/js/Command.js
  3. 2 2
      editor/js/Config.js
  4. 2 2
      editor/js/Editor.js
  5. 2 2
      editor/js/EditorControls.js
  6. 2 2
      editor/js/History.js
  7. 2 2
      editor/js/Loader.js
  8. 2 2
      editor/js/Menubar.Add.js
  9. 2 2
      editor/js/Menubar.Edit.js
  10. 2 2
      editor/js/Menubar.Examples.js
  11. 2 2
      editor/js/Menubar.File.js
  12. 2 2
      editor/js/Menubar.Help.js
  13. 2 2
      editor/js/Menubar.Play.js
  14. 2 2
      editor/js/Menubar.Status.js
  15. 2 2
      editor/js/Menubar.View.js
  16. 2 2
      editor/js/Menubar.js
  17. 2 2
      editor/js/Script.js
  18. 2 2
      editor/js/Sidebar.Animation.js
  19. 2 2
      editor/js/Sidebar.Geometry.BoxGeometry.js
  20. 2 2
      editor/js/Sidebar.Geometry.BufferGeometry.js
  21. 2 2
      editor/js/Sidebar.Geometry.CircleGeometry.js
  22. 2 2
      editor/js/Sidebar.Geometry.CylinderGeometry.js
  23. 2 2
      editor/js/Sidebar.Geometry.DodecahedronGeometry.js
  24. 2 2
      editor/js/Sidebar.Geometry.ExtrudeGeometry.js
  25. 2 2
      editor/js/Sidebar.Geometry.Geometry.js
  26. 2 2
      editor/js/Sidebar.Geometry.IcosahedronGeometry.js
  27. 2 2
      editor/js/Sidebar.Geometry.LatheGeometry.js
  28. 2 2
      editor/js/Sidebar.Geometry.Modifiers.js
  29. 2 2
      editor/js/Sidebar.Geometry.OctahedronGeometry.js
  30. 2 2
      editor/js/Sidebar.Geometry.PlaneGeometry.js
  31. 2 2
      editor/js/Sidebar.Geometry.RingGeometry.js
  32. 2 2
      editor/js/Sidebar.Geometry.ShapeGeometry.js
  33. 2 2
      editor/js/Sidebar.Geometry.SphereGeometry.js
  34. 2 2
      editor/js/Sidebar.Geometry.TeapotBufferGeometry.js
  35. 2 2
      editor/js/Sidebar.Geometry.TetrahedronGeometry.js
  36. 2 2
      editor/js/Sidebar.Geometry.TorusGeometry.js
  37. 2 2
      editor/js/Sidebar.Geometry.TorusKnotGeometry.js
  38. 2 2
      editor/js/Sidebar.Geometry.TubeGeometry.js
  39. 2 2
      editor/js/Sidebar.Geometry.js
  40. 2 2
      editor/js/Sidebar.History.js
  41. 2 2
      editor/js/Sidebar.Material.js
  42. 2 2
      editor/js/Sidebar.Object.js
  43. 2 2
      editor/js/Sidebar.Project.js
  44. 2 2
      editor/js/Sidebar.Properties.js
  45. 2 2
      editor/js/Sidebar.Scene.js
  46. 2 2
      editor/js/Sidebar.Script.js
  47. 2 2
      editor/js/Sidebar.Settings.Shortcuts.js
  48. 2 2
      editor/js/Sidebar.Settings.Viewport.js
  49. 2 2
      editor/js/Sidebar.Settings.js
  50. 2 2
      editor/js/Sidebar.js
  51. 2 2
      editor/js/Storage.js
  52. 2 2
      editor/js/Strings.js
  53. 2 2
      editor/js/Toolbar.js
  54. 2 2
      editor/js/Viewport.Camera.js
  55. 2 2
      editor/js/Viewport.Info.js
  56. 2 2
      editor/js/Viewport.js
  57. 2 2
      editor/js/commands/AddObjectCommand.js
  58. 2 2
      editor/js/commands/AddScriptCommand.js
  59. 2 2
      editor/js/commands/MoveObjectCommand.js
  60. 2 2
      editor/js/commands/MultiCmdsCommand.js
  61. 2 2
      editor/js/commands/RemoveObjectCommand.js
  62. 2 2
      editor/js/commands/RemoveScriptCommand.js
  63. 2 2
      editor/js/commands/SetColorCommand.js
  64. 2 2
      editor/js/commands/SetGeometryCommand.js
  65. 2 2
      editor/js/commands/SetGeometryValueCommand.js
  66. 2 2
      editor/js/commands/SetMaterialColorCommand.js
  67. 2 2
      editor/js/commands/SetMaterialCommand.js
  68. 2 2
      editor/js/commands/SetMaterialMapCommand.js
  69. 2 2
      editor/js/commands/SetMaterialValueCommand.js
  70. 2 2
      editor/js/commands/SetMaterialVectorCommand.js
  71. 3 2
      editor/js/commands/SetPositionCommand.js
  72. 2 2
      editor/js/commands/SetRotationCommand.js
  73. 2 2
      editor/js/commands/SetScaleCommand.js
  74. 2 2
      editor/js/commands/SetSceneCommand.js
  75. 2 2
      editor/js/commands/SetScriptValueCommand.js
  76. 2 2
      editor/js/commands/SetUuidCommand.js
  77. 2 2
      editor/js/commands/SetValueCommand.js
  78. 36 36
      editor/js/libs/ui.js
  79. 14 14
      editor/js/libs/ui.three.js

+ 2 - 2
editor/docs/Implementing additional commands for undo-redo.md

@@ -26,7 +26,7 @@ Every command needs a constructor. In the constructor
 
 
 ```javascript
 ```javascript
 
 
-var DoSomethingCommand = function ( editor ) {
+function DoSomethingCommand( editor ) {
 
 
 	Command.call( this, editor ); // Required: Call default constructor
 	Command.call( this, editor ); // Required: Call default constructor
 
 
@@ -36,7 +36,7 @@ var DoSomethingCommand = function ( editor ) {
 	// TODO: store all the relevant information needed to
 	// TODO: store all the relevant information needed to
 	// restore the old and the new state
 	// restore the old and the new state
 
 
-};
+}
 ```
 ```
 
 
 And as part of the prototype you need to implement four functions
 And as part of the prototype you need to implement four functions

+ 2 - 2
editor/js/Command.js

@@ -9,7 +9,7 @@
  * @constructor
  * @constructor
  */
  */
 
 
-var Command = function ( editor ) {
+function Command( editor ) {
 
 
 	this.id = - 1;
 	this.id = - 1;
 	this.inMemory = false;
 	this.inMemory = false;
@@ -18,7 +18,7 @@ var Command = function ( editor ) {
 	this.name = '';
 	this.name = '';
 	this.editor = editor;
 	this.editor = editor;
 
 
-};
+}
 
 
 Command.prototype.toJSON = function () {
 Command.prototype.toJSON = function () {
 
 

+ 2 - 2
editor/js/Config.js

@@ -2,7 +2,7 @@
  * @author mrdoob / http://mrdoob.com/
  * @author mrdoob / http://mrdoob.com/
  */
  */
 
 
-var Config = function () {
+function Config() {
 
 
 	var name = 'threejs-editor';
 	var name = 'threejs-editor';
 
 
@@ -78,6 +78,6 @@ var Config = function () {
 
 
 	};
 	};
 
 
-};
+}
 
 
 export { Config };
 export { Config };

+ 2 - 2
editor/js/Editor.js

@@ -10,7 +10,7 @@ import { History as _History } from './History.js';
 import { Strings } from './Strings.js';
 import { Strings } from './Strings.js';
 import { Storage as _Storage } from './Storage.js';
 import { Storage as _Storage } from './Storage.js';
 
 
-var Editor = function () {
+function Editor() {
 
 
 	this.DEFAULT_CAMERA = new THREE.PerspectiveCamera( 50, 1, 0.01, 1000 );
 	this.DEFAULT_CAMERA = new THREE.PerspectiveCamera( 50, 1, 0.01, 1000 );
 	this.DEFAULT_CAMERA.name = 'Camera';
 	this.DEFAULT_CAMERA.name = 'Camera';
@@ -117,7 +117,7 @@ var Editor = function () {
 
 
 	this.addCamera( this.camera );
 	this.addCamera( this.camera );
 
 
-};
+}
 
 
 Editor.prototype = {
 Editor.prototype = {
 
 

+ 2 - 2
editor/js/EditorControls.js

@@ -7,7 +7,7 @@
 
 
 import * as THREE from '../../build/three.module.js';
 import * as THREE from '../../build/three.module.js';
 
 
-var EditorControls = function ( object, domElement ) {
+function EditorControls( object, domElement ) {
 
 
 	// API
 	// API
 
 
@@ -309,7 +309,7 @@ var EditorControls = function ( object, domElement ) {
 	domElement.addEventListener( 'touchstart', touchStart, false );
 	domElement.addEventListener( 'touchstart', touchStart, false );
 	domElement.addEventListener( 'touchmove', touchMove, false );
 	domElement.addEventListener( 'touchmove', touchMove, false );
 
 
-};
+}
 
 
 EditorControls.prototype = Object.create( THREE.EventDispatcher.prototype );
 EditorControls.prototype = Object.create( THREE.EventDispatcher.prototype );
 EditorControls.prototype.constructor = EditorControls;
 EditorControls.prototype.constructor = EditorControls;

+ 2 - 2
editor/js/History.js

@@ -5,7 +5,7 @@
 
 
 import * as Commands from './commands/Commands.js';
 import * as Commands from './commands/Commands.js';
 
 
-var History = function ( editor ) {
+function History( editor ) {
 
 
 	this.editor = editor;
 	this.editor = editor;
 	this.undos = [];
 	this.undos = [];
@@ -32,7 +32,7 @@ var History = function ( editor ) {
 
 
 	} );
 	} );
 
 
-};
+}
 
 
 History.prototype = {
 History.prototype = {
 
 

+ 2 - 2
editor/js/Loader.js

@@ -28,7 +28,7 @@ import { LoaderUtils } from './LoaderUtils.js';
 
 
 import { JSZip } from '../../examples/jsm/libs/jszip.module.min.js';
 import { JSZip } from '../../examples/jsm/libs/jszip.module.min.js';
 
 
-var Loader = function ( editor ) {
+function Loader( editor ) {
 
 
 	var scope = this;
 	var scope = this;
 
 
@@ -717,6 +717,6 @@ var Loader = function ( editor ) {
 
 
 	}
 	}
 
 
-};
+}
 
 
 export { Loader };
 export { Loader };

+ 2 - 2
editor/js/Menubar.Add.js

@@ -8,7 +8,7 @@ import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';
 
 
 import { AddObjectCommand } from './commands/AddObjectCommand.js';
 import { AddObjectCommand } from './commands/AddObjectCommand.js';
 
 
-var MenubarAdd = function ( editor ) {
+function MenubarAdd( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -475,6 +475,6 @@ var MenubarAdd = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { MenubarAdd };
 export { MenubarAdd };

+ 2 - 2
editor/js/Menubar.Edit.js

@@ -9,7 +9,7 @@ import { RemoveObjectCommand } from './commands/RemoveObjectCommand.js';
 import { MultiCmdsCommand } from './commands/MultiCmdsCommand.js';
 import { MultiCmdsCommand } from './commands/MultiCmdsCommand.js';
 import { SetMaterialValueCommand } from './commands/SetMaterialValueCommand.js';
 import { SetMaterialValueCommand } from './commands/SetMaterialValueCommand.js';
 
 
-var MenubarEdit = function ( editor ) {
+function MenubarEdit( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -272,6 +272,6 @@ var MenubarEdit = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { MenubarEdit };
 export { MenubarEdit };

+ 2 - 2
editor/js/Menubar.Examples.js

@@ -6,7 +6,7 @@ import * as THREE from '../../build/three.module.js';
 
 
 import { UIPanel, UIRow } from './libs/ui.js';
 import { UIPanel, UIRow } from './libs/ui.js';
 
 
-var MenubarExamples = function ( editor ) {
+function MenubarExamples( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -65,6 +65,6 @@ var MenubarExamples = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { MenubarExamples };
 export { MenubarExamples };

+ 2 - 2
editor/js/Menubar.File.js

@@ -15,7 +15,7 @@ import { JSZip } from '../../examples/jsm/libs/jszip.module.min.js';
 
 
 import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';
 import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';
 
 
-var MenubarFile = function ( editor ) {
+function MenubarFile( editor ) {
 
 
 	function parseNumber( key, value ) {
 	function parseNumber( key, value ) {
 
 
@@ -482,6 +482,6 @@ var MenubarFile = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { MenubarFile };
 export { MenubarFile };

+ 2 - 2
editor/js/Menubar.Help.js

@@ -4,7 +4,7 @@
 
 
 import { UIPanel, UIRow } from './libs/ui.js';
 import { UIPanel, UIRow } from './libs/ui.js';
 
 
-var MenubarHelp = function ( editor ) {
+function MenubarHelp( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -58,6 +58,6 @@ var MenubarHelp = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { MenubarHelp };
 export { MenubarHelp };

+ 2 - 2
editor/js/Menubar.Play.js

@@ -4,7 +4,7 @@
 
 
 import { UIPanel } from './libs/ui.js';
 import { UIPanel } from './libs/ui.js';
 
 
-var MenubarPlay = function ( editor ) {
+function MenubarPlay( editor ) {
 
 
 	var signals = editor.signals;
 	var signals = editor.signals;
 	var strings = editor.strings;
 	var strings = editor.strings;
@@ -38,6 +38,6 @@ var MenubarPlay = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { MenubarPlay };
 export { MenubarPlay };

+ 2 - 2
editor/js/Menubar.Status.js

@@ -7,7 +7,7 @@ import * as THREE from '../../build/three.module.js';
 import { UIPanel, UIText } from './libs/ui.js';
 import { UIPanel, UIText } from './libs/ui.js';
 import { UIBoolean } from './libs/ui.three.js';
 import { UIBoolean } from './libs/ui.three.js';
 
 
-var MenubarStatus = function ( editor ) {
+function MenubarStatus( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -50,6 +50,6 @@ var MenubarStatus = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { MenubarStatus };
 export { MenubarStatus };

+ 2 - 2
editor/js/Menubar.View.js

@@ -4,7 +4,7 @@
 
 
 import { UIPanel, UIRow } from './libs/ui.js';
 import { UIPanel, UIRow } from './libs/ui.js';
 
 
-var MenubarView = function ( editor ) {
+function MenubarView( editor ) {
 
 
 	var container = new UIPanel();
 	var container = new UIPanel();
 	container.setClass( 'menu' );
 	container.setClass( 'menu' );
@@ -32,6 +32,6 @@ var MenubarView = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { MenubarView };
 export { MenubarView };

+ 2 - 2
editor/js/Menubar.js

@@ -12,7 +12,7 @@ import { MenubarHelp } from './Menubar.Help.js';
 import { MenubarPlay } from './Menubar.Play.js';
 import { MenubarPlay } from './Menubar.Play.js';
 import { MenubarStatus } from './Menubar.Status.js';
 import { MenubarStatus } from './Menubar.Status.js';
 
 
-var Menubar = function ( editor ) {
+function Menubar( editor ) {
 
 
 	var container = new UIPanel();
 	var container = new UIPanel();
 	container.setId( 'menubar' );
 	container.setId( 'menubar' );
@@ -28,6 +28,6 @@ var Menubar = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { Menubar };
 export { Menubar };

+ 2 - 2
editor/js/Script.js

@@ -7,7 +7,7 @@ import { UIElement, UIPanel, UIText } from './libs/ui.js';
 import { SetScriptValueCommand } from './commands/SetScriptValueCommand.js';
 import { SetScriptValueCommand } from './commands/SetScriptValueCommand.js';
 import { SetMaterialValueCommand } from './commands/SetMaterialValueCommand.js';
 import { SetMaterialValueCommand } from './commands/SetMaterialValueCommand.js';
 
 
-var Script = function ( editor ) {
+function Script( editor ) {
 
 
 	var signals = editor.signals;
 	var signals = editor.signals;
 
 
@@ -461,6 +461,6 @@ var Script = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { Script };
 export { Script };

+ 2 - 2
editor/js/Sidebar.Animation.js

@@ -4,7 +4,7 @@
 
 
 import { UIPanel, UIDiv, UIBreak, UISelect, UIButton, UIText } from './libs/ui.js';
 import { UIPanel, UIDiv, UIBreak, UISelect, UIButton, UIText } from './libs/ui.js';
 
 
-var SidebarAnimation = function ( editor ) {
+function SidebarAnimation( editor ) {
 
 
 	var signals = editor.signals;
 	var signals = editor.signals;
 	var mixer = editor.mixer;
 	var mixer = editor.mixer;
@@ -83,6 +83,6 @@ var SidebarAnimation = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarAnimation };
 export { SidebarAnimation };

+ 2 - 2
editor/js/Sidebar.Geometry.BoxGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UINumber, UIInteger } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryBoxGeometry = function ( editor, object ) {
+function SidebarGeometryBoxGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -94,6 +94,6 @@ var SidebarGeometryBoxGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryBoxGeometry };
 export { SidebarGeometryBoxGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.BufferGeometry.js

@@ -4,7 +4,7 @@
 
 
 import { UIRow, UIText, UISpan, UIBreak } from './libs/ui.js';
 import { UIRow, UIText, UISpan, UIBreak } from './libs/ui.js';
 
 
-var SidebarGeometryBufferGeometry = function ( editor ) {
+function SidebarGeometryBufferGeometry( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -65,6 +65,6 @@ var SidebarGeometryBufferGeometry = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryBufferGeometry };
 export { SidebarGeometryBufferGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.CircleGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryCircleGeometry = function ( editor, object ) {
+function SidebarGeometryCircleGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -72,6 +72,6 @@ var SidebarGeometryCircleGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryCircleGeometry };
 export { SidebarGeometryCircleGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.CylinderGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UICheckbox, UINumber } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryCylinderGeometry = function ( editor, object ) {
+function SidebarGeometryCylinderGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -94,6 +94,6 @@ var SidebarGeometryCylinderGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryCylinderGeometry };
 export { SidebarGeometryCylinderGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.DodecahedronGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryDodecahedronGeometry = function ( editor, object ) {
+function SidebarGeometryDodecahedronGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -50,6 +50,6 @@ var SidebarGeometryDodecahedronGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryDodecahedronGeometry };
 export { SidebarGeometryDodecahedronGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.ExtrudeGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UICheckbox, UIButton, UINumber } from './libs
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryExtrudeGeometry = function ( editor, object ) {
+function SidebarGeometryExtrudeGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -144,6 +144,6 @@ var SidebarGeometryExtrudeGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryExtrudeGeometry };
 export { SidebarGeometryExtrudeGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.Geometry.js

@@ -4,7 +4,7 @@
 
 
 import { UIRow, UIText } from './libs/ui.js';
 import { UIRow, UIText } from './libs/ui.js';
 
 
-var SidebarGeometryGeometry = function ( editor ) {
+function SidebarGeometryGeometry( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -61,6 +61,6 @@ var SidebarGeometryGeometry = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryGeometry };
 export { SidebarGeometryGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.IcosahedronGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryIcosahedronGeometry = function ( editor, object ) {
+function SidebarGeometryIcosahedronGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -54,6 +54,6 @@ var SidebarGeometryIcosahedronGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryIcosahedronGeometry };
 export { SidebarGeometryIcosahedronGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.LatheGeometry.js

@@ -9,7 +9,7 @@ import { UIPoints2 } from './libs/ui.three.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryLatheGeometry = function ( editor, object ) {
+function SidebarGeometryLatheGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -71,6 +71,6 @@ var SidebarGeometryLatheGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryLatheGeometry };
 export { SidebarGeometryLatheGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.Modifiers.js

@@ -4,7 +4,7 @@
 
 
 import { UIRow, UIButton } from './libs/ui.js';
 import { UIRow, UIButton } from './libs/ui.js';
 
 
-var SidebarGeometryModifiers = function ( editor, object ) {
+function SidebarGeometryModifiers( editor, object ) {
 
 
 	var signals = editor.signals;
 	var signals = editor.signals;
 
 
@@ -39,6 +39,6 @@ var SidebarGeometryModifiers = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryModifiers };
 export { SidebarGeometryModifiers };

+ 2 - 2
editor/js/Sidebar.Geometry.OctahedronGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryOctahedronGeometry = function ( editor, object ) {
+function SidebarGeometryOctahedronGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -55,6 +55,6 @@ var SidebarGeometryOctahedronGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryOctahedronGeometry };
 export { SidebarGeometryOctahedronGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.PlaneGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryPlaneGeometry = function ( editor, object ) {
+function SidebarGeometryPlaneGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -73,6 +73,6 @@ var SidebarGeometryPlaneGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryPlaneGeometry };
 export { SidebarGeometryPlaneGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.RingGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryRingGeometry = function ( editor, object ) {
+function SidebarGeometryRingGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -94,6 +94,6 @@ var SidebarGeometryRingGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryRingGeometry };
 export { SidebarGeometryRingGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.ShapeGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UIButton } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryShapeGeometry = function ( editor, object ) {
+function SidebarGeometryShapeGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -54,6 +54,6 @@ var SidebarGeometryShapeGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryShapeGeometry };
 export { SidebarGeometryShapeGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.SphereGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometrySphereGeometry = function ( editor, object ) {
+function SidebarGeometrySphereGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -106,6 +106,6 @@ var SidebarGeometrySphereGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometrySphereGeometry };
 export { SidebarGeometrySphereGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.TeapotBufferGeometry.js

@@ -6,7 +6,7 @@ import { UIRow, UIText, UIInteger, UICheckbox, UINumber } from './libs/ui.js';
 
 
 import { TeapotBufferGeometry } from '../../examples/jsm/geometries/TeapotBufferGeometry.js';
 import { TeapotBufferGeometry } from '../../examples/jsm/geometries/TeapotBufferGeometry.js';
 
 
-var SidebarGeometryTeapotBufferGeometry = function ( signals, object ) {
+function SidebarGeometryTeapotBufferGeometry( signals, object ) {
 
 
 	var container = new UIRow();
 	var container = new UIRow();
 
 
@@ -104,6 +104,6 @@ var SidebarGeometryTeapotBufferGeometry = function ( signals, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryTeapotBufferGeometry };
 export { SidebarGeometryTeapotBufferGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.TetrahedronGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryTetrahedronGeometry = function ( editor, object ) {
+function SidebarGeometryTetrahedronGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -55,6 +55,6 @@ var SidebarGeometryTetrahedronGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryTetrahedronGeometry };
 export { SidebarGeometryTetrahedronGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.TorusGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryTorusGeometry = function ( editor, object ) {
+function SidebarGeometryTorusGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -84,6 +84,6 @@ var SidebarGeometryTorusGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryTorusGeometry };
 export { SidebarGeometryTorusGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.TorusKnotGeometry.js

@@ -8,7 +8,7 @@ import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryTorusKnotGeometry = function ( editor, object ) {
+function SidebarGeometryTorusKnotGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -95,6 +95,6 @@ var SidebarGeometryTorusKnotGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryTorusKnotGeometry };
 export { SidebarGeometryTorusKnotGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.TubeGeometry.js

@@ -9,7 +9,7 @@ import { UIPoints3 } from './libs/ui.three.js';
 
 
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
 
 
-var SidebarGeometryTubeGeometry = function ( editor, object ) {
+function SidebarGeometryTubeGeometry( editor, object ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -104,6 +104,6 @@ var SidebarGeometryTubeGeometry = function ( editor, object ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometryTubeGeometry };
 export { SidebarGeometryTubeGeometry };

+ 2 - 2
editor/js/Sidebar.Geometry.js

@@ -52,7 +52,7 @@ var geometryUIClasses = {
 	'TubeBufferGeometry': SidebarGeometryTubeGeometry
 	'TubeBufferGeometry': SidebarGeometryTubeGeometry
 };
 };
 
 
-var SidebarGeometry = function ( editor ) {
+function SidebarGeometry( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -285,6 +285,6 @@ var SidebarGeometry = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarGeometry };
 export { SidebarGeometry };

+ 2 - 2
editor/js/Sidebar.History.js

@@ -6,7 +6,7 @@
 import { UIPanel, UIBreak, UIText } from './libs/ui.js';
 import { UIPanel, UIBreak, UIText } from './libs/ui.js';
 import { UIBoolean, UIOutliner } from './libs/ui.three.js';
 import { UIBoolean, UIOutliner } from './libs/ui.three.js';
 
 
-var SidebarHistory = function ( editor ) {
+function SidebarHistory( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -132,6 +132,6 @@ var SidebarHistory = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarHistory };
 export { SidebarHistory };

+ 2 - 2
editor/js/Sidebar.Material.js

@@ -31,7 +31,7 @@ var materialClasses = {
 	'SpriteMaterial': THREE.SpriteMaterial
 	'SpriteMaterial': THREE.SpriteMaterial
 };
 };
 
 
-var SidebarMaterial = function ( editor ) {
+function SidebarMaterial( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -1651,6 +1651,6 @@ var SidebarMaterial = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarMaterial };
 export { SidebarMaterial };

+ 2 - 2
editor/js/Sidebar.Object.js

@@ -14,7 +14,7 @@ import { SetRotationCommand } from './commands/SetRotationCommand.js';
 import { SetScaleCommand } from './commands/SetScaleCommand.js';
 import { SetScaleCommand } from './commands/SetScaleCommand.js';
 import { SetColorCommand } from './commands/SetColorCommand.js';
 import { SetColorCommand } from './commands/SetColorCommand.js';
 
 
-var SidebarObject = function ( editor ) {
+function SidebarObject( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -868,6 +868,6 @@ var SidebarObject = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarObject };
 export { SidebarObject };

+ 2 - 2
editor/js/Sidebar.Project.js

@@ -9,7 +9,7 @@ import { UIBoolean } from './libs/ui.three.js';
 
 
 import { SetMaterialCommand } from './commands/SetMaterialCommand.js';
 import { SetMaterialCommand } from './commands/SetMaterialCommand.js';
 
 
-var SidebarProject = function ( editor ) {
+function SidebarProject( editor ) {
 
 
 	var config = editor.config;
 	var config = editor.config;
 	var signals = editor.signals;
 	var signals = editor.signals;
@@ -326,6 +326,6 @@ var SidebarProject = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarProject };
 export { SidebarProject };

+ 2 - 2
editor/js/Sidebar.Properties.js

@@ -8,7 +8,7 @@ import { SidebarObject } from './Sidebar.Object.js';
 import { SidebarGeometry } from './Sidebar.Geometry.js';
 import { SidebarGeometry } from './Sidebar.Geometry.js';
 import { SidebarMaterial } from './Sidebar.Material.js';
 import { SidebarMaterial } from './Sidebar.Material.js';
 
 
-var SidebarProperties = function ( editor ) {
+function SidebarProperties( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -22,6 +22,6 @@ var SidebarProperties = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarProperties };
 export { SidebarProperties };

+ 2 - 2
editor/js/Sidebar.Scene.js

@@ -5,7 +5,7 @@
 import { UIPanel, UIBreak, UIRow, UIColor, UISelect, UIText, UINumber } from './libs/ui.js';
 import { UIPanel, UIBreak, UIRow, UIColor, UISelect, UIText, UINumber } from './libs/ui.js';
 import { UIOutliner, UITexture, UICubeTexture } from './libs/ui.three.js';
 import { UIOutliner, UITexture, UICubeTexture } from './libs/ui.three.js';
 
 
-var SidebarScene = function ( editor ) {
+function SidebarScene( editor ) {
 
 
 	var signals = editor.signals;
 	var signals = editor.signals;
 	var strings = editor.strings;
 	var strings = editor.strings;
@@ -427,6 +427,6 @@ var SidebarScene = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarScene };
 export { SidebarScene };

+ 2 - 2
editor/js/Sidebar.Script.js

@@ -8,7 +8,7 @@ import { AddScriptCommand } from './commands/AddScriptCommand.js';
 import { SetScriptValueCommand } from './commands/SetScriptValueCommand.js';
 import { SetScriptValueCommand } from './commands/SetScriptValueCommand.js';
 import { RemoveScriptCommand } from './commands/RemoveScriptCommand.js';
 import { RemoveScriptCommand } from './commands/RemoveScriptCommand.js';
 
 
-var SidebarScript = function ( editor ) {
+function SidebarScript( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -130,6 +130,6 @@ var SidebarScript = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarScript };
 export { SidebarScript };

+ 2 - 2
editor/js/Sidebar.Settings.Shortcuts.js

@@ -6,7 +6,7 @@ import { UIDiv, UIBreak, UIText, UIRow, UIInput } from './libs/ui.js';
 
 
 import { RemoveObjectCommand } from './commands/RemoveObjectCommand.js';
 import { RemoveObjectCommand } from './commands/RemoveObjectCommand.js';
 
 
-var SidebarSettingsShortcuts = function ( editor ) {
+function SidebarSettingsShortcuts( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -170,6 +170,6 @@ var SidebarSettingsShortcuts = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarSettingsShortcuts };
 export { SidebarSettingsShortcuts };

+ 2 - 2
editor/js/Sidebar.Settings.Viewport.js

@@ -6,7 +6,7 @@ import { UIDiv, UIBreak, UIText } from './libs/ui.js';
 import { UIBoolean } from './libs/ui.three.js';
 import { UIBoolean } from './libs/ui.three.js';
 
 
 
 
-var SidebarSettingsViewport = function ( editor ) {
+function SidebarSettingsViewport( editor ) {
 
 
 	var signals = editor.signals;
 	var signals = editor.signals;
 	var strings = editor.strings;
 	var strings = editor.strings;
@@ -37,6 +37,6 @@ var SidebarSettingsViewport = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarSettingsViewport };
 export { SidebarSettingsViewport };

+ 2 - 2
editor/js/Sidebar.Settings.js

@@ -7,7 +7,7 @@ import { UIPanel, UIRow, UISelect, UIText, UIInteger } from './libs/ui.js';
 import { SidebarSettingsViewport } from './Sidebar.Settings.Viewport.js';
 import { SidebarSettingsViewport } from './Sidebar.Settings.Viewport.js';
 import { SidebarSettingsShortcuts } from './Sidebar.Settings.Shortcuts.js';
 import { SidebarSettingsShortcuts } from './Sidebar.Settings.Shortcuts.js';
 
 
-var SidebarSettings = function ( editor ) {
+function SidebarSettings( editor ) {
 
 
 	var config = editor.config;
 	var config = editor.config;
 	var strings = editor.strings;
 	var strings = editor.strings;
@@ -73,6 +73,6 @@ var SidebarSettings = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { SidebarSettings };
 export { SidebarSettings };

+ 2 - 2
editor/js/Sidebar.js

@@ -12,7 +12,7 @@ import { SidebarProject } from './Sidebar.Project.js';
 import { SidebarHistory } from './Sidebar.History.js';
 import { SidebarHistory } from './Sidebar.History.js';
 import { SidebarSettings } from './Sidebar.Settings.js';
 import { SidebarSettings } from './Sidebar.Settings.js';
 
 
-var Sidebar = function ( editor ) {
+function Sidebar( editor ) {
 
 
 	var strings = editor.strings;
 	var strings = editor.strings;
 
 
@@ -40,6 +40,6 @@ var Sidebar = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { Sidebar };
 export { Sidebar };

+ 2 - 2
editor/js/Storage.js

@@ -2,7 +2,7 @@
  * @author mrdoob / http://mrdoob.com/
  * @author mrdoob / http://mrdoob.com/
  */
  */
 
 
-var Storage = function () {
+function Storage() {
 
 
 	var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
 	var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
 
 
@@ -95,6 +95,6 @@ var Storage = function () {
 
 
 	};
 	};
 
 
-};
+}
 
 
 export { Storage };
 export { Storage };

+ 2 - 2
editor/js/Strings.js

@@ -2,7 +2,7 @@
  * @author mrdoob / http://mrdoob.com/
  * @author mrdoob / http://mrdoob.com/
  */
  */
 
 
-var Strings = function ( config ) {
+function Strings( config ) {
 
 
 	var language = config.getKey( 'language' );
 	var language = config.getKey( 'language' );
 
 
@@ -938,6 +938,6 @@ var Strings = function ( config ) {
 
 
 	};
 	};
 
 
-};
+}
 
 
 export { Strings };
 export { Strings };

+ 2 - 2
editor/js/Toolbar.js

@@ -4,7 +4,7 @@
 
 
 import { UIPanel, UIButton, UICheckbox } from './libs/ui.js';
 import { UIPanel, UIButton, UICheckbox } from './libs/ui.js';
 
 
-var Toolbar = function ( editor ) {
+function Toolbar( editor ) {
 
 
 	var signals = editor.signals;
 	var signals = editor.signals;
 	var strings = editor.strings;
 	var strings = editor.strings;
@@ -83,6 +83,6 @@ var Toolbar = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { Toolbar };
 export { Toolbar };

+ 2 - 2
editor/js/Viewport.Camera.js

@@ -4,7 +4,7 @@
 
 
 import { UISelect } from './libs/ui.js';
 import { UISelect } from './libs/ui.js';
 
 
-var ViewportCamera = function ( editor ) {
+function ViewportCamera( editor ) {
 
 
 	var signals = editor.signals;
 	var signals = editor.signals;
 
 
@@ -47,6 +47,6 @@ var ViewportCamera = function ( editor ) {
 
 
 	return cameraSelect;
 	return cameraSelect;
 
 
-};
+}
 
 
 export { ViewportCamera };
 export { ViewportCamera };

+ 2 - 2
editor/js/Viewport.Info.js

@@ -4,7 +4,7 @@
 
 
 import { UIPanel, UIBreak, UIText } from './libs/ui.js';
 import { UIPanel, UIBreak, UIText } from './libs/ui.js';
 
 
-var ViewportInfo = function ( editor ) {
+function ViewportInfo( editor ) {
 
 
 	var signals = editor.signals;
 	var signals = editor.signals;
 	var strings = editor.strings;
 	var strings = editor.strings;
@@ -98,6 +98,6 @@ var ViewportInfo = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { ViewportInfo };
 export { ViewportInfo };

+ 2 - 2
editor/js/Viewport.js

@@ -17,7 +17,7 @@ import { SetPositionCommand } from './commands/SetPositionCommand.js';
 import { SetRotationCommand } from './commands/SetRotationCommand.js';
 import { SetRotationCommand } from './commands/SetRotationCommand.js';
 import { SetScaleCommand } from './commands/SetScaleCommand.js';
 import { SetScaleCommand } from './commands/SetScaleCommand.js';
 
 
-var Viewport = function ( editor ) {
+function Viewport( editor ) {
 
 
 	var signals = editor.signals;
 	var signals = editor.signals;
 
 
@@ -696,6 +696,6 @@ var Viewport = function ( editor ) {
 
 
 	return container;
 	return container;
 
 
-};
+}
 
 
 export { Viewport };
 export { Viewport };

+ 2 - 2
editor/js/commands/AddObjectCommand.js

@@ -11,7 +11,7 @@ import * as THREE from '../../../build/three.module.js';
  * @param object THREE.Object3D
  * @param object THREE.Object3D
  * @constructor
  * @constructor
  */
  */
-var AddObjectCommand = function ( editor, object ) {
+function AddObjectCommand( editor, object ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -24,7 +24,7 @@ var AddObjectCommand = function ( editor, object ) {
 
 
 	}
 	}
 
 
-};
+}
 
 
 AddObjectCommand.prototype = {
 AddObjectCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/AddScriptCommand.js

@@ -11,7 +11,7 @@ import { Command } from '../Command.js';
  * @param script javascript object
  * @param script javascript object
  * @constructor
  * @constructor
  */
  */
-var AddScriptCommand = function ( editor, object, script ) {
+function AddScriptCommand( editor, object, script ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -21,7 +21,7 @@ var AddScriptCommand = function ( editor, object, script ) {
 	this.object = object;
 	this.object = object;
 	this.script = script;
 	this.script = script;
 
 
-};
+}
 
 
 AddScriptCommand.prototype = {
 AddScriptCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/MoveObjectCommand.js

@@ -12,7 +12,7 @@ import { Command } from '../Command.js';
  * @param newBefore THREE.Object3D
  * @param newBefore THREE.Object3D
  * @constructor
  * @constructor
  */
  */
-var MoveObjectCommand = function ( editor, object, newParent, newBefore ) {
+function MoveObjectCommand( editor, object, newParent, newBefore ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -42,7 +42,7 @@ var MoveObjectCommand = function ( editor, object, newParent, newBefore ) {
 
 
 	this.newBefore = newBefore;
 	this.newBefore = newBefore;
 
 
-};
+}
 
 
 MoveObjectCommand.prototype = {
 MoveObjectCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/MultiCmdsCommand.js

@@ -10,7 +10,7 @@ import { Command } from '../Command.js';
  * @param cmdArray array containing command objects
  * @param cmdArray array containing command objects
  * @constructor
  * @constructor
  */
  */
-var MultiCmdsCommand = function ( editor, cmdArray ) {
+function MultiCmdsCommand( editor, cmdArray ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -19,7 +19,7 @@ var MultiCmdsCommand = function ( editor, cmdArray ) {
 
 
 	this.cmdArray = ( cmdArray !== undefined ) ? cmdArray : [];
 	this.cmdArray = ( cmdArray !== undefined ) ? cmdArray : [];
 
 
-};
+}
 
 
 MultiCmdsCommand.prototype = {
 MultiCmdsCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/RemoveObjectCommand.js

@@ -12,7 +12,7 @@ import * as THREE from '../../../build/three.module.js';
  * @param object THREE.Object3D
  * @param object THREE.Object3D
  * @constructor
  * @constructor
  */
  */
-var RemoveObjectCommand = function ( editor, object ) {
+function RemoveObjectCommand( editor, object ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -27,7 +27,7 @@ var RemoveObjectCommand = function ( editor, object ) {
 
 
 	}
 	}
 
 
-};
+}
 
 
 RemoveObjectCommand.prototype = {
 RemoveObjectCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/RemoveScriptCommand.js

@@ -11,7 +11,7 @@ import { Command } from '../Command.js';
  * @param script javascript object
  * @param script javascript object
  * @constructor
  * @constructor
  */
  */
-var RemoveScriptCommand = function ( editor, object, script ) {
+function RemoveScriptCommand( editor, object, script ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -26,7 +26,7 @@ var RemoveScriptCommand = function ( editor, object, script ) {
 
 
 	}
 	}
 
 
-};
+}
 
 
 RemoveScriptCommand.prototype = {
 RemoveScriptCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetColorCommand.js

@@ -12,7 +12,7 @@ import { Command } from '../Command.js';
  * @param newValue integer representing a hex color value
  * @param newValue integer representing a hex color value
  * @constructor
  * @constructor
  */
  */
-var SetColorCommand = function ( editor, object, attributeName, newValue ) {
+function SetColorCommand( editor, object, attributeName, newValue ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -25,7 +25,7 @@ var SetColorCommand = function ( editor, object, attributeName, newValue ) {
 	this.oldValue = ( object !== undefined ) ? this.object[ this.attributeName ].getHex() : undefined;
 	this.oldValue = ( object !== undefined ) ? this.object[ this.attributeName ].getHex() : undefined;
 	this.newValue = newValue;
 	this.newValue = newValue;
 
 
-};
+}
 
 
 SetColorCommand.prototype = {
 SetColorCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetGeometryCommand.js

@@ -14,7 +14,7 @@ import * as THREE from '../../../build/three.module.js';
  * @constructor
  * @constructor
  */
  */
 
 
-var SetGeometryCommand = function ( editor, object, newGeometry ) {
+function SetGeometryCommand( editor, object, newGeometry ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -26,7 +26,7 @@ var SetGeometryCommand = function ( editor, object, newGeometry ) {
 	this.oldGeometry = ( object !== undefined ) ? object.geometry : undefined;
 	this.oldGeometry = ( object !== undefined ) ? object.geometry : undefined;
 	this.newGeometry = newGeometry;
 	this.newGeometry = newGeometry;
 
 
-};
+}
 
 
 SetGeometryCommand.prototype = {
 SetGeometryCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetGeometryValueCommand.js

@@ -12,7 +12,7 @@ import { Command } from '../Command.js';
  * @param newValue number, string, boolean or object
  * @param newValue number, string, boolean or object
  * @constructor
  * @constructor
  */
  */
-var SetGeometryValueCommand = function ( editor, object, attributeName, newValue ) {
+function SetGeometryValueCommand( editor, object, attributeName, newValue ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -24,7 +24,7 @@ var SetGeometryValueCommand = function ( editor, object, attributeName, newValue
 	this.oldValue = ( object !== undefined ) ? object.geometry[ attributeName ] : undefined;
 	this.oldValue = ( object !== undefined ) ? object.geometry[ attributeName ] : undefined;
 	this.newValue = newValue;
 	this.newValue = newValue;
 
 
-};
+}
 
 
 SetGeometryValueCommand.prototype = {
 SetGeometryValueCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetMaterialColorCommand.js

@@ -12,7 +12,7 @@ import { Command } from '../Command.js';
  * @param newValue integer representing a hex color value
  * @param newValue integer representing a hex color value
  * @constructor
  * @constructor
  */
  */
-var SetMaterialColorCommand = function ( editor, object, attributeName, newValue, materialSlot ) {
+function SetMaterialColorCommand( editor, object, attributeName, newValue, materialSlot ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -28,7 +28,7 @@ var SetMaterialColorCommand = function ( editor, object, attributeName, newValue
 
 
 	this.attributeName = attributeName;
 	this.attributeName = attributeName;
 
 
-};
+}
 
 
 SetMaterialColorCommand.prototype = {
 SetMaterialColorCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetMaterialCommand.js

@@ -13,7 +13,7 @@ import * as THREE from '../../../build/three.module.js';
  * @param newMaterial THREE.Material
  * @param newMaterial THREE.Material
  * @constructor
  * @constructor
  */
  */
-var SetMaterialCommand = function ( editor, object, newMaterial, materialSlot ) {
+function SetMaterialCommand( editor, object, newMaterial, materialSlot ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -26,7 +26,7 @@ var SetMaterialCommand = function ( editor, object, newMaterial, materialSlot )
 	this.oldMaterial = this.editor.getObjectMaterial( object, materialSlot );
 	this.oldMaterial = this.editor.getObjectMaterial( object, materialSlot );
 	this.newMaterial = newMaterial;
 	this.newMaterial = newMaterial;
 
 
-};
+}
 
 
 SetMaterialCommand.prototype = {
 SetMaterialCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetMaterialMapCommand.js

@@ -14,7 +14,7 @@ import * as THREE from '../../../build/three.module.js';
  * @param newMap THREE.Texture
  * @param newMap THREE.Texture
  * @constructor
  * @constructor
  */
  */
-var SetMaterialMapCommand = function ( editor, object, mapName, newMap, materialSlot ) {
+function SetMaterialMapCommand( editor, object, mapName, newMap, materialSlot ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -29,7 +29,7 @@ var SetMaterialMapCommand = function ( editor, object, mapName, newMap, material
 
 
 	this.mapName = mapName;
 	this.mapName = mapName;
 
 
-};
+}
 
 
 SetMaterialMapCommand.prototype = {
 SetMaterialMapCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetMaterialValueCommand.js

@@ -12,7 +12,7 @@ import { Command } from '../Command.js';
  * @param newValue number, string, boolean or object
  * @param newValue number, string, boolean or object
  * @constructor
  * @constructor
  */
  */
-var SetMaterialValueCommand = function ( editor, object, attributeName, newValue, materialSlot ) {
+function SetMaterialValueCommand( editor, object, attributeName, newValue, materialSlot ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -28,7 +28,7 @@ var SetMaterialValueCommand = function ( editor, object, attributeName, newValue
 
 
 	this.attributeName = attributeName;
 	this.attributeName = attributeName;
 
 
-};
+}
 
 
 SetMaterialValueCommand.prototype = {
 SetMaterialValueCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetMaterialVectorCommand.js

@@ -5,7 +5,7 @@
 
 
 import { Command } from '../Command.js';
 import { Command } from '../Command.js';
 
 
-var SetMaterialVectorCommand = function ( editor, object, attributeName, newValue, materialSlot ) {
+function SetMaterialVectorCommand( editor, object, attributeName, newValue, materialSlot ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -21,7 +21,7 @@ var SetMaterialVectorCommand = function ( editor, object, attributeName, newValu
 
 
 	this.attributeName = attributeName;
 	this.attributeName = attributeName;
 
 
-};
+}
 
 
 SetMaterialVectorCommand.prototype = {
 SetMaterialVectorCommand.prototype = {
 
 

+ 3 - 2
editor/js/commands/SetPositionCommand.js

@@ -14,7 +14,7 @@ import * as THREE from '../../../build/three.module.js';
  * @param optionalOldPosition THREE.Vector3
  * @param optionalOldPosition THREE.Vector3
  * @constructor
  * @constructor
  */
  */
-var SetPositionCommand = function ( editor, object, newPosition, optionalOldPosition ) {
+function SetPositionCommand( editor, object, newPosition, optionalOldPosition ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -37,7 +37,8 @@ var SetPositionCommand = function ( editor, object, newPosition, optionalOldPosi
 
 
 	}
 	}
 
 
-};
+}
+
 SetPositionCommand.prototype = {
 SetPositionCommand.prototype = {
 
 
 	execute: function () {
 	execute: function () {

+ 2 - 2
editor/js/commands/SetRotationCommand.js

@@ -14,7 +14,7 @@ import * as THREE from '../../../build/three.module.js';
  * @param optionalOldRotation THREE.Euler
  * @param optionalOldRotation THREE.Euler
  * @constructor
  * @constructor
  */
  */
-var SetRotationCommand = function ( editor, object, newRotation, optionalOldRotation ) {
+function SetRotationCommand( editor, object, newRotation, optionalOldRotation ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -37,7 +37,7 @@ var SetRotationCommand = function ( editor, object, newRotation, optionalOldRota
 
 
 	}
 	}
 
 
-};
+}
 
 
 SetRotationCommand.prototype = {
 SetRotationCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetScaleCommand.js

@@ -14,7 +14,7 @@ import * as THREE from '../../../build/three.module.js';
  * @param optionalOldScale THREE.Vector3
  * @param optionalOldScale THREE.Vector3
  * @constructor
  * @constructor
  */
  */
-var SetScaleCommand = function ( editor, object, newScale, optionalOldScale ) {
+function SetScaleCommand( editor, object, newScale, optionalOldScale ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -37,7 +37,7 @@ var SetScaleCommand = function ( editor, object, newScale, optionalOldScale ) {
 
 
 	}
 	}
 
 
-};
+}
 
 
 SetScaleCommand.prototype = {
 SetScaleCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetSceneCommand.js

@@ -13,7 +13,7 @@ import { AddObjectCommand } from './AddObjectCommand.js';
  * @param scene containing children to import
  * @param scene containing children to import
  * @constructor
  * @constructor
  */
  */
-var SetSceneCommand = function ( editor, scene ) {
+function SetSceneCommand( editor, scene ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -37,7 +37,7 @@ var SetSceneCommand = function ( editor, scene ) {
 
 
 	}
 	}
 
 
-};
+}
 
 
 SetSceneCommand.prototype = {
 SetSceneCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetScriptValueCommand.js

@@ -13,7 +13,7 @@ import { Command } from '../Command.js';
  * @param newValue string, object
  * @param newValue string, object
  * @constructor
  * @constructor
  */
  */
-var SetScriptValueCommand = function ( editor, object, script, attributeName, newValue ) {
+function SetScriptValueCommand( editor, object, script, attributeName, newValue ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -28,7 +28,7 @@ var SetScriptValueCommand = function ( editor, object, script, attributeName, ne
 	this.oldValue = ( script !== undefined ) ? script[ this.attributeName ] : undefined;
 	this.oldValue = ( script !== undefined ) ? script[ this.attributeName ] : undefined;
 	this.newValue = newValue;
 	this.newValue = newValue;
 
 
-};
+}
 
 
 SetScriptValueCommand.prototype = {
 SetScriptValueCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetUuidCommand.js

@@ -11,7 +11,7 @@ import { Command } from '../Command.js';
  * @param newUuid string
  * @param newUuid string
  * @constructor
  * @constructor
  */
  */
-var SetUuidCommand = function ( editor, object, newUuid ) {
+function SetUuidCommand( editor, object, newUuid ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -23,7 +23,7 @@ var SetUuidCommand = function ( editor, object, newUuid ) {
 	this.oldUuid = ( object !== undefined ) ? object.uuid : undefined;
 	this.oldUuid = ( object !== undefined ) ? object.uuid : undefined;
 	this.newUuid = newUuid;
 	this.newUuid = newUuid;
 
 
-};
+}
 
 
 SetUuidCommand.prototype = {
 SetUuidCommand.prototype = {
 
 

+ 2 - 2
editor/js/commands/SetValueCommand.js

@@ -12,7 +12,7 @@ import { Command } from '../Command.js';
  * @param newValue number, string, boolean or object
  * @param newValue number, string, boolean or object
  * @constructor
  * @constructor
  */
  */
-var SetValueCommand = function ( editor, object, attributeName, newValue ) {
+function SetValueCommand( editor, object, attributeName, newValue ) {
 
 
 	Command.call( this, editor );
 	Command.call( this, editor );
 
 
@@ -25,7 +25,7 @@ var SetValueCommand = function ( editor, object, attributeName, newValue ) {
 	this.oldValue = ( object !== undefined ) ? object[ attributeName ] : undefined;
 	this.oldValue = ( object !== undefined ) ? object[ attributeName ] : undefined;
 	this.newValue = newValue;
 	this.newValue = newValue;
 
 
-};
+}
 
 
 SetValueCommand.prototype = {
 SetValueCommand.prototype = {
 
 

+ 36 - 36
editor/js/libs/ui.js

@@ -2,11 +2,11 @@
  * @author mrdoob / http://mrdoob.com/
  * @author mrdoob / http://mrdoob.com/
  */
  */
 
 
-var UIElement = function ( dom ) {
+function UIElement( dom ) {
 
 
 	this.dom = dom;
 	this.dom = dom;
 
 
-};
+}
 
 
 UIElement.prototype = {
 UIElement.prototype = {
 
 
@@ -172,7 +172,7 @@ events.forEach( function ( event ) {
 
 
 // UISpan
 // UISpan
 
 
-var UISpan = function () {
+function UISpan() {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -180,14 +180,14 @@ var UISpan = function () {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UISpan.prototype = Object.create( UIElement.prototype );
 UISpan.prototype = Object.create( UIElement.prototype );
 UISpan.prototype.constructor = UISpan;
 UISpan.prototype.constructor = UISpan;
 
 
 // UIDiv
 // UIDiv
 
 
-var UIDiv = function () {
+function UIDiv() {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -195,14 +195,14 @@ var UIDiv = function () {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIDiv.prototype = Object.create( UIElement.prototype );
 UIDiv.prototype = Object.create( UIElement.prototype );
 UIDiv.prototype.constructor = UIDiv;
 UIDiv.prototype.constructor = UIDiv;
 
 
 // UIRow
 // UIRow
 
 
-var UIRow = function () {
+function UIRow() {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -213,14 +213,14 @@ var UIRow = function () {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIRow.prototype = Object.create( UIElement.prototype );
 UIRow.prototype = Object.create( UIElement.prototype );
 UIRow.prototype.constructor = UIRow;
 UIRow.prototype.constructor = UIRow;
 
 
 // UIPanel
 // UIPanel
 
 
-var UIPanel = function () {
+function UIPanel() {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -231,14 +231,14 @@ var UIPanel = function () {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIPanel.prototype = Object.create( UIElement.prototype );
 UIPanel.prototype = Object.create( UIElement.prototype );
 UIPanel.prototype.constructor = UIPanel;
 UIPanel.prototype.constructor = UIPanel;
 
 
 // UIText
 // UIText
 
 
-var UIText = function ( text ) {
+function UIText( text ) {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -253,7 +253,7 @@ var UIText = function ( text ) {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIText.prototype = Object.create( UIElement.prototype );
 UIText.prototype = Object.create( UIElement.prototype );
 UIText.prototype.constructor = UIText;
 UIText.prototype.constructor = UIText;
@@ -279,7 +279,7 @@ UIText.prototype.setValue = function ( value ) {
 
 
 // UIInput
 // UIInput
 
 
-var UIInput = function ( text ) {
+function UIInput( text ) {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -299,7 +299,7 @@ var UIInput = function ( text ) {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIInput.prototype = Object.create( UIElement.prototype );
 UIInput.prototype = Object.create( UIElement.prototype );
 UIInput.prototype.constructor = UIInput;
 UIInput.prototype.constructor = UIInput;
@@ -321,7 +321,7 @@ UIInput.prototype.setValue = function ( value ) {
 
 
 // UITextArea
 // UITextArea
 
 
-var UITextArea = function () {
+function UITextArea() {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -352,7 +352,7 @@ var UITextArea = function () {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UITextArea.prototype = Object.create( UIElement.prototype );
 UITextArea.prototype = Object.create( UIElement.prototype );
 UITextArea.prototype.constructor = UITextArea;
 UITextArea.prototype.constructor = UITextArea;
@@ -374,7 +374,7 @@ UITextArea.prototype.setValue = function ( value ) {
 
 
 // UISelect
 // UISelect
 
 
-var UISelect = function () {
+function UISelect() {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -386,7 +386,7 @@ var UISelect = function () {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UISelect.prototype = Object.create( UIElement.prototype );
 UISelect.prototype = Object.create( UIElement.prototype );
 UISelect.prototype.constructor = UISelect;
 UISelect.prototype.constructor = UISelect;
@@ -446,7 +446,7 @@ UISelect.prototype.setValue = function ( value ) {
 
 
 // UICheckbox
 // UICheckbox
 
 
-var UICheckbox = function ( boolean ) {
+function UICheckbox( boolean ) {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -459,7 +459,7 @@ var UICheckbox = function ( boolean ) {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UICheckbox.prototype = Object.create( UIElement.prototype );
 UICheckbox.prototype = Object.create( UIElement.prototype );
 UICheckbox.prototype.constructor = UICheckbox;
 UICheckbox.prototype.constructor = UICheckbox;
@@ -485,7 +485,7 @@ UICheckbox.prototype.setValue = function ( value ) {
 
 
 // UIColor
 // UIColor
 
 
-var UIColor = function () {
+function UIColor() {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -508,7 +508,7 @@ var UIColor = function () {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIColor.prototype = Object.create( UIElement.prototype );
 UIColor.prototype = Object.create( UIElement.prototype );
 UIColor.prototype.constructor = UIColor;
 UIColor.prototype.constructor = UIColor;
@@ -544,7 +544,7 @@ UIColor.prototype.setHexValue = function ( hex ) {
 
 
 // UINumber
 // UINumber
 
 
-var UINumber = function ( number ) {
+function UINumber( number ) {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -735,7 +735,7 @@ var UINumber = function ( number ) {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UINumber.prototype = Object.create( UIElement.prototype );
 UINumber.prototype = Object.create( UIElement.prototype );
 UINumber.prototype.constructor = UINumber;
 UINumber.prototype.constructor = UINumber;
@@ -809,7 +809,7 @@ UINumber.prototype.setUnit = function ( unit ) {
 
 
 // UIInteger
 // UIInteger
 
 
-var UIInteger = function ( number ) {
+function UIInteger( number ) {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -947,7 +947,7 @@ var UIInteger = function ( number ) {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIInteger.prototype = Object.create( UIElement.prototype );
 UIInteger.prototype = Object.create( UIElement.prototype );
 UIInteger.prototype.constructor = UIInteger;
 UIInteger.prototype.constructor = UIInteger;
@@ -1001,7 +1001,7 @@ UIInteger.prototype.setRange = function ( min, max ) {
 
 
 // UIBreak
 // UIBreak
 
 
-var UIBreak = function () {
+function UIBreak() {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -1012,7 +1012,7 @@ var UIBreak = function () {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIBreak.prototype = Object.create( UIElement.prototype );
 UIBreak.prototype = Object.create( UIElement.prototype );
 UIBreak.prototype.constructor = UIBreak;
 UIBreak.prototype.constructor = UIBreak;
@@ -1020,7 +1020,7 @@ UIBreak.prototype.constructor = UIBreak;
 
 
 // UIHorizontalRule
 // UIHorizontalRule
 
 
-var UIHorizontalRule = function () {
+function UIHorizontalRule() {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -1031,7 +1031,7 @@ var UIHorizontalRule = function () {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIHorizontalRule.prototype = Object.create( UIElement.prototype );
 UIHorizontalRule.prototype = Object.create( UIElement.prototype );
 UIHorizontalRule.prototype.constructor = UIHorizontalRule;
 UIHorizontalRule.prototype.constructor = UIHorizontalRule;
@@ -1039,7 +1039,7 @@ UIHorizontalRule.prototype.constructor = UIHorizontalRule;
 
 
 // UIButton
 // UIButton
 
 
-var UIButton = function ( value ) {
+function UIButton( value ) {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -1051,7 +1051,7 @@ var UIButton = function ( value ) {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIButton.prototype = Object.create( UIElement.prototype );
 UIButton.prototype = Object.create( UIElement.prototype );
 UIButton.prototype.constructor = UIButton;
 UIButton.prototype.constructor = UIButton;
@@ -1067,7 +1067,7 @@ UIButton.prototype.setLabel = function ( value ) {
 
 
 // UITabbedPanel
 // UITabbedPanel
 
 
-var UITabbedPanel = function ( ) {
+function UITabbedPanel( ) {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -1093,7 +1093,7 @@ var UITabbedPanel = function ( ) {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UITabbedPanel.prototype = Object.create( UIElement.prototype );
 UITabbedPanel.prototype = Object.create( UIElement.prototype );
 UITabbedPanel.prototype.constructor = UITabbedPanel;
 UITabbedPanel.prototype.constructor = UITabbedPanel;
@@ -1202,7 +1202,7 @@ UITabbedPanel.Tab.prototype = Object.create( UIText.prototype );
 UITabbedPanel.Tab.prototype.constructor = UITabbedPanel.Tab;
 UITabbedPanel.Tab.prototype.constructor = UITabbedPanel.Tab;
 
 
 // UIListbox
 // UIListbox
-var UIListbox = function ( ) {
+function UIListbox( ) {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -1218,7 +1218,7 @@ var UIListbox = function ( ) {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIListbox.prototype = Object.create( UIElement.prototype );
 UIListbox.prototype = Object.create( UIElement.prototype );
 UIListbox.prototype.constructor = UIListbox;
 UIListbox.prototype.constructor = UIListbox;

+ 14 - 14
editor/js/libs/ui.three.js

@@ -14,7 +14,7 @@ import { MoveObjectCommand } from '../commands/MoveObjectCommand.js';
  * @author mrdoob / http://mrdoob.com/
  * @author mrdoob / http://mrdoob.com/
  */
  */
 
 
-var UITexture = function ( mapping ) {
+function UITexture( mapping ) {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -141,7 +141,7 @@ var UITexture = function ( mapping ) {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UITexture.prototype = Object.create( UIElement.prototype );
 UITexture.prototype = Object.create( UIElement.prototype );
 UITexture.prototype.constructor = UITexture;
 UITexture.prototype.constructor = UITexture;
@@ -225,7 +225,7 @@ UITexture.prototype.onChange = function ( callback ) {
 
 
 // UICubeTexture
 // UICubeTexture
 
 
-var UICubeTexture = function () {
+function UICubeTexture() {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -295,7 +295,7 @@ var UICubeTexture = function () {
 
 
 	}
 	}
 
 
-};
+}
 
 
 UICubeTexture.prototype = Object.create( UIElement.prototype );
 UICubeTexture.prototype = Object.create( UIElement.prototype );
 UICubeTexture.prototype.constructor = UICubeTexture;
 UICubeTexture.prototype.constructor = UICubeTexture;
@@ -366,7 +366,7 @@ UICubeTexture.prototype.onChange = function ( callback ) {
 
 
 // UIOutliner
 // UIOutliner
 
 
-var UIOutliner = function ( editor ) {
+function UIOutliner( editor ) {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -419,7 +419,7 @@ var UIOutliner = function ( editor ) {
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIOutliner.prototype = Object.create( UIElement.prototype );
 UIOutliner.prototype = Object.create( UIElement.prototype );
 UIOutliner.prototype.constructor = UIOutliner;
 UIOutliner.prototype.constructor = UIOutliner;
@@ -652,7 +652,7 @@ UIOutliner.prototype.setValue = function ( value ) {
 
 
 };
 };
 
 
-var UIPoints = function ( onAddClicked ) {
+function UIPoints( onAddClicked ) {
 
 
 	UIElement.call( this );
 	UIElement.call( this );
 
 
@@ -683,7 +683,7 @@ var UIPoints = function ( onAddClicked ) {
 	this.onChangeCallback = null;
 	this.onChangeCallback = null;
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIPoints.prototype = Object.create( UIElement.prototype );
 UIPoints.prototype = Object.create( UIElement.prototype );
 UIPoints.prototype.constructor = UIPoints;
 UIPoints.prototype.constructor = UIPoints;
@@ -727,13 +727,13 @@ UIPoints.prototype.deletePointRow = function ( idx, dontUpdate ) {
 
 
 };
 };
 
 
-var UIPoints2 = function () {
+function UIPoints2() {
 
 
 	UIPoints.call( this, UIPoints2.addRow.bind( this ) );
 	UIPoints.call( this, UIPoints2.addRow.bind( this ) );
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIPoints2.prototype = Object.create( UIPoints.prototype );
 UIPoints2.prototype = Object.create( UIPoints.prototype );
 UIPoints2.prototype.constructor = UIPoints2;
 UIPoints2.prototype.constructor = UIPoints2;
@@ -817,13 +817,13 @@ UIPoints2.prototype.createPointRow = function ( x, y ) {
 
 
 };
 };
 
 
-var UIPoints3 = function () {
+function UIPoints3() {
 
 
 	UIPoints.call( this, UIPoints3.addRow.bind( this ) );
 	UIPoints.call( this, UIPoints3.addRow.bind( this ) );
 
 
 	return this;
 	return this;
 
 
-};
+}
 
 
 UIPoints3.prototype = Object.create( UIPoints.prototype );
 UIPoints3.prototype = Object.create( UIPoints.prototype );
 UIPoints3.prototype.constructor = UIPoints3;
 UIPoints3.prototype.constructor = UIPoints3;
@@ -908,7 +908,7 @@ UIPoints3.prototype.createPointRow = function ( x, y, z ) {
 
 
 };
 };
 
 
-var UIBoolean = function ( boolean, text ) {
+function UIBoolean( boolean, text ) {
 
 
 	UISpan.call( this );
 	UISpan.call( this );
 
 
@@ -920,7 +920,7 @@ var UIBoolean = function ( boolean, text ) {
 	this.add( this.checkbox );
 	this.add( this.checkbox );
 	this.add( this.text );
 	this.add( this.text );
 
 
-};
+}
 
 
 UIBoolean.prototype = Object.create( UISpan.prototype );
 UIBoolean.prototype = Object.create( UISpan.prototype );
 UIBoolean.prototype.constructor = UIBoolean;
 UIBoolean.prototype.constructor = UIBoolean;