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>
65 lines
No EOL
1.2 KiB
Text
65 lines
No EOL
1.2 KiB
Text
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
var _basis = require("./basis.js");
|
|
|
|
function Bundle(context, beta) {
|
|
this._basis = new _basis.Basis(context);
|
|
this._beta = beta;
|
|
}
|
|
|
|
Bundle.prototype = {
|
|
lineStart: function () {
|
|
this._x = [];
|
|
this._y = [];
|
|
|
|
this._basis.lineStart();
|
|
},
|
|
lineEnd: function () {
|
|
var x = this._x,
|
|
y = this._y,
|
|
j = x.length - 1;
|
|
|
|
if (j > 0) {
|
|
var x0 = x[0],
|
|
y0 = y[0],
|
|
dx = x[j] - x0,
|
|
dy = y[j] - y0,
|
|
i = -1,
|
|
t;
|
|
|
|
while (++i <= j) {
|
|
t = i / j;
|
|
|
|
this._basis.point(this._beta * x[i] + (1 - this._beta) * (x0 + t * dx), this._beta * y[i] + (1 - this._beta) * (y0 + t * dy));
|
|
}
|
|
}
|
|
|
|
this._x = this._y = null;
|
|
|
|
this._basis.lineEnd();
|
|
},
|
|
point: function (x, y) {
|
|
this._x.push(+x);
|
|
|
|
this._y.push(+y);
|
|
}
|
|
};
|
|
|
|
var _default = function custom(beta) {
|
|
function bundle(context) {
|
|
return beta === 1 ? new _basis.Basis(context) : new Bundle(context, beta);
|
|
}
|
|
|
|
bundle.beta = function (beta) {
|
|
return custom(+beta);
|
|
};
|
|
|
|
return bundle;
|
|
}(0.85);
|
|
|
|
exports.default = _default; |