@syncfusion/ej2-diagrams
Version:
Feature-rich diagram control to create diagrams like flow charts, organizational charts, mind maps, and BPMN diagrams. Its rich feature set includes built-in shapes, editing, serializing, exporting, printing, overview, data binding, and automatic layouts.
80 lines (79 loc) • 2.16 kB
TypeScript
import { INode } from './layout-base';
import { Layout, ILayout } from './layout-base';
import { DiagramAction } from '../enum/enum';
import { PointModel } from '../primitives/point-model';
/**
* Hierarchical Tree and Organizational Chart
*/
export declare class HierarchicalTree {
/**
* Constructor for the organizational chart module.
*
* @private
*/
constructor();
/**
* To destroy the organizational chart
*
* @returns {void}
* @private
*/
destroy(): void;
/**
* Defines the layout animation
*
*/
isAnimation: boolean;
/**
* Get module name.
*/
protected getModuleName(): string;
/**
* @param nodes
* @param nameTable
* @param layoutProp
* @param viewport
* @param uniqueId
* @param action
* @private
*/
updateLayout(nodes: INode[], nameTable: Object, layoutProp: Layout, viewport: PointModel, uniqueId: string, action?: DiagramAction): ILayout;
private doLayout;
private getBounds;
private updateTree;
private updateLeafNode;
private setUpLayoutInfo;
private translateSubTree;
private updateRearBounds;
private shiftSubordinates;
private setDepthSpaceForAssitants;
private setBreadthSpaceForAssistants;
private getDimensions;
private hasChild;
private updateHorizontalTree;
private updateHorizontalTreeWithMultipleRows;
private updateLeftTree;
private alignRowsToCenter;
private updateRearBoundsOfTree;
private splitRows;
private updateVerticalTree;
private splitChildrenInRows;
private extend;
private findOffset;
private uniteRects;
private spaceLeftFromPrevSubTree;
private findIntersectingLevels;
private findLevel;
private getParentNode;
private updateEdges;
private updateAnchor;
private updateConnectors;
private updateSegments;
private updateSegmentsForBalancedTree;
private get3Points;
private get5Points;
private getSegmentsFromPoints;
private getSegmentsForMultipleRows;
private updateSegmentsForHorizontalOrientation;
private updateNodes;
}