<commit_before># transform-gesture

Currently under development. Come back in a few days. (Mid of march 2014 or something)

`TransformGesture` is a standalone library that interprets pointer events for you. It supplies you with simple information like `translation`, `scale` and `rotation`.

## Installation
This package is available via bower as `transform-gesture`.

## Usage
``` JavaScript
var gesture = new TransformGesture({translate: true, rotate: true, scale: true});
gesture.target = yourElement;
yourElement.addEventListener('pointerdown', function(event) { gesture.addPointer(event) });

yourElement.addEventListener('transformgesturestart', function(event) { ... });
yourElement.addEventListener('transformgesture'     , function(event) { ... });
yourElement.addEventListener('transformgestureend'  , function(event) { ... });
```

## License
MIT, see license file for details

## Acknowledgement
`TransformGesture` is inspired by [MSGesture](http://msdn.microsoft.com/en-us/library/windows/apps/hh968035.aspx) (Although not based on its implementation).<commit_msg>Mention YouTube talk and pointer events polyfill<commit_after># transform-gesture

Currently under development. Come back in a few days. (Mid of march 2014 or something)

`TransformGesture` is a standalone library that interprets pointer events ([YouTube - Talk about pointer events](http://www.youtube.com/watch?v=l8upftEWslM)) for you. It supplies you with simple information like `translation`, `scale` and `rotation`.

Although pointer events are currently only available in Internet Explorer 11, there exists a polyfill ([Polymer Pointer Events Polyfill](https://github.com/polymer/PointerEvents)) that makes them available in all modern browsers. The polyfill is available via bower as "pointerevents-polyfill".

## Installation
This package is available via bower as `transform-gesture`.

## Usage
``` JavaScript
var gesture = new TransformGesture({translate: true, rotate: true, scale: true});
gesture.target = yourElement;
yourElement.addEventListener('pointerdown', function(event) { gesture.addPointer(event) });

yourElement.addEventListener('transformgesturestart', function(event) { ... });
yourElement.addEventListener('transformgesture'     , function(event) { ... });
yourElement.addEventListener('transformgestureend'  , function(event) { ... });
```

## License
MIT, see license file for details

## Acknowledgement
`TransformGesture` is inspired by [MSGesture](http://msdn.microsoft.com/en-us/library/windows/apps/hh968035.aspx) (But not based on its implementation).
{'fraction_non_alphanumeric': 0.11427457098283932, 'fraction_numerical': 0.008970358814352574, 'mean_word_length': 5.8766756032171585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7402650', 'n_tokens_mistral': 707, 'n_tokens_neox': 652, 'n_words': 223}