logojs-package icon indicating copy to clipboard operation
logojs-package copied to clipboard

Add a dash (gap character) glyph?

Open agartland opened this issue 4 years ago • 0 comments

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} />
);

agartland avatar Apr 29 '20 21:04 agartland