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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.1.0
    0

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