Vertex Viewer SDK
    Preparing search index...

    Function scale

    • Returns a rectangle where the position and dimensions are scaled by the given factors. If scaleY is omitted, then the position and dimensions are scaled uniformly by scaleOrScaleX.

      Parameters

      • rect: Rectangle.Rectangle

        The rectangle to scale.

      • scaleOrScaleX: number

        The uniform scale factor, or the horizontal scale factor.

      • OptionalscaleY: number

        The vertical scale factor.

      Returns Rectangle.Rectangle

      A scaled rectangle.