API 参考

@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

你觉得这篇文档如何?

© 2026 DreamNum Co., Ltd.