Skip to content

Commit

Permalink
feat:adjust edge and node active status style
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Feb 10, 2021
1 parent 587b4ca commit 3f4f370
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
20 changes: 18 additions & 2 deletions packages/graphin/src/theme/edge-style.ts
Expand Up @@ -68,15 +68,31 @@ const getEdgeStyleByTheme = (inputTheme: EdgeTheme) => {
halo: {
visible: true,
},
keyShape: {
keyshape: {
lineWidth: 2,
},
},
active: {
halo: {
visible: true,
},
keyshape: {
lineWidth: 2,
},
},
inactive: {
halo: {
visible: false,
},
keyshape: {
strokeOpacity: 0.1,
},
},
disabled: {
halo: {
visible: false,
},
keyShape: {
keyshape: {
lineWidth: 0.5,
stroke: Color.disabled,
},
Expand Down
8 changes: 4 additions & 4 deletions packages/graphin/src/theme/node-style.ts
Expand Up @@ -99,14 +99,14 @@ const getNodeStyleByTheme = (inputNodeTheme: NodeTheme) => {
active: {},
inactive: {
keyshape: {
fillOpacity: 0.2,
strokeOpacity: 0.2,
fillOpacity: 0.04,
strokeOpacity: 0.04,
},
icon: {
fillOpacity: 0.2,
fillOpacity: 0.04,
},
label: {
fillOpacity: 0.2,
fillOpacity: 0.04,
},
},
disabled: {
Expand Down

0 comments on commit 3f4f370

Please sign in to comment.