vrtalk-web-sdk 0.1.514 → 0.1.516
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/model/general/free-button.d.ts +2 -1
- package/dist/src/model/vr/index.d.ts +1 -0
- package/dist/src/model/vr/popup-user-form-icons.d.ts +20 -0
- package/dist/src/model/vr/vr-action.d.ts +264 -8
- package/dist/src/model/vr/vr-flow.d.ts +3 -0
- package/dist/src/model/vr/vr-player-settings.d.ts +1 -0
- package/dist/src/model/vr/vr-signal.d.ts +2 -0
- package/dist/src/model/vr/vr-sticker.d.ts +1 -0
- package/dist/src/model/vr/xr-ability.d.ts +2 -0
- package/dist/src/model/vr/xr-background-thread.d.ts +2 -1
- package/dist/src/model/vr/xr-logic.d.ts +72 -3
- package/dist/src/model/vr/xr-monitor.d.ts +1 -0
- package/dist/src/model/vr/xr-prepare.d.ts +4 -1
- package/dist/src/model/vr/xr-space-fence.d.ts +2 -0
- package/dist/src/model/vr-component/vr-component-data.d.ts +2 -0
- package/dist/vrtalk-web-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VRTalkBaseData } from './vrtalk-base-data';
|
|
2
|
-
import { XrAnyAction } from '@/model';
|
|
2
|
+
import { XrAnyAction, XrVariable } from '@/model';
|
|
3
3
|
/**
|
|
4
4
|
* 自由按钮,在其他组件中动态创建出来的按钮
|
|
5
5
|
* 样式跟随当时的场景决定,该模型只定义按钮信息和对应的触发器
|
|
@@ -11,4 +11,5 @@ export declare class FreeButton extends VRTalkBaseData {
|
|
|
11
11
|
textColor: import("@/model").Color;
|
|
12
12
|
additionalData: {};
|
|
13
13
|
clickActionList: XrAnyAction[];
|
|
14
|
+
localVariableList: XrVariable[];
|
|
14
15
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PopupUserForm 内置 SVG path 字典
|
|
3
|
+
* 跨端共享:vrtalk-player 和 vrtalk-app-unity-ui 都从这里读 path,避免 path 维护两份漂移
|
|
4
|
+
*
|
|
5
|
+
* 所有 path 都基于 viewBox="0 0 24 24",按"实心填充"风格设计(fill 即可,不需要描边)
|
|
6
|
+
*/
|
|
7
|
+
export declare type PopupUserFormStarIconKey = 'star' | 'heart' | 'thumb' | 'like' | 'fire' | 'crown' | 'flower';
|
|
8
|
+
export declare const PopupUserFormStarIconPaths: Record<PopupUserFormStarIconKey, string>;
|
|
9
|
+
export declare const PopupUserFormStarIconKeyList: PopupUserFormStarIconKey[];
|
|
10
|
+
export declare class PopupUserFormStarIconKeyDefine {
|
|
11
|
+
static readonly STAR: PopupUserFormStarIconKey;
|
|
12
|
+
static readonly HEART: PopupUserFormStarIconKey;
|
|
13
|
+
static readonly THUMB: PopupUserFormStarIconKey;
|
|
14
|
+
static readonly LIKE: PopupUserFormStarIconKey;
|
|
15
|
+
static readonly FIRE: PopupUserFormStarIconKey;
|
|
16
|
+
static readonly CROWN: PopupUserFormStarIconKey;
|
|
17
|
+
static readonly FLOWER: PopupUserFormStarIconKey;
|
|
18
|
+
}
|
|
19
|
+
export declare const POPUP_USER_FORM_DEFAULT_STAR_ACTIVE_COLOR = "#FFB800";
|
|
20
|
+
export declare const POPUP_USER_FORM_DEFAULT_STAR_INACTIVE_COLOR = "#E0E0E0";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type MediaLoopMode, Vector2, Vector3, VrCameraMoveTransitionType } from '../general';
|
|
1
|
+
import { Color, type MediaLoopMode, Vector2, Vector3, VrCameraMoveTransitionType } from '../general';
|
|
2
2
|
import { VrComponent2dDeformationSettings } from '../vr-component/vr-component-data';
|
|
3
|
+
import { XrTypedValue, XrVariableScopeType, XrVariableTarget } from './xr-logic';
|
|
3
4
|
export declare type XrActionCategory = 'basic' | 'condition' | 'count_loop' | 'expression_loop';
|
|
4
5
|
export declare class XrActionCategoryDefine {
|
|
5
6
|
static readonly BASIC: XrActionCategory;
|
|
@@ -30,6 +31,7 @@ export declare class XrConditionAction {
|
|
|
30
31
|
export declare class XrCountLoopAction {
|
|
31
32
|
actionCategory: XrActionCategory;
|
|
32
33
|
loopCount: number;
|
|
34
|
+
loopCountRef?: XrTypedValue<number>;
|
|
33
35
|
actionList: XrAnyAction[];
|
|
34
36
|
}
|
|
35
37
|
export declare type XrExpressionLoopActionCheckExpressionPosition = 'before_action' | 'after_action';
|
|
@@ -43,7 +45,7 @@ export declare class XrExpressionLoopAction {
|
|
|
43
45
|
checkExpressionPosition: XrExpressionLoopActionCheckExpressionPosition;
|
|
44
46
|
actionList: XrAnyAction[];
|
|
45
47
|
}
|
|
46
|
-
export declare type VrActionType = 'system_common_wait' | 'system_set_interactive_state' | '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_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_player_change_display_mode' | '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' | 'monitor_change_enabled' | 'monitor_switch_active_tab' | 'layer_change_visibility' | 'message_card_change_show_state' | 'tts_play_voice' | 'tts_realtime_stream' | 'background_thread_start' | 'background_thread_pause' | 'background_thread_stop' | 'ai_agent_activate' | 'ai_agent_hide' | 'ai_agent_trigger_monologue' | 'ai_agent_trigger_conversation' | 'ability_enable' | 'ability_stop' | 'cloud_form_show_dialog' | 'cloud_form_collect_field' | 'cloud_form_submit' | 'cloud_form_reset' | 'hit_analytics_event';
|
|
48
|
+
export declare type VrActionType = 'system_common_wait' | 'system_set_interactive_state' | '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_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_player_change_display_mode' | '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' | 'monitor_change_enabled' | 'monitor_switch_active_tab' | 'monitor_component_change_visibility' | 'layer_change_visibility' | 'message_card_change_show_state' | 'tts_play_voice' | 'tts_realtime_stream' | 'background_thread_start' | 'background_thread_pause' | 'background_thread_stop' | 'ai_agent_activate' | 'ai_agent_hide' | 'ai_agent_trigger_monologue' | 'ai_agent_trigger_conversation' | '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';
|
|
47
49
|
export declare class VrActionTypeDefine {
|
|
48
50
|
static readonly SYSTEM_COMMON_WAIT: VrActionType;
|
|
49
51
|
static readonly COMPONENT_GENERAL_CHANGE_VISIBILITY: VrActionType;
|
|
@@ -92,6 +94,7 @@ export declare class VrActionTypeDefine {
|
|
|
92
94
|
static readonly FLOW_EXIT: VrActionType;
|
|
93
95
|
static readonly MONITOR_CHANGE_ENABLED: VrActionType;
|
|
94
96
|
static readonly MONITOR_SWITCH_ACTIVE_TAB: VrActionType;
|
|
97
|
+
static readonly MONITOR_COMPONENT_CHANGE_VISIBILITY: VrActionType;
|
|
95
98
|
static readonly LAYER_CHANGE_VISIBILITY: VrActionType;
|
|
96
99
|
static readonly MESSAGE_CARD_CHANGE_SHOW_STATE: VrActionType;
|
|
97
100
|
static readonly TTS_PLAY_VOICE: VrActionType;
|
|
@@ -112,12 +115,25 @@ export declare class VrActionTypeDefine {
|
|
|
112
115
|
static readonly CLOUD_FORM_SUBMIT: VrActionType;
|
|
113
116
|
static readonly CLOUD_FORM_RESET: VrActionType;
|
|
114
117
|
static readonly HIT_ANALYTICS_EVENT: VrActionType;
|
|
118
|
+
static readonly POPUP_USER_FORM_SHOW_DIALOG: VrActionType;
|
|
119
|
+
static readonly LOGIC_RANDOM_NUMBER: VrActionType;
|
|
120
|
+
static readonly LOGIC_RANDOM_COLOR: VrActionType;
|
|
121
|
+
static readonly LOGIC_CURRENT_TIME: VrActionType;
|
|
122
|
+
static readonly LOGIC_RANDOM_PICK_STRING: VrActionType;
|
|
123
|
+
static readonly LOGIC_RANDOM_PICK_NUMBER: VrActionType;
|
|
124
|
+
static readonly LOGIC_RANDOM_PICK_BOOLEAN: VrActionType;
|
|
125
|
+
static readonly LOGIC_RANDOM_PICK_ENUM: VrActionType;
|
|
126
|
+
static readonly LOGIC_RANDOM_PICK_COLOR: VrActionType;
|
|
127
|
+
static readonly LOGIC_RANDOM_PICK_CSS_COLOR: VrActionType;
|
|
115
128
|
}
|
|
116
129
|
export declare class VrActionParamsAbilityEnable {
|
|
117
130
|
abilityId: string;
|
|
118
131
|
contextVariableOverrides: {
|
|
119
132
|
[key: string]: string | number | boolean;
|
|
120
133
|
};
|
|
134
|
+
contextVariableOverrideRefs?: {
|
|
135
|
+
[key: string]: XrTypedValue<string | number | boolean>;
|
|
136
|
+
};
|
|
121
137
|
}
|
|
122
138
|
export declare class VrActionParamsAbilityStop {
|
|
123
139
|
abilityId: string;
|
|
@@ -126,15 +142,20 @@ export declare class VrActionParams {
|
|
|
126
142
|
}
|
|
127
143
|
export declare class VrActionParamsSystemCommonWait {
|
|
128
144
|
duration: number;
|
|
145
|
+
durationRef?: XrTypedValue<number>;
|
|
129
146
|
}
|
|
130
147
|
export declare class VrActionParamsComponentGeneralChangeVisibility {
|
|
131
148
|
componentIdList: string[];
|
|
132
149
|
visibilityState: boolean;
|
|
150
|
+
visibilityStateRef?: XrTypedValue<boolean>;
|
|
133
151
|
}
|
|
134
152
|
export declare class VrActionParamsComponentGeneralChangeTransform {
|
|
135
153
|
componentId: string;
|
|
136
154
|
changeType: 'translate' | 'rotate' | 'scale';
|
|
137
155
|
value: Vector3;
|
|
156
|
+
valueXRef?: XrTypedValue<number>;
|
|
157
|
+
valueYRef?: XrTypedValue<number>;
|
|
158
|
+
valueZRef?: XrTypedValue<number>;
|
|
138
159
|
}
|
|
139
160
|
export declare class VrActionParamsComponentGeneralOperateTransitionAnimation {
|
|
140
161
|
componentId: string;
|
|
@@ -159,22 +180,30 @@ export declare class VrActionParams2dVideoChangeSource {
|
|
|
159
180
|
changeType: 'next' | 'prev' | 'specific';
|
|
160
181
|
sourceId: string;
|
|
161
182
|
autoPlay: boolean;
|
|
183
|
+
autoPlayRef?: XrTypedValue<boolean>;
|
|
162
184
|
forceUnmute: boolean;
|
|
185
|
+
forceUnmuteRef?: XrTypedValue<boolean>;
|
|
163
186
|
}
|
|
164
187
|
export declare class VrActionParams2dVideoChangePlayState {
|
|
165
188
|
componentId: string;
|
|
166
189
|
play: boolean;
|
|
190
|
+
playRef?: XrTypedValue<boolean>;
|
|
167
191
|
}
|
|
168
192
|
export declare class VrActionParams2dVideoChangeMuteState {
|
|
169
193
|
componentId: string;
|
|
170
194
|
mute: boolean;
|
|
195
|
+
muteRef?: XrTypedValue<boolean>;
|
|
171
196
|
}
|
|
172
197
|
export declare class VrActionParams3dBoxChangeColor {
|
|
173
198
|
componentId: string;
|
|
174
|
-
faceColor:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
199
|
+
faceColor: Color;
|
|
200
|
+
faceColorRef?: XrTypedValue<Color>;
|
|
201
|
+
borderColor: Color;
|
|
202
|
+
borderColorRef?: XrTypedValue<Color>;
|
|
203
|
+
hoverFaceColor: Color;
|
|
204
|
+
hoverFaceColorRef?: XrTypedValue<Color>;
|
|
205
|
+
hoverBorderColor: Color;
|
|
206
|
+
hoverBorderColorRef?: XrTypedValue<Color>;
|
|
178
207
|
}
|
|
179
208
|
export declare class VrActionParams2dPanelChangeScene {
|
|
180
209
|
componentId: string;
|
|
@@ -185,6 +214,7 @@ export declare class VrActionParams2dPanelButtonChangeEnabled {
|
|
|
185
214
|
sceneId: string;
|
|
186
215
|
buttonId: string;
|
|
187
216
|
enabled: boolean;
|
|
217
|
+
enabledRef?: XrTypedValue<boolean>;
|
|
188
218
|
}
|
|
189
219
|
export declare class VrActionParamsComponentGeneralAudioSourcePlayControl {
|
|
190
220
|
componentId: string;
|
|
@@ -222,7 +252,7 @@ export declare class VrActionParamsNavigationStart {
|
|
|
222
252
|
navigationMode: import("./vr-navigation").VrNavigationMode;
|
|
223
253
|
autoRecalculate: boolean;
|
|
224
254
|
autoRecalculateDistanceThreshold: number;
|
|
225
|
-
pathColor:
|
|
255
|
+
pathColor: Color;
|
|
226
256
|
}
|
|
227
257
|
export declare class VrActionParamsCameraMoveTo {
|
|
228
258
|
destinationType: 'sweep' | 'vr_fov' | 'component' | 'fov_link';
|
|
@@ -235,6 +265,7 @@ export declare class VrActionParamsCameraMoveTo {
|
|
|
235
265
|
sweepId: string;
|
|
236
266
|
transitionType: VrCameraMoveTransitionType;
|
|
237
267
|
transitionTime: number;
|
|
268
|
+
transitionTimeRef?: XrTypedValue<number>;
|
|
238
269
|
}
|
|
239
270
|
export declare class VrActionParamsCameraDollyMove {
|
|
240
271
|
dollyPathId: string;
|
|
@@ -244,6 +275,7 @@ export declare class VrActionParamsCameraDollyStop {
|
|
|
244
275
|
export declare class VrActionParamsSweepChangeEnabled {
|
|
245
276
|
sweepIdList: string[];
|
|
246
277
|
enabled: boolean;
|
|
278
|
+
enabledRef?: XrTypedValue<boolean>;
|
|
247
279
|
mode: 'set' | 'only_enable';
|
|
248
280
|
}
|
|
249
281
|
export declare class VrActionParamsSweepChangePanorama {
|
|
@@ -253,6 +285,7 @@ export declare class VrActionParamsSweepChangePanorama {
|
|
|
253
285
|
export declare class VrActionParamsSweepMarkerChangeEnabled {
|
|
254
286
|
markerIdList: string[];
|
|
255
287
|
enabled: boolean;
|
|
288
|
+
enabledRef?: XrTypedValue<boolean>;
|
|
256
289
|
mode: 'set' | 'only_enable';
|
|
257
290
|
}
|
|
258
291
|
export declare class VrActionParamsSweepResetToDefault {
|
|
@@ -265,31 +298,43 @@ export declare class VrActionParamsInformationContentCardShow {
|
|
|
265
298
|
}
|
|
266
299
|
export declare class VrActionParamsInformationLinkOpen {
|
|
267
300
|
url: string;
|
|
301
|
+
urlRef?: XrTypedValue<string>;
|
|
268
302
|
isOpenWithExternal: boolean;
|
|
303
|
+
isOpenWithExternalRef?: XrTypedValue<boolean>;
|
|
269
304
|
}
|
|
270
305
|
export declare class VrActionParamsLogicVariableModify {
|
|
271
306
|
variableKey: string;
|
|
272
|
-
|
|
307
|
+
variableScope?: XrVariableScopeType;
|
|
308
|
+
value: string | number | boolean | Color;
|
|
309
|
+
valueRef?: XrTypedValue<string | number | boolean | Color>;
|
|
273
310
|
}
|
|
274
311
|
export declare class VrActionParamsLogicVariableNumberAdd {
|
|
275
312
|
variableKey: string;
|
|
313
|
+
variableScope?: XrVariableScopeType;
|
|
276
314
|
value: number;
|
|
315
|
+
valueRef?: XrTypedValue<number>;
|
|
277
316
|
}
|
|
278
317
|
export declare class VrActionParamsLogicVariableStringAppend {
|
|
279
318
|
variableKey: string;
|
|
319
|
+
variableScope?: XrVariableScopeType;
|
|
280
320
|
sourceType: 'fixed' | 'variable';
|
|
281
321
|
content: string;
|
|
322
|
+
contentRef?: XrTypedValue<string>;
|
|
282
323
|
}
|
|
283
324
|
export declare class VrActionParamsLogicVariableStringTrimEnd {
|
|
284
325
|
variableKey: string;
|
|
326
|
+
variableScope?: XrVariableScopeType;
|
|
285
327
|
length: number;
|
|
328
|
+
lengthRef?: XrTypedValue<number>;
|
|
286
329
|
}
|
|
287
330
|
export declare class VrActionParamsLogicVariableStringAdvanced {
|
|
288
331
|
variableKey: string;
|
|
332
|
+
variableScope?: XrVariableScopeType;
|
|
289
333
|
expression: string;
|
|
290
334
|
}
|
|
291
335
|
export declare class VrActionParamsLogicVariableBooleanToggle {
|
|
292
336
|
variableKey: string;
|
|
337
|
+
variableScope?: XrVariableScopeType;
|
|
293
338
|
}
|
|
294
339
|
export declare class VrActionParamsFlowEnter {
|
|
295
340
|
flowId: string;
|
|
@@ -300,17 +345,26 @@ export declare class VrActionParamsFlowExit {
|
|
|
300
345
|
export declare class VrActionParamsMonitorChangeEnabled {
|
|
301
346
|
monitorId: string;
|
|
302
347
|
enabled: boolean;
|
|
348
|
+
enabledRef?: XrTypedValue<boolean>;
|
|
303
349
|
}
|
|
304
350
|
export declare class VrActionParamsMonitorSwitchActiveTab {
|
|
305
351
|
tabId: string;
|
|
306
352
|
}
|
|
353
|
+
export declare class VrActionParamsMonitorComponentChangeVisibility {
|
|
354
|
+
monitorId: string;
|
|
355
|
+
componentIdList: string[];
|
|
356
|
+
visible: boolean;
|
|
357
|
+
visibleRef?: XrTypedValue<boolean>;
|
|
358
|
+
}
|
|
307
359
|
export declare class VrActionParamsLayerChangeVisibility {
|
|
308
360
|
layerIdList: string[];
|
|
309
361
|
visible: boolean;
|
|
362
|
+
visibleRef?: XrTypedValue<boolean>;
|
|
310
363
|
}
|
|
311
364
|
export declare class VrActionParamsMessageCardChangeShowState {
|
|
312
365
|
messageCardIdList: string[];
|
|
313
366
|
showState: boolean;
|
|
367
|
+
showStateRef?: XrTypedValue<boolean>;
|
|
314
368
|
}
|
|
315
369
|
export declare type TtsTextMode = 'simple' | 'expression';
|
|
316
370
|
export declare class TtsTextModeDefine {
|
|
@@ -321,6 +375,7 @@ export declare class VrActionParamsTtsPlayVoice {
|
|
|
321
375
|
voiceId: string;
|
|
322
376
|
textMode: TtsTextMode;
|
|
323
377
|
text: string;
|
|
378
|
+
textRef?: XrTypedValue<string>;
|
|
324
379
|
textExpression: string;
|
|
325
380
|
showSubtitle: boolean;
|
|
326
381
|
waitForComplete: boolean;
|
|
@@ -332,6 +387,7 @@ export declare class VrActionParamsTtsRealtimeStream {
|
|
|
332
387
|
voiceId: string;
|
|
333
388
|
textMode: TtsTextMode;
|
|
334
389
|
text: string;
|
|
390
|
+
textRef?: XrTypedValue<string>;
|
|
335
391
|
textExpression: string;
|
|
336
392
|
showSubtitle: boolean;
|
|
337
393
|
waitForComplete: boolean;
|
|
@@ -356,9 +412,11 @@ export declare class VrActionParamsAiAgentTriggerConversation {
|
|
|
356
412
|
}
|
|
357
413
|
export declare class VrActionParamsSystemSetInteractiveState {
|
|
358
414
|
interactive: boolean;
|
|
415
|
+
interactiveRef?: XrTypedValue<boolean>;
|
|
359
416
|
}
|
|
360
417
|
export declare class VrActionParamsAudioCenterSetVolume {
|
|
361
418
|
volume: number;
|
|
419
|
+
volumeRef?: XrTypedValue<number>;
|
|
362
420
|
}
|
|
363
421
|
export declare type VrActionCloudFormValueMode = 'LITERAL' | 'EXPRESSION';
|
|
364
422
|
export declare class VrActionCloudFormValueModeDefine {
|
|
@@ -396,9 +454,207 @@ export declare class VrActionHitAnalyticsEventFieldBinding {
|
|
|
396
454
|
valueMode: VrActionAnalyticsValueMode;
|
|
397
455
|
literalValue: string | number | boolean | null;
|
|
398
456
|
variableKey: string;
|
|
457
|
+
variableScope?: XrVariableScopeType;
|
|
399
458
|
expression: string;
|
|
400
459
|
}
|
|
401
460
|
export declare class VrActionParamsHitAnalyticsEvent {
|
|
402
461
|
analyticsEventDataKey: string;
|
|
403
462
|
fieldBindings: VrActionHitAnalyticsEventFieldBinding[];
|
|
404
463
|
}
|
|
464
|
+
export declare type PopupUserFormDataType = 'string' | 'number' | 'boolean' | 'enum';
|
|
465
|
+
export declare class PopupUserFormDataTypeDefine {
|
|
466
|
+
static readonly STRING: PopupUserFormDataType;
|
|
467
|
+
static readonly NUMBER: PopupUserFormDataType;
|
|
468
|
+
static readonly BOOLEAN: PopupUserFormDataType;
|
|
469
|
+
static readonly ENUM: PopupUserFormDataType;
|
|
470
|
+
}
|
|
471
|
+
export declare type PopupUserFormControlVariant = 'number_input' | 'number_slider' | 'number_slider_vertical' | 'number_stepper' | 'number_star_rating' | 'number_segment' | 'number_emoji_scale' | 'number_dial' | 'number_progress_tap' | 'number_chip_tile' | 'string_input' | 'string_textarea' | 'string_select' | 'string_autocomplete' | 'string_segment' | 'string_radio' | 'string_tag' | 'string_card_grid' | 'string_avatar_list' | 'string_color_swatch' | 'boolean_switch' | 'boolean_checkbox' | 'boolean_segment' | 'boolean_thumb' | 'boolean_card_pair';
|
|
472
|
+
export declare class PopupUserFormControlVariantDefine {
|
|
473
|
+
static readonly NUMBER_INPUT: PopupUserFormControlVariant;
|
|
474
|
+
static readonly NUMBER_SLIDER: PopupUserFormControlVariant;
|
|
475
|
+
static readonly NUMBER_SLIDER_VERTICAL: PopupUserFormControlVariant;
|
|
476
|
+
static readonly NUMBER_STEPPER: PopupUserFormControlVariant;
|
|
477
|
+
static readonly NUMBER_STAR_RATING: PopupUserFormControlVariant;
|
|
478
|
+
static readonly NUMBER_SEGMENT: PopupUserFormControlVariant;
|
|
479
|
+
static readonly NUMBER_EMOJI_SCALE: PopupUserFormControlVariant;
|
|
480
|
+
static readonly NUMBER_DIAL: PopupUserFormControlVariant;
|
|
481
|
+
static readonly NUMBER_PROGRESS_TAP: PopupUserFormControlVariant;
|
|
482
|
+
static readonly NUMBER_CHIP_TILE: PopupUserFormControlVariant;
|
|
483
|
+
static readonly STRING_INPUT: PopupUserFormControlVariant;
|
|
484
|
+
static readonly STRING_TEXTAREA: PopupUserFormControlVariant;
|
|
485
|
+
static readonly STRING_SELECT: PopupUserFormControlVariant;
|
|
486
|
+
static readonly STRING_AUTOCOMPLETE: PopupUserFormControlVariant;
|
|
487
|
+
static readonly STRING_SEGMENT: PopupUserFormControlVariant;
|
|
488
|
+
static readonly STRING_RADIO: PopupUserFormControlVariant;
|
|
489
|
+
static readonly STRING_TAG: PopupUserFormControlVariant;
|
|
490
|
+
static readonly STRING_CARD_GRID: PopupUserFormControlVariant;
|
|
491
|
+
static readonly STRING_AVATAR_LIST: PopupUserFormControlVariant;
|
|
492
|
+
static readonly STRING_COLOR_SWATCH: PopupUserFormControlVariant;
|
|
493
|
+
static readonly BOOLEAN_SWITCH: PopupUserFormControlVariant;
|
|
494
|
+
static readonly BOOLEAN_CHECKBOX: PopupUserFormControlVariant;
|
|
495
|
+
static readonly BOOLEAN_SEGMENT: PopupUserFormControlVariant;
|
|
496
|
+
static readonly BOOLEAN_THUMB: PopupUserFormControlVariant;
|
|
497
|
+
static readonly BOOLEAN_CARD_PAIR: PopupUserFormControlVariant;
|
|
498
|
+
}
|
|
499
|
+
export declare class PopupUserFormDataTypeDefaultVariant {
|
|
500
|
+
static getDefault(dataType: PopupUserFormDataType): PopupUserFormControlVariant;
|
|
501
|
+
}
|
|
502
|
+
export declare class PopupUserFormOption {
|
|
503
|
+
label: string;
|
|
504
|
+
value: string | number;
|
|
505
|
+
iconUrl: string;
|
|
506
|
+
imageUrl: string;
|
|
507
|
+
description: string;
|
|
508
|
+
badge: string;
|
|
509
|
+
color: string;
|
|
510
|
+
disabled: boolean;
|
|
511
|
+
}
|
|
512
|
+
export declare class PopupUserFormControlConfig {
|
|
513
|
+
variant: PopupUserFormControlVariant;
|
|
514
|
+
min: number | null;
|
|
515
|
+
max: number | null;
|
|
516
|
+
step: number | null;
|
|
517
|
+
precision: number | null;
|
|
518
|
+
sliderShowTicks: boolean;
|
|
519
|
+
sliderActiveColor: string;
|
|
520
|
+
sliderTrackColor: string;
|
|
521
|
+
sliderShowTooltip: boolean;
|
|
522
|
+
starCount: number;
|
|
523
|
+
starAllowHalf: boolean;
|
|
524
|
+
starIcon: 'star' | 'heart' | 'thumb' | 'like' | 'fire' | 'crown' | 'flower' | 'custom';
|
|
525
|
+
starCustomIconUrl: string;
|
|
526
|
+
starActiveColor: string;
|
|
527
|
+
starInactiveColor: string;
|
|
528
|
+
starSize: number;
|
|
529
|
+
starShowValueLabel: boolean;
|
|
530
|
+
emojiScaleEmojis: string[];
|
|
531
|
+
emojiScaleSize: number;
|
|
532
|
+
emojiScaleAnimateOnSelect: boolean;
|
|
533
|
+
dialSize: number;
|
|
534
|
+
dialActiveColor: string;
|
|
535
|
+
dialShowValueInCenter: boolean;
|
|
536
|
+
dialStartAngle: number;
|
|
537
|
+
progressTapHeight: number;
|
|
538
|
+
progressTapGradientFrom: string;
|
|
539
|
+
progressTapGradientTo: string;
|
|
540
|
+
progressTapShowMarks: boolean;
|
|
541
|
+
chipTileSize: number;
|
|
542
|
+
chipTileColumns: number;
|
|
543
|
+
chipTileActiveColor: string;
|
|
544
|
+
options: PopupUserFormOption[];
|
|
545
|
+
textareaRows: number;
|
|
546
|
+
textareaMaxLength: number | null;
|
|
547
|
+
textareaShowCount: boolean;
|
|
548
|
+
tagMode: 'pill' | 'card';
|
|
549
|
+
cardGridColumns: number;
|
|
550
|
+
cardGridImageRatio: '1:1' | '4:3' | '16:9';
|
|
551
|
+
cardGridShowDescription: boolean;
|
|
552
|
+
avatarListShowSubtitle: boolean;
|
|
553
|
+
avatarListSize: number;
|
|
554
|
+
colorSwatchSize: number;
|
|
555
|
+
colorSwatchShape: 'square' | 'circle';
|
|
556
|
+
colorSwatchColumns: number;
|
|
557
|
+
booleanTrueLabel: string;
|
|
558
|
+
booleanFalseLabel: string;
|
|
559
|
+
booleanTrueIconUrl: string;
|
|
560
|
+
booleanFalseIconUrl: string;
|
|
561
|
+
booleanTrueColor: string;
|
|
562
|
+
booleanFalseColor: string;
|
|
563
|
+
borderRadius: number | null;
|
|
564
|
+
accentColor: string;
|
|
565
|
+
}
|
|
566
|
+
export declare type PopupUserFormTargetType = 'variable' | 'cloud_form_field' | 'analytics_event_field';
|
|
567
|
+
export declare class PopupUserFormTargetTypeDefine {
|
|
568
|
+
static readonly VARIABLE: PopupUserFormTargetType;
|
|
569
|
+
static readonly CLOUD_FORM_FIELD: PopupUserFormTargetType;
|
|
570
|
+
static readonly ANALYTICS_EVENT_FIELD: PopupUserFormTargetType;
|
|
571
|
+
}
|
|
572
|
+
export declare class PopupUserFormTarget {
|
|
573
|
+
type: PopupUserFormTargetType;
|
|
574
|
+
variableKey: string;
|
|
575
|
+
cloudFormDataKey: string;
|
|
576
|
+
fieldDataKey: string;
|
|
577
|
+
analyticsEventDataKey: string;
|
|
578
|
+
fieldKey: string;
|
|
579
|
+
}
|
|
580
|
+
export declare class PopupUserFormField {
|
|
581
|
+
fieldKey: string;
|
|
582
|
+
label: string;
|
|
583
|
+
description: string;
|
|
584
|
+
placeholder: string;
|
|
585
|
+
required: boolean;
|
|
586
|
+
dataType: PopupUserFormDataType;
|
|
587
|
+
defaultValue: string | number | boolean | null;
|
|
588
|
+
control: PopupUserFormControlConfig;
|
|
589
|
+
targets: PopupUserFormTarget[];
|
|
590
|
+
}
|
|
591
|
+
export declare class VrActionParamsPopupUserFormShowDialog {
|
|
592
|
+
title: string;
|
|
593
|
+
description: string;
|
|
594
|
+
submitButtonText: string;
|
|
595
|
+
cancelButtonText: string;
|
|
596
|
+
showCancelButton: boolean;
|
|
597
|
+
blockInteraction: boolean;
|
|
598
|
+
closeOnOverlayClick: boolean;
|
|
599
|
+
synchronous: boolean;
|
|
600
|
+
fields: PopupUserFormField[];
|
|
601
|
+
onSubmitSuccessActions: XrAnyAction[];
|
|
602
|
+
onCancelActions: XrAnyAction[];
|
|
603
|
+
}
|
|
604
|
+
export declare class VrActionParamsLogicRandomNumber {
|
|
605
|
+
target: XrVariableTarget;
|
|
606
|
+
min: number;
|
|
607
|
+
max: number;
|
|
608
|
+
integerOnly: boolean;
|
|
609
|
+
}
|
|
610
|
+
export declare type LogicRandomColorPalette = 'random' | 'cool' | 'warm' | 'pastel' | 'vivid' | 'gray';
|
|
611
|
+
export declare class LogicRandomColorPaletteDefine {
|
|
612
|
+
static readonly RANDOM: LogicRandomColorPalette;
|
|
613
|
+
static readonly COOL: LogicRandomColorPalette;
|
|
614
|
+
static readonly WARM: LogicRandomColorPalette;
|
|
615
|
+
static readonly PASTEL: LogicRandomColorPalette;
|
|
616
|
+
static readonly VIVID: LogicRandomColorPalette;
|
|
617
|
+
static readonly GRAY: LogicRandomColorPalette;
|
|
618
|
+
}
|
|
619
|
+
export declare class VrActionParamsLogicRandomColor {
|
|
620
|
+
target: XrVariableTarget;
|
|
621
|
+
palette: LogicRandomColorPalette;
|
|
622
|
+
randomAlpha: boolean;
|
|
623
|
+
fixedAlpha: number;
|
|
624
|
+
}
|
|
625
|
+
export declare type LogicCurrentTimeOutputType = 'iso' | 'unix_ms' | 'unix_s' | 'date_string' | 'time_string';
|
|
626
|
+
export declare class LogicCurrentTimeOutputTypeDefine {
|
|
627
|
+
static readonly ISO: LogicCurrentTimeOutputType;
|
|
628
|
+
static readonly UNIX_MS: LogicCurrentTimeOutputType;
|
|
629
|
+
static readonly UNIX_S: LogicCurrentTimeOutputType;
|
|
630
|
+
static readonly DATE_STRING: LogicCurrentTimeOutputType;
|
|
631
|
+
static readonly TIME_STRING: LogicCurrentTimeOutputType;
|
|
632
|
+
}
|
|
633
|
+
export declare class VrActionParamsLogicCurrentTime {
|
|
634
|
+
target: XrVariableTarget;
|
|
635
|
+
outputType: LogicCurrentTimeOutputType;
|
|
636
|
+
}
|
|
637
|
+
export declare class VrActionParamsLogicRandomPickString {
|
|
638
|
+
target: XrVariableTarget;
|
|
639
|
+
candidates: XrTypedValue<string>[];
|
|
640
|
+
}
|
|
641
|
+
export declare class VrActionParamsLogicRandomPickNumber {
|
|
642
|
+
target: XrVariableTarget;
|
|
643
|
+
candidates: XrTypedValue<number>[];
|
|
644
|
+
}
|
|
645
|
+
export declare class VrActionParamsLogicRandomPickBoolean {
|
|
646
|
+
target: XrVariableTarget;
|
|
647
|
+
candidates: XrTypedValue<boolean>[];
|
|
648
|
+
}
|
|
649
|
+
export declare class VrActionParamsLogicRandomPickEnum {
|
|
650
|
+
target: XrVariableTarget;
|
|
651
|
+
candidates: XrTypedValue<string>[];
|
|
652
|
+
}
|
|
653
|
+
export declare class VrActionParamsLogicRandomPickColor {
|
|
654
|
+
target: XrVariableTarget;
|
|
655
|
+
candidates: XrTypedValue<Color>[];
|
|
656
|
+
}
|
|
657
|
+
export declare class VrActionParamsLogicRandomPickCssColor {
|
|
658
|
+
target: XrVariableTarget;
|
|
659
|
+
candidates: XrTypedValue<string>[];
|
|
660
|
+
}
|
|
@@ -2,6 +2,7 @@ import { FreeButton } from '../general/free-button';
|
|
|
2
2
|
import { VrSignalTrigger } from './vr-signal';
|
|
3
3
|
import { XrAnyAction } from './vr-action';
|
|
4
4
|
import { Vector2 } from '../general';
|
|
5
|
+
import { XrVariable } from './xr-logic';
|
|
5
6
|
export declare type VrFlowStatus = 'draft' | 'published';
|
|
6
7
|
export declare class VrFlowStatusDefine {
|
|
7
8
|
static readonly DRAFT: VrFlowStatus;
|
|
@@ -21,6 +22,7 @@ export declare class VrFlow {
|
|
|
21
22
|
canvasData: string;
|
|
22
23
|
flagImageSrc: string;
|
|
23
24
|
flagImageSize: Vector2;
|
|
25
|
+
flowScopeVariableList: XrVariable[];
|
|
24
26
|
}
|
|
25
27
|
export declare type VrFlowStepType = 'start' | 'finish' | 'general' | 'condition';
|
|
26
28
|
export declare class VrFlowStepTypeDefine {
|
|
@@ -62,6 +64,7 @@ export declare class VrFlowStep {
|
|
|
62
64
|
conditionFalseEndpointSettings: VrFlowStepEndpointSettings;
|
|
63
65
|
enterActionCompleteEndpointSettings: VrFlowStepEndpointSettings;
|
|
64
66
|
arriveActionCompleteEndpointSettings: VrFlowStepEndpointSettings;
|
|
67
|
+
stepScopeVariableList: XrVariable[];
|
|
65
68
|
}
|
|
66
69
|
export declare class VrFlowStepArriveAction {
|
|
67
70
|
actionList: XrAnyAction[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { XrAnyAction } from './vr-action';
|
|
2
2
|
import { VRTalkBaseData } from '../general/vrtalk-base-data';
|
|
3
|
+
import { XrVariable } from './xr-logic';
|
|
3
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';
|
|
4
5
|
export declare class VrSignalTypeDefine {
|
|
5
6
|
static readonly COMPONENT_CREATED: VrSignalType;
|
|
@@ -66,5 +67,6 @@ export declare class VrSignalTrigger extends VRTalkBaseData {
|
|
|
66
67
|
signal: VrSignal;
|
|
67
68
|
actionList: XrAnyAction[];
|
|
68
69
|
triggerTimesLimit: number;
|
|
70
|
+
localVariableList: XrVariable[];
|
|
69
71
|
constructor();
|
|
70
72
|
}
|
|
@@ -26,6 +26,7 @@ export declare class VrSticker extends VRTalkBaseData {
|
|
|
26
26
|
activateType: VrStickerActivateType;
|
|
27
27
|
activateDistance: number;
|
|
28
28
|
activeNeedStaySeconds: number;
|
|
29
|
+
inactiveNeedStaySeconds: number;
|
|
29
30
|
bestViewingSweepId: string;
|
|
30
31
|
bestViewingRotation: Vector2;
|
|
31
32
|
bestViewingMode: string;
|
|
@@ -12,7 +12,9 @@ export declare class XrAbility extends VRTalkBaseData {
|
|
|
12
12
|
description: string;
|
|
13
13
|
contextVariableList: XrVariable[];
|
|
14
14
|
activeActionList: XrAnyAction[];
|
|
15
|
+
activeActionListLocalVariableList: XrVariable[];
|
|
15
16
|
keeping: boolean;
|
|
16
17
|
triggerList: VrSignalTrigger[];
|
|
17
18
|
stopActionList: XrAnyAction[];
|
|
19
|
+
stopActionListLocalVariableList: XrVariable[];
|
|
18
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VRTalkBaseData, XrAnyAction } from '../../model';
|
|
1
|
+
import { VRTalkBaseData, XrAnyAction, XrVariable } from '../../model';
|
|
2
2
|
export declare class XrBackgroundThread extends VRTalkBaseData {
|
|
3
3
|
name: string;
|
|
4
4
|
remark: string;
|
|
@@ -6,4 +6,5 @@ export declare class XrBackgroundThread extends VRTalkBaseData {
|
|
|
6
6
|
executeCount: number;
|
|
7
7
|
actionList: XrAnyAction[];
|
|
8
8
|
interval: number;
|
|
9
|
+
localVariableList: XrVariable[];
|
|
9
10
|
}
|