✨ 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
60 lines
2.0 KiB
JavaScript
60 lines
2.0 KiB
JavaScript
'use strict';
|
|
|
|
var createStoreImpl = function createStoreImpl(createState) {
|
|
var state;
|
|
var listeners = new Set();
|
|
var setState = function setState(partial, replace) {
|
|
var nextState = typeof partial === 'function' ? partial(state) : partial;
|
|
if (!Object.is(nextState, state)) {
|
|
var _previousState = state;
|
|
state = (replace != null ? replace : typeof nextState !== 'object' || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
|
listeners.forEach(function (listener) {
|
|
return listener(state, _previousState);
|
|
});
|
|
}
|
|
};
|
|
var getState = function getState() {
|
|
return state;
|
|
};
|
|
var getInitialState = function getInitialState() {
|
|
return initialState;
|
|
};
|
|
var subscribe = function subscribe(listener) {
|
|
listeners.add(listener);
|
|
return function () {
|
|
return listeners.delete(listener);
|
|
};
|
|
};
|
|
var destroy = function destroy() {
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
console.warn('[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.');
|
|
}
|
|
listeners.clear();
|
|
};
|
|
var api = {
|
|
setState: setState,
|
|
getState: getState,
|
|
getInitialState: getInitialState,
|
|
subscribe: subscribe,
|
|
destroy: destroy
|
|
};
|
|
var initialState = state = createState(setState, getState, api);
|
|
return api;
|
|
};
|
|
var createStore = function createStore(createState) {
|
|
return createState ? createStoreImpl(createState) : createStoreImpl;
|
|
};
|
|
var vanilla = (function (createState) {
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
console.warn("[DEPRECATED] Default export is deprecated. Instead use import { createStore } from 'zustand/vanilla'.");
|
|
}
|
|
return createStore(createState);
|
|
});
|
|
|
|
exports.createStore = createStore;
|
|
exports.default = vanilla;
|
|
|
|
module.exports = vanilla;
|
|
module.exports.createStore = createStore;
|
|
exports.default = module.exports;
|