yaswanthsvist / svg-variable-width-line

Create svg path with each point can have variable width.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Create svg path with each point can have variable width.

License:MIT License


Languages

Language:TypeScript 60.3%Language:JavaScript 24.3%Language:Makefile 5.7%Language:HTML 5.2%Language:Shell 4.4%