UNPKG

@joint/react

Version:

React bindings and hooks for JointJS to build interactive diagrams and graphs.

16 lines (15 loc) 806 B
import type { dia } from '@joint/core'; interface HighlighterBase { remove: () => void; } /** * Just internal util hook to manage highlighter lifecycle with automatic remove and update. * @group Hooks * @param create - Function to create a highlighter instance. * @param update - Function to update the highlighter instance. * @param options - Options to create the highlighter instance. * @param isDisabled - Flag to disable the highlighter * @internal */ export declare function useHighlighter<Highlighter extends HighlighterBase, HighlighterOptions extends dia.HighlighterView.Options>(create: (options: HighlighterOptions) => Highlighter | undefined, update: (instance: Highlighter, options: HighlighterOptions) => void, options: HighlighterOptions, isDisabled?: boolean): void; export {};