Skip to main content

Module pin

Module pin 

Source
Expand description

The pin vocabulary the geometry layer draws in: the document’s pin entity and its value enums, plus the derived readings the drawing and hit-test paths take off a pin’s registers.

Structs§

Pin

Enums§

PinDir
PinSide
Which block edge a pin occupies. West is the zero: every auto-placed port starts there.

Functions§

flipped_dir
The opposite sense, used when a pin is rendered as a port. InOut has no sense, so it is unchanged.
orientation
Which way a pin’s port body faces when the pin is drawn as its own boundary port. flip_lr reads false as “opposite the edge the pin occupies”, so the interior stub points inward, and true as “frozen to face that edge”. Use this, never slot’s side, for every port-view drawing, hit test, and route anchor.
slot
The slot a pin occupies on its owner’s boundary — the edge and the index, read as one atomic value.