stuyam / pressure

:point_down::boom: JavaScript library for handling Force Touch, 3D Touch, and Pointer Pressure.
https://pressurejs.com
MIT License
2.92k stars 97 forks source link

Dev #80

Closed Dok0 closed 4 years ago

Dok0 commented 5 years ago

Add an arrayList to be able to recover pressure after using pressurejs library

A variable to capture biometric data and 3 functions have been added: 1- initArrayPoints: the initArrayPoints method allows initializing the empty arrayList 2- addPoint: the initArrayPoints method allows one Point to arrayList 3- getArrayPoints: the initArrayPoints method allows recovering the arrayList

With these extra functions, all points can be recovered. In the pressurejs lib example, the functions in block element modify HTML elements directly but in order to save the biometric data, you'll need to extract them to use them afterwards.

(I don't know the best form to minified the code, for that i didn't do it . Sorry)

Thanks and Best Regards.

I can't add mew branch I add al project, and only the sources I think will be a good update. pressure.zip pressure.onlyfilesmodified.zip