✨ 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
/* eslint-disable yoda */
|
|
'use strict';
|
|
|
|
const isFullwidthCodePoint = codePoint => {
|
|
if (Number.isNaN(codePoint)) {
|
|
return false;
|
|
}
|
|
|
|
// Code points are derived from:
|
|
// http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
|
|
if (
|
|
codePoint >= 0x1100 && (
|
|
codePoint <= 0x115F || // Hangul Jamo
|
|
codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
|
|
codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
|
|
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
|
(0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) ||
|
|
// Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
|
(0x3250 <= codePoint && codePoint <= 0x4DBF) ||
|
|
// CJK Unified Ideographs .. Yi Radicals
|
|
(0x4E00 <= codePoint && codePoint <= 0xA4C6) ||
|
|
// Hangul Jamo Extended-A
|
|
(0xA960 <= codePoint && codePoint <= 0xA97C) ||
|
|
// Hangul Syllables
|
|
(0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
|
|
// CJK Compatibility Ideographs
|
|
(0xF900 <= codePoint && codePoint <= 0xFAFF) ||
|
|
// Vertical Forms
|
|
(0xFE10 <= codePoint && codePoint <= 0xFE19) ||
|
|
// CJK Compatibility Forms .. Small Form Variants
|
|
(0xFE30 <= codePoint && codePoint <= 0xFE6B) ||
|
|
// Halfwidth and Fullwidth Forms
|
|
(0xFF01 <= codePoint && codePoint <= 0xFF60) ||
|
|
(0xFFE0 <= codePoint && codePoint <= 0xFFE6) ||
|
|
// Kana Supplement
|
|
(0x1B000 <= codePoint && codePoint <= 0x1B001) ||
|
|
// Enclosed Ideographic Supplement
|
|
(0x1F200 <= codePoint && codePoint <= 0x1F251) ||
|
|
// CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
|
(0x20000 <= codePoint && codePoint <= 0x3FFFD)
|
|
)
|
|
) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
};
|
|
|
|
module.exports = isFullwidthCodePoint;
|
|
module.exports.default = isFullwidthCodePoint;
|