UNPKG

@5minds/processcube_app_sdk

Version:
27 lines (26 loc) 1.23 kB
import type ElementRegistry from 'diagram-js/lib/core/ElementRegistry'; import type Overlays from 'diagram-js/lib/features/overlays/Overlays'; import type { ElementLike } from 'diagram-js/lib/model/Types'; import React, { ForwardedRef } from 'react'; import './BPMNHeatmap.css'; export type BPMNViewerProps = { xml: string; className?: string; preselectedElementIds?: string[]; onSelectionChanged?: (elements: Array<ElementLike>) => void; onImportDone?: () => void; }; export type BPMNViewerFunctions = { getOverlays(): Overlays | undefined; getElementRegistry(): ElementRegistry | undefined; addMarker(elementId: string, className: string): void; removeMarker(elementId: string, className: string): void; hasMarker(elementId: string, className: string): boolean | undefined; showHeatmap(data: Record<string, string>): void; clearHeatmap(data: string[]): void; }; export declare const BPMNViewer: React.ForwardRefExoticComponent<BPMNViewerProps & React.RefAttributes<BPMNViewerFunctions>>; export type BPMNViewerNextJSProps = BPMNViewerProps & { viewerRef?: ForwardedRef<BPMNViewerFunctions>; }; export declare const BPMNViewerNextJS: React.ComponentType<BPMNViewerNextJSProps>;