JSPM

Found 845 results for polygon clipping

cdt2d

Constrained Delaunay Triangulation in 2D

  • v1.0.0
  • 52.56
  • Published

polytope-closest-point

Computes the closest point to a polytope in arbitrary dimensions

  • v1.0.0
  • 52.54
  • Published

polygon.clip

clip a polygon with another

  • v0.0.3
  • 52.34
  • Published

@thi.ng/rasterize

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

  • v1.0.161
  • 51.87
  • Published

clean-pslg

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

  • v1.1.2
  • 51.62
  • 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.33
  • Published

kld-intersections

A library of intersection algorithms covering all SVG shape types

  • v0.7.0
  • 51.11
  • Published

svg-intersections

A library of intersection algorithms covering all SVG shape types

  • v0.4.0
  • 50.27
  • Published

turf-extent

turf extent module

  • v1.0.4
  • 50.07
  • 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.39
  • Published

poly-decomp

Convex decomposition for 2D polygons

  • v0.3.0
  • 49.36
  • 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.32
  • Published

libtess

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

  • v1.2.2
  • 48.96
  • Published

polygon-lookup

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

  • v2.6.0
  • 48.26
  • 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.28
  • Published

geojson-dissolve

Dissolve contiguous GeoJSON LineStrings and Polygons into single units.

  • v3.1.0
  • 47.27
  • 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.85
  • Published

polygonize

Javascript implementation of GEOS's Polygonize function

  • v1.0.4
  • 46.17
  • Published

turf-polygon

turf polygon module

  • v1.0.3
  • 46.07
  • Published

osm-polygon-features

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

  • v0.9.2
  • 46.07
  • Published

geojson-geometries

Extract elementary geometries from a geojson inheriting properties.

  • v2.0.0
  • 45.79
  • Published

poly-decomp-es

Convex decomposition for 2D polygons

  • v0.4.2
  • 45.62
  • 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.17
  • Published

polygon-centroid

Return the centroid for a given convex polygon.

  • v1.1.0
  • 43.00
  • Published

@heliofi/evm-adapter

API to interact with Helio Finances program on EVM chains.

  • v2.2.2
  • 42.31
  • Published

leaflet-measure

Coordinate, linear, and area measure tool for Leaflet maps

  • v3.1.0
  • 42.31
  • Published

min-bounding-rectangle

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

  • v1.2.3
  • 41.97
  • Published

polygon

utility for working with polygons (arrays of vec2s)

  • v1.0.2
  • 41.76
  • Published

@thi.ng/geom

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

  • v8.2.10
  • 41.23
  • Published

leaflet-freedraw

Zoopla inspired freehand polygon creation using Leaflet.js.

  • v2.15.0
  • 40.75
  • 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.58
  • Published

2d-polygon-area

compute the area of a 2d polygon

  • v1.0.0
  • 40.38
  • 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.06
  • Published

distance-to-polygon

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

  • v2.0.2
  • 39.92
  • Published

area-polygon

Calculate the area of a simple polygon

  • v1.0.1
  • 39.50
  • Published

quickhull

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

  • v1.0.3
  • 38.92
  • 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.78
  • Published

polygon-points

Determine if an x y coordinate exists in a polygon.

  • v0.6.0
  • 38.21
  • Published

mappls-web-maps

Mappls Maps official hybrid map SDK for angular & reactJS NPM

    • v3.7.1-0
    • 37.19
    • Published

    merge-polygons

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

    • v1.1.3
    • 36.37
    • 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.20
    • Published

    chaikin-smooth

    chaikin's smoothing algorithm for 2D lines

    • v1.0.4
    • 36.19
    • Published

    polyk

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

    • v0.24.0
    • 36.04
    • Published

    leaflet-draw-drag

    Drag feature functionality for Leaflet.draw

    • v0.4.8
    • 35.59
    • Published

    react-canvas-polygons

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

    • v1.1.22
    • 35.36
    • 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.32
    • Published

    poly-partition

    Polygon convex partitioning and triangulation.

    • v1.0.2
    • 34.55
    • Published

    react-native-yamap

    Yandex.MapKit and Yandex.Geocoder for react-native

    • v4.8.3
    • 34.19
    • Published

    svg-flatten

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

    • v1.0.1
    • 33.73
    • Published

    @thi.ng/geom-resample

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

    • v3.0.61
    • 33.52
    • Published

    geohash-to-geojson

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

    • v4.2.1
    • 33.50
    • Published

    svg-path-to-polygons

    Converts path commands for an SVG path to polygonal points.

    • v0.1.0
    • 32.68
    • Published

    sveaflet

    Sveaflet = Svelte + Leaflet

    • v0.1.4
    • 32.62
    • Published

    state-polygon

    US and canada state polygon - state outline

    • v1.0.3
    • 31.99
    • Published

    flatten-js

    Javascript library for 2d geometry

    • v0.6.9
    • 31.89
    • Published

    leaflet-freehandshapes

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

    • v0.3.11
    • 31.70
    • Published

    gogogojsvue

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

    • v1.8.15
    • 31.63
    • Published

    @tippingchain/sdk

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

    • v2.7.1
    • 31.41
    • Published

    shape2geohash

    Turns any GeoJSON shape into a list of geohashes

    • v1.2.6
    • 31.38
    • Published

    polygons-intersect

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

    • v1.0.3
    • 31.37
    • Published

    @uiw/react-amap-polygon

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

    • v7.1.9
    • 31.35
    • Published

    @thi.ng/geom-clip

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

    • v0.1.12
    • 29.89
    • Published

    poly-math-2d

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

    • v0.2.0
    • 29.50
    • Published

    to-smooth

    chaikin's smoothing algorithm for any dimension lines

    • v2.2.0
    • 28.86
    • Published

    leaflet-paintpolygon

    Leaflet plugin to create polygon with circle, for touchscreen

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

    essential-eth

    Ultralight JS for Ethereum

    • v0.10.3
    • 28.52
    • Published

    gogogojs

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

    • v1.8.15
    • 28.51
    • Published

    shamos-hoey

    A module to check if a polygon self-intersects

    • v1.1.0
    • 28.41
    • Published

    contour-2d

    Extracts the boundary of a binary 2D image

    • v1.0.0
    • 28.36
    • Published

    overlay-pslg

    Computes a boolean combination of two planar graphs

    • v1.0.0
    • 28.32
    • Published

    geo-split

    Utilities to split GeoJSON geometries

    • v0.1.2
    • 28.27
    • Published

    @avdl/martinez

    TypeScript library for polygon boolean operations

    • v0.2.0
    • 28.24
    • Published

    argus-indexer

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

    • v1.0.7
    • 28.15
    • 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.99
    • Published

    point-util

    a few point and polygon utils

    • v0.0.0
    • 27.92
    • Published

    @thi.ng/boids

    n-dimensional boids simulation with modular behavior system

    • v1.1.24
    • 27.49
    • Published

    sdf-polygon-2d

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

    • v2.0.0
    • 27.40
    • Published

    shape2d

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

    • v0.0.5
    • 27.33
    • Published

    @thi.ng/geom-fuzz

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

    • v3.0.75
    • 26.91
    • Published

    mskalign-canvas

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

      • v2.27.5
      • 26.76
      • Published

      @thi.ng/iges

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

      • v2.1.197
      • 26.73
      • 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.66
      • Published

      leaflet-measure-ext

      Coordinate, linear, and area measure tool for Leaflet maps

      • v3.2.1
      • 26.65
      • Published

      leaflet-measure-ex

      Coordinate, linear, and area measure tool for Leaflet maps

      • v3.0.7
      • 26.64
      • Published

      is-clockwise

      test if 2D convex polygon is clockwise

      • v2.0.2
      • 26.54
      • 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.50
      • Published

      leaflet-measure-v2

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

      • v3.1.6
      • 26.50
      • Published

      postal-codes

      Maps postal codes to polygons

      • v1.0.906
      • 26.13
      • Published

      collider2d

      A 2D collision checker for modern JavaScript games.

      • v1.1.1
      • 26.10
      • Published

      leaflet-spline

      Leaflet plugin for drawing bezier splines from polylines and polygons

      • v0.2.0
      • 26.00
      • Published

      svg-path-interpolator

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

      • v0.3.0
      • 25.90
      • Published

      fast-point-in-poly

      Quickly find points in large sets of polygons

      • v1.0.0
      • 25.90
      • Published

      create-web3-dapp

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

      • v1.4.0
      • 25.64
      • Published

      boundaries

      Source for all GeoJSON boundaries on Earth

      • v1.0.2
      • 25.59
      • Published

      canvas-select-pro

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

      • v0.0.5
      • 25.52
      • 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.48
      • Published

      visibility-polygon

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

      • v1.1.0
      • 25.38
      • 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.17
      • Published

      leaflet.freedraw

      Zoopla inspired freehand polygon creation using Leaflet.js.

      • v2.0.1
      • 25.15
      • Published

      hodl-wallet

      🧊 HODL Wallet - Fast CLI crypto wallet!

      • v1.8.6
      • 25.01
      • 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.68
      • Published

      @dexus1985/clipper2-wasm

      WebAssembly port of the Clipper2 library for polygon clipping and offsetting

      • v1.4.0
      • 24.63
      • Published

      smooth-polyline

      Smoothing algorithm for 2D lines and polygons

      • v1.0.8
      • 24.46
      • 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.39
      • 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.05
      • 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.92
      • 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.77
      • Published

      pixi-bump

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

      • v1.0.2
      • 23.74
      • Published

      @cryptapi/api

      CryptAPI's Library for NodeJS

      • v1.1.1
      • 23.55
      • Published

      canvas-select

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

      • v2.29.0
      • 23.41
      • Published

      tilemap-to-convexes

      Merge solid polygons and decompose into convexes.

      • v1.0.0
      • 23.36
      • Published

      2d-geometry

      Performant & ergonomic 2D geometry in typescript

      • v3.0.0
      • 23.25
      • 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.22
      • Published

      @kninnug/trivis

      Compute visibility polygons by Triangular Expansion

      • v2.0.0
      • 22.90
      • Published

      shape-svg

      Make svg polygon & star shape

      • v0.4.0
      • 22.68
      • 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.56
      • 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.15
      • Published

      tf-leaflet-freedraw

      Zoopla inspired freehand polygon creation using Leaflet.js.

      • v1.0.1
      • 22.01
      • Published

      plotboilerplate

      A simple javascript plotting boilerplate for 2d stuff.

      • v1.24.0
      • 21.39
      • Published

      polygon-direction

      determine if a polygon is clockwise or counter-clockwise

      • v0.1.0
      • 21.19
      • Published

      @complus/v2-core-matic

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

      • v0.1.0
      • 21.19
      • 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
      • 21.10
      • Published

      ember-leaflet-draw

      Provides feature drawing functionality for Ember-Leaflet, based on wrapping the Leaflet Draw library

      • v0.7.1
      • 20.81
      • Published

      polyclip-js

      A JavaScript port of the polyclip library

      • v1.0.1
      • 20.66
      • Published

      geojson2poly

      Converts GeoJOSN polygons to osm poly format file.

      • v0.0.2
      • 20.11
      • Published

      getboundingbox

      This is a utility function to calculate the bounding box of series of 2D points

      • v1.0.0
      • 20.06
      • Published

      gomjau-hogg

      Gomjau-hogg notation tessellations of regular polygons

      • v0.1.1
      • 20.03
      • Published

      turf-line-to-polygon

      A turf module to transform a LineString geometry to a (closed) Polygon geometry.

      • v0.2.1
      • 20.02
      • Published

      @zktx.io/wormhole-kit

      A suite of utilities used to implement bridges based on the Wormhole protocol.

      • v0.1.15
      • 19.85
      • Published

      point-in-polygon-extended

      determine if a point is inside a polygon with ray casting or winding numbers

      • v0.0.1
      • 19.80
      • Published

      @iota-big3/sdk-blockchain

      Comprehensive blockchain integration platform with multi-chain support, smart contracts, DeFi protocols, NFT infrastructure, Bitcoin support, and seamless SDK ecosystem integration for IOTA Big3

        • v1.0.0
        • 19.21
        • Published

        smooth-path

        Smoothes a polyline (as flat number array) using Chaikins Algorithm

        • v1.0.1
        • 18.99
        • Published

        @tatumio/blockchain-mcp

        Model Context Protocol server providing access to Tatum's comprehensive blockchain API across 130+ networks with 13 tools

        • v1.0.5
        • 18.53
        • Published

        math-utils-2d

        Math utils for 2d graphics

        • v0.0.10
        • 18.52
        • Published

        @tamago-labs/okx-dex-mcp

        MCP server for OKX DEX Analytics - comprehensive DEX aggregator analytics with multi-chain support

        • v0.1.0
        • 18.50
        • Published

        @elizaos/plugin-zapper

        ElizaOS plugin for Zapper protocol integration - portfolio tracking, DeFi analytics, and blockchain data across 50+ networks

        • v1.2.9
        • 18.43
        • Published

        geo-toolkits

        A comprehensive TypeScript library for geospatial operations including geofencing, polygon containment, area calculations, and coordinate processing. Supports GeoJSON, KML, and KMZ file formats with both local file and remote URL loading capabilities.

        • v1.0.0
        • 18.38
        • Published

        map-container

        Receives zip code polygon data and transforms it into geoJSON format

        • v1.0.4
        • 18.18
        • Published

        @zktx.io/wormhole-kit-core

        A suite of utilities used to implement bridges based on the Wormhole protocol.

        • v0.1.15
        • 18.02
        • Published

        @shanev/wallet-agent

        MCP server for Web3 wallet interactions on EVM-compatible chains using Wagmi

        • v0.1.0
        • 17.86
        • Published

        pil-stark

        Build a stark from a PIL

          • v0.0.58
          • 17.74
          • Published

          react-svg-polygon

          A simple component for rendering polygons

          • v2.0.6
          • 17.69
          • Published

          @cryptodevops/n8n-nodes-opensea

          n8n node for accessing NFT data via OpenSea API with comprehensive filtering and AI Agent support

          • v1.0.0
          • 17.52
          • Published

          transform-to-geojson

          Transforms Google Maps Polygons/Google Maps Encoded Polygons/WKB/WKT into GeoJSON

            • v1.1.0
            • 17.47
            • Published

            polygon-utils

            Library for calculation of polygon centroid and bounding box area.

            • v1.1.0
            • 17.44
            • Published

            @blockbee/api

            BlockBee's Library for NodeJS

            • v2.1.1
            • 17.12
            • Published

            polygon-generator

            A utility to generate coordinates of an equilateral polygon.

            • v1.2.15
            • 17.09
            • Published

            vue3-draw-hotzone

            Vue3 component for drawing hotzones (lines/polygons) on images

              • v1.0.9
              • 16.98
              • Published

              pslg-to-poly

              Convert a planar straight line graph into a polygon

              • v1.0.0
              • 16.55
              • Published

              svg-polygon-center

              Return the center for a given SVG polygon points

              • v1.0.2
              • 16.50
              • Published

              @html-polygon/core

              This is the core package enabling HTML Polygons for React.

              • v0.1.4
              • 16.48
              • Published

              mcw-upg

              • v0.0.26
              • 16.40
              • Published

              @overlay.fun/kit

              TypeScript SDK for overlay.fun API

                • v1.0.6
                • 16.24
                • Published

                dxf-parsing

                dxf-parsing is made to parse dxf files : polygons, texts, circles ...

                • v0.5.3
                • 16.21
                • Published

                @aryze/reforge

                TypeScript SDK for Aryze Reforge cross-chain bridge protocol

                • v1.0.4
                • 15.98
                • Published

                @litedexdev/litedex-sdk

                🛠 An SDK for building applications on top of Litedex V1

                • v1.2.1-testnet.0
                • 15.92
                • Published

                @alpsfinance/core

                This is the official Alps Finance smart contract repository.

                • v0.0.4
                • 15.83
                • Published

                @rarimo/providers-near

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

                • v2.6.0
                • 15.72
                • Published

                angular-web3

                A schematics packages providing tools for developping Angular Dapps

                • v0.0.6-beta2
                • 15.66
                • Published