feat: add layout extends

This commit is contained in:
AlbertAZ1992 2021-01-28 19:37:51 +08:00 committed by Yanyan Wang
parent 002a8e8b0b
commit 3635869fdb
10 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,6 @@
import { CircularLayout } from '@antv/layout/es/layout/circular';
export default (option, G6) => {
const { registerLayout } = G6;
registerLayout('circular', CircularLayout);
}

View File

@ -0,0 +1,6 @@
import { ComboForceLayout } from '@antv/layout/es/layout/comboForce';
export default (option, G6) => {
const { registerLayout } = G6;
registerLayout('comboForce', ComboForceLayout);
}

View File

@ -0,0 +1,6 @@
import { ConcentricLayout } from '@antv/layout/es/layout/concentric';
export default (option, G6) => {
const { registerLayout } = G6;
registerLayout('concentric', ConcentricLayout);
}

View File

@ -0,0 +1,6 @@
import { DagreLayout } from '@antv/layout/es/layout/dagre';
export default (option, G6) => {
const { registerLayout } = G6;
registerLayout('dagre', DagreLayout);
}

View File

@ -0,0 +1,6 @@
import { ForceLayout } from '@antv/layout/es/layout/force';
export default (option, G6) => {
const { registerLayout } = G6;
registerLayout('force', ForceLayout);
}

View File

@ -0,0 +1,6 @@
import { FruchtermanLayout } from '@antv/layout/es/layout/fruchterman';
export default (option, G6) => {
const { registerLayout } = G6;
registerLayout('fruchterman', FruchtermanLayout);
}

View File

@ -0,0 +1,6 @@
import { GForceLayout } from '@antv/layout/es/layout/gForce';
export default (option, G6) => {
const { registerLayout } = G6;
registerLayout('gForce', GForceLayout);
}

View File

@ -0,0 +1,6 @@
import { GridLayout } from '@antv/layout/es/layout/grid';
export default (option, G6) => {
const { registerLayout } = G6;
registerLayout('grid', GridLayout);
}

View File

@ -0,0 +1,6 @@
import { MDSLayout } from '@antv/layout/es/layout/mds';
export default (option, G6) => {
const { registerLayout } = G6;
registerLayout('mds', MDSLayout);
}

View File

@ -0,0 +1,6 @@
import { RadialLayout } from '@antv/layout/es/layout/radial';
export default (option, G6) => {
const { registerLayout } = G6;
registerLayout('radial', RadialLayout);
}