@kieler/klighd-core
Version:
Core KLighD diagram visualization with Sprotty
22 lines • 1.21 kB
TypeScript
import { HoverMouseListener, SModelElementImpl } from 'sprotty';
import { Action, Bounds, RequestPopupModelAction } from 'sprotty-protocol';
/**
* Triggered when the user hovers the mouse pointer over an element to get a popup with details on
* that element. This action is sent from the client to the model source, e.g. a DiagramServer.
* The response is a SetPopupModelAction.
*/
export interface RequestKlighdPopupModelAction extends RequestPopupModelAction {
/** The SVG element of the rendering (i.e. the KRendering) to request the popup for. */
element: SVGElement;
/** The underlying graph element for this popup request. */
parent: SModelElementImpl;
}
export declare namespace RequestKlighdPopupModelAction {
function create(element: SVGElement, parent: SModelElementImpl, bounds: Bounds): RequestKlighdPopupModelAction;
/** Type predicate to narrow an action to this action. */
function isThisAction(action: Action): action is RequestKlighdPopupModelAction;
}
export declare class KlighdHoverMouseListener extends HoverMouseListener {
protected startMouseOverTimer(target: SModelElementImpl, event: MouseEvent): Promise<Action>;
}
//# sourceMappingURL=hover.d.ts.map