vrtalk-web-sdk 0.1.598 → 0.1.600
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.
- package/dist/src/api-catalog/catalog-domain-classes.d.ts +20 -0
- package/dist/src/api-catalog/catalog-entity-components.d.ts +25 -0
- package/dist/src/api-catalog/catalog-entity-space.d.ts +20 -0
- package/dist/src/api-catalog/catalog-entity-ui.d.ts +23 -0
- package/dist/src/api-catalog/catalog-value-classes.d.ts +3 -0
- package/dist/src/api-catalog/index.d.ts +8 -0
- package/dist/src/api-catalog/xr-api-catalog.d.ts +167 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/model/vr/index.d.ts +2 -0
- package/dist/src/model/vr/vr-action.d.ts +131 -4
- package/dist/src/model/vr/vr-content-data.d.ts +7 -0
- package/dist/src/model/vr/vr-signal.d.ts +5 -2
- package/dist/src/model/vr/vr-ui-icon-layout.d.ts +10 -3
- package/dist/src/model/vr/xr-ai-agent-tool-catalog.d.ts +1 -1
- package/dist/src/model/vr/xr-ai-agent.d.ts +10 -0
- package/dist/src/model/vr/xr-logic.d.ts +32 -3
- package/dist/src/model/vr/xr-program.d.ts +148 -0
- package/dist/src/model/vr/xr-ray-hitter.d.ts +49 -0
- package/dist/src/parent/com-command/index.d.ts +1 -0
- package/dist/src/parent/com-command/parent-com-command-ray-hitter.d.ts +11 -0
- package/dist/src/parent/com-message/index.d.ts +1 -0
- package/dist/src/parent/com-message/parent-com-message-ray-hitter.d.ts +8 -0
- package/dist/src/parent/vrtalk-editable-player.d.ts +4 -2
- package/dist/src/player/com-command/index.d.ts +1 -0
- package/dist/src/player/com-command/player-com-command-ray-hitter.d.ts +8 -0
- package/dist/src/player/com-command/player-com-command.d.ts +6 -1
- package/dist/src/player/com-message/index.d.ts +1 -0
- package/dist/src/player/com-message/player-com-message-ray-hitter.d.ts +5 -0
- package/dist/src/player/com-message/player-com-message.d.ts +3 -1
- package/dist/src/player/player-controller.d.ts +4 -2
- package/dist/src/utils/path-keyframe-generator.d.ts +18 -2
- package/dist/vrtalk-web-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { XrApiClassMeta } from './xr-api-catalog';
|
|
2
|
+
/**
|
|
3
|
+
* ============================================================
|
|
4
|
+
* 标准库目录 —— B. 领域/系统静态类(plan §5B)
|
|
5
|
+
* ============================================================
|
|
6
|
+
*
|
|
7
|
+
* 全部 kind:'static'、groupKey:'system'。承接现有「无目标 / 系统级」老动作
|
|
8
|
+
* (vr-action.ts 各 VrActionParams*),legacyActionType 一一对应,供:
|
|
9
|
+
* - console 迁移器(老 VrAction → XrObjectCallAction)
|
|
10
|
+
* - 运行时向后兼容归一(plan §1.23)
|
|
11
|
+
*
|
|
12
|
+
* 约定(勿改):
|
|
13
|
+
* - 老动作在 vr-action-platform-capability 里登记为 VR_ONLY 的
|
|
14
|
+
* (camera_* / sweep_* / tag模拟点击 / system_color_space_*),对应方法 platform='vr_only'
|
|
15
|
+
* - 耗时操作 supportsAsync=true(TTS/AI/网络/运镜/导航/相机移动等,plan §1.17)
|
|
16
|
+
* - pure=true 仅限真正无副作用查询(可进条件槽,plan §4.1 红线)
|
|
17
|
+
*
|
|
18
|
+
* 本文件只导出 buildDomainClasses(),无 import 副作用、不自行 register(plan §1.34/§1.37)。
|
|
19
|
+
*/
|
|
20
|
+
export declare function buildDomainClasses(): XrApiClassMeta[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type XrApiClassMeta } from './xr-api-catalog';
|
|
2
|
+
/**
|
|
3
|
+
* ============================================================
|
|
4
|
+
* 标准库目录 —— 装修组件实体类树(groupKey='decorate')
|
|
5
|
+
* ============================================================
|
|
6
|
+
*
|
|
7
|
+
* 来源(老体系映射):
|
|
8
|
+
* - 方法 = vr-action.ts 的 component_* 动作族(component_general_* / component_2d_* / component_3d_* / component_tag_*),
|
|
9
|
+
* 参数字段逐一对照各 VrActionParams* 类抄写(legacyActionType 一对一)。
|
|
10
|
+
* 老 params 里的 componentId 在新体系由接收者(receiver)承担,不再作为方法参数。
|
|
11
|
+
* - 事件 = vr-signal.ts 的组件相关信号(VrSignalTypeSourceMapping 中 component_* 各 source)。
|
|
12
|
+
* - 继承树 = vr-component-data.ts 现实类树:
|
|
13
|
+
* VrComponentData(抽象)
|
|
14
|
+
* ├─ VrComponentData2d(抽象)→ 2d_text / 2d_image / 2d_video / 2d_panel / 2d_advertisement
|
|
15
|
+
* ├─ VrComponentData3d(抽象)→ 3d_box / 3d_model
|
|
16
|
+
* └─ tag(VrComponentTagData 直接继承 VrComponentData,跳过 2d/3d 层)
|
|
17
|
+
* - 子件实体:panel_button / panel_scene(vr-component-2d-panel-data.ts 的
|
|
18
|
+
* VrComponent2dPanelButtonItemData / VrComponent2dPanelSceneData),复合寻址走 parentPathSpec。
|
|
19
|
+
*
|
|
20
|
+
* 约定:
|
|
21
|
+
* - 本文件只构造元数据、无 import 副作用,不自行 register(由目录装配入口统一注册)。
|
|
22
|
+
* - 方法分组名(groupKey→显示名)沿继承链解析:子类方法可复用父类 methodGroups 里定义的 groupKey。
|
|
23
|
+
*/
|
|
24
|
+
/** 构造装修组件实体类树的全部类元数据 */
|
|
25
|
+
export declare function buildComponentEntityClasses(): XrApiClassMeta[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { XrApiClassMeta } from './xr-api-catalog';
|
|
2
|
+
/**
|
|
3
|
+
* ============================================================
|
|
4
|
+
* 标准库目录 —— 空间 / 逻辑 / AI / 内容 实体类(plan §5C / §5「实例方法」)
|
|
5
|
+
* ============================================================
|
|
6
|
+
*
|
|
7
|
+
* 本文件收录四组实体类(kind='entity'):
|
|
8
|
+
* - groupKey='space' :贴纸 / 空间围栏(+组) / 射线命中器 / 扫描点位 / 标记
|
|
9
|
+
* - groupKey='logic' :后台线程 / 能力(@deprecated) / 运镜路径 / 广播频道
|
|
10
|
+
* - groupKey='ai' :AI智能体
|
|
11
|
+
* - groupKey='content':音频列表 / 音频 / 目标点 / 虫洞 / 阻隔器
|
|
12
|
+
*
|
|
13
|
+
* 老体系映射来源:
|
|
14
|
+
* - 方法 → vr-action.ts 的 VrActionTypeDefine(legacyActionType 一对一)
|
|
15
|
+
* - 事件 → vr-signal.ts 的 VrSignalSource / VrSignalType(legacySignalSource/Type)
|
|
16
|
+
* - pure 查询 → player xr-condition-function-registry 的判断函数(legacyConditionFunc)
|
|
17
|
+
*
|
|
18
|
+
* 约定:仅导出 buildSpaceEntityClasses(),无 import 副作用、不自行 register(由汇总入口统一注册)。
|
|
19
|
+
*/
|
|
20
|
+
export declare function buildSpaceEntityClasses(): XrApiClassMeta[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { XrApiClassMeta } from './xr-api-catalog';
|
|
2
|
+
/**
|
|
3
|
+
* ============================================================
|
|
4
|
+
* 标准库目录 —— UI 实体类(groupKey='ui')
|
|
5
|
+
* ============================================================
|
|
6
|
+
*
|
|
7
|
+
* 覆盖老动作族:
|
|
8
|
+
* - monitor_* 监控面板 / 监控组件 / 监控视频组件
|
|
9
|
+
* - hamburger_menu_* 汉堡菜单 / 汉堡节点 / 汉堡分组
|
|
10
|
+
* - canvas_component_* 汉堡画布节点内的画布组件
|
|
11
|
+
* - message_card_* 消息卡(含临时消息卡静态类 MessageCardCenter)
|
|
12
|
+
* - information_content_card_* 内容卡
|
|
13
|
+
* - visualization_controller_* 可视化控制器(静态类)
|
|
14
|
+
* - layer_change_visibility 图层
|
|
15
|
+
*
|
|
16
|
+
* 老实体来源:xr-monitor.ts / xr-hamburger-menu.ts / xr-message-card.ts / vr-content-card.ts / vr-layer.ts
|
|
17
|
+
* 老判断函数来源:player xr-condition-function-registry(monitor_enabled / layer_visible / …)
|
|
18
|
+
*
|
|
19
|
+
* 约定(plan §1.34/§1.37):
|
|
20
|
+
* - 老动作里的 *IdList 批量字段一律收敛为「接收者=单个实体」;批量需求走 列表.遍历(forEach)
|
|
21
|
+
* - 本文件只构造不注册(无 import 副作用),由目录入口统一 registerApiClasses
|
|
22
|
+
*/
|
|
23
|
+
export declare function buildUiEntityClasses(): XrApiClassMeta[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './xr-api-catalog';
|
|
2
|
+
export { buildValueClasses } from './catalog-value-classes';
|
|
3
|
+
export { buildDomainClasses } from './catalog-domain-classes';
|
|
4
|
+
export { buildComponentEntityClasses } from './catalog-entity-components';
|
|
5
|
+
export { buildUiEntityClasses } from './catalog-entity-ui';
|
|
6
|
+
export { buildSpaceEntityClasses } from './catalog-entity-space';
|
|
7
|
+
/** 注册全部标准库/实体类元数据(幂等;重复调用直接跳过) */
|
|
8
|
+
export declare function registerAllApiCatalog(): void;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import type { XrVariableType } from '../model/vr/xr-logic';
|
|
2
|
+
/**
|
|
3
|
+
* ============================================================
|
|
4
|
+
* 可视化编程系统 —— 标准库 / 对象方法 元数据表(plan §5 / §11.1)
|
|
5
|
+
* ============================================================
|
|
6
|
+
*
|
|
7
|
+
* 这是「对象.方法」体系的唯一真源(SSOT),供五处共同消费:
|
|
8
|
+
* 1. 运行时方法分派表(player TS / Unity C#):按 (classKey, methodKey) 找处理器
|
|
9
|
+
* 2. console 编辑器:选完接收者后,右侧 select 列该类型的方法(多则按 groupKey 分组)
|
|
10
|
+
* 3. 条件脱糖:纯查询方法(pure=true)在条件槽被编辑期编译成表达式字符串(legacyConditionFunc)
|
|
11
|
+
* 4. 「类型 → 选择器」注册表(selectorKey)
|
|
12
|
+
* 5. C# / Swift 代码生成
|
|
13
|
+
*
|
|
14
|
+
* 约定(plan §1.34/§1.37):
|
|
15
|
+
* - classKey / methodKey / paramKey 一律英文小驼峰或既有类型键;UI 显示走 name 三语
|
|
16
|
+
* - 实体类 classKey 沿用现有类型键('2d_video' / 'tag' / 'monitor' …),静态类用大驼峰('Camera'/'String')
|
|
17
|
+
* - 老 actionType / 老判断函数 通过 legacyActionType / legacyConditionFunc 建立映射,
|
|
18
|
+
* 供 迁移器(console)与 运行时向后兼容归一(plan §1.23)使用
|
|
19
|
+
*/
|
|
20
|
+
/** 目录用三语文本(静态元数据,非用户内容,不用 MultiLanguageStr) */
|
|
21
|
+
export declare class XrApiText {
|
|
22
|
+
cn: string;
|
|
23
|
+
en: string;
|
|
24
|
+
jp: string;
|
|
25
|
+
constructor(cn?: string, en?: string, jp?: string);
|
|
26
|
+
}
|
|
27
|
+
/** 便捷构造 */
|
|
28
|
+
export declare function apiText(cn: string, en: string, jp: string): XrApiText;
|
|
29
|
+
/**
|
|
30
|
+
* 参数/返回值的值类型:
|
|
31
|
+
* - 复用 XrVariableType 全集(string/number/boolean/color/css_color/image/entity_ref/list/custom_class/closure/句柄类…)
|
|
32
|
+
* - 追加结构值:vector3 / vector2 / multilang_str(用户可见多语言文本)/ enum(固定选项)/ any
|
|
33
|
+
*/
|
|
34
|
+
export declare type XrApiValueType = XrVariableType | 'vector3' | 'vector2' | 'multilang_str' | 'enum' | 'any' | 'void';
|
|
35
|
+
/** enum 型参数的固定选项 */
|
|
36
|
+
export declare class XrApiEnumOption {
|
|
37
|
+
value: string;
|
|
38
|
+
name: XrApiText;
|
|
39
|
+
}
|
|
40
|
+
/** 方法参数元数据 */
|
|
41
|
+
export declare class XrApiParamMeta {
|
|
42
|
+
key: string;
|
|
43
|
+
name: XrApiText;
|
|
44
|
+
desc?: XrApiText;
|
|
45
|
+
type: XrApiValueType;
|
|
46
|
+
refTypeKey?: string;
|
|
47
|
+
listElementType?: XrApiValueType;
|
|
48
|
+
listElementRefTypeKey?: string;
|
|
49
|
+
enumOptions?: XrApiEnumOption[];
|
|
50
|
+
closurePayloadFields?: XrApiParamMeta[];
|
|
51
|
+
optional: boolean;
|
|
52
|
+
defaultValue?: any;
|
|
53
|
+
}
|
|
54
|
+
/** 返回值元数据 */
|
|
55
|
+
export declare class XrApiReturnMeta {
|
|
56
|
+
type: XrApiValueType;
|
|
57
|
+
refTypeKey?: string;
|
|
58
|
+
customClassId?: string;
|
|
59
|
+
listElementType?: XrApiValueType;
|
|
60
|
+
listElementRefTypeKey?: string;
|
|
61
|
+
desc?: XrApiText;
|
|
62
|
+
}
|
|
63
|
+
/** 平台可用性(沿用 vr-action-platform-capability 的语义;缺省 vr_and_ar) */
|
|
64
|
+
export declare type XrApiPlatform = 'vr_and_ar' | 'vr_only' | 'ar_only';
|
|
65
|
+
/** 方法元数据 */
|
|
66
|
+
export declare class XrApiMethodMeta {
|
|
67
|
+
key: string;
|
|
68
|
+
name: XrApiText;
|
|
69
|
+
desc?: XrApiText;
|
|
70
|
+
params: XrApiParamMeta[];
|
|
71
|
+
returns: XrApiReturnMeta;
|
|
72
|
+
platform: XrApiPlatform;
|
|
73
|
+
supportsAsync: boolean;
|
|
74
|
+
pure: boolean;
|
|
75
|
+
groupKey: string;
|
|
76
|
+
legacyActionType?: string;
|
|
77
|
+
legacyConditionFunc?: string;
|
|
78
|
+
}
|
|
79
|
+
/** 事件元数据(实体类的「帽子」;监听器可订阅) */
|
|
80
|
+
export declare class XrApiEventMeta {
|
|
81
|
+
key: string;
|
|
82
|
+
name: XrApiText;
|
|
83
|
+
desc?: XrApiText;
|
|
84
|
+
payloadFields: XrApiParamMeta[];
|
|
85
|
+
aggregate: boolean;
|
|
86
|
+
platform: XrApiPlatform;
|
|
87
|
+
legacySignalSource?: string;
|
|
88
|
+
legacySignalType?: string;
|
|
89
|
+
}
|
|
90
|
+
/** 类的种类:静态类(无实例、全静态方法)/ 实体类(空间实体或其子件,可作 entity_ref 变量类型) */
|
|
91
|
+
export declare type XrApiClassKind = 'static' | 'entity';
|
|
92
|
+
/** 类分组(编辑器目录/工具箱的顶层分组) */
|
|
93
|
+
export declare class XrApiGroupMeta {
|
|
94
|
+
key: string;
|
|
95
|
+
name: XrApiText;
|
|
96
|
+
}
|
|
97
|
+
/** 实体类的补充信息 */
|
|
98
|
+
export declare class XrApiEntityInfo {
|
|
99
|
+
extendsClassKey: string;
|
|
100
|
+
isAbstract: boolean;
|
|
101
|
+
listPath: string;
|
|
102
|
+
parentPathSpec: string[];
|
|
103
|
+
selectorKey: string;
|
|
104
|
+
usableAsVariableType: boolean;
|
|
105
|
+
}
|
|
106
|
+
/** 类元数据 */
|
|
107
|
+
export declare class XrApiClassMeta {
|
|
108
|
+
classKey: string;
|
|
109
|
+
name: XrApiText;
|
|
110
|
+
desc?: XrApiText;
|
|
111
|
+
kind: XrApiClassKind;
|
|
112
|
+
groupKey: string;
|
|
113
|
+
entityInfo?: XrApiEntityInfo;
|
|
114
|
+
methods: XrApiMethodMeta[];
|
|
115
|
+
events: XrApiEventMeta[];
|
|
116
|
+
methodGroups: XrApiGroupMeta[];
|
|
117
|
+
}
|
|
118
|
+
export declare function apiParam(p: Partial<XrApiParamMeta> & {
|
|
119
|
+
key: string;
|
|
120
|
+
name: XrApiText;
|
|
121
|
+
type: XrApiValueType;
|
|
122
|
+
}): XrApiParamMeta;
|
|
123
|
+
export declare function apiReturn(r: Partial<XrApiReturnMeta> & {
|
|
124
|
+
type: XrApiValueType;
|
|
125
|
+
}): XrApiReturnMeta;
|
|
126
|
+
export declare function apiMethod(m: Partial<XrApiMethodMeta> & {
|
|
127
|
+
key: string;
|
|
128
|
+
name: XrApiText;
|
|
129
|
+
}): XrApiMethodMeta;
|
|
130
|
+
export declare function apiEvent(e: Partial<XrApiEventMeta> & {
|
|
131
|
+
key: string;
|
|
132
|
+
name: XrApiText;
|
|
133
|
+
}): XrApiEventMeta;
|
|
134
|
+
export declare function apiEnumOption(value: string, name: XrApiText): XrApiEnumOption;
|
|
135
|
+
export declare function apiEntityInfo(i: Partial<XrApiEntityInfo>): XrApiEntityInfo;
|
|
136
|
+
export declare function apiGroup(key: string, name: XrApiText): XrApiGroupMeta;
|
|
137
|
+
export declare function apiClass(c: Partial<XrApiClassMeta> & {
|
|
138
|
+
classKey: string;
|
|
139
|
+
name: XrApiText;
|
|
140
|
+
kind: XrApiClassKind;
|
|
141
|
+
}): XrApiClassMeta;
|
|
142
|
+
/**
|
|
143
|
+
* 为一个「带事件的实体类」构造通用 `addListener` 实例方法(plan §4.5 动态监听)。
|
|
144
|
+
* 万物监听同一机制:动态监听 = 动作里 `句柄 = 实体.添加监听器(事件, 回调)`;
|
|
145
|
+
* 声明式监听器 / VB 快捷编辑 handler 只是系统在场景启动时替用户走同一条注册路径。
|
|
146
|
+
* 事件参数的可选值 = 该类(含继承)全部事件;回调闭包内 _事件.$ 为该事件载荷。
|
|
147
|
+
*/
|
|
148
|
+
export declare function buildAddListenerMethod(classMeta: XrApiClassMeta, inheritedEvents: XrApiEventMeta[]): XrApiMethodMeta;
|
|
149
|
+
/** 注册一个类(重复 classKey 直接覆盖并告警——目录应保证唯一) */
|
|
150
|
+
export declare function registerApiClass(meta: XrApiClassMeta): void;
|
|
151
|
+
/** 批量注册 */
|
|
152
|
+
export declare function registerApiClasses(metas: XrApiClassMeta[]): void;
|
|
153
|
+
export declare function getApiClass(classKey: string): XrApiClassMeta | undefined;
|
|
154
|
+
export declare function getAllApiClasses(): XrApiClassMeta[];
|
|
155
|
+
/** 取一个类的全部方法(含沿 extendsClassKey 链上溯的父类方法;子类同名覆盖父类) */
|
|
156
|
+
export declare function getApiMethodsWithInherited(classKey: string): XrApiMethodMeta[];
|
|
157
|
+
/** 取一个类的全部事件(含继承) */
|
|
158
|
+
export declare function getApiEventsWithInherited(classKey: string): XrApiEventMeta[];
|
|
159
|
+
/** 按 (classKey, methodKey) 找方法(含继承) */
|
|
160
|
+
export declare function findApiMethod(classKey: string, methodKey: string): XrApiMethodMeta | undefined;
|
|
161
|
+
/** 按老 actionType 反查 (classKey, method)——迁移器 / 运行时兼容归一用 */
|
|
162
|
+
export declare function findByLegacyActionType(actionType: string): {
|
|
163
|
+
classMeta: XrApiClassMeta;
|
|
164
|
+
method: XrApiMethodMeta;
|
|
165
|
+
} | undefined;
|
|
166
|
+
/** 判断某方法是否允许进条件槽/值槽(plan §4.1 红线) */
|
|
167
|
+
export declare function isPureQuery(classKey: string, methodKey: string): boolean;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './model';
|
|
2
2
|
export * from './player';
|
|
3
3
|
export * from './parent';
|
|
4
|
+
export * from './api-catalog';
|
|
4
5
|
export { migrateTriggersToCentralized } from './utils/trigger-migration';
|
|
5
6
|
export { resolveVrMainBarItems, resolveVrInfoBarItems, resolveArBottomItems, resolveArInfoItems, ensureIconLayoutMaterialized, ensureLegacyVrPlayerUiSettingsInitialized, } from './utils/ui-icon-layout-migrate';
|
|
6
7
|
export { migrateXrVariableTypeEnum } from './utils/xr-variable-type-enum-migration';
|
|
@@ -8,4 +9,4 @@ export { migrateXrMonitorMultiScene } from './utils/xr-monitor-multi-scene-migra
|
|
|
8
9
|
export { buildExpressionFromTree, extractConditionTreeDependencies, EXPRESSION_FUNC_NAME, type ConditionFunctionDependency, type ConditionFunctionDepSpec, type ConditionTreeDependencies, } from './utils/xr-condition-tree-builder';
|
|
9
10
|
export { pickMultiLanguageStr, normalizeMultiLanguageStr, createMultiLanguageStr, normalizeBrowserLanguage, pickCurrentLanguage, } from './utils/multi-language-str-util';
|
|
10
11
|
export { computeProgressBarFillStyle, PROGRESS_BAR_KEYFRAMES_CSS, type ProgressBarFillOptions, } from './utils/progress-bar-style';
|
|
11
|
-
export { generatePathKeyframes, samplePathDesign, buildKeyframesFromSampling, suggestedPlayCompleteProcessType, simplifyPathPoints, composePathPoseEuler, composePathPoseEulerCalibrated, resolvePathCalibration, rotateVecAroundAxis, extractYawTwistDeg, type PathGroundSnapFn, type PathSample, type PathSamplingResult, type PathGenerateStats, type PathGenerateResult, } from './utils/path-keyframe-generator';
|
|
12
|
+
export { generatePathKeyframes, samplePathDesign, buildKeyframesFromSampling, suggestedPlayCompleteProcessType, simplifyPathPoints, composePathPoseEuler, composePathPoseEulerCalibrated, computeGroundPose, resolvePathCalibration, rotateVecAroundAxis, extractYawTwistDeg, type PathGroundSnapFn, type PathSample, type PathSamplingResult, type PathGenerateStats, type PathGenerateResult, } from './utils/path-keyframe-generator';
|
|
@@ -32,6 +32,7 @@ export * from './vr-ui-icon-layout';
|
|
|
32
32
|
export * from './vr-render-settings';
|
|
33
33
|
export * from './vr-color-space-settings';
|
|
34
34
|
export * from './vr-signal';
|
|
35
|
+
export * from './xr-ray-hitter';
|
|
35
36
|
export * from './xr-space-fence';
|
|
36
37
|
export * from './xr-space-fence-group';
|
|
37
38
|
export * from './vr-sticker';
|
|
@@ -55,3 +56,4 @@ export * from './xr-camera-dolly-path';
|
|
|
55
56
|
export * from './xr-prepare';
|
|
56
57
|
export * from './xr-ability';
|
|
57
58
|
export * from './xr-hamburger-menu';
|
|
59
|
+
export * from './xr-program';
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { Color, type MediaLoopMode, Vector2, Vector3, VrCameraMoveTransitionType } from '../general';
|
|
2
2
|
import { XrMessageCard } from './xr-message-card';
|
|
3
3
|
import { VrComponent2dDeformationSettings } from '../vr-component/vr-component-data';
|
|
4
|
-
import { XrTypedValue, XrVariableScopeType, XrVariableTarget } from './xr-logic';
|
|
4
|
+
import { XrTypedValue, XrVariable, XrVariableScopeType, XrVariableTarget } from './xr-logic';
|
|
5
5
|
import { MultiLanguageStr } from '../general/multi-language-str';
|
|
6
6
|
import { FreeButton } from '../general/free-button';
|
|
7
7
|
import { VrAppearanceStyle } from './vr-appearance-style';
|
|
8
8
|
import { XrInteractionControlConfig, XrInteractionDataType } from './xr-interaction-control';
|
|
9
|
-
export declare type XrActionCategory = 'basic' | 'condition' | 'count_loop' | 'expression_loop' | 'switch';
|
|
9
|
+
export declare type XrActionCategory = 'basic' | 'condition' | 'count_loop' | 'expression_loop' | 'switch' | 'object_call' | 'foreach_loop';
|
|
10
10
|
export declare class XrActionCategoryDefine {
|
|
11
11
|
static readonly BASIC: XrActionCategory;
|
|
12
12
|
static readonly CONDITION: XrActionCategory;
|
|
13
13
|
static readonly COUNT_LOOP: XrActionCategory;
|
|
14
14
|
static readonly EXPRESSION_LOOP: XrActionCategory;
|
|
15
15
|
static readonly SWITCH: XrActionCategory;
|
|
16
|
+
static readonly OBJECT_CALL: XrActionCategory;
|
|
17
|
+
static readonly FOREACH_LOOP: XrActionCategory;
|
|
16
18
|
}
|
|
17
19
|
export declare type XrPlatform = 'VR' | 'AR';
|
|
18
20
|
export declare class XrPlatformDefine {
|
|
@@ -23,7 +25,7 @@ export declare class XrBaseAction {
|
|
|
23
25
|
actionCategory: XrActionCategory;
|
|
24
26
|
backgroundColorMark: string;
|
|
25
27
|
}
|
|
26
|
-
export declare type XrAnyAction = XrConditionAction | XrCountLoopAction | XrExpressionLoopAction | XrSwitchAction | VrAction;
|
|
28
|
+
export declare type XrAnyAction = XrConditionAction | XrCountLoopAction | XrExpressionLoopAction | XrSwitchAction | VrAction | XrObjectCallAction | XrForEachLoopAction;
|
|
27
29
|
/**
|
|
28
30
|
* VR动作
|
|
29
31
|
*/
|
|
@@ -143,7 +145,76 @@ export declare class XrSwitchAction {
|
|
|
143
145
|
caseList: XrSwitchCase[];
|
|
144
146
|
defaultActionList: XrAnyAction[];
|
|
145
147
|
}
|
|
146
|
-
export declare type
|
|
148
|
+
export declare type XrReceiverFrom = 'picker' | 'variable' | 'static_class';
|
|
149
|
+
export declare class XrReceiverFromDefine {
|
|
150
|
+
static readonly PICKER: XrReceiverFrom;
|
|
151
|
+
static readonly VARIABLE: XrReceiverFrom;
|
|
152
|
+
static readonly STATIC_CLASS: XrReceiverFrom;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* 接收者引用——「对象.方法」里的对象。
|
|
156
|
+
* typeKey 是类型键(实体类型如 'component'/'2d_video'/'monitor',或静态类如 'Camera'/'Thread'/'String'),
|
|
157
|
+
* 与 xr-api-catalog 元数据表的 classKey 对应,用于:编辑器列方法菜单、运行时查分派表。
|
|
158
|
+
*/
|
|
159
|
+
export declare class XrReceiverRef {
|
|
160
|
+
from: XrReceiverFrom;
|
|
161
|
+
typeKey: string;
|
|
162
|
+
entityId: string;
|
|
163
|
+
entityParentPath: string[];
|
|
164
|
+
variableScope?: XrVariableScopeType;
|
|
165
|
+
variableKey?: string;
|
|
166
|
+
}
|
|
167
|
+
export declare type XrCallArgKind = 'literal' | 'var_ref' | 'call' | 'closure';
|
|
168
|
+
export declare class XrCallArgKindDefine {
|
|
169
|
+
static readonly LITERAL: XrCallArgKind;
|
|
170
|
+
static readonly VAR_REF: XrCallArgKind;
|
|
171
|
+
static readonly CALL: XrCallArgKind;
|
|
172
|
+
static readonly CLOSURE: XrCallArgKind;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* 闭包值——一段动作块作为值传递(plan §4.3⑤)。
|
|
176
|
+
* 用于:监听器回调、后台线程/定时器循环体、列表.遍历、函数回调参数、异步完成回调。
|
|
177
|
+
* 运行期以「块 AST 片段」形式存续(可序列化);执行时压入一个 func 帧承载 localVariableList。
|
|
178
|
+
*/
|
|
179
|
+
export declare class XrClosureValue {
|
|
180
|
+
localVariableList: XrVariable[];
|
|
181
|
+
actionList: XrAnyAction[];
|
|
182
|
+
}
|
|
183
|
+
/** 单个实参(按方法元数据的 paramKey 对位) */
|
|
184
|
+
export declare class XrCallArg {
|
|
185
|
+
key: string;
|
|
186
|
+
argKind: XrCallArgKind;
|
|
187
|
+
literal?: any;
|
|
188
|
+
variableScope?: XrVariableScopeType;
|
|
189
|
+
variableKey?: string;
|
|
190
|
+
call?: XrObjectCallAction;
|
|
191
|
+
closure?: XrClosureValue;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* 对象.方法 调用块(新体系核心;actionCategory='object_call')
|
|
195
|
+
*/
|
|
196
|
+
export declare class XrObjectCallAction extends XrBaseAction {
|
|
197
|
+
actionCategory: XrActionCategory;
|
|
198
|
+
id: string;
|
|
199
|
+
receiver: XrReceiverRef;
|
|
200
|
+
method: string;
|
|
201
|
+
args: XrCallArg[];
|
|
202
|
+
returnTo?: XrVariableTarget;
|
|
203
|
+
runAsync: boolean;
|
|
204
|
+
onCompleteActionList: XrAnyAction[];
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* 遍历循环块(actionCategory='foreach_loop'):对列表逐元素执行循环体。
|
|
208
|
+
* 元素/下标以 _函数.$ 帧变量形式注入循环体(itemVarKey / indexVarKey)。
|
|
209
|
+
*/
|
|
210
|
+
export declare class XrForEachLoopAction {
|
|
211
|
+
actionCategory: XrActionCategory;
|
|
212
|
+
collection: XrCallArg;
|
|
213
|
+
itemVarKey: string;
|
|
214
|
+
indexVarKey: string;
|
|
215
|
+
actionList: XrAnyAction[];
|
|
216
|
+
}
|
|
217
|
+
export declare type VrActionType = 'system_common_wait' | 'system_set_interactive_state' | 'system_ui_settings_change' | 'system_color_space_scene_tint' | 'system_color_space_display_brightness' | 'component_general_change_visibility' | 'component_general_change_transform' | 'component_general_play_transition_animation' | 'component_general_stop_transition_animation' | 'component_2d_general_change_deformation_settings' | 'component_general_audio_source_play_control' | 'component_general_audio_source_pause' | 'component_general_audio_source_change_loop_mode' | 'component_2d_image_change_source' | 'component_2d_video_change_source' | 'component_2d_video_change_play_state' | 'component_2d_video_change_mute_state' | 'component_2d_text_change_source' | 'component_2d_panel_change_scene' | 'component_2d_panel_button_change_enabled' | 'component_tag_simulate_click' | 'component_3d_box_change_color' | 'component_3d_model_play_animation_clip' | 'component_3d_model_stop_animation_clip' | 'information_content_card_show' | 'information_content_card_close' | 'information_link_open' | 'information_link_close' | 'audio_center_play_list' | 'audio_center_pause' | 'audio_center_set_volume' | 'sweep_change_enabled' | 'sweep_change_panorama' | 'sweep_marker_change_enabled' | 'sweep_reset_to_default' | 'sweep_only_enable_current' | 'camera_move_to' | 'camera_dolly_move' | 'camera_dolly_stop' | 'navigation_start' | 'navigation_stop' | 'logic_variable_modify' | 'logic_variable_number_add' | 'logic_variable_number_subtract' | 'logic_variable_string_append' | 'logic_variable_string_trim_end' | 'logic_variable_string_advanced' | 'logic_variable_boolean_toggle' | 'flow_enter' | 'flow_exit' | 'send_broadcast' | 'system_state_scope_create' | 'system_state_scope_switch' | 'system_state_scope_destroy' | 'monitor_change_enabled' | 'monitor_switch_active_tab' | 'monitor_component_change_visibility' | 'monitor_video_change_play_state' | 'monitor_video_change_mute_state' | 'monitor_change_badge_text' | 'monitor_change_badge_style' | 'monitor_switch_active_scene' | 'monitor_change_popup_visible' | 'layer_change_visibility' | 'hamburger_menu_node_change_visibility' | 'hamburger_menu_change_open_state' | 'hamburger_menu_group_change_expanded' | 'canvas_component_change_visibility' | 'message_card_change_show_state' | 'message_card_show' | 'message_card_hide' | 'message_card_create_temporary' | 'message_card_destroy_temporary' | 'tts_play_voice' | 'tts_realtime_stream' | 'background_thread_start' | 'background_thread_pause' | 'background_thread_stop' | 'ai_agent_activate' | 'ai_agent_hide' | 'ai_agent_wake' | 'ai_agent_activate_and_send_user_message' | 'ai_agent_activate_and_inject_dialogue' | 'ai_agent_inject_hidden_state_message' | 'ai_agent_activate_and_inject_assistant_message' | 'system_open_webpage' | 'ability_enable' | 'ability_stop' | 'cloud_form_show_dialog' | 'cloud_form_collect_field' | 'cloud_form_submit' | 'cloud_form_reset' | 'hit_analytics_event' | 'popup_user_form_show_dialog' | 'logic_random_number' | 'logic_random_color' | 'logic_current_time' | 'logic_random_pick_string' | 'logic_random_pick_number' | 'logic_random_pick_boolean' | 'logic_random_pick_enum' | 'logic_random_pick_color' | 'logic_random_pick_css_color' | 'logic_random_pick_from_recommend_options' | 'visualization_controller_pop' | 'visualization_controller_hide' | 'visualization_controller_close_all' | 'ai_check_take_photo' | 'ai_check_run' | 'ray_hitter_activate' | 'ray_hitter_deactivate';
|
|
147
218
|
export declare class VrActionTypeDefine {
|
|
148
219
|
static readonly SYSTEM_COMMON_WAIT: VrActionType;
|
|
149
220
|
static readonly COMPONENT_GENERAL_CHANGE_VISIBILITY: VrActionType;
|
|
@@ -191,8 +262,12 @@ export declare class VrActionTypeDefine {
|
|
|
191
262
|
static readonly FLOW_ENTER: VrActionType;
|
|
192
263
|
static readonly FLOW_EXIT: VrActionType;
|
|
193
264
|
static readonly SEND_BROADCAST: VrActionType;
|
|
265
|
+
/** @deprecated 状态胶囊已退役(plan §1.19),统一改用 运行态.快照/恢复快照(State.snapshot/restoreSnapshot 静态方法)。
|
|
266
|
+
* 保留仅为向后兼容运行老数据(plan §1.23):新编辑器不再露出,迁移器静默尽力转(plan §1.41)。 */
|
|
194
267
|
static readonly SYSTEM_STATE_SCOPE_CREATE: VrActionType;
|
|
268
|
+
/** @deprecated 同上,改用 运行态.快照/恢复快照。 */
|
|
195
269
|
static readonly SYSTEM_STATE_SCOPE_SWITCH: VrActionType;
|
|
270
|
+
/** @deprecated 同上,改用 运行态.快照/恢复快照。 */
|
|
196
271
|
static readonly SYSTEM_STATE_SCOPE_DESTROY: VrActionType;
|
|
197
272
|
static readonly MONITOR_CHANGE_ENABLED: VrActionType;
|
|
198
273
|
static readonly MONITOR_SWITCH_ACTIVE_TAB: VrActionType;
|
|
@@ -251,6 +326,10 @@ export declare class VrActionTypeDefine {
|
|
|
251
326
|
static readonly VISUALIZATION_CONTROLLER_POP: VrActionType;
|
|
252
327
|
static readonly VISUALIZATION_CONTROLLER_HIDE: VrActionType;
|
|
253
328
|
static readonly VISUALIZATION_CONTROLLER_CLOSE_ALL: VrActionType;
|
|
329
|
+
static readonly AI_CHECK_TAKE_PHOTO: VrActionType;
|
|
330
|
+
static readonly AI_CHECK_RUN: VrActionType;
|
|
331
|
+
static readonly RAY_HITTER_ACTIVATE: VrActionType;
|
|
332
|
+
static readonly RAY_HITTER_DEACTIVATE: VrActionType;
|
|
254
333
|
}
|
|
255
334
|
export declare class VrActionParamsAbilityEnable {
|
|
256
335
|
abilityId: string;
|
|
@@ -862,6 +941,54 @@ export declare class VrActionParamsLogicRandomPickCssColor {
|
|
|
862
941
|
export declare class VrActionParamsLogicRandomPickFromRecommendOptions {
|
|
863
942
|
target: XrVariableTarget;
|
|
864
943
|
}
|
|
944
|
+
/**
|
|
945
|
+
* 相机拍摄模式
|
|
946
|
+
* - raw: 原始帧——不含装修组件等空间叠加物。
|
|
947
|
+
* AR = 纯物理摄像头帧;VR = 隐藏全部装修组件后的渲染画面(场景本体保留)
|
|
948
|
+
* - with_overlay: 含叠加物帧——装修组件真实显示在照片里
|
|
949
|
+
*/
|
|
950
|
+
export declare type CameraCaptureMode = 'raw' | 'with_overlay';
|
|
951
|
+
export declare class CameraCaptureModeDefine {
|
|
952
|
+
static readonly RAW: CameraCaptureMode;
|
|
953
|
+
static readonly WITH_OVERLAY: CameraCaptureMode;
|
|
954
|
+
}
|
|
955
|
+
export declare class VrActionParamsAiCheckTakePhoto {
|
|
956
|
+
target: XrVariableTarget;
|
|
957
|
+
captureMode: CameraCaptureMode;
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* AI 检查的图片来源
|
|
961
|
+
* - camera: 执行时即时截取相机画面(可配 cameraCaptureMode)
|
|
962
|
+
* - album: 弹出相册/文件选择器由用户选一张(建议挂在点击类触发器下,浏览器要求用户手势链)
|
|
963
|
+
* - image_variable: 读取图片变量中的值(由「拍照」action 提前写入,可一照多检)
|
|
964
|
+
*/
|
|
965
|
+
export declare type AiCheckImageSourceKind = 'camera' | 'album' | 'image_variable';
|
|
966
|
+
export declare class AiCheckImageSourceKindDefine {
|
|
967
|
+
static readonly CAMERA: AiCheckImageSourceKind;
|
|
968
|
+
static readonly ALBUM: AiCheckImageSourceKind;
|
|
969
|
+
static readonly IMAGE_VARIABLE: AiCheckImageSourceKind;
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* AI 检查 - AI图像检查(同步阻塞:拿到结果才继续执行剩余 actionList)
|
|
973
|
+
* 按 ruleId 从 vrContentData.aiCheckRuleList 取规则,把规则内容随请求带给后端检查端点。
|
|
974
|
+
* 结果写入最多三个变量目标(key 为空 = 不写该项)。
|
|
975
|
+
* 错误语义:网络/服务失败 → passed=false / score=0 / reason='检查失败:…';相册取消 → 不写任何变量。
|
|
976
|
+
*/
|
|
977
|
+
export declare class VrActionParamsAiCheckRun {
|
|
978
|
+
ruleId: string;
|
|
979
|
+
imageSource: AiCheckImageSourceKind;
|
|
980
|
+
cameraCaptureMode: CameraCaptureMode;
|
|
981
|
+
sourceVariable: XrVariableTarget;
|
|
982
|
+
passedTarget: XrVariableTarget;
|
|
983
|
+
scoreTarget: XrVariableTarget;
|
|
984
|
+
reasonTarget: XrVariableTarget;
|
|
985
|
+
}
|
|
986
|
+
export declare class VrActionParamsRayHitterActivate {
|
|
987
|
+
rayHitterId: string;
|
|
988
|
+
}
|
|
989
|
+
export declare class VrActionParamsRayHitterDeactivate {
|
|
990
|
+
rayHitterId: string;
|
|
991
|
+
}
|
|
865
992
|
/**
|
|
866
993
|
* 弹出可视化控制器:内容内联在 action 里(图标+标题+正文+多个按钮)。
|
|
867
994
|
* 再次执行同一 action = 再加一个实例(除非 keepOnlyLatestForKey)。
|
|
@@ -25,6 +25,7 @@ import { XrVirtualFloor } from './xr-virtual-floor';
|
|
|
25
25
|
import { VrNavigationAdConfig } from '../../model/vr/vr-navigation-ad-config';
|
|
26
26
|
import { VrAdChannel } from '../../model/vr/vr-ad-channel';
|
|
27
27
|
import { XrAiAgent } from '../../model/vr/xr-ai-agent';
|
|
28
|
+
import { XrRayHitter } from './xr-ray-hitter';
|
|
28
29
|
import { XrBackgroundThread } from '../../model/vr/xr-background-thread';
|
|
29
30
|
import { XrBroadcastChannel } from '../../model/vr/xr-broadcast-channel';
|
|
30
31
|
import { XrCameraDollyPath } from '../../model/vr/xr-camera-dolly-path';
|
|
@@ -32,6 +33,7 @@ import { XrPrepareSettings } from '../../model/vr/xr-prepare';
|
|
|
32
33
|
import { XrAbility, XrAbilityGroup } from '@/model/vr/xr-ability';
|
|
33
34
|
import { XrHamburgerMenu } from './xr-hamburger-menu';
|
|
34
35
|
import { LanguageType } from '../general/multi-language-str';
|
|
36
|
+
import { XrProgramScene, XrCustomClass, XrProgramFunction, XrEntityHandlerBinding } from './xr-program';
|
|
35
37
|
/**
|
|
36
38
|
* VR内容数据构建器
|
|
37
39
|
*/
|
|
@@ -191,6 +193,7 @@ export declare class VrContentData {
|
|
|
191
193
|
trimmerList: VrTrimmerData[];
|
|
192
194
|
spaceFenceList: XrSpaceFence[];
|
|
193
195
|
spaceFenceGroupList: XrSpaceFenceGroup[];
|
|
196
|
+
rayHitterList: XrRayHitter[];
|
|
194
197
|
abilityList: XrAbility[];
|
|
195
198
|
abilityGroupList: XrAbilityGroup[];
|
|
196
199
|
vrFlowList: VrFlow[];
|
|
@@ -221,5 +224,9 @@ export declare class VrContentData {
|
|
|
221
224
|
unityNavigationParams: UnityNavigationParams;
|
|
222
225
|
xrVirtualFloorList: XrVirtualFloor[];
|
|
223
226
|
navigationAdConfigList: VrNavigationAdConfig[];
|
|
227
|
+
programSceneList: XrProgramScene[];
|
|
228
|
+
customClassList: XrCustomClass[];
|
|
229
|
+
sharedFunctionList: XrProgramFunction[];
|
|
230
|
+
entityHandlerBindingList: XrEntityHandlerBinding[];
|
|
224
231
|
constructor(mpModelId: string, vrUnicode: string);
|
|
225
232
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { XrAnyAction } from './vr-action';
|
|
2
2
|
import { VRTalkBaseData } from '../general/vrtalk-base-data';
|
|
3
3
|
import { XrVariable } from './xr-logic';
|
|
4
|
-
export declare type VrSignalType = 'component_created' | 'component_show' | 'component_hide' | 'click' | 'mouse_enter' | 'mouse_leave' | 'play_start' | 'play_finish' | 'enter' | 'leave' | 'panel_button_click' | 'panel_answer_correct' | 'panel_answer_wrong' | 'variable_modified' | 'expression_watcher_triggered' | 'monitor_component_click' | 'sticker_activated' | 'sticker_deactivated' | 'vr_started' | 'all_components_created' | 'broadcast_channel_message';
|
|
4
|
+
export declare type VrSignalType = 'component_created' | 'component_show' | 'component_hide' | 'click' | 'mouse_enter' | 'mouse_leave' | 'play_start' | 'play_finish' | 'enter' | 'leave' | 'panel_button_click' | 'panel_answer_correct' | 'panel_answer_wrong' | 'variable_modified' | 'expression_watcher_triggered' | 'monitor_component_click' | 'sticker_activated' | 'sticker_deactivated' | 'vr_started' | 'all_components_created' | 'broadcast_channel_message' | 'ray_hitter_top_triggered' | 'ray_hitter_bottom_triggered';
|
|
5
5
|
export declare class VrSignalTypeDefine {
|
|
6
6
|
static readonly COMPONENT_CREATED: VrSignalType;
|
|
7
7
|
static readonly COMPONENT_SHOW: VrSignalType;
|
|
@@ -24,8 +24,10 @@ export declare class VrSignalTypeDefine {
|
|
|
24
24
|
static readonly VR_STARTED: VrSignalType;
|
|
25
25
|
static readonly ALL_COMPONENTS_CREATED: VrSignalType;
|
|
26
26
|
static readonly BROADCAST_CHANNEL_MESSAGE: VrSignalType;
|
|
27
|
+
static readonly RAY_HITTER_TOP_TRIGGERED: VrSignalType;
|
|
28
|
+
static readonly RAY_HITTER_BOTTOM_TRIGGERED: VrSignalType;
|
|
27
29
|
}
|
|
28
|
-
export declare type VrSignalSource = 'component_tag' | 'component_2d_text' | 'component_2d_advertisement' | 'component_2d_video' | 'component_2d_image' | 'component_2d_panel' | 'component_3d_box' | 'component_3d_model' | 'logic_variable' | 'logic_expression_watcher' | 'space_fence' | 'space_fence_group' | 'monitor_component' | 'sticker' | 'broadcast' | 'ai_agent' | 'system';
|
|
30
|
+
export declare type VrSignalSource = 'component_tag' | 'component_2d_text' | 'component_2d_advertisement' | 'component_2d_video' | 'component_2d_image' | 'component_2d_panel' | 'component_3d_box' | 'component_3d_model' | 'ray_hitter' | 'logic_variable' | 'logic_expression_watcher' | 'space_fence' | 'space_fence_group' | 'monitor_component' | 'sticker' | 'broadcast' | 'ai_agent' | 'system';
|
|
29
31
|
export declare class VrSignalSourceDefine {
|
|
30
32
|
static readonly COMPONENT_TAG: VrSignalSource;
|
|
31
33
|
static readonly COMPONENT_2D_TEXT: VrSignalSource;
|
|
@@ -35,6 +37,7 @@ export declare class VrSignalSourceDefine {
|
|
|
35
37
|
static readonly COMPONENT_2D_PANEL: VrSignalSource;
|
|
36
38
|
static readonly COMPONENT_3D_BOX: VrSignalSource;
|
|
37
39
|
static readonly COMPONENT_3D_MODEL: VrSignalSource;
|
|
40
|
+
static readonly RAY_HITTER: VrSignalSource;
|
|
38
41
|
static readonly LOGIC_VARIABLE: VrSignalSource;
|
|
39
42
|
static readonly LOGIC_CONDITION_WATCHER: VrSignalSource;
|
|
40
43
|
static readonly SPACE_FENCE: VrSignalSource;
|
|
@@ -37,11 +37,18 @@ export declare const VR_MAIN_BAR_DEFAULT: VrUiIconItem[];
|
|
|
37
37
|
* 登录入口已挪到 main-bar 的 account) */
|
|
38
38
|
export declare const VR_INFO_BAR_DEFAULT: VrUiIconItem[];
|
|
39
39
|
/**
|
|
40
|
-
* AR
|
|
41
|
-
* AR
|
|
40
|
+
* AR 主栏默认目录 = **竖向导轨**(AR 专属功能,player 手机端没有的才独立设计成图标+小字导轨)。
|
|
41
|
+
* - graffiti/discover/capture:AR 专属功能;
|
|
42
|
+
* - monitors:展开为各「悬浮式」监控面板贴底 tab(弹出式监控入口另在 info 栏 popupInfoBarMonitors)。
|
|
43
|
+
* 共有的 flow / 消息中心 / AI 由**底部栈**自动呈现(flow 步骤栏、消息横滑、AI orb),不占栏位;
|
|
44
|
+
* 相机类(fov/d3/floorplan/floor) AR 无;本轮不含 measure。placement 对导轨仅表达显隐/顺序。
|
|
42
45
|
*/
|
|
43
46
|
export declare const AR_MAIN_BAR_DEFAULT: VrUiIconItem[];
|
|
44
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* AR info 栏默认目录(右上角工具切换):小地图 / 音频中心 / 全局静音 / 汉堡 / 账户。
|
|
49
|
+
* 对齐 player 顶部/主栏的工具位;AR 全屏无 fullscreen;staff 已废弃移除。
|
|
50
|
+
* 弹出式监控面板入口由 popupInfoBarMonitors 独立呈现,不占本目录。
|
|
51
|
+
*/
|
|
45
52
|
export declare const AR_INFO_BAR_DEFAULT: VrUiIconItem[];
|
|
46
53
|
/** 兼容导出:派生 key 数组(旧消费方若按 key 列表使用仍可用) */
|
|
47
54
|
export declare const VR_MAIN_BAR_ICON_KEYS: string[];
|
|
@@ -16,7 +16,7 @@ import type { XrAiAgent } from './xr-ai-agent';
|
|
|
16
16
|
* - 其余值 = agent 上对应 useXxxList / skillPromptList 非空
|
|
17
17
|
* 资源未就绪时:该工具在后端本就不会暴露,编辑器里开关置灰(开了也无意义)。
|
|
18
18
|
*/
|
|
19
|
-
export declare type XrAiAgentToolRequireKey = 'useComponentList' | 'useTargetList' | 'useFovList' | 'useVariableList' | 'useStickerList' | 'useSpaceFenceList' | 'useSpaceFenceGroupList' | 'useBackgroundThreadList' | 'useCameraDollyPathList' | 'useAbilityList' | 'useKnowledgeBaseList' | 'useContentCardList' | 'useCloudFormList' | 'useMessageCardList' | 'useMonitorList' | 'useAssetPointMarkList' | 'useAssetVolumeMarkList' | 'skillPromptList' | 'enableVoiceOutput' | 'associateAllAssetPointMarks' | 'associateAllAssetVolumeMarks' | 'positionXConnected';
|
|
19
|
+
export declare type XrAiAgentToolRequireKey = 'useComponentList' | 'useTargetList' | 'useFovList' | 'useVariableList' | 'useStickerList' | 'useSpaceFenceList' | 'useSpaceFenceGroupList' | 'useBackgroundThreadList' | 'useCameraDollyPathList' | 'useAbilityList' | 'useKnowledgeBaseList' | 'useContentCardList' | 'useCloudFormList' | 'useMessageCardList' | 'useMonitorList' | 'useAssetPointMarkList' | 'useAssetVolumeMarkList' | 'useRayHitterList' | 'useAiCheckRuleList' | 'skillPromptList' | 'enableVoiceOutput' | 'associateAllAssetPointMarks' | 'associateAllAssetVolumeMarks' | 'positionXConnected';
|
|
20
20
|
export interface XrAiAgentToolDef {
|
|
21
21
|
key: string;
|
|
22
22
|
requires?: XrAiAgentToolRequireKey[];
|
|
@@ -73,6 +73,14 @@ export declare class XrAiAgentUseAssetPointMark {
|
|
|
73
73
|
assetPointMarkId: string;
|
|
74
74
|
description: string;
|
|
75
75
|
}
|
|
76
|
+
export declare class XrAiAgentUseRayHitter {
|
|
77
|
+
rayHitterId: string;
|
|
78
|
+
description: string;
|
|
79
|
+
}
|
|
80
|
+
export declare class XrAiAgentUseAiCheckRule {
|
|
81
|
+
aiCheckRuleDataKey: string;
|
|
82
|
+
description: string;
|
|
83
|
+
}
|
|
76
84
|
export declare class XrAiAgentUseAssetVolumeMark {
|
|
77
85
|
assetVolumeMarkId: string;
|
|
78
86
|
description: string;
|
|
@@ -138,6 +146,8 @@ export declare class XrAiAgent extends VRTalkBaseData {
|
|
|
138
146
|
useMonitorList: XrAiAgentUseMonitor[];
|
|
139
147
|
useAssetPointMarkList: XrAiAgentUseAssetPointMark[];
|
|
140
148
|
useAssetVolumeMarkList: XrAiAgentUseAssetVolumeMark[];
|
|
149
|
+
useRayHitterList: XrAiAgentUseRayHitter[];
|
|
150
|
+
useAiCheckRuleList: XrAiAgentUseAiCheckRule[];
|
|
141
151
|
associateAllAssetPointMarks: boolean;
|
|
142
152
|
associateAllAssetVolumeMarks: boolean;
|
|
143
153
|
}
|