✨ 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
32 lines
2.2 KiB
TypeScript
32 lines
2.2 KiB
TypeScript
import type { Chalk } from 'chalk';
|
|
import * as webpack from 'webpack';
|
|
import type * as typescript from 'typescript';
|
|
import type { FileLocation, FilePathKey, LoaderOptions, ResolvedModule, ReverseDependencyGraph, TSInstance } from './interfaces';
|
|
/**
|
|
* Take TypeScript errors, parse them and format to webpack errors
|
|
* Optionally adds a file name
|
|
*/
|
|
export declare function formatErrors(diagnostics: ReadonlyArray<typescript.Diagnostic> | undefined, loaderOptions: LoaderOptions, colors: Chalk, compiler: typeof typescript, merge: {
|
|
file?: string;
|
|
module?: webpack.Module;
|
|
}, context: string): webpack.WebpackError[];
|
|
export declare function fsReadFile(fileName: string, encoding?: BufferEncoding | undefined): string | undefined;
|
|
export declare function makeError(loaderOptions: LoaderOptions, message: string, file: string, location?: FileLocation, endLocation?: FileLocation): webpack.WebpackError;
|
|
export declare function tsLoaderSource(loaderOptions: LoaderOptions): string;
|
|
export declare function appendSuffixIfMatch(patterns: (RegExp | string)[], filePath: string, suffix: string): string;
|
|
export declare function appendSuffixesIfMatch(suffixDict: {
|
|
[suffix: string]: (RegExp | string)[];
|
|
}, filePath: string): string;
|
|
export declare function unorderedRemoveItem<T>(array: T[], item: T): boolean;
|
|
export declare function populateDependencyGraph(resolvedModules: ResolvedModule[], instance: TSInstance, containingFile: string): void;
|
|
export declare function populateReverseDependencyGraph(instance: TSInstance): ReverseDependencyGraph;
|
|
/**
|
|
* Recursively collect all possible dependants of passed file
|
|
*/
|
|
export declare function collectAllDependants(reverseDependencyGraph: ReverseDependencyGraph, fileName: FilePathKey, result?: Map<FilePathKey, true>): Map<FilePathKey, true>;
|
|
export declare function arrify<T>(val: T | T[]): T[];
|
|
export declare function ensureProgram(instance: TSInstance): typescript.Program | undefined;
|
|
export declare function supportsSolutionBuild(instance: TSInstance): boolean;
|
|
export declare function isReferencedFile(instance: TSInstance, filePath: string): boolean;
|
|
export declare function useCaseSensitiveFileNames(compiler: typeof typescript, loaderOptions: LoaderOptions): boolean;
|
|
//# sourceMappingURL=utils.d.ts.map
|