✨ MAJOR FEATURES: • Auto-zoom intelligence với smart bounds fitting • Enhanced 3D GPS markers với pulsing effects • Professional route display với 6-layer rendering • Status-based parking icons với availability indicators • Production-ready build optimizations 🗺️ AUTO-ZOOM FEATURES: • Smart bounds fitting cho GPS + selected parking • Adaptive padding (50px) cho visual balance • Max zoom control (level 16) để tránh quá gần • Dynamic centering khi không có selection 🎨 ENHANCED VISUALS: • 3D GPS marker với multi-layer pulse effects • Advanced parking icons với status colors • Selection highlighting với animation • Dimming system cho non-selected items 🛣️ ROUTE SYSTEM: • OpenRouteService API integration • Multi-layer route rendering (glow, shadow, main, animated) • Real-time distance & duration calculation • Visual route info trong popup 📱 PRODUCTION READY: • SSR safe với dynamic imports • Build errors resolved • Global deployment via Vercel • Optimized performance 🌍 DEPLOYMENT: • Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app • Bundle size: 22.8 kB optimized • Global CDN distribution • HTTPS enabled 💾 VERSION CONTROL: • MapView-v2.0.tsx backup created • MAPVIEW_VERSIONS.md documentation • Full version history tracking
51 lines
1.7 KiB
JavaScript
51 lines
1.7 KiB
JavaScript
"use strict";
|
|
exports.__esModule = true;
|
|
exports.congruential32 = void 0;
|
|
var MULTIPLIER = 0x000343fd;
|
|
var INCREMENT = 0x00269ec3;
|
|
var MASK = 0xffffffff;
|
|
var MASK_2 = (1 << 31) - 1;
|
|
var computeNextSeed = function (seed) {
|
|
return (seed * MULTIPLIER + INCREMENT) & MASK;
|
|
};
|
|
var computeValueFromNextSeed = function (nextseed) {
|
|
return (nextseed & MASK_2) >> 16;
|
|
};
|
|
var LinearCongruential32 = (function () {
|
|
function LinearCongruential32(seed) {
|
|
this.seed = seed;
|
|
}
|
|
LinearCongruential32.prototype.clone = function () {
|
|
return new LinearCongruential32(this.seed);
|
|
};
|
|
LinearCongruential32.prototype.next = function () {
|
|
var nextRng = new LinearCongruential32(this.seed);
|
|
var out = nextRng.unsafeNext();
|
|
return [out, nextRng];
|
|
};
|
|
LinearCongruential32.prototype.unsafeNext = function () {
|
|
var s1 = computeNextSeed(this.seed);
|
|
var v1 = computeValueFromNextSeed(s1);
|
|
var s2 = computeNextSeed(s1);
|
|
var v2 = computeValueFromNextSeed(s2);
|
|
this.seed = computeNextSeed(s2);
|
|
var v3 = computeValueFromNextSeed(this.seed);
|
|
var vnext = v3 + ((v2 + (v1 << 15)) << 15);
|
|
return vnext | 0;
|
|
};
|
|
LinearCongruential32.prototype.getState = function () {
|
|
return [this.seed];
|
|
};
|
|
return LinearCongruential32;
|
|
}());
|
|
function fromState(state) {
|
|
var valid = state.length === 1;
|
|
if (!valid) {
|
|
throw new Error('The state must have been produced by a congruential32 RandomGenerator');
|
|
}
|
|
return new LinearCongruential32(state[0]);
|
|
}
|
|
exports.congruential32 = Object.assign(function (seed) {
|
|
return new LinearCongruential32(seed);
|
|
}, { fromState: fromState });
|