chore: update test data to json

This commit is contained in:
Yanyan-Wang 2023-11-01 16:28:53 +08:00
parent 44e5a78919
commit 4c22889e9f
5 changed files with 104206 additions and 104211 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@ import G6, { Graph, Extensions, extend } from '../../../src/index';
import { container, height, width } from '../../datasets/const';
import { RendererName } from '../../../src/types/render';
import { Point } from '../../../src/types/common';
import data from './data';
import data from './data.json';
import data3d from './data3d';
let graph: typeof Graph;
@ -754,7 +754,7 @@ const getDataFor3D = (inputData) => {
return inputData;
};
export default () => {
export default async () => {
const result2d = getDataFor2D(data);
degrees = result2d.degrees;
dataFor2D = result2d.data;

View File

@ -2,7 +2,7 @@ import G6 from '@antv/G6';
import { labelPropagation } from '@antv/algorithm';
import Stats from 'stats.js';
import { container, width } from '../../datasets/const';
import data from './data';
import data from './data.json';
const nodeIds = [];

View File

@ -375,7 +375,7 @@ const tip = document.createElement('span');
tip.innerHTML = '<br />👉 Change Renderer:';
btnContainer.appendChild(tip);
fetch('https://gw.alipayobjects.com/os/basement_prod/0b9730ff-0850-46ff-84d0-1d4afecd43e6.json')
fetch('https://raw.githubusercontent.com/antvis/G6/v5/packages/g6/tests/demo/demo/data.json')
.then((res) => res.json())
.then((data) => {
tip2.innerHTML = '🎨 Rendering....';