✨ 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
46 lines
1.5 KiB
TypeScript
46 lines
1.5 KiB
TypeScript
//#region src/utils.d.ts
|
|
|
|
declare const convertPathToPattern: (path: string) => string;
|
|
declare const escapePath: (path: string) => string;
|
|
// #endregion
|
|
// #region isDynamicPattern
|
|
/*
|
|
Has a few minor differences with `fast-glob` for better accuracy:
|
|
|
|
Doesn't necessarily return false on patterns that include `\\`.
|
|
|
|
Returns true if the pattern includes parentheses,
|
|
regardless of them representing one single pattern or not.
|
|
|
|
Returns true for unfinished glob extensions i.e. `(h`, `+(h`.
|
|
|
|
Returns true for unfinished brace expansions as long as they include `,` or `..`.
|
|
*/
|
|
declare function isDynamicPattern(pattern: string, options?: {
|
|
caseSensitiveMatch: boolean;
|
|
}): boolean; //#endregion
|
|
//#region src/index.d.ts
|
|
|
|
// #endregion
|
|
// #region log
|
|
interface GlobOptions {
|
|
absolute?: boolean;
|
|
cwd?: string;
|
|
patterns?: string | string[];
|
|
ignore?: string | string[];
|
|
dot?: boolean;
|
|
deep?: number;
|
|
followSymbolicLinks?: boolean;
|
|
caseSensitiveMatch?: boolean;
|
|
expandDirectories?: boolean;
|
|
onlyDirectories?: boolean;
|
|
onlyFiles?: boolean;
|
|
debug?: boolean;
|
|
}
|
|
declare function glob(patterns: string | string[], options?: Omit<GlobOptions, "patterns">): Promise<string[]>;
|
|
declare function glob(options: GlobOptions): Promise<string[]>;
|
|
declare function globSync(patterns: string | string[], options?: Omit<GlobOptions, "patterns">): string[];
|
|
declare function globSync(options: GlobOptions): string[];
|
|
|
|
//#endregion
|
|
export { GlobOptions, convertPathToPattern, escapePath, glob, globSync, isDynamicPattern }; |