StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
988 B
29 lines
988 B
4 years ago
|
|
||
|
# normalize-svg-path
|
||
|
|
||
|
Convert all segments in a path to curves. Usefull if you intend to animate one shape to another. By defining all segments with curves instead of a mix of lines, arcs, and curves tweening becomes much simpler. It could also help you rewrite your SVG code according to the principles of [narcissistic design](//vimeo.com/77199361).
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
With your favourite package manager:
|
||
|
|
||
|
- [packin](//github.com/jkroso/packin): `packin add normalize-svg-path`
|
||
|
- [component](//github.com/component/component#installing-packages): `component install jkroso/normalize-svg-path`
|
||
|
- [npm](//npmjs.org/doc/cli/npm-install.html): `npm install normalize-svg-path`
|
||
|
|
||
|
then in your app:
|
||
|
|
||
|
```js
|
||
|
var normalize = require('normalize-svg-path')
|
||
|
```
|
||
|
|
||
|
## API
|
||
|
|
||
|
### normalize(path)
|
||
|
|
||
|
Translate each segment in `path` to an equivalent cubic bézier curve. The input `path` must be [absolute](//github.com/jkroso/abs-svg-path).
|
||
|
|
||
|
```js
|
||
|
normalize([['L',1,2]]) // => [['C',0,0,1,2,1,2]]
|
||
|
```
|