JSPM

Found 111 results for rect

@zag-js/rect-utils

```sh yarn add @zag-js/geometry # or npm i @zag-js/geometry ```

  • v1.26.2
  • 90.73
  • Published

parse-rect

Parse any input rectangle format

  • v1.2.0
  • 81.41
  • Published

maxrects-packer

A max rectangle 2d bin packer for packing glyphs or images into multiple sprite-sheet/atlas

  • v2.7.3
  • 64.46
  • Published

drag-helper

A drag & drop utility

  • v1.3.6
  • 53.71
  • Published

bounding-client-rect

Cross-browser `getBoundingClientRect()` for all Node types

  • v1.0.5
  • 51.91
  • Published

viewport-position

Get the current viewport position of target window

  • v0.1.1
  • 46.06
  • Published

textarea-selection-bounds

A handy package to get the bounds of the current text selection in a textarea element

  • v4.2.2
  • 45.95
  • Published

svg-boundings

Get bounding rect of SVG shape elements.

  • v2.0.8
  • 45.88
  • Published

svg-flatten

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

  • v1.0.1
  • 44.65
  • 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
  • 41.50
  • Published

x-math

Math library inspired by Google Closure library

  • v0.12.0
  • 40.87
  • Published

@thi.ng/geom-clip-poly

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

  • v2.1.194
  • 40.19
  • Published

rounded-rect

Rounded canvas rectangles

    • v0.0.1
    • 40.11
    • Published

    rect-crop

    Crop a dimension in a viewport: Compute a rectangle from a zoom ratio and a center point while preserving the dimension ratio.

    • v0.0.0
    • 39.35
    • Published

    ringside

    Positions a rectangle between inner and outer bounds

    • v1.0.1
    • 39.04
    • Published

    canvas-select

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

    • v2.32.2
    • 38.54
    • Published

    rect-clamp

    Constraint a Rectangle into another by preserving the ratio.

    • v0.0.0
    • 37.93
    • Published

    @thi.ng/text-canvas

    Text based canvas, drawing, plotting, tables with arbitrary formatting (incl. ANSI/HTML)

    • v3.0.92
    • 37.44
    • Published

    @render-props/rect

    A state container which provides an interface for retrieving the bounding client rect of a referenced element. The bounding client rect will update each time the window resizes - a behavior which can be turned off by setting the prop `recalcOnWindowResize

    • v0.1.22
    • 36.50
    • Published

    pex-geom

    Geometry intersection and bounding volume helpers for PEX.

    • v3.1.0
    • 35.81
    • Published

    @thi.ng/geom-sdf

    2D Signed Distance Field creation from @thi.ng/geom shapes, conversions, sampling, combinators

    • v1.0.53
    • 35.54
    • Published

    @thi.ng/rasterize

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

    • v1.0.163
    • 35.35
    • Published

    rects-bin-pack

    MaxRects Algorithm javascript implementation

    • v0.1.3
    • 34.64
    • Published

    @evolor/image-rect

    多选区图片标注与区域渲染组件,支持 PC/移动端,支持按需引用与整体引用。

    • v1.0.22
    • 33.65
    • Published

    @evolor/image-rect-vue3

    多选区图片标注 Vue3 组件,支持双向绑定、ref 实例、按需引用。

      • v1.0.22
      • 32.73
      • Published

      adaptive-scale

      This small library can scale any size according to other size.

      • v1.0.0
      • 32.67
      • Published

      canvas-select-pro

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

      • v0.0.8
      • 32.50
      • Published

      rect-mix

      Interpolate 2 rectangles

      • v0.0.0
      • 32.19
      • Published

      @zardoy/maxrects-packer

      A max rectangle 2d bin packer for packing glyphs or images into multiple sprite-sheet/atlas

      • v2.7.4
      • 31.90
      • Published

      mskalign-canvas

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

        • v2.27.6
        • 30.90
        • Published

        @taufik-nurrohman/rect

        Document, element, mouse and window position and dimension helpers.

        • v1.0.0
        • 27.93
        • Published

        dirichlet

        Dirichlet/aliased sinc function

        • v1.0.1
        • 27.12
        • Published

        @catsums/vector2

        Vector2 library for Javascript inspired by Godot and Unity, but for handling the DOM and Canvas or just plain Vector Math calculations.

        • v1.3.3
        • 24.13
        • Published

        pathomorph

        The RAW library to create SVG path elements out of geometric primitives

        • v0.0.5
        • 24.09
        • Published

        quadtreemap

        Functions that map the quads in D3 quadtrees to rects and maps the points as well.

        • v0.13.0
        • 23.69
        • Published

        @svg-fns/types

        Shared TypeScript type definitions for svg-fns libraries — Rect, Point, Matrix, Padding, and other geometry/layout primitives.

        • v0.0.0
        • 23.30
        • Published

        spase

        Micro library for performing 2D spatial calculations of DOM elements

        • v11.3.0
        • 21.81
        • Published

        @creenv/rectangle

        a lightweight rectangle class, can be used as a bounding rect

        • v0.0.1
        • 21.02
        • Published

        react-svg-image-board

        A react component. can drawing svg element to image board.

        • v0.1.3
        • 20.32
        • Published

        @anthood/crc

        React Component ready to be published on npm

        • v0.0.5
        • 19.95
        • Published

        nauty

        Nauty proporciona herramientas para trabajar con elementos geométricos en un plano cartesiano, permitiendo crear, manipular y transformar objetos de manera eficiente y precisa. Es especialmente útil para aplicaciones gráficas, juegos, visualizaciones de d

        • v1.0.0
        • 19.84
        • Published

        boxpack

        Bin packing algorithm for rectangles

        • v0.1.0
        • 19.41
        • Published

        ben-canvas

        a canvas tool lib

        • v1.1.6
        • 19.32
        • Published

        canvas-mark-board

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

        • v0.0.1-beta.10
        • 18.67
        • Published

        rect-mip-map

        arbitrary rectangle mip mapping for texture atlases

        • v0.1.2
        • 18.01
        • Published

        canvasplot

        canvas canvasPlot

        • v1.2.12
        • 17.86
        • Published

        viewport-funcs

        A very limited subset of viewport functions I use every day

        • v0.3.1
        • 17.65
        • Published

        savyg

        A savvy library to create svg elements and charts with ease

        • v1.2.4
        • 17.65
        • Published

        atlasify

        CLI and core module for atlasify texture packer using maxrects-packer & Jimp

        • v0.4.1
        • 17.04
        • Published

        shapepath

        No-dependecy, fast and lightweight SVG Shape Parser and Compiler

          • v0.0.1
          • 16.01
          • Published

          canvas-select-bsc

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

          • v1.0.0
          • 15.84
          • Published

          box-sizing

          Box positioning calculations helper - CSS block style positioning for screen widgets

          • v1.0.1
          • 14.90
          • Published

          drawbetween

          Draw images and shapes on the specified line segment

          • v1.0.1
          • 13.81
          • Published

          @thi.ng/geom-clip

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

          • v0.1.12
          • 13.50
          • Published

          tiny-rect

          JS utilities for managing rects

          • v0.0.2
          • 13.33
          • Published

          react-native-offline-screen

          A react native offline screen which you can use while you are not connected with internet.

          • v0.0.6
          • 13.31
          • Published

          element-box

          Work easily with an element's position and dimensions

          • v1.0.1
          • 12.83
          • Published

          rect-cover

          Computes a transform between two rectangles the same way as background-size cover

          • v1.0.0
          • 12.59
          • Published

          d3-stacked-rect

          <big><h1 align="center"> Draw d3 stacked rect SVG based on their weights</h1></big>

          • v1.3.1
          • 12.59
          • Published

          canvas-labeler

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

          • v0.0.3
          • 12.20
          • Published

          canvas-select-vite

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

          • v0.0.2
          • 11.79
          • Published

          senz-canvas

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

          • v0.0.6
          • 11.67
          • Published

          react-3d-rect

          > 3D Rectangle with transition

          • v1.0.8
          • 11.17
          • Published

          client-parallax-notifications

          Provides notifications for the fractional positon of an HTML element relative to the viewport.

          • v0.0.5
          • 10.74
          • Published

          jt-collision-detection

          Basic collision detection methods based on Jeffrey Thompson's collision detection online series

          • v1.0.0
          • 10.13
          • Published

          client-rect-notifications

          Provides notifications for changes in the position of an HTML element relative to the viewport.

          • v0.0.3
          • 9.75
          • Published

          canvas-rect

          canvas rect drawing on element

            • v0.1.1
            • 9.65
            • Published

            q43

            A Quadtree class for JS/ES

            • v2.1.0
            • 9.12
            • Published

            fd-rect

            2D rectangle

            • v1.0.0
            • 8.80
            • Published

            clip-rect

            Helper to create clip rect animation with gsap

            • v1.2.0
            • 8.64
            • Published

            @ryvora/rect

            A utility library for rectangle and bounding box calculations in JavaScript/TypeScript.

            • v2.0.0
            • 8.31
            • Published

            visibilityobserver

            Experimental API for observing the visible box of an element.

            • v1.1.0
            • 8.31
            • Published

            @ryvora/react-use-rect

            📏🖼️ Get the bounding rect of a DOM element in React. Perfect for tooltips, popovers, and more!

            • v2.0.0
            • 7.88
            • Published

            @vanchelo/maxrects-packer

            A max rectangle 2d bin packer for packing glyphs or images into multiple sprite-sheet/atlas

            • v2.7.0
            • 7.88
            • Published

            rect-zoom-transforms

            Calculate the scaling and translations required to zoom and pan from one rectangle to another rectangle within the first

            • v1.0.1
            • 7.59
            • Published

            use-bounding-rect

            A tiny React hook to access DOM Rect dynamically

            • v0.1.0
            • 6.97
            • Published

            rect-guides

            Guides like the sketch app.

            • v0.0.4
            • 5.84
            • Published

            rect-contain

            Computes a transform between two rectangles the same way as background-size contain

            • v1.0.0
            • 5.84
            • Published

            rejsx

            This script allows you to use JSX in the browser with Babel transformed code, as if it were a normal DOM element.

            • v1.1.1
            • 4.42
            • Published

            graph-mark

            Mark the face frame in image and get the corresponding coordinates.

              • v1.0.1
              • 2.43
              • Published