Merge pull request #940 from antvis/fix-minimap-state-20191120

Fix minimap state 20191120
This commit is contained in:
Moyee 2019-11-20 20:03:01 +08:00 committed by GitHub
commit 2b8c0fd858
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@antv/g6",
"version": "3.1.9-beta.1",
"version": "3.1.10",
"description": "graph visualization frame work",
"main": "build/g6.js",
"types": "types/index.d.ts",

View File

@ -3,7 +3,7 @@
*/
module.exports = {
version: '3.1.9',
version: '3.1.10',
rootContainerClassName: 'root-container',
nodeContainerClassName: 'node-container',
edgeContainerClassName: 'edge-container',

View File

@ -277,13 +277,13 @@ Shape.registerNode('modelRect', {
...fontStyle,
y: -5,
x: offsetX,
text: Util.fittingString(cfg.label, 100, 14)
text: cfg.label
}
});
group.addShape('text', {
attrs: {
text: Util.fittingString(cfg.description, 75, 12),
text: cfg.description,
fontSize: 12,
x: offsetX,
y: 17,
@ -297,7 +297,7 @@ Shape.registerNode('modelRect', {
...fontStyle,
x: offsetX,
y: 7,
text: Util.fittingString(cfg.label, 70, 14)
text: cfg.label
}
});
}