trassel
Version:
Graph computing in JavaScript
18 lines (17 loc) • 670 B
TypeScript
/**
* Creates a rectangular bounding box that stops nodes from leaving it
* @param {number=} width - Width of the box. If not set will be determined by the sizes and amounts of the nodes
* @param {number=} height - Height of the box. If not set will be determined by the sizes and amounts of the nodes
*/
export default class BoundingBox extends LayoutComponent {
constructor(width?: null, height?: null);
width: any;
height: any;
computedWidth: any;
computedHeight: any;
multiplier: number;
getWidth(node: any): any;
getHeight(node: any): any;
initialize(...args: any[]): void;
}
import LayoutComponent from "./layoutcomponent";