mirror of
https://gitee.com/antv/g6.git
synced 2024-12-04 12:49:04 +08:00
339f28c564
* feat: fix plugin demo with extensions * Chore:check translate (#4886) * feat: check plugins * chore: update docs |
||
---|---|---|
.. | ||
classes/graph | ||
interfaces | ||
modules | ||
.nojekyll | ||
modules.en.md | ||
modules.zh.md | ||
README.en.md | ||
README.zh.md |
title |
---|
README |
Overview / Modules
G6 API Core Modules
import { Graph, Util } from '@antv/g6';
const data = Util.mock(6).circle();
const graph = new Graph({
container: 'container',
width: 500,
height: 500,
data,
layout: {
type: 'grid',
},
plugins: [
{
key: 'minimap',
type: 'minimap',
size: [300, 200],
mode: 'delegate',
delegateStyle: {
fill: 'red',
},
className: 'g6-minimap-2',
viewportClassName: 'g6-minimap-viewport-2',
},
],
});
const nodes = graph.getAllNodesData();
const nodes = graph.getAllNodesData();
graph.on('node:click', (e) => {});
Introduce
In the above code snippet, we may want to know more about what G6 has to offer, in which case we will need the G6 API documentation