fybdp-d3-kg
Version:
Knowledge Graph using React and D3.js
50 lines (49 loc) • 1.61 kB
TypeScript
import { BaseNode } from './BaseNode';
import { Graph } from '../../graph';
export declare class RoundNode extends BaseNode {
graph: Graph;
expanded: boolean;
collapsible: boolean;
radius: number;
collapsingGroupElement: any;
pinGroupElement: any;
haloGroupElement: null;
rectangularRepresentation: boolean;
renderingElement: any;
textBlock: any;
tooltip: string;
constructor(graph: Graph);
setRectangularRepresentation(val: any): void;
getHalos(): null;
getRectangularRepresentation(): boolean;
setHoverHighlighting(enable: boolean): void;
textWidth(yOffset: any): number;
toggleFocus(): void;
actualRadius(): number;
distanceToBorder(): number;
removeHalo(): void;
drawHalo(pulseAnimation: any): void;
/**
* Draws the pin on a round node on a position depending on its radius.
*/
drawPin(): void;
/**
* Removes the pin and refreshs the grlib to update the force layout.
*/
removePin: () => void;
drawCollapsingButton: () => void;
/**
* Draws a circular node.
* @param parentElement the element to which this node will be appended
* @param [additionalCssClasses] additional css classes
*/
draw(parentElement: any, additionalCssClasses?: never[]): void;
redrawElement(): void;
/**
* Common actions that should be invoked after drawing a node.
*/
postDrawActions(): void;
redrawLabelText(): void;
private createTextBlock;
equivalentsString: () => string | undefined;
}