Displaying 1 to 20 from 45 results

turf - A modular geospatial engine written in JavaScript

Turf is a JavaScript library for spatial analysis. It includes traditional spatial operations, helper functions for creating GeoJSON data, and data classification and statistics tools. Turf can be added to your website as a client-side plugin, or you can run Turf server-side with Node.js (see below).Download the minified file, and include it in a script tag. This will expose a global variable named turf.

point-in-polygon - determine if a point is inside a polygon

Determine if a point is inside of a polygon.This module casts a ray from the inquiry point and counts intersections, based on this algorithm.

resolve-pkg - Resolve the path of a package regardless of it having an entry point

Some packages like CLI tools and grunt tasks don't have a entry point, like "main": "foo.js" in package.json, resulting in them not being resolvable by require.resolve(). Unlike require.resolve(), this module also resolves packages without an entry point, returns null instead of throwing when the module can't be found, and resolves from process.cwd() instead __dirname by default.What you would use in require().

react-point - Fast touch events for React

react-point gives you fast touch events for your React applications.A <PointTarget> normalizes click and click-like touch events (not swipes or drags) into a "point" event. This helps you avoid the 300ms delay for click events on touch interfaces like iOS.

where - Geographical utilities for location-based Node.js applications

This library provides some basic utilities for building location-based applications.This library is provided under the MIT license. Contributions to the project are welcome on GitHub.

from-3d-to-2d - Take a transformation matrix like you're used to constructing with WebGL, and project arbitrary 3D points onto your 2D screen

Take a transformation matrix like you're used to constructing with WebGL, and project arbitrary 3D points onto your 2D screen.You can use this to take a point in your WebGL scene and get its onscreen position on the canvas, e.g. to add DOM element overlays, or bootstrapping your own canvas/SVG.

glsl-point-light - A reusable GLSL point light function

A reusable GLSL point light function for use with glslify.Together these values effect the final attenuation curve. For more information check out this this article.

box-collide - return whether two boxes or points are colliding in 2d

Return a boolean colliding indicating whether a and b overlap.x and y indicate the top left corner of the box or point.

turf-inside - Checks to see if a point is inside of a polygon.

Takes a Point and a Polygon or MultiPolygon and determines if the point resides inside the polygon. The polygon can be convex or concave. The function accounts for holes.Requires nodejs.

Perspex - Helper for perspective projection calculations - set up a camera and start projecting 3D points to 2D!

The demo shows you what's possible. Documentation coming. Code cleanup coming. Sorry.Note: The demo deliberately collides objects to test depth sorting and (in future) occlusion culling. This is not a bug. Up the geometry resolution to (kill your computer) and see it work a little more nicely.

point-geometry - A standalone point geometry primitive.

A standalone point geometry with useful accessor, comparison, and modification methods.Clone this point, returning a new point that can be modified without affecting the old one.

leaflet-pip - point in polygon intersections for leaflet

A Leaflet-friendly API for point in polygon operations, using substack's point in polygon library.An array of polygons in which the given point resides, an empty array if there are none. The polygons are returned as direct sublayers, so they can include MultiPolygons. You can call pointInLayer again on those if you want the sub-polygon result.

svg-path-contours - gets a discrete list of points from svg

Approximates an SVG path into a discrete list of 2D contours (polylines). This is useful for collision detection, intersection, triangulation & WebGL rendering, etc. It does not attempt to clean or optimize the discretized points.See demo/index.js for exmaple.

breakdancer - A breakpoint tracking utility

Breakdancer is a small utility library that helps developing and using ergonomic breakpoints. Devices and sizes will always change, human ergonomics like palm, wrist, lap, desk, wall never will.Breakdancer is tested and works on both web and react-native platforms. Note that we don't specify react-native as a peer dependency in order to avoid dependency issues on pure web projects, so make sure you have react-native as a dependency.