core/editor/graph.ts
Function GenerateSomeRandomNodes
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function GenerateSomeRandomNodes ( howManyNodes: number ) {
// defs
const baseUnit = 120;
const widthUnit = Math.floor( GraphWidth / baseUnit );
const heightUnit = Math.floor( GraphHeight / baseUnit );