diff --git a/README.md b/README.md index 0af4e319..46fa58b9 100644 --- a/README.md +++ b/README.md @@ -136,12 +136,20 @@ of [galactic-data](https://github.com/anvaka/galactic-data). demo -

Your graph?

- Open issue to request your own graph +

Rust Crates

+ + +
+ indexer | + demo -

Your graph?

- Open issue to request your own graph +

Elm

+ + +
+ indexer | + demo diff --git a/src/destination.jsx b/src/destination.jsx index c47a3fac..b38a6501 100644 --- a/src/destination.jsx +++ b/src/destination.jsx @@ -17,6 +17,9 @@ export default class Destination extends React.Component { let isHover = x.state ? x.state.hover : false; let imageSrc = prefix + props.media; if (isHover) imageSrc = imageSrc.replace(/_first\.png/, '_150.gif'); + if (props.static && props.dynamic) { + imageSrc = isHover ? props.dynamic : props.static; + } return ( + + + + );