JSPM

Found 12 results for rectangles

potpack

A tiny library for packing 2D rectangles (for sprite layouts)

  • v2.1.0
  • 120.89
  • Published

2d-point

2D point object

  • v1.0.0
  • 45.72
  • Published

rectangles

A function collection for working with rectangles

  • v0.0.4
  • 45.40
  • Published

intersect-rect

Check if two DOM elements intersect

  • v1.0.0
  • 44.22
  • Published

fit-box

Fits a box within a boundary while keeping its original aspect ratio

  • v1.1.1
  • 24.28
  • Published

2d-quadtree

Quadtree for games and simulations

    • v1.0.4
    • 23.60
    • Published

    yotsuko

    sprites

    • v1.0.0
    • 15.38
    • Published

    potpackweighted

    A tiny library for packing 2D rectangles (for sprite layouts)

    • v1.0.2
    • 13.58
    • Published

    place-box

    Places a box within a boundary using a set of coordinates

    • v1.1.0
    • 10.49
    • Published

    rect-connect

    Find connection points on the edges of rectangles for drawing arrows & stuff.

    • v1.0.0
    • 6.82
    • Published

    sector-tagger

    A canvas sector tagging library supporting rectangles, circles, and polygons.

      • v1.0.0
      • 6.39
      • Published

      solid-square

      Render a solid square of varying sizes and colors

      • v1.0.0
      • 5.25
      • Published