JSPM

Found 411 results for intersection

three-mesh-bvh

A BVH implementation to speed up raycasting against three.js meshes.

  • v0.9.1
  • 74.81
  • 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
  • 72.69
  • Published

lodash.intersection

The lodash method `_.intersection` exported as a module.

  • v4.4.0
  • 72.06
  • Published

polygon-clipping

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

  • v0.15.7
  • 72.03
  • Published

@thednp/position-observer

🏯 PositionObserver is a JavaScript tool that provides a way to asynchronously observe changes in the position of a target element within its viewport.

  • v1.1.0
  • 72.02
  • Published

polyclip-ts

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

  • v0.16.8
  • 70.62
  • Published

polybooljs

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

  • v1.2.2
  • 70.13
  • Published

react-cool-inview

React hook to monitor an element enters or leaves the viewport (or another element).

  • v3.0.1
  • 61.11
  • 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
  • 58.96
  • Published

react-awesome-reveal

React components to add reveal animations using the Intersection Observer API and CSS Animations.

  • v4.3.1
  • 57.48
  • Published

array-intersection

Return an array with the unique values present in _all_ given arrays using strict equality for comparisons.

  • v0.1.2
  • 57.23
  • Published

box-intersect

Any dimensional box intersection

  • v1.0.2
  • 56.22
  • Published

mergician

Uniquely flexible and light-weight utility for cloning and deep (recursive) merging of JavaScript objects. Supports descriptor values, accessor functions, and custom prototypes. Provides advanced options for customizing the clone/merge process.

  • v2.0.2
  • 56.16
  • Published

clean-pslg

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

  • v1.1.2
  • 55.88
  • Published

polygon-lookup

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

  • v2.6.0
  • 55.41
  • Published

kld-intersections

A library of intersection algorithms covering all SVG shape types

  • v0.7.0
  • 55.33
  • Published

svg-intersections

A library of intersection algorithms covering all SVG shape types

  • v0.4.0
  • 54.35
  • Published

projection-utils

Utilities to work with projections (e.g. mongo)

  • v1.1.0
  • 54.16
  • Published

set.prototype.intersection

An ESnext spec-compliant `Set.prototype.intersection` shim/polyfill/replacement that works as far down as ES3

  • v1.1.7
  • 52.89
  • Published

svelte-inview

A Svelte action that monitors an element enters or leaves the viewport or a parent element. Performant and efficient thanks to using Intersection Observer under the hood.

  • v4.0.4
  • 52.66
  • Published

interval-operations

Utilities for performing mathematical set operations on intervals and arrays of intervals

  • v2.0.0
  • 50.58
  • Published

@tldraw/intersect

2D intersection utilities for TLDraw and maybe you, too.

  • v1.9.2
  • 49.89
  • Published

rectangle-overlap

Computes the area of the intersection of two rectangles.

  • v2.0.0
  • 49.56
  • Published

jsdoc-plugin-intersection

Converts TypeScript-like intersection types to JSDoc compatible union types, that is, from & -> |

  • v1.0.4
  • 49.53
  • Published

react-is-visible

A simple library that lets you know whether a Component is visible or not.

  • v1.2.0
  • 48.74
  • Published

region

A helper to work with rectangular regions in the DOM

  • v2.1.2
  • 48.63
  • Published

segseg

2d segment to segment intersection detection

  • v1.0.0
  • 47.81
  • Published

intervals-fn

Manipulate intervals in a functional way

  • v3.0.3
  • 46.11
  • Published

geomask

Low-Level GeoSpatial Masking Functions

  • v0.5.1
  • 44.85
  • Published

@thi.ng/associative

ES Map/Set-compatible implementations with customizable equality semantics & supporting operations

  • v7.1.10
  • 44.75
  • Published

svelte-reveal

Svelte action that leverages the Intersection Observer API to trigger reveal on scroll transitions

  • v1.1.0
  • 44.56
  • Published

react-scroll-percentage

Monitor the scroll percentage of a component inside the viewport, using the IntersectionObserver API.

  • v4.3.2
  • 43.86
  • Published

difference

Calculate the difference of two arrays

  • v1.0.2
  • 43.58
  • Published

mergekit

Uniquely flexible and light-weight utility for cloning and deep (recursive) merging of JavaScript objects. Supports descriptor values, accessor functions, and custom prototypes. Provides advanced options for customizing the clone/merge process.

  • v3.0.6
  • 43.11
  • Published

ray-aabb-intersection

Determine the point of intersection between a ray and axis-aligned bounding box (AABB)

  • v1.0.1
  • 42.73
  • Published

loadable-image

React Component to lazy load images

  • v3.3.0
  • 41.95
  • Published

@velipso/polybool

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

  • v2.0.11
  • 41.41
  • Published

extra-array

An array is a collection of values, stored contiguously.

  • v4.3.3
  • 41.28
  • Published

greiner-hormann

Greiner-Hormann clipping algorithm

  • v1.4.2
  • 40.78
  • Published

bvh.js

Dynamic BVH implementation based on Erin Catto's paper.

  • v0.0.13
  • 40.46
  • Published

insection

A data structure for storing number intervals

  • v1.2.5
  • 40.33
  • Published

extra-iterable

An iterable is a sequence of values.

  • v3.3.2
  • 39.96
  • Published

flo-bezier3

Purely functional linear, quadratic and cubic bezier library, including accurate, robust bezier intersection.

  • v6.0.1
  • 39.54
  • Published

@thi.ng/geom

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

  • v8.2.10
  • 39.30
  • Published

libreact

React standard library

  • v2.13.3
  • 38.83
  • Published

bezier-intersect

intersections between bezier curves of order 2, 3 and lines and rectangles

  • v0.0.3
  • 38.26
  • Published

mezr

Measure and compare the dimensions and distances of DOM elements.

  • v1.1.0
  • 36.50
  • Published

line-intersection

App that shows the intersection between 2 lines or line segments

  • v1.0.9
  • 36.36
  • Published

vevet

Vevet is a JavaScript library for creative development that simplifies crafting rich interactions like split text animations, carousels, marquees, preloading, and more.

  • v5.0.11
  • 36.02
  • Published

intersecting-ranges

Find intersecting ranges using Marzullo algorithm

  • v1.2.0
  • 35.05
  • Published

set-utilities

High performance set theory - functional utilities which operate on arbitrary input sets.

  • v1.5.7
  • 34.98
  • Published

flatten-js

Javascript library for 2d geometry

  • v0.6.9
  • 34.57
  • Published

vue-lazy-renderer

Lazily render Vue.js components for performance.

  • v1.2.1
  • 34.23
  • Published

@thi.ng/intervals

Closed/open/semi-open interval data type, queries & operations

  • v4.2.114
  • 33.46
  • Published

rectangles

A function collection for working with rectangles

  • v0.0.4
  • 32.80
  • Published

extra-set

A pack of functions for working with Sets.

  • v3.2.2
  • 32.74
  • Published

@svelte-put/toc

Action & utilities for building table of contents

  • v6.0.2
  • 32.64
  • Published

@equinor/esv-intersection

Intersection component package with testing and automatic documentation.

  • v3.1.4
  • 32.27
  • Published

react-native-use-in-view

A versatile and efficient React Native component designed for seamless integration of scroll-based features into mobile applications. This package offers a powerful ScrollView observer that allows developers to easily track and respond to scroll events an

  • v0.4.2
  • 32.17
  • Published

triangle-triangle-intersection

return line segment representing the intersection between a pair of 3D triangles. based on Thomas Möller's algorithm.

  • v0.0.22
  • 31.84
  • Published

viewport-observer

React Component that observe changes in the intersection of a target element with viewport using IntersectionObserver

  • v2.3.0
  • 31.83
  • Published

@labelbox/polygon-clipping

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

  • v0.0.5
  • 31.73
  • Published

ray-3d

a high-level ray picking helper for 3D intersection

  • v1.1.1
  • 31.66
  • Published

intersectionjs

NPM wrapper of Kevin Lindsey's intersection.js

  • v1.0.1
  • 31.60
  • Published

simplify-ranges

Merge and normalize adjacent or overlapping integer ranges

  • v1.0.0
  • 31.52
  • Published

circle.js

A function collection for working with circles

  • v0.2.3
  • 31.10
  • Published

sets-equal

Check if two Sets contain all the same values

  • v1.0.0
  • 30.92
  • Published

@thi.ng/oquery

Datalog-inspired, optimized pattern/predicate query engine for JS objects & arrays of objects

  • v2.3.35
  • 29.58
  • Published

@nesvet/n

Various utilities

  • v1.2.1
  • 28.27
  • Published

array-power

This package includes a set of useful array methods that facilitates working with arrays, specifically the arrays that contain objects or arrays even falsy values (such as: 0, null, false, NaN...). This package is es5 supported.

  • v1.0.7
  • 28.15
  • Published

intersector

Superfast and small intersection supporting primitives and objects. Up to 3x faster than other libraries. In the age of big data, you need it.

  • v2.5.1
  • 27.83
  • Published

@opuu/inview

Lightweight JavaScript library for viewport detection with debounced callbacks - intersection observer, lazy loading, scroll animations, infinite scroll, element visibility tracking with TypeScript support. Zero dependencies, ~1KB gzipped.

  • v2.3.1
  • 27.47
  • Published

v-intersection

vue directive use Intersection Observer API

  • v0.1.6
  • 27.20
  • Published

element-in-viewport

Async module that resolves when a target element has entered the viewport at a threshold, using Intersection Observer API

  • v1.2.4
  • 27.15
  • Published

huntjs

Minimal library to observe nodes entering and leaving the viewport

  • v5.0.0
  • 26.36
  • Published

betterset

An extension of the javascript Set object which contains useful Set operation methods

  • v3.0.3
  • 25.91
  • Published

pex-geom

Geometry intersection and bounding volume helpers for PEX.

  • v3.1.0
  • 25.75
  • Published

fast-triangle-triangle-intersection

Fast and robust triangle-triangle intersection test with high precision for cross and coplanar triangles based on the algorithm by Devillers & Guigue.

    • v1.0.7
    • 25.71
    • Published

    intersection

    fast line intersection

    • v0.0.1
    • 25.62
    • Published

    intersect-arrays-to-stream

    A utility that takes 1 or more sorted arrays and emits a node stream event whenever an intersection is found

      • v0.0.3
      • 25.14
      • Published

      sorted-intersect

      Intersect sorted lists using merge intersection with galloping lookahead

      • v0.1.5
      • 23.87
      • Published

      object-agent

      A javascript library for working with objects

      • v1.6.1
      • 23.50
      • Published

      bvh-tree

      A Bounding Volume Hierarchy data structure, for fast ray-mesh intersection

      • v1.0.1
      • 23.27
      • Published

      linestring-intersect

      Determines whether any of the segments of 2 given linestrings intersect

      • v1.0.3
      • 23.14
      • Published

      array-xor

      Returns the symmetric difference (exclusive-or) of an array of elements (elements that are present in all given arrays and not in their intersections).

      • v0.1.1
      • 22.75
      • Published

      use-detector-hook

      Custom hook designed to detect if an element is visible within the viewport.

      • v1.0.8
      • 22.72
      • Published

      2d-geometry

      Performant & ergonomic 2D geometry in typescript

      • v3.0.0
      • 21.40
      • Published

      extra-map

      A group of functions for working with Maps.

      • v3.2.2
      • 21.15
      • Published

      extra-sorted-array

      A sorted array is a collection of values, arranged in an order.

      • v1.2.1
      • 20.96
      • Published

      alpinejs-overlap

      Alpine JS magic helper that determines when elements overlap or intersect each other, perfect for menus, tooltips, modals, and collision detection 🥞

        • v1.1.2
        • 20.65
        • Published

        extra-map.web

        A group of functions for working with Maps {web}.

        • v3.2.2
        • 20.59
        • Published

        @rtkcd/utils

        Frequently used tools for React

        • v1.0.152
        • 20.53
        • Published

        extra-ilists

        ILists is a pair of key iterable list and value iterable list, with unique keys.

        • v3.1.18
        • 20.11
        • Published

        lisn.js

        Simply handle user gestures and actions. Includes widgets.

        • v1.2.1
        • 19.99
        • Published

        extra-object

        A collection of methods for working with Objects.

        • v3.2.2
        • 19.70
        • Published

        @itihon/position-observer

        Observes position change of an element within viewport as a result of resize, scroll, left or top coordinates change, or zooming in and out

        • v1.2.4
        • 19.56
        • Published

        extra-entries.web

        A collection of functions for operating upon Entries {web}.

        • v3.2.2
        • 19.20
        • Published

        extra-set.web

        A pack of functions for working with Sets {web}.

        • v3.2.2
        • 18.96
        • Published

        objects-made-easy

        Node.js utility functions to handle objects

        • v1.1.0
        • 18.48
        • Published

        @zippytech/region

        A helper to work with rectangular regions in the DOM

        • v3.0.8
        • 18.30
        • Published

        bxh

        Bounding interval hierarchy and bounding volume hierarchy library for nodejs

        • v0.7.2
        • 18.10
        • Published

        extra-ilists.web

        ILists is a pair of key iterable list and value iterable list, with unique keys {web}.

        • v3.1.18
        • 18.07
        • Published

        extra-object.web

        A collection of methods for working with Objects {web}.

        • v3.2.2
        • 18.01
        • Published

        glob-intersection

        Find the intersection of two glob patterns

        • v0.1.3
        • 17.98
        • Published

        alpinejs-intersect-class

        An Alpine.js plugin to easily add CSS classes to an element when it enters the viewport.

        • v1.0.8
        • 17.82
        • Published

        khal

        Node utility librairies

        • v2.0.0
        • 17.14
        • Published

        viewability-helper

        Lightweight cross-browser library that enables you to create a watcher for a given element, and get back a callback when it has entered the viewport

        • v1.0.27
        • 16.85
        • Published

        extra-array.web

        An array is a collection of values, stored contiguously {web}.

        • v4.3.3
        • 16.72
        • Published

        @kohlmannj/react-scroll-percentage

        Monitor the scroll percentage of a component inside the viewport, using the IntersectionObserver API.

        • v3.0.0-alpha.13
        • 16.00
        • Published

        extra-lists

        A collection of functions for operating upon Lists.

        • v4.0.8
        • 15.45
        • Published

        array-intersection-x

        Creates an array of unique values that are included in all given arrays.

        • v3.1.2
        • 14.99
        • Published

        vuetify-lazy-image

        A Vue.js component to lazy load images using the Intersection Observer

        • v1.2.4
        • 14.71
        • Published

        joex

        Javascript Object Extensions

        • v0.2.0
        • 14.67
        • Published

        extra-sorted-array.web

        A sorted array is a collection of values, arranged in an order {web}.

        • v1.2.1
        • 14.53
        • Published

        @jhubbardsf/svelte-inview

        A Svelte action that monitors an element enters or leaves the viewport or a parent element. Performant and efficient thanks to using Intersection Observer under the hood.

        • v4.0.2
        • 14.02
        • Published

        rrr-lazy

        Lazy load component with react && react-router.

        • v4.1.0
        • 14.00
        • Published

        extra-entries

        A collection of functions for operating upon Entries.

        • v3.2.2
        • 13.80
        • Published

        target-observer

        With Target Observer, you can easily trigger animations, lazy load content, or handle visibility-based logic in your application.

        • v1.1.2
        • 13.72
        • Published

        ray-aabb

        test if a ray intersects an aabb in 2d/3d space

        • v3.0.2
        • 13.47
        • Published

        @baye/polyclip-ts

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

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

        leaflet-clipper

        Allows Union, Difference, Xor, and Intersection operations on two polygons.

        • v1.1.0
        • 13.31
        • Published

        viewport-action

        Provides a way with extra configuration options to execute a handler when a given element is on view.

        • v1.0.2
        • 13.07
        • Published

        intersectiontrigger

        IntersectionTrigger utilizes the most modern web technology to trigger anything by intersection. Including scroll-based animations.

        • v1.1.6
        • 12.71
        • Published

        polyclip-js

        A JavaScript port of the polyclip library

        • v1.0.1
        • 12.51
        • Published

        @jood/appearer

        javascript intersection observer

        • v0.2.0
        • 12.18
        • Published

        qutyl

        A basic library for some utility functions

        • v1.1.3
        • 12.09
        • Published

        mapxus-polygon-clipping

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

        • v0.12.3
        • 11.94
        • Published

        geojson-clip-polygon

        A small wrapper around turf-intersect to safely clip one geojson polygon to another

        • v1.0.3
        • 11.94
        • Published

        regexsolver

        RegexSolver allows you to manipulate regular expressions as sets, enabling operations such as intersection, union, and subtraction.

        • v1.0.4
        • 11.92
        • Published

        @stdlib/iter-intersection

        Create an iterator which returns the intersection of two or more iterators.

        • v0.2.2
        • 11.67
        • Published

        set-helpers

        Helpers for Set objects.

        • v1.3.1
        • 11.63
        • Published

        heligeo

        A libraray for Isochrone, Routing & geoprocessing GeoJson Data

        • v1.1.5
        • 11.63
        • Published

        proposal-set

        ![header image of various venn diagrams](images/header.png)

        • v1.0.7
        • 11.34
        • Published

        array-helper-lib

        A utility library providing common array manipulations and React hooks.

          • v1.0.0-beta.1
          • 11.30
          • Published

          react-sticky-children

          ReactJS component that applies CSS styles as it approaches the top of the viewport.

          • v0.1.1
          • 11.24
          • Published

          geojson-clipping

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

          • v0.3.0
          • 11.24
          • Published

          react-intersection-revealer

          An easy-to-use React hook that tells you whether a component/element is visible on the viewport currently, and if yes, how much of it is visible.

          • v1.3.0
          • 11.08
          • Published

          extra-lists.web

          A collection of functions for operating upon Lists {web}.

          • v4.0.8
          • 10.95
          • Published

          sweepline

          Detect self-intersecting polygons in Javascript. An implementation of the Bentley–Ottmann sweep line algorithm for detecting crossings in a set of line segments.

          • v0.1.0
          • 10.77
          • Published

          @hzzt/v-lazy-image

          A Vue.js component to lazy load images using the Intersection Observer.

          • v1.4.2
          • 10.24
          • Published

          bvh-tree-plus

          A Bounding Volume Hierarchy data structure, for fast ray-mesh intersection

          • v1.0.2
          • 10.22
          • Published

          object.intersect

          Return intersect object that have same key from a number of objects

          • v0.0.3
          • 10.20
          • Published

          hd-intersection-observer

          An abstract layer that would make using intersection observer easier

          • v1.1.1
          • 10.20
          • Published

          cute-set

          A minimalistic es6 implementation of set

          • v2.0.1
          • 10.17
          • Published

          type-guard-pro

          Zero-dependency TypeScript runtime type validation with full type inference

          • v1.0.1
          • 10.17
          • Published

          react-vanilla-lazyload

          React lazy loading component using vanilla-lazyload library. Speedy, lightweight and easy to use.

          • v1.0.4
          • 9.85
          • Published

          bvh

          BVH

          • v0.5.0
          • 9.83
          • Published

          aniq

          Scalable distinct value counting system

          • v0.1.0
          • 9.77
          • Published

          criss-cross

          A simple and fast API to manage viewport and DOM elements intersections as you scroll

          • v0.0.9
          • 9.77
          • Published

          number-is-in-range

          🔢 JavaScript range validation library - Extend Number and BigInt prototypes with powerful range checking, validation, and manipulation utilities. Perfect for form validation, game development, and scientific computing.

          • v3.0.0
          • 9.41
          • Published

          @kubric/geometry

          Javascript library for 2d geometry. Cloned from flattenjs

          • v1.4.5
          • 9.26
          • Published

          sets

          A library for working with Sets and arrays as sets.

          • v0.2.0
          • 9.26
          • Published

          react-load-visible

          A wrapper for @loadable/component that uses IntersectionObserver to trigger component load.

          • v1.0.9
          • 8.95
          • Published

          svelte-observer

          A collection of observers for Svelte

          • v0.0.1
          • 8.74
          • Published

          array-device

          Handle your array objects with ease

          • v1.1.2
          • 8.74
          • Published

          use-intersection-hook

          This is a simple React Hooks that trigger a callback all time the element is viewed.

          • v2.0.0
          • 8.70
          • Published

          twodee

          Two dimensional geometry manipulation

          • v0.2.5
          • 8.70
          • Published

          clean-pslg-3d

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

          • v0.1.2
          • 8.70
          • Published

          svelte-5-inview

          A Svelte action that monitors an element enters or leaves the viewport or a parent element. Performant and efficient thanks to using Intersection Observer under the hood. Forked from maciekgrzybek to support Svelte 5 after no merge of fixes.

          • v1.0.0
          • 8.70
          • Published

          separating-axis-test

          test for the intersection of convex polytopes in 2d or 3d, computing the minimum translation vector

            • v1.1.0
            • 8.54
            • Published

            autemitaque

            A BVH implementation to speed up raycasting against three.js meshes.

            • v1.10.0
            • 8.47
            • Published

            line-seg-intersect

            Fast testing whether two line segments intersect

            • v1.0.0
            • 8.33
            • Published

            min-max-range

            Implementation of range data structures using plain JavaScript arrays.

            • v1.0.6
            • 8.13
            • Published

            @stormid/scroll-spy

            Scroll position-related navigation state management

            • v1.0.0
            • 7.91
            • Published

            ic-api

            An API (wrapper actually) for connect trough Intersection Controller game data like users and maps

            • v1.2.1
            • 7.91
            • Published

            ember-intersect

            Simple Javascript IntersectionObserver implementation for Ember applications.

            • v1.4.0
            • 7.91
            • Published

            to-planar-graph

            Given a graph with a graph with a non planar embedding, make changes to this graph so that it becomes planar.

              • v3.0.1
              • 7.56
              • Published