New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@santigp258/simplify

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@santigp258/simplify

Extracts Path#simplify() from Paper.js

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@santigp258/simplify

Extracts Path#simplify() from Paper.js

Installation

npm install @santigp258/simplify

or

yarn add @santigp258/simplify

API

simplifySvgPath(
  points: [x: number, y: number][], // `{ x: number, y: number }[]` is also acceptable
  {
    tolerance: number = 2.5,
    precision: number = 5,
  } = {}
): string
// SVG path command string such as
// "M10,10c0,3.33333 -2.35702,7.64298 0,10c2.35702,2.35702 6.66667,0 10,0"

Note

This repo is a fork of @luncheon/simplify-svg-path

Also The logic is a copy of Paper.js v0.12.11.

Keywords

react-native

FAQs

Package last updated on 07 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts