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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    2
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i circle-sector

Weekly Downloads

2

Version

0.2.1

License

ISC

Last publish

Collaborators