mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
fix: graph layout, node visibility and FA2 settings
- Switch to CSS Grid layout for reliable content area height - Use inferSettings() for ForceAtlas2 auto-tuning based on graph structure - Enable linLogMode and adjustSizes for better node clustering - Fit camera after layout settles with animatedReset - Increase node sizes for better visibility (MIN 8, MAX 40) - Center controls at bottom, fix overlay positions
This commit is contained in:
@@ -46,8 +46,8 @@ export function getUserNodeColor(
|
||||
* Size is proportional to direct_referrals, clamped between min and max.
|
||||
*/
|
||||
export function getUserNodeSize(directReferrals: number): number {
|
||||
const MIN_SIZE = 4;
|
||||
const MAX_SIZE = 30;
|
||||
const MIN_SIZE = 8;
|
||||
const MAX_SIZE = 40;
|
||||
if (directReferrals === 0) return MIN_SIZE;
|
||||
return Math.min(MAX_SIZE, MIN_SIZE + Math.sqrt(directReferrals) * 4);
|
||||
return Math.min(MAX_SIZE, MIN_SIZE + Math.sqrt(directReferrals) * 5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user