JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 643
  • Score
    100M100P100Q98306F
  • License MIT

JavaScript tool for working with polygons. It uses several basic principles to be super simple and super universal.

Package Exports

  • polyk

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (polyk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

PolyK.

This library was written by Ivan Kuckir. This repository serves to provide Bower support.

What is PolyK?

PolyK is JavaScript tool for working with polygons. It uses several basic principles to be super simple and super universal:

  • No classes. PolyK does not have any classes or special data structures. PolyK consists of static functions only.
  • What is polygon? For PolyK, polygon is an array of numbers. Each two of them are X and Y coordinate of polygon vertex.
  • Simplicity and speed. Since PolyK does not make you use any special data structures, it is very easy to implement into your project. Since all JS engines are optimised for work with arrays, PolyK runs very fast.

PolyK was used in the game Tiny Monsters. Do you like the project? Make a donation!

Installation.

It depends on how you are using PolyK. You can download and handle manually, use Bower or NPM.

You can download the file from the downloads page.

For use with as Bower package:

$ bower install polyk

To install as NPM package with either node, browserify, or webpack:

$ npm install -S polyk

Resources.