✨ 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
54 lines
2.0 KiB
TypeScript
54 lines
2.0 KiB
TypeScript
/// <reference types="node" />
|
|
/// <reference types="node" />
|
|
import { Service } from './index';
|
|
export interface NodeLoaderHooksAPI1 {
|
|
resolve: NodeLoaderHooksAPI1.ResolveHook;
|
|
getFormat: NodeLoaderHooksAPI1.GetFormatHook;
|
|
transformSource: NodeLoaderHooksAPI1.TransformSourceHook;
|
|
}
|
|
export declare namespace NodeLoaderHooksAPI1 {
|
|
type ResolveHook = NodeLoaderHooksAPI2.ResolveHook;
|
|
type GetFormatHook = (url: string, context: {}, defaultGetFormat: GetFormatHook) => Promise<{
|
|
format: NodeLoaderHooksFormat;
|
|
}>;
|
|
type TransformSourceHook = (source: string | Buffer, context: {
|
|
url: string;
|
|
format: NodeLoaderHooksFormat;
|
|
}, defaultTransformSource: NodeLoaderHooksAPI1.TransformSourceHook) => Promise<{
|
|
source: string | Buffer;
|
|
}>;
|
|
}
|
|
export interface NodeLoaderHooksAPI2 {
|
|
resolve: NodeLoaderHooksAPI2.ResolveHook;
|
|
load: NodeLoaderHooksAPI2.LoadHook;
|
|
}
|
|
export declare namespace NodeLoaderHooksAPI2 {
|
|
type ResolveHook = (specifier: string, context: {
|
|
conditions?: NodeImportConditions;
|
|
importAssertions?: NodeImportAssertions;
|
|
parentURL: string;
|
|
}, defaultResolve: ResolveHook) => Promise<{
|
|
url: string;
|
|
format?: NodeLoaderHooksFormat;
|
|
shortCircuit?: boolean;
|
|
}>;
|
|
type LoadHook = (url: string, context: {
|
|
format: NodeLoaderHooksFormat | null | undefined;
|
|
importAssertions?: NodeImportAssertions;
|
|
}, defaultLoad: NodeLoaderHooksAPI2['load']) => Promise<{
|
|
format: NodeLoaderHooksFormat;
|
|
source: string | Buffer | undefined;
|
|
shortCircuit?: boolean;
|
|
}>;
|
|
type NodeImportConditions = unknown;
|
|
interface NodeImportAssertions {
|
|
type?: 'json';
|
|
}
|
|
}
|
|
export declare type NodeLoaderHooksFormat = 'builtin' | 'commonjs' | 'dynamic' | 'json' | 'module' | 'wasm';
|
|
export declare type NodeImportConditions = unknown;
|
|
export interface NodeImportAssertions {
|
|
type?: 'json';
|
|
}
|
|
export declare function createEsmHooks(tsNodeService: Service): NodeLoaderHooksAPI1 | NodeLoaderHooksAPI2;
|