JSPM

Found 110 results for rect

@zag-js/rect-utils

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

  • v1.22.1
  • 84.17
  • Published

parse-rect

Parse any input rectangle format

  • v1.2.0
  • 81.85
  • Published

maxrects-packer

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

  • v2.7.4
  • 64.78
  • Published

drag-helper

A drag & drop utility

  • v1.3.6
  • 53.82
  • Published

bounding-client-rect

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

  • v1.0.5
  • 50.95
  • Published

viewport-position

Get the current viewport position of target window

  • v0.1.1
  • 46.86
  • Published

svg-flatten

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

  • v1.0.1
  • 44.77
  • 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
  • 44.32
  • Published

textarea-selection-bounds

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

  • v4.2.2
  • 43.43
  • Published

rounded-rect

Rounded canvas rectangles

    • v0.0.1
    • 42.85
    • Published

    svg-boundings

    Get bounding rect of SVG shape elements.

    • v2.0.8
    • 42.66
    • Published

    @thi.ng/geom-clip-poly

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

    • v2.1.193
    • 42.32
    • Published

    x-math

    Math library inspired by Google Closure library

    • v0.12.0
    • 41.81
    • 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
    • 40.27
    • Published

    @thi.ng/text-canvas

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

    • v3.0.90
    • 39.01
    • Published

    rect-clamp

    Constraint a Rectangle into another by preserving the ratio.

    • v0.0.0
    • 38.91
    • Published

    adaptive-scale

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

    • v1.0.0
    • 37.56
    • Published

    @thi.ng/rasterize

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

    • v1.0.161
    • 36.53
    • Published

    ringside

    Positions a rectangle between inner and outer bounds

    • v1.0.1
    • 36.39
    • Published

    @evolor/image-rect

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

    • v1.0.13
    • 35.69
    • Published

    mskalign-canvas

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

      • v2.27.5
      • 34.82
      • Published

      @thi.ng/geom-sdf

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

      • v1.0.49
      • 33.98
      • Published

      canvas-select-pro

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

      • v0.0.5
      • 33.21
      • 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
      • 33.04
      • Published

      rects-bin-pack

      MaxRects Algorithm javascript implementation

      • v0.1.3
      • 31.69
      • Published

      @taufik-nurrohman/rect

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

      • v1.0.0
      • 31.43
      • Published

      @zardoy/maxrects-packer

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

      • v2.7.4
      • 30.89
      • Published

      canvas-select

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

      • v2.29.0
      • 30.33
      • Published

      pex-geom

      Geometry intersection and bounding volume helpers for PEX.

      • v3.1.0
      • 29.28
      • Published

      rect-mix

      Interpolate 2 rectangles

      • v0.0.0
      • 28.25
      • Published

      canvasplot

      canvas canvasPlot

      • v1.2.12
      • 27.45
      • Published

      spase

      Micro library for performing 2D spatial calculations of DOM elements

      • v11.3.0
      • 26.90
      • Published

      pathomorph

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

      • v0.0.4
      • 24.23
      • Published

      dirichlet

      Dirichlet/aliased sinc function

      • v1.0.1
      • 22.75
      • Published

      @creenv/rectangle

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

      • v0.0.1
      • 19.66
      • Published

      boxpack

      Bin packing algorithm for rectangles

      • v0.1.0
      • 18.56
      • 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
      • 18.39
      • Published

      quadtreemap

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

      • v0.13.0
      • 17.15
      • Published

      viewport-funcs

      A very limited subset of viewport functions I use every day

      • v0.3.1
      • 16.43
      • Published

      jt-collision-detection

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

      • v1.0.0
      • 16.04
      • Published

      savyg

      A savvy library to create svg elements and charts with ease

      • v1.2.4
      • 15.37
      • Published

      canvas-select-bsc

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

      • v1.0.0
      • 15.27
      • Published

      ben-canvas

      a canvas tool lib

      • v1.1.6
      • 14.70
      • Published

      atlasify

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

      • v0.4.1
      • 14.33
      • Published

      drawbetween

      Draw images and shapes on the specified line segment

      • v1.0.1
      • 13.80
      • Published

      @ryvora/rect

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

      • v2.0.0
      • 12.83
      • Published

      @ryvora/react-use-rect

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

      • v2.0.0
      • 12.36
      • Published

      canvas-select-vite

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

      • v0.0.2
      • 12.02
      • Published

      react-svg-image-board

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

      • v0.1.3
      • 11.96
      • Published

      shapepath

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

        • v0.0.1
        • 11.01
        • Published

        clip-rect

        Helper to create clip rect animation with gsap

        • v1.2.0
        • 10.74
        • 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
        • 10.25
        • Published

        canvas-mark-board

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

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

        element-box

        Work easily with an element's position and dimensions

        • v1.0.1
        • 10.22
        • Published

        canvas-labeler

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

        • v0.0.3
        • 9.94
        • Published

        rect-mip-map

        arbitrary rectangle mip mapping for texture atlases

        • v0.1.2
        • 9.55
        • Published

        tiny-rect

        JS utilities for managing rects

        • v0.0.2
        • 9.24
        • Published

        rect-contain

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

        • v1.0.0
        • 7.98
        • Published

        d3-stacked-rect

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

        • v1.3.1
        • 7.74
        • Published

        fd-rect

        2D rectangle

        • v1.0.0
        • 7.01
        • Published

        rect-guides

        Guides like the sketch app.

        • v0.0.4
        • 7.00
        • Published

        @anthood/crc

        React Component ready to be published on npm

        • v0.0.5
        • 6.96
        • Published

        rect-cover

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

        • v1.0.0
        • 6.79
        • Published

        box-sizing

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

        • v1.0.1
        • 6.58
        • Published

        visibilityobserver

        Experimental API for observing the visible box of an element.

        • v1.1.0
        • 6.58
        • Published

        senz-canvas

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

        • v0.0.6
        • 6.58
        • Published

        react-3d-rect

        > 3D Rectangle with transition

        • v1.0.8
        • 5.77
        • Published

        react-native-offline-screen

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

        • v0.0.6
        • 5.66
        • 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
        • 5.66
        • Published

        q43

        A Quadtree class for JS/ES

        • v2.1.0
        • 5.63
        • Published

        @thi.ng/geom-clip

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

        • v0.1.12
        • 5.49
        • Published

        use-bounding-rect

        A tiny React hook to access DOM Rect dynamically

        • v0.1.0
        • 4.42
        • Published

        client-rect-notifications

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

        • v0.0.3
        • 4.28
        • Published

        client-parallax-notifications

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

        • v0.0.5
        • 4.15
        • Published

        @evolor/image-rect-vue3

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

          • v1.0.15
          • 4.15
          • 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
          • 2.58
          • Published

          graph-mark

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

            • v1.0.1
            • 2.43
            • Published

            canvas-rect

            canvas rect drawing on element

              • v0.1.1
              • 0.00
              • Published

              @vanchelo/maxrects-packer

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

              • v2.7.0
              • 0.00
              • Published