Expand description
Bond strokes: skeleton centerlines, multi-bond offsets, stereo, joins.
Keep in sync with python/xpict/draw/bonds.py.
Structs§
- Bond
Strokes - Strokes for one bond, ordered for painting: skeleton → offsets → stereo.
- Drawn
Bond - One bond after label inset, before multiple-bond joins.
- Stroke
Path - One SVG stroke before it becomes a
Primitive.
Functions§
- bond_
paths - Flat list (skeleton then offsets then stereo).
- bond_
strokes - Build skeleton / offset / stereo strokes for one bond.
- centered_
displacements - Signed offsets of a centered multiple bond along the left normal.
- crossed_
double - Crossed double for unspecified E/Z (RDKit EITHERDOUBLE).
- depict_
order - Normalize engine bond orders for 2D depiction.
- hashed_
wedge - Hashed wedge for a bond going away from the viewer.
- join_
centered_ multibonds - Mitre acyclic doubles and triples to their single-bond neighbors.
- line_
intersect - Intersect
p0 + t d0withp1 + s d1. - multi_
bond_ offset - Parallel spacing for double/triple strokes (RDKit
multipleBondOffset). - shorten
- solid_
wedge - Filled wedge; tip at
(x1,y1)stereocenter — RDKit BEGINWEDGE. - wavy_
bond - Wiggly single for unspecified stereo (RDKit UNKNOWN / Indigo EITHER).
Type Aliases§
- EndTrims
- Trim distance at begin, then end, one entry per centered line.