@@ -57,7 +57,7 @@ import {
5757 IPublicEnumTransitionType ,
5858 IPublicEnumDragObjectType ,
5959 IPublicTypeDragNodeObject ,
60- NodeInstance ,
60+ IPublicTypeNodeInstance ,
6161 IPublicTypeComponentInstance ,
6262 IPublicTypeLocationChildrenDetail ,
6363 IPublicTypeLocationDetailType ,
@@ -173,7 +173,6 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
173173
174174 readonly emitter : IEventBus = createModuleEventBus ( 'BuiltinSimulatorHost' ) ;
175175
176-
177176 readonly componentsConsumer : ResourceConsumer ;
178177
179178 readonly injectionConsumer : ResourceConsumer ;
@@ -898,7 +897,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
898897 /**
899898 * @see ISimulator
900899 */
901- getComponentInstances ( node : Node , context ?: NodeInstance ) : IPublicTypeComponentInstance [ ] | null {
900+ getComponentInstances ( node : Node , context ?: IPublicTypeNodeInstance ) : IPublicTypeComponentInstance [ ] | null {
902901 const docId = node . document . id ;
903902
904903 const instances = this . instancesMap [ docId ] ?. get ( node . id ) || null ;
@@ -925,7 +924,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
925924 getClosestNodeInstance (
926925 from : IPublicTypeComponentInstance ,
927926 specId ?: string ,
928- ) : NodeInstance < IPublicTypeComponentInstance > | null {
927+ ) : IPublicTypeNodeInstance < IPublicTypeComponentInstance > | null {
929928 return this . renderer ?. getClosestNodeInstance ( from , specId ) || null ;
930929 }
931930
@@ -1028,7 +1027,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
10281027 /**
10291028 * 通过 DOM 节点获取节点,依赖 simulator 的接口
10301029 */
1031- getNodeInstanceFromElement ( target : Element | null ) : NodeInstance < IPublicTypeComponentInstance > | null {
1030+ getNodeInstanceFromElement ( target : Element | null ) : IPublicTypeNodeInstance < IPublicTypeComponentInstance > | null {
10321031 if ( ! target ) {
10331032 return null ;
10341033 }
@@ -1111,14 +1110,14 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
11111110 private _sensorAvailable = true ;
11121111
11131112 /**
1114- * @see ISensor
1113+ * @see IPublicModelSensor
11151114 */
11161115 get sensorAvailable ( ) : boolean {
11171116 return this . _sensorAvailable ;
11181117 }
11191118
11201119 /**
1121- * @see ISensor
1120+ * @see IPublicModelSensor
11221121 */
11231122 fixEvent ( e : ILocateEvent ) : ILocateEvent {
11241123 if ( e . fixed ) {
@@ -1149,7 +1148,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
11491148 }
11501149
11511150 /**
1152- * @see ISensor
1151+ * @see IPublicModelSensor
11531152 */
11541153 isEnter ( e : ILocateEvent ) : boolean {
11551154 const rect = this . viewport . bounds ;
@@ -1164,7 +1163,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
11641163 private sensing = false ;
11651164
11661165 /**
1167- * @see ISensor
1166+ * @see IPublicModelSensor
11681167 */
11691168 deactiveSensor ( ) {
11701169 this . sensing = false ;
@@ -1174,7 +1173,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
11741173 // ========= drag location logic: helper for locate ==========
11751174
11761175 /**
1177- * @see ISensor
1176+ * @see IPublicModelSensor
11781177 */
11791178 locate ( e : ILocateEvent ) : any {
11801179 const { dragObject } = e ;
@@ -1372,7 +1371,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
13721371 const document = this . project . currentDocument ! ;
13731372 const { currentRoot } = document ;
13741373 let container : INode ;
1375- let nodeInstance : NodeInstance < IPublicTypeComponentInstance > | undefined ;
1374+ let nodeInstance : IPublicTypeNodeInstance < IPublicTypeComponentInstance > | undefined ;
13761375
13771376 if ( target ) {
13781377 const ref = this . getNodeInstanceFromElement ( target ) ;
0 commit comments