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

Invisible horizontal bond in svg of two-atom SMILES #177

Open
Acylation opened this issue Aug 7, 2023 · 0 comments
Open

Invisible horizontal bond in svg of two-atom SMILES #177

Acylation opened this issue Aug 7, 2023 · 0 comments

Comments

@Acylation
Copy link

Sample smiles: CC and CO

image

Proposed changes:

Setting 'maskUnits' attribute of the mask elements to 'userSpaceOnUse'

image

Keyword objectBoundingBox should not be used when the geometry of the applicable element has no width or no height, such as the case of a horizontal or vertical line, even when the line has actual thickness when viewed due to having a non-zero stroke width since stroke width is ignored for bounding box calculations. When the geometry of the applicable element has no width or height and objectBoundingBox is specified, then the given effect (e.g., a gradient or a filter) will be ignored.

https://bugs.chromium.org/p/chromium/issues/detail?id=570432
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/maskUnits

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

Successfully merging a pull request may close this issue.

1 participant