API 참조

@univerjs-pro/sheets-drawing-thread-comment

이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.

Comment integration for floating images returned by the Sheets drawing Facade (FOverGridImage). Configure Sheets images and register this plugin before opening a workbook.

TypeScript
import { UniverSheetsDrawingThreadCommentPlugin } from '@univerjs-pro/sheets-drawing-thread-comment'import '@univerjs-pro/sheets-drawing-thread-comment/facade'univer.registerPlugin(UniverSheetsDrawingThreadCommentPlugin)const image = univerAPI.getActiveWorkbook()?.getActiveSheet()?.getImages()[0]await image?.createCommentAsync('Replace this image.')

The plugin supplies its shared Shape/thread-comment dependencies. It has no configuration options, locales, or styles of its own. Configure comment UI and persistence through the Sheets comments guide.

Facade methods

MethodBehavior
createCommentAsync(content, options?)Creates a comment anchored to the image. Accepts plain text or a document body and optional IDs, author, attachments, and creation time. Resolves to command success; empty content throws TypeError.
getComments()Returns locally loaded matching comment threads.
listCommentsAsync()Synchronizes known threads, then returns matching comments.

See the image Facade reference for signatures. Import @univerjs-pro/sheets-drawing-thread-comment/facade to register these methods.

이 가이드는 어떠셨나요?

© 2026 DreamNum Co., Ltd.