Search results
163 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Client side image cropper directive for AngularJS (rectangular area, aspect ratio, multi-touch)
A packing algorithm for 2D bin packing that allows setting a max width or height. Largely based on code and a blog post by Jake Gordon and Bryan Burgers.
Using a provided Opentype.js font object, draws a string, sized to fit inside a given rectangle on an HTML5 canvas
A custom mode for MapboxGL Draw to draw rectangles that adds the functionality of keeping the rectangle's shape when adjusting a corner of the drawn rectangle
Constraint a Rectangle into another by preserving the ratio.
Crop a dimension in a viewport: Compute a rectangle from a zoom ratio and a center point while preserving the dimension ratio.
A simple box with fixed aspect ratio
This small library can scale any size according to other size.
Find bounding box dimensions either within or surrounding arbitrary containers
JavaScript 2D vector math library
Simple collisions detector for 2d
- 2d-collision
- library
- collision
- collision-detection
- collisions
- detection
- gamedev
- game
- rectangle
- circle
- lines
- aabb
A function collection for working with rectangles
Adds basic drawing functionnalities to pngjs.
Checks if a point is inside a shape.
Interpolate 2 rectangles
Fast 2d geometry math: Vector2, Rectangle, Circle, Matrix2x3 (2D transformation), Circle, BoundingBox, Line2, Segment2, Intersections, Distances, Transitions (animation/tween), Random numbers, Noise
- geometry
- vector
- circle
- transformation matrix
- matrix 2d
- matrix2x3
- boundingbox
- lines
- segments
- intersections
- distances
- rectangle
- random numbers
- xorshift
- View more
[![NPM](https://img.shields.io/npm/v/react-resizable-rotatable-draggable.svg)](https://www.npmjs.com/package/react-resizable-rotatable-draggable) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standar
Force-directed graph where nodes are calculated as ellipses. Offers better layout than circular nodes when nodes are wide or tall, or vary, e.g. with text labels.
Minimal decomposition of rectilinear polygons into rectangles
Guillotine based packing algorithm