Skip to content

Commit

Permalink
🐛 fix extend.icon issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zxc0328 committed Nov 22, 2019
1 parent dd9daff commit ac2bb18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/graphin/package.json
@@ -1,6 +1,6 @@
{
"name": "@antv/graphin",
"version": "1.0.0-beta.11",
"version": "1.0.0-beta.12",
"description": "the react toolkit for graph analysis based on g6",
"main": "./dist/index",
"types": "./dist/index.d",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphin/src/shape/render/CircleNode.ts
Expand Up @@ -47,7 +47,7 @@ const renderNodeShape: NodeShapeFunction = (node: Node) => {
y: 0,
fontSize: iconSize,
fill: primaryColor,
text: iconFont(node.data.type || icon, fontFamily),
text: iconFont(icon || node.data.type || '', fontFamily),
fontFamily,
textAlign: 'center',
textBaseline: 'middle',
Expand Down

0 comments on commit ac2bb18

Please sign in to comment.