@kieler/klighd-core
Version:
Core KLighD diagram visualization with Sprotty
41 lines • 1.8 kB
TypeScript
import { KlighdInteractiveMouseListener } from '@kieler/klighd-interactive/lib/klighd-interactive-mouselistener';
import { VNode } from 'snabbdom';
import { IView, RenderingContext, SGraphImpl } from 'sprotty';
import { RenderOptionsRegistry } from './options/render-options-registry';
import { SKEdge, SKLabel, SKNode, SKPort } from './skgraph-models';
/**
* IView component that turns an SGraph element and its children into a tree of virtual DOM elements.
* Extends the SGraphView by initializing the context for KGraph rendering.
*/
export declare class SKGraphView implements IView {
mListener: KlighdInteractiveMouseListener;
renderOptionsRegistry: RenderOptionsRegistry;
private actionDispatcher;
render(model: Readonly<SGraphImpl>, context: RenderingContext): VNode;
}
/**
* IView component that translates a KNode and its children into a tree of virtual DOM elements.
*/
export declare class KNodeView implements IView {
mListener: KlighdInteractiveMouseListener;
render(node: SKNode, context: RenderingContext): VNode | undefined;
}
/**
* IView component that translates a KPort and its children into a tree of virtual DOM elements.
*/
export declare class KPortView implements IView {
render(port: SKPort, context: RenderingContext): VNode | undefined;
}
/**
* IView component that translates a KLabel and its children into a tree of virtual DOM elements.
*/
export declare class KLabelView implements IView {
render(label: SKLabel, context: RenderingContext): VNode | undefined;
}
/**
* IView component that translates a KEdge and its children into a tree of virtual DOM elements.
*/
export declare class KEdgeView implements IView {
render(edge: SKEdge, context: RenderingContext): VNode | undefined;
}
//# sourceMappingURL=views.d.ts.map