Wondering what’s next for npm?Check out our public roadmap! »

    svg-variable-width-line
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.2 • Public • Published

    SVG Variable width line

    npm package Build Status

    Create svg path with each point can have variable width.

    Can create line with PointerEvent.pressure.

    Demo

    import * as svgVariableWidthLine from 'svg-variable-width-line';
     
    svgVariableWidthLine.compute({
      points: [{ x: 0, y: 0, w: 1 }, { x: 1, y: 0, w: 0 }],
    });
    // { d: '<Will be path `d` data>' }

    Install

    npm i svg-variable-width-line

    DownloadsWeekly Downloads

    3

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    10 kB

    Total Files

    14

    Last publish

    Collaborators

    • avatar