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

Add a dash (gap character) glyph? #4

Open
agartland opened this issue Apr 29, 2020 · 0 comments
Open

Add a dash (gap character) glyph? #4

agartland opened this issue Apr 29, 2020 · 0 comments

Comments

@agartland
Copy link

I'd like to add a dash/gap character as a custom glyph and would like help on how best to accomplish this. I have the SVG path below and have pasted it into a JSX file, but I'm not familiar with React and don't know how to add this to the logojs.ProteinAlphabet. Please point me to the docs if I'm missing something.
Thanks!
Andrew

import React from 'react';

const _path = "M 12.5 40 H 87.5 V 60 H 12.5 V 40";

export const dash = props => (
    <path {...props} d={_path} />
);
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

1 participant