ixfx
    Preparing search index...

    Function multiplyDim

    • Multiplies only the width/height of rect, leaving x and y as they are.

      multiplyDim({ x:1,y:2,width:3,height:4 }, 2);
      // Yields: { x:1, y:2, width:6, height: 8 }

      In comparison, multiply will also include x & y.

      Parameters

      Returns Rect | RectPositioned