@dingrtc/whiteboard 1.1.12 → 1.1.13

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/index.d.ts CHANGED
@@ -643,8 +643,8 @@ interface IWhiteboardManagerEvents {
643
643
  */
644
644
  'whiteboard-stop': (whiteboardId: string) => void;
645
645
  /**
646
- * 频道内创建了一个新的标注
647
- */
646
+ * 频道内创建了一个新的标注
647
+ */
648
648
  'annotation-start': (annotationId: string, sourceType: AnnotationSourceType) => void;
649
649
  /**
650
650
  * 频道内关闭了一个标注
@@ -656,9 +656,9 @@ interface IWhiteboardManagerEvents {
656
656
  'connection-state-change': (currentState: ConnectionState, prevState: ConnectionState, reason?: DisconnectedReason) => void;
657
657
  }
658
658
  /**
659
- * video 代表摄像头,share代表共享,external代表自定义源
659
+ * camera 代表摄像头, screen-cast 代表共享,external 代表自定义源
660
660
  */
661
- type AnnotationSourceType = 'video' | 'share' | 'external';
661
+ type AnnotationSourceType = 'camera' | 'screen-cast' | 'external';
662
662
  interface IWhiteboardEvents {
663
663
  /**
664
664
  * 用户加入了白板/标注
@@ -2317,6 +2317,7 @@ declare class WhiteboardManager extends EventEmitter<IWhiteboardManagerEvents> {
2317
2317
  private whiteboardMap;
2318
2318
  private channel;
2319
2319
  reporter: Reporter;
2320
+ private logger;
2320
2321
  get gslb(): string;
2321
2322
  constructor();
2322
2323
  getWhiteboard(whiteboardId: string): RtcWhiteboard;
@@ -2349,6 +2350,13 @@ declare class WhiteboardManager extends EventEmitter<IWhiteboardManagerEvents> {
2349
2350
  * 清理本地白板缓存
2350
2351
  */
2351
2352
  clear(): void;
2353
+ /**
2354
+ * @override
2355
+ * @param event
2356
+ * @param args
2357
+ * @returns
2358
+ */
2359
+ emit<T extends keyof IWhiteboardManagerEvents>(event: T, ...args: any): boolean;
2352
2360
  }
2353
2361
 
2354
2362
  export { RtcWhiteboard, ShapeFillType, ShapeFontFormatType, ShapeLineType, ShapeOrderType, ShapeVisibleType, ShapeType as ToolType, WBClearType, Whiteboard, WhiteboardManager, WhiteboardManager as default };