add some typing to interface of INode (#4984)

* add some typing to interface of INode

* fix INode childern typing

* add Mutable type, for change Readonly type

* decouple node with ui relative component

* add missed ui component, and decouple node

* add more typing to IBaseNode and INode
This commit is contained in:
jiaxin.lai
2019-07-26 17:56:55 +08:00
committed by pandamicro
parent 348dfd60a8
commit faa7094cf8
18 changed files with 607 additions and 143 deletions
@@ -42,7 +42,7 @@
import { ccclass, menu } from '../core/data/class-decorator';
import { Component } from './component';
import { Event } from '../core/event';
import { SystemEventType } from '../core/platform';
import { SystemEventType } from '../core/platform/event-manager/event-enum';
const BlockEvents = [SystemEventType.TOUCH_START, SystemEventType.TOUCH_END, SystemEventType.TOUCH_MOVE,
SystemEventType.MOUSE_DOWN, SystemEventType.MOUSE_MOVE, SystemEventType.MOUSE_UP,
+1 -1
View File
@@ -242,7 +242,7 @@ class Component extends CCObject {
if (this._sceneGetter) {
return this._sceneGetter();
} else {
return this.node.scene._renderScene!;
return this.node.scene!._renderScene!;
}
}