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>' }

Dependencies (0)

    Dev Dependencies (21)

    Package Sidebar

    Install

    npm i svg-variable-width-line

    Weekly Downloads

    1

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    10 kB

    Total Files

    14

    Last publish

    Collaborators

    • xjpicism