Create signed distance field for an svg path data.
let pathSdf =let arr =
200×200 elements with value from
0..1 range, corresponding to distance. The path is drawn at the center of the sdf fitting to the minimum side.
distances = pathSdf(path, options|shape?)
||Output sdf size in px, defaults to
||SDF parameters for bitmap-sdf, by default detected from shape to fit min side.|
||View box for the path data. If not defined, it is detected as path bounds via svg-path-bounds.|
||Whether to stroke shape. Positive number will stroke outside the amount of pixels, negative number will stroke inside,
(c) 2017 Dima Yv. MIT License
Development supported by plot.ly.