✨ 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
65 lines
1.7 KiB
JavaScript
65 lines
1.7 KiB
JavaScript
'use strict';
|
|
|
|
var $RangeError = require('es-errors/range');
|
|
var $TypeError = require('es-errors/type');
|
|
|
|
var Get = require('./Get');
|
|
var IsCallable = require('./IsCallable');
|
|
var ToIntegerOrInfinity = require('./ToIntegerOrInfinity');
|
|
var ToNumber = require('./ToNumber');
|
|
|
|
var isNaN = require('..//helpers/isNaN');
|
|
var isObject = require('es-object-atoms/isObject');
|
|
|
|
var callBind = require('call-bind');
|
|
var isSet = require('is-set');
|
|
var stopIterationIterator = require('stop-iteration-iterator');
|
|
|
|
// https://262.ecma-international.org/16.0/#sec-getsetrecord
|
|
|
|
module.exports = function GetSetRecord(obj) {
|
|
if (!isObject(obj)) {
|
|
throw new $TypeError('obj is not an Object'); // step 1
|
|
}
|
|
|
|
var rawSize = Get(obj, 'size'); // step 2
|
|
|
|
var numSize = ToNumber(rawSize); // step 3
|
|
|
|
// 4. NOTE: If rawSize is undefined, then numSize will be NaN.
|
|
if (isNaN(numSize)) {
|
|
throw new $TypeError('`size` is not a non-NaN Number'); // step 5
|
|
}
|
|
|
|
var intSize = ToIntegerOrInfinity(numSize); // step 6
|
|
|
|
if (intSize < 0) {
|
|
throw new $RangeError('set size must be non-negative'); // step 7
|
|
}
|
|
|
|
var has = Get(obj, 'has'); // step 8
|
|
|
|
if (!IsCallable(has)) {
|
|
throw new $TypeError('has is not a function'); // step 9
|
|
}
|
|
|
|
var keys = Get(obj, 'keys'); // step 10
|
|
if (!IsCallable(keys)) {
|
|
throw new $TypeError('keys is not a function'); // step 11
|
|
}
|
|
/* globals StopIteration: false */
|
|
if (isSet(obj) && typeof StopIteration === 'object') {
|
|
var boundKeys = callBind(keys);
|
|
keys = function keys() { // eslint-disable-line no-shadow
|
|
return stopIterationIterator(boundKeys(this)); // eslint-disable-line no-invalid-this
|
|
};
|
|
}
|
|
|
|
return {
|
|
'[[SetObject]]': obj,
|
|
'[[Size]]': intSize,
|
|
'[[Has]]': has,
|
|
'[[Keys]]': keys
|
|
}; // step 12
|
|
};
|