Scenic.Primitive.Transform.Pin (Scenic v0.10.3) View Source

Set the pin for rotate and scale transforms.

When rotating or scaling, you need to set the point that doesn't move. This is the pin. If you don't set one, Scenic will try to use a sensible default for whatever primitive you are transforming.

Use the :pin option to set it explicitly

{pin_x, pin_y }

Example:

graph
|> text("Rotated!", rotate: 1.2, pin: {10, 20})