mirror of
https://gitee.com/antv/g6.git
synced 2024-12-04 20:59:15 +08:00
feat: add layout extends
This commit is contained in:
parent
002a8e8b0b
commit
3635869fdb
6
packages/mobile/src/extends/circularLayout/index.ts
Normal file
6
packages/mobile/src/extends/circularLayout/index.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { CircularLayout } from '@antv/layout/es/layout/circular';
|
||||
|
||||
export default (option, G6) => {
|
||||
const { registerLayout } = G6;
|
||||
registerLayout('circular', CircularLayout);
|
||||
}
|
6
packages/mobile/src/extends/comboForceLayout/index.ts
Normal file
6
packages/mobile/src/extends/comboForceLayout/index.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { ComboForceLayout } from '@antv/layout/es/layout/comboForce';
|
||||
|
||||
export default (option, G6) => {
|
||||
const { registerLayout } = G6;
|
||||
registerLayout('comboForce', ComboForceLayout);
|
||||
}
|
6
packages/mobile/src/extends/concentricLayout/index.ts
Normal file
6
packages/mobile/src/extends/concentricLayout/index.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { ConcentricLayout } from '@antv/layout/es/layout/concentric';
|
||||
|
||||
export default (option, G6) => {
|
||||
const { registerLayout } = G6;
|
||||
registerLayout('concentric', ConcentricLayout);
|
||||
}
|
6
packages/mobile/src/extends/dagreLayout/index.ts
Normal file
6
packages/mobile/src/extends/dagreLayout/index.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { DagreLayout } from '@antv/layout/es/layout/dagre';
|
||||
|
||||
export default (option, G6) => {
|
||||
const { registerLayout } = G6;
|
||||
registerLayout('dagre', DagreLayout);
|
||||
}
|
6
packages/mobile/src/extends/forceLayout/index.ts
Normal file
6
packages/mobile/src/extends/forceLayout/index.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { ForceLayout } from '@antv/layout/es/layout/force';
|
||||
|
||||
export default (option, G6) => {
|
||||
const { registerLayout } = G6;
|
||||
registerLayout('force', ForceLayout);
|
||||
}
|
6
packages/mobile/src/extends/fruchtermanLayout/index.ts
Normal file
6
packages/mobile/src/extends/fruchtermanLayout/index.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { FruchtermanLayout } from '@antv/layout/es/layout/fruchterman';
|
||||
|
||||
export default (option, G6) => {
|
||||
const { registerLayout } = G6;
|
||||
registerLayout('fruchterman', FruchtermanLayout);
|
||||
}
|
6
packages/mobile/src/extends/gForceLayout/index.ts
Normal file
6
packages/mobile/src/extends/gForceLayout/index.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { GForceLayout } from '@antv/layout/es/layout/gForce';
|
||||
|
||||
export default (option, G6) => {
|
||||
const { registerLayout } = G6;
|
||||
registerLayout('gForce', GForceLayout);
|
||||
}
|
6
packages/mobile/src/extends/gridLayout/index.ts
Normal file
6
packages/mobile/src/extends/gridLayout/index.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { GridLayout } from '@antv/layout/es/layout/grid';
|
||||
|
||||
export default (option, G6) => {
|
||||
const { registerLayout } = G6;
|
||||
registerLayout('grid', GridLayout);
|
||||
}
|
6
packages/mobile/src/extends/mdsLayout/index.ts
Normal file
6
packages/mobile/src/extends/mdsLayout/index.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { MDSLayout } from '@antv/layout/es/layout/mds';
|
||||
|
||||
export default (option, G6) => {
|
||||
const { registerLayout } = G6;
|
||||
registerLayout('mds', MDSLayout);
|
||||
}
|
6
packages/mobile/src/extends/radialLayout/index.ts
Normal file
6
packages/mobile/src/extends/radialLayout/index.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { RadialLayout } from '@antv/layout/es/layout/radial';
|
||||
|
||||
export default (option, G6) => {
|
||||
const { registerLayout } = G6;
|
||||
registerLayout('radial', RadialLayout);
|
||||
}
|
Loading…
Reference in New Issue
Block a user