Function shapeTopBottom

  • a shape that aligns edges with the centered top or bottom of a node

    Useful with [tweakShape].

    Parameters

    • center: readonly [number, number]
    • nodeSize: readonly [number, number]
    • start: readonly [number, number]
    • end: readonly [number, number]

    Returns [number, number]