Scale Object with finger gesture

How do I scale using a pinch finger gesture
& rotate with a finger swipe ?

I am mainly using Java script… not versed in C+

Mick

Thanks for the reply… These links have helped me so much.

Mick