tcic-electron-sdk 1.7.4425 → 1.8.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/.env +2 -0
- package/.eslintignore +1 -0
- package/build/boardRenderer.d.ts +19 -0
- package/build/boardRenderer.d.ts.map +1 -1
- package/build/class.d.ts +25 -1
- package/build/class.d.ts.map +1 -1
- package/build/isomorphic/appInfo.d.ts +7 -0
- package/build/isomorphic/appInfo.d.ts.map +1 -0
- package/build/isomorphic/sentryConfig.d.ts +5 -0
- package/build/isomorphic/sentryConfig.d.ts.map +1 -0
- package/build/macOSUtil.d.ts +2 -0
- package/build/macOSUtil.d.ts.map +1 -1
- package/build/main/bootstrap.d.ts +3 -0
- package/build/main/bootstrap.d.ts.map +1 -0
- package/build/main/crashReporter.d.ts +3 -0
- package/build/main/crashReporter.d.ts.map +1 -0
- package/build/main/getmac.d.ts +8 -0
- package/build/main/getmac.d.ts.map +1 -0
- package/build/main/sentry.d.ts +30 -0
- package/build/main/sentry.d.ts.map +1 -0
- package/build/main/shared.d.ts +2 -0
- package/build/main/shared.d.ts.map +1 -0
- package/build/mainRenderer.d.ts +24 -7
- package/build/mainRenderer.d.ts.map +1 -1
- package/build/preload/bootstrap.d.ts +3 -0
- package/build/preload/bootstrap.d.ts.map +1 -0
- package/build/preload/crashReporter.d.ts +3 -0
- package/build/preload/crashReporter.d.ts.map +1 -0
- package/build/preload/sentry.d.ts +3 -0
- package/build/preload/sentry.d.ts.map +1 -0
- package/build/tiw-cache.d.ts.map +1 -1
- package/build/types.d.ts +22 -1
- package/build/types.d.ts.map +1 -1
- package/build/update.d.ts +43 -0
- package/build/update.d.ts.map +1 -0
- package/build/version.d.ts +2 -2
- package/build/version.d.ts.map +1 -1
- package/build/windowsUtil.d.ts +1 -0
- package/build/windowsUtil.d.ts.map +1 -1
- package/dist/board.html +13 -9
- package/dist/boardRenderer.bundle.js +1 -1
- package/dist/cameraRenderer.bundle.js +1 -1
- package/dist/config.json +11 -11
- package/dist/main.bundle.js +1 -1
- package/dist/mainRenderer.bundle.js +1 -1
- package/dist/resource.zip +0 -0
- package/dist/videoRenderer.bundle.js +1 -1
- package/dist/view/update.html +285 -0
- package/package.json +24 -8
- package/readme.md +5 -1
- package/build/main.d.ts +0 -10
- package/build/main.d.ts.map +0 -1
- package/build/sentry.d.ts +0 -4
- package/build/sentry.d.ts.map +0 -1
package/.env
ADDED
package/.eslintignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
build/
|
package/build/boardRenderer.d.ts
CHANGED
|
@@ -1,2 +1,21 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
TEduBoard: any;
|
|
4
|
+
BoardRender: typeof BoardRender;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
declare class BoardRender {
|
|
8
|
+
static TEduBoard: any;
|
|
9
|
+
static teduBoard: any;
|
|
10
|
+
static boardElement: any;
|
|
11
|
+
static boardWrapElement: any;
|
|
12
|
+
static screenWidth: number;
|
|
13
|
+
static screenHeight: number;
|
|
14
|
+
static callMethodCache: any;
|
|
15
|
+
static isBoardReady: boolean;
|
|
16
|
+
static setVisibleRect(bounds: any): void;
|
|
17
|
+
static updateCursor(): void;
|
|
18
|
+
static callBoardMethod(arg: any): void;
|
|
19
|
+
}
|
|
1
20
|
export {};
|
|
2
21
|
//# sourceMappingURL=boardRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boardRenderer.d.ts","sourceRoot":"","sources":["../src/boardRenderer.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"boardRenderer.d.ts","sourceRoot":"","sources":["../src/boardRenderer.ts"],"names":[],"mappings":"AAaA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,EAAE,GAAG,CAAC;QACf,WAAW,EAAE,OAAO,WAAW,CAAC;KACjC;CACF;AAED,cAAM,WAAW;IACf,OAAc,SAAS,EAAE,GAAG,CAAoB;IAChD,OAAc,SAAS,EAAE,GAAG,CAAQ;IACpC,OAAc,YAAY,EAAE,GAAG,CAAQ;IACvC,OAAc,gBAAgB,EAAE,GAAG,CAAQ;IAC3C,OAAc,WAAW,SAAK;IAC9B,OAAc,YAAY,SAAK;IAC/B,OAAc,eAAe,EAAE,GAAG,CAAM;IACxC,OAAc,YAAY,UAAS;WACrB,cAAc,CAAC,MAAM,EAAE,GAAG;WA4B1B,YAAY;WA8HZ,eAAe,CAAC,GAAG,EAAE,GAAG;CAQvC"}
|
package/build/class.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export interface InitializeOptions {
|
|
|
27
27
|
classSubType: string;
|
|
28
28
|
token: string;
|
|
29
29
|
lng?: string;
|
|
30
|
+
version?: string;
|
|
30
31
|
scene?: string;
|
|
31
32
|
debugCss?: string;
|
|
32
33
|
debugJs?: string;
|
|
@@ -37,10 +38,19 @@ export interface InitializeOptions {
|
|
|
37
38
|
sign?: string;
|
|
38
39
|
cid?: string;
|
|
39
40
|
uid?: string;
|
|
41
|
+
afterInit?: () => void;
|
|
42
|
+
}
|
|
43
|
+
export interface IShareWindowBounds {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
isMinimized?: boolean;
|
|
40
49
|
}
|
|
41
50
|
export declare class TencentCloudClass extends TLoggerElectronModule {
|
|
42
51
|
private initializeOption;
|
|
43
52
|
private classUrl;
|
|
53
|
+
private boardUrl;
|
|
44
54
|
private windowTitle;
|
|
45
55
|
private tcicMainView;
|
|
46
56
|
private tcicBoardView;
|
|
@@ -55,6 +65,7 @@ export declare class TencentCloudClass extends TLoggerElectronModule {
|
|
|
55
65
|
private touchScreenOptimizeEnabled;
|
|
56
66
|
private touchScreenOptimizePerformed;
|
|
57
67
|
private screenShareMainWindowMouseEventIgnored;
|
|
68
|
+
private screenShareBoardWindowMouseEventIgnored;
|
|
58
69
|
private mainViewDevTools;
|
|
59
70
|
private boardViewDevTools;
|
|
60
71
|
private videoWindowDevTools;
|
|
@@ -82,6 +93,11 @@ export declare class TencentCloudClass extends TLoggerElectronModule {
|
|
|
82
93
|
private shareBoardWindowDisplay;
|
|
83
94
|
private wss;
|
|
84
95
|
private userId;
|
|
96
|
+
private clickableRects;
|
|
97
|
+
private clickableAreaDetectMode;
|
|
98
|
+
constructor();
|
|
99
|
+
sendUpdateMessage(text?: string, detail?: any): void;
|
|
100
|
+
get wins(): any;
|
|
85
101
|
/**
|
|
86
102
|
* 初始化TCIC
|
|
87
103
|
* @param opt
|
|
@@ -105,7 +121,11 @@ export declare class TencentCloudClass extends TLoggerElectronModule {
|
|
|
105
121
|
protected _getClassName(): string;
|
|
106
122
|
private closeScreenShareBoardWindow;
|
|
107
123
|
private seriousErrorHandler;
|
|
124
|
+
private isPointInsideRect;
|
|
125
|
+
private isPointInsideClickableRects;
|
|
126
|
+
private isPointInTransparentArea;
|
|
108
127
|
/**
|
|
128
|
+
* debounced
|
|
109
129
|
* 检测屏幕分享主窗口指定坐标点是否透明,如果透明则开启点击穿透
|
|
110
130
|
* @param x 屏幕X坐标
|
|
111
131
|
* @param y 屏幕Y坐标
|
|
@@ -145,7 +165,11 @@ export declare class TencentCloudClass extends TLoggerElectronModule {
|
|
|
145
165
|
*/
|
|
146
166
|
private createAndInitBoardView;
|
|
147
167
|
/**
|
|
148
|
-
*
|
|
168
|
+
* 重新创建共享白板窗口
|
|
169
|
+
*/
|
|
170
|
+
private recreateScreenShareBoardWindow;
|
|
171
|
+
/**
|
|
172
|
+
* 创建共享白板窗口
|
|
149
173
|
*/
|
|
150
174
|
private createAndInitScreenShareBoardWindow;
|
|
151
175
|
/**
|
package/build/class.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../src/class.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../src/class.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,SAAU,OAAO,SAEvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentryConfig.d.ts","sourceRoot":"","sources":["../../src/isomorphic/sentryConfig.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY;;;CAQxB,CAAC"}
|
package/build/macOSUtil.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export declare function getWindowBounds(windowId: number): {
|
|
|
4
4
|
y: number;
|
|
5
5
|
width: number;
|
|
6
6
|
height: number;
|
|
7
|
+
isMinimized: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare function macOSVersion(): string;
|
|
9
10
|
export declare function requestScreenCaptureAccess(): void;
|
|
11
|
+
export declare function hasScreenCapturePermission(): boolean;
|
|
10
12
|
//# sourceMappingURL=macOSUtil.d.ts.map
|
package/build/macOSUtil.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"macOSUtil.d.ts","sourceRoot":"","sources":["../src/macOSUtil.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"macOSUtil.d.ts","sourceRoot":"","sources":["../src/macOSUtil.ts"],"names":[],"mappings":"AA6EA,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA4BxD;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM;;;;;;EA6C/C;AA0BD,wBAAgB,YAAY,WAa3B;AAGD,wBAAgB,0BAA0B,SA8BzC;AAED,wBAAgB,0BAA0B,YAEzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/main/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAQ,UAAU,CAAC;AAQnB,eAAO,MAAM,SAAS,YA6BrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crashReporter.d.ts","sourceRoot":"","sources":["../../src/main/crashReporter.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC;AAUlB,eAAO,MAAM,kBAAkB,YAiC9B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the first proper MAC address
|
|
3
|
+
* @param iface If provided, restrict MAC address fetching to this interface
|
|
4
|
+
*/
|
|
5
|
+
export declare function getMAC(iface?: string): string;
|
|
6
|
+
/** Check if the input is a valid MAC address */
|
|
7
|
+
export declare function isMAC(macAddress: string): boolean;
|
|
8
|
+
//# sourceMappingURL=getmac.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getmac.d.ts","sourceRoot":"","sources":["../../src/main/getmac.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CA6B7C;AAED,gDAAgD;AAChD,wBAAgB,KAAK,CAAC,UAAU,EAAE,MAAM,WAEvC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Sentry from '@sentry/electron/main';
|
|
2
|
+
declare class SentryWrapper {
|
|
3
|
+
private static inst;
|
|
4
|
+
static get instance(): SentryWrapper;
|
|
5
|
+
private inited;
|
|
6
|
+
private appStartUpTrans;
|
|
7
|
+
private appStartUpSpans;
|
|
8
|
+
private init;
|
|
9
|
+
startUpAppChildSpan(spanCtx: SpanCtx): {
|
|
10
|
+
finish(): void;
|
|
11
|
+
} | import("@sentry/node").Span;
|
|
12
|
+
finishAppStartUpTrans(endTimestamp?: number): void;
|
|
13
|
+
startTransWithSpans(startTransArgs: StartTransArgs, ...spanCtxs: SpanCtx[]): {
|
|
14
|
+
trans: Transaction;
|
|
15
|
+
spans: any[];
|
|
16
|
+
};
|
|
17
|
+
setUserId(userId: string): void;
|
|
18
|
+
addClue(breadcrumb: Sentry.Breadcrumb): void;
|
|
19
|
+
startTransaction(...args: StartTransArgs): Transaction;
|
|
20
|
+
captureMsg: typeof Sentry.captureMessage;
|
|
21
|
+
captureError: typeof Sentry.captureException;
|
|
22
|
+
closeAndFlush: () => Promise<boolean>;
|
|
23
|
+
}
|
|
24
|
+
export declare const sentry: SentryWrapper;
|
|
25
|
+
type StartTransArgs = Parameters<typeof Sentry.startTransaction>;
|
|
26
|
+
type Transaction = ReturnType<Sentry.Hub['startTransaction']>;
|
|
27
|
+
type StartSpan = ReturnType<Sentry.Hub['startTransaction']>['startChild'];
|
|
28
|
+
type SpanCtx = Parameters<StartSpan>[0];
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=sentry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentry.d.ts","sourceRoot":"","sources":["../../src/main/sentry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAmDhD,cAAM,aAAa;IACjB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAgB;IACnC,WAAkB,QAAQ,kBAMzB;IACD,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,eAAe,CAAc;IAErC,OAAO,CAAC,IAAI;IAiGL,mBAAmB,CAAC,OAAO,EAAE,OAAO;;;IAapC,qBAAqB,CAAC,YAAY,CAAC,EAAE,MAAM;IAiB3C,mBAAmB,CACxB,cAAc,EAAE,cAAc,EAC9B,GAAG,QAAQ,EAAE,OAAO,EAAE,GACrB;QAAE,KAAK,EAAE,WAAW,CAAC;QAAC,KAAK,EAAE,GAAG,EAAE,CAAA;KAAE;IA6BhC,SAAS,CAAC,MAAM,EAAE,MAAM;IAKxB,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU;IAIrC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,GAAG,WAAW;IAStD,UAAU,+BAAyB;IAGnC,YAAY,EAAE,OAAO,MAAM,CAAC,gBAAgB,CASjD;IAGK,aAAa,yBAOlB;CACH;AAWD,eAAO,MAAM,MAAM,eAAyB,CAAC;AAE7C,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACjE,KAAK,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAE9D,KAAK,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;AAC1E,KAAK,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/main/shared.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,eAAe,QAAS,CAAC"}
|
package/build/mainRenderer.d.ts
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
|
+
import './preload/bootstrap';
|
|
2
|
+
import TRTCCloud from 'trtc-electron-sdk';
|
|
3
|
+
import * as TRTCDefine from 'trtc-electron-sdk/liteav/trtc_define';
|
|
4
|
+
export interface RendererGlobal {
|
|
5
|
+
TRTCCloud: typeof TRTCCloud;
|
|
6
|
+
TRTCDefine: typeof TRTCDefine;
|
|
7
|
+
TCIC: any;
|
|
8
|
+
TCICUI: any;
|
|
9
|
+
screenShareSnapshotCallback: (data: any) => void;
|
|
10
|
+
}
|
|
1
11
|
declare global {
|
|
2
|
-
interface Window {
|
|
3
|
-
TRTCCloud: any;
|
|
4
|
-
TRTCDefine: any;
|
|
12
|
+
interface Window extends RendererGlobal {
|
|
5
13
|
Electron: any;
|
|
6
|
-
TCIC: any;
|
|
7
|
-
TCICUI: any;
|
|
8
|
-
screenShareSnapshotCallback: (data: any) => void;
|
|
9
14
|
}
|
|
10
15
|
}
|
|
11
|
-
|
|
16
|
+
/**
|
|
17
|
+
* 浏览器界面注入脚本
|
|
18
|
+
* "#replace#"作为传参更新
|
|
19
|
+
*/
|
|
20
|
+
export declare function insertUpdateDom(): void;
|
|
21
|
+
/**
|
|
22
|
+
* 获取模板
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* 获取web端执行的脚本字符串
|
|
26
|
+
* @param fn
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
12
29
|
//# sourceMappingURL=mainRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mainRenderer.d.ts","sourceRoot":"","sources":["../src/mainRenderer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mainRenderer.d.ts","sourceRoot":"","sources":["../src/mainRenderer.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,CAAC;AAG7B,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAC1C,OAAO,KAAK,UAAU,MAAM,sCAAsC,CAAC;AAYnE,MAAM,WAAW,cAAc;IAE7B,SAAS,EAAE,OAAO,SAAS,CAAC;IAC5B,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,EAAE,GAAG,CAAC;IACZ,2BAA2B,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;CAClD;AACD,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,MAAO,SAAQ,cAAc;QACrC,QAAQ,EAAE,GAAG,CAAC;KAEf;CACF;AA6eD;;;GAGG;AACH,wBAAgB,eAAe,SAe9B;AAsLD;;GAEG;AAkBH;;;;GAIG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/preload/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC;AAClC,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crashReporter.d.ts","sourceRoot":"","sources":["../../src/preload/crashReporter.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC;AAIlB,eAAO,MAAM,kBAAkB,YAsB9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentry.d.ts","sourceRoot":"","sources":["../../src/preload/sentry.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,UAAU,qBAEtB,CAAC;AAEF,eAAO,MAAM,WAAW,qBAqCvB,CAAC"}
|
package/build/tiw-cache.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiw-cache.d.ts","sourceRoot":"","sources":["../src/tiw-cache.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,WAAW,EACZ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"tiw-cache.d.ts","sourceRoot":"","sources":["../src/tiw-cache.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,WAAW,EACZ,MAAM,UAAU,CAAC;AASlB,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAqED,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAe;IACzD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAgB;IAC3D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAQ9C;IAEF,OAAO,CAAC,MAAM,CAAC,eAAe,CAA6B;IAC3D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAS;IAChC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAwB;IAC7C,OAAO,CAAC,MAAM,CAAC,aAAa,CAAS;IACrC,OAAO,CAAC,MAAM,CAAC,OAAO,C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O,CAAC,MAAM,CAAC,cAAc;IAI7B,OAAO,CAAC,MAAM,CAAC,cAAc;IAI7B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAOhC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAOlC,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAgCvC,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAoCpC,OAAO,CAAC,MAAM,CAAC,6BAA6B;IAc5C,OAAO,CAAC,MAAM,CAAC,aAAa;IA+B5B,OAAO,CAAC,MAAM,CAAC,qBAAqB;CAUrC"}
|
package/build/types.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import electron from 'electron';
|
|
2
|
+
declare module 'electron' {
|
|
3
|
+
interface WebContents {
|
|
4
|
+
destroy: undefined | (() => void);
|
|
5
|
+
__sentryName: string;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
2
8
|
export interface IPCListenerPair {
|
|
3
9
|
channel: string;
|
|
4
10
|
listener: (event: electron.IpcMainEvent, ...args: any[]) => void;
|
|
@@ -13,8 +19,23 @@ export interface IPCCall {
|
|
|
13
19
|
params: any[];
|
|
14
20
|
}
|
|
15
21
|
export interface ScreenShareParams {
|
|
16
|
-
type:
|
|
22
|
+
type: 0 | 1;
|
|
17
23
|
displayId: string;
|
|
18
24
|
followTarget: boolean;
|
|
19
25
|
}
|
|
26
|
+
export type ScreenBoardToolType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
27
|
+
export interface IPCClickableArea {
|
|
28
|
+
rects: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
}[];
|
|
34
|
+
}
|
|
35
|
+
export interface IPCClickableAreaDetectMode {
|
|
36
|
+
mode: 'screenCapture' | 'domRect';
|
|
37
|
+
}
|
|
38
|
+
declare global {
|
|
39
|
+
var dbg: any;
|
|
40
|
+
}
|
|
20
41
|
//# sourceMappingURL=types.d.ts.map
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CAClE;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAC1F;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,GAAG,EAAE,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAU,WAAW;QAEnB,OAAO,EAAE,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;QAElC,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CAClE;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAC1F;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,GAAG,EAAE,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,mBAAmB,GAAG,CAAC,GACjC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEpC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;CAChE;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,eAAe,GAAG,SAAS,CAAA;CAClC;AAED,OAAO,CAAC,MAAM,CAAC;IAGb,IAAI,GAAG,EAAE,GAAG,CAAC;CAId"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="electron" />
|
|
2
|
+
type UpdateEventName = "error" | "checking-for-update" | "update-available" | "update-not-available" | "download-progress" | "update-downloaded";
|
|
3
|
+
/**
|
|
4
|
+
* 浏览器界面注入脚本
|
|
5
|
+
* "#replace#"作为传参更新
|
|
6
|
+
*/
|
|
7
|
+
export declare function insertUpdateDom(): void;
|
|
8
|
+
/**
|
|
9
|
+
* 获取web端执行的脚本字符串
|
|
10
|
+
* @param fn
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function getWebjs(fn: any, arg: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* 设置更新地址,并绑定事件
|
|
16
|
+
* @param param
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare function setUpdateUrl(param: {
|
|
20
|
+
url: string;
|
|
21
|
+
notifiView?: Electron.BrowserView["webContents"];
|
|
22
|
+
cb?: (eventName: UpdateEventName, arg?: any) => any;
|
|
23
|
+
}): void;
|
|
24
|
+
/**
|
|
25
|
+
* 检查更新
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
export declare function checkUpdate(): void;
|
|
29
|
+
/**
|
|
30
|
+
* 唤起下载
|
|
31
|
+
*/
|
|
32
|
+
export declare function downloadUpdate(): void;
|
|
33
|
+
/**
|
|
34
|
+
* 判断是否正在更新
|
|
35
|
+
* @returns boolean
|
|
36
|
+
*/
|
|
37
|
+
export declare function getUpdateStatus(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 退出并且下载
|
|
40
|
+
*/
|
|
41
|
+
export declare function quitAndInstall(): void;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../src/update.ts"],"names":[],"mappings":";AAYA,KAAK,eAAe,GAChB,OAAO,GACP,qBAAqB,GACrB,kBAAkB,GAClB,sBAAsB,GACtB,mBAAmB,GACnB,mBAAmB,CAAC;AAoCxB;;;GAGG;AACH,wBAAgB,eAAe,SAc9B;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,UAG5C;AACD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IACjD,EAAE,CAAC,EAAE,CAAC,SAAS,EAAE,eAAe,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;CACrD,QAgJA;AAED;;;GAGG;AACH,wBAAgB,WAAW,SAO1B;AA8BD;;GAEG;AACH,wBAAgB,cAAc,SAG7B;AAED;;;GAGG;AACH,wBAAgB,eAAe,YAE9B;AACD;;GAEG;AACH,wBAAgB,cAAc,SAa7B"}
|
package/build/version.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const tcicSdkVersion
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const tcicSdkVersion: string;
|
|
2
|
+
export declare const tcicSdkBranch = "";
|
|
3
3
|
//# sourceMappingURL=version.d.ts.map
|
package/build/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc,QAAe,CAAC;AAC3C,eAAO,MAAM,aAAa,KAAK,CAAC"}
|
package/build/windowsUtil.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare function getWindowBounds(hWnd: number): {
|
|
|
17
17
|
y: number;
|
|
18
18
|
width: number;
|
|
19
19
|
height: number;
|
|
20
|
+
isMinimized: boolean;
|
|
20
21
|
};
|
|
21
22
|
export declare function getDesktopBounds(displayIndexOfTRTC: number): any;
|
|
22
23
|
export declare function isWin7(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windowsUtil.d.ts","sourceRoot":"","sources":["../src/windowsUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"windowsUtil.d.ts","sourceRoot":"","sources":["../src/windowsUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AAgHrC,wBAAsB,cAAc,oBAgBnC;AAED,wBAAgB,aAAa,QAM5B;AAED,wBAAgB,qBAAqB;;;EAUpC;AAED,wBAAsB,mCAAmC,qBAQxD;AAED,wBAAsB,oCAAoC,CAAC,OAAO,EAAE,OAAO,oBAU1E;AAED,wBAAsB,kCAAkC,qBAavD;AAED,wBAAsB,mCAAmC,CAAC,OAAO,EAAE,OAAO,oBAkBzE;AAED,wBAAsB,+BAA+B,qBAapD;AAED,wBAAsB,gCAAgC,CAAC,IAAI,EAAE,OAAO,oBAkBnE;AAED,wBAAsB,aAAa,CAAC,aAAa,EAAE,QAAQ,CAAC,aAAa,EAAE,UAAU,EAAE,OAAO,oBAS7F;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM;;;;;;EAuB3C;AAGD,wBAAgB,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,OAmC1D;AAED,wBAAgB,MAAM,YASrB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAKxD"}
|
package/dist/board.html
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html>
|
|
3
|
+
|
|
3
4
|
<head>
|
|
4
5
|
<meta charset="UTF-8">
|
|
5
6
|
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
<!-- COS SDK -->
|
|
12
13
|
<script src="https://res.qcloudtiw.com/board/third/cos/5.1.0/cos.min.js"></script>
|
|
13
14
|
<!-- TEduBoard SDK -->
|
|
14
|
-
<script src="https://res.qcloudtiw.com/board/2.
|
|
15
|
+
<script src="https://res.qcloudtiw.com/board/2.8.3/TEduBoard.min.js"></script>
|
|
15
16
|
|
|
16
17
|
<style>
|
|
17
18
|
* {
|
|
@@ -19,7 +20,8 @@
|
|
|
19
20
|
padding: 0;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
html,
|
|
23
|
+
html,
|
|
24
|
+
body {
|
|
23
25
|
width: 100%;
|
|
24
26
|
height: 100%;
|
|
25
27
|
overflow: hidden;
|
|
@@ -38,12 +40,14 @@
|
|
|
38
40
|
}
|
|
39
41
|
</style>
|
|
40
42
|
</head>
|
|
43
|
+
|
|
41
44
|
<body>
|
|
42
|
-
<div id="board-wrap">
|
|
43
|
-
|
|
44
|
-
</div>
|
|
45
|
-
<!-- You can also require other files to run in this process -->
|
|
46
|
-
<script> var exports = {}; </script>
|
|
47
|
-
<script src="./boardRenderer.bundle.js"></script>
|
|
45
|
+
<div id="board-wrap">
|
|
46
|
+
<div id="board"></div>
|
|
47
|
+
</div>
|
|
48
|
+
<!-- You can also require other files to run in this process -->
|
|
49
|
+
<script> var exports = {}; </script>
|
|
50
|
+
<script src="./boardRenderer.bundle.js"></script>
|
|
48
51
|
</body>
|
|
49
|
-
|
|
52
|
+
|
|
53
|
+
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={761:function(e,t,o){var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){void 0===r&&(r=o),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,r){void 0===r&&(r=o),e[r]=t[o]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const s=o(933),i=d(o(280));o(376).initSentry();class a{static setVisibleRect(e){e?(0!==a.screenHeight&&0!==a.screenWidth||(a.screenHeight=screen.height,a.screenWidth=screen.width,a.boardElement.style.width=`${screen.width}px`,a.boardElement.style.height=`${screen.height}px`),a.boardWrapElement.style.width=`${e.width}px`,a.boardWrapElement.style.height=`${e.height}px`,a.boardWrapElement.style.left=`${e.x}px`,a.boardWrapElement.style.top=`${e.y}px`,a.boardWrapElement.style.position="absolute"):(a.boardWrapElement.removeAttribute("style"),a.boardElement.removeAttribute("style"))}static updateCursor(){if(!a.teduBoard)return;const e=a.teduBoard.getToolType(),t=a.teduBoard.getBrushColor();if(e===a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_PEN){const o=`data:image/svg+xml;charset=utf-8,${escape(`<?xml version="1.0" encoding="UTF-8"?><svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>mouse_pen</title>\n <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="光标及状态栏状态" transform="translate(-89.000000, -268.000000)">\n <g id="mouse_pen" transform="translate(89.000000, 268.000000)">\n <rect id="矩形" x="0" y="0" width="40" height="40"></rect>\n <g id="编组-13" transform="translate(8.000000, 3.000000)" fill="${t}" stroke="#182E25">\n <path d="M0.756984031,32.1383216 L3.68816089e-13,26.5292023 L17.8941729,7.81597009e-14 L24.5264735,4.47354323 L6.63230058,31.0027455 L0.756984031,32.1383216 Z" id="形状结合"></path>\n </g>\n </g>\n </g>\n </g>\n </svg>`)}`;a.teduBoard.setCursorIcon(e,{cursor:"url",url:o,offsetX:10,offsetY:40})}else if(e===a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_LINE){const o=`<?xml version="1.0" encoding="UTF-8"?>\n <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>mouse_line</title>\n <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="光标及状态栏状态" transform="translate(-785.000000, -272.000000)">\n <g id="mouse_line" transform="translate(785.000000, 272.000000)">\n <g id="编组-3">\n <rect id="矩形" x="0" y="0" width="40" height="40"></rect>\n <g id="编组" transform="translate(2.628157, 2.500000)" fill="#000000" stroke="#FFFFFF">\n <path d="M19.6574089,0 L19.657,15.5 L34.6259534,15.5 L34.6259534,19.5 L19.657,19.5 L19.6574089,35 L15.6574089,35 L15.657,19.5 L-1.13686838e-13,19.5 L-1.13686838e-13,15.5 L15.657,15.5 L15.6574089,0 L19.6574089,0 Z" id="形状结合"></path>\n </g>\n </g>\n <line x1="28.5" y1="7.5" x2="36.5" y2="7.5" id="直线-6" stroke="${t}" stroke-width="2" stroke-linecap="square"></line>\n </g>\n </g>\n </g>\n </svg>`,r=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(o)))}`;a.teduBoard.setCursorIcon(e,{cursor:"url",url:r,offsetX:20,offsetY:20})}else if(e===a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_RECT){const o=`<?xml version="1.0" encoding="UTF-8"?>\n <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>mouse_rectangle</title>\n <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="光标及状态栏状态" transform="translate(-551.000000, -272.000000)">\n <g id="mouse_rectangle" transform="translate(551.000000, 272.000000)">\n <g id="编组-3">\n <rect id="矩形" x="0" y="0" width="40" height="40"></rect>\n <g id="编组" transform="translate(2.628157, 2.500000)" fill="#000000" stroke="#FFFFFF">\n <path d="M19.6574089,0 L19.657,15.5 L34.6259534,15.5 L34.6259534,19.5 L19.657,19.5 L19.6574089,35 L15.6574089,35 L15.657,19.5 L-1.13686838e-13,19.5 L-1.13686838e-13,15.5 L15.657,15.5 L15.6574089,0 L19.6574089,0 Z" id="形状结合"></path>\n </g>\n </g>\n <rect id="矩形" stroke="${t}" stroke-width="2" x="28" y="3" width="8" height="8"></rect>\n </g>\n </g>\n </g>\n </svg>`,r=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(o)))}`;a.teduBoard.setCursorIcon(e,{cursor:"url",url:r,offsetX:20,offsetY:20}),a.teduBoard.setCursorIcon(a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_SQUARE,{cursor:"url",url:r,offsetX:20,offsetY:20})}else if(e===a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_OVAL){const o=`<?xml version="1.0" encoding="UTF-8"?>\n <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>mouse_circle</title>\n <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="光标及状态栏状态" transform="translate(-323.000000, -272.000000)">\n <g id="mouse_circle" transform="translate(323.000000, 272.000000)">\n <g id="编组-3">\n <rect id="矩形" x="0" y="0" width="40" height="40"></rect>\n <g id="编组" transform="translate(2.628157, 2.500000)" fill="#000000" stroke="#FFFFFF">\n <path d="M19.6574089,0 L19.657,15.5 L34.6259534,15.5 L34.6259534,19.5 L19.657,19.5 L19.6574089,35 L15.6574089,35 L15.657,19.5 L-1.13686838e-13,19.5 L-1.13686838e-13,15.5 L15.657,15.5 L15.6574089,0 L19.6574089,0 Z" id="形状结合"></path>\n </g>\n </g>\n <circle id="椭圆形" stroke="${t}" stroke-width="2" cx="32" cy="7" r="4"></circle>\n </g>\n </g>\n </g>\n </svg>`,r=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(o)))}`;a.teduBoard.setCursorIcon(e,{cursor:"url",url:r,offsetX:20,offsetY:20}),a.teduBoard.setCursorIcon(a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_CIRCLE,{cursor:"url",url:r,offsetX:20,offsetY:20})}a.teduBoard.setToolType(e)}static callBoardMethod(e){console.log("callBoardMethod",a.teduBoard,JSON.stringify(e)),a.teduBoard&&(a.teduBoard[e.method].apply(a.teduBoard,e.params),a.updateCursor())}}a.TEduBoard=window.TEduBoard,a.teduBoard=null,a.boardElement=null,a.boardWrapElement=null,a.screenWidth=0,a.screenHeight=0,a.callMethodCache=[],a.isBoardReady=!1,window.BoardRender=a,s.ipcRenderer.on("initBoard",((e,t)=>{const o=window.BoardRender;if(o.teduBoard)return;const r={id:"board",sdkAppId:t.sdkAppId,classId:t.roomId,userId:t.userId,userSig:t.userSig,ratio:`${screen.width}:${screen.height}`,systemCursorEnable:!1,enableLocalMode:!0,styleConfig:{globalBackgroundColor:"rgba(0, 0, 0, 0.01)",textColor:"#ff0000",selectBoxColor:"#727272",cursorSize:[40,40],brushThin:50,selectAnchorColor:"#006eff"}};o.teduBoard=new o.TEduBoard(r),o.teduBoard.on(o.TEduBoard.EVENT.TEB_ERROR,((e,t)=>{})),o.teduBoard.on(o.TEduBoard.EVENT.TEB_WARNING,((e,t)=>{})),o.teduBoard.on(o.TEduBoard.EVENT.TEB_HISTROYDATA_SYNCCOMPLETED,(()=>{o.teduBoard.setToolType(o.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_MOUSE),o.teduBoard.setHandwritingEnable(!0),o.teduBoard.setCursorIcon(o.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_ERASER,{cursor:"url",url:"https://res.qcloudtiw.com/board/icons/xkt/eraser.svg",offsetX:7,offsetY:25}),o.updateCursor(),0===o.callMethodCache.length?o.teduBoard.setToolType(0):(o.callMethodCache.forEach((e=>{o.callBoardMethod(e)})),o.callMethodCache=[]),o.isBoardReady=!0})),o.teduBoard.on(o.TEduBoard.EVENT.TEB_SNAPSHOT,(e=>{s.ipcRenderer.send("onScreenShareSnapshot",e)})),o.teduBoard.on(o.TEduBoard.EVENT.TEB_OPERATE_CANREDO_STATUS_CHANGED,(e=>{s.ipcRenderer.send("onBoardCanRedoChange",e)})),o.teduBoard.on(o.TEduBoard.EVENT.TEB_OPERATE_CANUNDO_STATUS_CHANGED,(e=>{s.ipcRenderer.send("onBoardCanUndoChange",e)})),o.setVisibleRect(t.shareWindowBounds)})),s.ipcRenderer.on("onShareWindowBoundsChanged",((e,t)=>{window.BoardRender.setVisibleRect(t)})),s.ipcRenderer.on("callMethod",((e,t)=>{const o=window.BoardRender;o.isBoardReady?o.callBoardMethod(t):o.callMethodCache.push(t)}));const l=["touchstart","touchend"];s.ipcRenderer.on("enableWatchMouseMoveEvent",((e,t)=>{i.watchEvents(document,l,t)})),window.onload=()=>{a.boardWrapElement=document.getElementById("board-wrap"),a.boardElement=document.getElementById("board")}},280:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchEvents=void 0;const r=o(933);o(376).initSentry();const n=e=>{let t,o;if(e instanceof TouchEvent?(t=Math.round(e.changedTouches[0].screenX),o=Math.round(e.changedTouches[0].screenY)):(t=e.screenX,o=e.screenY),0!==t||0!==o){const n={type:e.type,x:t,y:o};r.ipcRenderer.send("onMouseEvent",n),console.log("onMouseEvent",n)}};t.watchEvents=function(e,t,o){t.forEach((t=>{o?e.addEventListener(t,n,{capture:!0,passive:!1}):e.removeEventListener(t,n,{capture:!0})}))}},376:function(e,t,o){var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){void 0===r&&(r=o),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,r){void 0===r&&(r=o),e[r]=t[o]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.initSentry=t.setReportInfo=void 0;const s=d(o(933)),i=o(425),a=o(648),l={userId:""};function c(e,t=null){l.userId=e,i.configureScope((e=>{console.log("setReportInfo",a.tcicSdkVersion,l.userId),e.setTag("extra.sdk",a.tcicSdkVersion),e.setUser({id:l.userId})})),t&&t.send("setReportInfo",e)}t.setReportInfo=c,"renderer"===process.type&&s.ipcRenderer.on("setReportInfo",((e,t)=>{c(t)})),t.initSentry=function(){const e={appName:"tcic-electron-sdk",dsn:"https://9497a4f3e4e64dddb4dd2b2f12b39a7a@sentry.qcloudtiw.com/2",enableJavaScript:"renderer"!==process.type};i.init(e)}},648:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tcicSdkVersionDir=t.tcicSdkVersion=void 0,t.tcicSdkVersion="1.7.4.425",t.tcicSdkVersionDir="1.7.4.beta"},425:e=>{e.exports=require("@sentry/electron")},933:e=>{e.exports=require("electron")}},t={};!function o(r){var n=t[r];if(void 0!==n)return n.exports;var d=t[r]={exports:{}};return e[r].call(d.exports,d,d.exports,o),d.exports}(761)})();
|
|
1
|
+
(()=>{"use strict";var e={71:function(e,t,o){var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const i=o(933),s=d(o(818));(0,o(664).initSentry)();class a{static setVisibleRect(e){if(e){const{boardElement:t,boardWrapElement:o}=a;0!==a.screenHeight&&0!==a.screenWidth||(a.screenHeight=screen.height,a.screenWidth=screen.width,t.style.width=`${screen.width}px`,t.style.height=`${screen.height}px`),o.style.width=`${e.width}px`,o.style.height=`${e.height}px`,o.style.left=`${e.x}px`,o.style.top=`${e.y}px`,o.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.bottom="0px",t.style.right="0px",t.style.position="absolute"}else a.boardWrapElement.removeAttribute("style"),a.boardElement.removeAttribute("style")}static updateCursor(){if(!a.teduBoard)return;const e=a.teduBoard.getToolType(),t=a.teduBoard.getBrushColor();if(e===a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_PEN){const o=`data:image/svg+xml;charset=utf-8,${escape(`<?xml version="1.0" encoding="UTF-8"?><svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>mouse_pen</title>\n <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="光标及状态栏状态" transform="translate(-89.000000, -268.000000)">\n <g id="mouse_pen" transform="translate(89.000000, 268.000000)">\n <rect id="矩形" x="0" y="0" width="40" height="40"></rect>\n <g id="编组-13" transform="translate(8.000000, 3.000000)" fill="${t}" stroke="#182E25">\n <path d="M0.756984031,32.1383216 L3.68816089e-13,26.5292023 L17.8941729,7.81597009e-14 L24.5264735,4.47354323 L6.63230058,31.0027455 L0.756984031,32.1383216 Z" id="形状结合"></path>\n </g>\n </g>\n </g>\n </g>\n </svg>`)}`;a.teduBoard.setCursorIcon(e,{cursor:"url",url:o,offsetX:10,offsetY:40})}else if(e===a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_LINE){const o=`<?xml version="1.0" encoding="UTF-8"?>\n <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>mouse_line</title>\n <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="光标及状态栏状态" transform="translate(-785.000000, -272.000000)">\n <g id="mouse_line" transform="translate(785.000000, 272.000000)">\n <g id="编组-3">\n <rect id="矩形" x="0" y="0" width="40" height="40"></rect>\n <g id="编组" transform="translate(2.628157, 2.500000)" fill="#000000" stroke="#FFFFFF">\n <path d="M19.6574089,0 L19.657,15.5 L34.6259534,15.5 L34.6259534,19.5 L19.657,19.5 L19.6574089,35 L15.6574089,35 L15.657,19.5 L-1.13686838e-13,19.5 L-1.13686838e-13,15.5 L15.657,15.5 L15.6574089,0 L19.6574089,0 Z" id="形状结合"></path>\n </g>\n </g>\n <line x1="28.5" y1="7.5" x2="36.5" y2="7.5" id="直线-6" stroke="${t}" stroke-width="2" stroke-linecap="square"></line>\n </g>\n </g>\n </g>\n </svg>`,n=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(o)))}`;a.teduBoard.setCursorIcon(e,{cursor:"url",url:n,offsetX:20,offsetY:20})}else if(e===a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_RECT){const o=`<?xml version="1.0" encoding="UTF-8"?>\n <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>mouse_rectangle</title>\n <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="光标及状态栏状态" transform="translate(-551.000000, -272.000000)">\n <g id="mouse_rectangle" transform="translate(551.000000, 272.000000)">\n <g id="编组-3">\n <rect id="矩形" x="0" y="0" width="40" height="40"></rect>\n <g id="编组" transform="translate(2.628157, 2.500000)" fill="#000000" stroke="#FFFFFF">\n <path d="M19.6574089,0 L19.657,15.5 L34.6259534,15.5 L34.6259534,19.5 L19.657,19.5 L19.6574089,35 L15.6574089,35 L15.657,19.5 L-1.13686838e-13,19.5 L-1.13686838e-13,15.5 L15.657,15.5 L15.6574089,0 L19.6574089,0 Z" id="形状结合"></path>\n </g>\n </g>\n <rect id="矩形" stroke="${t}" stroke-width="2" x="28" y="3" width="8" height="8"></rect>\n </g>\n </g>\n </g>\n </svg>`,n=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(o)))}`;a.teduBoard.setCursorIcon(e,{cursor:"url",url:n,offsetX:20,offsetY:20}),a.teduBoard.setCursorIcon(a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_SQUARE,{cursor:"url",url:n,offsetX:20,offsetY:20})}else if(e===a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_OVAL){const o=`<?xml version="1.0" encoding="UTF-8"?>\n <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>mouse_circle</title>\n <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="光标及状态栏状态" transform="translate(-323.000000, -272.000000)">\n <g id="mouse_circle" transform="translate(323.000000, 272.000000)">\n <g id="编组-3">\n <rect id="矩形" x="0" y="0" width="40" height="40"></rect>\n <g id="编组" transform="translate(2.628157, 2.500000)" fill="#000000" stroke="#FFFFFF">\n <path d="M19.6574089,0 L19.657,15.5 L34.6259534,15.5 L34.6259534,19.5 L19.657,19.5 L19.6574089,35 L15.6574089,35 L15.657,19.5 L-1.13686838e-13,19.5 L-1.13686838e-13,15.5 L15.657,15.5 L15.6574089,0 L19.6574089,0 Z" id="形状结合"></path>\n </g>\n </g>\n <circle id="椭圆形" stroke="${t}" stroke-width="2" cx="32" cy="7" r="4"></circle>\n </g>\n </g>\n </g>\n </svg>`,n=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(o)))}`;a.teduBoard.setCursorIcon(e,{cursor:"url",url:n,offsetX:20,offsetY:20}),a.teduBoard.setCursorIcon(a.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_CIRCLE,{cursor:"url",url:n,offsetX:20,offsetY:20})}a.teduBoard.setToolType(e)}static callBoardMethod(e){console.log("callBoardMethod",a.teduBoard,JSON.stringify(e)),a.teduBoard&&(a.teduBoard[e.method].apply(a.teduBoard,e.params),a.updateCursor())}}a.TEduBoard=window.TEduBoard,a.teduBoard=null,a.boardElement=null,a.boardWrapElement=null,a.screenWidth=0,a.screenHeight=0,a.callMethodCache=[],a.isBoardReady=!1,window.BoardRender=a,i.ipcRenderer.on("initBoard",((e,t)=>{const o=window.BoardRender;if(o.teduBoard)return;const n={id:"board",sdkAppId:t.sdkAppId,classId:t.roomId,userId:t.userId,userSig:t.userSig,ratio:`${screen.width}:${screen.height}`,systemCursorEnable:!1,enableLocalMode:!0,styleConfig:{globalBackgroundColor:"rgba(0, 0, 0, 0.01)",textColor:"#ff0000",selectBoxColor:"#727272",cursorSize:[40,40],brushThin:50,selectAnchorColor:"#006eff"}};o.teduBoard=new o.TEduBoard(n),o.teduBoard.on(o.TEduBoard.EVENT.TEB_ERROR,((e,t)=>{})),o.teduBoard.on(o.TEduBoard.EVENT.TEB_WARNING,((e,t)=>{})),o.teduBoard.on(o.TEduBoard.EVENT.TEB_HISTROYDATA_SYNCCOMPLETED,(()=>{o.teduBoard.setToolType(o.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_MOUSE),o.teduBoard.setHandwritingEnable(!0),o.teduBoard.setCursorIcon(o.TEduBoard.TEduBoardToolType.TEDU_BOARD_TOOL_TYPE_ERASER,{cursor:"url",url:"https://res.qcloudtiw.com/board/icons/xkt/eraser.svg",offsetX:7,offsetY:25}),o.updateCursor(),0===o.callMethodCache.length?o.teduBoard.setToolType(0):(o.callMethodCache.forEach((e=>{o.callBoardMethod(e)})),o.callMethodCache=[]),o.isBoardReady=!0})),o.teduBoard.on(o.TEduBoard.EVENT.TEB_SNAPSHOT,(e=>{i.ipcRenderer.send("onScreenShareSnapshot",e)})),o.teduBoard.on(o.TEduBoard.EVENT.TEB_OPERATE_CANREDO_STATUS_CHANGED,(e=>{i.ipcRenderer.send("onBoardCanRedoChange",e)})),o.teduBoard.on(o.TEduBoard.EVENT.TEB_OPERATE_CANUNDO_STATUS_CHANGED,(e=>{i.ipcRenderer.send("onBoardCanUndoChange",e)})),o.setVisibleRect(t.shareWindowBounds)})),i.ipcRenderer.on("onShareWindowBoundsChanged",((e,t)=>{window.BoardRender.setVisibleRect(t)})),i.ipcRenderer.on("callMethod",((e,t)=>{const o=window.BoardRender;o.isBoardReady?o.callBoardMethod(t):o.callMethodCache.push(t)}));const l=["touchstart","touchend"];i.ipcRenderer.on("enableWatchMouseMoveEvent",((e,t)=>{s.watchEvents(document,l,t)})),window.onload=()=>{a.boardWrapElement=document.getElementById("board-wrap"),a.boardElement=document.getElementById("board")}},61:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.commonOption=void 0,t.commonOption={dsn:"https://9497a4f3e4e64dddb4dd2b2f12b39a7a@sentry.qcloudtiw.com/2",environment:"production"}},664:function(e,t,o){var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);return r(t,e),t},i=this&&this.__awaiter||function(e,t,o,n){return new(o||(o=Promise))((function(r,d){function i(e){try{a(n.next(e))}catch(e){d(e)}}function s(e){try{a(n.throw(e))}catch(e){d(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(i,s)}a((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._initSentry=t.initSentry=void 0;const s=d(o(298)),a=o(61),l=o(736),u=o(74),c=[new u.Integrations.InboundFilters,new u.Integrations.FunctionToString,new l.TryCatch,new l.Breadcrumbs,new l.GlobalHandlers,new l.Dedupe];let h=!1;t.initSentry=()=>i(void 0,void 0,void 0,(function*(){(0,t._initSentry)()})),t._initSentry=()=>i(void 0,void 0,void 0,(function*(){if(h)return;const e=Object.assign(Object.assign({},a.commonOption),{defaultIntegrations:!1,integrations:[...c]});s.init(e),h=!0})),(0,t.initSentry)(),window.sentry={init:t._initSentry}},818:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchEvents=void 0;const n=o(933);(0,o(664).initSentry)();const r=e=>{let t,o;if(e instanceof TouchEvent?(t=Math.round(e.changedTouches[0].screenX),o=Math.round(e.changedTouches[0].screenY)):(t=e.screenX,o=e.screenY),0!==t||0!==o){const r={type:e.type,x:t,y:o};n.ipcRenderer.send("onMouseEvent",r),console.log("onMouseEvent",r)}};t.watchEvents=function(e,t,o){t.forEach((t=>{o?e.addEventListener(t,r,{capture:!0,passive:!1}):e.removeEventListener(t,r,{capture:!0})}))}},736:e=>{e.exports=require("@sentry/browser")},74:e=>{e.exports=require("@sentry/core")},298:e=>{e.exports=require("@sentry/electron/renderer")},933:e=>{e.exports=require("electron")}},t={};!function o(n){var r=t[n];if(void 0!==r)return r.exports;var d=t[n]={exports:{}};return e[n].call(d.exports,d,d.exports,o),d.exports}(71)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e={61:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.commonOption=void 0,t.commonOption={dsn:"https://9497a4f3e4e64dddb4dd2b2f12b39a7a@sentry.qcloudtiw.com/2",environment:"production"}},664:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._initSentry=t.initSentry=void 0;const a=o(n(298)),c=n(61),d=n(736),u=n(74),l=[new u.Integrations.InboundFilters,new u.Integrations.FunctionToString,new d.TryCatch,new d.Breadcrumbs,new d.GlobalHandlers,new d.Dedupe];let v=!1;t.initSentry=()=>s(void 0,void 0,void 0,(function*(){(0,t._initSentry)()})),t._initSentry=()=>s(void 0,void 0,void 0,(function*(){if(v)return;const e=Object.assign(Object.assign({},c.commonOption),{defaultIntegrations:!1,integrations:[...l]});a.init(e),v=!0})),(0,t.initSentry)(),window.sentry={init:t._initSentry}},736:e=>{e.exports=require("@sentry/browser")},74:e=>{e.exports=require("@sentry/core")},298:e=>{e.exports=require("@sentry/electron/renderer")},933:e=>{e.exports=require("electron")}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}(()=>{const e=n(933);(0,n(664).initSentry)();class t{static get instance(){return null===this._instance&&(this._instance=new t),this._instance}constructor(){this._videoElement=document.getElementById("camera"),this._videoElement.addEventListener("timeupdate",(()=>{})),this._videoElement.addEventListener("durationchange",(()=>{})),this._videoElement.addEventListener("seeked",(()=>{})),this._videoElement.addEventListener("playing",(()=>{e.ipcRenderer.send("playing",{width:this._params.width,height:this._params.height})}))}start(e){return new Promise(((t,n)=>{this._params=e,navigator.mediaDevices.enumerateDevices().then((t=>{const i=t.filter((e=>"videoinput"===e.kind));navigator.mediaDevices.getUserMedia({video:{deviceId:i[e.deviceIndex].deviceId,aspectRatio:1.7777777778,width:e.width,height:e.height},audio:!1}).then((e=>{this._videoElement.srcObject=e,this._videoElement.play()})).catch((e=>{n(e)}))}))}))}stop(){this._videoElement.stop()}}t._instance=null,e.ipcRenderer.on("start",((e,n)=>{t.instance.start(n)}))})()})();
|