Spaces:
Paused
Paused
|
Download node_modules/abs-svg-path/Readme.md from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/abs-svg-path/Readme.md
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/abs-svg-path/Readme.md
-
curl -L -o Readme.md https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/abs-svg-path/Readme.md
601 Bytes
abs-svg-path
redefine an svg path with absolute coordinates
Installation
$ packin add jkroso/abs-svg-path
then in your app:
var abs = require('abs-svg-path')
API
abs(path)
redefine path with absolute coordinates
abs([['l',10,20],['l',30,40]]) // => [['L',10,20],['L',40,60]]
abs([
['q', 1,2, 33,44],
['L', 50,60],
['c', 1,2, 3,4, 33,44]
]) // => [['Q',1,2,33,44],['L', 50, 60],['C',51,62, 53,64, 83,104]]
Running the tests
Just run make test