dependency-graph-construction
Version:
A powerful tool to construct dependency graphs for JavaScript and TypeScript projects. Useful for project structure analysis and debugging.
133 lines (129 loc) • 2.07 kB
JavaScript
import { fileNodeColor } from './constants';
export const fileNodeProperties = {
fillcolor: fileNodeColor ?? '#FFEB3B',
shape: 'box',
width: 0.2,
height: 0.1,
};
export const folderNodeProperties = {
shape: 'folder',
width: 0.5,
height: 0.4,
};
export const hierarchicalColorArray = {
0: [
'#f5d5d5',
'#f5ded5',
'#f5ebd5',
'#f5f4d5',
'#eef5d5',
'#e5f5d5',
'#ddf5d5',
'#d5f5d6',
'#d5f5e0',
'#d5f5e7',
'#d5f5f2',
'#d5ecf5',
'#d5e4f5',
'#d5dbf5',
'#dbd5f5',
'#e7d5f5',
'#efd5f5',
'#f5d5f1',
'#f5d5e8',
'#f5d5df',
'#f5d5d7',
],
1: [
'#f5c4c4',
'#f5d4c4',
'#f5e2c4',
'#f5f0c4',
'#ebf5c4',
'#ddf5c4',
'#cef5c4',
'#c4f5c8',
'#c4f5d7',
'#c4f5e7',
'#c4f5f5',
'#c4e7f5',
'#c4d7f5',
'#c4c8f5',
'#cec4f5',
'#e0c4f5',
'#f0c4f5',
'#f5c4ec',
'#f5c4de',
'#f5c4d2',
'#f5c4c9',
],
2: [
'#f5aeae',
'#f5c8ae',
'#f5daae',
'#f5f0ae',
'#e3f5ae',
'#cff5ae',
'#b7f5ae',
'#aef5c1',
'#aef5d7',
'#aef5eb',
'#aeeaf5',
'#aed4f5',
'#aebdf5',
'#b8aef5',
'#ceaef5',
'#e3aef5',
'#f5aef4',
'#f5aede',
'#f5aec7',
'#f5aeb6',
'#f5aeae',
],
3: [
'#f59f9f',
'#f5c09f',
'#f5da9f',
'#f5f29f',
'#dff59f',
'#bff59f',
'#a1f59f',
'#9ff5b9',
'#9ff5ce',
'#9ff5e9',
'#9febf5',
'#9fd1f5',
'#9fb7f5',
'#9fa2f5',
'#b29ff5',
'#cd9ff5',
'#ec9ff5',
'#f59fe7',
'#f59fcb',
'#f59fad',
'#f59f9f',
],
4: [
'#f7928d',
'#f7ad8d',
'#f7c28d',
'#f7db8d',
'#f4f78d',
'#d4f78d',
'#b6f78d',
'#94f78d',
'#8df7a6',
'#8df7c9',
'#8df7ed',
'#8de0f7',
'#8db9f7',
'#8d9ff7',
'#9b8df7',
'#c08df7',
'#e48df7',
'#f78de4',
'#f78dc0',
'#f78d9f',
'#f78d8d',
],
};