g6/tests/unit/layout/data/combo-test-data.ts
2020-08-17 18:50:55 +08:00

452 lines
5.8 KiB
TypeScript

export default {
nodes: [
{
id: '0',
label: '0',
comboId: 'a',
},
{
id: '1',
label: '1',
comboId: 'a',
},
{
id: '2',
label: '2',
comboId: 'a',
},
{
id: '3',
label: '3',
comboId: 'a',
},
{
id: '4',
label: '4',
comboId: 'a',
},
{
id: '5',
label: '5',
comboId: 'a',
},
{
id: '6',
label: '6',
comboId: 'a',
},
{
id: '7',
label: '7',
comboId: 'a',
},
{
id: '8',
label: '8',
comboId: 'a',
},
{
id: '9',
label: '9',
comboId: 'a',
},
{
id: '10',
label: '10',
comboId: 'a',
},
{
id: '11',
label: '11',
comboId: 'a',
},
{
id: '12',
label: '12',
comboId: 'a',
},
{
id: '13',
label: '13',
comboId: 'b',
},
{
id: '14',
label: '14',
comboId: 'b',
},
{
id: '15',
label: '15',
comboId: 'b',
},
{
id: '16',
label: '16',
comboId: 'b',
},
{
id: '17',
label: '17',
comboId: 'b',
},
{
id: '18',
label: '18',
comboId: 'c',
},
{
id: '19',
label: '19',
comboId: 'c',
},
{
id: '20',
label: '20',
comboId: 'c',
},
{
id: '21',
label: '21',
comboId: 'c',
},
{
id: '22',
label: '22',
comboId: 'c',
},
{
id: '23',
label: '23',
comboId: 'c',
},
{
id: '24',
label: '24',
comboId: 'c',
},
{
id: '25',
label: '25',
comboId: 'c',
},
{
id: '26',
label: '26',
comboId: 'c',
},
{
id: '27',
label: '27',
comboId: 'c',
},
{
id: '28',
label: '28',
comboId: 'c',
},
{
id: '29',
label: '29',
comboId: 'c',
},
{
id: '30',
label: '30',
comboId: 'c',
},
{
id: '31',
label: '31',
comboId: 'd',
},
{
id: '32',
label: '32',
comboId: 'd',
},
{
id: '33',
label: '33',
comboId: 'd',
},
],
edges: [
{
source: 'a',
target: 'b',
size: 3,
style: {
stroke: 'red',
},
},
{
source: 'a',
target: '33',
size: 3,
style: {
stroke: 'blue',
},
},
{
source: '0',
target: '1',
},
{
source: '0',
target: '2',
},
{
source: '0',
target: '3',
},
{
source: '0',
target: '4',
},
{
source: '0',
target: '5',
},
{
source: '0',
target: '7',
},
{
source: '0',
target: '8',
},
{
source: '0',
target: '9',
},
{
source: '0',
target: '10',
},
{
source: '0',
target: '11',
},
{
source: '0',
target: '13',
},
{
source: '0',
target: '14',
},
{
source: '0',
target: '15',
},
{
source: '0',
target: '16',
},
{
source: '2',
target: '3',
},
{
source: '4',
target: '5',
},
{
source: '4',
target: '6',
},
{
source: '5',
target: '6',
},
{
source: '7',
target: '13',
},
{
source: '8',
target: '14',
},
{
source: '9',
target: '10',
},
{
source: '10',
target: '22',
},
{
source: '10',
target: '14',
},
{
source: '10',
target: '12',
},
{
source: '10',
target: '24',
},
{
source: '10',
target: '21',
},
{
source: '10',
target: '20',
},
{
source: '11',
target: '24',
},
{
source: '11',
target: '22',
},
{
source: '11',
target: '14',
},
{
source: '12',
target: '13',
},
{
source: '16',
target: '17',
},
{
source: '16',
target: '18',
},
{
source: '16',
target: '21',
},
{
source: '16',
target: '22',
},
{
source: '17',
target: '18',
},
{
source: '17',
target: '20',
},
{
source: '18',
target: '19',
},
{
source: '19',
target: '20',
},
{
source: '19',
target: '33',
},
{
source: '19',
target: '22',
},
{
source: '19',
target: '23',
},
{
source: '20',
target: '21',
},
{
source: '21',
target: '22',
},
{
source: '22',
target: '24',
},
{
source: '22',
target: '25',
},
{
source: '22',
target: '26',
},
{
source: '22',
target: '23',
},
{
source: '22',
target: '28',
},
{
source: '22',
target: '30',
},
{
source: '22',
target: '31',
},
{
source: '22',
target: '32',
},
{
source: '22',
target: '33',
},
{
source: '23',
target: '28',
},
{
source: '23',
target: '27',
},
{
source: '23',
target: '29',
},
{
source: '23',
target: '30',
},
{
source: '23',
target: '31',
},
{
source: '23',
target: '33',
},
{
source: '32',
target: '33',
},
],
combos: [
{
id: 'a',
label: 'combo a',
},
{
id: 'b',
label: 'combo b',
},
{
id: 'c',
label: 'combo c',
},
{
id: 'd',
label: 'combo d',
parentId: 'b',
},
],
};