You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

geometry.js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geometry.js

A collection of ES6 classes for simple geometric objects and calculations

0.1.0
Source
npmnpm
Version published
Weekly downloads
9
80%
Maintainers
1
Weekly downloads
 
Created
Source

Geometry.js

A collection of ES6 classes for simple geometric objects and calculations.

Why?

This library was extracted from an in-house project, and serves as a repository of geometry operations across several dependent libraries, including radify/Pathfinding.js. If you need to do 2D graphing calculations in arbitrary coordinate space using points, lines, and rectangles, this might just be the library for you.

Setup

You can grab it directly from GitHub using NPM or JSPM:

npm install https://github.com/radify/geometry.js
# or
jspm install https://github.com/radify/geometry.js

Then:

<script src="geometry.js/dist/geometry[.min].js"></script>

By default, geometry.js exports classes in CommonJS format, but you can rebuild it in the format of your choice. For example:

cd geometry.js
npm install -g gulp
npm install
gulp dist --modules=amd

...will build AMD modules. Replace amd with any module format supported by Babel, including amd, umd, or system, for SystemJS.

Keywords

geometry

FAQs

Package last updated on 21 Aug 2015

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