larksr_websdk 3.2.3 → 3.2.7
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/README.md +32 -24
- package/dist/doc/functions.md +2 -2
- package/dist/doc/index.md +43 -3
- package/dist/doc/member_variables.md +148 -0
- package/dist/larksr-web-sdk.min.js +3 -3
- package/dist/types/api.d.ts +3 -0
- package/dist/types/appli_params.d.ts +21 -2
- package/dist/types/index.d.ts +5 -2
- package/dist/types/larksr.d.ts +59 -8
- package/dist/types/screen_state.d.ts +1 -0
- package/package.json +11 -7
- package/types/api.d.ts +88 -0
- package/types/appli_params.d.ts +263 -0
- package/{dist/types → types}/common/cmd.d.ts +0 -0
- package/{dist/types → types}/common/constant.d.ts +0 -0
- package/{dist/types → types}/common/interface.d.ts +0 -0
- package/types/config.d.ts +59 -0
- package/{dist/types → types}/event/bus.d.ts +0 -0
- package/{dist/types → types}/event/event_base.d.ts +0 -0
- package/{dist/types → types}/event/events.d.ts +0 -0
- package/{dist/types → types}/event/iframe_poster.d.ts +0 -0
- package/{dist/types → types}/event/message.d.ts +0 -0
- package/types/index.d.ts +24 -0
- package/{dist/types → types}/lark/Worker.d.ts +0 -0
- package/{dist/types → types}/lark/application.d.ts +5 -2
- package/{dist/types → types}/lark/custom.d.ts +0 -0
- package/{dist/types → types}/lark/lark_event_type.d.ts +1 -1
- package/{dist/types → types}/lark/message.d.ts +5 -4
- package/{dist/types → types}/lark/peer_connection.d.ts +0 -0
- package/{dist/types → types}/lark/sdp_util.d.ts +0 -0
- package/types/lark/test_pixel_streaming.d.ts +54 -0
- package/{dist/types → types}/lark/websocket_channel.d.ts +0 -0
- package/{dist/types → types}/lark/websocket_proxy.d.ts +0 -0
- package/types/larksr.d.ts +509 -0
- package/{dist/types → types}/localization/base.d.ts +0 -0
- package/{dist/types → types}/localization/gesture_ins.d.ts +0 -0
- package/{dist/types → types}/localization/language.d.ts +0 -0
- package/{dist/types → types}/localization/loader.d.ts +0 -0
- package/{dist/types → types}/localization/message.d.ts +0 -0
- package/{dist/types → types}/localization/ui.d.ts +0 -0
- package/{dist/types → types}/operation/gamepad_handler.d.ts +0 -0
- package/{dist/types → types}/operation/gesture.d.ts +0 -0
- package/{dist/types → types}/operation/gesture_handler.d.ts +0 -0
- package/{dist/types → types}/operation/handler_base.d.ts +0 -0
- package/{dist/types → types}/operation/keyboard_handler.d.ts +0 -0
- package/types/operation/keymap.d.ts +24 -0
- package/{dist/types → types}/operation/letter_keymap.d.ts +0 -0
- package/{dist/types → types}/operation/mouse_handler.d.ts +0 -0
- package/{dist/types → types}/operation/num_keymap.d.ts +0 -0
- package/{dist/types → types}/operation/operation.d.ts +0 -0
- package/types/operation/pixel_streaming_input.d.ts +82 -0
- package/{dist/types → types}/operation/touch_handler.d.ts +0 -0
- package/{dist/types → types}/operation/utils.d.ts +0 -0
- package/{dist/types → types}/protobuf/cloudlark.d.ts +0 -0
- package/{dist/types → types}/protobuf/message.d.ts +0 -0
- package/types/screen_state.d.ts +109 -0
- package/types/sdk_auth.d.ts +11 -0
- package/{dist/types → types}/utils/browser_type.d.ts +0 -0
- package/{dist/types → types}/utils/capabilities.d.ts +0 -0
- package/{dist/types → types}/utils/full_screen.d.ts +0 -0
- package/{dist/types → types}/utils/lock_pointer.d.ts +0 -0
- package/{dist/types → types}/utils/log.d.ts +0 -0
- package/{dist/types → types}/utils/scale_mode.d.ts +0 -0
- package/{dist/types → types}/utils/unit.d.ts +0 -0
- package/dist/types/operation/keymap.d.ts +0 -20
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { ViewPort } from "./common/interface";
|
|
2
|
+
import { IAppliParams } from "./appli_params";
|
|
3
|
+
import { CloudLark } from "./protobuf/cloudlark";
|
|
4
|
+
import ScaleMode from "./utils/scale_mode";
|
|
5
|
+
import { LocalEvent, EventBase } from './event/event_base';
|
|
6
|
+
export interface ContainerSize {
|
|
7
|
+
marginTop: number;
|
|
8
|
+
marginLeft: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ContainerStyle {
|
|
13
|
+
marginTop: string;
|
|
14
|
+
marginLeft: string;
|
|
15
|
+
width: string;
|
|
16
|
+
height: string;
|
|
17
|
+
cursor: any;
|
|
18
|
+
}
|
|
19
|
+
export declare type ScreenOrientation = 'portrait' | 'landscape';
|
|
20
|
+
export declare enum CursorType {
|
|
21
|
+
ARROW = 0,
|
|
22
|
+
IBEAM = 1,
|
|
23
|
+
WAIT = 2,
|
|
24
|
+
CROSS = 3,
|
|
25
|
+
SIZENWSE = 4,
|
|
26
|
+
SIZENESW = 5,
|
|
27
|
+
SIZEWE = 6,
|
|
28
|
+
SIZENS = 7,
|
|
29
|
+
SIZEALL = 8,
|
|
30
|
+
NO = 9,
|
|
31
|
+
HAND = 10,
|
|
32
|
+
CUSTOM = 11,
|
|
33
|
+
DEFAULT = 1000
|
|
34
|
+
}
|
|
35
|
+
export interface SyncCursorStyle {
|
|
36
|
+
type: CursorType;
|
|
37
|
+
hotX: number;
|
|
38
|
+
hotY: number;
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
customBase64: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const enum SCREEN_EVENT_TYPE {
|
|
44
|
+
ReSize = 0
|
|
45
|
+
}
|
|
46
|
+
export interface ScreenEvent extends LocalEvent<SCREEN_EVENT_TYPE> {
|
|
47
|
+
container: ContainerSize;
|
|
48
|
+
viewPort: ViewPort;
|
|
49
|
+
}
|
|
50
|
+
export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEvent> {
|
|
51
|
+
get appSize(): CloudLark.IAppResize;
|
|
52
|
+
set appSize(size: CloudLark.IAppResize);
|
|
53
|
+
private _appSize;
|
|
54
|
+
get viewPort(): ViewPort;
|
|
55
|
+
private _viewPort;
|
|
56
|
+
get viewPortStyle(): string;
|
|
57
|
+
get orientationIndexStyle(): {
|
|
58
|
+
width: string;
|
|
59
|
+
height: string;
|
|
60
|
+
top: string;
|
|
61
|
+
left: string;
|
|
62
|
+
transform: string;
|
|
63
|
+
transformOrigin: string;
|
|
64
|
+
backgroundColor: string;
|
|
65
|
+
} | {
|
|
66
|
+
width: string;
|
|
67
|
+
height: string;
|
|
68
|
+
transform: string;
|
|
69
|
+
transformOrigin: string;
|
|
70
|
+
backgroundColor: string;
|
|
71
|
+
top?: undefined;
|
|
72
|
+
left?: undefined;
|
|
73
|
+
};
|
|
74
|
+
get container(): ContainerSize;
|
|
75
|
+
private _container;
|
|
76
|
+
get containerStyle(): string;
|
|
77
|
+
get screenOrientation(): ScreenOrientation;
|
|
78
|
+
private _screenOrientation;
|
|
79
|
+
get scaleMode(): ScaleMode;
|
|
80
|
+
private _scaleMode;
|
|
81
|
+
get isFullScreen(): boolean;
|
|
82
|
+
private _isFullScreen;
|
|
83
|
+
get isLockMouse(): boolean;
|
|
84
|
+
private _isLockMouse;
|
|
85
|
+
get cursorStyle(): SyncCursorStyle;
|
|
86
|
+
private _cursorStyle;
|
|
87
|
+
get appMouseMode(): CloudLark.IAppMouseMode;
|
|
88
|
+
set appMouseMode(mode: CloudLark.IAppMouseMode);
|
|
89
|
+
private _appMouseMode;
|
|
90
|
+
get operateScale(): {
|
|
91
|
+
scaleX: number;
|
|
92
|
+
scaleY: number;
|
|
93
|
+
};
|
|
94
|
+
get initCursorMode(): boolean;
|
|
95
|
+
private _initCursorMode;
|
|
96
|
+
get isMobile(): boolean;
|
|
97
|
+
private _isMobile;
|
|
98
|
+
get isLocalRenderMouse(): boolean | null | undefined;
|
|
99
|
+
get isLockMosue(): boolean | null | undefined;
|
|
100
|
+
get rootElement(): HTMLElement;
|
|
101
|
+
private _rootElement;
|
|
102
|
+
private videoViewPort;
|
|
103
|
+
private mobileForceLandScape;
|
|
104
|
+
private bgColor;
|
|
105
|
+
private handelRootElementSize;
|
|
106
|
+
constructor(rootElement: HTMLElement, params: IAppliParams, handelRootElementSize?: boolean);
|
|
107
|
+
reset(params: IAppliParams): void;
|
|
108
|
+
resize(): void;
|
|
109
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class SDKAuth {
|
|
2
|
+
get isSuccess(): boolean;
|
|
3
|
+
private _isSuccess;
|
|
4
|
+
get error(): any;
|
|
5
|
+
private _error;
|
|
6
|
+
constructor();
|
|
7
|
+
auth(id: string): Promise<void>;
|
|
8
|
+
signature(key: string, secret: string, timestamp: string): string;
|
|
9
|
+
check(id: string): boolean;
|
|
10
|
+
save(id: string, expire: string): void;
|
|
11
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* keymap
|
|
3
|
-
* scancode 扫描码
|
|
4
|
-
* vkey 虚拟键
|
|
5
|
-
* unicode unicode
|
|
6
|
-
*
|
|
7
|
-
* 108 键键盘 没有 win 键
|
|
8
|
-
* TODO fix:atl + tab, f5,ctr,bug
|
|
9
|
-
* REMOVE F11
|
|
10
|
-
*/
|
|
11
|
-
interface Key {
|
|
12
|
-
scancode: number;
|
|
13
|
-
vkey: number;
|
|
14
|
-
unicode: number;
|
|
15
|
-
}
|
|
16
|
-
declare type tplotOptions = {
|
|
17
|
-
[key: string]: Key;
|
|
18
|
-
};
|
|
19
|
-
export declare const KEYMAP: tplotOptions;
|
|
20
|
-
export {};
|