Function sumOffset

  • Sums x,y,width,height of a+b.

    sumOffset({x:100,y:100,width:100,height:100}, {x:10, y:20, width: 30, height: 40});
    // Yields: {x: 110, y: 120, width: 130, height: 140 }

    If either a or b are missing x & y, 0 is used

    Returns RectPositioned