Skip to content

Releases: sky3d/rect-utils

v1.0.0 - Initial Release

13 Nov 12:48

Choose a tag to compare

🎉 Initial Release - v1.0.0

TypeScript utility library for rectangle and point manipulation.

✨ Features

Core Namespaces

  • RectOps - Rectangle creation, validation, and conversion
  • RectCompare - Comparison, intersection, and containment operations
  • RectTransform - Inflate, deflate, offset, and alignment transformations
  • RectGeometry - Center and corner point calculations
  • RectBorder - Side extraction, cutting, and expansion operations
  • RectSplit - Horizontal and vertical splitting into cells

Highlights

  • ✅ Zero runtime dependencies
  • ✅ Full TypeScript support with strict typing
  • ✅ Functional programming style (pure functions)
  • ✅ Tree-shaking support for optimal bundle size
  • ✅ Comprehensive test coverage with Node.js Test Runner
  • ✅ Complete API documentation and examples

📦 Installation

npm install rect-utils

📚 Documentation

🚀 Quick Start

import { RectOps, RectCompare, RectTransform } from 'rect-utils';

const rect = RectOps.create(0, 0, 100, 100);
const center = RectGeometry.center(rect);
const moved = RectTransform.offset(rect, 10, 20);