Function rotateAroundCenter

  • Rotates a node around its center

    Parameters

    • node: Stage | Layer | Shape<ShapeConfig> | Group

      The node

    • theta: number

      The angle value

    Returns void

    The rotated node around the center based on the given angle