vrtalk-web-sdk 0.1.599 → 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 +1 -0
- 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/vrtalk-web-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -3,13 +3,24 @@ import type { XrMonitorComponentType, XrMonitorComponentImageMode, XrMonitorComp
|
|
|
3
3
|
import { VrSignalTrigger } from '@/model';
|
|
4
4
|
import type { XrAnyAction } from './vr-action';
|
|
5
5
|
import { XrConditionTree } from './vr-action';
|
|
6
|
-
export declare type XrVariableType = 'string' | 'number' | 'boolean' | 'color' | 'css_color';
|
|
6
|
+
export declare type XrVariableType = 'string' | 'number' | 'boolean' | 'color' | 'css_color' | 'image' | 'entity_ref' | 'list' | 'custom_class' | 'closure' | 'listener' | 'thread' | 'timer' | 'state_snapshot' | 'event_obj' | 'func_ref';
|
|
7
7
|
export declare class XrVariableTypeDefine {
|
|
8
8
|
static readonly STRING: XrVariableType;
|
|
9
9
|
static readonly NUMBER: XrVariableType;
|
|
10
10
|
static readonly BOOLEAN: XrVariableType;
|
|
11
11
|
static readonly COLOR: XrVariableType;
|
|
12
12
|
static readonly CSS_COLOR: XrVariableType;
|
|
13
|
+
static readonly IMAGE: XrVariableType;
|
|
14
|
+
static readonly ENTITY_REF: XrVariableType;
|
|
15
|
+
static readonly LIST: XrVariableType;
|
|
16
|
+
static readonly CUSTOM_CLASS: XrVariableType;
|
|
17
|
+
static readonly CLOSURE: XrVariableType;
|
|
18
|
+
static readonly LISTENER: XrVariableType;
|
|
19
|
+
static readonly THREAD: XrVariableType;
|
|
20
|
+
static readonly TIMER: XrVariableType;
|
|
21
|
+
static readonly STATE_SNAPSHOT: XrVariableType;
|
|
22
|
+
static readonly EVENT_OBJ: XrVariableType;
|
|
23
|
+
static readonly FUNC_REF: XrVariableType;
|
|
13
24
|
}
|
|
14
25
|
/**
|
|
15
26
|
* string 类型变量的"推荐选项"。
|
|
@@ -37,6 +48,11 @@ export declare class XrVariable {
|
|
|
37
48
|
colorRecommendOptions: Color[];
|
|
38
49
|
cssColorDefaultValue: string;
|
|
39
50
|
cssColorRecommendOptions: string[];
|
|
51
|
+
entityRefTypeKey?: string;
|
|
52
|
+
listElementType?: XrVariableType;
|
|
53
|
+
listElementRefTypeKey?: string;
|
|
54
|
+
listElementCustomClassId?: string;
|
|
55
|
+
customClassId?: string;
|
|
40
56
|
/** @deprecated 已迁移至 stringRecommendOptions */
|
|
41
57
|
enumOptions?: string[];
|
|
42
58
|
/** @deprecated 已迁移至 stringDefaultValue */
|
|
@@ -51,8 +67,15 @@ export declare class XrVariable {
|
|
|
51
67
|
* - flow: Flow 级(VrFlow.flowScopeVariableList)
|
|
52
68
|
* - step: Flow Step 级(VrFlowStep.stepScopeVariableList)
|
|
53
69
|
* - local: 最内层容器(trigger / button / background_thread / init / 消息卡片按钮)
|
|
70
|
+
*
|
|
71
|
+
* ===== 可视化编程系统方案甲·经典分层新增(plan §4.4):共享 → 场景 → 模块 → 函数/子程序 → 回调 =====
|
|
72
|
+
* - scene: 场景级(每场景一份,场景内所有模块可见;替代老 global 在场景内的角色);表达式 _场景.$
|
|
73
|
+
* - module: 模块级(模块内私有);表达式 _模块.$
|
|
74
|
+
* - func: 函数/子程序级(调用帧的参数 + 局部,正确压栈;回调局部也用此层);表达式 _函数.$
|
|
75
|
+
* - event: 事件载荷(监听回调期间临时压入的事件数据,泛化自 broadcast_msg);表达式 _事件.$
|
|
76
|
+
* 老 global/local/step/flow/ability/broadcast_msg/agent 保留,供迁移与向后兼容读老格式(plan §1.23)。
|
|
54
77
|
*/
|
|
55
|
-
export declare type XrVariableScopeType = 'global' | 'shared' | 'local' | 'step' | 'flow' | 'ability' | 'broadcast_msg' | 'agent';
|
|
78
|
+
export declare type XrVariableScopeType = 'global' | 'shared' | 'local' | 'step' | 'flow' | 'ability' | 'broadcast_msg' | 'agent' | 'scene' | 'module' | 'func' | 'event';
|
|
56
79
|
export declare class XrVariableScopeTypeDefine {
|
|
57
80
|
static readonly GLOBAL: XrVariableScopeType;
|
|
58
81
|
static readonly SHARED: XrVariableScopeType;
|
|
@@ -62,6 +85,10 @@ export declare class XrVariableScopeTypeDefine {
|
|
|
62
85
|
static readonly ABILITY: XrVariableScopeType;
|
|
63
86
|
static readonly AGENT: XrVariableScopeType;
|
|
64
87
|
static readonly BROADCAST_MSG: XrVariableScopeType;
|
|
88
|
+
static readonly SCENE: XrVariableScopeType;
|
|
89
|
+
static readonly MODULE: XrVariableScopeType;
|
|
90
|
+
static readonly FUNC: XrVariableScopeType;
|
|
91
|
+
static readonly EVENT: XrVariableScopeType;
|
|
65
92
|
}
|
|
66
93
|
/**
|
|
67
94
|
* 单个变量作用域
|
|
@@ -72,16 +99,18 @@ export declare class XrVariableScope {
|
|
|
72
99
|
ownerId: string;
|
|
73
100
|
variableList: XrVariable[];
|
|
74
101
|
}
|
|
75
|
-
export declare type XrTypedValueMode = 'literal' | 'variable';
|
|
102
|
+
export declare type XrTypedValueMode = 'literal' | 'variable' | 'call';
|
|
76
103
|
export declare class XrTypedValueModeDefine {
|
|
77
104
|
static readonly LITERAL: XrTypedValueMode;
|
|
78
105
|
static readonly VARIABLE: XrTypedValueMode;
|
|
106
|
+
static readonly CALL: XrTypedValueMode;
|
|
79
107
|
}
|
|
80
108
|
export declare class XrTypedValue<T = any> {
|
|
81
109
|
mode: XrTypedValueMode;
|
|
82
110
|
literal?: T;
|
|
83
111
|
variableScope?: XrVariableScopeType;
|
|
84
112
|
variableKey?: string;
|
|
113
|
+
callAction?: any;
|
|
85
114
|
}
|
|
86
115
|
/**
|
|
87
116
|
* 变量目标(写变量时用)
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { MultiLanguageStr, VRTalkBaseData } from '../general';
|
|
2
|
+
import { XrVariable, XrVariableType } from './xr-logic';
|
|
3
|
+
import type { XrAnyAction } from './vr-action';
|
|
4
|
+
/**
|
|
5
|
+
* ============================================================
|
|
6
|
+
* 可视化编程系统 —— 程序组织模型(plan §4.4 / §4.6 / §4.8 / §4.9 / §4.3⑥)
|
|
7
|
+
* ============================================================
|
|
8
|
+
*
|
|
9
|
+
* 层级(方案甲·经典分层):
|
|
10
|
+
* VrContentData
|
|
11
|
+
* ├─ sharedVariableList 共享变量(跨场景单例,已有)
|
|
12
|
+
* ├─ customClassList 自定义类(全局类型库,plan §1.39)
|
|
13
|
+
* ├─ sharedFunctionList 公共函数库(共享层,任意场景可调,plan §1.27/§1.35)
|
|
14
|
+
* ├─ entityHandlerBindingList 实体↔handler 关联(VB code-behind,plan §4.9)
|
|
15
|
+
* └─ programSceneList 场景(真隔离逻辑,多场景并发,plan §4.8)
|
|
16
|
+
* └─ XrProgramScene
|
|
17
|
+
* ├─ sceneVariableList 场景变量(场景内所有模块可见)
|
|
18
|
+
* └─ moduleList 模块(.java 式;模块变量私有,plan §1.15)
|
|
19
|
+
* └─ XrProgramModule
|
|
20
|
+
* ├─ moduleVariableList
|
|
21
|
+
* ├─ listenerList 声明式监听器
|
|
22
|
+
* ├─ functionList 函数(调用即返回,plan §4.6)
|
|
23
|
+
* ├─ subprogramList 常驻子程序(有生命周期,plan §4.6)
|
|
24
|
+
* └─ folderList 可选的组织文件夹(plan §1.40)
|
|
25
|
+
*
|
|
26
|
+
* 说明:动作体暂用 XrAnyAction[](现有 AST);后续 Block AST 演进自 XrAnyAction,向后兼容。
|
|
27
|
+
*/
|
|
28
|
+
/** 顶层「场景」——真隔离的逻辑工程,多个可并发运行,仅隔离逻辑(空间内容各场景共用,plan §1.6/§1.13) */
|
|
29
|
+
export declare class XrProgramScene extends VRTalkBaseData {
|
|
30
|
+
name: MultiLanguageStr;
|
|
31
|
+
remark: string;
|
|
32
|
+
autoStart: boolean;
|
|
33
|
+
sceneVariableList: XrVariable[];
|
|
34
|
+
onStartActionList: XrAnyAction[];
|
|
35
|
+
onStopActionList: XrAnyAction[];
|
|
36
|
+
onPauseActionList: XrAnyAction[];
|
|
37
|
+
onResumeActionList: XrAnyAction[];
|
|
38
|
+
moduleList: XrProgramModule[];
|
|
39
|
+
}
|
|
40
|
+
/** 场景内「模块」——类似一个 .java 文件;模块变量私有,跨模块调用公开函数(plan §1.15) */
|
|
41
|
+
export declare class XrProgramModule extends VRTalkBaseData {
|
|
42
|
+
name: MultiLanguageStr;
|
|
43
|
+
remark: string;
|
|
44
|
+
moduleVariableList: XrVariable[];
|
|
45
|
+
listenerList: XrProgramListener[];
|
|
46
|
+
functionList: XrProgramFunction[];
|
|
47
|
+
subprogramList: XrSubprogram[];
|
|
48
|
+
folderList: XrProgramFolder[];
|
|
49
|
+
sortMode: 'by-type' | 'by-name';
|
|
50
|
+
}
|
|
51
|
+
/** 模块内的组织文件夹(纯 UI 分组,plan §1.40) */
|
|
52
|
+
export declare class XrProgramFolder extends VRTalkBaseData {
|
|
53
|
+
name: string;
|
|
54
|
+
parentFolderId: string;
|
|
55
|
+
}
|
|
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
|
+
/** 函数参数(类型可为任意 XrVariableType,含对象/自定义类;plan §4.6) */
|
|
76
|
+
export declare class XrProgramFunctionParam {
|
|
77
|
+
key: string;
|
|
78
|
+
name: MultiLanguageStr;
|
|
79
|
+
type: XrVariableType;
|
|
80
|
+
entityRefTypeKey?: string;
|
|
81
|
+
listElementType?: XrVariableType;
|
|
82
|
+
listElementRefTypeKey?: string;
|
|
83
|
+
listElementCustomClassId?: string;
|
|
84
|
+
customClassId?: string;
|
|
85
|
+
}
|
|
86
|
+
/** 函数可见性(plan §1.27/§1.35):共享=公共(任意场景可调) / 场景=同场景可调 / 模块=私有 */
|
|
87
|
+
export declare type XrProgramVisibility = 'shared' | 'scene' | 'module';
|
|
88
|
+
export declare class XrProgramVisibilityDefine {
|
|
89
|
+
static readonly SHARED: XrProgramVisibility;
|
|
90
|
+
static readonly SCENE: XrProgramVisibility;
|
|
91
|
+
static readonly MODULE: XrProgramVisibility;
|
|
92
|
+
}
|
|
93
|
+
/** 函数 / 配方(调用即返回、带参、带返回值、可复用;plan §4.6)。也用作自定义类的实例方法/静态方法。 */
|
|
94
|
+
export declare class XrProgramFunction extends VRTalkBaseData {
|
|
95
|
+
name: MultiLanguageStr;
|
|
96
|
+
remark: string;
|
|
97
|
+
folderId: string;
|
|
98
|
+
visibility: XrProgramVisibility;
|
|
99
|
+
paramList: XrProgramFunctionParam[];
|
|
100
|
+
localVariableList: XrVariable[];
|
|
101
|
+
bodyActionList: XrAnyAction[];
|
|
102
|
+
returnType?: XrVariableType;
|
|
103
|
+
returnEntityRefTypeKey?: string;
|
|
104
|
+
returnCustomClassId?: string;
|
|
105
|
+
}
|
|
106
|
+
/** 常驻子程序(子应用)——有生命周期(启动/停止,可暂停/恢复),持有自己注册的监听器,被叫停时整体回收(plan §4.6/§1.5/§1.35,只属于场景)。 */
|
|
107
|
+
export declare class XrSubprogram extends VRTalkBaseData {
|
|
108
|
+
name: MultiLanguageStr;
|
|
109
|
+
remark: string;
|
|
110
|
+
folderId: string;
|
|
111
|
+
autoStart: boolean;
|
|
112
|
+
paramList: XrProgramFunctionParam[];
|
|
113
|
+
localVariableList: XrVariable[];
|
|
114
|
+
onStartActionList: XrAnyAction[];
|
|
115
|
+
onStopActionList: XrAnyAction[];
|
|
116
|
+
onPauseActionList: XrAnyAction[];
|
|
117
|
+
onResumeActionList: XrAnyAction[];
|
|
118
|
+
}
|
|
119
|
+
/** 自定义类的字段 */
|
|
120
|
+
export declare class XrCustomClassField {
|
|
121
|
+
key: string;
|
|
122
|
+
name: MultiLanguageStr;
|
|
123
|
+
type: XrVariableType;
|
|
124
|
+
entityRefTypeKey?: string;
|
|
125
|
+
listElementType?: XrVariableType;
|
|
126
|
+
listElementRefTypeKey?: string;
|
|
127
|
+
listElementCustomClassId?: string;
|
|
128
|
+
customClassId?: string;
|
|
129
|
+
defaultValue?: any;
|
|
130
|
+
}
|
|
131
|
+
/** 用户自定义类(可 new 多个实例,也可标记为全局单例;支持实例字段/实例方法/静态方法;自定义类之间可继承) */
|
|
132
|
+
export declare class XrCustomClass extends VRTalkBaseData {
|
|
133
|
+
name: MultiLanguageStr;
|
|
134
|
+
remark: string;
|
|
135
|
+
extendsCustomClassId: string;
|
|
136
|
+
isSingleton: boolean;
|
|
137
|
+
fieldList: XrCustomClassField[];
|
|
138
|
+
instanceMethodList: XrProgramFunction[];
|
|
139
|
+
staticMethodList: XrProgramFunction[];
|
|
140
|
+
}
|
|
141
|
+
export declare class XrEntityHandlerBinding extends VRTalkBaseData {
|
|
142
|
+
entityTypeKey: string;
|
|
143
|
+
entityId: string;
|
|
144
|
+
entityParentPath: string[];
|
|
145
|
+
eventName: string;
|
|
146
|
+
handlerFunctionId: string;
|
|
147
|
+
sceneId: string;
|
|
148
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Color, Vector3, VRTalkBaseData } from '../general';
|
|
2
|
+
/**
|
|
3
|
+
* 射线命中器 - 检测面
|
|
4
|
+
* 扁圆柱只有上下两个圆面有检测意义(侧面永不参与检测)
|
|
5
|
+
*/
|
|
6
|
+
export declare type RayHitterDetectFace = 'top' | 'bottom' | 'both';
|
|
7
|
+
export declare class RayHitterDetectFaceDefine {
|
|
8
|
+
static readonly TOP: RayHitterDetectFace;
|
|
9
|
+
static readonly BOTTOM: RayHitterDetectFace;
|
|
10
|
+
static readonly BOTH: RayHitterDetectFace;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 射线命中器 - 单个圆面的独立配置
|
|
14
|
+
* 距离+角度双门槛的语义:以该圆面为上底、按 maxTiltDeg 张开的锥体/球面区域——
|
|
15
|
+
* 相机必须位于圆面法线夹角 ≤ maxTiltDeg 的方向内,且沿射线距离在 [distanceMin, distanceMax] 内,
|
|
16
|
+
* 停留计时才会累计;门槛不符时准星旁提示(过近/过远/角度太偏)且不计时
|
|
17
|
+
*/
|
|
18
|
+
export declare class RayHitterFaceConfig {
|
|
19
|
+
distanceMin: number;
|
|
20
|
+
distanceMax: number;
|
|
21
|
+
maxTiltDeg: number;
|
|
22
|
+
iconUrl: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 射线命中器(独立实体,不是装修组件)——扁圆柱,准星停留触发
|
|
26
|
+
*
|
|
27
|
+
* 存 vrContentData.rayHitterList,console 在「内容设置」板块管理(照空间围栏的独立实体模式),
|
|
28
|
+
* 运行时由 XrRayHitterEngine 独立渲染与驱动,不走装修组件工厂/组件运行时状态体系。
|
|
29
|
+
*
|
|
30
|
+
* 运行时行为:
|
|
31
|
+
* - 全系统同时只能激活一个;未激活不显示(编辑器摆放时恒显)
|
|
32
|
+
* - 由 ray_hitter_activate / ray_hitter_deactivate action 控制激活
|
|
33
|
+
* - 激活期间屏幕正中显示准星;准星射线命中检测面并通过该面距离+角度双门槛后开始停留计时+进度环,
|
|
34
|
+
* 移开重置;计满按命中面发 ray_hitter_top_triggered / ray_hitter_bottom_triggered 信号
|
|
35
|
+
* (上/下圆面各自独立的触发器 actionList),任一面完成都自动取消整个命中器的激活
|
|
36
|
+
*/
|
|
37
|
+
export declare class XrRayHitter extends VRTalkBaseData {
|
|
38
|
+
name: string;
|
|
39
|
+
description: string;
|
|
40
|
+
position: Vector3;
|
|
41
|
+
rotation: Vector3;
|
|
42
|
+
radius: number;
|
|
43
|
+
height: number;
|
|
44
|
+
detectFace: RayHitterDetectFace;
|
|
45
|
+
dwellTriggerMs: number;
|
|
46
|
+
color: Color;
|
|
47
|
+
topFace: RayHitterFaceConfig;
|
|
48
|
+
bottomFace: RayHitterFaceConfig;
|
|
49
|
+
}
|
|
@@ -22,6 +22,7 @@ export * from './parent-com-command-trimmer';
|
|
|
22
22
|
export * from './parent-com-command-sticker';
|
|
23
23
|
export * from './parent-com-command-ui';
|
|
24
24
|
export * from './parent-com-command-wormhole';
|
|
25
|
+
export * from './parent-com-command-ray-hitter';
|
|
25
26
|
export * from './parent-com-command-space-fence';
|
|
26
27
|
export * from './parent-com-command-monitor';
|
|
27
28
|
export * from './parent-com-command-message-card';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VRTalkEditablePlayer } from '../vrtalk-editable-player';
|
|
2
|
+
import { VrComponentControllerType, XrRayHitter } from '@/model';
|
|
3
|
+
export declare class ParentComCommandRayHitter {
|
|
4
|
+
private player;
|
|
5
|
+
constructor(player: VRTalkEditablePlayer);
|
|
6
|
+
sendCreate(rayHitterData: XrRayHitter): void;
|
|
7
|
+
sendUpdate(rayHitterData: XrRayHitter): void;
|
|
8
|
+
sendDelete(rayHitterId: string): void;
|
|
9
|
+
sendControllerModify(controllerType: VrComponentControllerType, rayHitterId: string): void;
|
|
10
|
+
sendEditingStateUpdate(editingState: boolean): void;
|
|
11
|
+
}
|
|
@@ -14,6 +14,7 @@ export * from './parent-com-message-target';
|
|
|
14
14
|
export * from './parent-com-message-trimmer';
|
|
15
15
|
export * from './parent-com-message-sticker';
|
|
16
16
|
export * from './parent-com-message-wormhole';
|
|
17
|
+
export * from './parent-com-message-ray-hitter';
|
|
17
18
|
export * from './parent-com-message-space-fence';
|
|
18
19
|
export * from './parent-com-message-dolly-path';
|
|
19
20
|
export * from './parent-com-message-path-design';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VRTalkEditablePlayer } from '../vrtalk-editable-player';
|
|
2
|
+
import { XrRayHitter } from '@/model';
|
|
3
|
+
export declare class ParentComMessageRayHitter {
|
|
4
|
+
private player;
|
|
5
|
+
constructor(player: VRTalkEditablePlayer);
|
|
6
|
+
onUpdate(callback: (rayHitterData: XrRayHitter) => void): void;
|
|
7
|
+
onClick(callback: (rayHitterId: string) => void): void;
|
|
8
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ParentComMessagePlayer } from './com-message/parent-com-message-player';
|
|
2
2
|
import { PlayerComMessage, PlayerComMessageType } from '..//player/com-message/player-com-message';
|
|
3
3
|
import { PlayerComCommand } from '../player/com-command/player-com-command';
|
|
4
|
-
import { ParentComCommandAssetLabel, ParentComCommandAssetPointMark, ParentComCommandAssetVolumeMark, ParentComCommandAudio, ParentComCommandCamera, ParentComCommandComponent, ParentComCommandCover, ParentComCommandFloor, ParentComCommandFov, ParentComCommandInformation, ParentComCommandInfoTemplate, ParentComCommandLayer, ParentComCommandLight, ParentComCommandMarker, ParentComCommandNavigation, ParentComCommandObstacle, ParentComCommandPlayer, ParentComCommandSpaceFence, ParentComCommandRenderer, ParentComCommandSticker, ParentComCommandSweep, ParentComCommandTarget, ParentComCommandTrimmer, ParentComCommandUi, ParentComCommandWormhole, ParentComCommandMonitor, ParentComCommandMessageCard, ParentComCommandDollyPath, ParentComCommandHamburgerMenu, ParentComCommandPathDesign } from './com-command';
|
|
5
|
-
import { ParentComMessageAssetLabel, ParentComMessageAssetPointMark, ParentComMessageAssetVolumeMark, ParentComMessageCamera, ParentComMessageComponent, ParentComMessageFloor, ParentComMessageFov, ParentComMessageNavigation, ParentComMessageObstacle, ParentComMessageRenderer, ParentComMessageSpaceFence, ParentComMessageSticker, ParentComMessageSweep, ParentComMessageTarget, ParentComMessageTrimmer, ParentComMessageWormhole, ParentComMessageDollyPath, ParentComMessagePathDesign } from './com-message';
|
|
4
|
+
import { ParentComCommandAssetLabel, ParentComCommandAssetPointMark, ParentComCommandAssetVolumeMark, ParentComCommandAudio, ParentComCommandCamera, ParentComCommandComponent, ParentComCommandCover, ParentComCommandFloor, ParentComCommandFov, ParentComCommandInformation, ParentComCommandInfoTemplate, ParentComCommandLayer, ParentComCommandLight, ParentComCommandMarker, ParentComCommandNavigation, ParentComCommandObstacle, ParentComCommandPlayer, ParentComCommandRayHitter, ParentComCommandSpaceFence, ParentComCommandRenderer, ParentComCommandSticker, ParentComCommandSweep, ParentComCommandTarget, ParentComCommandTrimmer, ParentComCommandUi, ParentComCommandWormhole, ParentComCommandMonitor, ParentComCommandMessageCard, ParentComCommandDollyPath, ParentComCommandHamburgerMenu, ParentComCommandPathDesign } from './com-command';
|
|
5
|
+
import { ParentComMessageAssetLabel, ParentComMessageAssetPointMark, ParentComMessageAssetVolumeMark, ParentComMessageCamera, ParentComMessageComponent, ParentComMessageFloor, ParentComMessageFov, ParentComMessageNavigation, ParentComMessageObstacle, ParentComMessageRayHitter, ParentComMessageRenderer, ParentComMessageSpaceFence, ParentComMessageSticker, ParentComMessageSweep, ParentComMessageTarget, ParentComMessageTrimmer, ParentComMessageWormhole, ParentComMessageDollyPath, ParentComMessagePathDesign } from './com-message';
|
|
6
6
|
export declare class VRTalkEditablePlayer {
|
|
7
7
|
serviceRegion: string;
|
|
8
8
|
iframeElement: HTMLIFrameElement | null;
|
|
@@ -23,6 +23,7 @@ export declare class VRTalkEditablePlayer {
|
|
|
23
23
|
messageAssetVolumeMark: ParentComMessageAssetVolumeMark;
|
|
24
24
|
messageTarget: ParentComMessageTarget;
|
|
25
25
|
messageWormhole: ParentComMessageWormhole;
|
|
26
|
+
messageRayHitter: ParentComMessageRayHitter;
|
|
26
27
|
messageSpaceFence: ParentComMessageSpaceFence;
|
|
27
28
|
messageDollyPath: ParentComMessageDollyPath;
|
|
28
29
|
messagePathDesign: ParentComMessagePathDesign;
|
|
@@ -50,6 +51,7 @@ export declare class VRTalkEditablePlayer {
|
|
|
50
51
|
commandAudio: ParentComCommandAudio;
|
|
51
52
|
commandTarget: ParentComCommandTarget;
|
|
52
53
|
commandWormhole: ParentComCommandWormhole;
|
|
54
|
+
commandRayHitter: ParentComCommandRayHitter;
|
|
53
55
|
commandSpaceFence: ParentComCommandSpaceFence;
|
|
54
56
|
commandMonitor: ParentComCommandMonitor;
|
|
55
57
|
commandMessageCard: ParentComCommandMessageCard;
|
|
@@ -23,6 +23,7 @@ export * from './player-com-command-trimmer';
|
|
|
23
23
|
export * from './player-com-command-sticker';
|
|
24
24
|
export * from './player-com-command-ui';
|
|
25
25
|
export * from './player-com-command-wormhole';
|
|
26
|
+
export * from './player-com-command-ray-hitter';
|
|
26
27
|
export * from './player-com-command-space-fence';
|
|
27
28
|
export * from './player-com-command-monitor';
|
|
28
29
|
export * from './player-com-command-message-card';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VrComponentControllerType, XrRayHitter } from '@/model';
|
|
2
|
+
export declare class PlayerComCommandRayHitter {
|
|
3
|
+
onCreate(callback: (rayHitterData: XrRayHitter) => void): void;
|
|
4
|
+
onUpdate(callback: (rayHitterData: XrRayHitter) => void): void;
|
|
5
|
+
onDelete(callback: (rayHitterId: string) => void): void;
|
|
6
|
+
onControllerModify(callback: (controllerType: VrComponentControllerType, rayHitterId: string) => void): void;
|
|
7
|
+
onEditingStateUpdate(callback: (editingState: boolean) => void): void;
|
|
8
|
+
}
|
|
@@ -11,7 +11,7 @@ export declare class PlayerComCommand {
|
|
|
11
11
|
/**
|
|
12
12
|
* VR播放器向父层发送的消息类型
|
|
13
13
|
*/
|
|
14
|
-
export declare type PlayerComCommandType = 'vrtalk_cmd_player_start' | 'vrtalk_cmd_player_mode_update' | 'vrtalk_cmd_player_xr_prepare_preview' | 'vrtalk_cmd_player_prepare_settings_update' | 'vrtalk_cmd_cover_settings_update' | 'vrtalk_cmd_ui_settings_update' | 'vrtalk_cmd_info_template_settings_update' | 'vrtalk_cmd_component_create' | 'vrtalk_cmd_component_update' | 'vrtalk_cmd_component_delete' | 'vrtalk_cmd_component_follow_mouse' | 'vrtalk_cmd_component_controller' | 'vrtalk_cmd_component_play_transition_animation' | 'vrtalk_cmd_component_stop_transition_animation' | 'vrtalk_cmd_component_3d_model_play_animation_clip' | 'vrtalk_cmd_component_3d_model_stop_animation_clip' | 'vrtalk_cmd_component_2d_text_auto_fit' | 'vrtalk_cmd_fov_enter_shot_mode' | 'vrtalk_cmd_fov_exit_shot_mode' | 'vrtalk_cmd_fov_update' | 'vrtalk_cmd_fov_delete' | 'vrtalk_cmd_layer_update' | 'vrtalk_cmd_layer_delete' | 'vrtalk_cmd_layer_visible' | 'vrtalk_cmd_information_content_card_update' | 'vrtalk_cmd_information_content_card_delete' | 'vrtalk_cmd_marker_update' | 'vrtalk_cmd_marker_delete' | 'vrtalk_cmd_marker_group_update' | 'vrtalk_cmd_marker_group_delete' | 'vrtalk_cmd_sweep_update_all' | 'vrtalk_cmd_sweep_update' | 'vrtalk_cmd_sweep_delete_virtual' | 'vrtalk_cmd_sweep_update_render_flag_visible' | 'vrtalk_cmd_light_create' | 'vrtalk_cmd_light_update' | 'vrtalk_cmd_light_delete' | 'vrtalk_cmd_trimmer_create' | 'vrtalk_cmd_trimmer_update' | 'vrtalk_cmd_trimmer_delete' | 'vrtalk_cmd_trimmer_controller' | 'vrtalk_cmd_trimmer_editing_state_update' | 'vrtalk_cmd_sticker_create' | 'vrtalk_cmd_sticker_update' | 'vrtalk_cmd_sticker_delete' | 'vrtalk_cmd_sticker_controller' | 'vrtalk_cmd_sticker_editing_state_update' | 'vrtalk_cmd_target_create' | 'vrtalk_cmd_target_update' | 'vrtalk_cmd_target_delete' | 'vrtalk_cmd_target_controller' | 'vrtalk_cmd_target_editing_state_update' | 'vrtalk_cmd_target_group_visible_update' | 'vrtalk_cmd_obstacle_create' | 'vrtalk_cmd_obstacle_update' | 'vrtalk_cmd_obstacle_delete' | 'vrtalk_cmd_obstacle_controller' | 'vrtalk_cmd_obstacle_editing_state_update' | 'vrtalk_cmd_obstacle_group_visible_update' | 'vrtalk_cmd_space_fence_create' | 'vrtalk_cmd_space_fence_update' | 'vrtalk_cmd_space_fence_delete' | 'vrtalk_cmd_space_fence_controller' | 'vrtalk_cmd_space_fence_editing_state_update' | 'vrtalk_cmd_space_fence_group_visible_update' | 'vrtalk_cmd_space_fence_group_color_update' | 'vrtalk_cmd_wormhole_create' | 'vrtalk_cmd_wormhole_update' | 'vrtalk_cmd_wormhole_delete' | 'vrtalk_cmd_wormhole_controller' | 'vrtalk_cmd_wormhole_editing_state_update' | 'vrtalk_cmd_wormhole_group_visible_update' | 'vrtalk_cmd_asset_label_create' | 'vrtalk_cmd_asset_label_update' | 'vrtalk_cmd_asset_label_delete' | 'vrtalk_cmd_asset_label_controller' | 'vrtalk_cmd_asset_label_editing_state_update' | 'vrtalk_cmd_asset_point_mark_create' | 'vrtalk_cmd_asset_point_mark_update' | 'vrtalk_cmd_asset_point_mark_delete' | 'vrtalk_cmd_asset_point_mark_controller' | 'vrtalk_cmd_asset_point_mark_editing_state_update' | 'vrtalk_cmd_asset_volume_mark_create' | 'vrtalk_cmd_asset_volume_mark_update' | 'vrtalk_cmd_asset_volume_mark_delete' | 'vrtalk_cmd_asset_volume_mark_controller' | 'vrtalk_cmd_asset_volume_mark_editing_state_update' | 'vrtalk_cmd_floor_update' | 'vrtalk_cmd_camera_move_to' | 'vrtalk_cmd_camera_move_to_inside' | 'vrtalk_cmd_camera_move_to_vr_fov' | 'vrtalk_cmd_camera_move_to_near_component' | 'vrtalk_cmd_camera_move_to_watch_position' | 'vrtalk_cmd_camera_request_deeplink_params' | 'vrtalk_cmd_renderer_take_screenshot' | 'vrtalk_cmd_renderer_get_panorama_image' | 'vrtalk_cmd_renderer_settings_update' | 'vrtalk_cmd_renderer_color_space_settings_update' | 'vrtalk_cmd_navigation_request' | 'vrtalk_cmd_navigation_start' | 'vrtalk_cmd_navigation_cancel' | 'vrtalk_cmd_audio_update' | 'vrtalk_cmd_audio_delete' | 'vrtalk_cmd_audio_list_update' | 'vrtalk_cmd_audio_list_delete' | 'vrtalk_cmd_audio_center_player_show_play_control_update' | 'vrtalk_cmd_audio_center_player_show_volume_control_update' | 'vrtalk_cmd_audio_center_player_volume_update' | 'vrtalk_cmd_monitor_list_update' | 'vrtalk_cmd_dolly_path_capture_destination' | 'vrtalk_cmd_dolly_path_preview' | 'vrtalk_cmd_dolly_path_stop_preview' | 'vrtalk_cmd_path_design_enter' | 'vrtalk_cmd_path_design_exit' | 'vrtalk_cmd_path_design_update' | 'vrtalk_cmd_path_design_set_tool' | 'vrtalk_cmd_path_design_set_view' | 'vrtalk_cmd_path_design_select_point' | 'vrtalk_cmd_path_design_scrub' | 'vrtalk_cmd_path_design_preview_play' | 'vrtalk_cmd_path_design_preview_stop' | 'vrtalk_cmd_path_design_generate' | 'vrtalk_cmd_path_design_generate_oneshot' | 'vrtalk_cmd_path_design_move_component_to_start' | 'vrtalk_cmd_message_card_preview' | 'vrtalk_cmd_hamburger_menu_update';
|
|
14
|
+
export declare type PlayerComCommandType = 'vrtalk_cmd_player_start' | 'vrtalk_cmd_player_mode_update' | 'vrtalk_cmd_player_xr_prepare_preview' | 'vrtalk_cmd_player_prepare_settings_update' | 'vrtalk_cmd_cover_settings_update' | 'vrtalk_cmd_ui_settings_update' | 'vrtalk_cmd_info_template_settings_update' | 'vrtalk_cmd_component_create' | 'vrtalk_cmd_component_update' | 'vrtalk_cmd_component_delete' | 'vrtalk_cmd_component_follow_mouse' | 'vrtalk_cmd_component_controller' | 'vrtalk_cmd_component_play_transition_animation' | 'vrtalk_cmd_component_stop_transition_animation' | 'vrtalk_cmd_component_3d_model_play_animation_clip' | 'vrtalk_cmd_component_3d_model_stop_animation_clip' | 'vrtalk_cmd_component_2d_text_auto_fit' | 'vrtalk_cmd_fov_enter_shot_mode' | 'vrtalk_cmd_fov_exit_shot_mode' | 'vrtalk_cmd_fov_update' | 'vrtalk_cmd_fov_delete' | 'vrtalk_cmd_layer_update' | 'vrtalk_cmd_layer_delete' | 'vrtalk_cmd_layer_visible' | 'vrtalk_cmd_information_content_card_update' | 'vrtalk_cmd_information_content_card_delete' | 'vrtalk_cmd_marker_update' | 'vrtalk_cmd_marker_delete' | 'vrtalk_cmd_marker_group_update' | 'vrtalk_cmd_marker_group_delete' | 'vrtalk_cmd_sweep_update_all' | 'vrtalk_cmd_sweep_update' | 'vrtalk_cmd_sweep_delete_virtual' | 'vrtalk_cmd_sweep_update_render_flag_visible' | 'vrtalk_cmd_light_create' | 'vrtalk_cmd_light_update' | 'vrtalk_cmd_light_delete' | 'vrtalk_cmd_trimmer_create' | 'vrtalk_cmd_trimmer_update' | 'vrtalk_cmd_trimmer_delete' | 'vrtalk_cmd_trimmer_controller' | 'vrtalk_cmd_trimmer_editing_state_update' | 'vrtalk_cmd_sticker_create' | 'vrtalk_cmd_sticker_update' | 'vrtalk_cmd_sticker_delete' | 'vrtalk_cmd_sticker_controller' | 'vrtalk_cmd_sticker_editing_state_update' | 'vrtalk_cmd_target_create' | 'vrtalk_cmd_target_update' | 'vrtalk_cmd_target_delete' | 'vrtalk_cmd_target_controller' | 'vrtalk_cmd_target_editing_state_update' | 'vrtalk_cmd_target_group_visible_update' | 'vrtalk_cmd_obstacle_create' | 'vrtalk_cmd_obstacle_update' | 'vrtalk_cmd_obstacle_delete' | 'vrtalk_cmd_obstacle_controller' | 'vrtalk_cmd_obstacle_editing_state_update' | 'vrtalk_cmd_obstacle_group_visible_update' | 'vrtalk_cmd_space_fence_create' | 'vrtalk_cmd_space_fence_update' | 'vrtalk_cmd_space_fence_delete' | 'vrtalk_cmd_space_fence_controller' | 'vrtalk_cmd_space_fence_editing_state_update' | 'vrtalk_cmd_space_fence_group_visible_update' | 'vrtalk_cmd_space_fence_group_color_update' | 'vrtalk_cmd_ray_hitter_create' | 'vrtalk_cmd_ray_hitter_update' | 'vrtalk_cmd_ray_hitter_delete' | 'vrtalk_cmd_ray_hitter_controller' | 'vrtalk_cmd_ray_hitter_editing_state_update' | 'vrtalk_cmd_wormhole_create' | 'vrtalk_cmd_wormhole_update' | 'vrtalk_cmd_wormhole_delete' | 'vrtalk_cmd_wormhole_controller' | 'vrtalk_cmd_wormhole_editing_state_update' | 'vrtalk_cmd_wormhole_group_visible_update' | 'vrtalk_cmd_asset_label_create' | 'vrtalk_cmd_asset_label_update' | 'vrtalk_cmd_asset_label_delete' | 'vrtalk_cmd_asset_label_controller' | 'vrtalk_cmd_asset_label_editing_state_update' | 'vrtalk_cmd_asset_point_mark_create' | 'vrtalk_cmd_asset_point_mark_update' | 'vrtalk_cmd_asset_point_mark_delete' | 'vrtalk_cmd_asset_point_mark_controller' | 'vrtalk_cmd_asset_point_mark_editing_state_update' | 'vrtalk_cmd_asset_volume_mark_create' | 'vrtalk_cmd_asset_volume_mark_update' | 'vrtalk_cmd_asset_volume_mark_delete' | 'vrtalk_cmd_asset_volume_mark_controller' | 'vrtalk_cmd_asset_volume_mark_editing_state_update' | 'vrtalk_cmd_floor_update' | 'vrtalk_cmd_camera_move_to' | 'vrtalk_cmd_camera_move_to_inside' | 'vrtalk_cmd_camera_move_to_vr_fov' | 'vrtalk_cmd_camera_move_to_near_component' | 'vrtalk_cmd_camera_move_to_watch_position' | 'vrtalk_cmd_camera_request_deeplink_params' | 'vrtalk_cmd_renderer_take_screenshot' | 'vrtalk_cmd_renderer_get_panorama_image' | 'vrtalk_cmd_renderer_settings_update' | 'vrtalk_cmd_renderer_color_space_settings_update' | 'vrtalk_cmd_navigation_request' | 'vrtalk_cmd_navigation_start' | 'vrtalk_cmd_navigation_cancel' | 'vrtalk_cmd_audio_update' | 'vrtalk_cmd_audio_delete' | 'vrtalk_cmd_audio_list_update' | 'vrtalk_cmd_audio_list_delete' | 'vrtalk_cmd_audio_center_player_show_play_control_update' | 'vrtalk_cmd_audio_center_player_show_volume_control_update' | 'vrtalk_cmd_audio_center_player_volume_update' | 'vrtalk_cmd_monitor_list_update' | 'vrtalk_cmd_dolly_path_capture_destination' | 'vrtalk_cmd_dolly_path_preview' | 'vrtalk_cmd_dolly_path_stop_preview' | 'vrtalk_cmd_path_design_enter' | 'vrtalk_cmd_path_design_exit' | 'vrtalk_cmd_path_design_update' | 'vrtalk_cmd_path_design_set_tool' | 'vrtalk_cmd_path_design_set_view' | 'vrtalk_cmd_path_design_select_point' | 'vrtalk_cmd_path_design_scrub' | 'vrtalk_cmd_path_design_preview_play' | 'vrtalk_cmd_path_design_preview_stop' | 'vrtalk_cmd_path_design_generate' | 'vrtalk_cmd_path_design_generate_oneshot' | 'vrtalk_cmd_path_design_move_component_to_start' | 'vrtalk_cmd_message_card_preview' | 'vrtalk_cmd_hamburger_menu_update';
|
|
15
15
|
export declare class PlayerComCommandTypeDefine {
|
|
16
16
|
static readonly PLAYER_START: PlayerComCommandType;
|
|
17
17
|
static readonly PLAYER_MODE_UPDATE: PlayerComCommandType;
|
|
@@ -73,6 +73,11 @@ export declare class PlayerComCommandTypeDefine {
|
|
|
73
73
|
static readonly SPACE_FENCE_EDITING_STATE_UPDATE: PlayerComCommandType;
|
|
74
74
|
static readonly SPACE_FENCE_GROUP_VISIBLE_UPDATE: PlayerComCommandType;
|
|
75
75
|
static readonly SPACE_FENCE_GROUP_COLOR_UPDATE: PlayerComCommandType;
|
|
76
|
+
static readonly RAY_HITTER_CREATE: PlayerComCommandType;
|
|
77
|
+
static readonly RAY_HITTER_UPDATE: PlayerComCommandType;
|
|
78
|
+
static readonly RAY_HITTER_DELETE: PlayerComCommandType;
|
|
79
|
+
static readonly RAY_HITTER_CONTROLLER_MODIFY: PlayerComCommandType;
|
|
80
|
+
static readonly RAY_HITTER_EDITING_STATE_UPDATE: PlayerComCommandType;
|
|
76
81
|
static readonly WORMHOLE_CREATE: PlayerComCommandType;
|
|
77
82
|
static readonly WORMHOLE_UPDATE: PlayerComCommandType;
|
|
78
83
|
static readonly WORMHOLE_DELETE: PlayerComCommandType;
|
|
@@ -15,6 +15,7 @@ export * from './player-com-message-sweep';
|
|
|
15
15
|
export * from './player-com-message-target';
|
|
16
16
|
export * from './player-com-message-trimmer';
|
|
17
17
|
export * from './player-com-message-wormhole';
|
|
18
|
+
export * from './player-com-message-ray-hitter';
|
|
18
19
|
export * from './player-com-message-space-fence';
|
|
19
20
|
export * from './player-com-message-dolly-path';
|
|
20
21
|
export * from './player-com-message-path-design';
|
|
@@ -11,7 +11,7 @@ export declare class PlayerComMessage {
|
|
|
11
11
|
/**
|
|
12
12
|
* VR播放器向父层发送的消息类型
|
|
13
13
|
*/
|
|
14
|
-
export declare type PlayerComMessageType = 'vrtalk_msg_player_ready' | 'vrtalk_msg_player_status_update' | 'vrtalk_msg_component_update' | 'vrtalk_msg_component_on_click' | 'vrtalk_msg_component_controller_focus_update' | 'vrtalk_msg_component_transition_animation_finished' | 'vrtalk_msg_fov_shot_result' | 'vrtalk_msg_trimmer_update' | 'vrtalk_msg_trimmer_on_click' | 'vrtalk_msg_sticker_update' | 'vrtalk_msg_sticker_on_click' | 'vrtalk_msg_target_update' | 'vrtalk_msg_target_on_click' | 'vrtalk_msg_obstacle_update' | 'vrtalk_msg_obstacle_on_click' | 'vrtalk_msg_space_fence_update' | 'vrtalk_msg_space_fence_on_click' | 'vrtalk_msg_wormhole_update' | 'vrtalk_msg_wormhole_on_click' | 'vrtalk_msg_asset_label_update' | 'vrtalk_msg_asset_label_on_click' | 'vrtalk_msg_asset_point_mark_update' | 'vrtalk_msg_asset_point_mark_on_click' | 'vrtalk_msg_asset_volume_mark_update' | 'vrtalk_msg_asset_volume_mark_on_click' | 'vrtalk_msg_sweep_import_from_matterport' | 'vrtalk_msg_sweep_sync_matterport_enabled_state' | 'vrtalk_msg_sweep_request_modify_enabled' | 'vrtalk_msg_floor_import_from_matterport' | 'vrtalk_msg_floor_enter' | 'vrtalk_msg_floor_leave' | 'vrtalk_msg_camera_pose_update' | 'vrtalk_msg_camera_deeplink_params_ready' | 'vrtalk_msg_renderer_screenshot_ready' | 'vrtalk_msg_renderer_panorama_image_ready' | 'vrtalk_msg_renderer_world_size_ready' | 'vrtalk_msg_dolly_path_destination_captured' | 'vrtalk_msg_path_design_points_update' | 'vrtalk_msg_path_design_selection_update' | 'vrtalk_msg_path_design_bounds' | 'vrtalk_msg_path_design_stats' | 'vrtalk_msg_path_design_keyframes' | 'vrtalk_msg_path_design_pick_result' | 'vrtalk_msg_path_design_undo_request' | 'vrtalk_msg_path_design_preview_state' | 'vrtalk_msg_path_design_param_update' | 'vrtalk_msg_navigation_result_ready' | 'vrtalk_msg_navigation_start' | 'vrtalk_msg_navigation_end' | 'vrtalk_msg_navigation_cancel';
|
|
14
|
+
export declare type PlayerComMessageType = 'vrtalk_msg_player_ready' | 'vrtalk_msg_player_status_update' | 'vrtalk_msg_component_update' | 'vrtalk_msg_component_on_click' | 'vrtalk_msg_component_controller_focus_update' | 'vrtalk_msg_component_transition_animation_finished' | 'vrtalk_msg_fov_shot_result' | 'vrtalk_msg_trimmer_update' | 'vrtalk_msg_trimmer_on_click' | 'vrtalk_msg_sticker_update' | 'vrtalk_msg_sticker_on_click' | 'vrtalk_msg_target_update' | 'vrtalk_msg_target_on_click' | 'vrtalk_msg_obstacle_update' | 'vrtalk_msg_obstacle_on_click' | 'vrtalk_msg_space_fence_update' | 'vrtalk_msg_space_fence_on_click' | 'vrtalk_msg_ray_hitter_update' | 'vrtalk_msg_ray_hitter_on_click' | 'vrtalk_msg_wormhole_update' | 'vrtalk_msg_wormhole_on_click' | 'vrtalk_msg_asset_label_update' | 'vrtalk_msg_asset_label_on_click' | 'vrtalk_msg_asset_point_mark_update' | 'vrtalk_msg_asset_point_mark_on_click' | 'vrtalk_msg_asset_volume_mark_update' | 'vrtalk_msg_asset_volume_mark_on_click' | 'vrtalk_msg_sweep_import_from_matterport' | 'vrtalk_msg_sweep_sync_matterport_enabled_state' | 'vrtalk_msg_sweep_request_modify_enabled' | 'vrtalk_msg_floor_import_from_matterport' | 'vrtalk_msg_floor_enter' | 'vrtalk_msg_floor_leave' | 'vrtalk_msg_camera_pose_update' | 'vrtalk_msg_camera_deeplink_params_ready' | 'vrtalk_msg_renderer_screenshot_ready' | 'vrtalk_msg_renderer_panorama_image_ready' | 'vrtalk_msg_renderer_world_size_ready' | 'vrtalk_msg_dolly_path_destination_captured' | 'vrtalk_msg_path_design_points_update' | 'vrtalk_msg_path_design_selection_update' | 'vrtalk_msg_path_design_bounds' | 'vrtalk_msg_path_design_stats' | 'vrtalk_msg_path_design_keyframes' | 'vrtalk_msg_path_design_pick_result' | 'vrtalk_msg_path_design_undo_request' | 'vrtalk_msg_path_design_preview_state' | 'vrtalk_msg_path_design_param_update' | 'vrtalk_msg_navigation_result_ready' | 'vrtalk_msg_navigation_start' | 'vrtalk_msg_navigation_end' | 'vrtalk_msg_navigation_cancel';
|
|
15
15
|
export declare class PlayerComMessageTypeDefine {
|
|
16
16
|
static readonly PLAYER_READY: PlayerComMessageType;
|
|
17
17
|
static readonly PLAYER_STATUS_UPDATE: PlayerComMessageType;
|
|
@@ -29,6 +29,8 @@ export declare class PlayerComMessageTypeDefine {
|
|
|
29
29
|
static readonly OBSTACLE_ON_CLICK: PlayerComMessageType;
|
|
30
30
|
static readonly SPACE_FENCE_UPDATE: PlayerComMessageType;
|
|
31
31
|
static readonly SPACE_FENCE_ON_CLICK: PlayerComMessageType;
|
|
32
|
+
static readonly RAY_HITTER_UPDATE: PlayerComMessageType;
|
|
33
|
+
static readonly RAY_HITTER_ON_CLICK: PlayerComMessageType;
|
|
32
34
|
static readonly WORMHOLE_UPDATE: PlayerComMessageType;
|
|
33
35
|
static readonly WORMHOLE_ON_CLICK: PlayerComMessageType;
|
|
34
36
|
static readonly ASSET_LABEL_UPDATE: PlayerComMessageType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PlayerComCommand, PlayerComCommandAssetLabel, PlayerComCommandAssetPointMark, PlayerComCommandAssetVolumeMark, PlayerComCommandAudio, PlayerComCommandCamera, PlayerComCommandComponent, PlayerComCommandCover, PlayerComCommandFloor, PlayerComCommandFov, PlayerComCommandInformation, PlayerComCommandInfoTemplate, PlayerComCommandLayer, PlayerComCommandLight, PlayerComCommandMarker, PlayerComCommandNavigation, PlayerComCommandObstacle, PlayerComCommandPlayer, PlayerComCommandRenderer, PlayerComCommandSpaceFence, PlayerComCommandSticker, PlayerComCommandTarget, PlayerComCommandTrimmer, PlayerComCommandType, PlayerComCommandUi, PlayerComCommandWormhole, PlayerComCommandMonitor, PlayerComCommandMessageCard, PlayerComCommandDollyPath, PlayerComCommandHamburgerMenu, PlayerComCommandPathDesign } from './com-command';
|
|
2
|
-
import { PlayerComMessageAssetLabel, PlayerComMessageAssetPointMark, PlayerComMessageAssetVolumeMark, PlayerComMessageCamera, PlayerComMessageComponent, PlayerComMessageFloor, PlayerComMessageFov, PlayerComMessageNavigation, PlayerComMessageObstacle, PlayerComMessagePlayer, PlayerComMessageRenderer, PlayerComMessageSpaceFence, PlayerComMessageSticker, PlayerComMessageSweep, PlayerComMessageTarget, PlayerComMessageTrimmer, PlayerComMessageWormhole, PlayerComMessageDollyPath, PlayerComMessagePathDesign } from './com-message';
|
|
1
|
+
import { PlayerComCommand, PlayerComCommandAssetLabel, PlayerComCommandAssetPointMark, PlayerComCommandAssetVolumeMark, PlayerComCommandAudio, PlayerComCommandCamera, PlayerComCommandComponent, PlayerComCommandCover, PlayerComCommandFloor, PlayerComCommandFov, PlayerComCommandInformation, PlayerComCommandInfoTemplate, PlayerComCommandLayer, PlayerComCommandLight, PlayerComCommandMarker, PlayerComCommandNavigation, PlayerComCommandObstacle, PlayerComCommandPlayer, PlayerComCommandRayHitter, PlayerComCommandRenderer, PlayerComCommandSpaceFence, PlayerComCommandSticker, PlayerComCommandTarget, PlayerComCommandTrimmer, PlayerComCommandType, PlayerComCommandUi, PlayerComCommandWormhole, PlayerComCommandMonitor, PlayerComCommandMessageCard, PlayerComCommandDollyPath, PlayerComCommandHamburgerMenu, PlayerComCommandPathDesign } from './com-command';
|
|
2
|
+
import { PlayerComMessageAssetLabel, PlayerComMessageAssetPointMark, PlayerComMessageAssetVolumeMark, PlayerComMessageCamera, PlayerComMessageComponent, PlayerComMessageFloor, PlayerComMessageFov, PlayerComMessageNavigation, PlayerComMessageObstacle, PlayerComMessagePlayer, PlayerComMessageRayHitter, PlayerComMessageRenderer, PlayerComMessageSpaceFence, PlayerComMessageSticker, PlayerComMessageSweep, PlayerComMessageTarget, PlayerComMessageTrimmer, PlayerComMessageWormhole, PlayerComMessageDollyPath, PlayerComMessagePathDesign } from './com-message';
|
|
3
3
|
import { PlayerComCommandSweep } from './com-command/player-com-command-sweep';
|
|
4
4
|
/**
|
|
5
5
|
* Player控制器
|
|
@@ -31,6 +31,7 @@ export declare class PlayerController {
|
|
|
31
31
|
static commandAssetVolumeMark: PlayerComCommandAssetVolumeMark;
|
|
32
32
|
static commandTarget: PlayerComCommandTarget;
|
|
33
33
|
static commandWormhole: PlayerComCommandWormhole;
|
|
34
|
+
static commandRayHitter: PlayerComCommandRayHitter;
|
|
34
35
|
static commandSpaceFence: PlayerComCommandSpaceFence;
|
|
35
36
|
static commandMonitor: PlayerComCommandMonitor;
|
|
36
37
|
static commandMessageCard: PlayerComCommandMessageCard;
|
|
@@ -53,6 +54,7 @@ export declare class PlayerController {
|
|
|
53
54
|
static messageAssetVolumeMark: PlayerComMessageAssetVolumeMark;
|
|
54
55
|
static messageTarget: PlayerComMessageTarget;
|
|
55
56
|
static messageWormhole: PlayerComMessageWormhole;
|
|
57
|
+
static messageRayHitter: PlayerComMessageRayHitter;
|
|
56
58
|
static messageSpaceFence: PlayerComMessageSpaceFence;
|
|
57
59
|
static messageDollyPath: PlayerComMessageDollyPath;
|
|
58
60
|
static messagePathDesign: PlayerComMessagePathDesign;
|