Browse Source

Editor: Renamed SelectionHelper to Selector.

Mr.doob 3 years ago
parent
commit
909350e659
3 changed files with 7 additions and 7 deletions
  1. 4 4
      editor/js/Editor.js
  2. 2 2
      editor/js/Viewport.Selector.js
  3. 1 1
      editor/sw.js

+ 4 - 4
editor/js/Editor.js

@@ -5,7 +5,7 @@ import { Loader } from './Loader.js';
 import { History as _History } from './History.js';
 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';
-import { SelectionHelper } from './Viewport.SelectionHelper.js';
+import { Selector } from './Viewport.Selector.js';
 
 
 var _DEFAULT_CAMERA = new THREE.PerspectiveCamera( 50, 1, 0.01, 1000 );
 var _DEFAULT_CAMERA = new THREE.PerspectiveCamera( 50, 1, 0.01, 1000 );
 _DEFAULT_CAMERA.name = 'Camera';
 _DEFAULT_CAMERA.name = 'Camera';
@@ -95,7 +95,7 @@ function Editor() {
 	this.history = new _History( this );
 	this.history = new _History( this );
 	this.storage = new _Storage();
 	this.storage = new _Storage();
 	this.strings = new Strings( this.config );
 	this.strings = new Strings( this.config );
-	this.selectionHelper = new SelectionHelper( this );
+	this.selector = new Selector( this );
 
 
 	this.loader = new Loader( this );
 	this.loader = new Loader( this );
 
 
@@ -539,7 +539,7 @@ Editor.prototype = {
 
 
 	select: function ( object ) {
 	select: function ( object ) {
 
 
-		this.selectionHelper.select( object );
+		this.selector.select( object );
 
 
 	},
 	},
 
 
@@ -574,7 +574,7 @@ Editor.prototype = {
 
 
 	deselect: function () {
 	deselect: function () {
 
 
-		this.selectionHelper.deselect();
+		this.selector.deselect();
 
 
 	},
 	},
 
 

+ 2 - 2
editor/js/Viewport.SelectionHelper.js → editor/js/Viewport.Selector.js

@@ -1,4 +1,4 @@
-class SelectionHelper {
+class Selector {
 
 
 	constructor( editor ) {
 	constructor( editor ) {
 
 
@@ -66,4 +66,4 @@ class SelectionHelper {
 
 
 }
 }
 
 
-export { SelectionHelper };
+export { Selector };

+ 1 - 1
editor/sw.js

@@ -190,7 +190,7 @@ const assets = [
 	'./js/Viewport.js',
 	'./js/Viewport.js',
 	'./js/Viewport.Camera.js',
 	'./js/Viewport.Camera.js',
 	'./js/Viewport.Info.js',
 	'./js/Viewport.Info.js',
-	'./js/Viewport.SelectionHelper.js',
+	'./js/Viewport.Selector.js',
 	'./js/Viewport.ViewHelper.js',
 	'./js/Viewport.ViewHelper.js',
 	'./js/Viewport.VR.js',
 	'./js/Viewport.VR.js',