trassel
Version:
Graph computing in JavaScript
21 lines (20 loc) • 917 B
TypeScript
/**
* Creates a radial component that pulls nodes into a circular pattern
* @param {number=} strength - How strong should it be? (0-1)
* @param {number=} centerX - Center X coordinate of the component
* @param {number=} centerY - Center Y coordinate of the component
* @param {number=} diameter - Diameter of the circle
* @param {number=} sizeMultiplier - If diameter is automatically computed based on nodes, how much extra space should be added? (Multiplier)
*/
export default class Radial extends LayoutComponent {
constructor(strength?: number, centerX?: null, centerY?: null, sizeMultiplier?: number, diameter?: null);
strength: number;
centerX: number | null;
centerY: number | null;
sizeMultiplier: number;
userProvidedDiameter: any;
diameter: number;
initialize(...args: any[]): void;
execute(alpha: any): void;
}
import LayoutComponent from "./layoutcomponent.js";