@netless/appliance-plugin 1.1.17-beta.9 → 1.1.18-beta.0
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 +192 -54
- package/cdn/cdn.js +1 -1
- package/cdn/fullWorker-BXw0UY.js +500 -0
- package/cdn/subWorker-CQwRsl.js +500 -0
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/collector/collector.d.ts +1 -0
- package/dist/component/textEditor/manager.d.ts +8 -0
- package/dist/component/textEditor/view.d.ts +27 -47
- package/dist/core/mainEngine.d.ts +3 -1
- package/dist/core/tools/selector.d.ts +29 -0
- package/dist/core/types.d.ts +1 -0
- package/dist/core/worker/base.d.ts +5 -0
- package/dist/core/worker/fullWorkerLocal.d.ts +0 -1
- package/dist/core/worker/subWorkerLocal.d.ts +1 -0
- package/dist/cursors/index.d.ts +0 -4
- package/dist/displayer/const.d.ts +1 -0
- package/dist/displayer/floatBar/dragBox/index.d.ts +7 -1
- package/dist/displayer/floatBar/index.d.ts +1 -1
- package/dist/displayer/utils.d.ts +1 -0
- package/dist/fullWorker.js +120 -122
- package/dist/index-BCsxqk2v.js +1 -0
- package/dist/{index-BianYC4r.mjs → index-C5FDT_Kb.mjs} +10 -3
- package/dist/{index-CZ7SSEYU.mjs → index-CR2nlCh1.mjs} +7392 -7063
- package/dist/index-DNughIC2.js +1 -0
- package/dist/plugin/baseApplianceManager.d.ts +8 -5
- package/dist/plugin/baseViewContainerManager.d.ts +6 -2
- package/dist/plugin/const.d.ts +5 -0
- package/dist/plugin/displayerView.d.ts +9 -2
- package/dist/plugin/types.d.ts +39 -6
- package/dist/style.css +1 -1
- package/dist/subWorker.js +120 -122
- package/package.json +5 -4
- package/cdn/fullWorker-p8Ghqw.js +0 -502
- package/cdn/subWorker-C1Gs0N.js +0 -502
- package/dist/collector/eventCollector.d.ts +0 -31
- package/dist/collector/magixEventCollector.d.ts +0 -31
- package/dist/index-BSGcWUci.js +0 -1
- package/dist/index-DDtbIS6S.js +0 -1
package/README.md
CHANGED
|
@@ -2,19 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
[中文文档](https://github.com/netless-io/fastboard/blob/main/docs/zh/appliance-plugin.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This plugin is based on the plugin mechanism of white-web-sdk, and realizes a set of whiteboard teaching AIDS drawing tools. At the same time, it is also based on @netless/window-manager, which can be used on multiple Windows.
|
|
6
6
|
|
|
7
7
|
## Introduction
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
The following two demos are implemented in the example folder for reference only.
|
|
12
|
-
| scenario | demo path | depends on |
|
|
13
|
-
| :-- | :----: | :-- |
|
|
14
|
-
| multi-window | [example/src/multi.ts](https://github.com/hqer927/appliance-plugin/blob/master/example/src/multi.ts) | @netless/window-manager、white-web-sdk |
|
|
15
|
-
| white-board | [example/src/single.ts](https://github.com/hqer927/appliance-plugin/blob/master/example/src/single.ts) | white-web-sdk |
|
|
16
|
-
<!-- | fastboard | todo | todo | -->
|
|
17
|
-
|
|
9
|
+
appliance-plugin, Depend on [white-web-SDK](https://www.npmjs.com/package/white-web-sdk), [@netless/window-manager](https://www.npmjs.com/package/@netless/window-manager), And based on web API support for [offscreenCanvas](https://developer.mozilla.org/zh-CN/docs/Web/API/OffscreenCanvas).
|
|
10
|
+
|
|
18
11
|
## Principle
|
|
19
12
|
|
|
20
13
|
1. The plugin is mainly based on the 2D functionality of SpriteJS, supports webgl2 rendering, and is backward compatible with downgrades to webgl and canvas2d
|
|
@@ -47,17 +40,80 @@ import { ApplianceSinglePlugin } from '@netless/appliance-plugin';
|
|
|
47
40
|
> - **The total package is about 300kB, and the two wokerjs are 600kB each** If you need to consider the size of the package you are building, select Configure cdn.
|
|
48
41
|
|
|
49
42
|
### Access mode reference
|
|
50
|
-
|
|
51
|
-
####
|
|
43
|
+
|
|
44
|
+
#### fastboard(interconnection with fastboard)
|
|
45
|
+
```js
|
|
46
|
+
// The method of importing worker.js is optional. If cdn is used, it does not need to be imported from dist. If dist is imported, it needs to be configured into options.cdn in the form of resource module and bolb inline. Such as '?raw', this requires packer support,vite default support '?raw',webpack needs to configure raw-loader or asset/source.
|
|
47
|
+
import fullWorkerString from '@netless/appliance-plugin/dist/fullWorker.js?raw';
|
|
48
|
+
import subWorkerString from '@netless/appliance-plugin/dist/subWorker.js?raw';
|
|
49
|
+
const fullWorkerBlob = new Blob([fullWorkerString], {type: 'text/javascript'});
|
|
50
|
+
const fullWorkerUrl = URL.createObjectURL(fullWorkerBlob);
|
|
51
|
+
const subWorkerBlob = new Blob([subWorkerString], {type: 'text/javascript'});
|
|
52
|
+
const subWorkerUrl = URL.createObjectURL(subWorkerBlob);
|
|
53
|
+
|
|
54
|
+
// interconnection with fastboard-react
|
|
55
|
+
// Full package mode reference
|
|
56
|
+
// import { useFastboard, Fastboard } from "@netless/fastboard-react/full";
|
|
57
|
+
// Subcontract reference
|
|
58
|
+
import { useFastboard, Fastboard } from "@netless/fastboard-react";
|
|
59
|
+
|
|
60
|
+
const app = useFastboard(() => ({
|
|
61
|
+
sdkConfig: {
|
|
62
|
+
...
|
|
63
|
+
},
|
|
64
|
+
joinRoom: {
|
|
65
|
+
...
|
|
66
|
+
},
|
|
67
|
+
managerConfig: {
|
|
68
|
+
cursor: true,
|
|
69
|
+
enableAppliancePlugin: true,
|
|
70
|
+
...
|
|
71
|
+
},
|
|
72
|
+
enableAppliancePlugin: {
|
|
73
|
+
cdn: {
|
|
74
|
+
fullWorkerUrl,
|
|
75
|
+
subWorkerUrl,
|
|
76
|
+
}
|
|
77
|
+
...
|
|
78
|
+
}
|
|
79
|
+
}));
|
|
80
|
+
|
|
81
|
+
// interconnection with fastboard
|
|
82
|
+
// Full package mode reference
|
|
83
|
+
// import { createFastboard, createUI } from "@netless/fastboard/full";
|
|
84
|
+
// Subcontract reference
|
|
85
|
+
import { createFastboard, createUI } from "@netless/fastboard";
|
|
86
|
+
|
|
87
|
+
const fastboard = await createFastboard({
|
|
88
|
+
sdkConfig: {
|
|
89
|
+
...
|
|
90
|
+
},
|
|
91
|
+
joinRoom: {
|
|
92
|
+
...
|
|
93
|
+
},
|
|
94
|
+
managerConfig: {
|
|
95
|
+
cursor: true,
|
|
96
|
+
supportAppliancePlugin: true,
|
|
97
|
+
...
|
|
98
|
+
},
|
|
99
|
+
enableAppliancePlugin: {
|
|
100
|
+
cdn: {
|
|
101
|
+
fullWorkerUrl,
|
|
102
|
+
subWorkerUrl,
|
|
103
|
+
}
|
|
104
|
+
...
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
#### Multi-window (Interconnecting with window-manager)
|
|
52
110
|
```js
|
|
53
111
|
import '@netless/window-manager/dist/style.css';
|
|
54
112
|
import '@netless/appliance-plugin/dist/style.css';
|
|
55
113
|
import { WhiteWebSdk } from "white-web-sdk";
|
|
56
114
|
import { WindowManager } from "@netless/window-manager";
|
|
57
|
-
// All bundled
|
|
58
115
|
import { ApplianceMultiPlugin } from '@netless/appliance-plugin';
|
|
59
|
-
// cdn
|
|
60
|
-
// The following steps are optional. If you use cdn, you do not need to import from dist. If you import from dist, you need to import resources and configure them to options.cdn in bolb inline form. Such as? raw, this requires packaging support,vite default support? raw,webpack needs to be configured.
|
|
116
|
+
// The method of importing worker.js is optional. If cdn is used, it does not need to be imported from dist. If dist is imported, it needs to be configured into options.cdn in the form of resource module and bolb inline. Such as '?raw', this requires packer support,vite default support '?raw',webpack needs to configure raw-loader or asset/source.
|
|
61
117
|
import fullWorkerString from '@netless/appliance-plugin/dist/fullWorker.js?raw';
|
|
62
118
|
import subWorkerString from '@netless/appliance-plugin/dist/subWorker.js?raw';
|
|
63
119
|
const fullWorkerBlob = new Blob([fullWorkerString], {type: 'text/javascript'});
|
|
@@ -85,13 +141,14 @@ await ApplianceMultiPlugin.getInstance(manager,
|
|
|
85
141
|
}
|
|
86
142
|
);
|
|
87
143
|
}
|
|
88
|
-
```
|
|
144
|
+
```
|
|
145
|
+
> **Note** the css file `import '@netless/appliance-plugin/dist/style.css'` needs to be imported into the project;
|
|
146
|
+
|
|
89
147
|
#### Single whiteboard (interconnection with white-web-sdk)
|
|
90
148
|
```js
|
|
91
149
|
import { WhiteWebSdk } from "white-web-sdk";
|
|
92
|
-
// All bundled
|
|
93
150
|
import { ApplianceSinglePlugin, ApplianceSigleWrapper } from '@netless/appliance-plugin';
|
|
94
|
-
// The
|
|
151
|
+
// The method of importing worker.js is optional. If cdn is used, it does not need to be imported from dist. If dist is imported, it needs to be configured into options.cdn in the form of resource module and bolb inline. Such as '?raw', this requires packer support,vite default support '?raw',webpack needs to configure raw-loader or asset/source.
|
|
95
152
|
import fullWorkerString from '@netless/appliance-plugin/dist/fullWorker.js?raw';
|
|
96
153
|
import subWorkerString from '@netless/appliance-plugin/dist/subWorker.js?raw';
|
|
97
154
|
const fullWorkerBlob = new Blob([fullWorkerString], {type: 'text/javascript'});
|
|
@@ -116,6 +173,8 @@ await ApplianceSinglePlugin.getInstance(room,
|
|
|
116
173
|
}
|
|
117
174
|
);
|
|
118
175
|
```
|
|
176
|
+
> **Note** the css file `import '@netless/appliance-plugin/dist/style.css'` needs to be imported into the project;
|
|
177
|
+
|
|
119
178
|
#### About ’?raw‘ webpack configuration
|
|
120
179
|
```js
|
|
121
180
|
module: {
|
|
@@ -187,53 +246,28 @@ The following interfaces are involved:
|
|
|
187
246
|
- `cleanCurrentScene`
|
|
188
247
|
|
|
189
248
|
4. Customize
|
|
190
|
-
- `getBoundingRectAsync` Replace the api room.getBoundingRect
|
|
191
|
-
- `screenshotToCanvasAsync` Replace the api room.screenshotToCanvas
|
|
192
|
-
- `scenePreviewAsync` Replace the api room.scenePreview
|
|
249
|
+
- `getBoundingRectAsync` Replace the api `room.getBoundingRect`
|
|
250
|
+
- `screenshotToCanvasAsync` Replace the api `room.screenshotToCanvas`
|
|
251
|
+
- `scenePreviewAsync` Replace the api `room.scenePreview`
|
|
193
252
|
- `destroy` Destroy the instance of appliance-plugin
|
|
194
253
|
- `addListener` add appliance plugin Listener
|
|
195
254
|
- `removeListener` remove appliance plugin Listener
|
|
255
|
+
- `disableDeviceInputs` Replace the api `room.disableDeviceInputs`
|
|
256
|
+
- `disableEraseImage` Replace the api `room.disableEraseImage` **This method only suppert when currentApplianceName is `eraser`**
|
|
257
|
+
- `disableCameraTransform` Replace the api `room.disableCameraTransform`
|
|
196
258
|
|
|
197
259
|
5.Incompatible
|
|
198
260
|
- `exportScene` When the appliance-plugin is enabled, notes cannot be exported in room mode
|
|
199
261
|
- Server-side screenshot, after the appliance-plugin is turned on, notes cannot be obtained by calling server-side screenshot, but need to use `screenshotToCanvasAsync` to obtain the screenshot
|
|
200
262
|
|
|
201
263
|
#### New features
|
|
202
|
-
1.
|
|
203
|
-
```js
|
|
204
|
-
/** Create a minimap
|
|
205
|
-
* @param viewId ID of the whiteboard under windowManager. The ID of the main whiteboard is mainView, and the ID of other whiteboards is the appID of addApp() return
|
|
206
|
-
* @param div Small map DOM container
|
|
207
|
-
*/
|
|
208
|
-
createMiniMap(viewId: string, div: HTMLElement): Promise<void>;
|
|
209
|
-
/** Destroy minimap */
|
|
210
|
-
destroyMiniMap(viewId: string): Promise<void>;
|
|
211
|
-
```
|
|
212
|
-
2. Filter Elements (Version >=1.1.6)
|
|
213
|
-
```js
|
|
214
|
-
/** Filter Elements
|
|
215
|
-
* @param viewId ID of the whiteboard under windowManager. The ID of the main whiteboard is mainView, and the ID of other whiteboards is the appID of addApp() return
|
|
216
|
-
* @param filter filter condition
|
|
217
|
-
* render: Whether notes can be rendered, [uid1, uid2,...] Or true. true, that is, both render, [uid1, uid2,...] The collection of user Uids rendered for the specified
|
|
218
|
-
* hide: Note is hidden, [uid1, uid2,...] Or true. true, that is to hide, [uid1, uid2,...] To specify a hidden user uid collection
|
|
219
|
-
* clear: Whether notes can be cleared, [uid1, uid2,...] Or true. true, that is, can be cleared, [uid1, uid2,...] Specifies a collection of user Uids that can be cleared
|
|
220
|
-
* @param isSync Whether to synchronize data to other users. The default value is true, that is, the data will be synchronized to other users
|
|
221
|
-
*/
|
|
222
|
-
filterRenderByUid(viewId: string, filter: { render?: _ArrayTrue, hide?: _ArrayTrue, clear?: _ArrayTrue}, isSync?:boolean): void;
|
|
223
|
-
/** Filter Elements
|
|
224
|
-
* @param viewId ID of the whiteboard under windowManager. The ID of the main whiteboard is mainView, and the ID of other whiteboards is the appID of addApp() return
|
|
225
|
-
* @param isSync Whether to synchronize data to other users. The default value is true, that is, the data will be synchronized to other users. Keep it the same as the filterRenderByUid setting
|
|
226
|
-
*/
|
|
227
|
-
cancelFilterRender(viewId: string, isSync?:boolean): void;
|
|
228
|
-
```
|
|
229
|
-
3. Split screen display Elements (little whiteboard featrue), need to combine '@netless/app-little-white-board' (Version >=1.1.3)
|
|
230
|
-
|
|
231
|
-
4. laserPen teaching aids (Version >=1.1.1)
|
|
264
|
+
1. laserPen teaching aids (Version >=1.1.1)
|
|
232
265
|
```js
|
|
233
266
|
import { EStrokeType, ApplianceNames } from '@netless/appliance-plugin';
|
|
234
267
|
room.setMemberState({currentApplianceName: ApplianceNames.laserPen, strokeType: EStrokeType.Normal});
|
|
235
268
|
```
|
|
236
|
-
|
|
269
|
+

|
|
270
|
+
2. Extended Teaching AIDS (Version >=1.1.1)
|
|
237
271
|
```js
|
|
238
272
|
export enum EStrokeType {
|
|
239
273
|
/** Solid line */
|
|
@@ -285,12 +319,109 @@ The following interfaces are involved:
|
|
|
285
319
|
manager.mainView.setMemberState({ ... } as ExtendMemberState);
|
|
286
320
|
appliance.setMemberState({ ... } as ExtendMemberState);
|
|
287
321
|
```
|
|
322
|
+
- Set stroke type:
|
|
323
|
+
```js
|
|
324
|
+
// Solid line
|
|
325
|
+
setMemberState({strokeType: EStrokeType.Normal });
|
|
326
|
+
// Line with pen edge
|
|
327
|
+
setMemberState({strokeType: EStrokeType.Stroke });
|
|
328
|
+
// Dotted line
|
|
329
|
+
setMemberState({strokeType: EStrokeType.Dotted });
|
|
330
|
+
// Long dotted line
|
|
331
|
+
setMemberState({strokeType: EStrokeType.LongDotted });
|
|
332
|
+
```
|
|
333
|
+

|
|
334
|
+
- Set stroke and shape border opacity (marker):
|
|
335
|
+
```js
|
|
336
|
+
setMemberState({strokeOpacity: 0.5 });
|
|
337
|
+
```
|
|
338
|
+

|
|
339
|
+
- Set text color, text opacity, text background color, text background opacity
|
|
340
|
+
```js
|
|
341
|
+
setMemberState({textOpacity: 0.5, textBgOpacity: 0.5, textBgColor:[0, 0, 0]});
|
|
342
|
+
```
|
|
343
|
+

|
|
344
|
+
- Set shape fill color and fill opacity
|
|
345
|
+
```js
|
|
346
|
+
setMemberState({fillOpacity: 0.5, fillColor:[0, 0, 0]});
|
|
347
|
+
```
|
|
348
|
+

|
|
349
|
+
- Custom regular polygon
|
|
350
|
+
```js
|
|
351
|
+
// regular pentagon
|
|
352
|
+
setMemberState({currentApplianceName: ApplianceNames.shape, shapeType: ShapeType.Polygon, vertices: 5});
|
|
353
|
+
```
|
|
354
|
+

|
|
355
|
+
- Custom star shape
|
|
356
|
+
```js
|
|
357
|
+
// fat hexagonal star
|
|
358
|
+
setMemberState({currentApplianceName: ApplianceNames.shape, shapeType: ShapeType.Star, vertices: 12, innerVerticeStep: 2, innerRatio: 0.8});
|
|
359
|
+
```
|
|
360
|
+

|
|
361
|
+
- Customize the placement of the speechballoon
|
|
362
|
+
```js
|
|
363
|
+
// The dialog box in the lower left corner
|
|
364
|
+
setMemberState({currentApplianceName: ApplianceNames.shape, shapeType: ShapeType.SpeechBalloon, placement: 'bottomLeft'});
|
|
365
|
+
```
|
|
366
|
+

|
|
367
|
+
|
|
288
368
|
|
|
369
|
+
3. Split screen display Elements (little whiteboard featrue), need to combine [`@netless/app-little-white-board`](https://github.com/netless-io/app-little-white-board) (Version >=1.1.3)
|
|
370
|
+

|
|
371
|
+
4. Minimap function (Version >=1.1.6)
|
|
372
|
+
```js
|
|
373
|
+
/** Create a minimap
|
|
374
|
+
* @param viewId ID of the whiteboard under windowManager. The ID of the main whiteboard is mainView, and the ID of other whiteboards is the appID of addApp() return
|
|
375
|
+
* @param div Small map DOM container
|
|
376
|
+
*/
|
|
377
|
+
createMiniMap(viewId: string, div: HTMLElement): Promise<void>;
|
|
378
|
+
/** Destroy minimap */
|
|
379
|
+
destroyMiniMap(viewId: string): Promise<void>;
|
|
380
|
+
```
|
|
381
|
+

|
|
382
|
+
5. Filter Elements (Version >=1.1.6)
|
|
383
|
+
```js
|
|
384
|
+
/** Filter Elements
|
|
385
|
+
* @param viewId ID of the whiteboard under windowManager. The ID of the main whiteboard is mainView, and the ID of other whiteboards is the appID of addApp() return
|
|
386
|
+
* @param filter filter condition
|
|
387
|
+
* render: Whether notes can be rendered, [uid1, uid2,...] Or true. true, that is, both render, [uid1, uid2,...] The collection of user Uids rendered for the specified
|
|
388
|
+
* hide: Note is hidden, [uid1, uid2,...] Or true. true, that is to hide, [uid1, uid2,...] To specify a hidden user uid collection
|
|
389
|
+
* clear: Whether notes can be cleared, [uid1, uid2,...] Or true. true, that is, can be cleared, [uid1, uid2,...] Specifies a collection of user Uids that can be cleared
|
|
390
|
+
* @param isSync Whether to synchronize data to other users. The default value is true, that is, the data will be synchronized to other users
|
|
391
|
+
*/
|
|
392
|
+
filterRenderByUid(viewId: string, filter: { render?: _ArrayTrue, hide?: _ArrayTrue, clear?: _ArrayTrue}, isSync?:boolean): void;
|
|
393
|
+
/** Filter Elements
|
|
394
|
+
* @param viewId ID of the whiteboard under windowManager. The ID of the main whiteboard is mainView, and the ID of other whiteboards is the appID of addApp() return
|
|
395
|
+
* @param isSync Whether to synchronize data to other users. The default value is true, that is, the data will be synchronized to other users. Keep it the same as the filterRenderByUid setting
|
|
396
|
+
*/
|
|
397
|
+
cancelFilterRender(viewId: string, isSync?:boolean): void;
|
|
398
|
+
```
|
|
399
|
+

|
|
400
|
+
<!-- 6. Handwriting graphics automatic association function: 'autoDraw' (version >=1.1.7)
|
|
401
|
+
```js
|
|
402
|
+
export type AutoDrawOptions = {
|
|
403
|
+
/** Automatically associate rest api addresses */
|
|
404
|
+
hostServer: string;
|
|
405
|
+
/** A container that holds a list of associated icons */
|
|
406
|
+
container: HTMLDivElement;
|
|
407
|
+
/** How long does the drawing end start activating the association */
|
|
408
|
+
delay?: number;
|
|
409
|
+
};
|
|
410
|
+
import { ApplianceMultiPlugin, AutoDrawPlugin } from '@netless/appliance-plugin';
|
|
411
|
+
const plugin = await ApplianceMultiPlugin.getInstance(...);
|
|
412
|
+
const autoDrawPlugin = new AutoDrawPlugin({
|
|
413
|
+
container: topBarDiv,
|
|
414
|
+
hostServer: 'https://autodraw-white-backup-hk-hkxykbfofr.cn-hongkong.fcapp.run',
|
|
415
|
+
delay: 2000
|
|
416
|
+
});
|
|
417
|
+
plugin.usePlugin(autoDrawPlugin);
|
|
418
|
+
```
|
|
419
|
+
 -->
|
|
289
420
|
### Configure parameters
|
|
290
421
|
``getInstance(wm: WindowManager, adaptor: ApplianceAdaptor)``
|
|
291
422
|
- wm: WindowManager\room\player. In multi-window mode, you pass WindowManager, and in single-window mode, you pass room or player(whiteboard playback mode).
|
|
292
423
|
- adaptor: configures the adapter.
|
|
293
|
-
- options:
|
|
424
|
+
- ``options: AppliancePluginOptions``; The cdn addresses of both workers must be configured.
|
|
294
425
|
```js
|
|
295
426
|
export type AppliancePluginOptions = {
|
|
296
427
|
/** cdn Configuration item */
|
|
@@ -299,9 +430,16 @@ The following interfaces are involved:
|
|
|
299
430
|
syncOpt? : SyncOpt;
|
|
300
431
|
/** Canvas configuration item */
|
|
301
432
|
canvasOpt? : CanvasOpt;
|
|
433
|
+
/** stroke width range */
|
|
434
|
+
strokeWidth?: {
|
|
435
|
+
min: number,
|
|
436
|
+
max: number,
|
|
437
|
+
}
|
|
302
438
|
}
|
|
303
439
|
```
|
|
304
|
-
- cursorAdapter? :
|
|
440
|
+
- ``cursorAdapter? : CursorAdapter``; This parameter is optional. In single whiteboard mode, customize the mouse style.
|
|
441
|
+
- ``logger?: Logger``; This parameter is optional. Configure the log printer object. The default output is on the local console. If logs need to be uploaded to the specified server, you need to manually configure the configuration.
|
|
442
|
+
>If you need to upload the log to the whiteboard log server, configure the `room.logger` to this item。
|
|
305
443
|
|
|
306
444
|
### Front-end debugging introduction
|
|
307
445
|
During the interconnection process, if you want to understand and track the internal status of the plug-in, you can view the internal data through the following console commands.
|
package/cdn/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r="/fullWorker-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r="/fullWorker-BXw0UY.js",e="/subWorker-CQwRsl.js";exports.fullWorkerUrl=r;exports.subWorkerUrl=e;
|