circle-sector

0.2.1 • Public • Published

Circle Sector

Class for a sector of a circle. Supports export to SVG-path string.

Installation

npm install --save @datatypes/circle-sector

Usage

import CircleSector from '@datatypes/circle-sector'
 
const sector = new CircleSector({
    x: 10,
    y: 15,
    radius: 5,
    startAngleInDeg: 30,
    endAngleInDeg: 85,
})
 
console.log(sector.svgPath)
 
// M10,15
// L14.330127018922195,12.5
// A5,5 0 0 0 10.43577871373829,10.019026509541273
// Z

Readme

Keywords

Package Sidebar

Install

npm i circle-sector

Weekly Downloads

3

Version

0.2.1

License

ISC

Last publish

Collaborators