JSPM

Found 793 results for polygon

d3-polygon

Operations for two-dimensional polygons.

  • v3.0.1
  • 76.50
  • Published

@turf/bbox

turf bbox module

  • v7.2.0
  • 71.28
  • Published

@turf/area

turf area module

  • v7.2.0
  • 70.38
  • Published

point-in-polygon

determine if a point is inside a polygon with a ray intersection counting algorithm

  • v1.1.0
  • 68.97
  • Published

polygon-clipping

Apply boolean Polygon clipping operations (intersection, union, difference, xor) to your Polygons & MultiPolygons.

  • v0.15.7
  • 68.62
  • Published

@turf/mask

turf mask module

  • v7.2.0
  • 68.27
  • Published

@turf/turf

a JavaScript library for performing geospatial operations with GeoJSON

  • v7.2.0
  • 67.95
  • Published

@turf/tag

turf tag module

  • v7.2.0
  • 66.99
  • Published

hachure-fill

Fill a polygon with lines

  • v0.5.2
  • 66.29
  • Published

point-in-polygon-hao

A point in polygon based on the paper Optimal Reliable Point-in-Polygon Test and Differential Coding Boolean Operations on Polygons

  • v1.2.4
  • 65.41
  • Published

polybooljs

Boolean operations on polygons (union, intersection, difference, xor)

  • v1.2.2
  • 63.77
  • Published

polylabel

A JS library for finding optimal label position inside a polygon

  • v2.0.1
  • 63.10
  • Published

polyclip-ts

Apply boolean polygon clipping operations (intersection, union, difference, xor) to your Polygons & MultiPolygons.

  • v0.16.8
  • 62.39
  • Published

lineclip

A fast polyline and polygon clipping library.

  • v1.1.5
  • 61.91
  • Published

@math.gl/polygon

Polygon/polyline processing utilities

  • v4.1.0
  • 61.70
  • Published

canvas-renderer

HTML5 inspired canvas that can be rendered to PNG with no native dependencies.

  • v2.2.1
  • 54.62
  • Published

robust-point-in-polygon

Exactly test if a point is inside, outside or on the boundary of a polygon

  • v1.0.3
  • 54.56
  • Published

svg-intersections

A library of intersection algorithms covering all SVG shape types

  • v0.4.0
  • 54.09
  • Published

martinez-polygon-clipping

Martinez polygon clipping algorithm, does boolean operation on polygons (multipolygons, polygons with holes etc): intersection, union, difference, xor

  • v0.7.4
  • 53.98
  • Published

split-polygon

Splits a convex polygon by a plane

  • v1.0.0
  • 53.98
  • Published

which-polygon

Index for matching points against a set of GeoJSON polygons

  • v2.2.1
  • 53.16
  • Published

polytope-closest-point

Computes the closest point to a polytope in arbitrary dimensions

  • v1.0.0
  • 53.08
  • Published

cdt2d

Constrained Delaunay Triangulation in 2D

  • v1.0.0
  • 52.69
  • Published

clean-pslg

Remove self intersections, t-junctions and duplicate edges/vertices from a planar straight line graph

  • v1.1.2
  • 51.30
  • Published

@syncfusion/ej2-maps

The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options

  • v29.1.34
  • 50.98
  • Published

kld-intersections

A library of intersection algorithms covering all SVG shape types

  • v0.7.0
  • 50.82
  • Published

polygon-lookup

Fast point-in-polygon intersection for large numbers of polygons.

  • v2.6.0
  • 50.42
  • Published

libtess

Polygon tesselation library, ported from SGI's GLU implementation.

  • v1.2.2
  • 48.64
  • Published

leaflet-path-drag

Drag functionality for Leaflet vector layers

  • v1.9.5
  • 48.34
  • Published

simplify-geojson

Apply Ramer-Douglas-Peucker line simplification to GeoJSON features or feature collections in JS or on the CLI

  • v1.0.5
  • 47.82
  • Published

simplepolygon

Takes a complex (i.e. self-intersecting) GeoJSON polygon, and breaks it down into its composite simple, non-self-intersecting one-ring polygons.

  • v1.2.3
  • 47.60
  • Published

turf-polygon

turf polygon module

  • v1.0.3
  • 47.50
  • Published

polygon-offset

Polygon offsetting algorithm, aimed for use with leaflet

  • v0.3.2
  • 47.23
  • Published

poly-decomp

Convex decomposition for 2D polygons

  • v0.3.0
  • 46.71
  • Published

circle-to-polygon

Receives a Coordinate, a Radius and a Number of edges and aproximates a circle by creating a polygon that fills its area

  • v2.2.0
  • 46.50
  • Published

js-angusj-clipper

Polygon and line clipping and offsetting library for Javascript / Typescript - a port of Angus Johnson's clipper to WebAssembly / Asm.JS

  • v1.3.1
  • 46.07
  • Published

geojson-geometries

Extract elementary geometries from a geojson inheriting properties.

  • v2.0.0
  • 45.69
  • Published

turf-extent

turf extent module

  • v1.0.4
  • 45.37
  • Published

dufour-peyton-intersection

Reference Implementation of the Dufour-Peyton Intersection Algorithm. Calculates the Intersections of Arbitrary Polygons with a Geospatial Raster.

  • v0.2.2
  • 45.07
  • Published

leaflet-freedraw

Zoopla inspired freehand polygon creation using Leaflet.js.

  • v2.14.0
  • 44.89
  • Published

poly-decomp-es

Convex decomposition for 2D polygons

  • v0.4.2
  • 44.45
  • Published

osm-polygon-features

OSM tags indicate if a closed way should be treated as a polygon or linestring

  • v0.9.2
  • 44.40
  • Published

geojson-dissolve

Dissolve contiguous GeoJSON LineStrings and Polygons into single units.

  • v3.1.0
  • 44.39
  • Published

leaflet-measure

Coordinate, linear, and area measure tool for Leaflet maps

  • v3.1.0
  • 44.36
  • Published

polygon-centroid

Return the centroid for a given convex polygon.

  • v1.1.0
  • 42.99
  • Published

polygonize

Javascript implementation of GEOS's Polygonize function

  • v1.0.4
  • 42.72
  • Published

makerjs

Maker.js, a Microsoft Garage project, is a JavaScript library for creating and sharing modular line drawings for CNC and laser cutters.

  • v0.18.1
  • 41.43
  • Published

polygon

utility for working with polygons (arrays of vec2s)

  • v1.0.2
  • 41.42
  • Published

2d-polygon-self-intersections

This library may not be fast, but it is robust. Robust in the fact that it will find all of the self-intersections in a polygon - minus of course shared endpoints.

  • v1.3.1
  • 40.65
  • Published

2d-polygon-area

compute the area of a 2d polygon

  • v1.0.0
  • 40.51
  • Published

2d-polygon-boolean

perform boolean operations on arbitrary polygons in 2d

  • v1.0.1
  • 40.45
  • Published

poly2tri

A 2D constrained Delaunay triangulation library

  • v1.5.0
  • 40.32
  • Published

area-polygon

Calculate the area of a simple polygon

  • v1.0.1
  • 40.29
  • Published

geojson-places

Reverse geocoding to determine the location where it is contained (continent, country, region and state) from the latitude and longitude specified. This module also has tools to get lists of continents, country groupings, countries, regions and states in

  • v1.0.8
  • 39.46
  • Published

mappls-web-maps

Mappls Maps official hybrid map SDK for angular & reactJS NPM

    • v3.5.8
    • 39.15
    • Published

    polygon-points

    Determine if an x y coordinate exists in a polygon.

    • v0.6.0
    • 38.89
    • Published

    greiner-hormann

    Greiner-Hormann clipping algorithm

    • v1.4.2
    • 38.71
    • Published

    round-polygon

    Small, typed, dependency free tool to round corners of 2d-polygon provided by an array of { x, y } points.

    • v0.6.7
    • 38.66
    • Published

    offset-polygon

    Small, no dependency library for offsetting polygons. Heavily based on this [CodePen](https://codepen.io/HansMuller/pen/lDfzt) by Hans Muller.

    • v0.9.2
    • 38.48
    • Published

    poly-partition

    Polygon convex partitioning and triangulation.

    • v1.0.2
    • 38.06
    • Published

    @velipso/polybool

    Boolean operations on polygons (union, intersection, difference, xor)

    • v2.0.11
    • 37.95
    • Published

    distance-to-polygon

    Compute distance from a point to an arbitrary shaped polygon, line, or point

    • v2.0.2
    • 36.92
    • Published

    clipper2-wasm

    WebAssembly port of the Clipper2 library for polygon clipping and offsetting

    • v0.2.1
    • 36.89
    • Published

    chaikin-smooth

    chaikin's smoothing algorithm for 2D lines

    • v1.0.4
    • 36.86
    • Published

    quickhull

    A pure javascript implementation of the QuickHull algorithm for finding the smallest polygon enclosing a set of points

    • v1.0.3
    • 36.66
    • Published

    geohash-to-geojson

    Library to convert geohashes to multiple GeoJSON polygons or a single GeoJSON FeatureCollection

    • v4.2.1
    • 36.09
    • Published

    @heliofi/evm-adapter

    API to interact with Helio Finances program on EVM chains.

    • v2.2.2
    • 35.80
    • Published

    @thi.ng/geom

    Functional, polymorphic API for 2D geometry types & SVG generation

    • v8.1.42
    • 35.28
    • Published

    gogogojsvue

    Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams

    • v1.8.15
    • 35.18
    • Published

    polyk

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

    • v0.24.0
    • 35.18
    • Published

    leaflet-draw-drag

    Drag feature functionality for Leaflet.draw

    • v0.4.8
    • 35.10
    • Published

    osm2geojson-lite

    a lightweight yet faster osm (either in xml or in json formats) to geojson convertor - 4x faster than xmldom + osmtogeojson in most situations - implemented in pure JavaScript without any 3rd party dependency

    • v1.0.3
    • 35.07
    • Published

    @thi.ng/geom-resample

    Customizable nD polyline interpolation, re-sampling, splitting & nearest point computation

    • v3.0.44
    • 34.79
    • Published

    postal-codes

    Maps postal codes to polygons

    • v1.0.906
    • 34.76
    • Published

    react-canvas-polygons

    Draw lines and polygons with canvas. Save and load path to canvas.

    • v1.1.22
    • 34.38
    • Published

    svg-flatten

    Turns SVG shapes (polygon, polyline, rect, g) into SVG paths. It can merge groups and apply transforms.

    • v1.0.1
    • 34.37
    • Published

    draw

    CAD for canvas

    • v0.0.0
    • 34.26
    • Published

    react-native-yamap

    Yandex.MapKit and Yandex.Geocoder for react-native

    • v4.8.3
    • 33.94
    • Published

    flatten-js

    Javascript library for 2d geometry

    • v0.6.9
    • 33.69
    • Published

    @thi.ng/geom-clip-poly

    2D polygon clipping / offsetting (Sutherland-Hodgeman, Grainer-Hormann)

    • v2.1.176
    • 33.31
    • Published

    leaflet-freehandshapes

    Refactored Leaflet plugin for drawing freehand polygons, with support for mobile

    • v0.3.11
    • 33.24
    • Published

    shape2geohash

    Turns any GeoJSON shape into a list of geohashes

    • v1.2.6
    • 33.00
    • Published

    svg-path-to-polygons

    Converts path commands for an SVG path to polygonal points.

    • v0.1.0
    • 32.30
    • Published

    essential-eth

    Ultralight JS for Ethereum

    • v0.10.3
    • 32.28
    • Published

    @uiw/react-amap-polygon

    构造多边形对象,通过 PolygonOptions 指定多边形样式。

    • v7.1.5
    • 32.18
    • Published

    smooth-polyline

    Smoothing algorithm for 2D lines and polygons

    • v1.0.8
    • 32.04
    • Published

    state-polygon

    US and canada state polygon - state outline

    • v1.0.3
    • 32.02
    • Published

    polygons-intersect

    This script finds all points where the polygons intersect each other.

    • v1.0.3
    • 31.96
    • Published

    @defifofum/multicall

    Typescript package used to batch smart contract read calls into a single tx through the use of a multicall contract.

    • v1.2.1
    • 31.95
    • Published

    polygon.clip

    clip a polygon with another

    • v0.0.3
    • 31.79
    • Published

    image-in-browser

    Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)

    • v3.2.3
    • 31.56
    • Published

    clipper2-lib-js

    A port of Clipper2(C#) to js/ts.

    • v0.0.6
    • 31.45
    • Published

    create-web3-dapp

    CLI to create decentralized applications (dapps) using [Scaffold Alchemy](https://github.com/alchemyplatform/scaffold-alchemy).

    • v1.2.1
    • 30.54
    • Published

    @thi.ng/iges

    IGES 5.3 serializer for (currently only) polygonal geometry, both open & closed

    • v2.1.175
    • 30.31
    • Published

    contour-2d

    Extracts the boundary of a binary 2D image

    • v1.0.0
    • 30.26
    • Published

    leaflet-measure-ext

    Coordinate, linear, and area measure tool for Leaflet maps

    • v3.2.1
    • 29.86
    • Published

    sdf-polygon-2d

    sample the signed distance field of a polygon in 2d space

    • v2.0.0
    • 29.76
    • Published

    sveaflet

    Sveaflet = Svelte + Leaflet

    • v0.1.4
    • 29.73
    • Published

    d3-geo-polygon

    Clipping and geometric operations for spherical polygons.

    • v2.0.1
    • 29.53
    • Published

    leaflet-measure-v2

    Coordinate, linear, and area measure tool for Leaflet maps. Forked from LJA Engineering, Inc - GIS

    • v3.1.6
    • 29.45
    • Published

    geo-split

    Utilities to split GeoJSON geometries

    • v0.1.2
    • 29.17
    • Published

    @thi.ng/geom-fuzz

    Highly configurable, fuzzy line & polygon creation with presets and composable fill & stroke styles. Canvas & SVG support

    • v3.0.49
    • 28.92
    • Published

    is-clockwise

    test if 2D convex polygon is clockwise

    • v2.0.2
    • 28.54
    • Published

    to-smooth

    chaikin's smoothing algorithm for any dimension lines

    • v2.2.0
    • 28.30
    • Published

    plotboilerplate

    A simple javascript plotting boilerplate for 2d stuff.

    • v1.24.0
    • 28.29
    • Published

    point-util

    a few point and polygon utils

    • v0.0.0
    • 28.29
    • Published

    canvas-select

    一个用于图片标注的javascript库,基于canvas,简单轻量,支持矩形、多边形、点、折线、圆形、网格。

    • v2.28.2
    • 28.13
    • Published

    math2d

    Two dimensional vector math library for JavaScript. Built for performance in computation-heavy real-time engines without sacrificing usability. Supports tree shaking and dead code removal to avoid bloating client-side bundles. Zero dependencies.

    • v4.0.1
    • 27.75
    • Published

    mskalign-canvas

    一个用于图片标注的javascript库,基于canvas,简单轻量,支持矩形、多边形、点、折线、圆形。

      • v2.23.3
      • 27.75
      • Published

      shamos-hoey

      A module to check if a polygon self-intersects

      • v1.1.0
      • 27.68
      • Published

      @labelbox/polygon-clipping

      Apply boolean Polygon clipping operations (intersection, union, difference, xor) to your Polygons & MultiPolygons.

      • v0.0.5
      • 27.64
      • Published

      leaflet-paintpolygon

      Leaflet plugin to create polygon with circle, for touchscreen

      • v1.2.1-alpha.1
      • 27.60
      • Published

      svg-path-interpolator

      The SVG Path Interpolator produces point data representing interpolated values within an SVG path.

      • v0.3.0
      • 27.44
      • Published

      shape2d

      Turns lineTo, moveTo, quadratic & bezier curves into discrete Vector2 points

      • v0.0.5
      • 27.33
      • Published

      overlay-pslg

      Computes a boolean combination of two planar graphs

      • v1.0.0
      • 27.13
      • Published

      leaflet.freedraw

      Zoopla inspired freehand polygon creation using Leaflet.js.

      • v2.0.1
      • 26.85
      • Published

      @rarimo/provider

      A common interface for access to wallets (EVM and non-EVM) in the Rarimo SDK, used by packages that provide access to wallets on specific chains such as @rarimo/providers-evm, @rarimo/providers-solana, and @rarimo/providers-near.

      • v2.6.0
      • 26.69
      • Published

      leaflet-spline

      Leaflet plugin for drawing bezier splines from polylines and polygons

      • v0.2.0
      • 26.58
      • Published

      @pagedao/core

      Core library for PageDAO Hub with blockchain connections and price calculations

        • v0.3.3
        • 26.49
        • Published

        gogogojs

        Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams

        • v1.8.15
        • 26.39
        • Published

        @thi.ng/geom-axidraw

        Conversion and preparation of thi.ng/geom shapes & shape groups to/from AxiDraw pen plotter draw commands

        • v1.0.22
        • 26.35
        • Published

        multichain-crypto-wallet

        A Multichain crypto wallet library that supports Ethereum, Bitcoin, Solana, Waves and other EVM compatible blockchains E.g. Binance Smart Chain, Polygon, Avalanche etc.

        • v0.2.10
        • 26.18
        • Published

        @thi.ng/rasterize

        Headless 2D shape drawing, filling & rasterization for arbitrary targets/purposes (no canvas required)

        • v1.0.144
        • 25.91
        • Published

        @thi.ng/boids

        n-dimensional boids simulation with modular behavior system

        • v1.0.78
        • 25.89
        • Published

        google-maps-draw-shape-lib

        javascript library that allows drawing a polygon shape over a Google Map and get it's coordinates

        • v1.0.13
        • 25.87
        • Published

        idexo-sdk

        The idexo sdk

        • v10.10.6
        • 25.69
        • Published

        @rarimo/nft-checkout

        Features of the Rarimo SDK that create cross-chain transactions based on the Rarimo protocol.

        • v2.6.0
        • 25.55
        • Published

        @kninnug/trivis

        Compute visibility polygons by Triangular Expansion

        • v2.0.0
        • 25.49
        • Published

        staker

        Command line Utillity for Ethereum stakers

        • v0.51.0
        • 25.49
        • Published

        linedrawer

        A Graphic Drawing Tool Based on Fabric.js

        • v0.5.10
        • 25.42
        • Published

        react-native-geo-fencing

        Native modules to determine if a location is within defined geographical boundaries using Google Geometry library

        • v0.1.0
        • 25.29
        • Published

        poly-to-pslg

        Convert a polygon into a planar straight line graph

        • v1.0.1
        • 25.19
        • Published

        make-geo-json

        Converts polylines, wkts, wkbs, polygons, circles, rectangles, as well as standard geoJSON into geoJSON MultiPolygon Feature Objects. Converts wkb_list and FeatureCollection to arrays.

        • v1.1.6
        • 25.08
        • Published

        hodl-wallet

        🧊 HODL Wallet - Fast CLI crypto wallet!

        • v1.7.6
        • 25.08
        • Published

        routescan-client

        A set of classes to work with evm-compatible blockchain observers

        • v2.17.4
        • 24.94
        • Published

        pslg-to-poly

        Convert a planar straight line graph into a polygon

        • v1.0.0
        • 24.90
        • Published

        @rarimo/react-provider

        Tools to connect to wallets in React applications through the Rarimo SDK.

        • v2.6.0
        • 24.89
        • Published

        collider2d

        A 2D collision checker for modern JavaScript games.

        • v1.1.1
        • 24.86
        • Published

        senz-canvas

        ## 简介 `canvas-mark-board` 基于原生canvas封装的图像标注工具,在 vue / react / 原生js 应用中都可以实现标注功能。提供了一系列事件和方法,用于管理标注对象、绘制标注形状、导入标注数据等操作。

        • v0.0.6
        • 24.75
        • Published

        leaflet-craft

        Zoopla inspired freehand polygon creation using Leaflet.js.

        • v4.1.7
        • 24.72
        • Published

        visibility-polygon

        A library used to construct a visibility polygon for a set of line segments

        • v1.1.0
        • 24.60
        • Published

        poly-bool

        Exact polygon boolean operations

        • v1.0.0
        • 24.59
        • Published

        shape-svg

        Make svg polygon & star shape

        • v0.4.0
        • 24.58
        • Published

        leaflet-measure-ex

        Coordinate, linear, and area measure tool for Leaflet maps

        • v3.0.7
        • 24.49
        • Published

        @html-polygon/core

        This is the core package enabling HTML Polygons for React.

        • v0.1.4
        • 24.28
        • Published

        @rarimo/providers-solana

        Features of the Rarimo SDK that provide access to wallets and the ability to interact with them on the Solana blockchain.

        • v2.6.0
        • 23.94
        • Published

        @rarimo/providers-evm

        Features of the Rarimo SDK that provide access to wallets and the ability to interact with them on EVM-compatible blockchains.

        • v2.6.0
        • 23.78
        • Published

        fernandez-polygon-decomposition

        An algorithm to decompose polygons with holes from "A practical algorithm for decomposing polygonal domains into convex polygons by diagonals" by J Fernández

        • v2.0.0
        • 23.62
        • Published

        @rarimo/react-nft-checkout

        React components that you can use in your UI to create cross-chain transactions with the Rarimo protocol.

        • v2.6.0
        • 23.46
        • Published

        pnltri

        Polygon near-linear time triangulation (based on Seidel's algorithm) with ear clip for small cases. Handles degenerate cases of colinear edges and vertices touching edges.

        • v2.1.1
        • 23.34
        • Published