larksr_websdk 3.2.36 → 3.2.39
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/doc/config.md +4 -1
- package/dist/doc/functions.md +7 -0
- package/dist/doc/update.md +12 -0
- package/dist/larksr-web-sdk.min.js +1 -1
- package/dist/types/api.d.ts +2 -0
- package/dist/types/appli_params.d.ts +12 -0
- package/dist/types/larksr.d.ts +14 -0
- package/dist/types/screen_state.d.ts +1 -0
- package/package.json +1 -1
- package/types/api.d.ts +2 -0
- package/types/appli_params.d.ts +12 -0
- package/types/larksr.d.ts +14 -0
- package/types/protobuf/cloudlark.d.ts +7378 -7372
- package/types/screen_state.d.ts +1 -0
- package/types/utils/scale_mode.d.ts +6 -0
package/dist/types/api.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ export default class API {
|
|
|
77
77
|
static GetStartInfoPath: string;
|
|
78
78
|
private static PocHostApplGetUrl;
|
|
79
79
|
private static TaskInfoClientStartedPath;
|
|
80
|
+
private static PortMappingListPath;
|
|
80
81
|
static HostAppliGetUrl(params: {
|
|
81
82
|
appliId: string;
|
|
82
83
|
playerMode?: number;
|
|
@@ -113,5 +114,6 @@ export default class API {
|
|
|
113
114
|
static LogError(errorCode: number, errorMsg: string, params: string, config: ILarkSRConfig): void;
|
|
114
115
|
static ClientInfo(config: ILarkSRConfig, params: AppliParams): void;
|
|
115
116
|
static TaskInfoClientStarted(config: ILarkSRConfig, params: AppliParams): void;
|
|
117
|
+
static PortMappingList(config: ILarkSRConfig): Promise<unknown>;
|
|
116
118
|
static joinParam(params: any): string;
|
|
117
119
|
}
|
|
@@ -263,5 +263,17 @@ export declare class AppliParamsUtils {
|
|
|
263
263
|
static getIntOption(option: string | null | undefined, emptyValue?: number): number;
|
|
264
264
|
static getBgColor(option: string | null | undefined): string;
|
|
265
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* WARNING 服务器端返回数据随机性较大,统一在该函数里做兼容处理
|
|
268
|
+
* 服务器端可能随意修改字段名称或值,需要注意测试
|
|
269
|
+
* @param startAppInfo
|
|
270
|
+
* @returns
|
|
271
|
+
*/
|
|
266
272
|
export declare function LoadAppliParamsFromUrl(): IAppliParams;
|
|
273
|
+
/**
|
|
274
|
+
* WARNING 服务器端返回数据随机性较大,统一在该函数里做兼容处理
|
|
275
|
+
* 服务器端可能随意修改字段名称或值,需要注意测试
|
|
276
|
+
* @param startAppInfo
|
|
277
|
+
* @returns
|
|
278
|
+
*/
|
|
267
279
|
export declare function LoadAppliParamsStartAppInfo(startAppInfo: StartAppInfo): IAppliParams;
|
package/dist/types/larksr.d.ts
CHANGED
|
@@ -424,6 +424,11 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
424
424
|
*/
|
|
425
425
|
get uid(): number;
|
|
426
426
|
private _uid;
|
|
427
|
+
/**
|
|
428
|
+
* 云端应用是否是预启动状态
|
|
429
|
+
*/
|
|
430
|
+
get isPreStart(): boolean;
|
|
431
|
+
private _isPreStart;
|
|
427
432
|
/**
|
|
428
433
|
* @returns 是否是 Task的拥有者
|
|
429
434
|
*/
|
|
@@ -451,6 +456,8 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
451
456
|
userType?: number;
|
|
452
457
|
roomCode?: string;
|
|
453
458
|
taskId?: string;
|
|
459
|
+
regionId?: string;
|
|
460
|
+
groupId?: string;
|
|
454
461
|
}): Promise<void>;
|
|
455
462
|
/**
|
|
456
463
|
* 连接云端渲染资源
|
|
@@ -498,6 +505,13 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
498
505
|
* 主动关闭连接
|
|
499
506
|
*/
|
|
500
507
|
close(): void;
|
|
508
|
+
/**
|
|
509
|
+
* 设置是否强制横屏显示内容.
|
|
510
|
+
* handelRootElementSize 必须设置为 true 才有作用。
|
|
511
|
+
* 要注意强制横屏模式下网页的坐标系xy和视觉上相反,如果通过外部输入 input 事件。要注意调整
|
|
512
|
+
* @param force 是否强制横屏
|
|
513
|
+
*/
|
|
514
|
+
setMobileForceLandScape(force: boolean): void;
|
|
501
515
|
/**
|
|
502
516
|
* 切换当前操作者
|
|
503
517
|
* @param uid 用户id
|
|
@@ -108,5 +108,6 @@ export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEven
|
|
|
108
108
|
private larksr;
|
|
109
109
|
constructor(rootElement: HTMLElement, params: IAppliParams, larksr: LarkSR, handelRootElementSize?: boolean);
|
|
110
110
|
reset(params: IAppliParams): void;
|
|
111
|
+
setMobileForceLandScape(force: boolean): void;
|
|
111
112
|
resize(): void;
|
|
112
113
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "larksr_websdk",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.39",
|
|
4
4
|
"description": "Larksr websdk. Easy to build a cloud render client for larksr system or ue4 pixelstreaming.docs: https://pingxingyun.github.io/webclient_sdk/",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pingxingyun",
|
package/types/api.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ export default class API {
|
|
|
77
77
|
static GetStartInfoPath: string;
|
|
78
78
|
private static PocHostApplGetUrl;
|
|
79
79
|
private static TaskInfoClientStartedPath;
|
|
80
|
+
private static PortMappingListPath;
|
|
80
81
|
static HostAppliGetUrl(params: {
|
|
81
82
|
appliId: string;
|
|
82
83
|
playerMode?: number;
|
|
@@ -113,5 +114,6 @@ export default class API {
|
|
|
113
114
|
static LogError(errorCode: number, errorMsg: string, params: string, config: ILarkSRConfig): void;
|
|
114
115
|
static ClientInfo(config: ILarkSRConfig, params: AppliParams): void;
|
|
115
116
|
static TaskInfoClientStarted(config: ILarkSRConfig, params: AppliParams): void;
|
|
117
|
+
static PortMappingList(config: ILarkSRConfig): Promise<unknown>;
|
|
116
118
|
static joinParam(params: any): string;
|
|
117
119
|
}
|
package/types/appli_params.d.ts
CHANGED
|
@@ -263,5 +263,17 @@ export declare class AppliParamsUtils {
|
|
|
263
263
|
static getIntOption(option: string | null | undefined, emptyValue?: number): number;
|
|
264
264
|
static getBgColor(option: string | null | undefined): string;
|
|
265
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* WARNING 服务器端返回数据随机性较大,统一在该函数里做兼容处理
|
|
268
|
+
* 服务器端可能随意修改字段名称或值,需要注意测试
|
|
269
|
+
* @param startAppInfo
|
|
270
|
+
* @returns
|
|
271
|
+
*/
|
|
266
272
|
export declare function LoadAppliParamsFromUrl(): IAppliParams;
|
|
273
|
+
/**
|
|
274
|
+
* WARNING 服务器端返回数据随机性较大,统一在该函数里做兼容处理
|
|
275
|
+
* 服务器端可能随意修改字段名称或值,需要注意测试
|
|
276
|
+
* @param startAppInfo
|
|
277
|
+
* @returns
|
|
278
|
+
*/
|
|
267
279
|
export declare function LoadAppliParamsStartAppInfo(startAppInfo: StartAppInfo): IAppliParams;
|
package/types/larksr.d.ts
CHANGED
|
@@ -424,6 +424,11 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
424
424
|
*/
|
|
425
425
|
get uid(): number;
|
|
426
426
|
private _uid;
|
|
427
|
+
/**
|
|
428
|
+
* 云端应用是否是预启动状态
|
|
429
|
+
*/
|
|
430
|
+
get isPreStart(): boolean;
|
|
431
|
+
private _isPreStart;
|
|
427
432
|
/**
|
|
428
433
|
* @returns 是否是 Task的拥有者
|
|
429
434
|
*/
|
|
@@ -451,6 +456,8 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
451
456
|
userType?: number;
|
|
452
457
|
roomCode?: string;
|
|
453
458
|
taskId?: string;
|
|
459
|
+
regionId?: string;
|
|
460
|
+
groupId?: string;
|
|
454
461
|
}): Promise<void>;
|
|
455
462
|
/**
|
|
456
463
|
* 连接云端渲染资源
|
|
@@ -498,6 +505,13 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
498
505
|
* 主动关闭连接
|
|
499
506
|
*/
|
|
500
507
|
close(): void;
|
|
508
|
+
/**
|
|
509
|
+
* 设置是否强制横屏显示内容.
|
|
510
|
+
* handelRootElementSize 必须设置为 true 才有作用。
|
|
511
|
+
* 要注意强制横屏模式下网页的坐标系xy和视觉上相反,如果通过外部输入 input 事件。要注意调整
|
|
512
|
+
* @param force 是否强制横屏
|
|
513
|
+
*/
|
|
514
|
+
setMobileForceLandScape(force: boolean): void;
|
|
501
515
|
/**
|
|
502
516
|
* 切换当前操作者
|
|
503
517
|
* @param uid 用户id
|