Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showing Direction of link #143

Open
Aditi-Bhatt opened this issue Jun 2, 2021 · 1 comment
Open

Showing Direction of link #143

Aditi-Bhatt opened this issue Jun 2, 2021 · 1 comment

Comments

@Aditi-Bhatt
Copy link

How to show the direction of the link continuously instead of just showing it on hover?

@SeanMengis
Copy link

I did it by overriding the CSS for ".bi-link-path" :

Something like that:

.bi.bi-diagram .bi-link-canvas-layer .bi-diagram-link .bi-link-path{
            stroke:#67b9ee;
            stroke-dasharray:10,2;
            animation: BiDashSegmentAnimation 1.7s linear infinite;
}

I'm not 100% sure it is correct so you'll have to adjust it. I personnally use Material-UI and did the override with something like this:

const useStyles = makeStyles(()=> ({
    "@global": {
        ".bi.bi-diagram": {
            boxShadow: 0,
            borderRadius: 0,
            backgroundImage: "linear-gradient(90deg, rgba(244,244,244,1) 0%, rgba(244,244,244,1) 33.33%, rgba(250,250,250,1) 33.34%, rgba(250,250,250,1) 66.66%, rgba(244,244,244,1) 66.67%, rgba(244,244,244,1) 100%)"
        },
        ".bi.bi-diagram .bi-link-canvas-layer .bi-diagram-link .bi-link-path": {
            stroke:"#b7d8ec",
        },
        ".bi-link-path": {
            stroke:"#67b9ee",
            strokeDasharray:"10,2",
            animation: "BiDashSegmentAnimation 1.7s linear infinite"
        }
    }
}));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants