DipoleChrome

The shared convention for rendering a dipole's connector — the dashed line joining its endpoint markers. A single source consumed by every renderer, so the same dipole reads the same way everywhere.

The connector is not styled separately: its color is the dipole style's ShapeStyle.fill (a dipole's endpoint markers are fill-painted, so fill is its single color), its stroke width is the style's ShapeStyle.size times WIDTH_RATIO, and its dash pattern alternates DASH_ON units painted with DASH_OFF units skipped, in the renderer's units.

Properties

Link copied to clipboard
const val DASH_OFF: Double = 1.0

The skipped gap of the connector's dash pattern, in the renderer's units.

Link copied to clipboard
const val DASH_ON: Double = 2.0

The painted run of the connector's dash pattern, in the renderer's units.

Link copied to clipboard
const val WIDTH_RATIO: Double = 0.25

The connector's stroke width as a fraction of the dipole style's size.