docs: update bubble set example. docs: update changelog and version number.

This commit is contained in:
Yanyan-Wang 2020-08-24 20:29:43 +08:00 committed by Yanyan Wang
parent 2fab49aab2
commit 93ca3d77b6
7 changed files with 29 additions and 10 deletions

View File

@ -1,5 +1,15 @@
# ChangeLog
#### 3.7.0
- feat: chart node;
- feat: bubble set;
- feat: custom node with xml;
- feat: minimum spanning tree algorithm;
- feat: path finding algorithm;
- feat: cycle finding algorithm;
- chore: update antv/hierarchy to fix indented tree with dropCap problem.
#### 3.6.2
- feat: find all paths and the shortest path between two nodes;

View File

@ -134,13 +134,19 @@ const data = {
],
};
const width = document.getElementById('container').scrollWidth;
const height = document.getElementById('container').scrollHeight || 500;
const graph = new G6.Graph({
container: 'container',
width: 500,
height: 500,
width,
height,
modes: {
default: ['drag-canvas', 'zoom-canvas', 'drag-node'],
},
fitView: true,
layout: {
type: 'grid'
}
});
graph.data(data);

View File

@ -46,10 +46,13 @@ descriptionDiv.innerHTML = 'Wait for the layout to complete...';
const graphDiv = document.getElementById('container');
graphDiv.appendChild(descriptionDiv);
const width = document.getElementById('container').scrollWidth;
const height = document.getElementById('container').scrollHeight || 500;
const graph = new G6.Graph({
container: 'container',
width: 500,
height: 500,
width,
height,
modes: {
default: ['drag-canvas', 'zoom-canvas', 'drag-node', 'lasso-select'],
},

View File

@ -1,4 +1,4 @@
window.g6 = require('./src/index.ts'); // import the source for debugging
// window.g6 = require('./dist/g6.min.js'); // import the package for webworker
// window.g6 = require('./src/index.ts'); // import the source for debugging
window.g6 = require('./dist/g6.min.js'); // import the package for webworker
window.insertCss = require('insert-css');
window.Chart = require('@antv/chart-node-g6');

View File

@ -1,6 +1,6 @@
{
"name": "@antv/g6",
"version": "3.6.2",
"version": "3.7.0",
"description": "A Graph Visualization Framework in JavaScript",
"keywords": [
"antv",
@ -130,4 +130,4 @@
"webpack-cli": "^3.3.10",
"worker-loader": "^3.0.0"
}
}
}

View File

@ -1,5 +1,5 @@
export default {
version: '3.6.2',
version: '3.7.0',
rootContainerClassName: 'root-container',
nodeContainerClassName: 'node-container',
edgeContainerClassName: 'edge-container',

View File

@ -706,7 +706,7 @@ export const getComboBBox = (children: ComboTree[], graph: IGraph): BBox => {
export const getChartRegion = (
params: {
group: IGroup,
group: Group,
width: number,
height: number,
x: number,