Try to center a label s2 with respect to some shape s1.

  • Parameters

    • s1: Line | RectLike

      A line or rect-like shape

    • s2: RectLike

      A rect-like shape (rectangle, image, text, or equation)

    • w: number

      Weight

    • padding: Num = 10

      Padding (default: 10)

    Returns Num