@univerjs-pro/shape-thread-comment
Cette page API est actuellement disponible en anglais. Les signatures et identifiants restent identiques dans toutes les langues.
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
Que pensez-vous de ce guide ?