@univerjs-pro/shape-thread-comment
此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。
Facade methods for comments anchored to images, charts, and Shapes in Sheets, Docs, Slides, and Boards.
TypeScript
import { UniverShapeThreadCommentPlugin } from '@univerjs-pro/shape-thread-comment'import '@univerjs-pro/shape-thread-comment/facade'univer.registerPlugin(UniverShapeThreadCommentPlugin)const image = univerAPI.getActiveWorkbook()?.getActiveSheet()?.getImages()[0]await image?.createCommentAsync('Replace this image.', { id: 'review-image-1' })The Facade entry adds createCommentAsync(), getComments(), and listCommentsAsync() to supported element Facades.
Entry Points
- Facade:
@univerjs-pro/shape-thread-comment/facade
你覺得這篇文檔如何?