larksr_websdk 3.2.323 → 3.2.324

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.
Files changed (66) hide show
  1. package/dist/doc/config.md +158 -0
  2. package/dist/doc/events.md +149 -0
  3. package/dist/doc/functions.md +463 -0
  4. package/dist/doc/index.md +82 -0
  5. package/dist/doc/member_variables.md +385 -0
  6. package/dist/doc/sdkid_encryption.md +40 -0
  7. package/dist/doc/update.md +251 -0
  8. package/dist/larksr-web-sdk.min.js +1 -1
  9. package/dist/types/api.d.ts +131 -0
  10. package/dist/types/appli_params.d.ts +291 -0
  11. package/dist/types/common/cmd.d.ts +28 -0
  12. package/dist/types/common/constant.d.ts +4 -0
  13. package/dist/types/common/interface.d.ts +30 -0
  14. package/dist/types/config.d.ts +59 -0
  15. package/dist/types/event/event_base.d.ts +11 -0
  16. package/dist/types/event/iframe_poster.d.ts +9 -0
  17. package/dist/types/index.d.ts +23 -0
  18. package/dist/types/lark/Worker.d.ts +0 -0
  19. package/dist/types/lark/application.d.ts +185 -0
  20. package/dist/types/lark/custom.d.ts +7 -0
  21. package/dist/types/lark/ice_candiadate_parser.d.ts +24 -0
  22. package/dist/types/lark/lark_event_type.d.ts +113 -0
  23. package/dist/types/lark/message.d.ts +20 -0
  24. package/dist/types/lark/peer_connection.d.ts +178 -0
  25. package/dist/types/lark/recoder.d.ts +55 -0
  26. package/dist/types/lark/sdp_util.d.ts +36 -0
  27. package/dist/types/lark/test_pixel_streaming.d.ts +54 -0
  28. package/dist/types/lark/websocket_channel.d.ts +56 -0
  29. package/dist/types/lark/websocket_proxy.d.ts +56 -0
  30. package/dist/types/larksr.d.ts +978 -0
  31. package/dist/types/localization/base.d.ts +8 -0
  32. package/dist/types/localization/gesture_ins.d.ts +4 -0
  33. package/dist/types/localization/language.d.ts +6 -0
  34. package/dist/types/localization/loader.d.ts +14 -0
  35. package/dist/types/localization/message.d.ts +81 -0
  36. package/dist/types/localization/ui.d.ts +58 -0
  37. package/dist/types/operation/gamepad_handler.d.ts +67 -0
  38. package/dist/types/operation/gesture.d.ts +72 -0
  39. package/dist/types/operation/gesture_handler.d.ts +53 -0
  40. package/dist/types/operation/handler_base.d.ts +8 -0
  41. package/dist/types/operation/keyboard_handler.d.ts +21 -0
  42. package/dist/types/operation/keymap.d.ts +24 -0
  43. package/dist/types/operation/letter_keymap.d.ts +8 -0
  44. package/dist/types/operation/mouse_handler.d.ts +42 -0
  45. package/dist/types/operation/num_keymap.d.ts +12 -0
  46. package/dist/types/operation/operation.d.ts +97 -0
  47. package/dist/types/operation/pixel_streaming_input.d.ts +82 -0
  48. package/dist/types/operation/touch_handler.d.ts +11 -0
  49. package/dist/types/operation/utils.d.ts +18 -0
  50. package/dist/types/protobuf/cloudlark.d.ts +7854 -0
  51. package/dist/types/screen_state.d.ts +116 -0
  52. package/dist/types/utils/browser_type.d.ts +37 -0
  53. package/dist/types/utils/capabilities.d.ts +54 -0
  54. package/dist/types/utils/full_screen.d.ts +25 -0
  55. package/dist/types/utils/ios-inner-height.d.ts +4 -0
  56. package/dist/types/utils/lock_pointer.d.ts +23 -0
  57. package/dist/types/utils/log.d.ts +25 -0
  58. package/dist/types/utils/scale_mode.d.ts +26 -0
  59. package/dist/types/utils/unit.d.ts +142 -0
  60. package/package.json +1 -1
  61. package/types/api.d.ts +5 -0
  62. package/types/appli_params.d.ts +2 -0
  63. package/types/lark/application.d.ts +7 -1
  64. package/types/lark/peer_connection.d.ts +5 -1
  65. package/types/larksr.d.ts +45 -1
  66. package/types/protobuf/cloudlark.d.ts +7854 -7384
@@ -0,0 +1,131 @@
1
+ import { ILarkSRConfig } from './larksr';
2
+ import { AppliParams } from './appli_params';
3
+ export interface UTLockInfo {
4
+ checkUtLockMessage: string;
5
+ checkUtLockResult: boolean;
6
+ remainMinutes: number;
7
+ }
8
+ export interface GetTaskResult {
9
+ adminViewer: number;
10
+ appKey: string;
11
+ appliId: string;
12
+ appliType: number;
13
+ city: string;
14
+ clientIp: string;
15
+ country: string;
16
+ createDate: string;
17
+ dcs: number;
18
+ limitMaxFps: number;
19
+ offScreen: number;
20
+ playerListToggle: number;
21
+ playerMode: number;
22
+ province: string;
23
+ publicIp: string;
24
+ reserveFlag: number;
25
+ serverId: string;
26
+ serverIp: string;
27
+ shareUrl: string;
28
+ startAt: string;
29
+ startParam: string;
30
+ startProcType: number;
31
+ status: number;
32
+ taskId: string;
33
+ updateDate: string;
34
+ useGamepad: number;
35
+ wm: number;
36
+ textInputEventPrompt: number;
37
+ audioInput: number;
38
+ audioInputAutoStart: number;
39
+ videoInput: number;
40
+ videoInputAutoStart: number;
41
+ liveStreaming: number;
42
+ }
43
+ export interface StartAppInfo {
44
+ appliId: string;
45
+ appliType: number;
46
+ appliName: string;
47
+ taskId: string;
48
+ renderServerIp: string;
49
+ wsProxy: string;
50
+ preferPublicIp: string;
51
+ renderServerPort: number;
52
+ initCursorMode: number;
53
+ rttLimit: string;
54
+ touchOperateMode: string;
55
+ fullScreenMode: number;
56
+ mobileForceLandscape: number;
57
+ mobileFullScreenMode: number;
58
+ language: string;
59
+ noOperationTimeout: string;
60
+ serverId: string;
61
+ network: string;
62
+ playerListToggle: number;
63
+ bgColor: string;
64
+ logLevel: string;
65
+ mobileVirtualJoystick: number;
66
+ initWinSize: number;
67
+ taskStatus: number;
68
+ mouseZoomDirection: number;
69
+ useGamepad: number;
70
+ rttLimitInterval: string;
71
+ playerMode?: number;
72
+ userType?: number;
73
+ roomCode?: string;
74
+ nickName?: string;
75
+ nickname?: string;
76
+ appKey?: string;
77
+ groupId?: string;
78
+ }
79
+ export default class API {
80
+ static CheckUTLockInfoPath: string;
81
+ static GetTaskPATH: string;
82
+ static ClientLogErrorPath: string;
83
+ static GetStartInfoPath: string;
84
+ private static PocHostApplGetUrl;
85
+ private static TaskInfoClientStartedPath;
86
+ private static PortMappingListPath;
87
+ private static GetTouchCtrMappingPath;
88
+ private static GetAppliListPath;
89
+ private static RegionListPath;
90
+ static HostAppliGetUrl(params: {
91
+ appliId: string;
92
+ playerMode?: number;
93
+ userType?: number;
94
+ roomCode?: string;
95
+ taskId?: string;
96
+ }): Promise<{
97
+ host: string;
98
+ origin: string;
99
+ params: {
100
+ appliId: string;
101
+ appKey: string;
102
+ timestamp: string;
103
+ signature: string;
104
+ };
105
+ }>;
106
+ static GetStartInfo(serverAddress: string, params: {
107
+ sdkId: string;
108
+ appliId: string;
109
+ playerMode?: number;
110
+ userType?: number;
111
+ roomCode?: string;
112
+ taskId?: string;
113
+ clientMac?: string;
114
+ groupId?: string;
115
+ regionId?: string;
116
+ targetServerIp?: string;
117
+ appKey?: string;
118
+ timestamp?: string;
119
+ signature?: string;
120
+ } | any): Promise<StartAppInfo>;
121
+ static CheckUTLockInfo(config: ILarkSRConfig): Promise<UTLockInfo>;
122
+ static GetTask(config: ILarkSRConfig, taskid: string): Promise<GetTaskResult>;
123
+ static LogError(errorCode: number, errorMsg: string, params: string, config: ILarkSRConfig): void;
124
+ static ClientInfo(config: ILarkSRConfig, params: AppliParams): void;
125
+ static TaskInfoClientStarted(config: ILarkSRConfig, params: AppliParams): void;
126
+ static PortMappingList(config: ILarkSRConfig): Promise<unknown>;
127
+ static GetTouchCtrMapping(server: string, appliId?: string): Promise<unknown>;
128
+ static GetAppliList(server: string, params: any): Promise<unknown>;
129
+ static RegionList(server: string, params: any): Promise<unknown>;
130
+ static joinParam(params: any): string;
131
+ }
@@ -0,0 +1,291 @@
1
+ import ScaleMode from './utils/scale_mode';
2
+ import { StartAppInfo } from './api';
3
+ import { ILarkSRConfig } from './larksr';
4
+ export interface IAppliParams {
5
+ /**
6
+ * appserver 的ip地址
7
+ */
8
+ appServer: string;
9
+ /**
10
+ * appserver 的端口号
11
+ */
12
+ appPort: string;
13
+ /**
14
+ * appli type
15
+ */
16
+ appliType: number;
17
+ /**
18
+ * 是否使用 websocket 代理
19
+ */
20
+ wsProxy: boolean;
21
+ /**
22
+ * 优先使用的外网ip. 用在webrtc ice处替换为高优先级的ip
23
+ */
24
+ preferPubOutIp: string;
25
+ /**
26
+ * taskid
27
+ */
28
+ taskid: string;
29
+ /**
30
+ * 当前应用名称
31
+ */
32
+ appliName: string;
33
+ /**
34
+ * @deprecated
35
+ * 应用的宽高。现在云端自动获取宽高
36
+ */
37
+ width: number;
38
+ /**
39
+ * @deprecated
40
+ * 应用的宽高。现在云端自动获取宽高
41
+ */
42
+ height: number;
43
+ /**
44
+ * 缩放模式
45
+ */
46
+ scaleMode: ScaleMode;
47
+ /**
48
+ * 日志级别
49
+ * @default 'warn'
50
+ */
51
+ logLevel: 'info' | 'warn' | 'error';
52
+ /**
53
+ * 无操作时间。超时断开连接.
54
+ */
55
+ noOperationTimeout: number;
56
+ /**
57
+ * 是否显示右下角的水印。
58
+ */
59
+ waterMark: boolean;
60
+ /**
61
+ * 检测的rtt值,rtt超过该值将提示用户网络环境差
62
+ */
63
+ rttLimit: number;
64
+ /**
65
+ * 检测的丢包率。丢包率超过该值提示用户网络环境差
66
+ */
67
+ packetLostLimit: number;
68
+ /**
69
+ * 丢包率和rtt提示的时间间隔。
70
+ */
71
+ rttLimitInterval: number;
72
+ /**
73
+ * 码率. 用在在创建 webrtc sdp时替换为此码率。
74
+ */
75
+ codeRate: number;
76
+ /**
77
+ * audio code rate
78
+ * https://stackoverflow.com/questions/33649283/how-to-set-up-sdp-for-high-quality-opus-audio
79
+ * a=fmtp:111 minptime=10;useinbandfec=1; stereo=1; maxaveragebitrate=510000
80
+ */
81
+ audioCodeRate: number;
82
+ /**
83
+ * 帧率,在登录task时传给后端。
84
+ */
85
+ frameRate: number;
86
+ /**
87
+ * 网络状态,影响 webrtc offer 创建时最低码率。
88
+ */
89
+ network: 'local' | 'public';
90
+ /**
91
+ * 使用的语言,目前只支持英语和中文。
92
+ */
93
+ language: string;
94
+ /**
95
+ * 初始的鼠标锁定模式
96
+ * false:非锁定模式
97
+ * true:锁定模式
98
+ */
99
+ initCursorMode: boolean;
100
+ /**
101
+ * 背景颜色
102
+ */
103
+ bgColor: string;
104
+ /**
105
+ * 全屏模式
106
+ * 0 -》 用户手动触发
107
+ * 1 -》 首次点击进入触发
108
+ * 2 -》 每次点击触发
109
+ */
110
+ fullScreenMode: number;
111
+ /**
112
+ * 手机端全屏模式
113
+ * 0 -》 用户手动触发
114
+ * 1 -》 首次点击进入触发
115
+ * 2 -》 每次点击触发
116
+ */
117
+ mobileFullScreenMode: number;
118
+ /**
119
+ * 一人操作多人看 0 普通模式 1 交互模式(可以一人操作多人看)
120
+ * 2 多人互动模式,鼠标键盘都放开
121
+ */
122
+ playerMode: number;
123
+ /**
124
+ * 用户类型 number
125
+ * 所有者:1 观察者:0;
126
+ */
127
+ userType: number;
128
+ /**
129
+ * 用户昵称
130
+ */
131
+ nickname: string;
132
+ /**
133
+ * 口令:8位唯一码,写入TaskInfo. 房间code,备用。
134
+ */
135
+ roomCode: string;
136
+ /**
137
+ * debug task. 跳过task检测
138
+ */
139
+ debugTask: boolean;
140
+ /**
141
+ * debug webserver
142
+ */
143
+ debugWebServer: string;
144
+ /**
145
+ * laoding timeout
146
+ * 5 * 60
147
+ */
148
+ loadingTimeout: number;
149
+ /**
150
+ * share url
151
+ */
152
+ shareUrl: boolean;
153
+ /**
154
+ * 是否强制横屏
155
+ */
156
+ mobileForceLandscape: boolean;
157
+ /**
158
+ * 移动端初始化初始化是否显示手柄
159
+ */
160
+ mobileVirtualJoystick: boolean;
161
+ /**
162
+ * mouseZoomDirection
163
+ * 用于移动端捏合缩放操作与应用鼠标缩放的对应关系
164
+ * 1:鼠标滚轮向上为放大,
165
+ * 0:鼠标滚轮向下为放大(default)
166
+ */
167
+ mouseZoomDirection: number;
168
+ /**
169
+ * 初始是否显示玩家列表
170
+ */
171
+ showPlayerList: boolean;
172
+ /**
173
+ * 优先使用的解码器
174
+ */
175
+ preferDecoder: 'auto' | 'vp8' | 'vp9' | 'h264' | 'h265' | 'hevc' | 'av1x';
176
+ /**
177
+ * 触摸操作对应的操作方式,触摸屏还是鼠标
178
+ */
179
+ touchOperateMode: 'touchScreen' | 'mouse';
180
+ /**
181
+ * appid
182
+ */
183
+ appliId: string;
184
+ /**
185
+ *
186
+ */
187
+ syncLocalToCloudClipboard: boolean;
188
+ enableRttIcon: boolean;
189
+ enableSoundRequire: boolean;
190
+ toastLevel: number;
191
+ appKey: string;
192
+ groupId: string;
193
+ textInputEventPrompt: boolean;
194
+ audioInput: boolean;
195
+ audioInputAutoStart: boolean;
196
+ videoInput: boolean;
197
+ videoInputAutoStart: boolean;
198
+ liveStreaming: boolean;
199
+ }
200
+ export declare enum AppliType {
201
+ DESKTOP = 1,
202
+ SHARED = 2,
203
+ PIXEL_STREAMING = 13,
204
+ VR = 3,
205
+ VR_STEAM = 5,
206
+ NV_VR = 6,
207
+ XR = 7,
208
+ PXY_AR = 9,
209
+ NV_AR = 11
210
+ }
211
+ export declare class AppliParams implements IAppliParams {
212
+ appServer: string;
213
+ appPort: string;
214
+ appliType: AppliType;
215
+ wsProxy: boolean;
216
+ preferPubOutIp: string;
217
+ taskid: string;
218
+ appliName: string;
219
+ width: number;
220
+ height: number;
221
+ scaleMode: ScaleMode;
222
+ logLevel: 'info' | 'warn' | 'error';
223
+ noOperationTimeout: number;
224
+ waterMark: boolean;
225
+ rttLimit: number;
226
+ packetLostLimit: number;
227
+ rttLimitInterval: number;
228
+ codeRate: number;
229
+ audioCodeRate: number;
230
+ frameRate: number;
231
+ network: 'local' | 'public';
232
+ language: string;
233
+ initCursorMode: boolean;
234
+ bgColor: string;
235
+ fullScreenMode: number;
236
+ mobileFullScreenMode: number;
237
+ playerMode: number;
238
+ userType: number;
239
+ nickname: string;
240
+ roomCode: string;
241
+ debugTask: boolean;
242
+ debugWebServer: string;
243
+ loadingTimeout: number;
244
+ shareUrl: boolean;
245
+ mobileForceLandscape: boolean;
246
+ mobileVirtualJoystick: boolean;
247
+ mouseZoomDirection: number;
248
+ showPlayerList: boolean;
249
+ preferDecoder: 'auto' | 'vp8' | 'vp9' | 'h264' | 'h265' | 'hevc' | 'av1x';
250
+ touchOperateMode: 'touchScreen' | 'mouse';
251
+ appliId: string;
252
+ syncLocalToCloudClipboard: boolean;
253
+ enableRttIcon: boolean;
254
+ enableSoundRequire: boolean;
255
+ toastLevel: number;
256
+ appKey: string;
257
+ groupId: string;
258
+ textInputEventPrompt: boolean;
259
+ audioInput: boolean;
260
+ audioInputAutoStart: boolean;
261
+ videoInput: boolean;
262
+ videoInputAutoStart: boolean;
263
+ liveStreaming: boolean;
264
+ static copyAndCreate(params?: IAppliParams): AppliParams;
265
+ static setUpWithSDKConfig(params: IAppliParams, config: ILarkSRConfig): AppliParams;
266
+ }
267
+ export declare function CreateAppliParams(): IAppliParams;
268
+ export declare class AppliParamsUtils {
269
+ static getScaleMode(init: number | null | undefined): string;
270
+ static getNetwork(init: number | null | undefined): 'local' | 'public';
271
+ static getLogLevel(level: string | null | undefined): 'info' | 'warn';
272
+ static getBoolOption(option: string | null | undefined | boolean, emptyValue?: boolean): boolean;
273
+ static getNumberBoolOption(option: string | null | undefined | number, emptyValue?: boolean): boolean;
274
+ static getStringOption(option: string | null | undefined, emptyValue?: string): string;
275
+ static getIntOption(option: string | null | undefined, emptyValue?: number): number;
276
+ static getBgColor(option: string | null | undefined): string;
277
+ }
278
+ /**
279
+ * WARNING 服务器端返回数据随机性较大,统一在该函数里做兼容处理
280
+ * 服务器端可能随意修改字段名称或值,需要注意测试
281
+ * @param startAppInfo
282
+ * @returns
283
+ */
284
+ export declare function LoadAppliParamsFromUrl(): IAppliParams;
285
+ /**
286
+ * WARNING 服务器端返回数据随机性较大,统一在该函数里做兼容处理
287
+ * 服务器端可能随意修改字段名称或值,需要注意测试
288
+ * @param startAppInfo
289
+ * @returns
290
+ */
291
+ export declare function LoadAppliParamsStartAppInfo(startAppInfo: StartAppInfo): IAppliParams;
@@ -0,0 +1,28 @@
1
+ declare const enum CMD {
2
+ SESSIONKEY = 1,
3
+ APPSTART = 2,
4
+ VIDEO = 3,
5
+ MOUSE_DOWN = 4,
6
+ MOUSE_UP = 5,
7
+ MOUSE_MOVE = 6,
8
+ KEY_DOWN = 7,
9
+ KEY_UP = 8,
10
+ KEY_PRESS = 9,
11
+ CONNECT_APP_SERVER = 10,
12
+ APP_SERVER_CONNECTED = 11,
13
+ APP_SERVER_CONNECT_FAILED = 12,
14
+ CONNECT_ALREADY_EXIST = 13,
15
+ MOUSE_RIGHT = 14,
16
+ MOUSE_WHEELE = 15,
17
+ WEBRTC_GETICESERVER = 16,
18
+ WEBRTC_GET_REMOTE_ICECANDIDATE = 17,
19
+ WEBRTC_CALL = 18,
20
+ WEBRTC_ADD_ICECANDIDATE = 19,
21
+ WEBRTC_HANGUP = 20,
22
+ WEBRTC_GETDEVICELIST = 21,
23
+ REMOTE_APP_CLOSE = 22,
24
+ MOUSE_BUTTON = 23,
25
+ KEEP_ALIVE = 24,
26
+ REMOTE_APP_COUSOR_CHANGE = 25
27
+ }
28
+ export default CMD;
@@ -0,0 +1,4 @@
1
+ export declare const VIDEO_ID = "video";
2
+ export declare const IMAGE_CURSOR_ID = "cursorid";
3
+ export declare const EMPTY_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjbQg61aAAAADUlEQVQYV2P4//8/IwAI/QL/+TZZdwAAAABJRU5ErkJggg==";
4
+ export declare const TOKEN_EXPIRED = "TOKEN_EXPIRED";
@@ -0,0 +1,30 @@
1
+ export interface Point {
2
+ x: number;
3
+ y: number;
4
+ }
5
+ export interface Vector {
6
+ x: number;
7
+ y: number;
8
+ startPoint: Point;
9
+ endPoint: Point;
10
+ }
11
+ export interface Stage {
12
+ width: number;
13
+ height: number;
14
+ Position: Point;
15
+ }
16
+ export interface CSSPosition {
17
+ top: number;
18
+ left: number;
19
+ }
20
+ export interface ViewPort {
21
+ width: number;
22
+ height: number;
23
+ }
24
+ export interface Toggle {
25
+ show: boolean;
26
+ }
27
+ export interface OffsetView {
28
+ offsetX: number;
29
+ offsetY: number;
30
+ }
@@ -0,0 +1,59 @@
1
+ import ScaleModel from './utils/scale_mode';
2
+ export default class Config {
3
+ static BuildType: 'local' | 'public';
4
+ static LocalHomepagePath: string;
5
+ /**
6
+ */
7
+ static VersionMarjor: number;
8
+ static VersionMinorr: number;
9
+ static VersionRevise: number;
10
+ static VersionBuild: number;
11
+ /**
12
+ * webrtc 断开连接重试次数
13
+ */
14
+ static RetryTime: number;
15
+ /**
16
+ * design width/height
17
+ * TODO reset with 0. check with render server.
18
+ */
19
+ static OriginW: number;
20
+ static OriginH: number;
21
+ /**
22
+ * 默认码率从应用服务器接收码率
23
+ */
24
+ static CodeRate: number;
25
+ static AudioCodeRate: number;
26
+ static FrameRate: number;
27
+ /**
28
+ * default scale mode. 以应用原始尺寸的缩放
29
+ */
30
+ static ScaleMode: ScaleModel;
31
+ /**
32
+ * default net work.
33
+ */
34
+ static Network: 'local' | 'public';
35
+ /**
36
+ * 鼠标模式
37
+ * 0 == 相对
38
+ * 1 == 绝对
39
+ */
40
+ static MouseMode: number;
41
+ /**
42
+ * replace server ip for aws
43
+ */
44
+ static ForceIceAddr: boolean;
45
+ /**
46
+ * 禁用 VPX
47
+ */
48
+ static DisableVPX: boolean;
49
+ /**
50
+ * 是否启用相对鼠标移动虚拟摇杆
51
+ */
52
+ static RelativeMouseMove: boolean;
53
+ /**
54
+ * 虚拟摇杆精度
55
+ */
56
+ static VirtualRackerScale: number;
57
+ static ErrChromeAndroidVersion: string[];
58
+ static DownloadChromium: string;
59
+ }
@@ -0,0 +1,11 @@
1
+ export interface LocalEvent<E> {
2
+ type: E;
3
+ target?: any;
4
+ }
5
+ export declare type Callback<E> = (e: E, ...params: any[]) => void;
6
+ export declare abstract class EventBase<T, E extends LocalEvent<T>> {
7
+ private listeners;
8
+ on(type: T, callback: Callback<E>, self?: any): void;
9
+ off(type: T, callback: Callback<E>, self?: any): void;
10
+ emit(event: E, ...params: any[]): void;
11
+ }
@@ -0,0 +1,9 @@
1
+ import { LarkEventType } from '../lark/lark_event_type';
2
+ import { LarkSR } from '../larksr';
3
+ export declare const PREX = "pxymessage";
4
+ export declare const LOG_ERROR_EVENT_TYPE: LarkEventType[];
5
+ export default class IframeHandler {
6
+ larksr: LarkSR;
7
+ constructor(larksr: LarkSR);
8
+ listenParent(): void;
9
+ }
@@ -0,0 +1,23 @@
1
+ import 'core-js/stable/symbol';
2
+ import { LarkSR, LarkEventType, LarkSRClientEvent, AppliParams, LoadAppliParamsFromUrl, AppliParamsUtils, LoadAppliParamsStartAppInfo, EventBase, API, Operation, Capabilities, ScaleMode, CloudLark, FullScreen, LockPointer, ILarkSRConfig, PlayerModeType, UserType, LarkSREvent, GESTURE_TYPE } from "./larksr";
3
+ declare const _default: {
4
+ LarkSR: typeof LarkSR;
5
+ API: typeof API;
6
+ AppliParams: typeof AppliParams;
7
+ LoadAppliParamsFromUrl: typeof LoadAppliParamsFromUrl;
8
+ AppliParamsUtils: typeof AppliParamsUtils;
9
+ LoadAppliParamsStartAppInfo: typeof LoadAppliParamsStartAppInfo;
10
+ EventBase: typeof EventBase;
11
+ ScaleMode: typeof ScaleMode;
12
+ Capabilities: typeof Capabilities;
13
+ CloudLark: typeof CloudLark;
14
+ FullScreen: typeof FullScreen;
15
+ LockPointer: typeof LockPointer;
16
+ Operation: typeof Operation;
17
+ LarkSRClientEvent: typeof LarkSRClientEvent;
18
+ LarkEventType: typeof LarkEventType;
19
+ GESTURE_TYPE: typeof GESTURE_TYPE;
20
+ KEYMAP: import("./operation/keymap").VritualKeyMapOptions;
21
+ };
22
+ export default _default;
23
+ export { ILarkSRConfig, PlayerModeType, UserType, LarkSREvent, };
File without changes