AnnotationsAPI
Defined in: figmaPluginTypes.ts:2034
https://www.figma.com/plugin-docs/api/figma-annotations
addAnnotationCategoryAsync(
categoryInput):Promise<AnnotationCategory>
Defined in: figmaPluginTypes.ts:2050
Adds a new AnnotationCategory.
The label and color of the annotation category.
string
Promise<AnnotationCategory>
getAnnotationCategoriesAsync():
Promise<AnnotationCategory[]>
Defined in: figmaPluginTypes.ts:2038
Returns a list of all AnnotationCategorys that exist in the current file.
Promise<AnnotationCategory[]>
getAnnotationCategoryByIdAsync(
id):Promise<null|AnnotationCategory>
Defined in: figmaPluginTypes.ts:2044
Returns an AnnotationCategory by its ID. If not found, returns a promise containing null.
string
The annotation category ID to search for.
Promise<null | AnnotationCategory>