删除GeometryEvent。

This commit is contained in:
liteng 2018-08-21 21:54:42 +08:00
parent 30bb007101
commit 02ed99ea19
2 changed files with 0 additions and 31 deletions

View File

@ -114,7 +114,6 @@ import ShowGridChangedEvent from './viewport/ShowGridChangedEvent';
import SceneFogChangedEvent from './viewport/SceneFogChangedEvent';
import SceneBackgroundChangedEvent from './viewport/SceneBackgroundChangedEvent';
import ObjectEvent from './viewport/ObjectEvent';
import GeometryEvent from './viewport/GeometryEvent';
import PickEvent from './viewport/PickEvent';
import WindowResizeEvent from './viewport/WindowResizeEvent';
import ThemeChangedEvent from './viewport/ThemeChangedEvent';
@ -250,7 +249,6 @@ function EventDispatcher(app) {
new SceneFogChangedEvent(this.app),
new SceneBackgroundChangedEvent(this.app),
new ObjectEvent(this.app),
new GeometryEvent(this.app),
new PickEvent(this.app),
new WindowResizeEvent(this.app),
new ThemeChangedEvent(this.app),

View File

@ -1,29 +0,0 @@
import BaseEvent from '../BaseEvent';
/**
* 几何体改变事件
* @param {*} app
*/
function GeometryEvent(app) {
BaseEvent.call(this, app);
}
GeometryEvent.prototype = Object.create(BaseEvent.prototype);
GeometryEvent.prototype.constructor = GeometryEvent;
GeometryEvent.prototype.start = function () {
var _this = this;
this.app.on('geometryChanged.' + this.id, function (object) {
_this.onGeometryChanged(object);
});
};
GeometryEvent.prototype.stop = function () {
this.app.on('geometryChanged.' + this.id, null);
};
GeometryEvent.prototype.onGeometryChanged = function (object) {
this.app.call('render');
};
export default GeometryEvent;