JSPM

Found 845 results for polygon clipping

polygon-clipping

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

  • v0.15.7
  • 609.75
  • 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
  • 557.83
  • Published

lineclip

A fast polyline and polygon clipping library.

  • v2.0.0
  • 488.91
  • Published

polyclip-ts

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

  • v0.16.8
  • 392.54
  • Published

greiner-hormann

Greiner-Hormann clipping algorithm

  • v1.4.2
  • 308.90
  • 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
  • 279.20
  • Published

@labelbox/polygon-clipping

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

  • v0.0.5
  • 247.11
  • Published

@thi.ng/geom-clip-poly

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

  • v2.1.193
  • 244.17
  • Published

d3-geo-polygon

Clipping and geometric operations for spherical polygons.

  • v2.0.1
  • 212.01
  • Published

clipper2-wasm

WebAssembly port of the Clipper2 library for polygon clipping and offsetting

  • v0.2.1
  • 197.28
  • Published

polybooljs

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

  • v1.2.2
  • 115.01
  • Published

mapxus-polygon-clipping

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

  • v0.12.3
  • 96.57
  • Published

clipper

Node binding to C++ clipping library

  • v2.0.0
  • 84.08
  • Published

d3-polygon

Operations for two-dimensional polygons.

  • v3.0.1
  • 78.09
  • Published

@turf/bbox

turf bbox module

  • v7.2.0
  • 72.37
  • Published

@turf/area

turf area module

  • v7.2.0
  • 71.96
  • Published

polygon-offset

Polygon offsetting algorithm, aimed for use with leaflet

  • v0.3.2
  • 70.61
  • Published

point-in-polygon

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

  • v1.1.0
  • 70.45
  • Published

@baye/polyclip-ts

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

  • v0.16.5-apha.0
  • 69.74
  • Published

@turf/turf

a JavaScript library for performing geospatial operations with GeoJSON

  • v7.2.0
  • 69.64
  • Published

hachure-fill

Fill a polygon with lines

  • v0.5.2
  • 69.19
  • Published

2d-polygon-boolean

perform boolean operations on arbitrary polygons in 2d

  • v1.0.1
  • 69.12
  • Published

@turf/mask

turf mask module

  • v7.2.0
  • 69.10
  • Published

@turf/tag

turf tag module

  • v7.2.0
  • 68.99
  • 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
  • 68.31
  • Published

@velipso/polybool

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

  • v2.0.11
  • 68.06
  • Published

@math.gl/polygon

Polygon/polyline processing utilities

  • v4.1.0
  • 64.09
  • Published

polylabel

A JS library for finding optimal label position inside a polygon

  • v2.0.1
  • 62.58
  • Published

clipper2-lib-js

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

  • v0.0.6
  • 62.08
  • Published

poly2tri

A 2D constrained Delaunay triangulation library

  • v1.5.0
  • 61.91
  • Published

@thi.ng/geom-axidraw

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

  • v1.0.48
  • 57.12
  • Published

canvas-renderer

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

  • v2.2.1
  • 56.78
  • Published

robust-point-in-polygon

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

  • v1.0.3
  • 55.06
  • Published

which-polygon

Index for matching points against a set of GeoJSON polygons

  • v2.2.1
  • 54.14
  • 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
  • 53.96
  • Published

split-polygon

Splits a convex polygon by a plane

  • v1.0.0
  • 53.66
  • Published

bmap-polygon-clipping

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

  • v0.0.1
  • 52.85
  • Published

cdt2d

Constrained Delaunay Triangulation in 2D

  • v1.0.0
  • 52.58
  • Published

polytope-closest-point

Computes the closest point to a polytope in arbitrary dimensions

  • v1.0.0
  • 52.50
  • Published

polygon.clip

clip a polygon with another

  • v0.0.3
  • 52.44
  • Published

clean-pslg

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

  • v1.1.2
  • 52.26
  • Published

@thi.ng/rasterize

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

  • v1.0.161
  • 51.75
  • Published

kld-intersections

A library of intersection algorithms covering all SVG shape types

  • v0.7.0
  • 51.75
  • 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

  • v30.2.4
  • 51.50
  • Published

turf-extent

turf extent module

  • v1.0.4
  • 50.18
  • Published

svg-intersections

A library of intersection algorithms covering all SVG shape types

  • v0.4.0
  • 50.08
  • 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
  • 49.70
  • Published

simplify-geojson

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

  • v1.0.5
  • 49.22
  • Published

poly-decomp

Convex decomposition for 2D polygons

  • v0.3.0
  • 49.04
  • Published

libtess

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

  • v1.2.2
  • 48.61
  • Published

polygon-lookup

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

  • v2.6.0
  • 48.31
  • 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
  • 47.52
  • Published

geojson-dissolve

Dissolve contiguous GeoJSON LineStrings and Polygons into single units.

  • v3.1.0
  • 47.42
  • 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
  • 47.06
  • Published

leaflet-path-drag

Drag functionality for Leaflet vector layers

  • v1.9.5
  • 46.58
  • Published

poly-decomp-es

Convex decomposition for 2D polygons

  • v0.4.2
  • 46.38
  • Published

polygonize

Javascript implementation of GEOS's Polygonize function

  • v1.0.4
  • 46.30
  • Published

turf-polygon

turf polygon module

  • v1.0.3
  • 45.98
  • Published

osm-polygon-features

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

  • v0.9.2
  • 45.73
  • Published

geojson-geometries

Extract elementary geometries from a geojson inheriting properties.

  • v2.0.0
  • 45.61
  • Published

@heliofi/evm-adapter

API to interact with Helio Finances program on EVM chains.

  • v2.2.2
  • 44.05
  • 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
  • 43.22
  • Published

polygon-centroid

Return the centroid for a given convex polygon.

  • v1.1.0
  • 43.05
  • Published

leaflet-measure

Coordinate, linear, and area measure tool for Leaflet maps

  • v3.1.0
  • 42.26
  • Published

min-bounding-rectangle

Minimum bounding rectangle implementation in JavaScript. Uses `concaveman` and `mathjs` as dependencies.

  • v1.2.3
  • 41.91
  • Published

polygon

utility for working with polygons (arrays of vec2s)

  • v1.0.2
  • 41.71
  • Published

@thi.ng/geom

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

  • v8.2.10
  • 41.32
  • Published

leaflet-freedraw

Zoopla inspired freehand polygon creation using Leaflet.js.

  • v2.15.0
  • 40.85
  • 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.47
  • Published

2d-polygon-area

compute the area of a 2d polygon

  • v1.0.0
  • 40.28
  • 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
  • 40.17
  • Published

distance-to-polygon

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

  • v2.0.2
  • 39.97
  • Published

area-polygon

Calculate the area of a simple polygon

  • v1.0.1
  • 39.40
  • 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.88
  • Published

quickhull

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

  • v1.0.3
  • 38.87
  • Published

polygon-points

Determine if an x y coordinate exists in a polygon.

  • v0.6.0
  • 38.31
  • Published

mappls-web-maps

Mappls Maps official hybrid map SDK for angular & reactJS NPM

    • v3.7.1-0
    • 37.09
    • 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.1.2
    • 36.24
    • Published

    polyk

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

    • v0.24.0
    • 36.21
    • Published

    leaflet-draw-drag

    Drag feature functionality for Leaflet.draw

    • v0.4.8
    • 36.11
    • Published

    chaikin-smooth

    chaikin's smoothing algorithm for 2D lines

    • v1.0.4
    • 36.09
    • 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.5
    • 35.83
    • Published

    react-canvas-polygons

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

    • v1.1.22
    • 35.68
    • Published

    poly-partition

    Polygon convex partitioning and triangulation.

    • v1.0.2
    • 34.86
    • Published

    react-native-yamap

    Yandex.MapKit and Yandex.Geocoder for react-native

    • v4.8.3
    • 34.23
    • Published

    geohash-to-geojson

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

    • v4.2.1
    • 33.99
    • Published

    svg-flatten

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

    • v1.0.1
    • 33.90
    • Published

    @thi.ng/geom-resample

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

    • v3.0.61
    • 33.56
    • Published

    svg-path-to-polygons

    Converts path commands for an SVG path to polygonal points.

    • v0.1.0
    • 32.84
    • Published

    sveaflet

    Sveaflet = Svelte + Leaflet

    • v0.1.4
    • 32.79
    • Published

    merge-polygons

    Merge non continuous geojson polygons into multiples concave polygons based on polygons distance.

    • v1.1.3
    • 32.52
    • Published

    flatten-js

    Javascript library for 2d geometry

    • v0.6.9
    • 32.35
    • Published

    state-polygon

    US and canada state polygon - state outline

    • v1.0.3
    • 32.15
    • Published

    leaflet-freehandshapes

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

    • v0.3.11
    • 31.74
    • Published

    gogogojsvue

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

    • v1.8.15
    • 31.67
    • Published

    @tippingchain/sdk

    TippingChain SDK - On-chain tipping with USDC payouts on ApeChain

    • v2.7.1
    • 31.57
    • Published

    polygons-intersect

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

    • v1.0.3
    • 31.52
    • Published

    @uiw/react-amap-polygon

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

    • v7.1.9
    • 31.38
    • Published

    shape2geohash

    Turns any GeoJSON shape into a list of geohashes

    • v1.2.6
    • 31.34
    • Published

    @thi.ng/geom-clip

    2D line & convex polygon clipping (Liang-Barsky / Sutherland-Hodgeman)

    • v0.1.12
    • 30.29
    • Published

    poly-math-2d

    2D Polygon math: boolean operations, triangulation, graphs, support for holes and non-convex shapes.

    • v0.2.0
    • 29.43
    • Published

    to-smooth

    chaikin's smoothing algorithm for any dimension lines

    • v2.2.0
    • 28.94
    • Published

    leaflet-paintpolygon

    Leaflet plugin to create polygon with circle, for touchscreen

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

    gogogojs

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

    • v1.8.15
    • 28.59
    • Published

    essential-eth

    Ultralight JS for Ethereum

    • v0.10.3
    • 28.45
    • Published

    shamos-hoey

    A module to check if a polygon self-intersects

    • v1.1.0
    • 28.44
    • Published

    contour-2d

    Extracts the boundary of a binary 2D image

    • v1.0.0
    • 28.29
    • Published

    overlay-pslg

    Computes a boolean combination of two planar graphs

    • v1.0.0
    • 28.28
    • Published

    geo-split

    Utilities to split GeoJSON geometries

    • v0.1.2
    • 28.24
    • Published

    @avdl/martinez

    TypeScript library for polygon boolean operations

    • v0.2.0
    • 28.23
    • Published

    argus-indexer

    An Ethereum indexer for monitoring and processing blockchain events. Works on all EVM chains.

    • v1.0.7
    • 28.22
    • 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
    • 28.02
    • Published

    point-util

    a few point and polygon utils

    • v0.0.0
    • 27.89
    • Published

    shape2d

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

    • v0.0.5
    • 27.73
    • Published

    sdf-polygon-2d

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

    • v2.0.0
    • 27.64
    • Published

    @thi.ng/boids

    n-dimensional boids simulation with modular behavior system

    • v1.1.24
    • 27.42
    • Published

    @thi.ng/geom-fuzz

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

    • v3.0.75
    • 27.30
    • Published

    @thi.ng/iges

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

    • v2.1.197
    • 26.76
    • Published

    mskalign-canvas

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

      • v2.27.5
      • 26.73
      • Published

      leaflet-measure-ex

      Coordinate, linear, and area measure tool for Leaflet maps

      • v3.0.7
      • 26.71
      • Published

      create-web3-dapp-dev

      <p align="center"> <br /> <a href="https://createweb3dapp.alchemy.com"> <img src=".github/images/cw3d-logo.png" width="200" alt=""/></a> <br /> </p>

      • v0.3.0
      • 26.63
      • Published

      leaflet-measure-v2

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

      • v3.1.6
      • 26.63
      • Published

      leaflet-measure-ext

      Coordinate, linear, and area measure tool for Leaflet maps

      • v3.2.1
      • 26.62
      • Published

      ellipse-to-polygon

      Receives a Coordinate and ellipse properties and aproximates a ellipse by creating a polygon that fills its area

      • v0.0.6
      • 26.59
      • Published

      is-clockwise

      test if 2D convex polygon is clockwise

      • v2.0.2
      • 26.48
      • Published

      collider2d

      A 2D collision checker for modern JavaScript games.

      • v1.1.1
      • 26.13
      • Published

      postal-codes

      Maps postal codes to polygons

      • v1.0.906
      • 26.07
      • Published

      leaflet-spline

      Leaflet plugin for drawing bezier splines from polylines and polygons

      • v0.2.0
      • 26.03
      • Published

      svg-path-interpolator

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

      • v0.3.0
      • 25.93
      • Published

      fast-point-in-poly

      Quickly find points in large sets of polygons

      • v1.0.0
      • 25.83
      • Published

      create-web3-dapp

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

      • v1.4.0
      • 25.67
      • Published

      boundaries

      Source for all GeoJSON boundaries on Earth

      • v1.0.2
      • 25.62
      • 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
      • 25.54
      • 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
      • 25.51
      • Published

      canvas-select-pro

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

      • v0.0.5
      • 25.49
      • Published

      visibility-polygon

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

      • v1.1.0
      • 25.34
      • Published

      leaflet.freedraw

      Zoopla inspired freehand polygon creation using Leaflet.js.

      • v2.0.1
      • 25.17
      • Published

      hodl-wallet

      🧊 HODL Wallet - Fast CLI crypto wallet!

      • v1.8.6
      • 25.04
      • Published

      react-native-geo-fencing

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

      • v0.1.0
      • 24.74
      • 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
      • 24.71
      • Published

      @dexus1985/clipper2-wasm

      WebAssembly port of the Clipper2 library for polygon clipping and offsetting

      • v1.4.0
      • 24.62
      • Published

      smooth-polyline

      Smoothing algorithm for 2D lines and polygons

      • v1.0.8
      • 24.49
      • 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
      • 24.17
      • Published

      pixi-bump

      Fork of kittykatattack's bump library for PixiJS (https://github.com/kittykatattack/bump), wrapped into npm package

      • v1.0.2
      • 24.08
      • Published

      canvas-select

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

      • v2.29.0
      • 23.89
      • Published

      savecontract

      A CLI tool to download verified smart contract source code from Etherscan and other block explorers using the Etherscan V2 API.

      • v1.0.3
      • 23.85
      • Published

      @cryptodevops/n8n-nodes-blockchain-explorer

      n8n node for accessing multiple blockchain networks (Ethereum, BSC, Polygon, Fantom, Avalanche, Arbitrum, Optimism, etc.) with comprehensive analytics and data retrieval capabilities

      • v1.0.3
      • 23.70
      • Published

      @cryptapi/api

      CryptAPI's Library for NodeJS

      • v1.1.1
      • 23.67
      • Published

      tilemap-to-convexes

      Merge solid polygons and decompose into convexes.

      • v1.0.0
      • 23.39
      • Published

      osm2geojson-ultra

      a faster & more complete OSM & Overpass (either in xml or in json formats) to geojson convertor - 4x faster than xmldom + osmtogeojson in most situations - implemented in TypeScript with txml for XML parsing

      • v4.0.0
      • 23.28
      • Published

      2d-geometry

      Performant & ergonomic 2D geometry in typescript

      • v3.0.0
      • 23.23
      • Published

      @kninnug/trivis

      Compute visibility polygons by Triangular Expansion

      • v2.0.0
      • 22.92
      • Published

      shape-svg

      Make svg polygon & star shape

      • v0.4.0
      • 22.70
      • 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
      • 22.59
      • Published

      univoucher-mcp

      Official MCP (Model Context Protocol) server for UniVoucher.com - the world's first decentralized crypto gift card protocol. Provides comprehensive documentation access and live API integration for building on the UniVoucher ecosystem across multiple bloc

      • v1.5.1
      • 22.18
      • Published

      tf-leaflet-freedraw

      Zoopla inspired freehand polygon creation using Leaflet.js.

      • v1.0.1
      • 22.12
      • Published

      plotboilerplate

      A simple javascript plotting boilerplate for 2d stuff.

      • v1.24.0
      • 21.41
      • Published

      @complus/v2-core-matic

      Core contracts for the Complus Network on top of Polygon - Matic Network

      • v0.1.0
      • 21.38
      • Published