Skip to content

Commit e9c18ba

Browse files
author
antv
committed
perf: optimize behaviors perf
1 parent 355055b commit e9c18ba

File tree

5 files changed

+364
-315
lines changed

5 files changed

+364
-315
lines changed

packages/g6/__tests__/demos/case-unicorns-investors.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { Graph } from '@/src';
77
* 1086 nodes, 1247 edges
88
*
99
* 10 VC firms in Silicon Valley funded 82% of all unicorns, 98% of all exited unicorns. Data from CB Insights, updated March 2020.
10-
* @param context
10+
* @param context - context
11+
* @returns - graph
1112
*/
1213
export const caseUnicornsInvestors: TestCase = async (context) => {
1314
const data = await fetch('https://assets.antv.antgroup.com/g6/unicorns-investors.json').then((res) => res.json());
@@ -55,6 +56,7 @@ export const caseUnicornsInvestors: TestCase = async (context) => {
5556
collide: { radius: (node: NodeData) => size(node) },
5657
manyBody: { strength: (node: NodeData) => -4 * size(node) },
5758
animation: false,
59+
iterations: 20,
5860
},
5961
transforms: [
6062
{

0 commit comments

Comments
 (0)