Skip to content

Commit

Permalink
feat(graphin):add inactive style
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Jan 14, 2021
1 parent ed6b84b commit 40e3f6e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/graphin/src/consts.ts
Expand Up @@ -94,6 +94,7 @@ export const genDefaultNodeStyle = ({
font: '#fff',
},
label: '#000',
disabled: '#ddd',
},
dark: {
fill: hexToRgba(primaryColor, '0.3'),
Expand All @@ -105,6 +106,7 @@ export const genDefaultNodeStyle = ({
font: '#fff',
},
label: '#fff',
disabled: '#ddd3',
},
};

Expand Down Expand Up @@ -157,7 +159,18 @@ export const genDefaultNodeStyle = ({
},
inactive: {
halo: {
visible: true,
visible: false,
},
keyshape: {
lineWidth: 0,
fill: Color.disabled,
stroke: Color.disabled,
},
icon: {
fill: Color.disabled,
},
label: {
fill: Color.disabled,
},
},
},
Expand Down

0 comments on commit 40e3f6e

Please sign in to comment.