Skip to content

Commit

Permalink
docs(graphin):fix demo style
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Jan 13, 2021
1 parent 1815f3d commit f9ed325
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/graphin/docs/geamaker/demos/CustomMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { GraphinContext, Utils } from '@antv/graphin';
import { ContextMenu } from '@antv/graphin-components';
import { manageExpandCollapseArray, getMixedGraph, icons } from './utils';
import { clusterColorMap } from './color';
import { hexToRgbaToHex } from '../../../src/utils/hexToRgba';

const { Menu } = ContextMenu;

Expand Down Expand Up @@ -45,10 +46,12 @@ const CustomMenu: React.FunctionComponent<CustomMenuProps> = props => {
if (!node.type) {
node.type = 'graphin-circle';
node.style = {
fill: '#fff',
strokeWidth: 0.5,
stroke: primaryColor,
size: [NODE_SIZE, NODE_SIZE],
keyshape: {
fill: hexToRgbaToHex(primaryColor, 0.1),
strokeWidth: 0.5,
stroke: primaryColor,
size: [NODE_SIZE, NODE_SIZE],
},
label: {
value: `${node.id}`,
fill: '#000',
Expand Down

0 comments on commit f9ed325

Please sign in to comment.