parse-rect
Parse any input rectangle format
Parse any input rectangle format
A drag & drop utility
A max rectangle 2d bin packer for packing glyphs or images into multiple sprite-sheet/atlas
Get the current viewport position of target window
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
Crop a dimension in a viewport: Compute a rectangle from a zoom ratio and a center point while preserving the dimension ratio.
Constraint a Rectangle into another by preserving the ratio.
Cross-browser `getBoundingClientRect()` for all Node types
Interpolate 2 rectangles
Geometry intersection and bounding volume helpers for PEX.
Positions a rectangle between inner and outer bounds
Turns SVG shapes (polygon, polyline, rect, g) into SVG paths. It can merge groups and apply transforms.
2D / 3D closest point / proximity helpers
A react native offline screen which you can use while you are not connected with internet.
2D/3D shape intersection checks
Get bounding rect of SVG shape elements.
2D polygon clipping / offsetting (Sutherland-Hodgeman, Grainer-Hormann)
Text based canvas, drawing, plotting, tables with arbitrary formatting (incl. ANSI/HTML)
A collection of Reacts hooks used in Flywire
一个用于图片标注的javascript库,基于canvas,简单轻量,支持矩形、多边形、点、折线、圆形。