mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-07 03:52:41 +08:00
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:
@@ -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,
|
||||
|
||||
@@ -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!;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user