Skip to content

Commit

Permalink
Editor: Renamed SelectionHelper to Selector.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed May 26, 2022
1 parent eb59abb commit 909350e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions editor/js/Editor.js
Expand Up @@ -5,7 +5,7 @@ import { Loader } from './Loader.js';
import { History as _History } from './History.js';
import { Strings } from './Strings.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 );
_DEFAULT_CAMERA.name = 'Camera';
Expand Down Expand Up @@ -95,7 +95,7 @@ function Editor() {
this.history = new _History( this );
this.storage = new _Storage();
this.strings = new Strings( this.config );
this.selectionHelper = new SelectionHelper( this );
this.selector = new Selector( this );

this.loader = new Loader( this );

Expand Down Expand Up @@ -539,7 +539,7 @@ Editor.prototype = {

select: function ( object ) {

this.selectionHelper.select( object );
this.selector.select( object );

},

Expand Down Expand Up @@ -574,7 +574,7 @@ Editor.prototype = {

deselect: function () {

this.selectionHelper.deselect();
this.selector.deselect();

},

Expand Down
@@ -1,4 +1,4 @@
class SelectionHelper {
class Selector {

constructor( editor ) {

Expand Down Expand Up @@ -66,4 +66,4 @@ class SelectionHelper {

}

export { SelectionHelper };
export { Selector };
2 changes: 1 addition & 1 deletion editor/sw.js
Expand Up @@ -190,7 +190,7 @@ const assets = [
'./js/Viewport.js',
'./js/Viewport.Camera.js',
'./js/Viewport.Info.js',
'./js/Viewport.SelectionHelper.js',
'./js/Viewport.Selector.js',
'./js/Viewport.ViewHelper.js',
'./js/Viewport.VR.js',

Expand Down

0 comments on commit 909350e

Please sign in to comment.