提交 1f6fbb56 编写于 作者: M Mr.doob

Editor: Clean up.

上级 5b9ef34f
......@@ -2,9 +2,7 @@
* @author mrdoob / http://mrdoob.com/
*/
var Config = function () {
var name = 'threejs-editor';
var Config = function ( name ) {
var storage = {
'autosave': true,
......
......@@ -4,77 +4,77 @@
var Editor = function () {
var SIGNALS = signals;
this.DEFAULT_CAMERA = new THREE.PerspectiveCamera( 50, 1, 0.1, 10000 );
this.DEFAULT_CAMERA.name = 'Camera';
this.DEFAULT_CAMERA.position.set( 20, 10, 20 );
this.DEFAULT_CAMERA.lookAt( new THREE.Vector3() );
var Signal = signals.Signal;
this.signals = {
// script
editScript: new SIGNALS.Signal(),
editScript: new Signal(),
// player
startPlayer: new SIGNALS.Signal(),
stopPlayer: new SIGNALS.Signal(),
startPlayer: new Signal(),
stopPlayer: new Signal(),
// actions
showModal: new SIGNALS.Signal(),
showModal: new Signal(),
// notifications
editorCleared: new SIGNALS.Signal(),
editorCleared: new Signal(),
savingStarted: new SIGNALS.Signal(),
savingFinished: new SIGNALS.Signal(),
savingStarted: new Signal(),
savingFinished: new Signal(),
themeChanged: new SIGNALS.Signal(),
themeChanged: new Signal(),
transformModeChanged: new SIGNALS.Signal(),
snapChanged: new SIGNALS.Signal(),
spaceChanged: new SIGNALS.Signal(),
rendererChanged: new SIGNALS.Signal(),
transformModeChanged: new Signal(),
snapChanged: new Signal(),
spaceChanged: new Signal(),
rendererChanged: new Signal(),
sceneGraphChanged: new SIGNALS.Signal(),
sceneGraphChanged: new Signal(),
cameraChanged: new SIGNALS.Signal(),
cameraChanged: new Signal(),
geometryChanged: new SIGNALS.Signal(),
geometryChanged: new Signal(),
objectSelected: new SIGNALS.Signal(),
objectFocused: new SIGNALS.Signal(),
objectSelected: new Signal(),
objectFocused: new Signal(),
objectAdded: new SIGNALS.Signal(),
objectChanged: new SIGNALS.Signal(),
objectRemoved: new SIGNALS.Signal(),
objectAdded: new Signal(),
objectChanged: new Signal(),
objectRemoved: new Signal(),
helperAdded: new SIGNALS.Signal(),
helperRemoved: new SIGNALS.Signal(),
helperAdded: new Signal(),
helperRemoved: new Signal(),
materialChanged: new SIGNALS.Signal(),
materialChanged: new Signal(),
scriptAdded: new SIGNALS.Signal(),
scriptChanged: new SIGNALS.Signal(),
scriptRemoved: new SIGNALS.Signal(),
scriptAdded: new Signal(),
scriptChanged: new Signal(),
scriptRemoved: new Signal(),
fogTypeChanged: new SIGNALS.Signal(),
fogColorChanged: new SIGNALS.Signal(),
fogParametersChanged: new SIGNALS.Signal(),
windowResize: new SIGNALS.Signal(),
fogTypeChanged: new Signal(),
fogColorChanged: new Signal(),
fogParametersChanged: new Signal(),
windowResize: new Signal(),
showGridChanged: new SIGNALS.Signal(),
refreshSidebarObject3D: new SIGNALS.Signal(),
historyChanged: new SIGNALS.Signal(),
refreshScriptEditor: new SIGNALS.Signal()
showGridChanged: new Signal(),
refreshSidebarObject3D: new Signal(),
historyChanged: new Signal(),
refreshScriptEditor: new Signal()
};
this.config = new Config();
this.config = new Config( 'threejs-editor' );
this.history = new History( this );
this.storage = new Storage();
this.loader = new Loader( this );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册