Rocky_Mountain_Vending/.pnpm-store/v10/files/a7/9d8b31ccd2143022efd04fc3360421e29ec24464ade4a9daed5da3793083d5f24589add9f567fb29c8434b0ff10f259460a7b7a3c18b5541b152e773f1a23b
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

25 lines
No EOL
891 B
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.calculateViewBox = void 0;
var _memoize = _interopRequireDefault(require("lodash/memoize"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* This is memoized because the viewBox is unlikely to change often
* - but because it is computed from offset, any change to it would re-render all children.
*
* And because we have many readers of the viewBox, and update it only rarely,
* then let's optimize with memoization.
*/
var calculateViewBox = exports.calculateViewBox = (0, _memoize["default"])(function (offset) {
return {
x: offset.left,
y: offset.top,
width: offset.width,
height: offset.height
};
}, function (offset) {
return ['l', offset.left, 't', offset.top, 'w', offset.width, 'h', offset.height].join('');
});