Skip to content
kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of UI)

Returns: size object

Parameters: aSize (size), bSize (size)

Returns aSize offset by bSize. bSize's properties may be negative in order to shift aSize negatively.

Usage

var aSize = UI.makeSize ( 100, 150 );
var bSize = UI.makeSize ( 10, -10 );
var cSize = UI.offsetSize ( aSize, bSize );
// cSize is now { w: 110, h: 140 }

Version

0.3 Introduced; Docs Valid

Clone this wiki locally