Spaces:
Paused
Paused
Download node_modules/@plotly/mapbox-gl/src/ui/handler/handler_util.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 301 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/ui/handler/handler_util.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/mapbox-gl/src/ui/handler/handler_util.js
-
curl -L -o handler_util.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/ui/handler/handler_util.js
301 Bytes
| // @flow | |
| import assert from 'assert'; | |
| export function indexTouches(touches: Array<Touch>, points: Array<Point>) { | |
| assert(touches.length === points.length); | |
| const obj = {}; | |
| for (let i = 0; i < touches.length; i++) { | |
| obj[touches[i].identifier] = points[i]; | |
| } | |
| return obj; | |
| } | |