✨ 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
56 lines
2.0 KiB
TypeScript
56 lines
2.0 KiB
TypeScript
/**
|
|
* Error thrown by validation. Besides an informative message, it includes the path to the
|
|
* property which triggered the failure.
|
|
*/
|
|
export declare class VError extends Error {
|
|
path: string;
|
|
constructor(path: string, message: string);
|
|
}
|
|
/**
|
|
* IContext is used during validation to collect error messages. There is a "noop" fast
|
|
* implementation that does not pay attention to messages, and a full implementation that does.
|
|
*/
|
|
export interface IContext {
|
|
fail(relPath: string | number | null, message: string | null, score: number): false;
|
|
unionResolver(): IUnionResolver;
|
|
resolveUnion(ur: IUnionResolver): void;
|
|
}
|
|
/**
|
|
* This helper class is used to collect error messages reported while validating unions.
|
|
*/
|
|
export interface IUnionResolver {
|
|
createContext(): IContext;
|
|
}
|
|
/**
|
|
* IErrorDetail describes errors as returned by the validate() and validateStrict() methods.
|
|
*/
|
|
export interface IErrorDetail {
|
|
path: string;
|
|
message: string;
|
|
nested?: IErrorDetail[];
|
|
}
|
|
/**
|
|
* Fast implementation of IContext used for first-pass validation. If that fails, we can validate
|
|
* using DetailContext to collect error messages. That's faster for the common case when messages
|
|
* normally pass validation.
|
|
*/
|
|
export declare class NoopContext implements IContext, IUnionResolver {
|
|
fail(relPath: string | number | null, message: string | null, score: number): false;
|
|
unionResolver(): IUnionResolver;
|
|
createContext(): IContext;
|
|
resolveUnion(ur: IUnionResolver): void;
|
|
}
|
|
/**
|
|
* Complete implementation of IContext that collects meaningfull errors.
|
|
*/
|
|
export declare class DetailContext implements IContext {
|
|
private _propNames;
|
|
private _messages;
|
|
private _score;
|
|
fail(relPath: string | number | null, message: string | null, score: number): false;
|
|
unionResolver(): IUnionResolver;
|
|
resolveUnion(unionResolver: IUnionResolver): void;
|
|
getError(path: string): VError;
|
|
getErrorDetail(path: string): IErrorDetail | null;
|
|
}
|