JSPM

Found 111 results for rect

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
  • 38.84
  • Published

canvas-select

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

  • v2.32.3
  • 38.84
  • 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
  • 38.60
  • Published

ringside

Positions a rectangle between inner and outer bounds

  • v1.0.1
  • 38.09
  • Published

spase

Micro library for performing 2D spatial calculations of DOM elements

  • v11.4.0
  • 37.97
  • Published

rect-clamp

Constraint a Rectangle into another by preserving the ratio.

  • v0.0.0
  • 37.03
  • Published

@thi.ng/geom-clip

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

  • v0.1.12
  • 36.07
  • Published

mskalign-canvas

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

    • v2.27.6
    • 34.68
    • Published

    rects-bin-pack

    MaxRects Algorithm javascript implementation

    • v0.1.3
    • 34.31
    • Published

    pex-geom

    Geometry intersection and bounding volume helpers for PEX.

    • v3.1.0
    • 32.94
    • Published

    canvasplot

    canvas canvasPlot

    • v1.2.12
    • 32.78
    • Published

    adaptive-scale

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

    • v1.0.0
    • 32.73
    • Published

    rect-mix

    Interpolate 2 rectangles

    • v0.0.0
    • 32.63
    • Published

    @zardoy/maxrects-packer

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

    • v2.7.4
    • 31.23
    • Published

    savyg

    A savvy library to create svg elements and charts with ease

    • v1.2.4
    • 30.00
    • Published

    @taufik-nurrohman/rect

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

    • v1.0.0
    • 29.08
    • Published

    quadtreemap

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

    • v0.13.0
    • 28.66
    • 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
    • 28.09
    • Published

    dirichlet

    Dirichlet/aliased sinc function

    • v1.0.1
    • 27.59
    • Published

    canvas-mark-board

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

    • v0.0.1-beta.11
    • 27.43
    • Published

    @evolor/image-rect-vue3

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

      • v1.0.22
      • 25.65
      • Published

      @svg-fns/types

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

      • v0.0.0
      • 24.02
      • Published

      viewport-funcs

      A very limited subset of viewport functions I use every day

      • v0.3.1
      • 23.91
      • Published

      ben-canvas

      a canvas tool lib

      • v1.1.6
      • 23.42
      • Published

      canvas-select-pro

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

      • v0.0.8
      • 23.03
      • Published

      @evolor/image-rect

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

      • v1.0.22
      • 22.97
      • Published

      @anthood/crc

      React Component ready to be published on npm

      • v0.0.5
      • 22.81
      • Published

      drawbetween

      Draw images and shapes on the specified line segment

      • v1.0.1
      • 22.64
      • Published

      canvas-labeler

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

      • v0.0.3
      • 22.20
      • Published

      @creenv/rectangle

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

      • v0.0.1
      • 20.44
      • 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.98
      • Published

      boxpack

      Bin packing algorithm for rectangles

      • v0.1.0
      • 19.35
      • Published

      canvas-rect

      canvas rect drawing on element

        • v0.1.1
        • 19.31
        • Published

        react-svg-image-board

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

        • v0.1.3
        • 19.26
        • Published

        rect-mip-map

        arbitrary rectangle mip mapping for texture atlases

        • v0.1.2
        • 19.00
        • Published

        d3-stacked-rect

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

        • v1.3.1
        • 18.58
        • Published

        react-native-offline-screen

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

        • v0.0.6
        • 18.13
        • Published

        atlasify

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

        • v0.4.1
        • 16.71
        • Published

        rect-cover

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

        • v1.0.0
        • 16.53
        • Published

        @ryvora/rect

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

        • v2.0.0
        • 15.71
        • Published

        senz-canvas

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

        • v0.0.6
        • 15.48
        • Published

        client-parallax-notifications

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

        • v0.0.5
        • 15.25
        • Published

        client-rect-notifications

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

        • v0.0.3
        • 15.16
        • 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
        • 14.90
        • Published

        shapepath

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

          • v0.0.1
          • 14.90
          • Published

          fd-rect

          2D rectangle

          • v1.0.0
          • 14.83
          • Published

          element-box

          Work easily with an element's position and dimensions

          • v1.0.1
          • 14.74
          • Published

          box-sizing

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

          • v1.0.1
          • 14.48
          • Published

          @ryvora/react-use-rect

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

          • v2.0.0
          • 13.47
          • Published

          canvas-select-bsc

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

          • v1.0.0
          • 13.16
          • Published

          pathomorph

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

          • v0.0.5
          • 13.11
          • Published

          tiny-rect

          JS utilities for managing rects

          • v0.0.2
          • 13.06
          • Published

          rect-contain

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

          • v1.0.0
          • 11.34
          • Published

          clip-rect

          Helper to create clip rect animation with gsap

          • v1.2.0
          • 11.30
          • Published

          react-3d-rect

          > 3D Rectangle with transition

          • v1.0.8
          • 11.30
          • Published

          @vanchelo/maxrects-packer

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

          • v2.7.0
          • 10.73
          • Published

          canvas-select-vite

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

          • v0.0.2
          • 10.40
          • Published

          q43

          A Quadtree class for JS/ES

          • v2.1.0
          • 10.40
          • Published

          rect-guides

          Guides like the sketch app.

          • v0.0.4
          • 10.19
          • Published

          jt-collision-detection

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

          • v1.0.0
          • 10.13
          • Published

          use-bounding-rect

          A tiny React hook to access DOM Rect dynamically

          • v0.1.0
          • 8.74
          • Published

          visibilityobserver

          Experimental API for observing the visible box of an element.

          • v1.1.0
          • 8.37
          • 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
          • 6.95
          • Published

          graph-mark

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

            • v1.0.1
            • 5.53
            • Published