vrtalk-web-sdk 0.1.600 → 0.1.602
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,7 +33,7 @@ import { XrPrepareSettings } from '../../model/vr/xr-prepare';
|
|
|
33
33
|
import { XrAbility, XrAbilityGroup } from '@/model/vr/xr-ability';
|
|
34
34
|
import { XrHamburgerMenu } from './xr-hamburger-menu';
|
|
35
35
|
import { LanguageType } from '../general/multi-language-str';
|
|
36
|
-
import { XrProgramScene, XrCustomClass, XrProgramFunction
|
|
36
|
+
import { XrProgramScene, XrCustomClass, XrProgramFunction } from './xr-program';
|
|
37
37
|
/**
|
|
38
38
|
* VR内容数据构建器
|
|
39
39
|
*/
|
|
@@ -227,6 +227,5 @@ export declare class VrContentData {
|
|
|
227
227
|
programSceneList: XrProgramScene[];
|
|
228
228
|
customClassList: XrCustomClass[];
|
|
229
229
|
sharedFunctionList: XrProgramFunction[];
|
|
230
|
-
entityHandlerBindingList: XrEntityHandlerBinding[];
|
|
231
230
|
constructor(mpModelId: string, vrUnicode: string);
|
|
232
231
|
}
|
|
@@ -11,15 +11,14 @@ import type { XrAnyAction } from './vr-action';
|
|
|
11
11
|
* ├─ sharedVariableList 共享变量(跨场景单例,已有)
|
|
12
12
|
* ├─ customClassList 自定义类(全局类型库,plan §1.39)
|
|
13
13
|
* ├─ sharedFunctionList 公共函数库(共享层,任意场景可调,plan §1.27/§1.35)
|
|
14
|
-
* ├─ entityHandlerBindingList 实体↔handler 关联(VB code-behind,plan §4.9)
|
|
15
14
|
* └─ programSceneList 场景(真隔离逻辑,多场景并发,plan §4.8)
|
|
16
15
|
* └─ XrProgramScene
|
|
17
|
-
* ├─ sceneVariableList
|
|
18
|
-
*
|
|
16
|
+
* ├─ sceneVariableList 场景变量(场景内所有模块可见)
|
|
17
|
+
* ├─ moduleList 模块(.java 式;模块变量私有,plan §1.15)
|
|
18
|
+
* └─ entityHandlerBindingList 组件函数绑定关系(实体事件↔本场景某模块的 handler 函数,plan §4.9)
|
|
19
19
|
* └─ XrProgramModule
|
|
20
20
|
* ├─ moduleVariableList
|
|
21
|
-
* ├─
|
|
22
|
-
* ├─ functionList 函数(调用即返回,plan §4.6)
|
|
21
|
+
* ├─ functionList 函数(调用即返回;组件事件监听也是这里的函数,plan §4.6)
|
|
23
22
|
* ├─ subprogramList 常驻子程序(有生命周期,plan §4.6)
|
|
24
23
|
* └─ folderList 可选的组织文件夹(plan §1.40)
|
|
25
24
|
*
|
|
@@ -36,13 +35,13 @@ export declare class XrProgramScene extends VRTalkBaseData {
|
|
|
36
35
|
onPauseActionList: XrAnyAction[];
|
|
37
36
|
onResumeActionList: XrAnyAction[];
|
|
38
37
|
moduleList: XrProgramModule[];
|
|
38
|
+
entityHandlerBindingList: XrEntityHandlerBinding[];
|
|
39
39
|
}
|
|
40
40
|
/** 场景内「模块」——类似一个 .java 文件;模块变量私有,跨模块调用公开函数(plan §1.15) */
|
|
41
41
|
export declare class XrProgramModule extends VRTalkBaseData {
|
|
42
42
|
name: MultiLanguageStr;
|
|
43
43
|
remark: string;
|
|
44
44
|
moduleVariableList: XrVariable[];
|
|
45
|
-
listenerList: XrProgramListener[];
|
|
46
45
|
functionList: XrProgramFunction[];
|
|
47
46
|
subprogramList: XrSubprogram[];
|
|
48
47
|
folderList: XrProgramFolder[];
|
|
@@ -53,25 +52,6 @@ export declare class XrProgramFolder extends VRTalkBaseData {
|
|
|
53
52
|
name: string;
|
|
54
53
|
parentFolderId: string;
|
|
55
54
|
}
|
|
56
|
-
/** 对象.事件 的引用(监听器订阅的目标;plan §4.1 receiver + eventName) */
|
|
57
|
-
export declare class XrEventRef {
|
|
58
|
-
from: 'picker' | 'variable';
|
|
59
|
-
typeKey: string;
|
|
60
|
-
entityId: string;
|
|
61
|
-
entityParentPath: string[];
|
|
62
|
-
variableScope: string;
|
|
63
|
-
variableKey: string;
|
|
64
|
-
eventName: string;
|
|
65
|
-
}
|
|
66
|
-
/** 声明式监听器(= VrSignalTrigger 泛化;加载即注册。动态监听器由 addListener action 运行时创建,不在此列) */
|
|
67
|
-
export declare class XrProgramListener extends VRTalkBaseData {
|
|
68
|
-
name: MultiLanguageStr;
|
|
69
|
-
remark: string;
|
|
70
|
-
folderId: string;
|
|
71
|
-
event: XrEventRef;
|
|
72
|
-
localVariableList: XrVariable[];
|
|
73
|
-
bodyActionList: XrAnyAction[];
|
|
74
|
-
}
|
|
75
55
|
/** 函数参数(类型可为任意 XrVariableType,含对象/自定义类;plan §4.6) */
|
|
76
56
|
export declare class XrProgramFunctionParam {
|
|
77
57
|
key: string;
|
|
@@ -144,5 +124,5 @@ export declare class XrEntityHandlerBinding extends VRTalkBaseData {
|
|
|
144
124
|
entityParentPath: string[];
|
|
145
125
|
eventName: string;
|
|
146
126
|
handlerFunctionId: string;
|
|
147
|
-
|
|
127
|
+
moduleId: string;
|
|
148
128
|
}
|