bpmn-js
Version:
A bpmn 2.0 toolkit and web modeler
27 lines (24 loc) • 606 B
TypeScript
/**
* Get text annotations connected to the given element.
*
* @param element
*
* @return
*/
export function getElementAnnotations(element: Element): {
annotation: Element;
association: Element;
}[];
/**
* Recursively collect text annotations connected to the given elements and their descendants.
* De-duplicates by annotation, collecting all associations per annotation.
*
* @param elements
*
* @return
*/
export function collectElementsAnnotations(elements: Element[]): {
annotation: Element;
associations: Element[];
}[];
type Element = import("../model/Types").Element;