mirror of
https://gitee.com/antv/g6.git
synced 2024-11-30 10:48:24 +08:00
chore: update test data to json
This commit is contained in:
parent
44e5a78919
commit
4c22889e9f
104202
packages/g6/tests/demo/demo/data.json
Normal file
104202
packages/g6/tests/demo/demo/data.json
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
|
@ -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 = [];
|
||||
|
||||
|
@ -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....';
|
||||
|
Loading…
Reference in New Issue
Block a user