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

hexcell

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexcell

A hexagon cell for a hexgrid

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
7
133.33%
Maintainers
1
Weekly downloads
 
Created
Source

hexcell

A hexagon cell for a hexgrid

npm install hexcell --save

Example

var Point = require('point2d');
var Hexcell = require('hexcell');

var point = new Point(2, 3);
var cell = new Hexcell(point, { extraData: 3 });
console.log(cell.data.extraData); // 3

Methods

Hexcell(point2d)

Creates a hexcell at point point2d

Hexcell(point2d, data)

Creates a hexcell at point point2d with an object data that contains data

Hexcell.data

The data attached to this cell

Keywords

hexagon

FAQs

Package last updated on 31 Oct 2014

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