Bounding Box Aspect Ratio
Calculate aspect ration from bounding box
🔧 Installation
npm i bbox-aspect-ratio
📦 Usage
; // Get aspect ratioconst topRight = 7620742 1159426;const bottomLeft = 7686794 1195073;const aspectRatio = ;console; // [1321, 713] // Calculate size by widthconst sizeByWidth = ;console; // 27 → w: 50, h: 27 // Calculate size by heightconst sizeByHeight = ;console; // 93 → w: 93, h: 50