Skip to content

Commit

Permalink
Merge c590872 into 0d383f8
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonneyx committed Mar 8, 2024
2 parents 0d383f8 + c590872 commit 62d668d
Show file tree
Hide file tree
Showing 34 changed files with 269 additions and 161 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ export const controllerLayoutDendrogram: STDTestCase = async (context) => {
labelText: (data: any) => data.id,
labelPlacement: 'right',
labelMaxWidth: 200,
ports: [
{
placement: 'right',
},
{
placement: 'left',
},
],
},
},
edge: {
Expand Down
1 change: 1 addition & 0 deletions packages/g6/__tests__/demo/static/node-circle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const nodeCircle: StaticTestCase = async (context) => {
iconWidth: 20,
iconSrc: 'https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg',
halo: (d: any) => d.id.includes('halo'),
portR: 3,
ports: (d: any) =>
d.id.includes('ports')
? [{ placement: 'left' }, { placement: 'right' }, { placement: 'top' }, { placement: 'bottom' }]
Expand Down
1 change: 1 addition & 0 deletions packages/g6/__tests__/demo/static/node-diamond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const nodeDiamond: StaticTestCase = async (context) => {
iconHeight: 20,
iconSrc: 'https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg',
halo: (d: any) => d.id.includes('halo'),
portR: 3,
ports: (d: any) =>
d.id.includes('ports')
? [{ placement: 'left' }, { placement: 'right' }, { placement: 'top' }, { placement: 'bottom' }]
Expand Down
1 change: 1 addition & 0 deletions packages/g6/__tests__/demo/static/node-ellipse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const nodeEllipse: StaticTestCase = async (context) => {
iconWidth: 20,
iconSrc: 'https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg',
halo: (d: any) => d.id.includes('halo'),
portR: 3,
ports: (d: any) =>
d.id.includes('ports')
? [{ placement: 'left' }, { placement: 'right' }, { placement: 'top' }, { placement: 'bottom' }]
Expand Down
1 change: 1 addition & 0 deletions packages/g6/__tests__/demo/static/node-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const nodeImage: StaticTestCase = async (context) => {
src: 'https://gw.alipayobjects.com/mdn/rms_6ae20b/afts/img/A*N4ZMS7gHsUIAAAAAAAAAAABkARQnAQ',
halo: (d: any) => d.id.includes('halo'),
haloStroke: '#227eff',
portR: 3,
ports: (d: any) =>
d.id.includes('ports')
? [{ placement: 'left' }, { placement: 'right' }, { placement: 'top' }, { placement: 'bottom' }]
Expand Down
1 change: 1 addition & 0 deletions packages/g6/__tests__/demo/static/node-rect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const nodeRect: StaticTestCase = async (context) => {
iconHeight: 20,
iconSrc: 'https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg',
halo: (d: any) => d.id.includes('halo'),
portR: 3,
ports: (d: any) =>
d.id.includes('ports')
? [{ placement: 'left' }, { placement: 'right' }, { placement: 'top' }, { placement: 'bottom' }]
Expand Down
1 change: 1 addition & 0 deletions packages/g6/__tests__/demo/static/node-star.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const nodeStar: StaticTestCase = async (context) => {
labelText: (d: any) => d.id,
iconSrc: 'https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg',
halo: (d: any) => d.id.includes('halo'),
portR: 3,
ports: (d: any) =>
d.id.includes('ports')
? [{ placement: 'left' }, { placement: 'right' }, { placement: 'top' }, { placement: 'bottom' }]
Expand Down
1 change: 1 addition & 0 deletions packages/g6/__tests__/demo/static/node-triangle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const nodeTriangle: StaticTestCase = async (context) => {
labelText: (d: any) => d.id,
iconSrc: 'https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg',
halo: (d: any) => d.id.includes('halo'),
portR: 3,
ports: (d: any) =>
d.id.includes('ports') ? [{ placement: 'left' }, { placement: 'top' }, { placement: 'bottom' }] : [],
badges: (d: any) =>
Expand Down

0 comments on commit 62d668d

Please sign in to comment.