@witchcraft/layout
    Preparing search index...

    Function toCoord

    • Converts the given side/dir into a coordinate key (x/y)

      Type Parameters

      Parameters

      • dir: T

      Returns T extends "horizontal" | "left" | "right" ? "x" : "y"