fletcher.shapes.triangle()
An isosceles triangle node shape.
node(.., shape: "triangle", width: auto, height: auto, dir: top, angle: auto, aspect: auto, fit: 0.6)
Either the angle or aspect style parameter may be given, but not both. The triangle’s base coincides with the label’s base and widens to enclose the label; see https://www.desmos.com/calculator/i4i9svunj4.
dir(top, bottom, left, right): The side the shorter parallel edge is on.fit: Adjusts how comfortably the triangle fits the label’s bounding box.
fletcher.shapes.triangle(node)