ericdrowell/KineticJS — pull request #27 by matteo78 (2012-06-13 13:23:20+00:00)
Title: Add functions chaining and add wrap support

Hello,

I was browsing the KineticJS forum when I seen lot of wrap implementation request. Here I do so with a new property wrap who takes following arguments :

wrap: {
activated: (true/false) // activate text wrapping
spacing: (number) // space between the lines
//breakWords: (true/false) // working on this, it's about word breaking when the text overflows the limit
}

I've also added some return this; at the end of non-getter functions of core objects in order to chain calls.