Skip to content

Commit

Permalink
add room updateText
Browse files Browse the repository at this point in the history
  • Loading branch information
aderan committed Sep 12, 2023
1 parent ed0f5e1 commit 6de8c03
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/bridge/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,19 @@ export class RoomAsyncBridge {
}
}

/**
* 编辑指定文字的内容
* @param identifier 文字的标识符。为 ``insertText()`` 的返回值。
* @param textContent 文字要改成的内容
*/
updateText = (identifier: string, textContent: string) => {
if (window.manager) {
window.manager.mainView.updateText(identifier, textContent);
} else {
this.room.updateText(identifier, textContent);
}
}

cleanScene = (retainPpt: boolean) => {
let retain: boolean;
if (retainPpt === undefined) {
Expand Down

0 comments on commit 6de8c03

Please sign in to comment.