✨ 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
5.0 KiB
whatwg-url
whatwg-url is a full implementation of the WHATWG URL Standard. It can be used standalone, but it also exposes a lot of the internal algorithms that are useful for integrating a URL parser into a project like jsdom.
Current Status
whatwg-url is currently up to date with the URL spec up to commit a62223.
API
The URL Constructor
The main API is the URL export, which follows the spec's behavior in all ways (including e.g. USVString conversion). Most consumers of this library will want to use this.
Low-level URL Standard API
The following methods are exported for use by places like jsdom that need to implement things like HTMLHyperlinkElementUtils. They operate on or return an "internal URL" or "URL record" type.
- URL parser:
parseURL(input, { baseURL, encodingOverride }) - Basic URL parser:
basicURLParse(input, { baseURL, encodingOverride, url, stateOverride }) - URL serializer:
serializeURL(urlRecord, excludeFragment) - Host serializer:
serializeHost(hostFromURLRecord) - Serialize an integer:
serializeInteger(number) - Origin serializer:
serializeURLOrigin(urlRecord) - Set the username:
setTheUsername(urlRecord, usernameString) - Set the password:
setThePassword(urlRecord, passwordString) - Cannot have a username/password/port:
cannotHaveAUsernamePasswordPort(urlRecord)
The stateOverride parameter is one of the following strings:
"scheme start""scheme""no scheme""special relative or authority""path or authority""relative""relative slash""special authority slashes""special authority ignore slashes""authority""host""hostname""port""file""file slash""file host""path start""path""cannot-be-a-base-URL path""query""fragment"
The URL record type has the following API:
schemeusernamepasswordhostportpath(as an array)queryfragmentcannotBeABaseURL(as a boolean)
These properties should be treated with care, as in general changing them will cause the URL record to be in an inconsistent state until the appropriate invocation of basicURLParse is used to fix it up. You can see examples of this in the URL Standard, where there are many step sequences like "4. Set context object’s url’s fragment to the empty string. 5. Basic URL parse input with context object’s url as url and fragment state as state override." In between those two steps, a URL record is in an unusable state.
The return value of "failure" in the spec is represented by the string "failure". That is, functions like parseURL and basicURLParse can return either a URL record or the string "failure".