✨ 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
50 lines
2.7 KiB
TypeScript
50 lines
2.7 KiB
TypeScript
import { MicromatchOptions, Pattern, PatternRe } from '../types';
|
|
type PatternTypeOptions = {
|
|
braceExpansion?: boolean;
|
|
caseSensitiveMatch?: boolean;
|
|
extglob?: boolean;
|
|
};
|
|
export declare function isStaticPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
|
|
export declare function isDynamicPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
|
|
export declare function convertToPositivePattern(pattern: Pattern): Pattern;
|
|
export declare function convertToNegativePattern(pattern: Pattern): Pattern;
|
|
export declare function isNegativePattern(pattern: Pattern): boolean;
|
|
export declare function isPositivePattern(pattern: Pattern): boolean;
|
|
export declare function getNegativePatterns(patterns: Pattern[]): Pattern[];
|
|
export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
|
|
/**
|
|
* Returns patterns that can be applied inside the current directory.
|
|
*
|
|
* @example
|
|
* // ['./*', '*', 'a/*']
|
|
* getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
|
|
*/
|
|
export declare function getPatternsInsideCurrentDirectory(patterns: Pattern[]): Pattern[];
|
|
/**
|
|
* Returns patterns to be expanded relative to (outside) the current directory.
|
|
*
|
|
* @example
|
|
* // ['../*', './../*']
|
|
* getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
|
|
*/
|
|
export declare function getPatternsOutsideCurrentDirectory(patterns: Pattern[]): Pattern[];
|
|
export declare function isPatternRelatedToParentDirectory(pattern: Pattern): boolean;
|
|
export declare function getBaseDirectory(pattern: Pattern): string;
|
|
export declare function hasGlobStar(pattern: Pattern): boolean;
|
|
export declare function endsWithSlashGlobStar(pattern: Pattern): boolean;
|
|
export declare function isAffectDepthOfReadingPattern(pattern: Pattern): boolean;
|
|
export declare function expandPatternsWithBraceExpansion(patterns: Pattern[]): Pattern[];
|
|
export declare function expandBraceExpansion(pattern: Pattern): Pattern[];
|
|
export declare function getPatternParts(pattern: Pattern, options: MicromatchOptions): Pattern[];
|
|
export declare function makeRe(pattern: Pattern, options: MicromatchOptions): PatternRe;
|
|
export declare function convertPatternsToRe(patterns: Pattern[], options: MicromatchOptions): PatternRe[];
|
|
export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolean;
|
|
/**
|
|
* This package only works with forward slashes as a path separator.
|
|
* Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes.
|
|
*/
|
|
export declare function removeDuplicateSlashes(pattern: string): string;
|
|
export declare function partitionAbsoluteAndRelative(patterns: Pattern[]): Pattern[][];
|
|
export declare function isAbsolute(pattern: string): boolean;
|
|
export {};
|