mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-02-01 16:08:17 +00:00
导出所有类。
This commit is contained in:
parent
c6ae593c7c
commit
cb05be5d63
@ -4,7 +4,7 @@ import EventDispatcher from './event/EventDispatcher';
|
||||
import Viewport from './editor/Viewport';
|
||||
import Script from './core/Script';
|
||||
import Player from './core/Player';
|
||||
import Toolbar from './editor/Toolbar';
|
||||
import StatusBar from './editor/StatusBar';
|
||||
import Menubar from './menu/Menubar';
|
||||
import Sidebar from './panel/Sidebar';
|
||||
|
||||
@ -40,8 +40,8 @@ function Application(container, options) {
|
||||
this.container.appendChild(this.sidebar.dom);
|
||||
|
||||
// 底部状态栏
|
||||
this.toolbar = new Toolbar(this);
|
||||
this.container.appendChild(this.toolbar.dom);
|
||||
this.statusBar = new StatusBar(this);
|
||||
this.container.appendChild(this.statusBar.dom);
|
||||
|
||||
// 脚本编辑窗口
|
||||
this.script = new Script(this);
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @author mrdoob / http://mrdoob.com/
|
||||
*/
|
||||
|
||||
function Toolbar(app) {
|
||||
function StatusBar(app) {
|
||||
this.app = app;
|
||||
var editor = this.app.editor;
|
||||
|
||||
@ -78,4 +78,4 @@ function Toolbar(app) {
|
||||
return container;
|
||||
};
|
||||
|
||||
export default Toolbar;
|
||||
export default StatusBar;
|
||||
@ -1,4 +1,4 @@
|
||||
export { default as ViewportInfo } from './ViewportInfo';
|
||||
export { default as Viewport } from './Viewport';
|
||||
export { default as Toolbar } from './Toolbar';
|
||||
export { default as StatusBar } from './StatusBar';
|
||||
export { default as Editor } from './Editor';
|
||||
@ -1,3 +1,34 @@
|
||||
export { default as EventList } from './EventList';
|
||||
export { default as BaseEvent } from './BaseEvent';
|
||||
export { default as EventDispatcher } from './EventDispatcher';
|
||||
export { default as EventDispatcher } from './EventDispatcher';
|
||||
|
||||
export { default as InitAppEvent } from './app/InitAppEvent';
|
||||
|
||||
export { default as DragOverEvent } from './dom/DragOverEvent';
|
||||
export { default as DropEvent } from './dom/DropEvent';
|
||||
export { default as KeyDownEvent } from './dom/KeyDownEvent';
|
||||
export { default as MessageEvent } from './dom/MessageEvent';
|
||||
export { default as ResizeEvent } from './dom/ResizeEvent';
|
||||
|
||||
export { default as AddGeometryEvent } from './editor/AddGeometryEvent';
|
||||
export { default as AddHelperEvent } from './editor/AddHelperEvent';
|
||||
export { default as AddMaterialEvent } from './editor/AddMaterialEvent';
|
||||
export { default as AddObjectEvent } from './editor/AddObjectEvent';
|
||||
export { default as AddScriptEvent } from './editor/AddScriptEvent';
|
||||
export { default as AddTextureEvent } from './editor/AddTextureEvent';
|
||||
export { default as AutoSaveEvent } from './editor/AutoSaveEvent';
|
||||
export { default as ClearEvent } from './editor/ClearEvent';
|
||||
export { default as LoadEvent } from './editor/LoadEvent';
|
||||
export { default as LoadFromHashEvent } from './editor/LoadFromHashEvent';
|
||||
export { default as MoveObjectEvent } from './editor/MoveObjectEvent';
|
||||
export { default as NameObjectEvent } from './editor/NameObjectEvent';
|
||||
export { default as RemoveHelperEvent } from './editor/RemoveHelperEvent';
|
||||
export { default as RemoveObjectEvent } from './editor/RemoveObjectEvent';
|
||||
export { default as RemoveScriptEvent } from './editor/RemoveScriptEvent';
|
||||
export { default as SaveEvent } from './editor/SaveEvent';
|
||||
export { default as SelectEvent } from './editor/SelectEvent';
|
||||
export { default as SetGeometryNameEvent } from './editor/SetGeometryNameEvent';
|
||||
export { default as SetMaterialNameEvent } from './editor/SetMaterialNameEvent';
|
||||
export { default as SetSceneEvent } from './editor/SetSceneEvent';
|
||||
export { default as SetThemeEvent } from './editor/SetThemeEvent';
|
||||
export { default as VREvent } from './editor/VREvent';
|
||||
@ -1,5 +1,6 @@
|
||||
export * from './third_party';
|
||||
import { } from './polyfills';
|
||||
export * from './exception/index';
|
||||
export * from './event/index';
|
||||
export * from './core/index';
|
||||
export * from './command/index';
|
||||
@ -7,6 +8,7 @@ export * from './ui/index';
|
||||
export * from './menu/index';
|
||||
export * from './panel/index';
|
||||
export * from './editor/index';
|
||||
export * from './utils/index';
|
||||
|
||||
export { default as Options } from './Options';
|
||||
export { default as Application } from './Application';
|
||||
@ -18,4 +18,4 @@ const CssUtils = {
|
||||
load: loadCss
|
||||
};
|
||||
|
||||
export { CssUtils };
|
||||
export default CssUtils;
|
||||
@ -26,4 +26,4 @@ const JsUtils = {
|
||||
load: loadJs
|
||||
};
|
||||
|
||||
export { JsUtils };
|
||||
export default JsUtils;
|
||||
Loading…
x
Reference in New Issue
Block a user